10ff988ab1013d39e92d8c15337a8bb055d127c3
[platform/upstream/python-gobject.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pygobject 3.18.0.
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.0'
595 PACKAGE_STRING='pygobject 3.18.0'
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 GCOV
647 CODE_COVERAGE_ENABLED
648 CODE_COVERAGE_ENABLED_FALSE
649 CODE_COVERAGE_ENABLED_TRUE
650 WARN_CFLAGS
651 INTROSPECTION_COMPILER
652 INTROSPECTION_SCANNER
653 WITH_COMMON_FALSE
654 WITH_COMMON_TRUE
655 ENABLE_CAIRO_FALSE
656 ENABLE_CAIRO_TRUE
657 PYCAIRO_LIBS
658 PYCAIRO_CFLAGS
659 CAIRO_LIBS
660 CAIRO_CFLAGS
661 GI_DATADIR
662 GI_LIBS
663 GI_CFLAGS
664 GIO_LIBS
665 GIO_CFLAGS
666 LIBFFI_PC
667 FFI_LIBS
668 FFI_CFLAGS
669 DATADIR
670 PYTHON_BASENAME
671 GLIB_COMPILE_RESOURCES
672 GLIB_MKENUMS
673 GOBJECT_QUERY
674 GLIB_GENMARSHAL
675 GLIB_LIBS
676 GLIB_CFLAGS
677 PKG_CONFIG_LIBDIR
678 PKG_CONFIG_PATH
679 PKG_CONFIG
680 THREADING_CFLAGS
681 PLATFORM
682 PYTHON_LIB_LOC
683 PYTHON_LIBS
684 PYTHON_INCLUDES
685 PYTHON_SO
686 pkgpyexecdir
687 pyexecdir
688 pkgpythondir
689 pythondir
690 PYTHON_PLATFORM
691 PYTHON_EXEC_PREFIX
692 PYTHON_PREFIX
693 PYTHON_VERSION
694 PYTHON
695 CPP
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 MANIFEST_TOOL
702 RANLIB
703 ac_ct_AR
704 AR
705 LN_S
706 NM
707 ac_ct_DUMPBIN
708 DUMPBIN
709 LD
710 FGREP
711 EGREP
712 GREP
713 SED
714 am__fastdepCC_FALSE
715 am__fastdepCC_TRUE
716 CCDEPMODE
717 am__nodep
718 AMDEPBACKSLASH
719 AMDEP_FALSE
720 AMDEP_TRUE
721 am__quote
722 am__include
723 DEPDIR
724 OBJEXT
725 EXEEXT
726 ac_ct_CC
727 CPPFLAGS
728 LDFLAGS
729 CFLAGS
730 CC
731 LIBTOOL
732 OBJDUMP
733 DLLTOOL
734 AS
735 OS_EXT
736 OS_WIN32_FALSE
737 OS_WIN32_TRUE
738 host_os
739 host_vendor
740 host_cpu
741 host
742 build_os
743 build_vendor
744 build_cpu
745 build
746 am__untar
747 am__tar
748 AMTAR
749 am__leading_dot
750 SET_MAKE
751 AWK
752 mkdir_p
753 MKDIR_P
754 INSTALL_STRIP_PROGRAM
755 STRIP
756 install_sh
757 MAKEINFO
758 AUTOHEADER
759 AUTOMAKE
760 AUTOCONF
761 ACLOCAL
762 VERSION
763 PACKAGE
764 CYGPATH_W
765 am__isrc
766 INSTALL_DATA
767 INSTALL_SCRIPT
768 INSTALL_PROGRAM
769 AM_BACKSLASH
770 AM_DEFAULT_VERBOSITY
771 AM_DEFAULT_V
772 AM_V
773 PYGOBJECT_MICRO_VERSION
774 PYGOBJECT_MINOR_VERSION
775 PYGOBJECT_MAJOR_VERSION
776 ACLOCAL_AMFLAGS
777 target_alias
778 host_alias
779 build_alias
780 LIBS
781 ECHO_T
782 ECHO_N
783 ECHO_C
784 DEFS
785 mandir
786 localedir
787 libdir
788 psdir
789 pdfdir
790 dvidir
791 htmldir
792 infodir
793 docdir
794 oldincludedir
795 includedir
796 localstatedir
797 sharedstatedir
798 sysconfdir
799 datadir
800 datarootdir
801 libexecdir
802 sbindir
803 bindir
804 program_transform_name
805 prefix
806 exec_prefix
807 PACKAGE_URL
808 PACKAGE_BUGREPORT
809 PACKAGE_STRING
810 PACKAGE_VERSION
811 PACKAGE_TARNAME
812 PACKAGE_NAME
813 PATH_SEPARATOR
814 SHELL'
815 ac_subst_files=''
816 ac_user_opts='
817 enable_option_checking
818 enable_silent_rules
819 enable_static
820 enable_shared
821 with_pic
822 enable_fast_install
823 enable_dependency_tracking
824 with_gnu_ld
825 with_sysroot
826 enable_libtool_lock
827 with_python
828 enable_thread
829 enable_glibtest
830 enable_cairo
831 with_common
832 enable_compile_warnings
833 enable_iso_c
834 with_gcov
835 enable_code_coverage
836 '
837       ac_precious_vars='build_alias
838 host_alias
839 target_alias
840 CC
841 CFLAGS
842 LDFLAGS
843 LIBS
844 CPPFLAGS
845 CPP
846 PYTHON
847 PKG_CONFIG
848 PKG_CONFIG_PATH
849 PKG_CONFIG_LIBDIR
850 FFI_CFLAGS
851 FFI_LIBS
852 GIO_CFLAGS
853 GIO_LIBS
854 GI_CFLAGS
855 GI_LIBS
856 CAIRO_CFLAGS
857 CAIRO_LIBS
858 PYCAIRO_CFLAGS
859 PYCAIRO_LIBS'
860
861
862 # Initialize some variables set by options.
863 ac_init_help=
864 ac_init_version=false
865 ac_unrecognized_opts=
866 ac_unrecognized_sep=
867 # The variables have the same names as the options, with
868 # dashes changed to underlines.
869 cache_file=/dev/null
870 exec_prefix=NONE
871 no_create=
872 no_recursion=
873 prefix=NONE
874 program_prefix=NONE
875 program_suffix=NONE
876 program_transform_name=s,x,x,
877 silent=
878 site=
879 srcdir=
880 verbose=
881 x_includes=NONE
882 x_libraries=NONE
883
884 # Installation directory options.
885 # These are left unexpanded so users can "make install exec_prefix=/foo"
886 # and all the variables that are supposed to be based on exec_prefix
887 # by default will actually change.
888 # Use braces instead of parens because sh, perl, etc. also accept them.
889 # (The list follows the same order as the GNU Coding Standards.)
890 bindir='${exec_prefix}/bin'
891 sbindir='${exec_prefix}/sbin'
892 libexecdir='${exec_prefix}/libexec'
893 datarootdir='${prefix}/share'
894 datadir='${datarootdir}'
895 sysconfdir='${prefix}/etc'
896 sharedstatedir='${prefix}/com'
897 localstatedir='${prefix}/var'
898 includedir='${prefix}/include'
899 oldincludedir='/usr/include'
900 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
901 infodir='${datarootdir}/info'
902 htmldir='${docdir}'
903 dvidir='${docdir}'
904 pdfdir='${docdir}'
905 psdir='${docdir}'
906 libdir='${exec_prefix}/lib'
907 localedir='${datarootdir}/locale'
908 mandir='${datarootdir}/man'
909
910 ac_prev=
911 ac_dashdash=
912 for ac_option
913 do
914   # If the previous option needs an argument, assign it.
915   if test -n "$ac_prev"; then
916     eval $ac_prev=\$ac_option
917     ac_prev=
918     continue
919   fi
920
921   case $ac_option in
922   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923   *=)   ac_optarg= ;;
924   *)    ac_optarg=yes ;;
925   esac
926
927   # Accept the important Cygnus configure options, so we can diagnose typos.
928
929   case $ac_dashdash$ac_option in
930   --)
931     ac_dashdash=yes ;;
932
933   -bindir | --bindir | --bindi | --bind | --bin | --bi)
934     ac_prev=bindir ;;
935   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936     bindir=$ac_optarg ;;
937
938   -build | --build | --buil | --bui | --bu)
939     ac_prev=build_alias ;;
940   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941     build_alias=$ac_optarg ;;
942
943   -cache-file | --cache-file | --cache-fil | --cache-fi \
944   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945     ac_prev=cache_file ;;
946   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948     cache_file=$ac_optarg ;;
949
950   --config-cache | -C)
951     cache_file=config.cache ;;
952
953   -datadir | --datadir | --datadi | --datad)
954     ac_prev=datadir ;;
955   -datadir=* | --datadir=* | --datadi=* | --datad=*)
956     datadir=$ac_optarg ;;
957
958   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959   | --dataroo | --dataro | --datar)
960     ac_prev=datarootdir ;;
961   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963     datarootdir=$ac_optarg ;;
964
965   -disable-* | --disable-*)
966     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967     # Reject names that are not valid shell variable names.
968     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969       as_fn_error $? "invalid feature name: $ac_useropt"
970     ac_useropt_orig=$ac_useropt
971     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972     case $ac_user_opts in
973       *"
974 "enable_$ac_useropt"
975 "*) ;;
976       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977          ac_unrecognized_sep=', ';;
978     esac
979     eval enable_$ac_useropt=no ;;
980
981   -docdir | --docdir | --docdi | --doc | --do)
982     ac_prev=docdir ;;
983   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984     docdir=$ac_optarg ;;
985
986   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987     ac_prev=dvidir ;;
988   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989     dvidir=$ac_optarg ;;
990
991   -enable-* | --enable-*)
992     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993     # Reject names that are not valid shell variable names.
994     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995       as_fn_error $? "invalid feature name: $ac_useropt"
996     ac_useropt_orig=$ac_useropt
997     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998     case $ac_user_opts in
999       *"
1000 "enable_$ac_useropt"
1001 "*) ;;
1002       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003          ac_unrecognized_sep=', ';;
1004     esac
1005     eval enable_$ac_useropt=\$ac_optarg ;;
1006
1007   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009   | --exec | --exe | --ex)
1010     ac_prev=exec_prefix ;;
1011   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013   | --exec=* | --exe=* | --ex=*)
1014     exec_prefix=$ac_optarg ;;
1015
1016   -gas | --gas | --ga | --g)
1017     # Obsolete; use --with-gas.
1018     with_gas=yes ;;
1019
1020   -help | --help | --hel | --he | -h)
1021     ac_init_help=long ;;
1022   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023     ac_init_help=recursive ;;
1024   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025     ac_init_help=short ;;
1026
1027   -host | --host | --hos | --ho)
1028     ac_prev=host_alias ;;
1029   -host=* | --host=* | --hos=* | --ho=*)
1030     host_alias=$ac_optarg ;;
1031
1032   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033     ac_prev=htmldir ;;
1034   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035   | --ht=*)
1036     htmldir=$ac_optarg ;;
1037
1038   -includedir | --includedir | --includedi | --included | --include \
1039   | --includ | --inclu | --incl | --inc)
1040     ac_prev=includedir ;;
1041   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042   | --includ=* | --inclu=* | --incl=* | --inc=*)
1043     includedir=$ac_optarg ;;
1044
1045   -infodir | --infodir | --infodi | --infod | --info | --inf)
1046     ac_prev=infodir ;;
1047   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048     infodir=$ac_optarg ;;
1049
1050   -libdir | --libdir | --libdi | --libd)
1051     ac_prev=libdir ;;
1052   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053     libdir=$ac_optarg ;;
1054
1055   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056   | --libexe | --libex | --libe)
1057     ac_prev=libexecdir ;;
1058   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059   | --libexe=* | --libex=* | --libe=*)
1060     libexecdir=$ac_optarg ;;
1061
1062   -localedir | --localedir | --localedi | --localed | --locale)
1063     ac_prev=localedir ;;
1064   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065     localedir=$ac_optarg ;;
1066
1067   -localstatedir | --localstatedir | --localstatedi | --localstated \
1068   | --localstate | --localstat | --localsta | --localst | --locals)
1069     ac_prev=localstatedir ;;
1070   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072     localstatedir=$ac_optarg ;;
1073
1074   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075     ac_prev=mandir ;;
1076   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077     mandir=$ac_optarg ;;
1078
1079   -nfp | --nfp | --nf)
1080     # Obsolete; use --without-fp.
1081     with_fp=no ;;
1082
1083   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084   | --no-cr | --no-c | -n)
1085     no_create=yes ;;
1086
1087   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089     no_recursion=yes ;;
1090
1091   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093   | --oldin | --oldi | --old | --ol | --o)
1094     ac_prev=oldincludedir ;;
1095   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098     oldincludedir=$ac_optarg ;;
1099
1100   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101     ac_prev=prefix ;;
1102   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103     prefix=$ac_optarg ;;
1104
1105   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106   | --program-pre | --program-pr | --program-p)
1107     ac_prev=program_prefix ;;
1108   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110     program_prefix=$ac_optarg ;;
1111
1112   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113   | --program-suf | --program-su | --program-s)
1114     ac_prev=program_suffix ;;
1115   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117     program_suffix=$ac_optarg ;;
1118
1119   -program-transform-name | --program-transform-name \
1120   | --program-transform-nam | --program-transform-na \
1121   | --program-transform-n | --program-transform- \
1122   | --program-transform | --program-transfor \
1123   | --program-transfo | --program-transf \
1124   | --program-trans | --program-tran \
1125   | --progr-tra | --program-tr | --program-t)
1126     ac_prev=program_transform_name ;;
1127   -program-transform-name=* | --program-transform-name=* \
1128   | --program-transform-nam=* | --program-transform-na=* \
1129   | --program-transform-n=* | --program-transform-=* \
1130   | --program-transform=* | --program-transfor=* \
1131   | --program-transfo=* | --program-transf=* \
1132   | --program-trans=* | --program-tran=* \
1133   | --progr-tra=* | --program-tr=* | --program-t=*)
1134     program_transform_name=$ac_optarg ;;
1135
1136   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137     ac_prev=pdfdir ;;
1138   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139     pdfdir=$ac_optarg ;;
1140
1141   -psdir | --psdir | --psdi | --psd | --ps)
1142     ac_prev=psdir ;;
1143   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144     psdir=$ac_optarg ;;
1145
1146   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147   | -silent | --silent | --silen | --sile | --sil)
1148     silent=yes ;;
1149
1150   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151     ac_prev=sbindir ;;
1152   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153   | --sbi=* | --sb=*)
1154     sbindir=$ac_optarg ;;
1155
1156   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158   | --sharedst | --shareds | --shared | --share | --shar \
1159   | --sha | --sh)
1160     ac_prev=sharedstatedir ;;
1161   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164   | --sha=* | --sh=*)
1165     sharedstatedir=$ac_optarg ;;
1166
1167   -site | --site | --sit)
1168     ac_prev=site ;;
1169   -site=* | --site=* | --sit=*)
1170     site=$ac_optarg ;;
1171
1172   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173     ac_prev=srcdir ;;
1174   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175     srcdir=$ac_optarg ;;
1176
1177   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178   | --syscon | --sysco | --sysc | --sys | --sy)
1179     ac_prev=sysconfdir ;;
1180   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182     sysconfdir=$ac_optarg ;;
1183
1184   -target | --target | --targe | --targ | --tar | --ta | --t)
1185     ac_prev=target_alias ;;
1186   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187     target_alias=$ac_optarg ;;
1188
1189   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190     verbose=yes ;;
1191
1192   -version | --version | --versio | --versi | --vers | -V)
1193     ac_init_version=: ;;
1194
1195   -with-* | --with-*)
1196     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197     # Reject names that are not valid shell variable names.
1198     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199       as_fn_error $? "invalid package name: $ac_useropt"
1200     ac_useropt_orig=$ac_useropt
1201     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202     case $ac_user_opts in
1203       *"
1204 "with_$ac_useropt"
1205 "*) ;;
1206       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1207          ac_unrecognized_sep=', ';;
1208     esac
1209     eval with_$ac_useropt=\$ac_optarg ;;
1210
1211   -without-* | --without-*)
1212     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213     # Reject names that are not valid shell variable names.
1214     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215       as_fn_error $? "invalid package name: $ac_useropt"
1216     ac_useropt_orig=$ac_useropt
1217     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218     case $ac_user_opts in
1219       *"
1220 "with_$ac_useropt"
1221 "*) ;;
1222       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223          ac_unrecognized_sep=', ';;
1224     esac
1225     eval with_$ac_useropt=no ;;
1226
1227   --x)
1228     # Obsolete; use --with-x.
1229     with_x=yes ;;
1230
1231   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232   | --x-incl | --x-inc | --x-in | --x-i)
1233     ac_prev=x_includes ;;
1234   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236     x_includes=$ac_optarg ;;
1237
1238   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240     ac_prev=x_libraries ;;
1241   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243     x_libraries=$ac_optarg ;;
1244
1245   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1246 Try \`$0 --help' for more information"
1247     ;;
1248
1249   *=*)
1250     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251     # Reject names that are not valid shell variable names.
1252     case $ac_envvar in #(
1253       '' | [0-9]* | *[!_$as_cr_alnum]* )
1254       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1255     esac
1256     eval $ac_envvar=\$ac_optarg
1257     export $ac_envvar ;;
1258
1259   *)
1260     # FIXME: should be removed in autoconf 3.0.
1261     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1265     ;;
1266
1267   esac
1268 done
1269
1270 if test -n "$ac_prev"; then
1271   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272   as_fn_error $? "missing argument to $ac_option"
1273 fi
1274
1275 if test -n "$ac_unrecognized_opts"; then
1276   case $enable_option_checking in
1277     no) ;;
1278     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1279     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1280   esac
1281 fi
1282
1283 # Check all directory arguments for consistency.
1284 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285                 datadir sysconfdir sharedstatedir localstatedir includedir \
1286                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287                 libdir localedir mandir
1288 do
1289   eval ac_val=\$$ac_var
1290   # Remove trailing slashes.
1291   case $ac_val in
1292     */ )
1293       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1294       eval $ac_var=\$ac_val;;
1295   esac
1296   # Be sure to have absolute directory names.
1297   case $ac_val in
1298     [\\/$]* | ?:[\\/]* )  continue;;
1299     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1300   esac
1301   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1302 done
1303
1304 # There might be people who depend on the old broken behavior: `$host'
1305 # used to hold the argument of --host etc.
1306 # FIXME: To remove some day.
1307 build=$build_alias
1308 host=$host_alias
1309 target=$target_alias
1310
1311 # FIXME: To remove some day.
1312 if test "x$host_alias" != x; then
1313   if test "x$build_alias" = x; then
1314     cross_compiling=maybe
1315   elif test "x$build_alias" != "x$host_alias"; then
1316     cross_compiling=yes
1317   fi
1318 fi
1319
1320 ac_tool_prefix=
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322
1323 test "$silent" = yes && exec 6>/dev/null
1324
1325
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329   as_fn_error $? "working directory cannot be determined"
1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331   as_fn_error $? "pwd does not report name of working directory"
1332
1333
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336   ac_srcdir_defaulted=yes
1337   # Try the directory containing this script, then the parent directory.
1338   ac_confdir=`$as_dirname -- "$as_myself" ||
1339 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340          X"$as_myself" : 'X\(//\)[^/]' \| \
1341          X"$as_myself" : 'X\(//\)$' \| \
1342          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1343 $as_echo X"$as_myself" |
1344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345             s//\1/
1346             q
1347           }
1348           /^X\(\/\/\)[^/].*/{
1349             s//\1/
1350             q
1351           }
1352           /^X\(\/\/\)$/{
1353             s//\1/
1354             q
1355           }
1356           /^X\(\/\).*/{
1357             s//\1/
1358             q
1359           }
1360           s/.*/./; q'`
1361   srcdir=$ac_confdir
1362   if test ! -r "$srcdir/$ac_unique_file"; then
1363     srcdir=..
1364   fi
1365 else
1366   ac_srcdir_defaulted=no
1367 fi
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1371 fi
1372 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373 ac_abs_confdir=`(
1374         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1375         pwd)`
1376 # When building in place, set srcdir=.
1377 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378   srcdir=.
1379 fi
1380 # Remove unnecessary trailing slashes from srcdir.
1381 # Double slashes in file names in object file debugging info
1382 # mess up M-x gdb in Emacs.
1383 case $srcdir in
1384 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385 esac
1386 for ac_var in $ac_precious_vars; do
1387   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388   eval ac_env_${ac_var}_value=\$${ac_var}
1389   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391 done
1392
1393 #
1394 # Report the --help message.
1395 #
1396 if test "$ac_init_help" = "long"; then
1397   # Omit some internal or obsolete options to make the list less imposing.
1398   # This message is too long to be a string in the A/UX 3.1 sh.
1399   cat <<_ACEOF
1400 \`configure' configures pygobject 3.18.0 to adapt to many kinds of systems.
1401
1402 Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405 VAR=VALUE.  See below for descriptions of some of the useful variables.
1406
1407 Defaults for the options are specified in brackets.
1408
1409 Configuration:
1410   -h, --help              display this help and exit
1411       --help=short        display options specific to this package
1412       --help=recursive    display the short help of all the included packages
1413   -V, --version           display version information and exit
1414   -q, --quiet, --silent   do not print \`checking ...' messages
1415       --cache-file=FILE   cache test results in FILE [disabled]
1416   -C, --config-cache      alias for \`--cache-file=config.cache'
1417   -n, --no-create         do not create output files
1418       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1419
1420 Installation directories:
1421   --prefix=PREFIX         install architecture-independent files in PREFIX
1422                           [$ac_default_prefix]
1423   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1424                           [PREFIX]
1425
1426 By default, \`make install' will install all the files in
1427 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1428 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429 for instance \`--prefix=\$HOME'.
1430
1431 For better control, use the options below.
1432
1433 Fine tuning of the installation directories:
1434   --bindir=DIR            user executables [EPREFIX/bin]
1435   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1436   --libexecdir=DIR        program executables [EPREFIX/libexec]
1437   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1438   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1439   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1440   --libdir=DIR            object code libraries [EPREFIX/lib]
1441   --includedir=DIR        C header files [PREFIX/include]
1442   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1443   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1444   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1445   --infodir=DIR           info documentation [DATAROOTDIR/info]
1446   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1447   --mandir=DIR            man documentation [DATAROOTDIR/man]
1448   --docdir=DIR            documentation root [DATAROOTDIR/doc/pygobject]
1449   --htmldir=DIR           html documentation [DOCDIR]
1450   --dvidir=DIR            dvi documentation [DOCDIR]
1451   --pdfdir=DIR            pdf documentation [DOCDIR]
1452   --psdir=DIR             ps documentation [DOCDIR]
1453 _ACEOF
1454
1455   cat <<\_ACEOF
1456
1457 Program names:
1458   --program-prefix=PREFIX            prepend PREFIX to installed program names
1459   --program-suffix=SUFFIX            append SUFFIX to installed program names
1460   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1461
1462 System types:
1463   --build=BUILD     configure for building on BUILD [guessed]
1464   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1465 _ACEOF
1466 fi
1467
1468 if test -n "$ac_init_help"; then
1469   case $ac_init_help in
1470      short | recursive ) echo "Configuration of pygobject 3.18.0:";;
1471    esac
1472   cat <<\_ACEOF
1473
1474 Optional Features:
1475   --disable-option-checking  ignore unrecognized --enable/--with options
1476   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1477   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1478   --enable-silent-rules   less verbose build output (undo: "make V=1")
1479   --disable-silent-rules  verbose build output (undo: "make V=0")
1480   --enable-static[=PKGS]  build static libraries [default=no]
1481   --enable-shared[=PKGS]  build shared libraries [default=yes]
1482   --enable-fast-install[=PKGS]
1483                           optimize for fast installation [default=yes]
1484   --enable-dependency-tracking
1485                           do not reject slow dependency extractors
1486   --disable-dependency-tracking
1487                           speeds up one-time build
1488   --disable-libtool-lock  avoid locking (might break parallel builds)
1489   --disable-thread        Disable pygobject threading support
1490   --disable-glibtest      do not try to compile and run a test GLIB program
1491   --enable-cairo          Enable Cairo bindings using introspection
1492                           information
1493   --enable-compile-warnings=[no/minimum/yes/maximum/error]
1494                           Turn on compiler warnings
1495   --enable-iso-c          Try to warn if code is not ISO C
1496   --enable-code-coverage  Whether to enable code coverage support
1497
1498 Optional Packages:
1499   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1500   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1501   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1502                           both]
1503   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1504   --with-sysroot=DIR Search for dependent libraries within DIR
1505                         (or the compiler's sysroot if not specified).
1506   --with-python=PATH      Path to Python interpreter; searches $PATH if only a
1507                           program name is given; if not given, searches for a
1508                           few standard names such as "python3" or "python2"
1509   --without-common        For package maintainers: do not install Python
1510                           version independent files
1511   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1512
1513 Some influential environment variables:
1514   CC          C compiler command
1515   CFLAGS      C compiler flags
1516   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1517               nonstandard directory <lib dir>
1518   LIBS        libraries to pass to the linker, e.g. -l<library>
1519   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520               you have headers in a nonstandard directory <include dir>
1521   CPP         C preprocessor
1522   PYTHON      the Python interpreter
1523   PKG_CONFIG  path to pkg-config utility
1524   PKG_CONFIG_PATH
1525               directories to add to pkg-config's search path
1526   PKG_CONFIG_LIBDIR
1527               path overriding pkg-config's built-in search path
1528   FFI_CFLAGS  C compiler flags for FFI, overriding pkg-config
1529   FFI_LIBS    linker flags for FFI, overriding pkg-config
1530   GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
1531   GIO_LIBS    linker flags for GIO, overriding pkg-config
1532   GI_CFLAGS   C compiler flags for GI, overriding pkg-config
1533   GI_LIBS     linker flags for GI, overriding pkg-config
1534   CAIRO_CFLAGS
1535               C compiler flags for CAIRO, overriding pkg-config
1536   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1537   PYCAIRO_CFLAGS
1538               C compiler flags for PYCAIRO, overriding pkg-config
1539   PYCAIRO_LIBS
1540               linker flags for PYCAIRO, overriding pkg-config
1541
1542 Use these variables to override the choices made by `configure' or to help
1543 it to find libraries and programs with nonstandard names/locations.
1544
1545 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
1546 pygobject home page: <https://wiki.gnome.org/Projects/PyGObject/>.
1547 _ACEOF
1548 ac_status=$?
1549 fi
1550
1551 if test "$ac_init_help" = "recursive"; then
1552   # If there are subdirs, report their specific --help.
1553   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1554     test -d "$ac_dir" ||
1555       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1556       continue
1557     ac_builddir=.
1558
1559 case "$ac_dir" in
1560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *)
1562   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1563   # A ".." for each directory in $ac_dir_suffix.
1564   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1565   case $ac_top_builddir_sub in
1566   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568   esac ;;
1569 esac
1570 ac_abs_top_builddir=$ac_pwd
1571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572 # for backward compatibility:
1573 ac_top_builddir=$ac_top_build_prefix
1574
1575 case $srcdir in
1576   .)  # We are building in place.
1577     ac_srcdir=.
1578     ac_top_srcdir=$ac_top_builddir_sub
1579     ac_abs_top_srcdir=$ac_pwd ;;
1580   [\\/]* | ?:[\\/]* )  # Absolute name.
1581     ac_srcdir=$srcdir$ac_dir_suffix;
1582     ac_top_srcdir=$srcdir
1583     ac_abs_top_srcdir=$srcdir ;;
1584   *) # Relative name.
1585     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586     ac_top_srcdir=$ac_top_build_prefix$srcdir
1587     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1588 esac
1589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1590
1591     cd "$ac_dir" || { ac_status=$?; continue; }
1592     # Check for guested configure.
1593     if test -f "$ac_srcdir/configure.gnu"; then
1594       echo &&
1595       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1596     elif test -f "$ac_srcdir/configure"; then
1597       echo &&
1598       $SHELL "$ac_srcdir/configure" --help=recursive
1599     else
1600       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1601     fi || ac_status=$?
1602     cd "$ac_pwd" || { ac_status=$?; break; }
1603   done
1604 fi
1605
1606 test -n "$ac_init_help" && exit $ac_status
1607 if $ac_init_version; then
1608   cat <<\_ACEOF
1609 pygobject configure 3.18.0
1610 generated by GNU Autoconf 2.69
1611
1612 Copyright (C) 2012 Free Software Foundation, Inc.
1613 This configure script is free software; the Free Software Foundation
1614 gives unlimited permission to copy, distribute and modify it.
1615 _ACEOF
1616   exit
1617 fi
1618
1619 ## ------------------------ ##
1620 ## Autoconf initialization. ##
1621 ## ------------------------ ##
1622
1623 # ac_fn_c_try_compile LINENO
1624 # --------------------------
1625 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_c_try_compile ()
1627 {
1628   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629   rm -f conftest.$ac_objext
1630   if { { ac_try="$ac_compile"
1631 case "(($ac_try" in
1632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633   *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637   (eval "$ac_compile") 2>conftest.err
1638   ac_status=$?
1639   if test -s conftest.err; then
1640     grep -v '^ *+' conftest.err >conftest.er1
1641     cat conftest.er1 >&5
1642     mv -f conftest.er1 conftest.err
1643   fi
1644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645   test $ac_status = 0; } && {
1646          test -z "$ac_c_werror_flag" ||
1647          test ! -s conftest.err
1648        } && test -s conftest.$ac_objext; then :
1649   ac_retval=0
1650 else
1651   $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654         ac_retval=1
1655 fi
1656   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657   as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_compile
1660
1661 # ac_fn_c_try_link LINENO
1662 # -----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_link ()
1665 {
1666   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667   rm -f conftest.$ac_objext conftest$ac_exeext
1668   if { { ac_try="$ac_link"
1669 case "(($ac_try" in
1670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671   *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675   (eval "$ac_link") 2>conftest.err
1676   ac_status=$?
1677   if test -s conftest.err; then
1678     grep -v '^ *+' conftest.err >conftest.er1
1679     cat conftest.er1 >&5
1680     mv -f conftest.er1 conftest.err
1681   fi
1682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683   test $ac_status = 0; } && {
1684          test -z "$ac_c_werror_flag" ||
1685          test ! -s conftest.err
1686        } && test -s conftest$ac_exeext && {
1687          test "$cross_compiling" = yes ||
1688          test -x conftest$ac_exeext
1689        }; then :
1690   ac_retval=0
1691 else
1692   $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695         ac_retval=1
1696 fi
1697   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1698   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1699   # interfere with the next link command; also delete a directory that is
1700   # left behind by Apple's compiler.  We do this before executing the actions.
1701   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703   as_fn_set_status $ac_retval
1704
1705 } # ac_fn_c_try_link
1706
1707 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1708 # -------------------------------------------------------
1709 # Tests whether HEADER exists and can be compiled using the include files in
1710 # INCLUDES, setting the cache variable VAR accordingly.
1711 ac_fn_c_check_header_compile ()
1712 {
1713   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715 $as_echo_n "checking for $2... " >&6; }
1716 if eval \${$3+:} false; then :
1717   $as_echo_n "(cached) " >&6
1718 else
1719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h.  */
1721 $4
1722 #include <$2>
1723 _ACEOF
1724 if ac_fn_c_try_compile "$LINENO"; then :
1725   eval "$3=yes"
1726 else
1727   eval "$3=no"
1728 fi
1729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1730 fi
1731 eval ac_res=\$$3
1732                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1734   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735
1736 } # ac_fn_c_check_header_compile
1737
1738 # ac_fn_c_try_cpp LINENO
1739 # ----------------------
1740 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1741 ac_fn_c_try_cpp ()
1742 {
1743   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744   if { { ac_try="$ac_cpp conftest.$ac_ext"
1745 case "(($ac_try" in
1746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747   *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1752   ac_status=$?
1753   if test -s conftest.err; then
1754     grep -v '^ *+' conftest.err >conftest.er1
1755     cat conftest.er1 >&5
1756     mv -f conftest.er1 conftest.err
1757   fi
1758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759   test $ac_status = 0; } > conftest.i && {
1760          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1761          test ! -s conftest.err
1762        }; then :
1763   ac_retval=0
1764 else
1765   $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1767
1768     ac_retval=1
1769 fi
1770   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771   as_fn_set_status $ac_retval
1772
1773 } # ac_fn_c_try_cpp
1774
1775 # ac_fn_c_try_run LINENO
1776 # ----------------------
1777 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1778 # that executables *can* be run.
1779 ac_fn_c_try_run ()
1780 {
1781   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782   if { { ac_try="$ac_link"
1783 case "(($ac_try" in
1784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785   *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789   (eval "$ac_link") 2>&5
1790   ac_status=$?
1791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1793   { { case "(($ac_try" in
1794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795   *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799   (eval "$ac_try") 2>&5
1800   ac_status=$?
1801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802   test $ac_status = 0; }; }; then :
1803   ac_retval=0
1804 else
1805   $as_echo "$as_me: program exited with status $ac_status" >&5
1806        $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1808
1809        ac_retval=$ac_status
1810 fi
1811   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1812   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813   as_fn_set_status $ac_retval
1814
1815 } # ac_fn_c_try_run
1816
1817 # ac_fn_c_check_func LINENO FUNC VAR
1818 # ----------------------------------
1819 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1820 ac_fn_c_check_func ()
1821 {
1822   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826   $as_echo_n "(cached) " >&6
1827 else
1828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h.  */
1830 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1832 #define $2 innocuous_$2
1833
1834 /* System header to define __stub macros and hopefully few prototypes,
1835     which can conflict with char $2 (); below.
1836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1837     <limits.h> exists even on freestanding compilers.  */
1838
1839 #ifdef __STDC__
1840 # include <limits.h>
1841 #else
1842 # include <assert.h>
1843 #endif
1844
1845 #undef $2
1846
1847 /* Override any GCC internal prototype to avoid an error.
1848    Use char because int might match the return type of a GCC
1849    builtin and then its argument prototype would still apply.  */
1850 #ifdef __cplusplus
1851 extern "C"
1852 #endif
1853 char $2 ();
1854 /* The GNU C library defines this for functions which it implements
1855     to always fail with ENOSYS.  Some functions are actually named
1856     something starting with __ and the normal name is an alias.  */
1857 #if defined __stub_$2 || defined __stub___$2
1858 choke me
1859 #endif
1860
1861 int
1862 main ()
1863 {
1864 return $2 ();
1865   ;
1866   return 0;
1867 }
1868 _ACEOF
1869 if ac_fn_c_try_link "$LINENO"; then :
1870   eval "$3=yes"
1871 else
1872   eval "$3=no"
1873 fi
1874 rm -f core conftest.err conftest.$ac_objext \
1875     conftest$ac_exeext conftest.$ac_ext
1876 fi
1877 eval ac_res=\$$3
1878                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1880   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881
1882 } # ac_fn_c_check_func
1883 cat >config.log <<_ACEOF
1884 This file contains any messages produced by compilers while
1885 running configure, to aid debugging if configure makes a mistake.
1886
1887 It was created by pygobject $as_me 3.18.0, which was
1888 generated by GNU Autoconf 2.69.  Invocation command line was
1889
1890   $ $0 $@
1891
1892 _ACEOF
1893 exec 5>>config.log
1894 {
1895 cat <<_ASUNAME
1896 ## --------- ##
1897 ## Platform. ##
1898 ## --------- ##
1899
1900 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1901 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1902 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1903 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1904 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1905
1906 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1907 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1908
1909 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1910 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1911 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1912 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1913 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1914 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1915 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1916
1917 _ASUNAME
1918
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1921 do
1922   IFS=$as_save_IFS
1923   test -z "$as_dir" && as_dir=.
1924     $as_echo "PATH: $as_dir"
1925   done
1926 IFS=$as_save_IFS
1927
1928 } >&5
1929
1930 cat >&5 <<_ACEOF
1931
1932
1933 ## ----------- ##
1934 ## Core tests. ##
1935 ## ----------- ##
1936
1937 _ACEOF
1938
1939
1940 # Keep a trace of the command line.
1941 # Strip out --no-create and --no-recursion so they do not pile up.
1942 # Strip out --silent because we don't want to record it for future runs.
1943 # Also quote any args containing shell meta-characters.
1944 # Make two passes to allow for proper duplicate-argument suppression.
1945 ac_configure_args=
1946 ac_configure_args0=
1947 ac_configure_args1=
1948 ac_must_keep_next=false
1949 for ac_pass in 1 2
1950 do
1951   for ac_arg
1952   do
1953     case $ac_arg in
1954     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1955     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1956     | -silent | --silent | --silen | --sile | --sil)
1957       continue ;;
1958     *\'*)
1959       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1960     esac
1961     case $ac_pass in
1962     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1963     2)
1964       as_fn_append ac_configure_args1 " '$ac_arg'"
1965       if test $ac_must_keep_next = true; then
1966         ac_must_keep_next=false # Got value, back to normal.
1967       else
1968         case $ac_arg in
1969           *=* | --config-cache | -C | -disable-* | --disable-* \
1970           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1971           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1972           | -with-* | --with-* | -without-* | --without-* | --x)
1973             case "$ac_configure_args0 " in
1974               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1975             esac
1976             ;;
1977           -* ) ac_must_keep_next=true ;;
1978         esac
1979       fi
1980       as_fn_append ac_configure_args " '$ac_arg'"
1981       ;;
1982     esac
1983   done
1984 done
1985 { ac_configure_args0=; unset ac_configure_args0;}
1986 { ac_configure_args1=; unset ac_configure_args1;}
1987
1988 # When interrupted or exit'd, cleanup temporary files, and complete
1989 # config.log.  We remove comments because anyway the quotes in there
1990 # would cause problems or look ugly.
1991 # WARNING: Use '\'' to represent an apostrophe within the trap.
1992 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1993 trap 'exit_status=$?
1994   # Save into config.log some information that might help in debugging.
1995   {
1996     echo
1997
1998     $as_echo "## ---------------- ##
1999 ## Cache variables. ##
2000 ## ---------------- ##"
2001     echo
2002     # The following way of writing the cache mishandles newlines in values,
2003 (
2004   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2005     eval ac_val=\$$ac_var
2006     case $ac_val in #(
2007     *${as_nl}*)
2008       case $ac_var in #(
2009       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2010 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2011       esac
2012       case $ac_var in #(
2013       _ | IFS | as_nl) ;; #(
2014       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2015       *) { eval $ac_var=; unset $ac_var;} ;;
2016       esac ;;
2017     esac
2018   done
2019   (set) 2>&1 |
2020     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2021     *${as_nl}ac_space=\ *)
2022       sed -n \
2023         "s/'\''/'\''\\\\'\'''\''/g;
2024           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2025       ;; #(
2026     *)
2027       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2028       ;;
2029     esac |
2030     sort
2031 )
2032     echo
2033
2034     $as_echo "## ----------------- ##
2035 ## Output variables. ##
2036 ## ----------------- ##"
2037     echo
2038     for ac_var in $ac_subst_vars
2039     do
2040       eval ac_val=\$$ac_var
2041       case $ac_val in
2042       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043       esac
2044       $as_echo "$ac_var='\''$ac_val'\''"
2045     done | sort
2046     echo
2047
2048     if test -n "$ac_subst_files"; then
2049       $as_echo "## ------------------- ##
2050 ## File substitutions. ##
2051 ## ------------------- ##"
2052       echo
2053       for ac_var in $ac_subst_files
2054       do
2055         eval ac_val=\$$ac_var
2056         case $ac_val in
2057         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2058         esac
2059         $as_echo "$ac_var='\''$ac_val'\''"
2060       done | sort
2061       echo
2062     fi
2063
2064     if test -s confdefs.h; then
2065       $as_echo "## ----------- ##
2066 ## confdefs.h. ##
2067 ## ----------- ##"
2068       echo
2069       cat confdefs.h
2070       echo
2071     fi
2072     test "$ac_signal" != 0 &&
2073       $as_echo "$as_me: caught signal $ac_signal"
2074     $as_echo "$as_me: exit $exit_status"
2075   } >&5
2076   rm -f core *.core core.conftest.* &&
2077     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2078     exit $exit_status
2079 ' 0
2080 for ac_signal in 1 2 13 15; do
2081   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2082 done
2083 ac_signal=0
2084
2085 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2086 rm -f -r conftest* confdefs.h
2087
2088 $as_echo "/* confdefs.h */" > confdefs.h
2089
2090 # Predefined preprocessor variables.
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_NAME "$PACKAGE_NAME"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_STRING "$PACKAGE_STRING"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2110 _ACEOF
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_URL "$PACKAGE_URL"
2114 _ACEOF
2115
2116
2117 # Let the site file select an alternate cache file if it wants to.
2118 # Prefer an explicitly selected file to automatically selected ones.
2119 ac_site_file1=NONE
2120 ac_site_file2=NONE
2121 if test -n "$CONFIG_SITE"; then
2122   # We do not want a PATH search for config.site.
2123   case $CONFIG_SITE in #((
2124     -*)  ac_site_file1=./$CONFIG_SITE;;
2125     */*) ac_site_file1=$CONFIG_SITE;;
2126     *)   ac_site_file1=./$CONFIG_SITE;;
2127   esac
2128 elif test "x$prefix" != xNONE; then
2129   ac_site_file1=$prefix/share/config.site
2130   ac_site_file2=$prefix/etc/config.site
2131 else
2132   ac_site_file1=$ac_default_prefix/share/config.site
2133   ac_site_file2=$ac_default_prefix/etc/config.site
2134 fi
2135 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2136 do
2137   test "x$ac_site_file" = xNONE && continue
2138   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2139     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2140 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2141     sed 's/^/| /' "$ac_site_file" >&5
2142     . "$ac_site_file" \
2143       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2145 as_fn_error $? "failed to load site script $ac_site_file
2146 See \`config.log' for more details" "$LINENO" 5; }
2147   fi
2148 done
2149
2150 if test -r "$cache_file"; then
2151   # Some versions of bash will fail to source /dev/null (special files
2152   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2153   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2154     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2155 $as_echo "$as_me: loading cache $cache_file" >&6;}
2156     case $cache_file in
2157       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2158       *)                      . "./$cache_file";;
2159     esac
2160   fi
2161 else
2162   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2163 $as_echo "$as_me: creating cache $cache_file" >&6;}
2164   >$cache_file
2165 fi
2166
2167 # Check that the precious variables saved in the cache have kept the same
2168 # value.
2169 ac_cache_corrupted=false
2170 for ac_var in $ac_precious_vars; do
2171   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2172   eval ac_new_set=\$ac_env_${ac_var}_set
2173   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2174   eval ac_new_val=\$ac_env_${ac_var}_value
2175   case $ac_old_set,$ac_new_set in
2176     set,)
2177       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2178 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2179       ac_cache_corrupted=: ;;
2180     ,set)
2181       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2182 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2183       ac_cache_corrupted=: ;;
2184     ,);;
2185     *)
2186       if test "x$ac_old_val" != "x$ac_new_val"; then
2187         # differences in whitespace do not lead to failure.
2188         ac_old_val_w=`echo x $ac_old_val`
2189         ac_new_val_w=`echo x $ac_new_val`
2190         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2191           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2192 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2193           ac_cache_corrupted=:
2194         else
2195           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2196 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2197           eval $ac_var=\$ac_old_val
2198         fi
2199         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2200 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2201         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2202 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2203       fi;;
2204   esac
2205   # Pass precious variables to config.status.
2206   if test "$ac_new_set" = set; then
2207     case $ac_new_val in
2208     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2209     *) ac_arg=$ac_var=$ac_new_val ;;
2210     esac
2211     case " $ac_configure_args " in
2212       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2213       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2214     esac
2215   fi
2216 done
2217 if $ac_cache_corrupted; then
2218   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2220   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2221 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2222   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2223 fi
2224 ## -------------------- ##
2225 ## Main body of script. ##
2226 ## -------------------- ##
2227
2228 ac_ext=c
2229 ac_cpp='$CPP $CPPFLAGS'
2230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2233
2234
2235 ACLOCAL_AMFLAGS="-I m4 -I ."
2236
2237
2238
2239
2240
2241 $as_echo "#define PYGOBJECT_MAJOR_VERSION 3" >>confdefs.h
2242
2243 PYGOBJECT_MAJOR_VERSION=3
2244
2245
2246 $as_echo "#define PYGOBJECT_MINOR_VERSION 18" >>confdefs.h
2247
2248 PYGOBJECT_MINOR_VERSION=18
2249
2250
2251 $as_echo "#define PYGOBJECT_MICRO_VERSION 0" >>confdefs.h
2252
2253 PYGOBJECT_MICRO_VERSION=0
2254
2255
2256 ac_config_headers="$ac_config_headers config.h"
2257
2258 # Check whether --enable-silent-rules was given.
2259 if test "${enable_silent_rules+set}" = set; then :
2260   enableval=$enable_silent_rules;
2261 fi
2262
2263 case $enable_silent_rules in # (((
2264   yes) AM_DEFAULT_VERBOSITY=0;;
2265    no) AM_DEFAULT_VERBOSITY=1;;
2266     *) AM_DEFAULT_VERBOSITY=0;;
2267 esac
2268 am_make=${MAKE-make}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2270 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2271 if ${am_cv_make_support_nested_variables+:} false; then :
2272   $as_echo_n "(cached) " >&6
2273 else
2274   if $as_echo 'TRUE=$(BAR$(V))
2275 BAR0=false
2276 BAR1=true
2277 V=1
2278 am__doit:
2279         @$(TRUE)
2280 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2281   am_cv_make_support_nested_variables=yes
2282 else
2283   am_cv_make_support_nested_variables=no
2284 fi
2285 fi
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2287 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2288 if test $am_cv_make_support_nested_variables = yes; then
2289     AM_V='$(V)'
2290   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2291 else
2292   AM_V=$AM_DEFAULT_VERBOSITY
2293   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2294 fi
2295 AM_BACKSLASH='\'
2296
2297 am__api_version='1.14'
2298
2299 ac_aux_dir=
2300 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2301   if test -f "$ac_dir/install-sh"; then
2302     ac_aux_dir=$ac_dir
2303     ac_install_sh="$ac_aux_dir/install-sh -c"
2304     break
2305   elif test -f "$ac_dir/install.sh"; then
2306     ac_aux_dir=$ac_dir
2307     ac_install_sh="$ac_aux_dir/install.sh -c"
2308     break
2309   elif test -f "$ac_dir/shtool"; then
2310     ac_aux_dir=$ac_dir
2311     ac_install_sh="$ac_aux_dir/shtool install -c"
2312     break
2313   fi
2314 done
2315 if test -z "$ac_aux_dir"; then
2316   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2317 fi
2318
2319 # These three variables are undocumented and unsupported,
2320 # and are intended to be withdrawn in a future Autoconf release.
2321 # They can cause serious problems if a builder's source tree is in a directory
2322 # whose full name contains unusual characters.
2323 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2324 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2325 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2326
2327
2328 # Find a good install program.  We prefer a C program (faster),
2329 # so one script is as good as another.  But avoid the broken or
2330 # incompatible versions:
2331 # SysV /etc/install, /usr/sbin/install
2332 # SunOS /usr/etc/install
2333 # IRIX /sbin/install
2334 # AIX /bin/install
2335 # AmigaOS /C/install, which installs bootblocks on floppy discs
2336 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2337 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2338 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2339 # OS/2's system install, which has a completely different semantic
2340 # ./install, which can be erroneously created by make from ./install.sh.
2341 # Reject install programs that cannot install multiple files.
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2343 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2344 if test -z "$INSTALL"; then
2345 if ${ac_cv_path_install+:} false; then :
2346   $as_echo_n "(cached) " >&6
2347 else
2348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 for as_dir in $PATH
2350 do
2351   IFS=$as_save_IFS
2352   test -z "$as_dir" && as_dir=.
2353     # Account for people who put trailing slashes in PATH elements.
2354 case $as_dir/ in #((
2355   ./ | .// | /[cC]/* | \
2356   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2357   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2358   /usr/ucb/* ) ;;
2359   *)
2360     # OSF1 and SCO ODT 3.0 have their own names for install.
2361     # Don't use installbsd from OSF since it installs stuff as root
2362     # by default.
2363     for ac_prog in ginstall scoinst install; do
2364       for ac_exec_ext in '' $ac_executable_extensions; do
2365         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2366           if test $ac_prog = install &&
2367             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2368             # AIX install.  It has an incompatible calling convention.
2369             :
2370           elif test $ac_prog = install &&
2371             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2372             # program-specific install script used by HP pwplus--don't use.
2373             :
2374           else
2375             rm -rf conftest.one conftest.two conftest.dir
2376             echo one > conftest.one
2377             echo two > conftest.two
2378             mkdir conftest.dir
2379             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2380               test -s conftest.one && test -s conftest.two &&
2381               test -s conftest.dir/conftest.one &&
2382               test -s conftest.dir/conftest.two
2383             then
2384               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2385               break 3
2386             fi
2387           fi
2388         fi
2389       done
2390     done
2391     ;;
2392 esac
2393
2394   done
2395 IFS=$as_save_IFS
2396
2397 rm -rf conftest.one conftest.two conftest.dir
2398
2399 fi
2400   if test "${ac_cv_path_install+set}" = set; then
2401     INSTALL=$ac_cv_path_install
2402   else
2403     # As a last resort, use the slow shell script.  Don't cache a
2404     # value for INSTALL within a source directory, because that will
2405     # break other packages using the cache if that directory is
2406     # removed, or if the value is a relative name.
2407     INSTALL=$ac_install_sh
2408   fi
2409 fi
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2411 $as_echo "$INSTALL" >&6; }
2412
2413 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2414 # It thinks the first close brace ends the variable substitution.
2415 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2416
2417 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2418
2419 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2420
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2422 $as_echo_n "checking whether build environment is sane... " >&6; }
2423 # Reject unsafe characters in $srcdir or the absolute working directory
2424 # name.  Accept space and tab only in the latter.
2425 am_lf='
2426 '
2427 case `pwd` in
2428   *[\\\"\#\$\&\'\`$am_lf]*)
2429     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2430 esac
2431 case $srcdir in
2432   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2433     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2434 esac
2435
2436 # Do 'set' in a subshell so we don't clobber the current shell's
2437 # arguments.  Must try -L first in case configure is actually a
2438 # symlink; some systems play weird games with the mod time of symlinks
2439 # (eg FreeBSD returns the mod time of the symlink's containing
2440 # directory).
2441 if (
2442    am_has_slept=no
2443    for am_try in 1 2; do
2444      echo "timestamp, slept: $am_has_slept" > conftest.file
2445      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2446      if test "$*" = "X"; then
2447         # -L didn't work.
2448         set X `ls -t "$srcdir/configure" conftest.file`
2449      fi
2450      if test "$*" != "X $srcdir/configure conftest.file" \
2451         && test "$*" != "X conftest.file $srcdir/configure"; then
2452
2453         # If neither matched, then we have a broken ls.  This can happen
2454         # if, for instance, CONFIG_SHELL is bash and it inherits a
2455         # broken ls alias from the environment.  This has actually
2456         # happened.  Such a system could not be considered "sane".
2457         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2458   alias in your environment" "$LINENO" 5
2459      fi
2460      if test "$2" = conftest.file || test $am_try -eq 2; then
2461        break
2462      fi
2463      # Just in case.
2464      sleep 1
2465      am_has_slept=yes
2466    done
2467    test "$2" = conftest.file
2468    )
2469 then
2470    # Ok.
2471    :
2472 else
2473    as_fn_error $? "newly created file is older than distributed files!
2474 Check your system clock" "$LINENO" 5
2475 fi
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2477 $as_echo "yes" >&6; }
2478 # If we didn't sleep, we still need to ensure time stamps of config.status and
2479 # generated files are strictly newer.
2480 am_sleep_pid=
2481 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2482   ( sleep 1 ) &
2483   am_sleep_pid=$!
2484 fi
2485
2486 rm -f conftest.file
2487
2488 test "$program_prefix" != NONE &&
2489   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2490 # Use a double $ so make ignores it.
2491 test "$program_suffix" != NONE &&
2492   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2493 # Double any \ or $.
2494 # By default was `s,x,x', remove it if useless.
2495 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2496 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2497
2498 # expand $ac_aux_dir to an absolute path
2499 am_aux_dir=`cd $ac_aux_dir && pwd`
2500
2501 if test x"${MISSING+set}" != xset; then
2502   case $am_aux_dir in
2503   *\ * | *\     *)
2504     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2505   *)
2506     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2507   esac
2508 fi
2509 # Use eval to expand $SHELL
2510 if eval "$MISSING --is-lightweight"; then
2511   am_missing_run="$MISSING "
2512 else
2513   am_missing_run=
2514   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2515 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2516 fi
2517
2518 if test x"${install_sh}" != xset; then
2519   case $am_aux_dir in
2520   *\ * | *\     *)
2521     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2522   *)
2523     install_sh="\${SHELL} $am_aux_dir/install-sh"
2524   esac
2525 fi
2526
2527 # Installed binaries are usually stripped using 'strip' when the user
2528 # run "make install-strip".  However 'strip' might not be the right
2529 # tool to use in cross-compilation environments, therefore Automake
2530 # will honor the 'STRIP' environment variable to overrule this program.
2531 if test "$cross_compiling" != no; then
2532   if test -n "$ac_tool_prefix"; then
2533   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}strip; ac_word=$2
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2536 $as_echo_n "checking for $ac_word... " >&6; }
2537 if ${ac_cv_prog_STRIP+:} false; then :
2538   $as_echo_n "(cached) " >&6
2539 else
2540   if test -n "$STRIP"; then
2541   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546   IFS=$as_save_IFS
2547   test -z "$as_dir" && as_dir=.
2548     for ac_exec_ext in '' $ac_executable_extensions; do
2549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2550     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2552     break 2
2553   fi
2554 done
2555   done
2556 IFS=$as_save_IFS
2557
2558 fi
2559 fi
2560 STRIP=$ac_cv_prog_STRIP
2561 if test -n "$STRIP"; then
2562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2563 $as_echo "$STRIP" >&6; }
2564 else
2565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2566 $as_echo "no" >&6; }
2567 fi
2568
2569
2570 fi
2571 if test -z "$ac_cv_prog_STRIP"; then
2572   ac_ct_STRIP=$STRIP
2573   # Extract the first word of "strip", so it can be a program name with args.
2574 set dummy strip; ac_word=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2578   $as_echo_n "(cached) " >&6
2579 else
2580   if test -n "$ac_ct_STRIP"; then
2581   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2582 else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2585 do
2586   IFS=$as_save_IFS
2587   test -z "$as_dir" && as_dir=.
2588     for ac_exec_ext in '' $ac_executable_extensions; do
2589   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2590     ac_cv_prog_ac_ct_STRIP="strip"
2591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592     break 2
2593   fi
2594 done
2595   done
2596 IFS=$as_save_IFS
2597
2598 fi
2599 fi
2600 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2601 if test -n "$ac_ct_STRIP"; then
2602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2603 $as_echo "$ac_ct_STRIP" >&6; }
2604 else
2605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2607 fi
2608
2609   if test "x$ac_ct_STRIP" = x; then
2610     STRIP=":"
2611   else
2612     case $cross_compiling:$ac_tool_warned in
2613 yes:)
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2616 ac_tool_warned=yes ;;
2617 esac
2618     STRIP=$ac_ct_STRIP
2619   fi
2620 else
2621   STRIP="$ac_cv_prog_STRIP"
2622 fi
2623
2624 fi
2625 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2626
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2628 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2629 if test -z "$MKDIR_P"; then
2630   if ${ac_cv_path_mkdir+:} false; then :
2631   $as_echo_n "(cached) " >&6
2632 else
2633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2635 do
2636   IFS=$as_save_IFS
2637   test -z "$as_dir" && as_dir=.
2638     for ac_prog in mkdir gmkdir; do
2639          for ac_exec_ext in '' $ac_executable_extensions; do
2640            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2641            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2642              'mkdir (GNU coreutils) '* | \
2643              'mkdir (coreutils) '* | \
2644              'mkdir (fileutils) '4.1*)
2645                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2646                break 3;;
2647            esac
2648          done
2649        done
2650   done
2651 IFS=$as_save_IFS
2652
2653 fi
2654
2655   test -d ./--version && rmdir ./--version
2656   if test "${ac_cv_path_mkdir+set}" = set; then
2657     MKDIR_P="$ac_cv_path_mkdir -p"
2658   else
2659     # As a last resort, use the slow shell script.  Don't cache a
2660     # value for MKDIR_P within a source directory, because that will
2661     # break other packages using the cache if that directory is
2662     # removed, or if the value is a relative name.
2663     MKDIR_P="$ac_install_sh -d"
2664   fi
2665 fi
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2667 $as_echo "$MKDIR_P" >&6; }
2668
2669 for ac_prog in gawk mawk nawk awk
2670 do
2671   # Extract the first word of "$ac_prog", so it can be a program name with args.
2672 set dummy $ac_prog; ac_word=$2
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 $as_echo_n "checking for $ac_word... " >&6; }
2675 if ${ac_cv_prog_AWK+:} false; then :
2676   $as_echo_n "(cached) " >&6
2677 else
2678   if test -n "$AWK"; then
2679   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2683 do
2684   IFS=$as_save_IFS
2685   test -z "$as_dir" && as_dir=.
2686     for ac_exec_ext in '' $ac_executable_extensions; do
2687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688     ac_cv_prog_AWK="$ac_prog"
2689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690     break 2
2691   fi
2692 done
2693   done
2694 IFS=$as_save_IFS
2695
2696 fi
2697 fi
2698 AWK=$ac_cv_prog_AWK
2699 if test -n "$AWK"; then
2700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2701 $as_echo "$AWK" >&6; }
2702 else
2703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704 $as_echo "no" >&6; }
2705 fi
2706
2707
2708   test -n "$AWK" && break
2709 done
2710
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2712 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2713 set x ${MAKE-make}
2714 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2715 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2716   $as_echo_n "(cached) " >&6
2717 else
2718   cat >conftest.make <<\_ACEOF
2719 SHELL = /bin/sh
2720 all:
2721         @echo '@@@%%%=$(MAKE)=@@@%%%'
2722 _ACEOF
2723 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2724 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2725   *@@@%%%=?*=@@@%%%*)
2726     eval ac_cv_prog_make_${ac_make}_set=yes;;
2727   *)
2728     eval ac_cv_prog_make_${ac_make}_set=no;;
2729 esac
2730 rm -f conftest.make
2731 fi
2732 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2734 $as_echo "yes" >&6; }
2735   SET_MAKE=
2736 else
2737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2739   SET_MAKE="MAKE=${MAKE-make}"
2740 fi
2741
2742 rm -rf .tst 2>/dev/null
2743 mkdir .tst 2>/dev/null
2744 if test -d .tst; then
2745   am__leading_dot=.
2746 else
2747   am__leading_dot=_
2748 fi
2749 rmdir .tst 2>/dev/null
2750
2751 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2752   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2753   # is not polluted with repeated "-I."
2754   am__isrc=' -I$(srcdir)'
2755   # test to see if srcdir already configured
2756   if test -f $srcdir/config.status; then
2757     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2758   fi
2759 fi
2760
2761 # test whether we have cygpath
2762 if test -z "$CYGPATH_W"; then
2763   if (cygpath --version) >/dev/null 2>/dev/null; then
2764     CYGPATH_W='cygpath -w'
2765   else
2766     CYGPATH_W=echo
2767   fi
2768 fi
2769
2770
2771 # Define the identity of the package.
2772  PACKAGE='pygobject'
2773  VERSION='3.18.0'
2774
2775
2776 cat >>confdefs.h <<_ACEOF
2777 #define PACKAGE "$PACKAGE"
2778 _ACEOF
2779
2780
2781 cat >>confdefs.h <<_ACEOF
2782 #define VERSION "$VERSION"
2783 _ACEOF
2784
2785 # Some tools Automake needs.
2786
2787 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2788
2789
2790 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2791
2792
2793 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2794
2795
2796 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2797
2798
2799 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2800
2801 # For better backward compatibility.  To be removed once Automake 1.9.x
2802 # dies out for good.  For more background, see:
2803 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2804 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2805 mkdir_p='$(MKDIR_P)'
2806
2807 # We need awk for the "check" target.  The system "awk" is bad on
2808 # some platforms.
2809 # Always define AMTAR for backward compatibility.  Yes, it's still used
2810 # in the wild :-(  We should find a proper way to deprecate it ...
2811 AMTAR='$${TAR-tar}'
2812
2813
2814 # We'll loop over all known methods to create a tar archive until one works.
2815 _am_tools='gnutar  pax cpio none'
2816
2817 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2818
2819
2820
2821
2822
2823
2824 # POSIX will say in a future version that running "rm -f" with no argument
2825 # is OK; and we want to be able to make that assumption in our Makefile
2826 # recipes.  So use an aggressive probe to check that the usage we want is
2827 # actually supported "in the wild" to an acceptable degree.
2828 # See automake bug#10828.
2829 # To make any issue more visible, cause the running configure to be aborted
2830 # by default if the 'rm' program in use doesn't match our expectations; the
2831 # user can still override this though.
2832 if rm -f && rm -fr && rm -rf; then : OK; else
2833   cat >&2 <<'END'
2834 Oops!
2835
2836 Your 'rm' program seems unable to run without file operands specified
2837 on the command line, even when the '-f' option is present.  This is contrary
2838 to the behaviour of most rm programs out there, and not conforming with
2839 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2840
2841 Please tell bug-automake@gnu.org about your system, including the value
2842 of your $PATH and any error possibly output before this message.  This
2843 can help us improve future automake versions.
2844
2845 END
2846   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2847     echo 'Configuration will proceed anyway, since you have set the' >&2
2848     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2849     echo >&2
2850   else
2851     cat >&2 <<'END'
2852 Aborting the configuration process, to ensure you take notice of the issue.
2853
2854 You can download and install GNU coreutils to get an 'rm' implementation
2855 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2856
2857 If you want to complete the configuration process using your problematic
2858 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2859 to "yes", and re-run configure.
2860
2861 END
2862     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2863   fi
2864 fi
2865
2866 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2867
2868 # Make sure we can run config.sub.
2869 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2870   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2871
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2873 $as_echo_n "checking build system type... " >&6; }
2874 if ${ac_cv_build+:} false; then :
2875   $as_echo_n "(cached) " >&6
2876 else
2877   ac_build_alias=$build_alias
2878 test "x$ac_build_alias" = x &&
2879   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2880 test "x$ac_build_alias" = x &&
2881   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2882 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2883   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2884
2885 fi
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2887 $as_echo "$ac_cv_build" >&6; }
2888 case $ac_cv_build in
2889 *-*-*) ;;
2890 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2891 esac
2892 build=$ac_cv_build
2893 ac_save_IFS=$IFS; IFS='-'
2894 set x $ac_cv_build
2895 shift
2896 build_cpu=$1
2897 build_vendor=$2
2898 shift; shift
2899 # Remember, the first character of IFS is used to create $*,
2900 # except with old shells:
2901 build_os=$*
2902 IFS=$ac_save_IFS
2903 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2904
2905
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2907 $as_echo_n "checking host system type... " >&6; }
2908 if ${ac_cv_host+:} false; then :
2909   $as_echo_n "(cached) " >&6
2910 else
2911   if test "x$host_alias" = x; then
2912   ac_cv_host=$ac_cv_build
2913 else
2914   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2915     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2916 fi
2917
2918 fi
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2920 $as_echo "$ac_cv_host" >&6; }
2921 case $ac_cv_host in
2922 *-*-*) ;;
2923 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2924 esac
2925 host=$ac_cv_host
2926 ac_save_IFS=$IFS; IFS='-'
2927 set x $ac_cv_host
2928 shift
2929 host_cpu=$1
2930 host_vendor=$2
2931 shift; shift
2932 # Remember, the first character of IFS is used to create $*,
2933 # except with old shells:
2934 host_os=$*
2935 IFS=$ac_save_IFS
2936 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2937
2938
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build time linking with Python (Darwin and Win32)" >&5
2940 $as_echo_n "checking for build time linking with Python (Darwin and Win32)... " >&6; }
2941 case "$host" in
2942   *-*-mingw*|*-*-cygwin*)
2943     os_win32=yes
2944     link_python_libs=yes
2945     OS_EXT=dll
2946     ;;
2947   *-*-darwin*)
2948     os_win32=no
2949     link_python_libs=yes
2950     OS_EXT=dylib
2951     ;;
2952   *)
2953     os_win32=no
2954     link_python_libs=no
2955     OS_EXT=so
2956     ;;
2957 esac
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $link_python_libs" >&5
2959 $as_echo "$link_python_libs" >&6; }
2960  if test "$os_win32" = "yes"; then
2961   OS_WIN32_TRUE=
2962   OS_WIN32_FALSE='#'
2963 else
2964   OS_WIN32_TRUE='#'
2965   OS_WIN32_FALSE=
2966 fi
2967
2968
2969
2970
2971 cat >>confdefs.h <<_ACEOF
2972 #define OS_EXT "$OS_EXT"
2973 _ACEOF
2974
2975
2976
2977 case `pwd` in
2978   *\ * | *\     *)
2979     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2980 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2981 esac
2982
2983
2984
2985 macro_version='2.4.2'
2986 macro_revision='1.3337'
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000 ltmain="$ac_aux_dir/ltmain.sh"
3001
3002 # Backslashify metacharacters that are still active within
3003 # double-quoted strings.
3004 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3005
3006 # Same as above, but do not quote variable references.
3007 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3008
3009 # Sed substitution to delay expansion of an escaped shell variable in a
3010 # double_quote_subst'ed string.
3011 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3012
3013 # Sed substitution to delay expansion of an escaped single quote.
3014 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3015
3016 # Sed substitution to avoid accidental globbing in evaled expressions
3017 no_glob_subst='s/\*/\\\*/g'
3018
3019 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3020 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3021 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3022
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3024 $as_echo_n "checking how to print strings... " >&6; }
3025 # Test print first, because it will be a builtin if present.
3026 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3027    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3028   ECHO='print -r --'
3029 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3030   ECHO='printf %s\n'
3031 else
3032   # Use this function as a fallback that always works.
3033   func_fallback_echo ()
3034   {
3035     eval 'cat <<_LTECHO_EOF
3036 $1
3037 _LTECHO_EOF'
3038   }
3039   ECHO='func_fallback_echo'
3040 fi
3041
3042 # func_echo_all arg...
3043 # Invoke $ECHO with all args, space-separated.
3044 func_echo_all ()
3045 {
3046     $ECHO ""
3047 }
3048
3049 case "$ECHO" in
3050   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3051 $as_echo "printf" >&6; } ;;
3052   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3053 $as_echo "print -r" >&6; } ;;
3054   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3055 $as_echo "cat" >&6; } ;;
3056 esac
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071 DEPDIR="${am__leading_dot}deps"
3072
3073 ac_config_commands="$ac_config_commands depfiles"
3074
3075
3076 am_make=${MAKE-make}
3077 cat > confinc << 'END'
3078 am__doit:
3079         @echo this is the am__doit target
3080 .PHONY: am__doit
3081 END
3082 # If we don't find an include directive, just comment out the code.
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3084 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3085 am__include="#"
3086 am__quote=
3087 _am_result=none
3088 # First try GNU make style include.
3089 echo "include confinc" > confmf
3090 # Ignore all kinds of additional output from 'make'.
3091 case `$am_make -s -f confmf 2> /dev/null` in #(
3092 *the\ am__doit\ target*)
3093   am__include=include
3094   am__quote=
3095   _am_result=GNU
3096   ;;
3097 esac
3098 # Now try BSD make style include.
3099 if test "$am__include" = "#"; then
3100    echo '.include "confinc"' > confmf
3101    case `$am_make -s -f confmf 2> /dev/null` in #(
3102    *the\ am__doit\ target*)
3103      am__include=.include
3104      am__quote="\""
3105      _am_result=BSD
3106      ;;
3107    esac
3108 fi
3109
3110
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3112 $as_echo "$_am_result" >&6; }
3113 rm -f confinc confmf
3114
3115 # Check whether --enable-dependency-tracking was given.
3116 if test "${enable_dependency_tracking+set}" = set; then :
3117   enableval=$enable_dependency_tracking;
3118 fi
3119
3120 if test "x$enable_dependency_tracking" != xno; then
3121   am_depcomp="$ac_aux_dir/depcomp"
3122   AMDEPBACKSLASH='\'
3123   am__nodep='_no'
3124 fi
3125  if test "x$enable_dependency_tracking" != xno; then
3126   AMDEP_TRUE=
3127   AMDEP_FALSE='#'
3128 else
3129   AMDEP_TRUE='#'
3130   AMDEP_FALSE=
3131 fi
3132
3133
3134 ac_ext=c
3135 ac_cpp='$CPP $CPPFLAGS'
3136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3139 if test -n "$ac_tool_prefix"; then
3140   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3141 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if ${ac_cv_prog_CC+:} false; then :
3145   $as_echo_n "(cached) " >&6
3146 else
3147   if test -n "$CC"; then
3148   ac_cv_prog_CC="$CC" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153   IFS=$as_save_IFS
3154   test -z "$as_dir" && as_dir=.
3155     for ac_exec_ext in '' $ac_executable_extensions; do
3156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159     break 2
3160   fi
3161 done
3162   done
3163 IFS=$as_save_IFS
3164
3165 fi
3166 fi
3167 CC=$ac_cv_prog_CC
3168 if test -n "$CC"; then
3169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3170 $as_echo "$CC" >&6; }
3171 else
3172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3174 fi
3175
3176
3177 fi
3178 if test -z "$ac_cv_prog_CC"; then
3179   ac_ct_CC=$CC
3180   # Extract the first word of "gcc", so it can be a program name with args.
3181 set dummy gcc; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3185   $as_echo_n "(cached) " >&6
3186 else
3187   if test -n "$ac_ct_CC"; then
3188   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193   IFS=$as_save_IFS
3194   test -z "$as_dir" && as_dir=.
3195     for ac_exec_ext in '' $ac_executable_extensions; do
3196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197     ac_cv_prog_ac_ct_CC="gcc"
3198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199     break 2
3200   fi
3201 done
3202   done
3203 IFS=$as_save_IFS
3204
3205 fi
3206 fi
3207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3208 if test -n "$ac_ct_CC"; then
3209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3210 $as_echo "$ac_ct_CC" >&6; }
3211 else
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 fi
3215
3216   if test "x$ac_ct_CC" = x; then
3217     CC=""
3218   else
3219     case $cross_compiling:$ac_tool_warned in
3220 yes:)
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223 ac_tool_warned=yes ;;
3224 esac
3225     CC=$ac_ct_CC
3226   fi
3227 else
3228   CC="$ac_cv_prog_CC"
3229 fi
3230
3231 if test -z "$CC"; then
3232           if test -n "$ac_tool_prefix"; then
3233     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3234 set dummy ${ac_tool_prefix}cc; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_CC+:} false; then :
3238   $as_echo_n "(cached) " >&6
3239 else
3240   if test -n "$CC"; then
3241   ac_cv_prog_CC="$CC" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246   IFS=$as_save_IFS
3247   test -z "$as_dir" && as_dir=.
3248     for ac_exec_ext in '' $ac_executable_extensions; do
3249   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250     ac_cv_prog_CC="${ac_tool_prefix}cc"
3251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252     break 2
3253   fi
3254 done
3255   done
3256 IFS=$as_save_IFS
3257
3258 fi
3259 fi
3260 CC=$ac_cv_prog_CC
3261 if test -n "$CC"; then
3262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263 $as_echo "$CC" >&6; }
3264 else
3265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 fi
3268
3269
3270   fi
3271 fi
3272 if test -z "$CC"; then
3273   # Extract the first word of "cc", so it can be a program name with args.
3274 set dummy cc; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_CC+:} false; then :
3278   $as_echo_n "(cached) " >&6
3279 else
3280   if test -n "$CC"; then
3281   ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283   ac_prog_rejected=no
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287   IFS=$as_save_IFS
3288   test -z "$as_dir" && as_dir=.
3289     for ac_exec_ext in '' $ac_executable_extensions; do
3290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3292        ac_prog_rejected=yes
3293        continue
3294      fi
3295     ac_cv_prog_CC="cc"
3296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297     break 2
3298   fi
3299 done
3300   done
3301 IFS=$as_save_IFS
3302
3303 if test $ac_prog_rejected = yes; then
3304   # We found a bogon in the path, so make sure we never use it.
3305   set dummy $ac_cv_prog_CC
3306   shift
3307   if test $# != 0; then
3308     # We chose a different compiler from the bogus one.
3309     # However, it has the same basename, so the bogon will be chosen
3310     # first if we set CC to just the basename; use the full file name.
3311     shift
3312     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3313   fi
3314 fi
3315 fi
3316 fi
3317 CC=$ac_cv_prog_CC
3318 if test -n "$CC"; then
3319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3320 $as_echo "$CC" >&6; }
3321 else
3322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3324 fi
3325
3326
3327 fi
3328 if test -z "$CC"; then
3329   if test -n "$ac_tool_prefix"; then
3330   for ac_prog in cl.exe
3331   do
3332     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335 $as_echo_n "checking for $ac_word... " >&6; }
3336 if ${ac_cv_prog_CC+:} false; then :
3337   $as_echo_n "(cached) " >&6
3338 else
3339   if test -n "$CC"; then
3340   ac_cv_prog_CC="$CC" # Let the user override the test.
3341 else
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3344 do
3345   IFS=$as_save_IFS
3346   test -z "$as_dir" && as_dir=.
3347     for ac_exec_ext in '' $ac_executable_extensions; do
3348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351     break 2
3352   fi
3353 done
3354   done
3355 IFS=$as_save_IFS
3356
3357 fi
3358 fi
3359 CC=$ac_cv_prog_CC
3360 if test -n "$CC"; then
3361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3362 $as_echo "$CC" >&6; }
3363 else
3364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3366 fi
3367
3368
3369     test -n "$CC" && break
3370   done
3371 fi
3372 if test -z "$CC"; then
3373   ac_ct_CC=$CC
3374   for ac_prog in cl.exe
3375 do
3376   # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy $ac_prog; ac_word=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3381   $as_echo_n "(cached) " >&6
3382 else
3383   if test -n "$ac_ct_CC"; then
3384   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389   IFS=$as_save_IFS
3390   test -z "$as_dir" && as_dir=.
3391     for ac_exec_ext in '' $ac_executable_extensions; do
3392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393     ac_cv_prog_ac_ct_CC="$ac_prog"
3394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395     break 2
3396   fi
3397 done
3398   done
3399 IFS=$as_save_IFS
3400
3401 fi
3402 fi
3403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3404 if test -n "$ac_ct_CC"; then
3405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3406 $as_echo "$ac_ct_CC" >&6; }
3407 else
3408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3410 fi
3411
3412
3413   test -n "$ac_ct_CC" && break
3414 done
3415
3416   if test "x$ac_ct_CC" = x; then
3417     CC=""
3418   else
3419     case $cross_compiling:$ac_tool_warned in
3420 yes:)
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3423 ac_tool_warned=yes ;;
3424 esac
3425     CC=$ac_ct_CC
3426   fi
3427 fi
3428
3429 fi
3430
3431
3432 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434 as_fn_error $? "no acceptable C compiler found in \$PATH
3435 See \`config.log' for more details" "$LINENO" 5; }
3436
3437 # Provide some information about the compiler.
3438 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3439 set X $ac_compile
3440 ac_compiler=$2
3441 for ac_option in --version -v -V -qversion; do
3442   { { ac_try="$ac_compiler $ac_option >&5"
3443 case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3450   ac_status=$?
3451   if test -s conftest.err; then
3452     sed '10a\
3453 ... rest of stderr output deleted ...
3454          10q' conftest.err >conftest.er1
3455     cat conftest.er1 >&5
3456   fi
3457   rm -f conftest.er1 conftest.err
3458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459   test $ac_status = 0; }
3460 done
3461
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h.  */
3464
3465 int
3466 main ()
3467 {
3468
3469   ;
3470   return 0;
3471 }
3472 _ACEOF
3473 ac_clean_files_save=$ac_clean_files
3474 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3475 # Try to create an executable without -o first, disregard a.out.
3476 # It will help us diagnose broken compilers, and finding out an intuition
3477 # of exeext.
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3479 $as_echo_n "checking whether the C compiler works... " >&6; }
3480 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3481
3482 # The possible output files:
3483 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3484
3485 ac_rmfiles=
3486 for ac_file in $ac_files
3487 do
3488   case $ac_file in
3489     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3490     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3491   esac
3492 done
3493 rm -f $ac_rmfiles
3494
3495 if { { ac_try="$ac_link_default"
3496 case "(($ac_try" in
3497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498   *) ac_try_echo=$ac_try;;
3499 esac
3500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501 $as_echo "$ac_try_echo"; } >&5
3502   (eval "$ac_link_default") 2>&5
3503   ac_status=$?
3504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505   test $ac_status = 0; }; then :
3506   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3507 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3508 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3509 # so that the user can short-circuit this test for compilers unknown to
3510 # Autoconf.
3511 for ac_file in $ac_files ''
3512 do
3513   test -f "$ac_file" || continue
3514   case $ac_file in
3515     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3516         ;;
3517     [ab].out )
3518         # We found the default executable, but exeext='' is most
3519         # certainly right.
3520         break;;
3521     *.* )
3522         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3523         then :; else
3524            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3525         fi
3526         # We set ac_cv_exeext here because the later test for it is not
3527         # safe: cross compilers may not add the suffix if given an `-o'
3528         # argument, so we may need to know it at that point already.
3529         # Even if this section looks crufty: it has the advantage of
3530         # actually working.
3531         break;;
3532     * )
3533         break;;
3534   esac
3535 done
3536 test "$ac_cv_exeext" = no && ac_cv_exeext=
3537
3538 else
3539   ac_file=''
3540 fi
3541 if test -z "$ac_file"; then :
3542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3544 $as_echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3546
3547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3549 as_fn_error 77 "C compiler cannot create executables
3550 See \`config.log' for more details" "$LINENO" 5; }
3551 else
3552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3553 $as_echo "yes" >&6; }
3554 fi
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3556 $as_echo_n "checking for C compiler default output file name... " >&6; }
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3558 $as_echo "$ac_file" >&6; }
3559 ac_exeext=$ac_cv_exeext
3560
3561 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3562 ac_clean_files=$ac_clean_files_save
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3564 $as_echo_n "checking for suffix of executables... " >&6; }
3565 if { { ac_try="$ac_link"
3566 case "(($ac_try" in
3567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568   *) ac_try_echo=$ac_try;;
3569 esac
3570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571 $as_echo "$ac_try_echo"; } >&5
3572   (eval "$ac_link") 2>&5
3573   ac_status=$?
3574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575   test $ac_status = 0; }; then :
3576   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3577 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3578 # work properly (i.e., refer to `conftest.exe'), while it won't with
3579 # `rm'.
3580 for ac_file in conftest.exe conftest conftest.*; do
3581   test -f "$ac_file" || continue
3582   case $ac_file in
3583     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3584     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3585           break;;
3586     * ) break;;
3587   esac
3588 done
3589 else
3590   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3593 See \`config.log' for more details" "$LINENO" 5; }
3594 fi
3595 rm -f conftest conftest$ac_cv_exeext
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3597 $as_echo "$ac_cv_exeext" >&6; }
3598
3599 rm -f conftest.$ac_ext
3600 EXEEXT=$ac_cv_exeext
3601 ac_exeext=$EXEEXT
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h.  */
3604 #include <stdio.h>
3605 int
3606 main ()
3607 {
3608 FILE *f = fopen ("conftest.out", "w");
3609  return ferror (f) || fclose (f) != 0;
3610
3611   ;
3612   return 0;
3613 }
3614 _ACEOF
3615 ac_clean_files="$ac_clean_files conftest.out"
3616 # Check that the compiler produces executables we can run.  If not, either
3617 # the compiler is broken, or we cross compile.
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3619 $as_echo_n "checking whether we are cross compiling... " >&6; }
3620 if test "$cross_compiling" != yes; then
3621   { { ac_try="$ac_link"
3622 case "(($ac_try" in
3623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624   *) ac_try_echo=$ac_try;;
3625 esac
3626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3627 $as_echo "$ac_try_echo"; } >&5
3628   (eval "$ac_link") 2>&5
3629   ac_status=$?
3630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3631   test $ac_status = 0; }
3632   if { ac_try='./conftest$ac_cv_exeext'
3633   { { case "(($ac_try" in
3634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635   *) ac_try_echo=$ac_try;;
3636 esac
3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638 $as_echo "$ac_try_echo"; } >&5
3639   (eval "$ac_try") 2>&5
3640   ac_status=$?
3641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642   test $ac_status = 0; }; }; then
3643     cross_compiling=no
3644   else
3645     if test "$cross_compiling" = maybe; then
3646         cross_compiling=yes
3647     else
3648         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3650 as_fn_error $? "cannot run C compiled programs.
3651 If you meant to cross compile, use \`--host'.
3652 See \`config.log' for more details" "$LINENO" 5; }
3653     fi
3654   fi
3655 fi
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3657 $as_echo "$cross_compiling" >&6; }
3658
3659 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3660 ac_clean_files=$ac_clean_files_save
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3662 $as_echo_n "checking for suffix of object files... " >&6; }
3663 if ${ac_cv_objext+:} false; then :
3664   $as_echo_n "(cached) " >&6
3665 else
3666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h.  */
3668
3669 int
3670 main ()
3671 {
3672
3673   ;
3674   return 0;
3675 }
3676 _ACEOF
3677 rm -f conftest.o conftest.obj
3678 if { { ac_try="$ac_compile"
3679 case "(($ac_try" in
3680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681   *) ac_try_echo=$ac_try;;
3682 esac
3683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3684 $as_echo "$ac_try_echo"; } >&5
3685   (eval "$ac_compile") 2>&5
3686   ac_status=$?
3687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3688   test $ac_status = 0; }; then :
3689   for ac_file in conftest.o conftest.obj conftest.*; do
3690   test -f "$ac_file" || continue;
3691   case $ac_file in
3692     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3693     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3694        break;;
3695   esac
3696 done
3697 else
3698   $as_echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3700
3701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3703 as_fn_error $? "cannot compute suffix of object files: cannot compile
3704 See \`config.log' for more details" "$LINENO" 5; }
3705 fi
3706 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3707 fi
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3709 $as_echo "$ac_cv_objext" >&6; }
3710 OBJEXT=$ac_cv_objext
3711 ac_objext=$OBJEXT
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3713 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3714 if ${ac_cv_c_compiler_gnu+:} false; then :
3715   $as_echo_n "(cached) " >&6
3716 else
3717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h.  */
3719
3720 int
3721 main ()
3722 {
3723 #ifndef __GNUC__
3724        choke me
3725 #endif
3726
3727   ;
3728   return 0;
3729 }
3730 _ACEOF
3731 if ac_fn_c_try_compile "$LINENO"; then :
3732   ac_compiler_gnu=yes
3733 else
3734   ac_compiler_gnu=no
3735 fi
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3738
3739 fi
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3741 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3742 if test $ac_compiler_gnu = yes; then
3743   GCC=yes
3744 else
3745   GCC=
3746 fi
3747 ac_test_CFLAGS=${CFLAGS+set}
3748 ac_save_CFLAGS=$CFLAGS
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3750 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3751 if ${ac_cv_prog_cc_g+:} false; then :
3752   $as_echo_n "(cached) " >&6
3753 else
3754   ac_save_c_werror_flag=$ac_c_werror_flag
3755    ac_c_werror_flag=yes
3756    ac_cv_prog_cc_g=no
3757    CFLAGS="-g"
3758    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h.  */
3760
3761 int
3762 main ()
3763 {
3764
3765   ;
3766   return 0;
3767 }
3768 _ACEOF
3769 if ac_fn_c_try_compile "$LINENO"; then :
3770   ac_cv_prog_cc_g=yes
3771 else
3772   CFLAGS=""
3773       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h.  */
3775
3776 int
3777 main ()
3778 {
3779
3780   ;
3781   return 0;
3782 }
3783 _ACEOF
3784 if ac_fn_c_try_compile "$LINENO"; then :
3785
3786 else
3787   ac_c_werror_flag=$ac_save_c_werror_flag
3788          CFLAGS="-g"
3789          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h.  */
3791
3792 int
3793 main ()
3794 {
3795
3796   ;
3797   return 0;
3798 }
3799 _ACEOF
3800 if ac_fn_c_try_compile "$LINENO"; then :
3801   ac_cv_prog_cc_g=yes
3802 fi
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 fi
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 fi
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808    ac_c_werror_flag=$ac_save_c_werror_flag
3809 fi
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3811 $as_echo "$ac_cv_prog_cc_g" >&6; }
3812 if test "$ac_test_CFLAGS" = set; then
3813   CFLAGS=$ac_save_CFLAGS
3814 elif test $ac_cv_prog_cc_g = yes; then
3815   if test "$GCC" = yes; then
3816     CFLAGS="-g -O2"
3817   else
3818     CFLAGS="-g"
3819   fi
3820 else
3821   if test "$GCC" = yes; then
3822     CFLAGS="-O2"
3823   else
3824     CFLAGS=
3825   fi
3826 fi
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3828 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3829 if ${ac_cv_prog_cc_c89+:} false; then :
3830   $as_echo_n "(cached) " >&6
3831 else
3832   ac_cv_prog_cc_c89=no
3833 ac_save_CC=$CC
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h.  */
3836 #include <stdarg.h>
3837 #include <stdio.h>
3838 struct stat;
3839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3840 struct buf { int x; };
3841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3842 static char *e (p, i)
3843      char **p;
3844      int i;
3845 {
3846   return p[i];
3847 }
3848 static char *f (char * (*g) (char **, int), char **p, ...)
3849 {
3850   char *s;
3851   va_list v;
3852   va_start (v,p);
3853   s = g (p, va_arg (v,int));
3854   va_end (v);
3855   return s;
3856 }
3857
3858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3859    function prototypes and stuff, but not '\xHH' hex character constants.
3860    These don't provoke an error unfortunately, instead are silently treated
3861    as 'x'.  The following induces an error, until -std is added to get
3862    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3863    array size at least.  It's necessary to write '\x00'==0 to get something
3864    that's true only with -std.  */
3865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3866
3867 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3868    inside strings and character constants.  */
3869 #define FOO(x) 'x'
3870 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3871
3872 int test (int i, double x);
3873 struct s1 {int (*f) (int a);};
3874 struct s2 {int (*f) (double a);};
3875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3876 int argc;
3877 char **argv;
3878 int
3879 main ()
3880 {
3881 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3882   ;
3883   return 0;
3884 }
3885 _ACEOF
3886 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3887         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3888 do
3889   CC="$ac_save_CC $ac_arg"
3890   if ac_fn_c_try_compile "$LINENO"; then :
3891   ac_cv_prog_cc_c89=$ac_arg
3892 fi
3893 rm -f core conftest.err conftest.$ac_objext
3894   test "x$ac_cv_prog_cc_c89" != "xno" && break
3895 done
3896 rm -f conftest.$ac_ext
3897 CC=$ac_save_CC
3898
3899 fi
3900 # AC_CACHE_VAL
3901 case "x$ac_cv_prog_cc_c89" in
3902   x)
3903     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3904 $as_echo "none needed" >&6; } ;;
3905   xno)
3906     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3907 $as_echo "unsupported" >&6; } ;;
3908   *)
3909     CC="$CC $ac_cv_prog_cc_c89"
3910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3911 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3912 esac
3913 if test "x$ac_cv_prog_cc_c89" != xno; then :
3914
3915 fi
3916
3917 ac_ext=c
3918 ac_cpp='$CPP $CPPFLAGS'
3919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922
3923 ac_ext=c
3924 ac_cpp='$CPP $CPPFLAGS'
3925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3929 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3930 if ${am_cv_prog_cc_c_o+:} false; then :
3931   $as_echo_n "(cached) " >&6
3932 else
3933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h.  */
3935
3936 int
3937 main ()
3938 {
3939
3940   ;
3941   return 0;
3942 }
3943 _ACEOF
3944   # Make sure it works both with $CC and with simple cc.
3945   # Following AC_PROG_CC_C_O, we do the test twice because some
3946   # compilers refuse to overwrite an existing .o file with -o,
3947   # though they will create one.
3948   am_cv_prog_cc_c_o=yes
3949   for am_i in 1 2; do
3950     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3951    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3952    ac_status=$?
3953    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954    (exit $ac_status); } \
3955          && test -f conftest2.$ac_objext; then
3956       : OK
3957     else
3958       am_cv_prog_cc_c_o=no
3959       break
3960     fi
3961   done
3962   rm -f core conftest*
3963   unset am_i
3964 fi
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3966 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3967 if test "$am_cv_prog_cc_c_o" != yes; then
3968    # Losing compiler, so override with the script.
3969    # FIXME: It is wrong to rewrite CC.
3970    # But if we don't then we get into trouble of one sort or another.
3971    # A longer-term fix would be to have automake use am__CC in this case,
3972    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3973    CC="$am_aux_dir/compile $CC"
3974 fi
3975 ac_ext=c
3976 ac_cpp='$CPP $CPPFLAGS'
3977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3980
3981
3982 depcc="$CC"   am_compiler_list=
3983
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3985 $as_echo_n "checking dependency style of $depcc... " >&6; }
3986 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3987   $as_echo_n "(cached) " >&6
3988 else
3989   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3990   # We make a subdir and do the tests there.  Otherwise we can end up
3991   # making bogus files that we don't know about and never remove.  For
3992   # instance it was reported that on HP-UX the gcc test will end up
3993   # making a dummy file named 'D' -- because '-MD' means "put the output
3994   # in D".
3995   rm -rf conftest.dir
3996   mkdir conftest.dir
3997   # Copy depcomp to subdir because otherwise we won't find it if we're
3998   # using a relative directory.
3999   cp "$am_depcomp" conftest.dir
4000   cd conftest.dir
4001   # We will build objects and dependencies in a subdirectory because
4002   # it helps to detect inapplicable dependency modes.  For instance
4003   # both Tru64's cc and ICC support -MD to output dependencies as a
4004   # side effect of compilation, but ICC will put the dependencies in
4005   # the current directory while Tru64 will put them in the object
4006   # directory.
4007   mkdir sub
4008
4009   am_cv_CC_dependencies_compiler_type=none
4010   if test "$am_compiler_list" = ""; then
4011      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4012   fi
4013   am__universal=false
4014   case " $depcc " in #(
4015      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4016      esac
4017
4018   for depmode in $am_compiler_list; do
4019     # Setup a source with many dependencies, because some compilers
4020     # like to wrap large dependency lists on column 80 (with \), and
4021     # we should not choose a depcomp mode which is confused by this.
4022     #
4023     # We need to recreate these files for each test, as the compiler may
4024     # overwrite some of them when testing with obscure command lines.
4025     # This happens at least with the AIX C compiler.
4026     : > sub/conftest.c
4027     for i in 1 2 3 4 5 6; do
4028       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4029       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4030       # Solaris 10 /bin/sh.
4031       echo '/* dummy */' > sub/conftst$i.h
4032     done
4033     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4034
4035     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4036     # mode.  It turns out that the SunPro C++ compiler does not properly
4037     # handle '-M -o', and we need to detect this.  Also, some Intel
4038     # versions had trouble with output in subdirs.
4039     am__obj=sub/conftest.${OBJEXT-o}
4040     am__minus_obj="-o $am__obj"
4041     case $depmode in
4042     gcc)
4043       # This depmode causes a compiler race in universal mode.
4044       test "$am__universal" = false || continue
4045       ;;
4046     nosideeffect)
4047       # After this tag, mechanisms are not by side-effect, so they'll
4048       # only be used when explicitly requested.
4049       if test "x$enable_dependency_tracking" = xyes; then
4050         continue
4051       else
4052         break
4053       fi
4054       ;;
4055     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4056       # This compiler won't grok '-c -o', but also, the minuso test has
4057       # not run yet.  These depmodes are late enough in the game, and
4058       # so weak that their functioning should not be impacted.
4059       am__obj=conftest.${OBJEXT-o}
4060       am__minus_obj=
4061       ;;
4062     none) break ;;
4063     esac
4064     if depmode=$depmode \
4065        source=sub/conftest.c object=$am__obj \
4066        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4067        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4068          >/dev/null 2>conftest.err &&
4069        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4070        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4071        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4072        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4073       # icc doesn't choke on unknown options, it will just issue warnings
4074       # or remarks (even with -Werror).  So we grep stderr for any message
4075       # that says an option was ignored or not supported.
4076       # When given -MP, icc 7.0 and 7.1 complain thusly:
4077       #   icc: Command line warning: ignoring option '-M'; no argument required
4078       # The diagnosis changed in icc 8.0:
4079       #   icc: Command line remark: option '-MP' not supported
4080       if (grep 'ignoring option' conftest.err ||
4081           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4082         am_cv_CC_dependencies_compiler_type=$depmode
4083         break
4084       fi
4085     fi
4086   done
4087
4088   cd ..
4089   rm -rf conftest.dir
4090 else
4091   am_cv_CC_dependencies_compiler_type=none
4092 fi
4093
4094 fi
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4096 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4097 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4098
4099  if
4100   test "x$enable_dependency_tracking" != xno \
4101   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4102   am__fastdepCC_TRUE=
4103   am__fastdepCC_FALSE='#'
4104 else
4105   am__fastdepCC_TRUE='#'
4106   am__fastdepCC_FALSE=
4107 fi
4108
4109
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4111 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4112 if ${ac_cv_path_SED+:} false; then :
4113   $as_echo_n "(cached) " >&6
4114 else
4115             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4116      for ac_i in 1 2 3 4 5 6 7; do
4117        ac_script="$ac_script$as_nl$ac_script"
4118      done
4119      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4120      { ac_script=; unset ac_script;}
4121      if test -z "$SED"; then
4122   ac_path_SED_found=false
4123   # Loop through the user's path and test for each of PROGNAME-LIST
4124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH
4126 do
4127   IFS=$as_save_IFS
4128   test -z "$as_dir" && as_dir=.
4129     for ac_prog in sed gsed; do
4130     for ac_exec_ext in '' $ac_executable_extensions; do
4131       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4132       as_fn_executable_p "$ac_path_SED" || continue
4133 # Check for GNU ac_path_SED and select it if it is found.
4134   # Check for GNU $ac_path_SED
4135 case `"$ac_path_SED" --version 2>&1` in
4136 *GNU*)
4137   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4138 *)
4139   ac_count=0
4140   $as_echo_n 0123456789 >"conftest.in"
4141   while :
4142   do
4143     cat "conftest.in" "conftest.in" >"conftest.tmp"
4144     mv "conftest.tmp" "conftest.in"
4145     cp "conftest.in" "conftest.nl"
4146     $as_echo '' >> "conftest.nl"
4147     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4148     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4149     as_fn_arith $ac_count + 1 && ac_count=$as_val
4150     if test $ac_count -gt ${ac_path_SED_max-0}; then
4151       # Best one so far, save it but keep looking for a better one
4152       ac_cv_path_SED="$ac_path_SED"
4153       ac_path_SED_max=$ac_count
4154     fi
4155     # 10*(2^10) chars as input seems more than enough
4156     test $ac_count -gt 10 && break
4157   done
4158   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4159 esac
4160
4161       $ac_path_SED_found && break 3
4162     done
4163   done
4164   done
4165 IFS=$as_save_IFS
4166   if test -z "$ac_cv_path_SED"; then
4167     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4168   fi
4169 else
4170   ac_cv_path_SED=$SED
4171 fi
4172
4173 fi
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4175 $as_echo "$ac_cv_path_SED" >&6; }
4176  SED="$ac_cv_path_SED"
4177   rm -f conftest.sed
4178
4179 test -z "$SED" && SED=sed
4180 Xsed="$SED -e 1s/^X//"
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4193 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4194 if ${ac_cv_path_GREP+:} false; then :
4195   $as_echo_n "(cached) " >&6
4196 else
4197   if test -z "$GREP"; then
4198   ac_path_GREP_found=false
4199   # Loop through the user's path and test for each of PROGNAME-LIST
4200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4202 do
4203   IFS=$as_save_IFS
4204   test -z "$as_dir" && as_dir=.
4205     for ac_prog in grep ggrep; do
4206     for ac_exec_ext in '' $ac_executable_extensions; do
4207       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4208       as_fn_executable_p "$ac_path_GREP" || continue
4209 # Check for GNU ac_path_GREP and select it if it is found.
4210   # Check for GNU $ac_path_GREP
4211 case `"$ac_path_GREP" --version 2>&1` in
4212 *GNU*)
4213   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4214 *)
4215   ac_count=0
4216   $as_echo_n 0123456789 >"conftest.in"
4217   while :
4218   do
4219     cat "conftest.in" "conftest.in" >"conftest.tmp"
4220     mv "conftest.tmp" "conftest.in"
4221     cp "conftest.in" "conftest.nl"
4222     $as_echo 'GREP' >> "conftest.nl"
4223     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4224     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4225     as_fn_arith $ac_count + 1 && ac_count=$as_val
4226     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4227       # Best one so far, save it but keep looking for a better one
4228       ac_cv_path_GREP="$ac_path_GREP"
4229       ac_path_GREP_max=$ac_count
4230     fi
4231     # 10*(2^10) chars as input seems more than enough
4232     test $ac_count -gt 10 && break
4233   done
4234   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4235 esac
4236
4237       $ac_path_GREP_found && break 3
4238     done
4239   done
4240   done
4241 IFS=$as_save_IFS
4242   if test -z "$ac_cv_path_GREP"; then
4243     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4244   fi
4245 else
4246   ac_cv_path_GREP=$GREP
4247 fi
4248
4249 fi
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4251 $as_echo "$ac_cv_path_GREP" >&6; }
4252  GREP="$ac_cv_path_GREP"
4253
4254
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4256 $as_echo_n "checking for egrep... " >&6; }
4257 if ${ac_cv_path_EGREP+:} false; then :
4258   $as_echo_n "(cached) " >&6
4259 else
4260   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4261    then ac_cv_path_EGREP="$GREP -E"
4262    else
4263      if test -z "$EGREP"; then
4264   ac_path_EGREP_found=false
4265   # Loop through the user's path and test for each of PROGNAME-LIST
4266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4268 do
4269   IFS=$as_save_IFS
4270   test -z "$as_dir" && as_dir=.
4271     for ac_prog in egrep; do
4272     for ac_exec_ext in '' $ac_executable_extensions; do
4273       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4274       as_fn_executable_p "$ac_path_EGREP" || continue
4275 # Check for GNU ac_path_EGREP and select it if it is found.
4276   # Check for GNU $ac_path_EGREP
4277 case `"$ac_path_EGREP" --version 2>&1` in
4278 *GNU*)
4279   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4280 *)
4281   ac_count=0
4282   $as_echo_n 0123456789 >"conftest.in"
4283   while :
4284   do
4285     cat "conftest.in" "conftest.in" >"conftest.tmp"
4286     mv "conftest.tmp" "conftest.in"
4287     cp "conftest.in" "conftest.nl"
4288     $as_echo 'EGREP' >> "conftest.nl"
4289     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4290     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4291     as_fn_arith $ac_count + 1 && ac_count=$as_val
4292     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4293       # Best one so far, save it but keep looking for a better one
4294       ac_cv_path_EGREP="$ac_path_EGREP"
4295       ac_path_EGREP_max=$ac_count
4296     fi
4297     # 10*(2^10) chars as input seems more than enough
4298     test $ac_count -gt 10 && break
4299   done
4300   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4301 esac
4302
4303       $ac_path_EGREP_found && break 3
4304     done
4305   done
4306   done
4307 IFS=$as_save_IFS
4308   if test -z "$ac_cv_path_EGREP"; then
4309     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4310   fi
4311 else
4312   ac_cv_path_EGREP=$EGREP
4313 fi
4314
4315    fi
4316 fi
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4318 $as_echo "$ac_cv_path_EGREP" >&6; }
4319  EGREP="$ac_cv_path_EGREP"
4320
4321
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4323 $as_echo_n "checking for fgrep... " >&6; }
4324 if ${ac_cv_path_FGREP+:} false; then :
4325   $as_echo_n "(cached) " >&6
4326 else
4327   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4328    then ac_cv_path_FGREP="$GREP -F"
4329    else
4330      if test -z "$FGREP"; then
4331   ac_path_FGREP_found=false
4332   # Loop through the user's path and test for each of PROGNAME-LIST
4333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4335 do
4336   IFS=$as_save_IFS
4337   test -z "$as_dir" && as_dir=.
4338     for ac_prog in fgrep; do
4339     for ac_exec_ext in '' $ac_executable_extensions; do
4340       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4341       as_fn_executable_p "$ac_path_FGREP" || continue
4342 # Check for GNU ac_path_FGREP and select it if it is found.
4343   # Check for GNU $ac_path_FGREP
4344 case `"$ac_path_FGREP" --version 2>&1` in
4345 *GNU*)
4346   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4347 *)
4348   ac_count=0
4349   $as_echo_n 0123456789 >"conftest.in"
4350   while :
4351   do
4352     cat "conftest.in" "conftest.in" >"conftest.tmp"
4353     mv "conftest.tmp" "conftest.in"
4354     cp "conftest.in" "conftest.nl"
4355     $as_echo 'FGREP' >> "conftest.nl"
4356     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4357     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4358     as_fn_arith $ac_count + 1 && ac_count=$as_val
4359     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4360       # Best one so far, save it but keep looking for a better one
4361       ac_cv_path_FGREP="$ac_path_FGREP"
4362       ac_path_FGREP_max=$ac_count
4363     fi
4364     # 10*(2^10) chars as input seems more than enough
4365     test $ac_count -gt 10 && break
4366   done
4367   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4368 esac
4369
4370       $ac_path_FGREP_found && break 3
4371     done
4372   done
4373   done
4374 IFS=$as_save_IFS
4375   if test -z "$ac_cv_path_FGREP"; then
4376     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4377   fi
4378 else
4379   ac_cv_path_FGREP=$FGREP
4380 fi
4381
4382    fi
4383 fi
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4385 $as_echo "$ac_cv_path_FGREP" >&6; }
4386  FGREP="$ac_cv_path_FGREP"
4387
4388
4389 test -z "$GREP" && GREP=grep
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409 # Check whether --with-gnu-ld was given.
4410 if test "${with_gnu_ld+set}" = set; then :
4411   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4412 else
4413   with_gnu_ld=no
4414 fi
4415
4416 ac_prog=ld
4417 if test "$GCC" = yes; then
4418   # Check if gcc -print-prog-name=ld gives a path.
4419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4420 $as_echo_n "checking for ld used by $CC... " >&6; }
4421   case $host in
4422   *-*-mingw*)
4423     # gcc leaves a trailing carriage return which upsets mingw
4424     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4425   *)
4426     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4427   esac
4428   case $ac_prog in
4429     # Accept absolute paths.
4430     [\\/]* | ?:[\\/]*)
4431       re_direlt='/[^/][^/]*/\.\./'
4432       # Canonicalize the pathname of ld
4433       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4434       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4435         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4436       done
4437       test -z "$LD" && LD="$ac_prog"
4438       ;;
4439   "")
4440     # If it fails, then pretend we aren't using GCC.
4441     ac_prog=ld
4442     ;;
4443   *)
4444     # If it is relative, then search for the first ld in PATH.
4445     with_gnu_ld=unknown
4446     ;;
4447   esac
4448 elif test "$with_gnu_ld" = yes; then
4449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4450 $as_echo_n "checking for GNU ld... " >&6; }
4451 else
4452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4453 $as_echo_n "checking for non-GNU ld... " >&6; }
4454 fi
4455 if ${lt_cv_path_LD+:} false; then :
4456   $as_echo_n "(cached) " >&6
4457 else
4458   if test -z "$LD"; then
4459   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4460   for ac_dir in $PATH; do
4461     IFS="$lt_save_ifs"
4462     test -z "$ac_dir" && ac_dir=.
4463     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4464       lt_cv_path_LD="$ac_dir/$ac_prog"
4465       # Check to see if the program is GNU ld.  I'd rather use --version,
4466       # but apparently some variants of GNU ld only accept -v.
4467       # Break only if it was the GNU/non-GNU ld that we prefer.
4468       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4469       *GNU* | *'with BFD'*)
4470         test "$with_gnu_ld" != no && break
4471         ;;
4472       *)
4473         test "$with_gnu_ld" != yes && break
4474         ;;
4475       esac
4476     fi
4477   done
4478   IFS="$lt_save_ifs"
4479 else
4480   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4481 fi
4482 fi
4483
4484 LD="$lt_cv_path_LD"
4485 if test -n "$LD"; then
4486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4487 $as_echo "$LD" >&6; }
4488 else
4489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490 $as_echo "no" >&6; }
4491 fi
4492 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4494 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4495 if ${lt_cv_prog_gnu_ld+:} false; then :
4496   $as_echo_n "(cached) " >&6
4497 else
4498   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4499 case `$LD -v 2>&1 </dev/null` in
4500 *GNU* | *'with BFD'*)
4501   lt_cv_prog_gnu_ld=yes
4502   ;;
4503 *)
4504   lt_cv_prog_gnu_ld=no
4505   ;;
4506 esac
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4509 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4510 with_gnu_ld=$lt_cv_prog_gnu_ld
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4521 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4522 if ${lt_cv_path_NM+:} false; then :
4523   $as_echo_n "(cached) " >&6
4524 else
4525   if test -n "$NM"; then
4526   # Let the user override the test.
4527   lt_cv_path_NM="$NM"
4528 else
4529   lt_nm_to_check="${ac_tool_prefix}nm"
4530   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4531     lt_nm_to_check="$lt_nm_to_check nm"
4532   fi
4533   for lt_tmp_nm in $lt_nm_to_check; do
4534     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4535     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4536       IFS="$lt_save_ifs"
4537       test -z "$ac_dir" && ac_dir=.
4538       tmp_nm="$ac_dir/$lt_tmp_nm"
4539       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4540         # Check to see if the nm accepts a BSD-compat flag.
4541         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4542         #   nm: unknown option "B" ignored
4543         # Tru64's nm complains that /dev/null is an invalid object file
4544         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4545         */dev/null* | *'Invalid file or object type'*)
4546           lt_cv_path_NM="$tmp_nm -B"
4547           break
4548           ;;
4549         *)
4550           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4551           */dev/null*)
4552             lt_cv_path_NM="$tmp_nm -p"
4553             break
4554             ;;
4555           *)
4556             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4557             continue # so that we can try to find one that supports BSD flags
4558             ;;
4559           esac
4560           ;;
4561         esac
4562       fi
4563     done
4564     IFS="$lt_save_ifs"
4565   done
4566   : ${lt_cv_path_NM=no}
4567 fi
4568 fi
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4570 $as_echo "$lt_cv_path_NM" >&6; }
4571 if test "$lt_cv_path_NM" != "no"; then
4572   NM="$lt_cv_path_NM"
4573 else
4574   # Didn't find any BSD compatible name lister, look for dumpbin.
4575   if test -n "$DUMPBIN"; then :
4576     # Let the user override the test.
4577   else
4578     if test -n "$ac_tool_prefix"; then
4579   for ac_prog in dumpbin "link -dump"
4580   do
4581     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4584 $as_echo_n "checking for $ac_word... " >&6; }
4585 if ${ac_cv_prog_DUMPBIN+:} false; then :
4586   $as_echo_n "(cached) " >&6
4587 else
4588   if test -n "$DUMPBIN"; then
4589   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4590 else
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4593 do
4594   IFS=$as_save_IFS
4595   test -z "$as_dir" && as_dir=.
4596     for ac_exec_ext in '' $ac_executable_extensions; do
4597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4598     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4600     break 2
4601   fi
4602 done
4603   done
4604 IFS=$as_save_IFS
4605
4606 fi
4607 fi
4608 DUMPBIN=$ac_cv_prog_DUMPBIN
4609 if test -n "$DUMPBIN"; then
4610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4611 $as_echo "$DUMPBIN" >&6; }
4612 else
4613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614 $as_echo "no" >&6; }
4615 fi
4616
4617
4618     test -n "$DUMPBIN" && break
4619   done
4620 fi
4621 if test -z "$DUMPBIN"; then
4622   ac_ct_DUMPBIN=$DUMPBIN
4623   for ac_prog in dumpbin "link -dump"
4624 do
4625   # Extract the first word of "$ac_prog", so it can be a program name with args.
4626 set dummy $ac_prog; ac_word=$2
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628 $as_echo_n "checking for $ac_word... " >&6; }
4629 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4630   $as_echo_n "(cached) " >&6
4631 else
4632   if test -n "$ac_ct_DUMPBIN"; then
4633   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4634 else
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638   IFS=$as_save_IFS
4639   test -z "$as_dir" && as_dir=.
4640     for ac_exec_ext in '' $ac_executable_extensions; do
4641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644     break 2
4645   fi
4646 done
4647   done
4648 IFS=$as_save_IFS
4649
4650 fi
4651 fi
4652 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4653 if test -n "$ac_ct_DUMPBIN"; then
4654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4655 $as_echo "$ac_ct_DUMPBIN" >&6; }
4656 else
4657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 $as_echo "no" >&6; }
4659 fi
4660
4661
4662   test -n "$ac_ct_DUMPBIN" && break
4663 done
4664
4665   if test "x$ac_ct_DUMPBIN" = x; then
4666     DUMPBIN=":"
4667   else
4668     case $cross_compiling:$ac_tool_warned in
4669 yes:)
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4672 ac_tool_warned=yes ;;
4673 esac
4674     DUMPBIN=$ac_ct_DUMPBIN
4675   fi
4676 fi
4677
4678     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4679     *COFF*)
4680       DUMPBIN="$DUMPBIN -symbols"
4681       ;;
4682     *)
4683       DUMPBIN=:
4684       ;;
4685     esac
4686   fi
4687
4688   if test "$DUMPBIN" != ":"; then
4689     NM="$DUMPBIN"
4690   fi
4691 fi
4692 test -z "$NM" && NM=nm
4693
4694
4695
4696
4697
4698
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4700 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4701 if ${lt_cv_nm_interface+:} false; then :
4702   $as_echo_n "(cached) " >&6
4703 else
4704   lt_cv_nm_interface="BSD nm"
4705   echo "int some_variable = 0;" > conftest.$ac_ext
4706   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4707   (eval "$ac_compile" 2>conftest.err)
4708   cat conftest.err >&5
4709   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4710   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4711   cat conftest.err >&5
4712   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4713   cat conftest.out >&5
4714   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4715     lt_cv_nm_interface="MS dumpbin"
4716   fi
4717   rm -f conftest*
4718 fi
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4720 $as_echo "$lt_cv_nm_interface" >&6; }
4721
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4723 $as_echo_n "checking whether ln -s works... " >&6; }
4724 LN_S=$as_ln_s
4725 if test "$LN_S" = "ln -s"; then
4726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4727 $as_echo "yes" >&6; }
4728 else
4729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4730 $as_echo "no, using $LN_S" >&6; }
4731 fi
4732
4733 # find the maximum length of command line arguments
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4735 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4736 if ${lt_cv_sys_max_cmd_len+:} false; then :
4737   $as_echo_n "(cached) " >&6
4738 else
4739     i=0
4740   teststring="ABCD"
4741
4742   case $build_os in
4743   msdosdjgpp*)
4744     # On DJGPP, this test can blow up pretty badly due to problems in libc
4745     # (any single argument exceeding 2000 bytes causes a buffer overrun
4746     # during glob expansion).  Even if it were fixed, the result of this
4747     # check would be larger than it should be.
4748     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4749     ;;
4750
4751   gnu*)
4752     # Under GNU Hurd, this test is not required because there is
4753     # no limit to the length of command line arguments.
4754     # Libtool will interpret -1 as no limit whatsoever
4755     lt_cv_sys_max_cmd_len=-1;
4756     ;;
4757
4758   cygwin* | mingw* | cegcc*)
4759     # On Win9x/ME, this test blows up -- it succeeds, but takes
4760     # about 5 minutes as the teststring grows exponentially.
4761     # Worse, since 9x/ME are not pre-emptively multitasking,
4762     # you end up with a "frozen" computer, even though with patience
4763     # the test eventually succeeds (with a max line length of 256k).
4764     # Instead, let's just punt: use the minimum linelength reported by
4765     # all of the supported platforms: 8192 (on NT/2K/XP).
4766     lt_cv_sys_max_cmd_len=8192;
4767     ;;
4768
4769   mint*)
4770     # On MiNT this can take a long time and run out of memory.
4771     lt_cv_sys_max_cmd_len=8192;
4772     ;;
4773
4774   amigaos*)
4775     # On AmigaOS with pdksh, this test takes hours, literally.
4776     # So we just punt and use a minimum line length of 8192.
4777     lt_cv_sys_max_cmd_len=8192;
4778     ;;
4779
4780   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4781     # This has been around since 386BSD, at least.  Likely further.
4782     if test -x /sbin/sysctl; then
4783       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4784     elif test -x /usr/sbin/sysctl; then
4785       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4786     else
4787       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4788     fi
4789     # And add a safety zone
4790     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4791     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4792     ;;
4793
4794   interix*)
4795     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4796     lt_cv_sys_max_cmd_len=196608
4797     ;;
4798
4799   os2*)
4800     # The test takes a long time on OS/2.
4801     lt_cv_sys_max_cmd_len=8192
4802     ;;
4803
4804   osf*)
4805     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4806     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4807     # nice to cause kernel panics so lets avoid the loop below.
4808     # First set a reasonable default.
4809     lt_cv_sys_max_cmd_len=16384
4810     #
4811     if test -x /sbin/sysconfig; then
4812       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4813         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4814       esac
4815     fi
4816     ;;
4817   sco3.2v5*)
4818     lt_cv_sys_max_cmd_len=102400
4819     ;;
4820   sysv5* | sco5v6* | sysv4.2uw2*)
4821     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4822     if test -n "$kargmax"; then
4823       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4824     else
4825       lt_cv_sys_max_cmd_len=32768
4826     fi
4827     ;;
4828   *)
4829     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4830     if test -n "$lt_cv_sys_max_cmd_len" && \
4831         test undefined != "$lt_cv_sys_max_cmd_len"; then
4832       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4833       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4834     else
4835       # Make teststring a little bigger before we do anything with it.
4836       # a 1K string should be a reasonable start.
4837       for i in 1 2 3 4 5 6 7 8 ; do
4838         teststring=$teststring$teststring
4839       done
4840       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4841       # If test is not a shell built-in, we'll probably end up computing a
4842       # maximum length that is only half of the actual maximum length, but
4843       # we can't tell.
4844       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4845                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4846               test $i != 17 # 1/2 MB should be enough
4847       do
4848         i=`expr $i + 1`
4849         teststring=$teststring$teststring
4850       done
4851       # Only check the string length outside the loop.
4852       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4853       teststring=
4854       # Add a significant safety factor because C++ compilers can tack on
4855       # massive amounts of additional arguments before passing them to the
4856       # linker.  It appears as though 1/2 is a usable value.
4857       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4858     fi
4859     ;;
4860   esac
4861
4862 fi
4863
4864 if test -n $lt_cv_sys_max_cmd_len ; then
4865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4866 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4867 else
4868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4869 $as_echo "none" >&6; }
4870 fi
4871 max_cmd_len=$lt_cv_sys_max_cmd_len
4872
4873
4874
4875
4876
4877
4878 : ${CP="cp -f"}
4879 : ${MV="mv -f"}
4880 : ${RM="rm -f"}
4881
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4883 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4884 # Try some XSI features
4885 xsi_shell=no
4886 ( _lt_dummy="a/b/c"
4887   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4888       = c,a/b,b/c, \
4889     && eval 'test $(( 1 + 1 )) -eq 2 \
4890     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4891   && xsi_shell=yes
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4893 $as_echo "$xsi_shell" >&6; }
4894
4895
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4897 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4898 lt_shell_append=no
4899 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4900     >/dev/null 2>&1 \
4901   && lt_shell_append=yes
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4903 $as_echo "$lt_shell_append" >&6; }
4904
4905
4906 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4907   lt_unset=unset
4908 else
4909   lt_unset=false
4910 fi
4911
4912
4913
4914
4915
4916 # test EBCDIC or ASCII
4917 case `echo X|tr X '\101'` in
4918  A) # ASCII based system
4919     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4920   lt_SP2NL='tr \040 \012'
4921   lt_NL2SP='tr \015\012 \040\040'
4922   ;;
4923  *) # EBCDIC based system
4924   lt_SP2NL='tr \100 \n'
4925   lt_NL2SP='tr \r\n \100\100'
4926   ;;
4927 esac
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4938 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4939 if ${lt_cv_to_host_file_cmd+:} false; then :
4940   $as_echo_n "(cached) " >&6
4941 else
4942   case $host in
4943   *-*-mingw* )
4944     case $build in
4945       *-*-mingw* ) # actually msys
4946         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4947         ;;
4948       *-*-cygwin* )
4949         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4950         ;;
4951       * ) # otherwise, assume *nix
4952         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4953         ;;
4954     esac
4955     ;;
4956   *-*-cygwin* )
4957     case $build in
4958       *-*-mingw* ) # actually msys
4959         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4960         ;;
4961       *-*-cygwin* )
4962         lt_cv_to_host_file_cmd=func_convert_file_noop
4963         ;;
4964       * ) # otherwise, assume *nix
4965         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4966         ;;
4967     esac
4968     ;;
4969   * ) # unhandled hosts (and "normal" native builds)
4970     lt_cv_to_host_file_cmd=func_convert_file_noop
4971     ;;
4972 esac
4973
4974 fi
4975
4976 to_host_file_cmd=$lt_cv_to_host_file_cmd
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4978 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4979
4980
4981
4982
4983
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4985 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4986 if ${lt_cv_to_tool_file_cmd+:} false; then :
4987   $as_echo_n "(cached) " >&6
4988 else
4989   #assume ordinary cross tools, or native build.
4990 lt_cv_to_tool_file_cmd=func_convert_file_noop
4991 case $host in
4992   *-*-mingw* )
4993     case $build in
4994       *-*-mingw* ) # actually msys
4995         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4996         ;;
4997     esac
4998     ;;
4999 esac
5000
5001 fi
5002
5003 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5005 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5006
5007
5008
5009
5010
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5012 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5013 if ${lt_cv_ld_reload_flag+:} false; then :
5014   $as_echo_n "(cached) " >&6
5015 else
5016   lt_cv_ld_reload_flag='-r'
5017 fi
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5019 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5020 reload_flag=$lt_cv_ld_reload_flag
5021 case $reload_flag in
5022 "" | " "*) ;;
5023 *) reload_flag=" $reload_flag" ;;
5024 esac
5025 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5026 case $host_os in
5027   cygwin* | mingw* | pw32* | cegcc*)
5028     if test "$GCC" != yes; then
5029       reload_cmds=false
5030     fi
5031     ;;
5032   darwin*)
5033     if test "$GCC" = yes; then
5034       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5035     else
5036       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5037     fi
5038     ;;
5039 esac
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049 if test -n "$ac_tool_prefix"; then
5050   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5051 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if ${ac_cv_prog_OBJDUMP+:} false; then :
5055   $as_echo_n "(cached) " >&6
5056 else
5057   if test -n "$OBJDUMP"; then
5058   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5059 else
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063   IFS=$as_save_IFS
5064   test -z "$as_dir" && as_dir=.
5065     for ac_exec_ext in '' $ac_executable_extensions; do
5066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069     break 2
5070   fi
5071 done
5072   done
5073 IFS=$as_save_IFS
5074
5075 fi
5076 fi
5077 OBJDUMP=$ac_cv_prog_OBJDUMP
5078 if test -n "$OBJDUMP"; then
5079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5080 $as_echo "$OBJDUMP" >&6; }
5081 else
5082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5084 fi
5085
5086
5087 fi
5088 if test -z "$ac_cv_prog_OBJDUMP"; then
5089   ac_ct_OBJDUMP=$OBJDUMP
5090   # Extract the first word of "objdump", so it can be a program name with args.
5091 set dummy objdump; ac_word=$2
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093 $as_echo_n "checking for $ac_word... " >&6; }
5094 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5095   $as_echo_n "(cached) " >&6
5096 else
5097   if test -n "$ac_ct_OBJDUMP"; then
5098   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5099 else
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5102 do
5103   IFS=$as_save_IFS
5104   test -z "$as_dir" && as_dir=.
5105     for ac_exec_ext in '' $ac_executable_extensions; do
5106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109     break 2
5110   fi
5111 done
5112   done
5113 IFS=$as_save_IFS
5114
5115 fi
5116 fi
5117 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5118 if test -n "$ac_ct_OBJDUMP"; then
5119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5120 $as_echo "$ac_ct_OBJDUMP" >&6; }
5121 else
5122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 $as_echo "no" >&6; }
5124 fi
5125
5126   if test "x$ac_ct_OBJDUMP" = x; then
5127     OBJDUMP="false"
5128   else
5129     case $cross_compiling:$ac_tool_warned in
5130 yes:)
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5133 ac_tool_warned=yes ;;
5134 esac
5135     OBJDUMP=$ac_ct_OBJDUMP
5136   fi
5137 else
5138   OBJDUMP="$ac_cv_prog_OBJDUMP"
5139 fi
5140
5141 test -z "$OBJDUMP" && OBJDUMP=objdump
5142
5143
5144
5145
5146
5147
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5149 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5150 if ${lt_cv_deplibs_check_method+:} false; then :
5151   $as_echo_n "(cached) " >&6
5152 else
5153   lt_cv_file_magic_cmd='$MAGIC_CMD'
5154 lt_cv_file_magic_test_file=
5155 lt_cv_deplibs_check_method='unknown'
5156 # Need to set the preceding variable on all platforms that support
5157 # interlibrary dependencies.
5158 # 'none' -- dependencies not supported.
5159 # `unknown' -- same as none, but documents that we really don't know.
5160 # 'pass_all' -- all dependencies passed with no checks.
5161 # 'test_compile' -- check by making test program.
5162 # 'file_magic [[regex]]' -- check by looking for files in library path
5163 # which responds to the $file_magic_cmd with a given extended regex.
5164 # If you have `file' or equivalent on your system and you're not sure
5165 # whether `pass_all' will *always* work, you probably want this one.
5166
5167 case $host_os in
5168 aix[4-9]*)
5169   lt_cv_deplibs_check_method=pass_all
5170   ;;
5171
5172 beos*)
5173   lt_cv_deplibs_check_method=pass_all
5174   ;;
5175
5176 bsdi[45]*)
5177   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5178   lt_cv_file_magic_cmd='/usr/bin/file -L'
5179   lt_cv_file_magic_test_file=/shlib/libc.so
5180   ;;
5181
5182 cygwin*)
5183   # func_win32_libid is a shell function defined in ltmain.sh
5184   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5185   lt_cv_file_magic_cmd='func_win32_libid'
5186   ;;
5187
5188 mingw* | pw32*)
5189   # Base MSYS/MinGW do not provide the 'file' command needed by
5190   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5191   # unless we find 'file', for example because we are cross-compiling.
5192   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5193   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5194     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5195     lt_cv_file_magic_cmd='func_win32_libid'
5196   else
5197     # Keep this pattern in sync with the one in func_win32_libid.
5198     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5199     lt_cv_file_magic_cmd='$OBJDUMP -f'
5200   fi
5201   ;;
5202
5203 cegcc*)
5204   # use the weaker test based on 'objdump'. See mingw*.
5205   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5206   lt_cv_file_magic_cmd='$OBJDUMP -f'
5207   ;;
5208
5209 darwin* | rhapsody*)
5210   lt_cv_deplibs_check_method=pass_all
5211   ;;
5212
5213 freebsd* | dragonfly*)
5214   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5215     case $host_cpu in
5216     i*86 )
5217       # Not sure whether the presence of OpenBSD here was a mistake.
5218       # Let's accept both of them until this is cleared up.
5219       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5220       lt_cv_file_magic_cmd=/usr/bin/file
5221       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5222       ;;
5223     esac
5224   else
5225     lt_cv_deplibs_check_method=pass_all
5226   fi
5227   ;;
5228
5229 haiku*)
5230   lt_cv_deplibs_check_method=pass_all
5231   ;;
5232
5233 hpux10.20* | hpux11*)
5234   lt_cv_file_magic_cmd=/usr/bin/file
5235   case $host_cpu in
5236   ia64*)
5237     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5238     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5239     ;;
5240   hppa*64*)
5241     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]'
5242     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5243     ;;
5244   *)
5245     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5246     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5247     ;;
5248   esac
5249   ;;
5250
5251 interix[3-9]*)
5252   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5253   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5254   ;;
5255
5256 irix5* | irix6* | nonstopux*)
5257   case $LD in
5258   *-32|*"-32 ") libmagic=32-bit;;
5259   *-n32|*"-n32 ") libmagic=N32;;
5260   *-64|*"-64 ") libmagic=64-bit;;
5261   *) libmagic=never-match;;
5262   esac
5263   lt_cv_deplibs_check_method=pass_all
5264   ;;
5265
5266 # This must be glibc/ELF.
5267 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5268   lt_cv_deplibs_check_method=pass_all
5269   ;;
5270
5271 netbsd* | netbsdelf*-gnu)
5272   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5273     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5274   else
5275     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5276   fi
5277   ;;
5278
5279 newos6*)
5280   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5281   lt_cv_file_magic_cmd=/usr/bin/file
5282   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5283   ;;
5284
5285 *nto* | *qnx*)
5286   lt_cv_deplibs_check_method=pass_all
5287   ;;
5288
5289 openbsd*)
5290   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5291     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5292   else
5293     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5294   fi
5295   ;;
5296
5297 osf3* | osf4* | osf5*)
5298   lt_cv_deplibs_check_method=pass_all
5299   ;;
5300
5301 rdos*)
5302   lt_cv_deplibs_check_method=pass_all
5303   ;;
5304
5305 solaris*)
5306   lt_cv_deplibs_check_method=pass_all
5307   ;;
5308
5309 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5310   lt_cv_deplibs_check_method=pass_all
5311   ;;
5312
5313 sysv4 | sysv4.3*)
5314   case $host_vendor in
5315   motorola)
5316     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]'
5317     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5318     ;;
5319   ncr)
5320     lt_cv_deplibs_check_method=pass_all
5321     ;;
5322   sequent)
5323     lt_cv_file_magic_cmd='/bin/file'
5324     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5325     ;;
5326   sni)
5327     lt_cv_file_magic_cmd='/bin/file'
5328     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5329     lt_cv_file_magic_test_file=/lib/libc.so
5330     ;;
5331   siemens)
5332     lt_cv_deplibs_check_method=pass_all
5333     ;;
5334   pc)
5335     lt_cv_deplibs_check_method=pass_all
5336     ;;
5337   esac
5338   ;;
5339
5340 tpf*)
5341   lt_cv_deplibs_check_method=pass_all
5342   ;;
5343 esac
5344
5345 fi
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5347 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5348
5349 file_magic_glob=
5350 want_nocaseglob=no
5351 if test "$build" = "$host"; then
5352   case $host_os in
5353   mingw* | pw32*)
5354     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5355       want_nocaseglob=yes
5356     else
5357       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5358     fi
5359     ;;
5360   esac
5361 fi
5362
5363 file_magic_cmd=$lt_cv_file_magic_cmd
5364 deplibs_check_method=$lt_cv_deplibs_check_method
5365 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388 if test -n "$ac_tool_prefix"; then
5389   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5390 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_prog_DLLTOOL+:} false; then :
5394   $as_echo_n "(cached) " >&6
5395 else
5396   if test -n "$DLLTOOL"; then
5397   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5398 else
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 for as_dir in $PATH
5401 do
5402   IFS=$as_save_IFS
5403   test -z "$as_dir" && as_dir=.
5404     for ac_exec_ext in '' $ac_executable_extensions; do
5405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5406     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5408     break 2
5409   fi
5410 done
5411   done
5412 IFS=$as_save_IFS
5413
5414 fi
5415 fi
5416 DLLTOOL=$ac_cv_prog_DLLTOOL
5417 if test -n "$DLLTOOL"; then
5418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5419 $as_echo "$DLLTOOL" >&6; }
5420 else
5421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5423 fi
5424
5425
5426 fi
5427 if test -z "$ac_cv_prog_DLLTOOL"; then
5428   ac_ct_DLLTOOL=$DLLTOOL
5429   # Extract the first word of "dlltool", so it can be a program name with args.
5430 set dummy dlltool; ac_word=$2
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432 $as_echo_n "checking for $ac_word... " >&6; }
5433 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5434   $as_echo_n "(cached) " >&6
5435 else
5436   if test -n "$ac_ct_DLLTOOL"; then
5437   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5438 else
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 for as_dir in $PATH
5441 do
5442   IFS=$as_save_IFS
5443   test -z "$as_dir" && as_dir=.
5444     for ac_exec_ext in '' $ac_executable_extensions; do
5445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5446     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5448     break 2
5449   fi
5450 done
5451   done
5452 IFS=$as_save_IFS
5453
5454 fi
5455 fi
5456 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5457 if test -n "$ac_ct_DLLTOOL"; then
5458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5459 $as_echo "$ac_ct_DLLTOOL" >&6; }
5460 else
5461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462 $as_echo "no" >&6; }
5463 fi
5464
5465   if test "x$ac_ct_DLLTOOL" = x; then
5466     DLLTOOL="false"
5467   else
5468     case $cross_compiling:$ac_tool_warned in
5469 yes:)
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5472 ac_tool_warned=yes ;;
5473 esac
5474     DLLTOOL=$ac_ct_DLLTOOL
5475   fi
5476 else
5477   DLLTOOL="$ac_cv_prog_DLLTOOL"
5478 fi
5479
5480 test -z "$DLLTOOL" && DLLTOOL=dlltool
5481
5482
5483
5484
5485
5486
5487
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5489 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5490 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5491   $as_echo_n "(cached) " >&6
5492 else
5493   lt_cv_sharedlib_from_linklib_cmd='unknown'
5494
5495 case $host_os in
5496 cygwin* | mingw* | pw32* | cegcc*)
5497   # two different shell functions defined in ltmain.sh
5498   # decide which to use based on capabilities of $DLLTOOL
5499   case `$DLLTOOL --help 2>&1` in
5500   *--identify-strict*)
5501     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5502     ;;
5503   *)
5504     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5505     ;;
5506   esac
5507   ;;
5508 *)
5509   # fallback: assume linklib IS sharedlib
5510   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5511   ;;
5512 esac
5513
5514 fi
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5516 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5517 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5518 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5519
5520
5521
5522
5523
5524
5525
5526
5527 if test -n "$ac_tool_prefix"; then
5528   for ac_prog in ar
5529   do
5530     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5531 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if ${ac_cv_prog_AR+:} false; then :
5535   $as_echo_n "(cached) " >&6
5536 else
5537   if test -n "$AR"; then
5538   ac_cv_prog_AR="$AR" # Let the user override the test.
5539 else
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 for as_dir in $PATH
5542 do
5543   IFS=$as_save_IFS
5544   test -z "$as_dir" && as_dir=.
5545     for ac_exec_ext in '' $ac_executable_extensions; do
5546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5547     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549     break 2
5550   fi
5551 done
5552   done
5553 IFS=$as_save_IFS
5554
5555 fi
5556 fi
5557 AR=$ac_cv_prog_AR
5558 if test -n "$AR"; then
5559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5560 $as_echo "$AR" >&6; }
5561 else
5562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563 $as_echo "no" >&6; }
5564 fi
5565
5566
5567     test -n "$AR" && break
5568   done
5569 fi
5570 if test -z "$AR"; then
5571   ac_ct_AR=$AR
5572   for ac_prog in ar
5573 do
5574   # Extract the first word of "$ac_prog", so it can be a program name with args.
5575 set dummy $ac_prog; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5579   $as_echo_n "(cached) " >&6
5580 else
5581   if test -n "$ac_ct_AR"; then
5582   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5586 do
5587   IFS=$as_save_IFS
5588   test -z "$as_dir" && as_dir=.
5589     for ac_exec_ext in '' $ac_executable_extensions; do
5590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591     ac_cv_prog_ac_ct_AR="$ac_prog"
5592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593     break 2
5594   fi
5595 done
5596   done
5597 IFS=$as_save_IFS
5598
5599 fi
5600 fi
5601 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5602 if test -n "$ac_ct_AR"; then
5603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5604 $as_echo "$ac_ct_AR" >&6; }
5605 else
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5608 fi
5609
5610
5611   test -n "$ac_ct_AR" && break
5612 done
5613
5614   if test "x$ac_ct_AR" = x; then
5615     AR="false"
5616   else
5617     case $cross_compiling:$ac_tool_warned in
5618 yes:)
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5621 ac_tool_warned=yes ;;
5622 esac
5623     AR=$ac_ct_AR
5624   fi
5625 fi
5626
5627 : ${AR=ar}
5628 : ${AR_FLAGS=cru}
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5641 $as_echo_n "checking for archiver @FILE support... " >&6; }
5642 if ${lt_cv_ar_at_file+:} false; then :
5643   $as_echo_n "(cached) " >&6
5644 else
5645   lt_cv_ar_at_file=no
5646    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h.  */
5648
5649 int
5650 main ()
5651 {
5652
5653   ;
5654   return 0;
5655 }
5656 _ACEOF
5657 if ac_fn_c_try_compile "$LINENO"; then :
5658   echo conftest.$ac_objext > conftest.lst
5659       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5660       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5661   (eval $lt_ar_try) 2>&5
5662   ac_status=$?
5663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5664   test $ac_status = 0; }
5665       if test "$ac_status" -eq 0; then
5666         # Ensure the archiver fails upon bogus file names.
5667         rm -f conftest.$ac_objext libconftest.a
5668         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5669   (eval $lt_ar_try) 2>&5
5670   ac_status=$?
5671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5672   test $ac_status = 0; }
5673         if test "$ac_status" -ne 0; then
5674           lt_cv_ar_at_file=@
5675         fi
5676       fi
5677       rm -f conftest.* libconftest.a
5678
5679 fi
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681
5682 fi
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5684 $as_echo "$lt_cv_ar_at_file" >&6; }
5685
5686 if test "x$lt_cv_ar_at_file" = xno; then
5687   archiver_list_spec=
5688 else
5689   archiver_list_spec=$lt_cv_ar_at_file
5690 fi
5691
5692
5693
5694
5695
5696
5697
5698 if test -n "$ac_tool_prefix"; then
5699   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5700 set dummy ${ac_tool_prefix}strip; ac_word=$2
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702 $as_echo_n "checking for $ac_word... " >&6; }
5703 if ${ac_cv_prog_STRIP+:} false; then :
5704   $as_echo_n "(cached) " >&6
5705 else
5706   if test -n "$STRIP"; then
5707   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5708 else
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH
5711 do
5712   IFS=$as_save_IFS
5713   test -z "$as_dir" && as_dir=.
5714     for ac_exec_ext in '' $ac_executable_extensions; do
5715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5716     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5718     break 2
5719   fi
5720 done
5721   done
5722 IFS=$as_save_IFS
5723
5724 fi
5725 fi
5726 STRIP=$ac_cv_prog_STRIP
5727 if test -n "$STRIP"; then
5728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5729 $as_echo "$STRIP" >&6; }
5730 else
5731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 $as_echo "no" >&6; }
5733 fi
5734
5735
5736 fi
5737 if test -z "$ac_cv_prog_STRIP"; then
5738   ac_ct_STRIP=$STRIP
5739   # Extract the first word of "strip", so it can be a program name with args.
5740 set dummy strip; ac_word=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5744   $as_echo_n "(cached) " >&6
5745 else
5746   if test -n "$ac_ct_STRIP"; then
5747   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5748 else
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5751 do
5752   IFS=$as_save_IFS
5753   test -z "$as_dir" && as_dir=.
5754     for ac_exec_ext in '' $ac_executable_extensions; do
5755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756     ac_cv_prog_ac_ct_STRIP="strip"
5757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758     break 2
5759   fi
5760 done
5761   done
5762 IFS=$as_save_IFS
5763
5764 fi
5765 fi
5766 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5767 if test -n "$ac_ct_STRIP"; then
5768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5769 $as_echo "$ac_ct_STRIP" >&6; }
5770 else
5771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5773 fi
5774
5775   if test "x$ac_ct_STRIP" = x; then
5776     STRIP=":"
5777   else
5778     case $cross_compiling:$ac_tool_warned in
5779 yes:)
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5782 ac_tool_warned=yes ;;
5783 esac
5784     STRIP=$ac_ct_STRIP
5785   fi
5786 else
5787   STRIP="$ac_cv_prog_STRIP"
5788 fi
5789
5790 test -z "$STRIP" && STRIP=:
5791
5792
5793
5794
5795
5796
5797 if test -n "$ac_tool_prefix"; then
5798   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5799 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if ${ac_cv_prog_RANLIB+:} false; then :
5803   $as_echo_n "(cached) " >&6
5804 else
5805   if test -n "$RANLIB"; then
5806   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5807 else
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH
5810 do
5811   IFS=$as_save_IFS
5812   test -z "$as_dir" && as_dir=.
5813     for ac_exec_ext in '' $ac_executable_extensions; do
5814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5815     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817     break 2
5818   fi
5819 done
5820   done
5821 IFS=$as_save_IFS
5822
5823 fi
5824 fi
5825 RANLIB=$ac_cv_prog_RANLIB
5826 if test -n "$RANLIB"; then
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5828 $as_echo "$RANLIB" >&6; }
5829 else
5830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5832 fi
5833
5834
5835 fi
5836 if test -z "$ac_cv_prog_RANLIB"; then
5837   ac_ct_RANLIB=$RANLIB
5838   # Extract the first word of "ranlib", so it can be a program name with args.
5839 set dummy ranlib; ac_word=$2
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841 $as_echo_n "checking for $ac_word... " >&6; }
5842 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5843   $as_echo_n "(cached) " >&6
5844 else
5845   if test -n "$ac_ct_RANLIB"; then
5846   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5847 else
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 for as_dir in $PATH
5850 do
5851   IFS=$as_save_IFS
5852   test -z "$as_dir" && as_dir=.
5853     for ac_exec_ext in '' $ac_executable_extensions; do
5854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5855     ac_cv_prog_ac_ct_RANLIB="ranlib"
5856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857     break 2
5858   fi
5859 done
5860   done
5861 IFS=$as_save_IFS
5862
5863 fi
5864 fi
5865 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5866 if test -n "$ac_ct_RANLIB"; then
5867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5868 $as_echo "$ac_ct_RANLIB" >&6; }
5869 else
5870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5872 fi
5873
5874   if test "x$ac_ct_RANLIB" = x; then
5875     RANLIB=":"
5876   else
5877     case $cross_compiling:$ac_tool_warned in
5878 yes:)
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5881 ac_tool_warned=yes ;;
5882 esac
5883     RANLIB=$ac_ct_RANLIB
5884   fi
5885 else
5886   RANLIB="$ac_cv_prog_RANLIB"
5887 fi
5888
5889 test -z "$RANLIB" && RANLIB=:
5890
5891
5892
5893
5894
5895
5896 # Determine commands to create old-style static archives.
5897 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5898 old_postinstall_cmds='chmod 644 $oldlib'
5899 old_postuninstall_cmds=
5900
5901 if test -n "$RANLIB"; then
5902   case $host_os in
5903   openbsd*)
5904     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5905     ;;
5906   *)
5907     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5908     ;;
5909   esac
5910   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5911 fi
5912
5913 case $host_os in
5914   darwin*)
5915     lock_old_archive_extraction=yes ;;
5916   *)
5917     lock_old_archive_extraction=no ;;
5918 esac
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958 # If no C compiler was specified, use CC.
5959 LTCC=${LTCC-"$CC"}
5960
5961 # If no C compiler flags were specified, use CFLAGS.
5962 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5963
5964 # Allow CC to be a program name with arguments.
5965 compiler=$CC
5966
5967
5968 # Check for command to grab the raw symbol name followed by C symbol from nm.
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5970 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5971 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5972   $as_echo_n "(cached) " >&6
5973 else
5974
5975 # These are sane defaults that work on at least a few old systems.
5976 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5977
5978 # Character class describing NM global symbol codes.
5979 symcode='[BCDEGRST]'
5980
5981 # Regexp to match symbols that can be accessed directly from C.
5982 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5983
5984 # Define system-specific variables.
5985 case $host_os in
5986 aix*)
5987   symcode='[BCDT]'
5988   ;;
5989 cygwin* | mingw* | pw32* | cegcc*)
5990   symcode='[ABCDGISTW]'
5991   ;;
5992 hpux*)
5993   if test "$host_cpu" = ia64; then
5994     symcode='[ABCDEGRST]'
5995   fi
5996   ;;
5997 irix* | nonstopux*)
5998   symcode='[BCDEGRST]'
5999   ;;
6000 osf*)
6001   symcode='[BCDEGQRST]'
6002   ;;
6003 solaris*)
6004   symcode='[BDRT]'
6005   ;;
6006 sco3.2v5*)
6007   symcode='[DT]'
6008   ;;
6009 sysv4.2uw2*)
6010   symcode='[DT]'
6011   ;;
6012 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6013   symcode='[ABDT]'
6014   ;;
6015 sysv4)
6016   symcode='[DFNSTU]'
6017   ;;
6018 esac
6019
6020 # If we're using GNU nm, then use its standard symbol codes.
6021 case `$NM -V 2>&1` in
6022 *GNU* | *'with BFD'*)
6023   symcode='[ABCDGIRSTW]' ;;
6024 esac
6025
6026 # Transform an extracted symbol line into a proper C declaration.
6027 # Some systems (esp. on ia64) link data and code symbols differently,
6028 # so use this general approach.
6029 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6030
6031 # Transform an extracted symbol line into symbol name and symbol address
6032 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6033 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'"
6034
6035 # Handle CRLF in mingw tool chain
6036 opt_cr=
6037 case $build_os in
6038 mingw*)
6039   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6040   ;;
6041 esac
6042
6043 # Try without a prefix underscore, then with it.
6044 for ac_symprfx in "" "_"; do
6045
6046   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6047   symxfrm="\\1 $ac_symprfx\\2 \\2"
6048
6049   # Write the raw and C identifiers.
6050   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6051     # Fake it for dumpbin and say T for any non-static function
6052     # and D for any global variable.
6053     # Also find C++ and __fastcall symbols from MSVC++,
6054     # which start with @ or ?.
6055     lt_cv_sys_global_symbol_pipe="$AWK '"\
6056 "     {last_section=section; section=\$ 3};"\
6057 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6058 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6059 "     \$ 0!~/External *\|/{next};"\
6060 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6061 "     {if(hide[section]) next};"\
6062 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6063 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6064 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6065 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6066 "     ' prfx=^$ac_symprfx"
6067   else
6068     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6069   fi
6070   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6071
6072   # Check to see that the pipe works correctly.
6073   pipe_works=no
6074
6075   rm -f conftest*
6076   cat > conftest.$ac_ext <<_LT_EOF
6077 #ifdef __cplusplus
6078 extern "C" {
6079 #endif
6080 char nm_test_var;
6081 void nm_test_func(void);
6082 void nm_test_func(void){}
6083 #ifdef __cplusplus
6084 }
6085 #endif
6086 int main(){nm_test_var='a';nm_test_func();return(0);}
6087 _LT_EOF
6088
6089   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6090   (eval $ac_compile) 2>&5
6091   ac_status=$?
6092   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6093   test $ac_status = 0; }; then
6094     # Now try to grab the symbols.
6095     nlist=conftest.nm
6096     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6097   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6098   ac_status=$?
6099   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6100   test $ac_status = 0; } && test -s "$nlist"; then
6101       # Try sorting and uniquifying the output.
6102       if sort "$nlist" | uniq > "$nlist"T; then
6103         mv -f "$nlist"T "$nlist"
6104       else
6105         rm -f "$nlist"T
6106       fi
6107
6108       # Make sure that we snagged all the symbols we need.
6109       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6110         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6111           cat <<_LT_EOF > conftest.$ac_ext
6112 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6113 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6114 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6115    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6116 # define LT_DLSYM_CONST
6117 #elif defined(__osf__)
6118 /* This system does not cope well with relocations in const data.  */
6119 # define LT_DLSYM_CONST
6120 #else
6121 # define LT_DLSYM_CONST const
6122 #endif
6123
6124 #ifdef __cplusplus
6125 extern "C" {
6126 #endif
6127
6128 _LT_EOF
6129           # Now generate the symbol file.
6130           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6131
6132           cat <<_LT_EOF >> conftest.$ac_ext
6133
6134 /* The mapping between symbol names and symbols.  */
6135 LT_DLSYM_CONST struct {
6136   const char *name;
6137   void       *address;
6138 }
6139 lt__PROGRAM__LTX_preloaded_symbols[] =
6140 {
6141   { "@PROGRAM@", (void *) 0 },
6142 _LT_EOF
6143           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6144           cat <<\_LT_EOF >> conftest.$ac_ext
6145   {0, (void *) 0}
6146 };
6147
6148 /* This works around a problem in FreeBSD linker */
6149 #ifdef FREEBSD_WORKAROUND
6150 static const void *lt_preloaded_setup() {
6151   return lt__PROGRAM__LTX_preloaded_symbols;
6152 }
6153 #endif
6154
6155 #ifdef __cplusplus
6156 }
6157 #endif
6158 _LT_EOF
6159           # Now try linking the two files.
6160           mv conftest.$ac_objext conftstm.$ac_objext
6161           lt_globsym_save_LIBS=$LIBS
6162           lt_globsym_save_CFLAGS=$CFLAGS
6163           LIBS="conftstm.$ac_objext"
6164           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6165           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6166   (eval $ac_link) 2>&5
6167   ac_status=$?
6168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6169   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6170             pipe_works=yes
6171           fi
6172           LIBS=$lt_globsym_save_LIBS
6173           CFLAGS=$lt_globsym_save_CFLAGS
6174         else
6175           echo "cannot find nm_test_func in $nlist" >&5
6176         fi
6177       else
6178         echo "cannot find nm_test_var in $nlist" >&5
6179       fi
6180     else
6181       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6182     fi
6183   else
6184     echo "$progname: failed program was:" >&5
6185     cat conftest.$ac_ext >&5
6186   fi
6187   rm -rf conftest* conftst*
6188
6189   # Do not use the global_symbol_pipe unless it works.
6190   if test "$pipe_works" = yes; then
6191     break
6192   else
6193     lt_cv_sys_global_symbol_pipe=
6194   fi
6195 done
6196
6197 fi
6198
6199 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6200   lt_cv_sys_global_symbol_to_cdecl=
6201 fi
6202 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6204 $as_echo "failed" >&6; }
6205 else
6206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6207 $as_echo "ok" >&6; }
6208 fi
6209
6210 # Response file support.
6211 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6212   nm_file_list_spec='@'
6213 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6214   nm_file_list_spec='@'
6215 fi
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6244 $as_echo_n "checking for sysroot... " >&6; }
6245
6246 # Check whether --with-sysroot was given.
6247 if test "${with_sysroot+set}" = set; then :
6248   withval=$with_sysroot;
6249 else
6250   with_sysroot=no
6251 fi
6252
6253
6254 lt_sysroot=
6255 case ${with_sysroot} in #(
6256  yes)
6257    if test "$GCC" = yes; then
6258      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6259    fi
6260    ;; #(
6261  /*)
6262    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6263    ;; #(
6264  no|'')
6265    ;; #(
6266  *)
6267    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6268 $as_echo "${with_sysroot}" >&6; }
6269    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6270    ;;
6271 esac
6272
6273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6274 $as_echo "${lt_sysroot:-no}" >&6; }
6275
6276
6277
6278
6279
6280 # Check whether --enable-libtool-lock was given.
6281 if test "${enable_libtool_lock+set}" = set; then :
6282   enableval=$enable_libtool_lock;
6283 fi
6284
6285 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6286
6287 # Some flags need to be propagated to the compiler or linker for good
6288 # libtool support.
6289 case $host in
6290 ia64-*-hpux*)
6291   # Find out which ABI we are using.
6292   echo 'int i;' > conftest.$ac_ext
6293   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6294   (eval $ac_compile) 2>&5
6295   ac_status=$?
6296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6297   test $ac_status = 0; }; then
6298     case `/usr/bin/file conftest.$ac_objext` in
6299       *ELF-32*)
6300         HPUX_IA64_MODE="32"
6301         ;;
6302       *ELF-64*)
6303         HPUX_IA64_MODE="64"
6304         ;;
6305     esac
6306   fi
6307   rm -rf conftest*
6308   ;;
6309 *-*-irix6*)
6310   # Find out which ABI we are using.
6311   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6312   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6313   (eval $ac_compile) 2>&5
6314   ac_status=$?
6315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6316   test $ac_status = 0; }; then
6317     if test "$lt_cv_prog_gnu_ld" = yes; then
6318       case `/usr/bin/file conftest.$ac_objext` in
6319         *32-bit*)
6320           LD="${LD-ld} -melf32bsmip"
6321           ;;
6322         *N32*)
6323           LD="${LD-ld} -melf32bmipn32"
6324           ;;
6325         *64-bit*)
6326           LD="${LD-ld} -melf64bmip"
6327         ;;
6328       esac
6329     else
6330       case `/usr/bin/file conftest.$ac_objext` in
6331         *32-bit*)
6332           LD="${LD-ld} -32"
6333           ;;
6334         *N32*)
6335           LD="${LD-ld} -n32"
6336           ;;
6337         *64-bit*)
6338           LD="${LD-ld} -64"
6339           ;;
6340       esac
6341     fi
6342   fi
6343   rm -rf conftest*
6344   ;;
6345
6346 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6347 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6348   # Find out which ABI we are using.
6349   echo 'int i;' > conftest.$ac_ext
6350   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6351   (eval $ac_compile) 2>&5
6352   ac_status=$?
6353   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6354   test $ac_status = 0; }; then
6355     case `/usr/bin/file conftest.o` in
6356       *32-bit*)
6357         case $host in
6358           x86_64-*kfreebsd*-gnu)
6359             LD="${LD-ld} -m elf_i386_fbsd"
6360             ;;
6361           x86_64-*linux*)
6362             case `/usr/bin/file conftest.o` in
6363               *x86-64*)
6364                 LD="${LD-ld} -m elf32_x86_64"
6365                 ;;
6366               *)
6367                 LD="${LD-ld} -m elf_i386"
6368                 ;;
6369             esac
6370             ;;
6371           powerpc64le-*)
6372             LD="${LD-ld} -m elf32lppclinux"
6373             ;;
6374           powerpc64-*)
6375             LD="${LD-ld} -m elf32ppclinux"
6376             ;;
6377           s390x-*linux*)
6378             LD="${LD-ld} -m elf_s390"
6379             ;;
6380           sparc64-*linux*)
6381             LD="${LD-ld} -m elf32_sparc"
6382             ;;
6383         esac
6384         ;;
6385       *64-bit*)
6386         case $host in
6387           x86_64-*kfreebsd*-gnu)
6388             LD="${LD-ld} -m elf_x86_64_fbsd"
6389             ;;
6390           x86_64-*linux*)
6391             LD="${LD-ld} -m elf_x86_64"
6392             ;;
6393           powerpcle-*)
6394             LD="${LD-ld} -m elf64lppc"
6395             ;;
6396           powerpc-*)
6397             LD="${LD-ld} -m elf64ppc"
6398             ;;
6399           s390*-*linux*|s390*-*tpf*)
6400             LD="${LD-ld} -m elf64_s390"
6401             ;;
6402           sparc*-*linux*)
6403             LD="${LD-ld} -m elf64_sparc"
6404             ;;
6405         esac
6406         ;;
6407     esac
6408   fi
6409   rm -rf conftest*
6410   ;;
6411
6412 *-*-sco3.2v5*)
6413   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6414   SAVE_CFLAGS="$CFLAGS"
6415   CFLAGS="$CFLAGS -belf"
6416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6417 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6418 if ${lt_cv_cc_needs_belf+:} false; then :
6419   $as_echo_n "(cached) " >&6
6420 else
6421   ac_ext=c
6422 ac_cpp='$CPP $CPPFLAGS'
6423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6426
6427      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428 /* end confdefs.h.  */
6429
6430 int
6431 main ()
6432 {
6433
6434   ;
6435   return 0;
6436 }
6437 _ACEOF
6438 if ac_fn_c_try_link "$LINENO"; then :
6439   lt_cv_cc_needs_belf=yes
6440 else
6441   lt_cv_cc_needs_belf=no
6442 fi
6443 rm -f core conftest.err conftest.$ac_objext \
6444     conftest$ac_exeext conftest.$ac_ext
6445      ac_ext=c
6446 ac_cpp='$CPP $CPPFLAGS'
6447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6450
6451 fi
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6453 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6454   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6455     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6456     CFLAGS="$SAVE_CFLAGS"
6457   fi
6458   ;;
6459 *-*solaris*)
6460   # Find out which ABI we are using.
6461   echo 'int i;' > conftest.$ac_ext
6462   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6463   (eval $ac_compile) 2>&5
6464   ac_status=$?
6465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6466   test $ac_status = 0; }; then
6467     case `/usr/bin/file conftest.o` in
6468     *64-bit*)
6469       case $lt_cv_prog_gnu_ld in
6470       yes*)
6471         case $host in
6472         i?86-*-solaris*)
6473           LD="${LD-ld} -m elf_x86_64"
6474           ;;
6475         sparc*-*-solaris*)
6476           LD="${LD-ld} -m elf64_sparc"
6477           ;;
6478         esac
6479         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6480         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6481           LD="${LD-ld}_sol2"
6482         fi
6483         ;;
6484       *)
6485         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6486           LD="${LD-ld} -64"
6487         fi
6488         ;;
6489       esac
6490       ;;
6491     esac
6492   fi
6493   rm -rf conftest*
6494   ;;
6495 esac
6496
6497 need_locks="$enable_libtool_lock"
6498
6499 if test -n "$ac_tool_prefix"; then
6500   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6501 set dummy ${ac_tool_prefix}mt; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6505   $as_echo_n "(cached) " >&6
6506 else
6507   if test -n "$MANIFEST_TOOL"; then
6508   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6512 do
6513   IFS=$as_save_IFS
6514   test -z "$as_dir" && as_dir=.
6515     for ac_exec_ext in '' $ac_executable_extensions; do
6516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519     break 2
6520   fi
6521 done
6522   done
6523 IFS=$as_save_IFS
6524
6525 fi
6526 fi
6527 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6528 if test -n "$MANIFEST_TOOL"; then
6529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6530 $as_echo "$MANIFEST_TOOL" >&6; }
6531 else
6532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6534 fi
6535
6536
6537 fi
6538 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6539   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6540   # Extract the first word of "mt", so it can be a program name with args.
6541 set dummy mt; ac_word=$2
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543 $as_echo_n "checking for $ac_word... " >&6; }
6544 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6545   $as_echo_n "(cached) " >&6
6546 else
6547   if test -n "$ac_ct_MANIFEST_TOOL"; then
6548   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6549 else
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553   IFS=$as_save_IFS
6554   test -z "$as_dir" && as_dir=.
6555     for ac_exec_ext in '' $ac_executable_extensions; do
6556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6557     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559     break 2
6560   fi
6561 done
6562   done
6563 IFS=$as_save_IFS
6564
6565 fi
6566 fi
6567 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6568 if test -n "$ac_ct_MANIFEST_TOOL"; then
6569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6570 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6571 else
6572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573 $as_echo "no" >&6; }
6574 fi
6575
6576   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6577     MANIFEST_TOOL=":"
6578   else
6579     case $cross_compiling:$ac_tool_warned in
6580 yes:)
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6583 ac_tool_warned=yes ;;
6584 esac
6585     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6586   fi
6587 else
6588   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6589 fi
6590
6591 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6593 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6594 if ${lt_cv_path_mainfest_tool+:} false; then :
6595   $as_echo_n "(cached) " >&6
6596 else
6597   lt_cv_path_mainfest_tool=no
6598   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6599   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6600   cat conftest.err >&5
6601   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6602     lt_cv_path_mainfest_tool=yes
6603   fi
6604   rm -f conftest*
6605 fi
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6607 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6608 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6609   MANIFEST_TOOL=:
6610 fi
6611
6612
6613
6614
6615
6616
6617   case $host_os in
6618     rhapsody* | darwin*)
6619     if test -n "$ac_tool_prefix"; then
6620   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6621 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623 $as_echo_n "checking for $ac_word... " >&6; }
6624 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6625   $as_echo_n "(cached) " >&6
6626 else
6627   if test -n "$DSYMUTIL"; then
6628   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6629 else
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6632 do
6633   IFS=$as_save_IFS
6634   test -z "$as_dir" && as_dir=.
6635     for ac_exec_ext in '' $ac_executable_extensions; do
6636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6637     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639     break 2
6640   fi
6641 done
6642   done
6643 IFS=$as_save_IFS
6644
6645 fi
6646 fi
6647 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6648 if test -n "$DSYMUTIL"; then
6649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6650 $as_echo "$DSYMUTIL" >&6; }
6651 else
6652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653 $as_echo "no" >&6; }
6654 fi
6655
6656
6657 fi
6658 if test -z "$ac_cv_prog_DSYMUTIL"; then
6659   ac_ct_DSYMUTIL=$DSYMUTIL
6660   # Extract the first word of "dsymutil", so it can be a program name with args.
6661 set dummy dsymutil; ac_word=$2
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663 $as_echo_n "checking for $ac_word... " >&6; }
6664 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6665   $as_echo_n "(cached) " >&6
6666 else
6667   if test -n "$ac_ct_DSYMUTIL"; then
6668   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6669 else
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6672 do
6673   IFS=$as_save_IFS
6674   test -z "$as_dir" && as_dir=.
6675     for ac_exec_ext in '' $ac_executable_extensions; do
6676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6677     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679     break 2
6680   fi
6681 done
6682   done
6683 IFS=$as_save_IFS
6684
6685 fi
6686 fi
6687 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6688 if test -n "$ac_ct_DSYMUTIL"; then
6689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6690 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6691 else
6692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693 $as_echo "no" >&6; }
6694 fi
6695
6696   if test "x$ac_ct_DSYMUTIL" = x; then
6697     DSYMUTIL=":"
6698   else
6699     case $cross_compiling:$ac_tool_warned in
6700 yes:)
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6703 ac_tool_warned=yes ;;
6704 esac
6705     DSYMUTIL=$ac_ct_DSYMUTIL
6706   fi
6707 else
6708   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6709 fi
6710
6711     if test -n "$ac_tool_prefix"; then
6712   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6713 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if ${ac_cv_prog_NMEDIT+:} false; then :
6717   $as_echo_n "(cached) " >&6
6718 else
6719   if test -n "$NMEDIT"; then
6720   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6721 else
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6724 do
6725   IFS=$as_save_IFS
6726   test -z "$as_dir" && as_dir=.
6727     for ac_exec_ext in '' $ac_executable_extensions; do
6728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6731     break 2
6732   fi
6733 done
6734   done
6735 IFS=$as_save_IFS
6736
6737 fi
6738 fi
6739 NMEDIT=$ac_cv_prog_NMEDIT
6740 if test -n "$NMEDIT"; then
6741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6742 $as_echo "$NMEDIT" >&6; }
6743 else
6744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6746 fi
6747
6748
6749 fi
6750 if test -z "$ac_cv_prog_NMEDIT"; then
6751   ac_ct_NMEDIT=$NMEDIT
6752   # Extract the first word of "nmedit", so it can be a program name with args.
6753 set dummy nmedit; ac_word=$2
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6757   $as_echo_n "(cached) " >&6
6758 else
6759   if test -n "$ac_ct_NMEDIT"; then
6760   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765   IFS=$as_save_IFS
6766   test -z "$as_dir" && as_dir=.
6767     for ac_exec_ext in '' $ac_executable_extensions; do
6768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771     break 2
6772   fi
6773 done
6774   done
6775 IFS=$as_save_IFS
6776
6777 fi
6778 fi
6779 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6780 if test -n "$ac_ct_NMEDIT"; then
6781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6782 $as_echo "$ac_ct_NMEDIT" >&6; }
6783 else
6784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6786 fi
6787
6788   if test "x$ac_ct_NMEDIT" = x; then
6789     NMEDIT=":"
6790   else
6791     case $cross_compiling:$ac_tool_warned in
6792 yes:)
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6795 ac_tool_warned=yes ;;
6796 esac
6797     NMEDIT=$ac_ct_NMEDIT
6798   fi
6799 else
6800   NMEDIT="$ac_cv_prog_NMEDIT"
6801 fi
6802
6803     if test -n "$ac_tool_prefix"; then
6804   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6805 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6807 $as_echo_n "checking for $ac_word... " >&6; }
6808 if ${ac_cv_prog_LIPO+:} false; then :
6809   $as_echo_n "(cached) " >&6
6810 else
6811   if test -n "$LIPO"; then
6812   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6813 else
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6816 do
6817   IFS=$as_save_IFS
6818   test -z "$as_dir" && as_dir=.
6819     for ac_exec_ext in '' $ac_executable_extensions; do
6820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6821     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6823     break 2
6824   fi
6825 done
6826   done
6827 IFS=$as_save_IFS
6828
6829 fi
6830 fi
6831 LIPO=$ac_cv_prog_LIPO
6832 if test -n "$LIPO"; then
6833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6834 $as_echo "$LIPO" >&6; }
6835 else
6836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837 $as_echo "no" >&6; }
6838 fi
6839
6840
6841 fi
6842 if test -z "$ac_cv_prog_LIPO"; then
6843   ac_ct_LIPO=$LIPO
6844   # Extract the first word of "lipo", so it can be a program name with args.
6845 set dummy lipo; ac_word=$2
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6847 $as_echo_n "checking for $ac_word... " >&6; }
6848 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6849   $as_echo_n "(cached) " >&6
6850 else
6851   if test -n "$ac_ct_LIPO"; then
6852   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6853 else
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857   IFS=$as_save_IFS
6858   test -z "$as_dir" && as_dir=.
6859     for ac_exec_ext in '' $ac_executable_extensions; do
6860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6861     ac_cv_prog_ac_ct_LIPO="lipo"
6862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863     break 2
6864   fi
6865 done
6866   done
6867 IFS=$as_save_IFS
6868
6869 fi
6870 fi
6871 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6872 if test -n "$ac_ct_LIPO"; then
6873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6874 $as_echo "$ac_ct_LIPO" >&6; }
6875 else
6876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877 $as_echo "no" >&6; }
6878 fi
6879
6880   if test "x$ac_ct_LIPO" = x; then
6881     LIPO=":"
6882   else
6883     case $cross_compiling:$ac_tool_warned in
6884 yes:)
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6887 ac_tool_warned=yes ;;
6888 esac
6889     LIPO=$ac_ct_LIPO
6890   fi
6891 else
6892   LIPO="$ac_cv_prog_LIPO"
6893 fi
6894
6895     if test -n "$ac_tool_prefix"; then
6896   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6897 set dummy ${ac_tool_prefix}otool; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if ${ac_cv_prog_OTOOL+:} false; then :
6901   $as_echo_n "(cached) " >&6
6902 else
6903   if test -n "$OTOOL"; then
6904   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6905 else
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6908 do
6909   IFS=$as_save_IFS
6910   test -z "$as_dir" && as_dir=.
6911     for ac_exec_ext in '' $ac_executable_extensions; do
6912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6913     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915     break 2
6916   fi
6917 done
6918   done
6919 IFS=$as_save_IFS
6920
6921 fi
6922 fi
6923 OTOOL=$ac_cv_prog_OTOOL
6924 if test -n "$OTOOL"; then
6925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6926 $as_echo "$OTOOL" >&6; }
6927 else
6928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6930 fi
6931
6932
6933 fi
6934 if test -z "$ac_cv_prog_OTOOL"; then
6935   ac_ct_OTOOL=$OTOOL
6936   # Extract the first word of "otool", so it can be a program name with args.
6937 set dummy otool; ac_word=$2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6941   $as_echo_n "(cached) " >&6
6942 else
6943   if test -n "$ac_ct_OTOOL"; then
6944   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6945 else
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6948 do
6949   IFS=$as_save_IFS
6950   test -z "$as_dir" && as_dir=.
6951     for ac_exec_ext in '' $ac_executable_extensions; do
6952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6953     ac_cv_prog_ac_ct_OTOOL="otool"
6954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955     break 2
6956   fi
6957 done
6958   done
6959 IFS=$as_save_IFS
6960
6961 fi
6962 fi
6963 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6964 if test -n "$ac_ct_OTOOL"; then
6965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6966 $as_echo "$ac_ct_OTOOL" >&6; }
6967 else
6968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6970 fi
6971
6972   if test "x$ac_ct_OTOOL" = x; then
6973     OTOOL=":"
6974   else
6975     case $cross_compiling:$ac_tool_warned in
6976 yes:)
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6979 ac_tool_warned=yes ;;
6980 esac
6981     OTOOL=$ac_ct_OTOOL
6982   fi
6983 else
6984   OTOOL="$ac_cv_prog_OTOOL"
6985 fi
6986
6987     if test -n "$ac_tool_prefix"; then
6988   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6989 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991 $as_echo_n "checking for $ac_word... " >&6; }
6992 if ${ac_cv_prog_OTOOL64+:} false; then :
6993   $as_echo_n "(cached) " >&6
6994 else
6995   if test -n "$OTOOL64"; then
6996   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6997 else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001   IFS=$as_save_IFS
7002   test -z "$as_dir" && as_dir=.
7003     for ac_exec_ext in '' $ac_executable_extensions; do
7004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7005     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007     break 2
7008   fi
7009 done
7010   done
7011 IFS=$as_save_IFS
7012
7013 fi
7014 fi
7015 OTOOL64=$ac_cv_prog_OTOOL64
7016 if test -n "$OTOOL64"; then
7017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7018 $as_echo "$OTOOL64" >&6; }
7019 else
7020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021 $as_echo "no" >&6; }
7022 fi
7023
7024
7025 fi
7026 if test -z "$ac_cv_prog_OTOOL64"; then
7027   ac_ct_OTOOL64=$OTOOL64
7028   # Extract the first word of "otool64", so it can be a program name with args.
7029 set dummy otool64; ac_word=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7033   $as_echo_n "(cached) " >&6
7034 else
7035   if test -n "$ac_ct_OTOOL64"; then
7036   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041   IFS=$as_save_IFS
7042   test -z "$as_dir" && as_dir=.
7043     for ac_exec_ext in '' $ac_executable_extensions; do
7044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7045     ac_cv_prog_ac_ct_OTOOL64="otool64"
7046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047     break 2
7048   fi
7049 done
7050   done
7051 IFS=$as_save_IFS
7052
7053 fi
7054 fi
7055 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7056 if test -n "$ac_ct_OTOOL64"; then
7057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7058 $as_echo "$ac_ct_OTOOL64" >&6; }
7059 else
7060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7062 fi
7063
7064   if test "x$ac_ct_OTOOL64" = x; then
7065     OTOOL64=":"
7066   else
7067     case $cross_compiling:$ac_tool_warned in
7068 yes:)
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7071 ac_tool_warned=yes ;;
7072 esac
7073     OTOOL64=$ac_ct_OTOOL64
7074   fi
7075 else
7076   OTOOL64="$ac_cv_prog_OTOOL64"
7077 fi
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7106 $as_echo_n "checking for -single_module linker flag... " >&6; }
7107 if ${lt_cv_apple_cc_single_mod+:} false; then :
7108   $as_echo_n "(cached) " >&6
7109 else
7110   lt_cv_apple_cc_single_mod=no
7111       if test -z "${LT_MULTI_MODULE}"; then
7112         # By default we will add the -single_module flag. You can override
7113         # by either setting the environment variable LT_MULTI_MODULE
7114         # non-empty at configure time, or by adding -multi_module to the
7115         # link flags.
7116         rm -rf libconftest.dylib*
7117         echo "int foo(void){return 1;}" > conftest.c
7118         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7119 -dynamiclib -Wl,-single_module conftest.c" >&5
7120         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7121           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7122         _lt_result=$?
7123         # If there is a non-empty error log, and "single_module"
7124         # appears in it, assume the flag caused a linker warning
7125         if test -s conftest.err && $GREP single_module conftest.err; then
7126           cat conftest.err >&5
7127         # Otherwise, if the output was created with a 0 exit code from
7128         # the compiler, it worked.
7129         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7130           lt_cv_apple_cc_single_mod=yes
7131         else
7132           cat conftest.err >&5
7133         fi
7134         rm -rf libconftest.dylib*
7135         rm -f conftest.*
7136       fi
7137 fi
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7139 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7140
7141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7142 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7143 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7144   $as_echo_n "(cached) " >&6
7145 else
7146   lt_cv_ld_exported_symbols_list=no
7147       save_LDFLAGS=$LDFLAGS
7148       echo "_main" > conftest.sym
7149       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7150       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h.  */
7152
7153 int
7154 main ()
7155 {
7156
7157   ;
7158   return 0;
7159 }
7160 _ACEOF
7161 if ac_fn_c_try_link "$LINENO"; then :
7162   lt_cv_ld_exported_symbols_list=yes
7163 else
7164   lt_cv_ld_exported_symbols_list=no
7165 fi
7166 rm -f core conftest.err conftest.$ac_objext \
7167     conftest$ac_exeext conftest.$ac_ext
7168         LDFLAGS="$save_LDFLAGS"
7169
7170 fi
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7172 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7173
7174     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7175 $as_echo_n "checking for -force_load linker flag... " >&6; }
7176 if ${lt_cv_ld_force_load+:} false; then :
7177   $as_echo_n "(cached) " >&6
7178 else
7179   lt_cv_ld_force_load=no
7180       cat > conftest.c << _LT_EOF
7181 int forced_loaded() { return 2;}
7182 _LT_EOF
7183       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7184       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7185       echo "$AR cru libconftest.a conftest.o" >&5
7186       $AR cru libconftest.a conftest.o 2>&5
7187       echo "$RANLIB libconftest.a" >&5
7188       $RANLIB libconftest.a 2>&5
7189       cat > conftest.c << _LT_EOF
7190 int main() { return 0;}
7191 _LT_EOF
7192       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7193       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7194       _lt_result=$?
7195       if test -s conftest.err && $GREP force_load conftest.err; then
7196         cat conftest.err >&5
7197       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7198         lt_cv_ld_force_load=yes
7199       else
7200         cat conftest.err >&5
7201       fi
7202         rm -f conftest.err libconftest.a conftest conftest.c
7203         rm -rf conftest.dSYM
7204
7205 fi
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7207 $as_echo "$lt_cv_ld_force_load" >&6; }
7208     case $host_os in
7209     rhapsody* | darwin1.[012])
7210       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7211     darwin1.*)
7212       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7213     darwin*) # darwin 5.x on
7214       # if running on 10.5 or later, the deployment target defaults
7215       # to the OS version, if on x86, and 10.4, the deployment
7216       # target defaults to 10.4. Don't you love it?
7217       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7218         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7219           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7220         10.[012]*)
7221           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7222         10.*)
7223           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7224       esac
7225     ;;
7226   esac
7227     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7228       _lt_dar_single_mod='$single_module'
7229     fi
7230     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7231       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7232     else
7233       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7234     fi
7235     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7236       _lt_dsymutil='~$DSYMUTIL $lib || :'
7237     else
7238       _lt_dsymutil=
7239     fi
7240     ;;
7241   esac
7242
7243 ac_ext=c
7244 ac_cpp='$CPP $CPPFLAGS'
7245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7249 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7250 # On Suns, sometimes $CPP names a directory.
7251 if test -n "$CPP" && test -d "$CPP"; then
7252   CPP=
7253 fi
7254 if test -z "$CPP"; then
7255   if ${ac_cv_prog_CPP+:} false; then :
7256   $as_echo_n "(cached) " >&6
7257 else
7258       # Double quotes because CPP needs to be expanded
7259     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7260     do
7261       ac_preproc_ok=false
7262 for ac_c_preproc_warn_flag in '' yes
7263 do
7264   # Use a header file that comes with gcc, so configuring glibc
7265   # with a fresh cross-compiler works.
7266   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7267   # <limits.h> exists even on freestanding compilers.
7268   # On the NeXT, cc -E runs the code through the compiler's parser,
7269   # not just through cpp. "Syntax error" is here to catch this case.
7270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h.  */
7272 #ifdef __STDC__
7273 # include <limits.h>
7274 #else
7275 # include <assert.h>
7276 #endif
7277                      Syntax error
7278 _ACEOF
7279 if ac_fn_c_try_cpp "$LINENO"; then :
7280
7281 else
7282   # Broken: fails on valid input.
7283 continue
7284 fi
7285 rm -f conftest.err conftest.i conftest.$ac_ext
7286
7287   # OK, works on sane cases.  Now check whether nonexistent headers
7288   # can be detected and how.
7289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h.  */
7291 #include <ac_nonexistent.h>
7292 _ACEOF
7293 if ac_fn_c_try_cpp "$LINENO"; then :
7294   # Broken: success on invalid input.
7295 continue
7296 else
7297   # Passes both tests.
7298 ac_preproc_ok=:
7299 break
7300 fi
7301 rm -f conftest.err conftest.i conftest.$ac_ext
7302
7303 done
7304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7305 rm -f conftest.i conftest.err conftest.$ac_ext
7306 if $ac_preproc_ok; then :
7307   break
7308 fi
7309
7310     done
7311     ac_cv_prog_CPP=$CPP
7312
7313 fi
7314   CPP=$ac_cv_prog_CPP
7315 else
7316   ac_cv_prog_CPP=$CPP
7317 fi
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7319 $as_echo "$CPP" >&6; }
7320 ac_preproc_ok=false
7321 for ac_c_preproc_warn_flag in '' yes
7322 do
7323   # Use a header file that comes with gcc, so configuring glibc
7324   # with a fresh cross-compiler works.
7325   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7326   # <limits.h> exists even on freestanding compilers.
7327   # On the NeXT, cc -E runs the code through the compiler's parser,
7328   # not just through cpp. "Syntax error" is here to catch this case.
7329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h.  */
7331 #ifdef __STDC__
7332 # include <limits.h>
7333 #else
7334 # include <assert.h>
7335 #endif
7336                      Syntax error
7337 _ACEOF
7338 if ac_fn_c_try_cpp "$LINENO"; then :
7339
7340 else
7341   # Broken: fails on valid input.
7342 continue
7343 fi
7344 rm -f conftest.err conftest.i conftest.$ac_ext
7345
7346   # OK, works on sane cases.  Now check whether nonexistent headers
7347   # can be detected and how.
7348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h.  */
7350 #include <ac_nonexistent.h>
7351 _ACEOF
7352 if ac_fn_c_try_cpp "$LINENO"; then :
7353   # Broken: success on invalid input.
7354 continue
7355 else
7356   # Passes both tests.
7357 ac_preproc_ok=:
7358 break
7359 fi
7360 rm -f conftest.err conftest.i conftest.$ac_ext
7361
7362 done
7363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7364 rm -f conftest.i conftest.err conftest.$ac_ext
7365 if $ac_preproc_ok; then :
7366
7367 else
7368   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7370 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7371 See \`config.log' for more details" "$LINENO" 5; }
7372 fi
7373
7374 ac_ext=c
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379
7380
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7382 $as_echo_n "checking for ANSI C header files... " >&6; }
7383 if ${ac_cv_header_stdc+:} false; then :
7384   $as_echo_n "(cached) " >&6
7385 else
7386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387 /* end confdefs.h.  */
7388 #include <stdlib.h>
7389 #include <stdarg.h>
7390 #include <string.h>
7391 #include <float.h>
7392
7393 int
7394 main ()
7395 {
7396
7397   ;
7398   return 0;
7399 }
7400 _ACEOF
7401 if ac_fn_c_try_compile "$LINENO"; then :
7402   ac_cv_header_stdc=yes
7403 else
7404   ac_cv_header_stdc=no
7405 fi
7406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407
7408 if test $ac_cv_header_stdc = yes; then
7409   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h.  */
7412 #include <string.h>
7413
7414 _ACEOF
7415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7416   $EGREP "memchr" >/dev/null 2>&1; then :
7417
7418 else
7419   ac_cv_header_stdc=no
7420 fi
7421 rm -f conftest*
7422
7423 fi
7424
7425 if test $ac_cv_header_stdc = yes; then
7426   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h.  */
7429 #include <stdlib.h>
7430
7431 _ACEOF
7432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7433   $EGREP "free" >/dev/null 2>&1; then :
7434
7435 else
7436   ac_cv_header_stdc=no
7437 fi
7438 rm -f conftest*
7439
7440 fi
7441
7442 if test $ac_cv_header_stdc = yes; then
7443   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7444   if test "$cross_compiling" = yes; then :
7445   :
7446 else
7447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h.  */
7449 #include <ctype.h>
7450 #include <stdlib.h>
7451 #if ((' ' & 0x0FF) == 0x020)
7452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7454 #else
7455 # define ISLOWER(c) \
7456                    (('a' <= (c) && (c) <= 'i') \
7457                      || ('j' <= (c) && (c) <= 'r') \
7458                      || ('s' <= (c) && (c) <= 'z'))
7459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7460 #endif
7461
7462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7463 int
7464 main ()
7465 {
7466   int i;
7467   for (i = 0; i < 256; i++)
7468     if (XOR (islower (i), ISLOWER (i))
7469         || toupper (i) != TOUPPER (i))
7470       return 2;
7471   return 0;
7472 }
7473 _ACEOF
7474 if ac_fn_c_try_run "$LINENO"; then :
7475
7476 else
7477   ac_cv_header_stdc=no
7478 fi
7479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7480   conftest.$ac_objext conftest.beam conftest.$ac_ext
7481 fi
7482
7483 fi
7484 fi
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7486 $as_echo "$ac_cv_header_stdc" >&6; }
7487 if test $ac_cv_header_stdc = yes; then
7488
7489 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7490
7491 fi
7492
7493 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7494 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7495                   inttypes.h stdint.h unistd.h
7496 do :
7497   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7498 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7499 "
7500 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7501   cat >>confdefs.h <<_ACEOF
7502 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7503 _ACEOF
7504
7505 fi
7506
7507 done
7508
7509
7510 for ac_header in dlfcn.h
7511 do :
7512   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7513 "
7514 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7515   cat >>confdefs.h <<_ACEOF
7516 #define HAVE_DLFCN_H 1
7517 _ACEOF
7518
7519 fi
7520
7521 done
7522
7523
7524
7525
7526
7527 # Set options
7528 enable_dlopen=yes
7529 enable_win32_dll=yes
7530
7531 case $host in
7532 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7533   if test -n "$ac_tool_prefix"; then
7534   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7535 set dummy ${ac_tool_prefix}as; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if ${ac_cv_prog_AS+:} false; then :
7539   $as_echo_n "(cached) " >&6
7540 else
7541   if test -n "$AS"; then
7542   ac_cv_prog_AS="$AS" # Let the user override the test.
7543 else
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547   IFS=$as_save_IFS
7548   test -z "$as_dir" && as_dir=.
7549     for ac_exec_ext in '' $ac_executable_extensions; do
7550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7551     ac_cv_prog_AS="${ac_tool_prefix}as"
7552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553     break 2
7554   fi
7555 done
7556   done
7557 IFS=$as_save_IFS
7558
7559 fi
7560 fi
7561 AS=$ac_cv_prog_AS
7562 if test -n "$AS"; then
7563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7564 $as_echo "$AS" >&6; }
7565 else
7566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7568 fi
7569
7570
7571 fi
7572 if test -z "$ac_cv_prog_AS"; then
7573   ac_ct_AS=$AS
7574   # Extract the first word of "as", so it can be a program name with args.
7575 set dummy as; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7579   $as_echo_n "(cached) " >&6
7580 else
7581   if test -n "$ac_ct_AS"; then
7582   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7583 else
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587   IFS=$as_save_IFS
7588   test -z "$as_dir" && as_dir=.
7589     for ac_exec_ext in '' $ac_executable_extensions; do
7590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7591     ac_cv_prog_ac_ct_AS="as"
7592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593     break 2
7594   fi
7595 done
7596   done
7597 IFS=$as_save_IFS
7598
7599 fi
7600 fi
7601 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7602 if test -n "$ac_ct_AS"; then
7603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7604 $as_echo "$ac_ct_AS" >&6; }
7605 else
7606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7608 fi
7609
7610   if test "x$ac_ct_AS" = x; then
7611     AS="false"
7612   else
7613     case $cross_compiling:$ac_tool_warned in
7614 yes:)
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7617 ac_tool_warned=yes ;;
7618 esac
7619     AS=$ac_ct_AS
7620   fi
7621 else
7622   AS="$ac_cv_prog_AS"
7623 fi
7624
7625   if test -n "$ac_tool_prefix"; then
7626   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7627 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629 $as_echo_n "checking for $ac_word... " >&6; }
7630 if ${ac_cv_prog_DLLTOOL+:} false; then :
7631   $as_echo_n "(cached) " >&6
7632 else
7633   if test -n "$DLLTOOL"; then
7634   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7635 else
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7638 do
7639   IFS=$as_save_IFS
7640   test -z "$as_dir" && as_dir=.
7641     for ac_exec_ext in '' $ac_executable_extensions; do
7642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7643     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645     break 2
7646   fi
7647 done
7648   done
7649 IFS=$as_save_IFS
7650
7651 fi
7652 fi
7653 DLLTOOL=$ac_cv_prog_DLLTOOL
7654 if test -n "$DLLTOOL"; then
7655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7656 $as_echo "$DLLTOOL" >&6; }
7657 else
7658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7660 fi
7661
7662
7663 fi
7664 if test -z "$ac_cv_prog_DLLTOOL"; then
7665   ac_ct_DLLTOOL=$DLLTOOL
7666   # Extract the first word of "dlltool", so it can be a program name with args.
7667 set dummy dlltool; ac_word=$2
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7669 $as_echo_n "checking for $ac_word... " >&6; }
7670 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7671   $as_echo_n "(cached) " >&6
7672 else
7673   if test -n "$ac_ct_DLLTOOL"; then
7674   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7675 else
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 for as_dir in $PATH
7678 do
7679   IFS=$as_save_IFS
7680   test -z "$as_dir" && as_dir=.
7681     for ac_exec_ext in '' $ac_executable_extensions; do
7682   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7683     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7685     break 2
7686   fi
7687 done
7688   done
7689 IFS=$as_save_IFS
7690
7691 fi
7692 fi
7693 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7694 if test -n "$ac_ct_DLLTOOL"; then
7695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7696 $as_echo "$ac_ct_DLLTOOL" >&6; }
7697 else
7698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699 $as_echo "no" >&6; }
7700 fi
7701
7702   if test "x$ac_ct_DLLTOOL" = x; then
7703     DLLTOOL="false"
7704   else
7705     case $cross_compiling:$ac_tool_warned in
7706 yes:)
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7709 ac_tool_warned=yes ;;
7710 esac
7711     DLLTOOL=$ac_ct_DLLTOOL
7712   fi
7713 else
7714   DLLTOOL="$ac_cv_prog_DLLTOOL"
7715 fi
7716
7717   if test -n "$ac_tool_prefix"; then
7718   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7719 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721 $as_echo_n "checking for $ac_word... " >&6; }
7722 if ${ac_cv_prog_OBJDUMP+:} false; then :
7723   $as_echo_n "(cached) " >&6
7724 else
7725   if test -n "$OBJDUMP"; then
7726   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7727 else
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 for as_dir in $PATH
7730 do
7731   IFS=$as_save_IFS
7732   test -z "$as_dir" && as_dir=.
7733     for ac_exec_ext in '' $ac_executable_extensions; do
7734   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7735     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7737     break 2
7738   fi
7739 done
7740   done
7741 IFS=$as_save_IFS
7742
7743 fi
7744 fi
7745 OBJDUMP=$ac_cv_prog_OBJDUMP
7746 if test -n "$OBJDUMP"; then
7747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7748 $as_echo "$OBJDUMP" >&6; }
7749 else
7750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7752 fi
7753
7754
7755 fi
7756 if test -z "$ac_cv_prog_OBJDUMP"; then
7757   ac_ct_OBJDUMP=$OBJDUMP
7758   # Extract the first word of "objdump", so it can be a program name with args.
7759 set dummy objdump; ac_word=$2
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761 $as_echo_n "checking for $ac_word... " >&6; }
7762 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7763   $as_echo_n "(cached) " >&6
7764 else
7765   if test -n "$ac_ct_OBJDUMP"; then
7766   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7767 else
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 for as_dir in $PATH
7770 do
7771   IFS=$as_save_IFS
7772   test -z "$as_dir" && as_dir=.
7773     for ac_exec_ext in '' $ac_executable_extensions; do
7774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7775     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777     break 2
7778   fi
7779 done
7780   done
7781 IFS=$as_save_IFS
7782
7783 fi
7784 fi
7785 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7786 if test -n "$ac_ct_OBJDUMP"; then
7787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7788 $as_echo "$ac_ct_OBJDUMP" >&6; }
7789 else
7790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791 $as_echo "no" >&6; }
7792 fi
7793
7794   if test "x$ac_ct_OBJDUMP" = x; then
7795     OBJDUMP="false"
7796   else
7797     case $cross_compiling:$ac_tool_warned in
7798 yes:)
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7801 ac_tool_warned=yes ;;
7802 esac
7803     OBJDUMP=$ac_ct_OBJDUMP
7804   fi
7805 else
7806   OBJDUMP="$ac_cv_prog_OBJDUMP"
7807 fi
7808
7809   ;;
7810 esac
7811
7812 test -z "$AS" && AS=as
7813
7814
7815
7816
7817
7818 test -z "$DLLTOOL" && DLLTOOL=dlltool
7819
7820
7821
7822
7823
7824 test -z "$OBJDUMP" && OBJDUMP=objdump
7825
7826
7827
7828
7829 # Check whether --enable-static was given.
7830 if test "${enable_static+set}" = set; then :
7831   enableval=$enable_static; p=${PACKAGE-default}
7832     case $enableval in
7833     yes) enable_static=yes ;;
7834     no) enable_static=no ;;
7835     *)
7836      enable_static=no
7837       # Look at the argument we got.  We use all the common list separators.
7838       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7839       for pkg in $enableval; do
7840         IFS="$lt_save_ifs"
7841         if test "X$pkg" = "X$p"; then
7842           enable_static=yes
7843         fi
7844       done
7845       IFS="$lt_save_ifs"
7846       ;;
7847     esac
7848 else
7849   enable_static=no
7850 fi
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863             # Check whether --enable-shared was given.
7864 if test "${enable_shared+set}" = set; then :
7865   enableval=$enable_shared; p=${PACKAGE-default}
7866     case $enableval in
7867     yes) enable_shared=yes ;;
7868     no) enable_shared=no ;;
7869     *)
7870       enable_shared=no
7871       # Look at the argument we got.  We use all the common list separators.
7872       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7873       for pkg in $enableval; do
7874         IFS="$lt_save_ifs"
7875         if test "X$pkg" = "X$p"; then
7876           enable_shared=yes
7877         fi
7878       done
7879       IFS="$lt_save_ifs"
7880       ;;
7881     esac
7882 else
7883   enable_shared=yes
7884 fi
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896 # Check whether --with-pic was given.
7897 if test "${with_pic+set}" = set; then :
7898   withval=$with_pic; lt_p=${PACKAGE-default}
7899     case $withval in
7900     yes|no) pic_mode=$withval ;;
7901     *)
7902       pic_mode=default
7903       # Look at the argument we got.  We use all the common list separators.
7904       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7905       for lt_pkg in $withval; do
7906         IFS="$lt_save_ifs"
7907         if test "X$lt_pkg" = "X$lt_p"; then
7908           pic_mode=yes
7909         fi
7910       done
7911       IFS="$lt_save_ifs"
7912       ;;
7913     esac
7914 else
7915   pic_mode=default
7916 fi
7917
7918
7919 test -z "$pic_mode" && pic_mode=default
7920
7921
7922
7923
7924
7925
7926
7927   # Check whether --enable-fast-install was given.
7928 if test "${enable_fast_install+set}" = set; then :
7929   enableval=$enable_fast_install; p=${PACKAGE-default}
7930     case $enableval in
7931     yes) enable_fast_install=yes ;;
7932     no) enable_fast_install=no ;;
7933     *)
7934       enable_fast_install=no
7935       # Look at the argument we got.  We use all the common list separators.
7936       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7937       for pkg in $enableval; do
7938         IFS="$lt_save_ifs"
7939         if test "X$pkg" = "X$p"; then
7940           enable_fast_install=yes
7941         fi
7942       done
7943       IFS="$lt_save_ifs"
7944       ;;
7945     esac
7946 else
7947   enable_fast_install=yes
7948 fi
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960 # This can be used to rebuild libtool when needed
7961 LIBTOOL_DEPS="$ltmain"
7962
7963 # Always use our own libtool.
7964 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995 test -z "$LN_S" && LN_S="ln -s"
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010 if test -n "${ZSH_VERSION+set}" ; then
8011    setopt NO_GLOB_SUBST
8012 fi
8013
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8015 $as_echo_n "checking for objdir... " >&6; }
8016 if ${lt_cv_objdir+:} false; then :
8017   $as_echo_n "(cached) " >&6
8018 else
8019   rm -f .libs 2>/dev/null
8020 mkdir .libs 2>/dev/null
8021 if test -d .libs; then
8022   lt_cv_objdir=.libs
8023 else
8024   # MS-DOS does not allow filenames that begin with a dot.
8025   lt_cv_objdir=_libs
8026 fi
8027 rmdir .libs 2>/dev/null
8028 fi
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8030 $as_echo "$lt_cv_objdir" >&6; }
8031 objdir=$lt_cv_objdir
8032
8033
8034
8035
8036
8037 cat >>confdefs.h <<_ACEOF
8038 #define LT_OBJDIR "$lt_cv_objdir/"
8039 _ACEOF
8040
8041
8042
8043
8044 case $host_os in
8045 aix3*)
8046   # AIX sometimes has problems with the GCC collect2 program.  For some
8047   # reason, if we set the COLLECT_NAMES environment variable, the problems
8048   # vanish in a puff of smoke.
8049   if test "X${COLLECT_NAMES+set}" != Xset; then
8050     COLLECT_NAMES=
8051     export COLLECT_NAMES
8052   fi
8053   ;;
8054 esac
8055
8056 # Global variables:
8057 ofile=libtool
8058 can_build_shared=yes
8059
8060 # All known linkers require a `.a' archive for static linking (except MSVC,
8061 # which needs '.lib').
8062 libext=a
8063
8064 with_gnu_ld="$lt_cv_prog_gnu_ld"
8065
8066 old_CC="$CC"
8067 old_CFLAGS="$CFLAGS"
8068
8069 # Set sane defaults for various variables
8070 test -z "$CC" && CC=cc
8071 test -z "$LTCC" && LTCC=$CC
8072 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8073 test -z "$LD" && LD=ld
8074 test -z "$ac_objext" && ac_objext=o
8075
8076 for cc_temp in $compiler""; do
8077   case $cc_temp in
8078     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8079     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8080     \-*) ;;
8081     *) break;;
8082   esac
8083 done
8084 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8085
8086
8087 # Only perform the check for file, if the check method requires it
8088 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8089 case $deplibs_check_method in
8090 file_magic*)
8091   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8092     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8093 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8094 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8095   $as_echo_n "(cached) " >&6
8096 else
8097   case $MAGIC_CMD in
8098 [\\/*] |  ?:[\\/]*)
8099   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8100   ;;
8101 *)
8102   lt_save_MAGIC_CMD="$MAGIC_CMD"
8103   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8104   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8105   for ac_dir in $ac_dummy; do
8106     IFS="$lt_save_ifs"
8107     test -z "$ac_dir" && ac_dir=.
8108     if test -f $ac_dir/${ac_tool_prefix}file; then
8109       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8110       if test -n "$file_magic_test_file"; then
8111         case $deplibs_check_method in
8112         "file_magic "*)
8113           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8114           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8115           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8116             $EGREP "$file_magic_regex" > /dev/null; then
8117             :
8118           else
8119             cat <<_LT_EOF 1>&2
8120
8121 *** Warning: the command libtool uses to detect shared libraries,
8122 *** $file_magic_cmd, produces output that libtool cannot recognize.
8123 *** The result is that libtool may fail to recognize shared libraries
8124 *** as such.  This will affect the creation of libtool libraries that
8125 *** depend on shared libraries, but programs linked with such libtool
8126 *** libraries will work regardless of this problem.  Nevertheless, you
8127 *** may want to report the problem to your system manager and/or to
8128 *** bug-libtool@gnu.org
8129
8130 _LT_EOF
8131           fi ;;
8132         esac
8133       fi
8134       break
8135     fi
8136   done
8137   IFS="$lt_save_ifs"
8138   MAGIC_CMD="$lt_save_MAGIC_CMD"
8139   ;;
8140 esac
8141 fi
8142
8143 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8144 if test -n "$MAGIC_CMD"; then
8145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8146 $as_echo "$MAGIC_CMD" >&6; }
8147 else
8148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 $as_echo "no" >&6; }
8150 fi
8151
8152
8153
8154
8155
8156 if test -z "$lt_cv_path_MAGIC_CMD"; then
8157   if test -n "$ac_tool_prefix"; then
8158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8159 $as_echo_n "checking for file... " >&6; }
8160 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8161   $as_echo_n "(cached) " >&6
8162 else
8163   case $MAGIC_CMD in
8164 [\\/*] |  ?:[\\/]*)
8165   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8166   ;;
8167 *)
8168   lt_save_MAGIC_CMD="$MAGIC_CMD"
8169   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8170   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8171   for ac_dir in $ac_dummy; do
8172     IFS="$lt_save_ifs"
8173     test -z "$ac_dir" && ac_dir=.
8174     if test -f $ac_dir/file; then
8175       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8176       if test -n "$file_magic_test_file"; then
8177         case $deplibs_check_method in
8178         "file_magic "*)
8179           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8180           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8181           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8182             $EGREP "$file_magic_regex" > /dev/null; then
8183             :
8184           else
8185             cat <<_LT_EOF 1>&2
8186
8187 *** Warning: the command libtool uses to detect shared libraries,
8188 *** $file_magic_cmd, produces output that libtool cannot recognize.
8189 *** The result is that libtool may fail to recognize shared libraries
8190 *** as such.  This will affect the creation of libtool libraries that
8191 *** depend on shared libraries, but programs linked with such libtool
8192 *** libraries will work regardless of this problem.  Nevertheless, you
8193 *** may want to report the problem to your system manager and/or to
8194 *** bug-libtool@gnu.org
8195
8196 _LT_EOF
8197           fi ;;
8198         esac
8199       fi
8200       break
8201     fi
8202   done
8203   IFS="$lt_save_ifs"
8204   MAGIC_CMD="$lt_save_MAGIC_CMD"
8205   ;;
8206 esac
8207 fi
8208
8209 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8210 if test -n "$MAGIC_CMD"; then
8211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8212 $as_echo "$MAGIC_CMD" >&6; }
8213 else
8214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 $as_echo "no" >&6; }
8216 fi
8217
8218
8219   else
8220     MAGIC_CMD=:
8221   fi
8222 fi
8223
8224   fi
8225   ;;
8226 esac
8227
8228 # Use C for the default configuration in the libtool script
8229
8230 lt_save_CC="$CC"
8231 ac_ext=c
8232 ac_cpp='$CPP $CPPFLAGS'
8233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8236
8237
8238 # Source file extension for C test sources.
8239 ac_ext=c
8240
8241 # Object file extension for compiled C test sources.
8242 objext=o
8243 objext=$objext
8244
8245 # Code to be used in simple compile tests
8246 lt_simple_compile_test_code="int some_variable = 0;"
8247
8248 # Code to be used in simple link tests
8249 lt_simple_link_test_code='int main(){return(0);}'
8250
8251
8252
8253
8254
8255
8256
8257 # If no C compiler was specified, use CC.
8258 LTCC=${LTCC-"$CC"}
8259
8260 # If no C compiler flags were specified, use CFLAGS.
8261 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8262
8263 # Allow CC to be a program name with arguments.
8264 compiler=$CC
8265
8266 # Save the default compiler, since it gets overwritten when the other
8267 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8268 compiler_DEFAULT=$CC
8269
8270 # save warnings/boilerplate of simple test code
8271 ac_outfile=conftest.$ac_objext
8272 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8273 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8274 _lt_compiler_boilerplate=`cat conftest.err`
8275 $RM conftest*
8276
8277 ac_outfile=conftest.$ac_objext
8278 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8279 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8280 _lt_linker_boilerplate=`cat conftest.err`
8281 $RM -r conftest*
8282
8283
8284 ## CAVEAT EMPTOR:
8285 ## There is no encapsulation within the following macros, do not change
8286 ## the running order or otherwise move them around unless you know exactly
8287 ## what you are doing...
8288 if test -n "$compiler"; then
8289
8290 lt_prog_compiler_no_builtin_flag=
8291
8292 if test "$GCC" = yes; then
8293   case $cc_basename in
8294   nvcc*)
8295     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8296   *)
8297     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8298   esac
8299
8300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8301 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8302 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8303   $as_echo_n "(cached) " >&6
8304 else
8305   lt_cv_prog_compiler_rtti_exceptions=no
8306    ac_outfile=conftest.$ac_objext
8307    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8308    lt_compiler_flag="-fno-rtti -fno-exceptions"
8309    # Insert the option either (1) after the last *FLAGS variable, or
8310    # (2) before a word containing "conftest.", or (3) at the end.
8311    # Note that $ac_compile itself does not contain backslashes and begins
8312    # with a dollar sign (not a hyphen), so the echo should work correctly.
8313    # The option is referenced via a variable to avoid confusing sed.
8314    lt_compile=`echo "$ac_compile" | $SED \
8315    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8316    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8317    -e 's:$: $lt_compiler_flag:'`
8318    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8319    (eval "$lt_compile" 2>conftest.err)
8320    ac_status=$?
8321    cat conftest.err >&5
8322    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323    if (exit $ac_status) && test -s "$ac_outfile"; then
8324      # The compiler can only warn and ignore the option if not recognized
8325      # So say no if there are warnings other than the usual output.
8326      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8327      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8328      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8329        lt_cv_prog_compiler_rtti_exceptions=yes
8330      fi
8331    fi
8332    $RM conftest*
8333
8334 fi
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8336 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8337
8338 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8339     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8340 else
8341     :
8342 fi
8343
8344 fi
8345
8346
8347
8348
8349
8350
8351   lt_prog_compiler_wl=
8352 lt_prog_compiler_pic=
8353 lt_prog_compiler_static=
8354
8355
8356   if test "$GCC" = yes; then
8357     lt_prog_compiler_wl='-Wl,'
8358     lt_prog_compiler_static='-static'
8359
8360     case $host_os in
8361       aix*)
8362       # All AIX code is PIC.
8363       if test "$host_cpu" = ia64; then
8364         # AIX 5 now supports IA64 processor
8365         lt_prog_compiler_static='-Bstatic'
8366       fi
8367       ;;
8368
8369     amigaos*)
8370       case $host_cpu in
8371       powerpc)
8372             # see comment about AmigaOS4 .so support
8373             lt_prog_compiler_pic='-fPIC'
8374         ;;
8375       m68k)
8376             # FIXME: we need at least 68020 code to build shared libraries, but
8377             # adding the `-m68020' flag to GCC prevents building anything better,
8378             # like `-m68040'.
8379             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8380         ;;
8381       esac
8382       ;;
8383
8384     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8385       # PIC is the default for these OSes.
8386       ;;
8387
8388     mingw* | cygwin* | pw32* | os2* | cegcc*)
8389       # This hack is so that the source file can tell whether it is being
8390       # built for inclusion in a dll (and should export symbols for example).
8391       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8392       # (--disable-auto-import) libraries
8393       lt_prog_compiler_pic='-DDLL_EXPORT'
8394       ;;
8395
8396     darwin* | rhapsody*)
8397       # PIC is the default on this platform
8398       # Common symbols not allowed in MH_DYLIB files
8399       lt_prog_compiler_pic='-fno-common'
8400       ;;
8401
8402     haiku*)
8403       # PIC is the default for Haiku.
8404       # The "-static" flag exists, but is broken.
8405       lt_prog_compiler_static=
8406       ;;
8407
8408     hpux*)
8409       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8410       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8411       # sets the default TLS model and affects inlining.
8412       case $host_cpu in
8413       hppa*64*)
8414         # +Z the default
8415         ;;
8416       *)
8417         lt_prog_compiler_pic='-fPIC'
8418         ;;
8419       esac
8420       ;;
8421
8422     interix[3-9]*)
8423       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8424       # Instead, we relocate shared libraries at runtime.
8425       ;;
8426
8427     msdosdjgpp*)
8428       # Just because we use GCC doesn't mean we suddenly get shared libraries
8429       # on systems that don't support them.
8430       lt_prog_compiler_can_build_shared=no
8431       enable_shared=no
8432       ;;
8433
8434     *nto* | *qnx*)
8435       # QNX uses GNU C++, but need to define -shared option too, otherwise
8436       # it will coredump.
8437       lt_prog_compiler_pic='-fPIC -shared'
8438       ;;
8439
8440     sysv4*MP*)
8441       if test -d /usr/nec; then
8442         lt_prog_compiler_pic=-Kconform_pic
8443       fi
8444       ;;
8445
8446     *)
8447       lt_prog_compiler_pic='-fPIC'
8448       ;;
8449     esac
8450
8451     case $cc_basename in
8452     nvcc*) # Cuda Compiler Driver 2.2
8453       lt_prog_compiler_wl='-Xlinker '
8454       if test -n "$lt_prog_compiler_pic"; then
8455         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8456       fi
8457       ;;
8458     esac
8459   else
8460     # PORTME Check for flag to pass linker flags through the system compiler.
8461     case $host_os in
8462     aix*)
8463       lt_prog_compiler_wl='-Wl,'
8464       if test "$host_cpu" = ia64; then
8465         # AIX 5 now supports IA64 processor
8466         lt_prog_compiler_static='-Bstatic'
8467       else
8468         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8469       fi
8470       ;;
8471
8472     mingw* | cygwin* | pw32* | os2* | cegcc*)
8473       # This hack is so that the source file can tell whether it is being
8474       # built for inclusion in a dll (and should export symbols for example).
8475       lt_prog_compiler_pic='-DDLL_EXPORT'
8476       ;;
8477
8478     hpux9* | hpux10* | hpux11*)
8479       lt_prog_compiler_wl='-Wl,'
8480       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8481       # not for PA HP-UX.
8482       case $host_cpu in
8483       hppa*64*|ia64*)
8484         # +Z the default
8485         ;;
8486       *)
8487         lt_prog_compiler_pic='+Z'
8488         ;;
8489       esac
8490       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8491       lt_prog_compiler_static='${wl}-a ${wl}archive'
8492       ;;
8493
8494     irix5* | irix6* | nonstopux*)
8495       lt_prog_compiler_wl='-Wl,'
8496       # PIC (with -KPIC) is the default.
8497       lt_prog_compiler_static='-non_shared'
8498       ;;
8499
8500     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8501       case $cc_basename in
8502       # old Intel for x86_64 which still supported -KPIC.
8503       ecc*)
8504         lt_prog_compiler_wl='-Wl,'
8505         lt_prog_compiler_pic='-KPIC'
8506         lt_prog_compiler_static='-static'
8507         ;;
8508       # icc used to be incompatible with GCC.
8509       # ICC 10 doesn't accept -KPIC any more.
8510       icc* | ifort*)
8511         lt_prog_compiler_wl='-Wl,'
8512         lt_prog_compiler_pic='-fPIC'
8513         lt_prog_compiler_static='-static'
8514         ;;
8515       # Lahey Fortran 8.1.
8516       lf95*)
8517         lt_prog_compiler_wl='-Wl,'
8518         lt_prog_compiler_pic='--shared'
8519         lt_prog_compiler_static='--static'
8520         ;;
8521       nagfor*)
8522         # NAG Fortran compiler
8523         lt_prog_compiler_wl='-Wl,-Wl,,'
8524         lt_prog_compiler_pic='-PIC'
8525         lt_prog_compiler_static='-Bstatic'
8526         ;;
8527       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8528         # Portland Group compilers (*not* the Pentium gcc compiler,
8529         # which looks to be a dead project)
8530         lt_prog_compiler_wl='-Wl,'
8531         lt_prog_compiler_pic='-fpic'
8532         lt_prog_compiler_static='-Bstatic'
8533         ;;
8534       ccc*)
8535         lt_prog_compiler_wl='-Wl,'
8536         # All Alpha code is PIC.
8537         lt_prog_compiler_static='-non_shared'
8538         ;;
8539       xl* | bgxl* | bgf* | mpixl*)
8540         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8541         lt_prog_compiler_wl='-Wl,'
8542         lt_prog_compiler_pic='-qpic'
8543         lt_prog_compiler_static='-qstaticlink'
8544         ;;
8545       *)
8546         case `$CC -V 2>&1 | sed 5q` in
8547         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8548           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8549           lt_prog_compiler_pic='-KPIC'
8550           lt_prog_compiler_static='-Bstatic'
8551           lt_prog_compiler_wl=''
8552           ;;
8553         *Sun\ F* | *Sun*Fortran*)
8554           lt_prog_compiler_pic='-KPIC'
8555           lt_prog_compiler_static='-Bstatic'
8556           lt_prog_compiler_wl='-Qoption ld '
8557           ;;
8558         *Sun\ C*)
8559           # Sun C 5.9
8560           lt_prog_compiler_pic='-KPIC'
8561           lt_prog_compiler_static='-Bstatic'
8562           lt_prog_compiler_wl='-Wl,'
8563           ;;
8564         *Intel*\ [CF]*Compiler*)
8565           lt_prog_compiler_wl='-Wl,'
8566           lt_prog_compiler_pic='-fPIC'
8567           lt_prog_compiler_static='-static'
8568           ;;
8569         *Portland\ Group*)
8570           lt_prog_compiler_wl='-Wl,'
8571           lt_prog_compiler_pic='-fpic'
8572           lt_prog_compiler_static='-Bstatic'
8573           ;;
8574         esac
8575         ;;
8576       esac
8577       ;;
8578
8579     newsos6)
8580       lt_prog_compiler_pic='-KPIC'
8581       lt_prog_compiler_static='-Bstatic'
8582       ;;
8583
8584     *nto* | *qnx*)
8585       # QNX uses GNU C++, but need to define -shared option too, otherwise
8586       # it will coredump.
8587       lt_prog_compiler_pic='-fPIC -shared'
8588       ;;
8589
8590     osf3* | osf4* | osf5*)
8591       lt_prog_compiler_wl='-Wl,'
8592       # All OSF/1 code is PIC.
8593       lt_prog_compiler_static='-non_shared'
8594       ;;
8595
8596     rdos*)
8597       lt_prog_compiler_static='-non_shared'
8598       ;;
8599
8600     solaris*)
8601       lt_prog_compiler_pic='-KPIC'
8602       lt_prog_compiler_static='-Bstatic'
8603       case $cc_basename in
8604       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8605         lt_prog_compiler_wl='-Qoption ld ';;
8606       *)
8607         lt_prog_compiler_wl='-Wl,';;
8608       esac
8609       ;;
8610
8611     sunos4*)
8612       lt_prog_compiler_wl='-Qoption ld '
8613       lt_prog_compiler_pic='-PIC'
8614       lt_prog_compiler_static='-Bstatic'
8615       ;;
8616
8617     sysv4 | sysv4.2uw2* | sysv4.3*)
8618       lt_prog_compiler_wl='-Wl,'
8619       lt_prog_compiler_pic='-KPIC'
8620       lt_prog_compiler_static='-Bstatic'
8621       ;;
8622
8623     sysv4*MP*)
8624       if test -d /usr/nec ;then
8625         lt_prog_compiler_pic='-Kconform_pic'
8626         lt_prog_compiler_static='-Bstatic'
8627       fi
8628       ;;
8629
8630     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8631       lt_prog_compiler_wl='-Wl,'
8632       lt_prog_compiler_pic='-KPIC'
8633       lt_prog_compiler_static='-Bstatic'
8634       ;;
8635
8636     unicos*)
8637       lt_prog_compiler_wl='-Wl,'
8638       lt_prog_compiler_can_build_shared=no
8639       ;;
8640
8641     uts4*)
8642       lt_prog_compiler_pic='-pic'
8643       lt_prog_compiler_static='-Bstatic'
8644       ;;
8645
8646     *)
8647       lt_prog_compiler_can_build_shared=no
8648       ;;
8649     esac
8650   fi
8651
8652 case $host_os in
8653   # For platforms which do not support PIC, -DPIC is meaningless:
8654   *djgpp*)
8655     lt_prog_compiler_pic=
8656     ;;
8657   *)
8658     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8659     ;;
8660 esac
8661
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8663 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8664 if ${lt_cv_prog_compiler_pic+:} false; then :
8665   $as_echo_n "(cached) " >&6
8666 else
8667   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8668 fi
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8670 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8671 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8672
8673 #
8674 # Check to make sure the PIC flag actually works.
8675 #
8676 if test -n "$lt_prog_compiler_pic"; then
8677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8678 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8679 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8680   $as_echo_n "(cached) " >&6
8681 else
8682   lt_cv_prog_compiler_pic_works=no
8683    ac_outfile=conftest.$ac_objext
8684    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8685    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8686    # Insert the option either (1) after the last *FLAGS variable, or
8687    # (2) before a word containing "conftest.", or (3) at the end.
8688    # Note that $ac_compile itself does not contain backslashes and begins
8689    # with a dollar sign (not a hyphen), so the echo should work correctly.
8690    # The option is referenced via a variable to avoid confusing sed.
8691    lt_compile=`echo "$ac_compile" | $SED \
8692    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8693    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8694    -e 's:$: $lt_compiler_flag:'`
8695    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8696    (eval "$lt_compile" 2>conftest.err)
8697    ac_status=$?
8698    cat conftest.err >&5
8699    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700    if (exit $ac_status) && test -s "$ac_outfile"; then
8701      # The compiler can only warn and ignore the option if not recognized
8702      # So say no if there are warnings other than the usual output.
8703      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8704      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8705      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8706        lt_cv_prog_compiler_pic_works=yes
8707      fi
8708    fi
8709    $RM conftest*
8710
8711 fi
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8713 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8714
8715 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8716     case $lt_prog_compiler_pic in
8717      "" | " "*) ;;
8718      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8719      esac
8720 else
8721     lt_prog_compiler_pic=
8722      lt_prog_compiler_can_build_shared=no
8723 fi
8724
8725 fi
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737 #
8738 # Check to make sure the static flag actually works.
8739 #
8740 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8742 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8743 if ${lt_cv_prog_compiler_static_works+:} false; then :
8744   $as_echo_n "(cached) " >&6
8745 else
8746   lt_cv_prog_compiler_static_works=no
8747    save_LDFLAGS="$LDFLAGS"
8748    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8749    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8750    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8751      # The linker can only warn and ignore the option if not recognized
8752      # So say no if there are warnings
8753      if test -s conftest.err; then
8754        # Append any errors to the config.log.
8755        cat conftest.err 1>&5
8756        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8757        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8758        if diff conftest.exp conftest.er2 >/dev/null; then
8759          lt_cv_prog_compiler_static_works=yes
8760        fi
8761      else
8762        lt_cv_prog_compiler_static_works=yes
8763      fi
8764    fi
8765    $RM -r conftest*
8766    LDFLAGS="$save_LDFLAGS"
8767
8768 fi
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8770 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8771
8772 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8773     :
8774 else
8775     lt_prog_compiler_static=
8776 fi
8777
8778
8779
8780
8781
8782
8783
8784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8785 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8786 if ${lt_cv_prog_compiler_c_o+:} false; then :
8787   $as_echo_n "(cached) " >&6
8788 else
8789   lt_cv_prog_compiler_c_o=no
8790    $RM -r conftest 2>/dev/null
8791    mkdir conftest
8792    cd conftest
8793    mkdir out
8794    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8795
8796    lt_compiler_flag="-o out/conftest2.$ac_objext"
8797    # Insert the option either (1) after the last *FLAGS variable, or
8798    # (2) before a word containing "conftest.", or (3) at the end.
8799    # Note that $ac_compile itself does not contain backslashes and begins
8800    # with a dollar sign (not a hyphen), so the echo should work correctly.
8801    lt_compile=`echo "$ac_compile" | $SED \
8802    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8803    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8804    -e 's:$: $lt_compiler_flag:'`
8805    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8806    (eval "$lt_compile" 2>out/conftest.err)
8807    ac_status=$?
8808    cat out/conftest.err >&5
8809    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8811    then
8812      # The compiler can only warn and ignore the option if not recognized
8813      # So say no if there are warnings
8814      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8815      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8816      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8817        lt_cv_prog_compiler_c_o=yes
8818      fi
8819    fi
8820    chmod u+w . 2>&5
8821    $RM conftest*
8822    # SGI C++ compiler will create directory out/ii_files/ for
8823    # template instantiation
8824    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8825    $RM out/* && rmdir out
8826    cd ..
8827    $RM -r conftest
8828    $RM conftest*
8829
8830 fi
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8832 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8833
8834
8835
8836
8837
8838
8839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8840 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8841 if ${lt_cv_prog_compiler_c_o+:} false; then :
8842   $as_echo_n "(cached) " >&6
8843 else
8844   lt_cv_prog_compiler_c_o=no
8845    $RM -r conftest 2>/dev/null
8846    mkdir conftest
8847    cd conftest
8848    mkdir out
8849    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8850
8851    lt_compiler_flag="-o out/conftest2.$ac_objext"
8852    # Insert the option either (1) after the last *FLAGS variable, or
8853    # (2) before a word containing "conftest.", or (3) at the end.
8854    # Note that $ac_compile itself does not contain backslashes and begins
8855    # with a dollar sign (not a hyphen), so the echo should work correctly.
8856    lt_compile=`echo "$ac_compile" | $SED \
8857    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8858    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8859    -e 's:$: $lt_compiler_flag:'`
8860    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8861    (eval "$lt_compile" 2>out/conftest.err)
8862    ac_status=$?
8863    cat out/conftest.err >&5
8864    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8866    then
8867      # The compiler can only warn and ignore the option if not recognized
8868      # So say no if there are warnings
8869      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8870      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8871      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8872        lt_cv_prog_compiler_c_o=yes
8873      fi
8874    fi
8875    chmod u+w . 2>&5
8876    $RM conftest*
8877    # SGI C++ compiler will create directory out/ii_files/ for
8878    # template instantiation
8879    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8880    $RM out/* && rmdir out
8881    cd ..
8882    $RM -r conftest
8883    $RM conftest*
8884
8885 fi
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8887 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8888
8889
8890
8891
8892 hard_links="nottested"
8893 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8894   # do not overwrite the value of need_locks provided by the user
8895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8896 $as_echo_n "checking if we can lock with hard links... " >&6; }
8897   hard_links=yes
8898   $RM conftest*
8899   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8900   touch conftest.a
8901   ln conftest.a conftest.b 2>&5 || hard_links=no
8902   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8904 $as_echo "$hard_links" >&6; }
8905   if test "$hard_links" = no; then
8906     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8907 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8908     need_locks=warn
8909   fi
8910 else
8911   need_locks=no
8912 fi
8913
8914
8915
8916
8917
8918
8919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8920 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8921
8922   runpath_var=
8923   allow_undefined_flag=
8924   always_export_symbols=no
8925   archive_cmds=
8926   archive_expsym_cmds=
8927   compiler_needs_object=no
8928   enable_shared_with_static_runtimes=no
8929   export_dynamic_flag_spec=
8930   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8931   hardcode_automatic=no
8932   hardcode_direct=no
8933   hardcode_direct_absolute=no
8934   hardcode_libdir_flag_spec=
8935   hardcode_libdir_separator=
8936   hardcode_minus_L=no
8937   hardcode_shlibpath_var=unsupported
8938   inherit_rpath=no
8939   link_all_deplibs=unknown
8940   module_cmds=
8941   module_expsym_cmds=
8942   old_archive_from_new_cmds=
8943   old_archive_from_expsyms_cmds=
8944   thread_safe_flag_spec=
8945   whole_archive_flag_spec=
8946   # include_expsyms should be a list of space-separated symbols to be *always*
8947   # included in the symbol list
8948   include_expsyms=
8949   # exclude_expsyms can be an extended regexp of symbols to exclude
8950   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8951   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8952   # as well as any symbol that contains `d'.
8953   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8954   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8955   # platforms (ab)use it in PIC code, but their linkers get confused if
8956   # the symbol is explicitly referenced.  Since portable code cannot
8957   # rely on this symbol name, it's probably fine to never include it in
8958   # preloaded symbol tables.
8959   # Exclude shared library initialization/finalization symbols.
8960   extract_expsyms_cmds=
8961
8962   case $host_os in
8963   cygwin* | mingw* | pw32* | cegcc*)
8964     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8965     # When not using gcc, we currently assume that we are using
8966     # Microsoft Visual C++.
8967     if test "$GCC" != yes; then
8968       with_gnu_ld=no
8969     fi
8970     ;;
8971   interix*)
8972     # we just hope/assume this is gcc and not c89 (= MSVC++)
8973     with_gnu_ld=yes
8974     ;;
8975   openbsd*)
8976     with_gnu_ld=no
8977     ;;
8978   linux* | k*bsd*-gnu | gnu*)
8979     link_all_deplibs=no
8980     ;;
8981   esac
8982
8983   ld_shlibs=yes
8984
8985   # On some targets, GNU ld is compatible enough with the native linker
8986   # that we're better off using the native interface for both.
8987   lt_use_gnu_ld_interface=no
8988   if test "$with_gnu_ld" = yes; then
8989     case $host_os in
8990       aix*)
8991         # The AIX port of GNU ld has always aspired to compatibility
8992         # with the native linker.  However, as the warning in the GNU ld
8993         # block says, versions before 2.19.5* couldn't really create working
8994         # shared libraries, regardless of the interface used.
8995         case `$LD -v 2>&1` in
8996           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8997           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8998           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8999           *)
9000             lt_use_gnu_ld_interface=yes
9001             ;;
9002         esac
9003         ;;
9004       *)
9005         lt_use_gnu_ld_interface=yes
9006         ;;
9007     esac
9008   fi
9009
9010   if test "$lt_use_gnu_ld_interface" = yes; then
9011     # If archive_cmds runs LD, not CC, wlarc should be empty
9012     wlarc='${wl}'
9013
9014     # Set some defaults for GNU ld with shared library support. These
9015     # are reset later if shared libraries are not supported. Putting them
9016     # here allows them to be overridden if necessary.
9017     runpath_var=LD_RUN_PATH
9018     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9019     export_dynamic_flag_spec='${wl}--export-dynamic'
9020     # ancient GNU ld didn't support --whole-archive et. al.
9021     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9022       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9023     else
9024       whole_archive_flag_spec=
9025     fi
9026     supports_anon_versioning=no
9027     case `$LD -v 2>&1` in
9028       *GNU\ gold*) supports_anon_versioning=yes ;;
9029       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9030       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9031       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9032       *\ 2.11.*) ;; # other 2.11 versions
9033       *) supports_anon_versioning=yes ;;
9034     esac
9035
9036     # See if GNU ld supports shared libraries.
9037     case $host_os in
9038     aix[3-9]*)
9039       # On AIX/PPC, the GNU linker is very broken
9040       if test "$host_cpu" != ia64; then
9041         ld_shlibs=no
9042         cat <<_LT_EOF 1>&2
9043
9044 *** Warning: the GNU linker, at least up to release 2.19, is reported
9045 *** to be unable to reliably create shared libraries on AIX.
9046 *** Therefore, libtool is disabling shared libraries support.  If you
9047 *** really care for shared libraries, you may want to install binutils
9048 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9049 *** You will then need to restart the configuration process.
9050
9051 _LT_EOF
9052       fi
9053       ;;
9054
9055     amigaos*)
9056       case $host_cpu in
9057       powerpc)
9058             # see comment about AmigaOS4 .so support
9059             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9060             archive_expsym_cmds=''
9061         ;;
9062       m68k)
9063             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)'
9064             hardcode_libdir_flag_spec='-L$libdir'
9065             hardcode_minus_L=yes
9066         ;;
9067       esac
9068       ;;
9069
9070     beos*)
9071       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9072         allow_undefined_flag=unsupported
9073         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9074         # support --undefined.  This deserves some investigation.  FIXME
9075         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9076       else
9077         ld_shlibs=no
9078       fi
9079       ;;
9080
9081     cygwin* | mingw* | pw32* | cegcc*)
9082       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9083       # as there is no search path for DLLs.
9084       hardcode_libdir_flag_spec='-L$libdir'
9085       export_dynamic_flag_spec='${wl}--export-all-symbols'
9086       allow_undefined_flag=unsupported
9087       always_export_symbols=no
9088       enable_shared_with_static_runtimes=yes
9089       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'
9090       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9091
9092       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9093         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9094         # If the export-symbols file already is a .def file (1st line
9095         # is EXPORTS), use it as is; otherwise, prepend...
9096         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9097           cp $export_symbols $output_objdir/$soname.def;
9098         else
9099           echo EXPORTS > $output_objdir/$soname.def;
9100           cat $export_symbols >> $output_objdir/$soname.def;
9101         fi~
9102         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9103       else
9104         ld_shlibs=no
9105       fi
9106       ;;
9107
9108     haiku*)
9109       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9110       link_all_deplibs=yes
9111       ;;
9112
9113     interix[3-9]*)
9114       hardcode_direct=no
9115       hardcode_shlibpath_var=no
9116       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9117       export_dynamic_flag_spec='${wl}-E'
9118       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9119       # Instead, shared libraries are loaded at an image base (0x10000000 by
9120       # default) and relocated if they conflict, which is a slow very memory
9121       # consuming and fragmenting process.  To avoid this, we pick a random,
9122       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9123       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9124       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9125       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'
9126       ;;
9127
9128     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9129       tmp_diet=no
9130       if test "$host_os" = linux-dietlibc; then
9131         case $cc_basename in
9132           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9133         esac
9134       fi
9135       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9136          && test "$tmp_diet" = no
9137       then
9138         tmp_addflag=' $pic_flag'
9139         tmp_sharedflag='-shared'
9140         case $cc_basename,$host_cpu in
9141         pgcc*)                          # Portland Group C compiler
9142           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'
9143           tmp_addflag=' $pic_flag'
9144           ;;
9145         pgf77* | pgf90* | pgf95* | pgfortran*)
9146                                         # Portland Group f77 and f90 compilers
9147           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'
9148           tmp_addflag=' $pic_flag -Mnomain' ;;
9149         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9150           tmp_addflag=' -i_dynamic' ;;
9151         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9152           tmp_addflag=' -i_dynamic -nofor_main' ;;
9153         ifc* | ifort*)                  # Intel Fortran compiler
9154           tmp_addflag=' -nofor_main' ;;
9155         lf95*)                          # Lahey Fortran 8.1
9156           whole_archive_flag_spec=
9157           tmp_sharedflag='--shared' ;;
9158         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9159           tmp_sharedflag='-qmkshrobj'
9160           tmp_addflag= ;;
9161         nvcc*)  # Cuda Compiler Driver 2.2
9162           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'
9163           compiler_needs_object=yes
9164           ;;
9165         esac
9166         case `$CC -V 2>&1 | sed 5q` in
9167         *Sun\ C*)                       # Sun C 5.9
9168           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'
9169           compiler_needs_object=yes
9170           tmp_sharedflag='-G' ;;
9171         *Sun\ F*)                       # Sun Fortran 8.3
9172           tmp_sharedflag='-G' ;;
9173         esac
9174         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9175
9176         if test "x$supports_anon_versioning" = xyes; then
9177           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9178             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9179             echo "local: *; };" >> $output_objdir/$libname.ver~
9180             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9181         fi
9182
9183         case $cc_basename in
9184         xlf* | bgf* | bgxlf* | mpixlf*)
9185           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9186           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9187           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9188           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9189           if test "x$supports_anon_versioning" = xyes; then
9190             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9191               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9192               echo "local: *; };" >> $output_objdir/$libname.ver~
9193               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9194           fi
9195           ;;
9196         esac
9197       else
9198         ld_shlibs=no
9199       fi
9200       ;;
9201
9202     netbsd* | netbsdelf*-gnu)
9203       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9204         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9205         wlarc=
9206       else
9207         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9208         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9209       fi
9210       ;;
9211
9212     solaris*)
9213       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9214         ld_shlibs=no
9215         cat <<_LT_EOF 1>&2
9216
9217 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9218 *** create shared libraries on Solaris systems.  Therefore, libtool
9219 *** is disabling shared libraries support.  We urge you to upgrade GNU
9220 *** binutils to release 2.9.1 or newer.  Another option is to modify
9221 *** your PATH or compiler configuration so that the native linker is
9222 *** used, and then restart.
9223
9224 _LT_EOF
9225       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9226         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9227         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9228       else
9229         ld_shlibs=no
9230       fi
9231       ;;
9232
9233     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9234       case `$LD -v 2>&1` in
9235         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9236         ld_shlibs=no
9237         cat <<_LT_EOF 1>&2
9238
9239 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9240 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9241 *** is disabling shared libraries support.  We urge you to upgrade GNU
9242 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9243 *** your PATH or compiler configuration so that the native linker is
9244 *** used, and then restart.
9245
9246 _LT_EOF
9247         ;;
9248         *)
9249           # For security reasons, it is highly recommended that you always
9250           # use absolute paths for naming shared libraries, and exclude the
9251           # DT_RUNPATH tag from executables and libraries.  But doing so
9252           # requires that you compile everything twice, which is a pain.
9253           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9254             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9255             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9256             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9257           else
9258             ld_shlibs=no
9259           fi
9260         ;;
9261       esac
9262       ;;
9263
9264     sunos4*)
9265       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9266       wlarc=
9267       hardcode_direct=yes
9268       hardcode_shlibpath_var=no
9269       ;;
9270
9271     *)
9272       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9273         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9274         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9275       else
9276         ld_shlibs=no
9277       fi
9278       ;;
9279     esac
9280
9281     if test "$ld_shlibs" = no; then
9282       runpath_var=
9283       hardcode_libdir_flag_spec=
9284       export_dynamic_flag_spec=
9285       whole_archive_flag_spec=
9286     fi
9287   else
9288     # PORTME fill in a description of your system's linker (not GNU ld)
9289     case $host_os in
9290     aix3*)
9291       allow_undefined_flag=unsupported
9292       always_export_symbols=yes
9293       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'
9294       # Note: this linker hardcodes the directories in LIBPATH if there
9295       # are no directories specified by -L.
9296       hardcode_minus_L=yes
9297       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9298         # Neither direct hardcoding nor static linking is supported with a
9299         # broken collect2.
9300         hardcode_direct=unsupported
9301       fi
9302       ;;
9303
9304     aix[4-9]*)
9305       if test "$host_cpu" = ia64; then
9306         # On IA64, the linker does run time linking by default, so we don't
9307         # have to do anything special.
9308         aix_use_runtimelinking=no
9309         exp_sym_flag='-Bexport'
9310         no_entry_flag=""
9311       else
9312         # If we're using GNU nm, then we don't want the "-C" option.
9313         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9314         # Also, AIX nm treats weak defined symbols like other global
9315         # defined symbols, whereas GNU nm marks them as "W".
9316         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9317           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'
9318         else
9319           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'
9320         fi
9321         aix_use_runtimelinking=no
9322
9323         # Test if we are trying to use run time linking or normal
9324         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9325         # need to do runtime linking.
9326         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9327           for ld_flag in $LDFLAGS; do
9328           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9329             aix_use_runtimelinking=yes
9330             break
9331           fi
9332           done
9333           ;;
9334         esac
9335
9336         exp_sym_flag='-bexport'
9337         no_entry_flag='-bnoentry'
9338       fi
9339
9340       # When large executables or shared objects are built, AIX ld can
9341       # have problems creating the table of contents.  If linking a library
9342       # or program results in "error TOC overflow" add -mminimal-toc to
9343       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9344       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9345
9346       archive_cmds=''
9347       hardcode_direct=yes
9348       hardcode_direct_absolute=yes
9349       hardcode_libdir_separator=':'
9350       link_all_deplibs=yes
9351       file_list_spec='${wl}-f,'
9352
9353       if test "$GCC" = yes; then
9354         case $host_os in aix4.[012]|aix4.[012].*)
9355         # We only want to do this on AIX 4.2 and lower, the check
9356         # below for broken collect2 doesn't work under 4.3+
9357           collect2name=`${CC} -print-prog-name=collect2`
9358           if test -f "$collect2name" &&
9359            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9360           then
9361           # We have reworked collect2
9362           :
9363           else
9364           # We have old collect2
9365           hardcode_direct=unsupported
9366           # It fails to find uninstalled libraries when the uninstalled
9367           # path is not listed in the libpath.  Setting hardcode_minus_L
9368           # to unsupported forces relinking
9369           hardcode_minus_L=yes
9370           hardcode_libdir_flag_spec='-L$libdir'
9371           hardcode_libdir_separator=
9372           fi
9373           ;;
9374         esac
9375         shared_flag='-shared'
9376         if test "$aix_use_runtimelinking" = yes; then
9377           shared_flag="$shared_flag "'${wl}-G'
9378         fi
9379         link_all_deplibs=no
9380       else
9381         # not using gcc
9382         if test "$host_cpu" = ia64; then
9383         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9384         # chokes on -Wl,-G. The following line is correct:
9385           shared_flag='-G'
9386         else
9387           if test "$aix_use_runtimelinking" = yes; then
9388             shared_flag='${wl}-G'
9389           else
9390             shared_flag='${wl}-bM:SRE'
9391           fi
9392         fi
9393       fi
9394
9395       export_dynamic_flag_spec='${wl}-bexpall'
9396       # It seems that -bexpall does not export symbols beginning with
9397       # underscore (_), so it is better to generate a list of symbols to export.
9398       always_export_symbols=yes
9399       if test "$aix_use_runtimelinking" = yes; then
9400         # Warning - without using the other runtime loading flags (-brtl),
9401         # -berok will link without error, but may produce a broken library.
9402         allow_undefined_flag='-berok'
9403         # Determine the default libpath from the value encoded in an
9404         # empty executable.
9405         if test "${lt_cv_aix_libpath+set}" = set; then
9406   aix_libpath=$lt_cv_aix_libpath
9407 else
9408   if ${lt_cv_aix_libpath_+:} false; then :
9409   $as_echo_n "(cached) " >&6
9410 else
9411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h.  */
9413
9414 int
9415 main ()
9416 {
9417
9418   ;
9419   return 0;
9420 }
9421 _ACEOF
9422 if ac_fn_c_try_link "$LINENO"; then :
9423
9424   lt_aix_libpath_sed='
9425       /Import File Strings/,/^$/ {
9426           /^0/ {
9427               s/^0  *\([^ ]*\) *$/\1/
9428               p
9429           }
9430       }'
9431   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9432   # Check for a 64-bit object if we didn't find anything.
9433   if test -z "$lt_cv_aix_libpath_"; then
9434     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9435   fi
9436 fi
9437 rm -f core conftest.err conftest.$ac_objext \
9438     conftest$ac_exeext conftest.$ac_ext
9439   if test -z "$lt_cv_aix_libpath_"; then
9440     lt_cv_aix_libpath_="/usr/lib:/lib"
9441   fi
9442
9443 fi
9444
9445   aix_libpath=$lt_cv_aix_libpath_
9446 fi
9447
9448         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9449         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"
9450       else
9451         if test "$host_cpu" = ia64; then
9452           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9453           allow_undefined_flag="-z nodefs"
9454           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"
9455         else
9456          # Determine the default libpath from the value encoded in an
9457          # empty executable.
9458          if test "${lt_cv_aix_libpath+set}" = set; then
9459   aix_libpath=$lt_cv_aix_libpath
9460 else
9461   if ${lt_cv_aix_libpath_+:} false; then :
9462   $as_echo_n "(cached) " >&6
9463 else
9464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h.  */
9466
9467 int
9468 main ()
9469 {
9470
9471   ;
9472   return 0;
9473 }
9474 _ACEOF
9475 if ac_fn_c_try_link "$LINENO"; then :
9476
9477   lt_aix_libpath_sed='
9478       /Import File Strings/,/^$/ {
9479           /^0/ {
9480               s/^0  *\([^ ]*\) *$/\1/
9481               p
9482           }
9483       }'
9484   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9485   # Check for a 64-bit object if we didn't find anything.
9486   if test -z "$lt_cv_aix_libpath_"; then
9487     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9488   fi
9489 fi
9490 rm -f core conftest.err conftest.$ac_objext \
9491     conftest$ac_exeext conftest.$ac_ext
9492   if test -z "$lt_cv_aix_libpath_"; then
9493     lt_cv_aix_libpath_="/usr/lib:/lib"
9494   fi
9495
9496 fi
9497
9498   aix_libpath=$lt_cv_aix_libpath_
9499 fi
9500
9501          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9502           # Warning - without using the other run time loading flags,
9503           # -berok will link without error, but may produce a broken library.
9504           no_undefined_flag=' ${wl}-bernotok'
9505           allow_undefined_flag=' ${wl}-berok'
9506           if test "$with_gnu_ld" = yes; then
9507             # We only use this code for GNU lds that support --whole-archive.
9508             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9509           else
9510             # Exported symbols can be pulled into shared objects from archives
9511             whole_archive_flag_spec='$convenience'
9512           fi
9513           archive_cmds_need_lc=yes
9514           # This is similar to how AIX traditionally builds its shared libraries.
9515           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'
9516         fi
9517       fi
9518       ;;
9519
9520     amigaos*)
9521       case $host_cpu in
9522       powerpc)
9523             # see comment about AmigaOS4 .so support
9524             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9525             archive_expsym_cmds=''
9526         ;;
9527       m68k)
9528             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)'
9529             hardcode_libdir_flag_spec='-L$libdir'
9530             hardcode_minus_L=yes
9531         ;;
9532       esac
9533       ;;
9534
9535     bsdi[45]*)
9536       export_dynamic_flag_spec=-rdynamic
9537       ;;
9538
9539     cygwin* | mingw* | pw32* | cegcc*)
9540       # When not using gcc, we currently assume that we are using
9541       # Microsoft Visual C++.
9542       # hardcode_libdir_flag_spec is actually meaningless, as there is
9543       # no search path for DLLs.
9544       case $cc_basename in
9545       cl*)
9546         # Native MSVC
9547         hardcode_libdir_flag_spec=' '
9548         allow_undefined_flag=unsupported
9549         always_export_symbols=yes
9550         file_list_spec='@'
9551         # Tell ltmain to make .lib files, not .a files.
9552         libext=lib
9553         # Tell ltmain to make .dll files, not .so files.
9554         shrext_cmds=".dll"
9555         # FIXME: Setting linknames here is a bad hack.
9556         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9557         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9558             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9559           else
9560             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9561           fi~
9562           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9563           linknames='
9564         # The linker will not automatically build a static lib if we build a DLL.
9565         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9566         enable_shared_with_static_runtimes=yes
9567         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9568         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9569         # Don't use ranlib
9570         old_postinstall_cmds='chmod 644 $oldlib'
9571         postlink_cmds='lt_outputfile="@OUTPUT@"~
9572           lt_tool_outputfile="@TOOL_OUTPUT@"~
9573           case $lt_outputfile in
9574             *.exe|*.EXE) ;;
9575             *)
9576               lt_outputfile="$lt_outputfile.exe"
9577               lt_tool_outputfile="$lt_tool_outputfile.exe"
9578               ;;
9579           esac~
9580           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9581             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9582             $RM "$lt_outputfile.manifest";
9583           fi'
9584         ;;
9585       *)
9586         # Assume MSVC wrapper
9587         hardcode_libdir_flag_spec=' '
9588         allow_undefined_flag=unsupported
9589         # Tell ltmain to make .lib files, not .a files.
9590         libext=lib
9591         # Tell ltmain to make .dll files, not .so files.
9592         shrext_cmds=".dll"
9593         # FIXME: Setting linknames here is a bad hack.
9594         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9595         # The linker will automatically build a .lib file if we build a DLL.
9596         old_archive_from_new_cmds='true'
9597         # FIXME: Should let the user specify the lib program.
9598         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9599         enable_shared_with_static_runtimes=yes
9600         ;;
9601       esac
9602       ;;
9603
9604     darwin* | rhapsody*)
9605
9606
9607   archive_cmds_need_lc=no
9608   hardcode_direct=no
9609   hardcode_automatic=yes
9610   hardcode_shlibpath_var=unsupported
9611   if test "$lt_cv_ld_force_load" = "yes"; then
9612     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\"`'
9613
9614   else
9615     whole_archive_flag_spec=''
9616   fi
9617   link_all_deplibs=yes
9618   allow_undefined_flag="$_lt_dar_allow_undefined"
9619   case $cc_basename in
9620      ifort*) _lt_dar_can_shared=yes ;;
9621      *) _lt_dar_can_shared=$GCC ;;
9622   esac
9623   if test "$_lt_dar_can_shared" = "yes"; then
9624     output_verbose_link_cmd=func_echo_all
9625     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9626     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9627     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}"
9628     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}"
9629
9630   else
9631   ld_shlibs=no
9632   fi
9633
9634       ;;
9635
9636     dgux*)
9637       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9638       hardcode_libdir_flag_spec='-L$libdir'
9639       hardcode_shlibpath_var=no
9640       ;;
9641
9642     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9643     # support.  Future versions do this automatically, but an explicit c++rt0.o
9644     # does not break anything, and helps significantly (at the cost of a little
9645     # extra space).
9646     freebsd2.2*)
9647       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9648       hardcode_libdir_flag_spec='-R$libdir'
9649       hardcode_direct=yes
9650       hardcode_shlibpath_var=no
9651       ;;
9652
9653     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9654     freebsd2.*)
9655       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9656       hardcode_direct=yes
9657       hardcode_minus_L=yes
9658       hardcode_shlibpath_var=no
9659       ;;
9660
9661     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9662     freebsd* | dragonfly*)
9663       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9664       hardcode_libdir_flag_spec='-R$libdir'
9665       hardcode_direct=yes
9666       hardcode_shlibpath_var=no
9667       ;;
9668
9669     hpux9*)
9670       if test "$GCC" = yes; then
9671         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'
9672       else
9673         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'
9674       fi
9675       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9676       hardcode_libdir_separator=:
9677       hardcode_direct=yes
9678
9679       # hardcode_minus_L: Not really in the search PATH,
9680       # but as the default location of the library.
9681       hardcode_minus_L=yes
9682       export_dynamic_flag_spec='${wl}-E'
9683       ;;
9684
9685     hpux10*)
9686       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9687         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9688       else
9689         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9690       fi
9691       if test "$with_gnu_ld" = no; then
9692         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9693         hardcode_libdir_separator=:
9694         hardcode_direct=yes
9695         hardcode_direct_absolute=yes
9696         export_dynamic_flag_spec='${wl}-E'
9697         # hardcode_minus_L: Not really in the search PATH,
9698         # but as the default location of the library.
9699         hardcode_minus_L=yes
9700       fi
9701       ;;
9702
9703     hpux11*)
9704       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9705         case $host_cpu in
9706         hppa*64*)
9707           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9708           ;;
9709         ia64*)
9710           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9711           ;;
9712         *)
9713           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9714           ;;
9715         esac
9716       else
9717         case $host_cpu in
9718         hppa*64*)
9719           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9720           ;;
9721         ia64*)
9722           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9723           ;;
9724         *)
9725
9726           # Older versions of the 11.00 compiler do not understand -b yet
9727           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9728           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9729 $as_echo_n "checking if $CC understands -b... " >&6; }
9730 if ${lt_cv_prog_compiler__b+:} false; then :
9731   $as_echo_n "(cached) " >&6
9732 else
9733   lt_cv_prog_compiler__b=no
9734    save_LDFLAGS="$LDFLAGS"
9735    LDFLAGS="$LDFLAGS -b"
9736    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9737    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9738      # The linker can only warn and ignore the option if not recognized
9739      # So say no if there are warnings
9740      if test -s conftest.err; then
9741        # Append any errors to the config.log.
9742        cat conftest.err 1>&5
9743        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9744        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9745        if diff conftest.exp conftest.er2 >/dev/null; then
9746          lt_cv_prog_compiler__b=yes
9747        fi
9748      else
9749        lt_cv_prog_compiler__b=yes
9750      fi
9751    fi
9752    $RM -r conftest*
9753    LDFLAGS="$save_LDFLAGS"
9754
9755 fi
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9757 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9758
9759 if test x"$lt_cv_prog_compiler__b" = xyes; then
9760     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9761 else
9762     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9763 fi
9764
9765           ;;
9766         esac
9767       fi
9768       if test "$with_gnu_ld" = no; then
9769         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9770         hardcode_libdir_separator=:
9771
9772         case $host_cpu in
9773         hppa*64*|ia64*)
9774           hardcode_direct=no
9775           hardcode_shlibpath_var=no
9776           ;;
9777         *)
9778           hardcode_direct=yes
9779           hardcode_direct_absolute=yes
9780           export_dynamic_flag_spec='${wl}-E'
9781
9782           # hardcode_minus_L: Not really in the search PATH,
9783           # but as the default location of the library.
9784           hardcode_minus_L=yes
9785           ;;
9786         esac
9787       fi
9788       ;;
9789
9790     irix5* | irix6* | nonstopux*)
9791       if test "$GCC" = yes; then
9792         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'
9793         # Try to use the -exported_symbol ld option, if it does not
9794         # work, assume that -exports_file does not work either and
9795         # implicitly export all symbols.
9796         # This should be the same for all languages, so no per-tag cache variable.
9797         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9798 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9799 if ${lt_cv_irix_exported_symbol+:} false; then :
9800   $as_echo_n "(cached) " >&6
9801 else
9802   save_LDFLAGS="$LDFLAGS"
9803            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9804            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805 /* end confdefs.h.  */
9806 int foo (void) { return 0; }
9807 _ACEOF
9808 if ac_fn_c_try_link "$LINENO"; then :
9809   lt_cv_irix_exported_symbol=yes
9810 else
9811   lt_cv_irix_exported_symbol=no
9812 fi
9813 rm -f core conftest.err conftest.$ac_objext \
9814     conftest$ac_exeext conftest.$ac_ext
9815            LDFLAGS="$save_LDFLAGS"
9816 fi
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9818 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9819         if test "$lt_cv_irix_exported_symbol" = yes; then
9820           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'
9821         fi
9822       else
9823         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'
9824         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'
9825       fi
9826       archive_cmds_need_lc='no'
9827       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9828       hardcode_libdir_separator=:
9829       inherit_rpath=yes
9830       link_all_deplibs=yes
9831       ;;
9832
9833     netbsd* | netbsdelf*-gnu)
9834       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9835         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9836       else
9837         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9838       fi
9839       hardcode_libdir_flag_spec='-R$libdir'
9840       hardcode_direct=yes
9841       hardcode_shlibpath_var=no
9842       ;;
9843
9844     newsos6)
9845       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9846       hardcode_direct=yes
9847       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9848       hardcode_libdir_separator=:
9849       hardcode_shlibpath_var=no
9850       ;;
9851
9852     *nto* | *qnx*)
9853       ;;
9854
9855     openbsd*)
9856       if test -f /usr/libexec/ld.so; then
9857         hardcode_direct=yes
9858         hardcode_shlibpath_var=no
9859         hardcode_direct_absolute=yes
9860         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9861           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9862           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9863           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9864           export_dynamic_flag_spec='${wl}-E'
9865         else
9866           case $host_os in
9867            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9868              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9869              hardcode_libdir_flag_spec='-R$libdir'
9870              ;;
9871            *)
9872              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9873              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9874              ;;
9875           esac
9876         fi
9877       else
9878         ld_shlibs=no
9879       fi
9880       ;;
9881
9882     os2*)
9883       hardcode_libdir_flag_spec='-L$libdir'
9884       hardcode_minus_L=yes
9885       allow_undefined_flag=unsupported
9886       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'
9887       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9888       ;;
9889
9890     osf3*)
9891       if test "$GCC" = yes; then
9892         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9893         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'
9894       else
9895         allow_undefined_flag=' -expect_unresolved \*'
9896         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'
9897       fi
9898       archive_cmds_need_lc='no'
9899       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9900       hardcode_libdir_separator=:
9901       ;;
9902
9903     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9904       if test "$GCC" = yes; then
9905         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9906         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'
9907         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9908       else
9909         allow_undefined_flag=' -expect_unresolved \*'
9910         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'
9911         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~
9912         $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'
9913
9914         # Both c and cxx compiler support -rpath directly
9915         hardcode_libdir_flag_spec='-rpath $libdir'
9916       fi
9917       archive_cmds_need_lc='no'
9918       hardcode_libdir_separator=:
9919       ;;
9920
9921     solaris*)
9922       no_undefined_flag=' -z defs'
9923       if test "$GCC" = yes; then
9924         wlarc='${wl}'
9925         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9926         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9927           $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'
9928       else
9929         case `$CC -V 2>&1` in
9930         *"Compilers 5.0"*)
9931           wlarc=''
9932           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9933           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9934           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9935           ;;
9936         *)
9937           wlarc='${wl}'
9938           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9939           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9940           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9941           ;;
9942         esac
9943       fi
9944       hardcode_libdir_flag_spec='-R$libdir'
9945       hardcode_shlibpath_var=no
9946       case $host_os in
9947       solaris2.[0-5] | solaris2.[0-5].*) ;;
9948       *)
9949         # The compiler driver will combine and reorder linker options,
9950         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9951         # but is careful enough not to reorder.
9952         # Supported since Solaris 2.6 (maybe 2.5.1?)
9953         if test "$GCC" = yes; then
9954           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9955         else
9956           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9957         fi
9958         ;;
9959       esac
9960       link_all_deplibs=yes
9961       ;;
9962
9963     sunos4*)
9964       if test "x$host_vendor" = xsequent; then
9965         # Use $CC to link under sequent, because it throws in some extra .o
9966         # files that make .init and .fini sections work.
9967         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9968       else
9969         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9970       fi
9971       hardcode_libdir_flag_spec='-L$libdir'
9972       hardcode_direct=yes
9973       hardcode_minus_L=yes
9974       hardcode_shlibpath_var=no
9975       ;;
9976
9977     sysv4)
9978       case $host_vendor in
9979         sni)
9980           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9981           hardcode_direct=yes # is this really true???
9982         ;;
9983         siemens)
9984           ## LD is ld it makes a PLAMLIB
9985           ## CC just makes a GrossModule.
9986           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9987           reload_cmds='$CC -r -o $output$reload_objs'
9988           hardcode_direct=no
9989         ;;
9990         motorola)
9991           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9992           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9993         ;;
9994       esac
9995       runpath_var='LD_RUN_PATH'
9996       hardcode_shlibpath_var=no
9997       ;;
9998
9999     sysv4.3*)
10000       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10001       hardcode_shlibpath_var=no
10002       export_dynamic_flag_spec='-Bexport'
10003       ;;
10004
10005     sysv4*MP*)
10006       if test -d /usr/nec; then
10007         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10008         hardcode_shlibpath_var=no
10009         runpath_var=LD_RUN_PATH
10010         hardcode_runpath_var=yes
10011         ld_shlibs=yes
10012       fi
10013       ;;
10014
10015     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10016       no_undefined_flag='${wl}-z,text'
10017       archive_cmds_need_lc=no
10018       hardcode_shlibpath_var=no
10019       runpath_var='LD_RUN_PATH'
10020
10021       if test "$GCC" = yes; then
10022         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10023         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10024       else
10025         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10026         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10027       fi
10028       ;;
10029
10030     sysv5* | sco3.2v5* | sco5v6*)
10031       # Note: We can NOT use -z defs as we might desire, because we do not
10032       # link with -lc, and that would cause any symbols used from libc to
10033       # always be unresolved, which means just about no library would
10034       # ever link correctly.  If we're not using GNU ld we use -z text
10035       # though, which does catch some bad symbols but isn't as heavy-handed
10036       # as -z defs.
10037       no_undefined_flag='${wl}-z,text'
10038       allow_undefined_flag='${wl}-z,nodefs'
10039       archive_cmds_need_lc=no
10040       hardcode_shlibpath_var=no
10041       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10042       hardcode_libdir_separator=':'
10043       link_all_deplibs=yes
10044       export_dynamic_flag_spec='${wl}-Bexport'
10045       runpath_var='LD_RUN_PATH'
10046
10047       if test "$GCC" = yes; then
10048         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10049         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10050       else
10051         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10052         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10053       fi
10054       ;;
10055
10056     uts4*)
10057       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10058       hardcode_libdir_flag_spec='-L$libdir'
10059       hardcode_shlibpath_var=no
10060       ;;
10061
10062     *)
10063       ld_shlibs=no
10064       ;;
10065     esac
10066
10067     if test x$host_vendor = xsni; then
10068       case $host in
10069       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10070         export_dynamic_flag_spec='${wl}-Blargedynsym'
10071         ;;
10072       esac
10073     fi
10074   fi
10075
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10077 $as_echo "$ld_shlibs" >&6; }
10078 test "$ld_shlibs" = no && can_build_shared=no
10079
10080 with_gnu_ld=$with_gnu_ld
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096 #
10097 # Do we need to explicitly link libc?
10098 #
10099 case "x$archive_cmds_need_lc" in
10100 x|xyes)
10101   # Assume -lc should be added
10102   archive_cmds_need_lc=yes
10103
10104   if test "$enable_shared" = yes && test "$GCC" = yes; then
10105     case $archive_cmds in
10106     *'~'*)
10107       # FIXME: we may have to deal with multi-command sequences.
10108       ;;
10109     '$CC '*)
10110       # Test whether the compiler implicitly links with -lc since on some
10111       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10112       # to ld, don't add -lc before -lgcc.
10113       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10114 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10115 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10116   $as_echo_n "(cached) " >&6
10117 else
10118   $RM conftest*
10119         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10120
10121         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10122   (eval $ac_compile) 2>&5
10123   ac_status=$?
10124   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10125   test $ac_status = 0; } 2>conftest.err; then
10126           soname=conftest
10127           lib=conftest
10128           libobjs=conftest.$ac_objext
10129           deplibs=
10130           wl=$lt_prog_compiler_wl
10131           pic_flag=$lt_prog_compiler_pic
10132           compiler_flags=-v
10133           linker_flags=-v
10134           verstring=
10135           output_objdir=.
10136           libname=conftest
10137           lt_save_allow_undefined_flag=$allow_undefined_flag
10138           allow_undefined_flag=
10139           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10140   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10141   ac_status=$?
10142   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10143   test $ac_status = 0; }
10144           then
10145             lt_cv_archive_cmds_need_lc=no
10146           else
10147             lt_cv_archive_cmds_need_lc=yes
10148           fi
10149           allow_undefined_flag=$lt_save_allow_undefined_flag
10150         else
10151           cat conftest.err 1>&5
10152         fi
10153         $RM conftest*
10154
10155 fi
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10157 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10158       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10159       ;;
10160     esac
10161   fi
10162   ;;
10163 esac
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10317 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10318
10319 if test "$GCC" = yes; then
10320   case $host_os in
10321     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10322     *) lt_awk_arg="/^libraries:/" ;;
10323   esac
10324   case $host_os in
10325     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10326     *) lt_sed_strip_eq="s,=/,/,g" ;;
10327   esac
10328   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10329   case $lt_search_path_spec in
10330   *\;*)
10331     # if the path contains ";" then we assume it to be the separator
10332     # otherwise default to the standard path separator (i.e. ":") - it is
10333     # assumed that no part of a normal pathname contains ";" but that should
10334     # okay in the real world where ";" in dirpaths is itself problematic.
10335     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10336     ;;
10337   *)
10338     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10339     ;;
10340   esac
10341   # Ok, now we have the path, separated by spaces, we can step through it
10342   # and add multilib dir if necessary.
10343   lt_tmp_lt_search_path_spec=
10344   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10345   for lt_sys_path in $lt_search_path_spec; do
10346     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10347       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10348     else
10349       test -d "$lt_sys_path" && \
10350         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10351     fi
10352   done
10353   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10354 BEGIN {RS=" "; FS="/|\n";} {
10355   lt_foo="";
10356   lt_count=0;
10357   for (lt_i = NF; lt_i > 0; lt_i--) {
10358     if ($lt_i != "" && $lt_i != ".") {
10359       if ($lt_i == "..") {
10360         lt_count++;
10361       } else {
10362         if (lt_count == 0) {
10363           lt_foo="/" $lt_i lt_foo;
10364         } else {
10365           lt_count--;
10366         }
10367       }
10368     }
10369   }
10370   if (lt_foo != "") { lt_freq[lt_foo]++; }
10371   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10372 }'`
10373   # AWK program above erroneously prepends '/' to C:/dos/paths
10374   # for these hosts.
10375   case $host_os in
10376     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10377       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10378   esac
10379   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10380 else
10381   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10382 fi
10383 library_names_spec=
10384 libname_spec='lib$name'
10385 soname_spec=
10386 shrext_cmds=".so"
10387 postinstall_cmds=
10388 postuninstall_cmds=
10389 finish_cmds=
10390 finish_eval=
10391 shlibpath_var=
10392 shlibpath_overrides_runpath=unknown
10393 version_type=none
10394 dynamic_linker="$host_os ld.so"
10395 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10396 need_lib_prefix=unknown
10397 hardcode_into_libs=no
10398
10399 # when you set need_version to no, make sure it does not cause -set_version
10400 # flags to be left without arguments
10401 need_version=unknown
10402
10403 case $host_os in
10404 aix3*)
10405   version_type=linux # correct to gnu/linux during the next big refactor
10406   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10407   shlibpath_var=LIBPATH
10408
10409   # AIX 3 has no versioning support, so we append a major version to the name.
10410   soname_spec='${libname}${release}${shared_ext}$major'
10411   ;;
10412
10413 aix[4-9]*)
10414   version_type=linux # correct to gnu/linux during the next big refactor
10415   need_lib_prefix=no
10416   need_version=no
10417   hardcode_into_libs=yes
10418   if test "$host_cpu" = ia64; then
10419     # AIX 5 supports IA64
10420     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10421     shlibpath_var=LD_LIBRARY_PATH
10422   else
10423     # With GCC up to 2.95.x, collect2 would create an import file
10424     # for dependence libraries.  The import file would start with
10425     # the line `#! .'.  This would cause the generated library to
10426     # depend on `.', always an invalid library.  This was fixed in
10427     # development snapshots of GCC prior to 3.0.
10428     case $host_os in
10429       aix4 | aix4.[01] | aix4.[01].*)
10430       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10431            echo ' yes '
10432            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10433         :
10434       else
10435         can_build_shared=no
10436       fi
10437       ;;
10438     esac
10439     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10440     # soname into executable. Probably we can add versioning support to
10441     # collect2, so additional links can be useful in future.
10442     if test "$aix_use_runtimelinking" = yes; then
10443       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10444       # instead of lib<name>.a to let people know that these are not
10445       # typical AIX shared libraries.
10446       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10447     else
10448       # We preserve .a as extension for shared libraries through AIX4.2
10449       # and later when we are not doing run time linking.
10450       library_names_spec='${libname}${release}.a $libname.a'
10451       soname_spec='${libname}${release}${shared_ext}$major'
10452     fi
10453     shlibpath_var=LIBPATH
10454   fi
10455   ;;
10456
10457 amigaos*)
10458   case $host_cpu in
10459   powerpc)
10460     # Since July 2007 AmigaOS4 officially supports .so libraries.
10461     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10462     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463     ;;
10464   m68k)
10465     library_names_spec='$libname.ixlibrary $libname.a'
10466     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10467     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'
10468     ;;
10469   esac
10470   ;;
10471
10472 beos*)
10473   library_names_spec='${libname}${shared_ext}'
10474   dynamic_linker="$host_os ld.so"
10475   shlibpath_var=LIBRARY_PATH
10476   ;;
10477
10478 bsdi[45]*)
10479   version_type=linux # correct to gnu/linux during the next big refactor
10480   need_version=no
10481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10482   soname_spec='${libname}${release}${shared_ext}$major'
10483   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10484   shlibpath_var=LD_LIBRARY_PATH
10485   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10486   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10487   # the default ld.so.conf also contains /usr/contrib/lib and
10488   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10489   # libtool to hard-code these into programs
10490   ;;
10491
10492 cygwin* | mingw* | pw32* | cegcc*)
10493   version_type=windows
10494   shrext_cmds=".dll"
10495   need_version=no
10496   need_lib_prefix=no
10497
10498   case $GCC,$cc_basename in
10499   yes,*)
10500     # gcc
10501     library_names_spec='$libname.dll.a'
10502     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10503     postinstall_cmds='base_file=`basename \${file}`~
10504       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10505       dldir=$destdir/`dirname \$dlpath`~
10506       test -d \$dldir || mkdir -p \$dldir~
10507       $install_prog $dir/$dlname \$dldir/$dlname~
10508       chmod a+x \$dldir/$dlname~
10509       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10510         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10511       fi'
10512     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10513       dlpath=$dir/\$dldll~
10514        $RM \$dlpath'
10515     shlibpath_overrides_runpath=yes
10516
10517     case $host_os in
10518     cygwin*)
10519       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10520       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10521
10522       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10523       ;;
10524     mingw* | cegcc*)
10525       # MinGW DLLs use traditional 'lib' prefix
10526       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10527       ;;
10528     pw32*)
10529       # pw32 DLLs use 'pw' prefix rather than 'lib'
10530       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10531       ;;
10532     esac
10533     dynamic_linker='Win32 ld.exe'
10534     ;;
10535
10536   *,cl*)
10537     # Native MSVC
10538     libname_spec='$name'
10539     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10540     library_names_spec='${libname}.dll.lib'
10541
10542     case $build_os in
10543     mingw*)
10544       sys_lib_search_path_spec=
10545       lt_save_ifs=$IFS
10546       IFS=';'
10547       for lt_path in $LIB
10548       do
10549         IFS=$lt_save_ifs
10550         # Let DOS variable expansion print the short 8.3 style file name.
10551         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10552         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10553       done
10554       IFS=$lt_save_ifs
10555       # Convert to MSYS style.
10556       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10557       ;;
10558     cygwin*)
10559       # Convert to unix form, then to dos form, then back to unix form
10560       # but this time dos style (no spaces!) so that the unix form looks
10561       # like /cygdrive/c/PROGRA~1:/cygdr...
10562       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10563       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10564       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10565       ;;
10566     *)
10567       sys_lib_search_path_spec="$LIB"
10568       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10569         # It is most probably a Windows format PATH.
10570         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10571       else
10572         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10573       fi
10574       # FIXME: find the short name or the path components, as spaces are
10575       # common. (e.g. "Program Files" -> "PROGRA~1")
10576       ;;
10577     esac
10578
10579     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10580     postinstall_cmds='base_file=`basename \${file}`~
10581       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10582       dldir=$destdir/`dirname \$dlpath`~
10583       test -d \$dldir || mkdir -p \$dldir~
10584       $install_prog $dir/$dlname \$dldir/$dlname'
10585     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10586       dlpath=$dir/\$dldll~
10587        $RM \$dlpath'
10588     shlibpath_overrides_runpath=yes
10589     dynamic_linker='Win32 link.exe'
10590     ;;
10591
10592   *)
10593     # Assume MSVC wrapper
10594     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10595     dynamic_linker='Win32 ld.exe'
10596     ;;
10597   esac
10598   # FIXME: first we should search . and the directory the executable is in
10599   shlibpath_var=PATH
10600   ;;
10601
10602 darwin* | rhapsody*)
10603   dynamic_linker="$host_os dyld"
10604   version_type=darwin
10605   need_lib_prefix=no
10606   need_version=no
10607   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10608   soname_spec='${libname}${release}${major}$shared_ext'
10609   shlibpath_overrides_runpath=yes
10610   shlibpath_var=DYLD_LIBRARY_PATH
10611   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10612
10613   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10614   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10615   ;;
10616
10617 dgux*)
10618   version_type=linux # correct to gnu/linux during the next big refactor
10619   need_lib_prefix=no
10620   need_version=no
10621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10622   soname_spec='${libname}${release}${shared_ext}$major'
10623   shlibpath_var=LD_LIBRARY_PATH
10624   ;;
10625
10626 freebsd* | dragonfly*)
10627   # DragonFly does not have aout.  When/if they implement a new
10628   # versioning mechanism, adjust this.
10629   if test -x /usr/bin/objformat; then
10630     objformat=`/usr/bin/objformat`
10631   else
10632     case $host_os in
10633     freebsd[23].*) objformat=aout ;;
10634     *) objformat=elf ;;
10635     esac
10636   fi
10637   version_type=freebsd-$objformat
10638   case $version_type in
10639     freebsd-elf*)
10640       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10641       need_version=no
10642       need_lib_prefix=no
10643       ;;
10644     freebsd-*)
10645       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10646       need_version=yes
10647       ;;
10648   esac
10649   shlibpath_var=LD_LIBRARY_PATH
10650   case $host_os in
10651   freebsd2.*)
10652     shlibpath_overrides_runpath=yes
10653     ;;
10654   freebsd3.[01]* | freebsdelf3.[01]*)
10655     shlibpath_overrides_runpath=yes
10656     hardcode_into_libs=yes
10657     ;;
10658   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10659   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10660     shlibpath_overrides_runpath=no
10661     hardcode_into_libs=yes
10662     ;;
10663   *) # from 4.6 on, and DragonFly
10664     shlibpath_overrides_runpath=yes
10665     hardcode_into_libs=yes
10666     ;;
10667   esac
10668   ;;
10669
10670 haiku*)
10671   version_type=linux # correct to gnu/linux during the next big refactor
10672   need_lib_prefix=no
10673   need_version=no
10674   dynamic_linker="$host_os runtime_loader"
10675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10676   soname_spec='${libname}${release}${shared_ext}$major'
10677   shlibpath_var=LIBRARY_PATH
10678   shlibpath_overrides_runpath=yes
10679   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10680   hardcode_into_libs=yes
10681   ;;
10682
10683 hpux9* | hpux10* | hpux11*)
10684   # Give a soname corresponding to the major version so that dld.sl refuses to
10685   # link against other versions.
10686   version_type=sunos
10687   need_lib_prefix=no
10688   need_version=no
10689   case $host_cpu in
10690   ia64*)
10691     shrext_cmds='.so'
10692     hardcode_into_libs=yes
10693     dynamic_linker="$host_os dld.so"
10694     shlibpath_var=LD_LIBRARY_PATH
10695     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10696     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10697     soname_spec='${libname}${release}${shared_ext}$major'
10698     if test "X$HPUX_IA64_MODE" = X32; then
10699       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10700     else
10701       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10702     fi
10703     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10704     ;;
10705   hppa*64*)
10706     shrext_cmds='.sl'
10707     hardcode_into_libs=yes
10708     dynamic_linker="$host_os dld.sl"
10709     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10710     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10711     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10712     soname_spec='${libname}${release}${shared_ext}$major'
10713     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10714     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10715     ;;
10716   *)
10717     shrext_cmds='.sl'
10718     dynamic_linker="$host_os dld.sl"
10719     shlibpath_var=SHLIB_PATH
10720     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10721     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722     soname_spec='${libname}${release}${shared_ext}$major'
10723     ;;
10724   esac
10725   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10726   postinstall_cmds='chmod 555 $lib'
10727   # or fails outright, so override atomically:
10728   install_override_mode=555
10729   ;;
10730
10731 interix[3-9]*)
10732   version_type=linux # correct to gnu/linux during the next big refactor
10733   need_lib_prefix=no
10734   need_version=no
10735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10736   soname_spec='${libname}${release}${shared_ext}$major'
10737   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10738   shlibpath_var=LD_LIBRARY_PATH
10739   shlibpath_overrides_runpath=no
10740   hardcode_into_libs=yes
10741   ;;
10742
10743 irix5* | irix6* | nonstopux*)
10744   case $host_os in
10745     nonstopux*) version_type=nonstopux ;;
10746     *)
10747         if test "$lt_cv_prog_gnu_ld" = yes; then
10748                 version_type=linux # correct to gnu/linux during the next big refactor
10749         else
10750                 version_type=irix
10751         fi ;;
10752   esac
10753   need_lib_prefix=no
10754   need_version=no
10755   soname_spec='${libname}${release}${shared_ext}$major'
10756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10757   case $host_os in
10758   irix5* | nonstopux*)
10759     libsuff= shlibsuff=
10760     ;;
10761   *)
10762     case $LD in # libtool.m4 will add one of these switches to LD
10763     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10764       libsuff= shlibsuff= libmagic=32-bit;;
10765     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10766       libsuff=32 shlibsuff=N32 libmagic=N32;;
10767     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10768       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10769     *) libsuff= shlibsuff= libmagic=never-match;;
10770     esac
10771     ;;
10772   esac
10773   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10774   shlibpath_overrides_runpath=no
10775   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10776   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10777   hardcode_into_libs=yes
10778   ;;
10779
10780 # No shared lib support for Linux oldld, aout, or coff.
10781 linux*oldld* | linux*aout* | linux*coff*)
10782   dynamic_linker=no
10783   ;;
10784
10785 # This must be glibc/ELF.
10786 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10787   version_type=linux # correct to gnu/linux during the next big refactor
10788   need_lib_prefix=no
10789   need_version=no
10790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10791   soname_spec='${libname}${release}${shared_ext}$major'
10792   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10793   shlibpath_var=LD_LIBRARY_PATH
10794   shlibpath_overrides_runpath=no
10795
10796   # Some binutils ld are patched to set DT_RUNPATH
10797   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10798   $as_echo_n "(cached) " >&6
10799 else
10800   lt_cv_shlibpath_overrides_runpath=no
10801     save_LDFLAGS=$LDFLAGS
10802     save_libdir=$libdir
10803     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10804          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10805     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806 /* end confdefs.h.  */
10807
10808 int
10809 main ()
10810 {
10811
10812   ;
10813   return 0;
10814 }
10815 _ACEOF
10816 if ac_fn_c_try_link "$LINENO"; then :
10817   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10818   lt_cv_shlibpath_overrides_runpath=yes
10819 fi
10820 fi
10821 rm -f core conftest.err conftest.$ac_objext \
10822     conftest$ac_exeext conftest.$ac_ext
10823     LDFLAGS=$save_LDFLAGS
10824     libdir=$save_libdir
10825
10826 fi
10827
10828   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10829
10830   # This implies no fast_install, which is unacceptable.
10831   # Some rework will be needed to allow for fast_install
10832   # before this can be enabled.
10833   hardcode_into_libs=yes
10834
10835   # Append ld.so.conf contents to the search path
10836   if test -f /etc/ld.so.conf; then
10837     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' ' '`
10838     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10839   fi
10840
10841   # We used to test for /lib/ld.so.1 and disable shared libraries on
10842   # powerpc, because MkLinux only supported shared libraries with the
10843   # GNU dynamic linker.  Since this was broken with cross compilers,
10844   # most powerpc-linux boxes support dynamic linking these days and
10845   # people can always --disable-shared, the test was removed, and we
10846   # assume the GNU/Linux dynamic linker is in use.
10847   dynamic_linker='GNU/Linux ld.so'
10848   ;;
10849
10850 netbsdelf*-gnu)
10851   version_type=linux
10852   need_lib_prefix=no
10853   need_version=no
10854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10855   soname_spec='${libname}${release}${shared_ext}$major'
10856   shlibpath_var=LD_LIBRARY_PATH
10857   shlibpath_overrides_runpath=no
10858   hardcode_into_libs=yes
10859   dynamic_linker='NetBSD ld.elf_so'
10860   ;;
10861
10862 netbsd*)
10863   version_type=sunos
10864   need_lib_prefix=no
10865   need_version=no
10866   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10867     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10868     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10869     dynamic_linker='NetBSD (a.out) ld.so'
10870   else
10871     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10872     soname_spec='${libname}${release}${shared_ext}$major'
10873     dynamic_linker='NetBSD ld.elf_so'
10874   fi
10875   shlibpath_var=LD_LIBRARY_PATH
10876   shlibpath_overrides_runpath=yes
10877   hardcode_into_libs=yes
10878   ;;
10879
10880 newsos6)
10881   version_type=linux # correct to gnu/linux during the next big refactor
10882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10883   shlibpath_var=LD_LIBRARY_PATH
10884   shlibpath_overrides_runpath=yes
10885   ;;
10886
10887 *nto* | *qnx*)
10888   version_type=qnx
10889   need_lib_prefix=no
10890   need_version=no
10891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892   soname_spec='${libname}${release}${shared_ext}$major'
10893   shlibpath_var=LD_LIBRARY_PATH
10894   shlibpath_overrides_runpath=no
10895   hardcode_into_libs=yes
10896   dynamic_linker='ldqnx.so'
10897   ;;
10898
10899 openbsd*)
10900   version_type=sunos
10901   sys_lib_dlsearch_path_spec="/usr/lib"
10902   need_lib_prefix=no
10903   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10904   case $host_os in
10905     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10906     *)                          need_version=no  ;;
10907   esac
10908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10909   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10910   shlibpath_var=LD_LIBRARY_PATH
10911   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10912     case $host_os in
10913       openbsd2.[89] | openbsd2.[89].*)
10914         shlibpath_overrides_runpath=no
10915         ;;
10916       *)
10917         shlibpath_overrides_runpath=yes
10918         ;;
10919       esac
10920   else
10921     shlibpath_overrides_runpath=yes
10922   fi
10923   ;;
10924
10925 os2*)
10926   libname_spec='$name'
10927   shrext_cmds=".dll"
10928   need_lib_prefix=no
10929   library_names_spec='$libname${shared_ext} $libname.a'
10930   dynamic_linker='OS/2 ld.exe'
10931   shlibpath_var=LIBPATH
10932   ;;
10933
10934 osf3* | osf4* | osf5*)
10935   version_type=osf
10936   need_lib_prefix=no
10937   need_version=no
10938   soname_spec='${libname}${release}${shared_ext}$major'
10939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10940   shlibpath_var=LD_LIBRARY_PATH
10941   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10942   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10943   ;;
10944
10945 rdos*)
10946   dynamic_linker=no
10947   ;;
10948
10949 solaris*)
10950   version_type=linux # correct to gnu/linux during the next big refactor
10951   need_lib_prefix=no
10952   need_version=no
10953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954   soname_spec='${libname}${release}${shared_ext}$major'
10955   shlibpath_var=LD_LIBRARY_PATH
10956   shlibpath_overrides_runpath=yes
10957   hardcode_into_libs=yes
10958   # ldd complains unless libraries are executable
10959   postinstall_cmds='chmod +x $lib'
10960   ;;
10961
10962 sunos4*)
10963   version_type=sunos
10964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10965   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10966   shlibpath_var=LD_LIBRARY_PATH
10967   shlibpath_overrides_runpath=yes
10968   if test "$with_gnu_ld" = yes; then
10969     need_lib_prefix=no
10970   fi
10971   need_version=yes
10972   ;;
10973
10974 sysv4 | sysv4.3*)
10975   version_type=linux # correct to gnu/linux during the next big refactor
10976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10977   soname_spec='${libname}${release}${shared_ext}$major'
10978   shlibpath_var=LD_LIBRARY_PATH
10979   case $host_vendor in
10980     sni)
10981       shlibpath_overrides_runpath=no
10982       need_lib_prefix=no
10983       runpath_var=LD_RUN_PATH
10984       ;;
10985     siemens)
10986       need_lib_prefix=no
10987       ;;
10988     motorola)
10989       need_lib_prefix=no
10990       need_version=no
10991       shlibpath_overrides_runpath=no
10992       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10993       ;;
10994   esac
10995   ;;
10996
10997 sysv4*MP*)
10998   if test -d /usr/nec ;then
10999     version_type=linux # correct to gnu/linux during the next big refactor
11000     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11001     soname_spec='$libname${shared_ext}.$major'
11002     shlibpath_var=LD_LIBRARY_PATH
11003   fi
11004   ;;
11005
11006 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11007   version_type=freebsd-elf
11008   need_lib_prefix=no
11009   need_version=no
11010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11011   soname_spec='${libname}${release}${shared_ext}$major'
11012   shlibpath_var=LD_LIBRARY_PATH
11013   shlibpath_overrides_runpath=yes
11014   hardcode_into_libs=yes
11015   if test "$with_gnu_ld" = yes; then
11016     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11017   else
11018     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11019     case $host_os in
11020       sco3.2v5*)
11021         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11022         ;;
11023     esac
11024   fi
11025   sys_lib_dlsearch_path_spec='/usr/lib'
11026   ;;
11027
11028 tpf*)
11029   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11030   version_type=linux # correct to gnu/linux during the next big refactor
11031   need_lib_prefix=no
11032   need_version=no
11033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034   shlibpath_var=LD_LIBRARY_PATH
11035   shlibpath_overrides_runpath=no
11036   hardcode_into_libs=yes
11037   ;;
11038
11039 uts4*)
11040   version_type=linux # correct to gnu/linux during the next big refactor
11041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042   soname_spec='${libname}${release}${shared_ext}$major'
11043   shlibpath_var=LD_LIBRARY_PATH
11044   ;;
11045
11046 *)
11047   dynamic_linker=no
11048   ;;
11049 esac
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11051 $as_echo "$dynamic_linker" >&6; }
11052 test "$dynamic_linker" = no && can_build_shared=no
11053
11054 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11055 if test "$GCC" = yes; then
11056   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11057 fi
11058
11059 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11060   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11061 fi
11062 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11063   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11064 fi
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11158 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11159 hardcode_action=
11160 if test -n "$hardcode_libdir_flag_spec" ||
11161    test -n "$runpath_var" ||
11162    test "X$hardcode_automatic" = "Xyes" ; then
11163
11164   # We can hardcode non-existent directories.
11165   if test "$hardcode_direct" != no &&
11166      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11167      # have to relink, otherwise we might link with an installed library
11168      # when we should be linking with a yet-to-be-installed one
11169      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11170      test "$hardcode_minus_L" != no; then
11171     # Linking always hardcodes the temporary library directory.
11172     hardcode_action=relink
11173   else
11174     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11175     hardcode_action=immediate
11176   fi
11177 else
11178   # We cannot hardcode anything, or else we can only hardcode existing
11179   # directories.
11180   hardcode_action=unsupported
11181 fi
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11183 $as_echo "$hardcode_action" >&6; }
11184
11185 if test "$hardcode_action" = relink ||
11186    test "$inherit_rpath" = yes; then
11187   # Fast installation is not supported
11188   enable_fast_install=no
11189 elif test "$shlibpath_overrides_runpath" = yes ||
11190      test "$enable_shared" = no; then
11191   # Fast installation is not necessary
11192   enable_fast_install=needless
11193 fi
11194
11195
11196
11197
11198
11199
11200   if test "x$enable_dlopen" != xyes; then
11201   enable_dlopen=unknown
11202   enable_dlopen_self=unknown
11203   enable_dlopen_self_static=unknown
11204 else
11205   lt_cv_dlopen=no
11206   lt_cv_dlopen_libs=
11207
11208   case $host_os in
11209   beos*)
11210     lt_cv_dlopen="load_add_on"
11211     lt_cv_dlopen_libs=
11212     lt_cv_dlopen_self=yes
11213     ;;
11214
11215   mingw* | pw32* | cegcc*)
11216     lt_cv_dlopen="LoadLibrary"
11217     lt_cv_dlopen_libs=
11218     ;;
11219
11220   cygwin*)
11221     lt_cv_dlopen="dlopen"
11222     lt_cv_dlopen_libs=
11223     ;;
11224
11225   darwin*)
11226   # if libdl is installed we need to link against it
11227     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11228 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11229 if ${ac_cv_lib_dl_dlopen+:} false; then :
11230   $as_echo_n "(cached) " >&6
11231 else
11232   ac_check_lib_save_LIBS=$LIBS
11233 LIBS="-ldl  $LIBS"
11234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11235 /* end confdefs.h.  */
11236
11237 /* Override any GCC internal prototype to avoid an error.
11238    Use char because int might match the return type of a GCC
11239    builtin and then its argument prototype would still apply.  */
11240 #ifdef __cplusplus
11241 extern "C"
11242 #endif
11243 char dlopen ();
11244 int
11245 main ()
11246 {
11247 return dlopen ();
11248   ;
11249   return 0;
11250 }
11251 _ACEOF
11252 if ac_fn_c_try_link "$LINENO"; then :
11253   ac_cv_lib_dl_dlopen=yes
11254 else
11255   ac_cv_lib_dl_dlopen=no
11256 fi
11257 rm -f core conftest.err conftest.$ac_objext \
11258     conftest$ac_exeext conftest.$ac_ext
11259 LIBS=$ac_check_lib_save_LIBS
11260 fi
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11262 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11263 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11264   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11265 else
11266
11267     lt_cv_dlopen="dyld"
11268     lt_cv_dlopen_libs=
11269     lt_cv_dlopen_self=yes
11270
11271 fi
11272
11273     ;;
11274
11275   *)
11276     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11277 if test "x$ac_cv_func_shl_load" = xyes; then :
11278   lt_cv_dlopen="shl_load"
11279 else
11280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11281 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11282 if ${ac_cv_lib_dld_shl_load+:} false; then :
11283   $as_echo_n "(cached) " >&6
11284 else
11285   ac_check_lib_save_LIBS=$LIBS
11286 LIBS="-ldld  $LIBS"
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h.  */
11289
11290 /* Override any GCC internal prototype to avoid an error.
11291    Use char because int might match the return type of a GCC
11292    builtin and then its argument prototype would still apply.  */
11293 #ifdef __cplusplus
11294 extern "C"
11295 #endif
11296 char shl_load ();
11297 int
11298 main ()
11299 {
11300 return shl_load ();
11301   ;
11302   return 0;
11303 }
11304 _ACEOF
11305 if ac_fn_c_try_link "$LINENO"; then :
11306   ac_cv_lib_dld_shl_load=yes
11307 else
11308   ac_cv_lib_dld_shl_load=no
11309 fi
11310 rm -f core conftest.err conftest.$ac_objext \
11311     conftest$ac_exeext conftest.$ac_ext
11312 LIBS=$ac_check_lib_save_LIBS
11313 fi
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11315 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11316 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11317   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11318 else
11319   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11320 if test "x$ac_cv_func_dlopen" = xyes; then :
11321   lt_cv_dlopen="dlopen"
11322 else
11323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11324 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11325 if ${ac_cv_lib_dl_dlopen+:} false; then :
11326   $as_echo_n "(cached) " >&6
11327 else
11328   ac_check_lib_save_LIBS=$LIBS
11329 LIBS="-ldl  $LIBS"
11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h.  */
11332
11333 /* Override any GCC internal prototype to avoid an error.
11334    Use char because int might match the return type of a GCC
11335    builtin and then its argument prototype would still apply.  */
11336 #ifdef __cplusplus
11337 extern "C"
11338 #endif
11339 char dlopen ();
11340 int
11341 main ()
11342 {
11343 return dlopen ();
11344   ;
11345   return 0;
11346 }
11347 _ACEOF
11348 if ac_fn_c_try_link "$LINENO"; then :
11349   ac_cv_lib_dl_dlopen=yes
11350 else
11351   ac_cv_lib_dl_dlopen=no
11352 fi
11353 rm -f core conftest.err conftest.$ac_objext \
11354     conftest$ac_exeext conftest.$ac_ext
11355 LIBS=$ac_check_lib_save_LIBS
11356 fi
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11358 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11359 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11360   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11361 else
11362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11363 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11364 if ${ac_cv_lib_svld_dlopen+:} false; then :
11365   $as_echo_n "(cached) " >&6
11366 else
11367   ac_check_lib_save_LIBS=$LIBS
11368 LIBS="-lsvld  $LIBS"
11369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370 /* end confdefs.h.  */
11371
11372 /* Override any GCC internal prototype to avoid an error.
11373    Use char because int might match the return type of a GCC
11374    builtin and then its argument prototype would still apply.  */
11375 #ifdef __cplusplus
11376 extern "C"
11377 #endif
11378 char dlopen ();
11379 int
11380 main ()
11381 {
11382 return dlopen ();
11383   ;
11384   return 0;
11385 }
11386 _ACEOF
11387 if ac_fn_c_try_link "$LINENO"; then :
11388   ac_cv_lib_svld_dlopen=yes
11389 else
11390   ac_cv_lib_svld_dlopen=no
11391 fi
11392 rm -f core conftest.err conftest.$ac_objext \
11393     conftest$ac_exeext conftest.$ac_ext
11394 LIBS=$ac_check_lib_save_LIBS
11395 fi
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11397 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11398 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11399   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11400 else
11401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11402 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11403 if ${ac_cv_lib_dld_dld_link+:} false; then :
11404   $as_echo_n "(cached) " >&6
11405 else
11406   ac_check_lib_save_LIBS=$LIBS
11407 LIBS="-ldld  $LIBS"
11408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409 /* end confdefs.h.  */
11410
11411 /* Override any GCC internal prototype to avoid an error.
11412    Use char because int might match the return type of a GCC
11413    builtin and then its argument prototype would still apply.  */
11414 #ifdef __cplusplus
11415 extern "C"
11416 #endif
11417 char dld_link ();
11418 int
11419 main ()
11420 {
11421 return dld_link ();
11422   ;
11423   return 0;
11424 }
11425 _ACEOF
11426 if ac_fn_c_try_link "$LINENO"; then :
11427   ac_cv_lib_dld_dld_link=yes
11428 else
11429   ac_cv_lib_dld_dld_link=no
11430 fi
11431 rm -f core conftest.err conftest.$ac_objext \
11432     conftest$ac_exeext conftest.$ac_ext
11433 LIBS=$ac_check_lib_save_LIBS
11434 fi
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11436 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11437 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11438   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11439 fi
11440
11441
11442 fi
11443
11444
11445 fi
11446
11447
11448 fi
11449
11450
11451 fi
11452
11453
11454 fi
11455
11456     ;;
11457   esac
11458
11459   if test "x$lt_cv_dlopen" != xno; then
11460     enable_dlopen=yes
11461   else
11462     enable_dlopen=no
11463   fi
11464
11465   case $lt_cv_dlopen in
11466   dlopen)
11467     save_CPPFLAGS="$CPPFLAGS"
11468     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11469
11470     save_LDFLAGS="$LDFLAGS"
11471     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11472
11473     save_LIBS="$LIBS"
11474     LIBS="$lt_cv_dlopen_libs $LIBS"
11475
11476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11477 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11478 if ${lt_cv_dlopen_self+:} false; then :
11479   $as_echo_n "(cached) " >&6
11480 else
11481           if test "$cross_compiling" = yes; then :
11482   lt_cv_dlopen_self=cross
11483 else
11484   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11485   lt_status=$lt_dlunknown
11486   cat > conftest.$ac_ext <<_LT_EOF
11487 #line $LINENO "configure"
11488 #include "confdefs.h"
11489
11490 #if HAVE_DLFCN_H
11491 #include <dlfcn.h>
11492 #endif
11493
11494 #include <stdio.h>
11495
11496 #ifdef RTLD_GLOBAL
11497 #  define LT_DLGLOBAL           RTLD_GLOBAL
11498 #else
11499 #  ifdef DL_GLOBAL
11500 #    define LT_DLGLOBAL         DL_GLOBAL
11501 #  else
11502 #    define LT_DLGLOBAL         0
11503 #  endif
11504 #endif
11505
11506 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11507    find out it does not work in some platform. */
11508 #ifndef LT_DLLAZY_OR_NOW
11509 #  ifdef RTLD_LAZY
11510 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11511 #  else
11512 #    ifdef DL_LAZY
11513 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11514 #    else
11515 #      ifdef RTLD_NOW
11516 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11517 #      else
11518 #        ifdef DL_NOW
11519 #          define LT_DLLAZY_OR_NOW      DL_NOW
11520 #        else
11521 #          define LT_DLLAZY_OR_NOW      0
11522 #        endif
11523 #      endif
11524 #    endif
11525 #  endif
11526 #endif
11527
11528 /* When -fvisbility=hidden is used, assume the code has been annotated
11529    correspondingly for the symbols needed.  */
11530 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11531 int fnord () __attribute__((visibility("default")));
11532 #endif
11533
11534 int fnord () { return 42; }
11535 int main ()
11536 {
11537   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11538   int status = $lt_dlunknown;
11539
11540   if (self)
11541     {
11542       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11543       else
11544         {
11545           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11546           else puts (dlerror ());
11547         }
11548       /* dlclose (self); */
11549     }
11550   else
11551     puts (dlerror ());
11552
11553   return status;
11554 }
11555 _LT_EOF
11556   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11557   (eval $ac_link) 2>&5
11558   ac_status=$?
11559   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11560   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11561     (./conftest; exit; ) >&5 2>/dev/null
11562     lt_status=$?
11563     case x$lt_status in
11564       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11565       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11566       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11567     esac
11568   else :
11569     # compilation failed
11570     lt_cv_dlopen_self=no
11571   fi
11572 fi
11573 rm -fr conftest*
11574
11575
11576 fi
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11578 $as_echo "$lt_cv_dlopen_self" >&6; }
11579
11580     if test "x$lt_cv_dlopen_self" = xyes; then
11581       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11582       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11583 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11584 if ${lt_cv_dlopen_self_static+:} false; then :
11585   $as_echo_n "(cached) " >&6
11586 else
11587           if test "$cross_compiling" = yes; then :
11588   lt_cv_dlopen_self_static=cross
11589 else
11590   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11591   lt_status=$lt_dlunknown
11592   cat > conftest.$ac_ext <<_LT_EOF
11593 #line $LINENO "configure"
11594 #include "confdefs.h"
11595
11596 #if HAVE_DLFCN_H
11597 #include <dlfcn.h>
11598 #endif
11599
11600 #include <stdio.h>
11601
11602 #ifdef RTLD_GLOBAL
11603 #  define LT_DLGLOBAL           RTLD_GLOBAL
11604 #else
11605 #  ifdef DL_GLOBAL
11606 #    define LT_DLGLOBAL         DL_GLOBAL
11607 #  else
11608 #    define LT_DLGLOBAL         0
11609 #  endif
11610 #endif
11611
11612 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11613    find out it does not work in some platform. */
11614 #ifndef LT_DLLAZY_OR_NOW
11615 #  ifdef RTLD_LAZY
11616 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11617 #  else
11618 #    ifdef DL_LAZY
11619 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11620 #    else
11621 #      ifdef RTLD_NOW
11622 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11623 #      else
11624 #        ifdef DL_NOW
11625 #          define LT_DLLAZY_OR_NOW      DL_NOW
11626 #        else
11627 #          define LT_DLLAZY_OR_NOW      0
11628 #        endif
11629 #      endif
11630 #    endif
11631 #  endif
11632 #endif
11633
11634 /* When -fvisbility=hidden is used, assume the code has been annotated
11635    correspondingly for the symbols needed.  */
11636 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11637 int fnord () __attribute__((visibility("default")));
11638 #endif
11639
11640 int fnord () { return 42; }
11641 int main ()
11642 {
11643   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11644   int status = $lt_dlunknown;
11645
11646   if (self)
11647     {
11648       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11649       else
11650         {
11651           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11652           else puts (dlerror ());
11653         }
11654       /* dlclose (self); */
11655     }
11656   else
11657     puts (dlerror ());
11658
11659   return status;
11660 }
11661 _LT_EOF
11662   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11663   (eval $ac_link) 2>&5
11664   ac_status=$?
11665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11666   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11667     (./conftest; exit; ) >&5 2>/dev/null
11668     lt_status=$?
11669     case x$lt_status in
11670       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11671       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11672       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11673     esac
11674   else :
11675     # compilation failed
11676     lt_cv_dlopen_self_static=no
11677   fi
11678 fi
11679 rm -fr conftest*
11680
11681
11682 fi
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11684 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11685     fi
11686
11687     CPPFLAGS="$save_CPPFLAGS"
11688     LDFLAGS="$save_LDFLAGS"
11689     LIBS="$save_LIBS"
11690     ;;
11691   esac
11692
11693   case $lt_cv_dlopen_self in
11694   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11695   *) enable_dlopen_self=unknown ;;
11696   esac
11697
11698   case $lt_cv_dlopen_self_static in
11699   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11700   *) enable_dlopen_self_static=unknown ;;
11701   esac
11702 fi
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720 striplib=
11721 old_striplib=
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11723 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11724 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11725   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11726   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11728 $as_echo "yes" >&6; }
11729 else
11730 # FIXME - insert some real tests, host_os isn't really good enough
11731   case $host_os in
11732   darwin*)
11733     if test -n "$STRIP" ; then
11734       striplib="$STRIP -x"
11735       old_striplib="$STRIP -S"
11736       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11737 $as_echo "yes" >&6; }
11738     else
11739       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11740 $as_echo "no" >&6; }
11741     fi
11742     ;;
11743   *)
11744     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; }
11746     ;;
11747   esac
11748 fi
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761   # Report which library types will actually be built
11762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11763 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11765 $as_echo "$can_build_shared" >&6; }
11766
11767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11768 $as_echo_n "checking whether to build shared libraries... " >&6; }
11769   test "$can_build_shared" = "no" && enable_shared=no
11770
11771   # On AIX, shared libraries and static libraries use the same namespace, and
11772   # are all built from PIC.
11773   case $host_os in
11774   aix3*)
11775     test "$enable_shared" = yes && enable_static=no
11776     if test -n "$RANLIB"; then
11777       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11778       postinstall_cmds='$RANLIB $lib'
11779     fi
11780     ;;
11781
11782   aix[4-9]*)
11783     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11784       test "$enable_shared" = yes && enable_static=no
11785     fi
11786     ;;
11787   esac
11788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11789 $as_echo "$enable_shared" >&6; }
11790
11791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11792 $as_echo_n "checking whether to build static libraries... " >&6; }
11793   # Make sure either enable_shared or enable_static is yes.
11794   test "$enable_shared" = yes || enable_static=yes
11795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11796 $as_echo "$enable_static" >&6; }
11797
11798
11799
11800
11801 fi
11802 ac_ext=c
11803 ac_cpp='$CPP $CPPFLAGS'
11804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11807
11808 CC="$lt_save_CC"
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824         ac_config_commands="$ac_config_commands libtool"
11825
11826
11827
11828
11829 # Only expand once:
11830
11831
11832
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
11834 $as_echo_n "checking for library containing strerror... " >&6; }
11835 if ${ac_cv_search_strerror+:} false; then :
11836   $as_echo_n "(cached) " >&6
11837 else
11838   ac_func_search_save_LIBS=$LIBS
11839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840 /* end confdefs.h.  */
11841
11842 /* Override any GCC internal prototype to avoid an error.
11843    Use char because int might match the return type of a GCC
11844    builtin and then its argument prototype would still apply.  */
11845 #ifdef __cplusplus
11846 extern "C"
11847 #endif
11848 char strerror ();
11849 int
11850 main ()
11851 {
11852 return strerror ();
11853   ;
11854   return 0;
11855 }
11856 _ACEOF
11857 for ac_lib in '' cposix; do
11858   if test -z "$ac_lib"; then
11859     ac_res="none required"
11860   else
11861     ac_res=-l$ac_lib
11862     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11863   fi
11864   if ac_fn_c_try_link "$LINENO"; then :
11865   ac_cv_search_strerror=$ac_res
11866 fi
11867 rm -f core conftest.err conftest.$ac_objext \
11868     conftest$ac_exeext
11869   if ${ac_cv_search_strerror+:} false; then :
11870   break
11871 fi
11872 done
11873 if ${ac_cv_search_strerror+:} false; then :
11874
11875 else
11876   ac_cv_search_strerror=no
11877 fi
11878 rm conftest.$ac_ext
11879 LIBS=$ac_func_search_save_LIBS
11880 fi
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
11882 $as_echo "$ac_cv_search_strerror" >&6; }
11883 ac_res=$ac_cv_search_strerror
11884 if test "$ac_res" != no; then :
11885   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11886
11887 fi
11888
11889 ac_ext=c
11890 ac_cpp='$CPP $CPPFLAGS'
11891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11894 if test -n "$ac_tool_prefix"; then
11895   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11896 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11898 $as_echo_n "checking for $ac_word... " >&6; }
11899 if ${ac_cv_prog_CC+:} false; then :
11900   $as_echo_n "(cached) " >&6
11901 else
11902   if test -n "$CC"; then
11903   ac_cv_prog_CC="$CC" # Let the user override the test.
11904 else
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11907 do
11908   IFS=$as_save_IFS
11909   test -z "$as_dir" && as_dir=.
11910     for ac_exec_ext in '' $ac_executable_extensions; do
11911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11914     break 2
11915   fi
11916 done
11917   done
11918 IFS=$as_save_IFS
11919
11920 fi
11921 fi
11922 CC=$ac_cv_prog_CC
11923 if test -n "$CC"; then
11924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11925 $as_echo "$CC" >&6; }
11926 else
11927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928 $as_echo "no" >&6; }
11929 fi
11930
11931
11932 fi
11933 if test -z "$ac_cv_prog_CC"; then
11934   ac_ct_CC=$CC
11935   # Extract the first word of "gcc", so it can be a program name with args.
11936 set dummy gcc; ac_word=$2
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11938 $as_echo_n "checking for $ac_word... " >&6; }
11939 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11940   $as_echo_n "(cached) " >&6
11941 else
11942   if test -n "$ac_ct_CC"; then
11943   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11944 else
11945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11946 for as_dir in $PATH
11947 do
11948   IFS=$as_save_IFS
11949   test -z "$as_dir" && as_dir=.
11950     for ac_exec_ext in '' $ac_executable_extensions; do
11951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11952     ac_cv_prog_ac_ct_CC="gcc"
11953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11954     break 2
11955   fi
11956 done
11957   done
11958 IFS=$as_save_IFS
11959
11960 fi
11961 fi
11962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11963 if test -n "$ac_ct_CC"; then
11964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11965 $as_echo "$ac_ct_CC" >&6; }
11966 else
11967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11968 $as_echo "no" >&6; }
11969 fi
11970
11971   if test "x$ac_ct_CC" = x; then
11972     CC=""
11973   else
11974     case $cross_compiling:$ac_tool_warned in
11975 yes:)
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11978 ac_tool_warned=yes ;;
11979 esac
11980     CC=$ac_ct_CC
11981   fi
11982 else
11983   CC="$ac_cv_prog_CC"
11984 fi
11985
11986 if test -z "$CC"; then
11987           if test -n "$ac_tool_prefix"; then
11988     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11989 set dummy ${ac_tool_prefix}cc; ac_word=$2
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11991 $as_echo_n "checking for $ac_word... " >&6; }
11992 if ${ac_cv_prog_CC+:} false; then :
11993   $as_echo_n "(cached) " >&6
11994 else
11995   if test -n "$CC"; then
11996   ac_cv_prog_CC="$CC" # Let the user override the test.
11997 else
11998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11999 for as_dir in $PATH
12000 do
12001   IFS=$as_save_IFS
12002   test -z "$as_dir" && as_dir=.
12003     for ac_exec_ext in '' $ac_executable_extensions; do
12004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12005     ac_cv_prog_CC="${ac_tool_prefix}cc"
12006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12007     break 2
12008   fi
12009 done
12010   done
12011 IFS=$as_save_IFS
12012
12013 fi
12014 fi
12015 CC=$ac_cv_prog_CC
12016 if test -n "$CC"; then
12017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12018 $as_echo "$CC" >&6; }
12019 else
12020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12022 fi
12023
12024
12025   fi
12026 fi
12027 if test -z "$CC"; then
12028   # Extract the first word of "cc", so it can be a program name with args.
12029 set dummy cc; ac_word=$2
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12031 $as_echo_n "checking for $ac_word... " >&6; }
12032 if ${ac_cv_prog_CC+:} false; then :
12033   $as_echo_n "(cached) " >&6
12034 else
12035   if test -n "$CC"; then
12036   ac_cv_prog_CC="$CC" # Let the user override the test.
12037 else
12038   ac_prog_rejected=no
12039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12040 for as_dir in $PATH
12041 do
12042   IFS=$as_save_IFS
12043   test -z "$as_dir" && as_dir=.
12044     for ac_exec_ext in '' $ac_executable_extensions; do
12045   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12046     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12047        ac_prog_rejected=yes
12048        continue
12049      fi
12050     ac_cv_prog_CC="cc"
12051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12052     break 2
12053   fi
12054 done
12055   done
12056 IFS=$as_save_IFS
12057
12058 if test $ac_prog_rejected = yes; then
12059   # We found a bogon in the path, so make sure we never use it.
12060   set dummy $ac_cv_prog_CC
12061   shift
12062   if test $# != 0; then
12063     # We chose a different compiler from the bogus one.
12064     # However, it has the same basename, so the bogon will be chosen
12065     # first if we set CC to just the basename; use the full file name.
12066     shift
12067     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12068   fi
12069 fi
12070 fi
12071 fi
12072 CC=$ac_cv_prog_CC
12073 if test -n "$CC"; then
12074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12075 $as_echo "$CC" >&6; }
12076 else
12077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078 $as_echo "no" >&6; }
12079 fi
12080
12081
12082 fi
12083 if test -z "$CC"; then
12084   if test -n "$ac_tool_prefix"; then
12085   for ac_prog in cl.exe
12086   do
12087     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12090 $as_echo_n "checking for $ac_word... " >&6; }
12091 if ${ac_cv_prog_CC+:} false; then :
12092   $as_echo_n "(cached) " >&6
12093 else
12094   if test -n "$CC"; then
12095   ac_cv_prog_CC="$CC" # Let the user override the test.
12096 else
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098 for as_dir in $PATH
12099 do
12100   IFS=$as_save_IFS
12101   test -z "$as_dir" && as_dir=.
12102     for ac_exec_ext in '' $ac_executable_extensions; do
12103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12104     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12106     break 2
12107   fi
12108 done
12109   done
12110 IFS=$as_save_IFS
12111
12112 fi
12113 fi
12114 CC=$ac_cv_prog_CC
12115 if test -n "$CC"; then
12116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12117 $as_echo "$CC" >&6; }
12118 else
12119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120 $as_echo "no" >&6; }
12121 fi
12122
12123
12124     test -n "$CC" && break
12125   done
12126 fi
12127 if test -z "$CC"; then
12128   ac_ct_CC=$CC
12129   for ac_prog in cl.exe
12130 do
12131   # Extract the first word of "$ac_prog", so it can be a program name with args.
12132 set dummy $ac_prog; ac_word=$2
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12134 $as_echo_n "checking for $ac_word... " >&6; }
12135 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12136   $as_echo_n "(cached) " >&6
12137 else
12138   if test -n "$ac_ct_CC"; then
12139   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12140 else
12141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12142 for as_dir in $PATH
12143 do
12144   IFS=$as_save_IFS
12145   test -z "$as_dir" && as_dir=.
12146     for ac_exec_ext in '' $ac_executable_extensions; do
12147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12148     ac_cv_prog_ac_ct_CC="$ac_prog"
12149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12150     break 2
12151   fi
12152 done
12153   done
12154 IFS=$as_save_IFS
12155
12156 fi
12157 fi
12158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12159 if test -n "$ac_ct_CC"; then
12160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12161 $as_echo "$ac_ct_CC" >&6; }
12162 else
12163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164 $as_echo "no" >&6; }
12165 fi
12166
12167
12168   test -n "$ac_ct_CC" && break
12169 done
12170
12171   if test "x$ac_ct_CC" = x; then
12172     CC=""
12173   else
12174     case $cross_compiling:$ac_tool_warned in
12175 yes:)
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12178 ac_tool_warned=yes ;;
12179 esac
12180     CC=$ac_ct_CC
12181   fi
12182 fi
12183
12184 fi
12185
12186
12187 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12189 as_fn_error $? "no acceptable C compiler found in \$PATH
12190 See \`config.log' for more details" "$LINENO" 5; }
12191
12192 # Provide some information about the compiler.
12193 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12194 set X $ac_compile
12195 ac_compiler=$2
12196 for ac_option in --version -v -V -qversion; do
12197   { { ac_try="$ac_compiler $ac_option >&5"
12198 case "(($ac_try" in
12199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200   *) ac_try_echo=$ac_try;;
12201 esac
12202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12203 $as_echo "$ac_try_echo"; } >&5
12204   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12205   ac_status=$?
12206   if test -s conftest.err; then
12207     sed '10a\
12208 ... rest of stderr output deleted ...
12209          10q' conftest.err >conftest.er1
12210     cat conftest.er1 >&5
12211   fi
12212   rm -f conftest.er1 conftest.err
12213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12214   test $ac_status = 0; }
12215 done
12216
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12218 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12219 if ${ac_cv_c_compiler_gnu+:} false; then :
12220   $as_echo_n "(cached) " >&6
12221 else
12222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223 /* end confdefs.h.  */
12224
12225 int
12226 main ()
12227 {
12228 #ifndef __GNUC__
12229        choke me
12230 #endif
12231
12232   ;
12233   return 0;
12234 }
12235 _ACEOF
12236 if ac_fn_c_try_compile "$LINENO"; then :
12237   ac_compiler_gnu=yes
12238 else
12239   ac_compiler_gnu=no
12240 fi
12241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12242 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12243
12244 fi
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12246 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12247 if test $ac_compiler_gnu = yes; then
12248   GCC=yes
12249 else
12250   GCC=
12251 fi
12252 ac_test_CFLAGS=${CFLAGS+set}
12253 ac_save_CFLAGS=$CFLAGS
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12255 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12256 if ${ac_cv_prog_cc_g+:} false; then :
12257   $as_echo_n "(cached) " >&6
12258 else
12259   ac_save_c_werror_flag=$ac_c_werror_flag
12260    ac_c_werror_flag=yes
12261    ac_cv_prog_cc_g=no
12262    CFLAGS="-g"
12263    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h.  */
12265
12266 int
12267 main ()
12268 {
12269
12270   ;
12271   return 0;
12272 }
12273 _ACEOF
12274 if ac_fn_c_try_compile "$LINENO"; then :
12275   ac_cv_prog_cc_g=yes
12276 else
12277   CFLAGS=""
12278       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h.  */
12280
12281 int
12282 main ()
12283 {
12284
12285   ;
12286   return 0;
12287 }
12288 _ACEOF
12289 if ac_fn_c_try_compile "$LINENO"; then :
12290
12291 else
12292   ac_c_werror_flag=$ac_save_c_werror_flag
12293          CFLAGS="-g"
12294          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12295 /* end confdefs.h.  */
12296
12297 int
12298 main ()
12299 {
12300
12301   ;
12302   return 0;
12303 }
12304 _ACEOF
12305 if ac_fn_c_try_compile "$LINENO"; then :
12306   ac_cv_prog_cc_g=yes
12307 fi
12308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12309 fi
12310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12311 fi
12312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12313    ac_c_werror_flag=$ac_save_c_werror_flag
12314 fi
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12316 $as_echo "$ac_cv_prog_cc_g" >&6; }
12317 if test "$ac_test_CFLAGS" = set; then
12318   CFLAGS=$ac_save_CFLAGS
12319 elif test $ac_cv_prog_cc_g = yes; then
12320   if test "$GCC" = yes; then
12321     CFLAGS="-g -O2"
12322   else
12323     CFLAGS="-g"
12324   fi
12325 else
12326   if test "$GCC" = yes; then
12327     CFLAGS="-O2"
12328   else
12329     CFLAGS=
12330   fi
12331 fi
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12333 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12334 if ${ac_cv_prog_cc_c89+:} false; then :
12335   $as_echo_n "(cached) " >&6
12336 else
12337   ac_cv_prog_cc_c89=no
12338 ac_save_CC=$CC
12339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h.  */
12341 #include <stdarg.h>
12342 #include <stdio.h>
12343 struct stat;
12344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12345 struct buf { int x; };
12346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12347 static char *e (p, i)
12348      char **p;
12349      int i;
12350 {
12351   return p[i];
12352 }
12353 static char *f (char * (*g) (char **, int), char **p, ...)
12354 {
12355   char *s;
12356   va_list v;
12357   va_start (v,p);
12358   s = g (p, va_arg (v,int));
12359   va_end (v);
12360   return s;
12361 }
12362
12363 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12364    function prototypes and stuff, but not '\xHH' hex character constants.
12365    These don't provoke an error unfortunately, instead are silently treated
12366    as 'x'.  The following induces an error, until -std is added to get
12367    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12368    array size at least.  It's necessary to write '\x00'==0 to get something
12369    that's true only with -std.  */
12370 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12371
12372 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12373    inside strings and character constants.  */
12374 #define FOO(x) 'x'
12375 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12376
12377 int test (int i, double x);
12378 struct s1 {int (*f) (int a);};
12379 struct s2 {int (*f) (double a);};
12380 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12381 int argc;
12382 char **argv;
12383 int
12384 main ()
12385 {
12386 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12387   ;
12388   return 0;
12389 }
12390 _ACEOF
12391 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12392         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12393 do
12394   CC="$ac_save_CC $ac_arg"
12395   if ac_fn_c_try_compile "$LINENO"; then :
12396   ac_cv_prog_cc_c89=$ac_arg
12397 fi
12398 rm -f core conftest.err conftest.$ac_objext
12399   test "x$ac_cv_prog_cc_c89" != "xno" && break
12400 done
12401 rm -f conftest.$ac_ext
12402 CC=$ac_save_CC
12403
12404 fi
12405 # AC_CACHE_VAL
12406 case "x$ac_cv_prog_cc_c89" in
12407   x)
12408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12409 $as_echo "none needed" >&6; } ;;
12410   xno)
12411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12412 $as_echo "unsupported" >&6; } ;;
12413   *)
12414     CC="$CC $ac_cv_prog_cc_c89"
12415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12416 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12417 esac
12418 if test "x$ac_cv_prog_cc_c89" != xno; then :
12419
12420 fi
12421
12422 ac_ext=c
12423 ac_cpp='$CPP $CPPFLAGS'
12424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12427
12428 ac_ext=c
12429 ac_cpp='$CPP $CPPFLAGS'
12430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12434 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12435 if ${am_cv_prog_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   # Following AC_PROG_CC_C_O, we do the test twice because some
12451   # compilers refuse to overwrite an existing .o file with -o,
12452   # though they will create one.
12453   am_cv_prog_cc_c_o=yes
12454   for am_i in 1 2; do
12455     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12456    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12457    ac_status=$?
12458    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459    (exit $ac_status); } \
12460          && test -f conftest2.$ac_objext; then
12461       : OK
12462     else
12463       am_cv_prog_cc_c_o=no
12464       break
12465     fi
12466   done
12467   rm -f core conftest*
12468   unset am_i
12469 fi
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12471 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12472 if test "$am_cv_prog_cc_c_o" != yes; then
12473    # Losing compiler, so override with the script.
12474    # FIXME: It is wrong to rewrite CC.
12475    # But if we don't then we get into trouble of one sort or another.
12476    # A longer-term fix would be to have automake use am__CC in this case,
12477    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12478    CC="$am_aux_dir/compile $CC"
12479 fi
12480 ac_ext=c
12481 ac_cpp='$CPP $CPPFLAGS'
12482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12485
12486
12487 depcc="$CC"   am_compiler_list=
12488
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12490 $as_echo_n "checking dependency style of $depcc... " >&6; }
12491 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12492   $as_echo_n "(cached) " >&6
12493 else
12494   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12495   # We make a subdir and do the tests there.  Otherwise we can end up
12496   # making bogus files that we don't know about and never remove.  For
12497   # instance it was reported that on HP-UX the gcc test will end up
12498   # making a dummy file named 'D' -- because '-MD' means "put the output
12499   # in D".
12500   rm -rf conftest.dir
12501   mkdir conftest.dir
12502   # Copy depcomp to subdir because otherwise we won't find it if we're
12503   # using a relative directory.
12504   cp "$am_depcomp" conftest.dir
12505   cd conftest.dir
12506   # We will build objects and dependencies in a subdirectory because
12507   # it helps to detect inapplicable dependency modes.  For instance
12508   # both Tru64's cc and ICC support -MD to output dependencies as a
12509   # side effect of compilation, but ICC will put the dependencies in
12510   # the current directory while Tru64 will put them in the object
12511   # directory.
12512   mkdir sub
12513
12514   am_cv_CC_dependencies_compiler_type=none
12515   if test "$am_compiler_list" = ""; then
12516      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12517   fi
12518   am__universal=false
12519   case " $depcc " in #(
12520      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12521      esac
12522
12523   for depmode in $am_compiler_list; do
12524     # Setup a source with many dependencies, because some compilers
12525     # like to wrap large dependency lists on column 80 (with \), and
12526     # we should not choose a depcomp mode which is confused by this.
12527     #
12528     # We need to recreate these files for each test, as the compiler may
12529     # overwrite some of them when testing with obscure command lines.
12530     # This happens at least with the AIX C compiler.
12531     : > sub/conftest.c
12532     for i in 1 2 3 4 5 6; do
12533       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12534       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12535       # Solaris 10 /bin/sh.
12536       echo '/* dummy */' > sub/conftst$i.h
12537     done
12538     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12539
12540     # We check with '-c' and '-o' for the sake of the "dashmstdout"
12541     # mode.  It turns out that the SunPro C++ compiler does not properly
12542     # handle '-M -o', and we need to detect this.  Also, some Intel
12543     # versions had trouble with output in subdirs.
12544     am__obj=sub/conftest.${OBJEXT-o}
12545     am__minus_obj="-o $am__obj"
12546     case $depmode in
12547     gcc)
12548       # This depmode causes a compiler race in universal mode.
12549       test "$am__universal" = false || continue
12550       ;;
12551     nosideeffect)
12552       # After this tag, mechanisms are not by side-effect, so they'll
12553       # only be used when explicitly requested.
12554       if test "x$enable_dependency_tracking" = xyes; then
12555         continue
12556       else
12557         break
12558       fi
12559       ;;
12560     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12561       # This compiler won't grok '-c -o', but also, the minuso test has
12562       # not run yet.  These depmodes are late enough in the game, and
12563       # so weak that their functioning should not be impacted.
12564       am__obj=conftest.${OBJEXT-o}
12565       am__minus_obj=
12566       ;;
12567     none) break ;;
12568     esac
12569     if depmode=$depmode \
12570        source=sub/conftest.c object=$am__obj \
12571        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12572        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12573          >/dev/null 2>conftest.err &&
12574        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12575        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12576        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12577        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12578       # icc doesn't choke on unknown options, it will just issue warnings
12579       # or remarks (even with -Werror).  So we grep stderr for any message
12580       # that says an option was ignored or not supported.
12581       # When given -MP, icc 7.0 and 7.1 complain thusly:
12582       #   icc: Command line warning: ignoring option '-M'; no argument required
12583       # The diagnosis changed in icc 8.0:
12584       #   icc: Command line remark: option '-MP' not supported
12585       if (grep 'ignoring option' conftest.err ||
12586           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12587         am_cv_CC_dependencies_compiler_type=$depmode
12588         break
12589       fi
12590     fi
12591   done
12592
12593   cd ..
12594   rm -rf conftest.dir
12595 else
12596   am_cv_CC_dependencies_compiler_type=none
12597 fi
12598
12599 fi
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12601 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12602 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12603
12604  if
12605   test "x$enable_dependency_tracking" != xno \
12606   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12607   am__fastdepCC_TRUE=
12608   am__fastdepCC_FALSE='#'
12609 else
12610   am__fastdepCC_TRUE='#'
12611   am__fastdepCC_FALSE=
12612 fi
12613
12614
12615
12616
12617 # option to specify python interpreter to use; this just sets $PYTHON, so that
12618 # we will fallback to reading $PYTHON if --with-python is not given, and
12619 # python.m4 will get the expected input
12620
12621 # Check whether --with-python was given.
12622 if test "${with_python+set}" = set; then :
12623   withval=$with_python; PYTHON="$withval"
12624 fi
12625
12626 if test x"$PYTHON" = xyes; then
12627         as_fn_error $? "--with-python option requires a path or program argument" "$LINENO" 5
12628 fi
12629 if test -n "$PYTHON" && ! which "$PYTHON"; then
12630         as_fn_error $? "Python interpreter $PYTHON does not exist" "$LINENO" 5
12631 fi
12632
12633 # check that we have the minimum version of python necessary to build
12634
12635
12636
12637
12638         if test -n "$PYTHON"; then
12639       # If the user set $PYTHON, use it and don't search something else.
12640       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.7" >&5
12641 $as_echo_n "checking whether $PYTHON version >= 2.7... " >&6; }
12642       prog="import sys
12643 # split strings by '.' and convert to numeric.  Append some zeros
12644 # because we need at least 4 digits for the hex conversion.
12645 # map returns an iterator in Python 3.0 and a list in 2.x
12646 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
12647 minverhex = 0
12648 # xrange is not present in Python 3.0 and range returns an iterator
12649 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12650 sys.exit(sys.hexversion < minverhex)"
12651   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12652    ($PYTHON -c "$prog") >&5 2>&5
12653    ac_status=$?
12654    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655    (exit $ac_status); }; then :
12656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12657 $as_echo "yes" >&6; }
12658 else
12659   as_fn_error $? "too old" "$LINENO" 5
12660 fi
12661       am_display_PYTHON=$PYTHON
12662     else
12663       # Otherwise, try each interpreter until we find one that satisfies
12664       # VERSION.
12665       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
12666 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
12667 if ${am_cv_pathless_PYTHON+:} false; then :
12668   $as_echo_n "(cached) " >&6
12669 else
12670
12671         for am_cv_pathless_PYTHON in python3 python3.3 python3.2 python3.1 python2 python2.7 python none; do
12672           test "$am_cv_pathless_PYTHON" = none && break
12673           prog="import sys
12674 # split strings by '.' and convert to numeric.  Append some zeros
12675 # because we need at least 4 digits for the hex conversion.
12676 # map returns an iterator in Python 3.0 and a list in 2.x
12677 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
12678 minverhex = 0
12679 # xrange is not present in Python 3.0 and range returns an iterator
12680 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12681 sys.exit(sys.hexversion < minverhex)"
12682   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
12683    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
12684    ac_status=$?
12685    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686    (exit $ac_status); }; then :
12687   break
12688 fi
12689         done
12690 fi
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
12692 $as_echo "$am_cv_pathless_PYTHON" >&6; }
12693       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
12694       if test "$am_cv_pathless_PYTHON" = none; then
12695         PYTHON=:
12696       else
12697         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
12698 set dummy $am_cv_pathless_PYTHON; ac_word=$2
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12700 $as_echo_n "checking for $ac_word... " >&6; }
12701 if ${ac_cv_path_PYTHON+:} false; then :
12702   $as_echo_n "(cached) " >&6
12703 else
12704   case $PYTHON in
12705   [\\/]* | ?:[\\/]*)
12706   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12707   ;;
12708   *)
12709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12710 for as_dir in $PATH
12711 do
12712   IFS=$as_save_IFS
12713   test -z "$as_dir" && as_dir=.
12714     for ac_exec_ext in '' $ac_executable_extensions; do
12715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12716     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12718     break 2
12719   fi
12720 done
12721   done
12722 IFS=$as_save_IFS
12723
12724   ;;
12725 esac
12726 fi
12727 PYTHON=$ac_cv_path_PYTHON
12728 if test -n "$PYTHON"; then
12729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12730 $as_echo "$PYTHON" >&6; }
12731 else
12732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733 $as_echo "no" >&6; }
12734 fi
12735
12736
12737       fi
12738       am_display_PYTHON=$am_cv_pathless_PYTHON
12739     fi
12740
12741
12742   if test "$PYTHON" = :; then
12743       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12744   else
12745
12746
12747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12748 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12749 if ${am_cv_python_version+:} false; then :
12750   $as_echo_n "(cached) " >&6
12751 else
12752   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12753 fi
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12755 $as_echo "$am_cv_python_version" >&6; }
12756   PYTHON_VERSION=$am_cv_python_version
12757
12758
12759
12760   PYTHON_PREFIX='${prefix}'
12761
12762   PYTHON_EXEC_PREFIX='${exec_prefix}'
12763
12764
12765
12766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12767 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12768 if ${am_cv_python_platform+:} false; then :
12769   $as_echo_n "(cached) " >&6
12770 else
12771   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12772 fi
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12774 $as_echo "$am_cv_python_platform" >&6; }
12775   PYTHON_PLATFORM=$am_cv_python_platform
12776
12777
12778
12779
12780                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12781 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12782 if ${am_cv_python_pythondir+:} false; then :
12783   $as_echo_n "(cached) " >&6
12784 else
12785   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX'))" 2>/dev/null ||
12786      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
12787 fi
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12789 $as_echo "$am_cv_python_pythondir" >&6; }
12790   pythondir=$am_cv_python_pythondir
12791
12792
12793
12794   pkgpythondir=\${pythondir}/$PACKAGE
12795
12796
12797             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12798 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12799 if ${am_cv_python_pyexecdir+:} false; then :
12800   $as_echo_n "(cached) " >&6
12801 else
12802   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX'))" 2>/dev/null ||
12803      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
12804 fi
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12806 $as_echo "$am_cv_python_pyexecdir" >&6; }
12807   pyexecdir=$am_cv_python_pyexecdir
12808
12809
12810
12811   pkgpyexecdir=\${pyexecdir}/$PACKAGE
12812
12813
12814
12815   fi
12816
12817
12818
12819 # check if we are building for python 3
12820 prog="import sys
12821 # split strings by '.' and convert to numeric.  Append some zeros
12822 # because we need at least 4 digits for the hex conversion.
12823 # map returns an iterator in Python 3.0 and a list in 2.x
12824 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
12825 minverhex = 0
12826 # xrange is not present in Python 3.0 and range returns an iterator
12827 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12828 sys.exit(sys.hexversion < minverhex)"
12829   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12830    ($PYTHON -c "$prog") >&5 2>&5
12831    ac_status=$?
12832    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833    (exit $ac_status); }; then :
12834   build_py3k=true
12835 else
12836   build_py3k=false
12837 fi
12838
12839 # if building for python 3 make sure we have the minimum version supported
12840 if test $build_py3k = true ; then
12841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON >= 3.1" >&5
12842 $as_echo_n "checking for $PYTHON >= 3.1... " >&6; }
12843   prog="import sys
12844 # split strings by '.' and convert to numeric.  Append some zeros
12845 # because we need at least 4 digits for the hex conversion.
12846 # map returns an iterator in Python 3.0 and a list in 2.x
12847 minver = list(map(int, '3.1'.split('.'))) + [0, 0, 0]
12848 minverhex = 0
12849 # xrange is not present in Python 3.0 and range returns an iterator
12850 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12851 sys.exit(sys.hexversion < minverhex)"
12852   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12853    ($PYTHON -c "$prog") >&5 2>&5
12854    ac_status=$?
12855    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856    (exit $ac_status); }; then :
12857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12858 $as_echo "yes" >&6; }
12859 else
12860   as_fn_error $? "too old" "$LINENO" 5
12861 fi
12862 fi
12863
12864 # - 'SO' for PyPy, CPython 2.7-3.2
12865 # - 'EXT_SUFFIX' for CPython3.3+ (http://bugs.python.org/issue16754)
12866 # - fallback to '.so'
12867 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');"`
12868
12869
12870
12871
12872
12873
12874
12875
12876         # Find any Python interpreter.
12877     if test -z "$PYTHON"; then
12878       for ac_prog in python3 python3.3 python3.2 python3.1 python2 python2.7 python
12879 do
12880   # Extract the first word of "$ac_prog", so it can be a program name with args.
12881 set dummy $ac_prog; ac_word=$2
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12883 $as_echo_n "checking for $ac_word... " >&6; }
12884 if ${ac_cv_path_PYTHON+:} false; then :
12885   $as_echo_n "(cached) " >&6
12886 else
12887   case $PYTHON in
12888   [\\/]* | ?:[\\/]*)
12889   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12890   ;;
12891   *)
12892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12893 for as_dir in $PATH
12894 do
12895   IFS=$as_save_IFS
12896   test -z "$as_dir" && as_dir=.
12897     for ac_exec_ext in '' $ac_executable_extensions; do
12898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12899     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12901     break 2
12902   fi
12903 done
12904   done
12905 IFS=$as_save_IFS
12906
12907   ;;
12908 esac
12909 fi
12910 PYTHON=$ac_cv_path_PYTHON
12911 if test -n "$PYTHON"; then
12912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12913 $as_echo "$PYTHON" >&6; }
12914 else
12915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 $as_echo "no" >&6; }
12917 fi
12918
12919
12920   test -n "$PYTHON" && break
12921 done
12922 test -n "$PYTHON" || PYTHON=":"
12923
12924     fi
12925     am_display_PYTHON=python
12926
12927
12928   if test "$PYTHON" = :; then
12929       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12930   else
12931
12932
12933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12934 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12935 if ${am_cv_python_version+:} false; then :
12936   $as_echo_n "(cached) " >&6
12937 else
12938   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12939 fi
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12941 $as_echo "$am_cv_python_version" >&6; }
12942   PYTHON_VERSION=$am_cv_python_version
12943
12944
12945
12946   PYTHON_PREFIX='${prefix}'
12947
12948   PYTHON_EXEC_PREFIX='${exec_prefix}'
12949
12950
12951
12952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12953 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12954 if ${am_cv_python_platform+:} false; then :
12955   $as_echo_n "(cached) " >&6
12956 else
12957   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12958 fi
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12960 $as_echo "$am_cv_python_platform" >&6; }
12961   PYTHON_PLATFORM=$am_cv_python_platform
12962
12963
12964   # Just factor out some code duplication.
12965   am_python_setup_sysconfig="\
12966 import sys
12967 # Prefer sysconfig over distutils.sysconfig, for better compatibility
12968 # with python 3.x.  See automake bug#10227.
12969 try:
12970     import sysconfig
12971 except ImportError:
12972     can_use_sysconfig = 0
12973 else:
12974     can_use_sysconfig = 1
12975 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
12976 # <https://github.com/pypa/virtualenv/issues/118>
12977 try:
12978     from platform import python_implementation
12979     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
12980         can_use_sysconfig = 0
12981 except ImportError:
12982     pass"
12983
12984
12985             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12986 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12987 if ${am_cv_python_pythondir+:} false; then :
12988   $as_echo_n "(cached) " >&6
12989 else
12990   if test "x$prefix" = xNONE
12991      then
12992        am_py_prefix=$ac_default_prefix
12993      else
12994        am_py_prefix=$prefix
12995      fi
12996      am_cv_python_pythondir=`$PYTHON -c "
12997 $am_python_setup_sysconfig
12998 if can_use_sysconfig:
12999     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
13000 else:
13001     from distutils import sysconfig
13002     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
13003 sys.stdout.write(sitedir)"`
13004      case $am_cv_python_pythondir in
13005      $am_py_prefix*)
13006        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
13007        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
13008        ;;
13009      *)
13010        case $am_py_prefix in
13011          /usr|/System*) ;;
13012          *)
13013           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
13014           ;;
13015        esac
13016        ;;
13017      esac
13018
13019 fi
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13021 $as_echo "$am_cv_python_pythondir" >&6; }
13022   pythondir=$am_cv_python_pythondir
13023
13024
13025
13026   pkgpythondir=\${pythondir}/$PACKAGE
13027
13028
13029         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
13030 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
13031 if ${am_cv_python_pyexecdir+:} false; then :
13032   $as_echo_n "(cached) " >&6
13033 else
13034   if test "x$exec_prefix" = xNONE
13035      then
13036        am_py_exec_prefix=$am_py_prefix
13037      else
13038        am_py_exec_prefix=$exec_prefix
13039      fi
13040      am_cv_python_pyexecdir=`$PYTHON -c "
13041 $am_python_setup_sysconfig
13042 if can_use_sysconfig:
13043     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
13044 else:
13045     from distutils import sysconfig
13046     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
13047 sys.stdout.write(sitedir)"`
13048      case $am_cv_python_pyexecdir in
13049      $am_py_exec_prefix*)
13050        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
13051        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
13052        ;;
13053      *)
13054        case $am_py_exec_prefix in
13055          /usr|/System*) ;;
13056          *)
13057            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
13058            ;;
13059        esac
13060        ;;
13061      esac
13062
13063 fi
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13065 $as_echo "$am_cv_python_pyexecdir" >&6; }
13066   pyexecdir=$am_cv_python_pyexecdir
13067
13068
13069
13070   pkgpyexecdir=\${pyexecdir}/$PACKAGE
13071
13072
13073
13074   fi
13075
13076
13077
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
13079 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
13080 if test "x$PYTHON_INCLUDES" = x; then
13081   PYTHON_CONFIG=`which $PYTHON`-config
13082   if test -x "$PYTHON_CONFIG"; then
13083     PYTHON_INCLUDES=`$PYTHON_CONFIG --includes 2>/dev/null`
13084   else
13085     PYTHON_INCLUDES=`$PYTHON -c "import distutils.sysconfig, sys; sys.stdout.write(distutils.sysconfig.get_python_inc(True))"`
13086     PYTHON_INCLUDES="-I$PYTHON_INCLUDES"
13087   fi
13088 fi
13089
13090 save_CPPFLAGS="$CPPFLAGS"
13091 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h.  */
13094 #include <Python.h>
13095 _ACEOF
13096 if ac_fn_c_try_cpp "$LINENO"; then :
13097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13098 $as_echo "found" >&6; }
13099
13100 else
13101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13102 $as_echo "not found" >&6; }
13103 as_fn_error $? "Python headers not found" "$LINENO" 5
13104 fi
13105 rm -f conftest.err conftest.i conftest.$ac_ext
13106 CPPFLAGS="$save_CPPFLAGS"
13107
13108 if test "x$link_python_libs" = "xyes"; then
13109
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to embed python" >&5
13111 $as_echo_n "checking for libraries required to embed python... " >&6; }
13112 py_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
13113 if test "x$PYTHON_LIBS" = x; then
13114   PYTHON_CONFIG=`which $PYTHON`-config
13115   if test -x "$PYTHON_CONFIG"; then
13116     PYTHON_LIBS=`$PYTHON_CONFIG --ldflags 2>/dev/null`
13117   else
13118     PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
13119   fi
13120 fi
13121 if test "x$PYTHON_LIB_LOC" = x; then
13122         PYTHON_LIB_LOC="${py_prefix}/lib"
13123 fi
13124
13125
13126 save_LIBS="$LIBS"
13127 LIBS="$LIBS $PYTHON_LIBS"
13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h.  */
13130
13131 /* Override any GCC internal prototype to avoid an error.
13132    Use char because int might match the return type of a GCC
13133    builtin and then its argument prototype would still apply.  */
13134 #ifdef __cplusplus
13135 extern "C"
13136 #endif
13137 char Py_Initialize ();
13138 int
13139 main ()
13140 {
13141 return Py_Initialize ();
13142   ;
13143   return 0;
13144 }
13145 _ACEOF
13146 if ac_fn_c_try_link "$LINENO"; then :
13147            LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13148 $as_echo "yes" >&6; };
13149 else
13150            LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151 $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
13152 fi
13153 rm -f core conftest.err conftest.$ac_objext \
13154     conftest$ac_exeext conftest.$ac_ext
13155
13156
13157 fi
13158
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PySignal_SetWakeupFd in Python.h" >&5
13160 $as_echo_n "checking for PySignal_SetWakeupFd in Python.h... " >&6; }
13161 old_CPPFLAGS=$CPPFLAGS
13162 CPPFLAGS="-Wall -Werror $PYTHON_INCLUDES"
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h.  */
13165 #include <Python.h>
13166 int
13167 main ()
13168 {
13169 PySignal_SetWakeupFd(0);
13170   ;
13171   return 0;
13172 }
13173 _ACEOF
13174 if ac_fn_c_try_compile "$LINENO"; then :
13175   setwakeupfd_ok=yes
13176 else
13177   setwakeupfd_ok=no
13178 fi
13179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $setwakeupfd_ok" >&5
13181 $as_echo "$setwakeupfd_ok" >&6; }
13182 if test "x$setwakeupfd_ok" != xno; then
13183
13184 $as_echo "#define HAVE_PYSIGNAL_SETWAKEUPFD 1" >>confdefs.h
13185
13186 fi
13187 CPPFLAGS=$old_CPPFLAGS
13188
13189 PLATFORM=`$PYTHON -c "import sys; from distutils import util; sys.stdout.write(util.get_platform())"`
13190
13191
13192 # Check whether --enable-thread was given.
13193 if test "${enable_thread+set}" = set; then :
13194   enableval=$enable_thread;
13195 else
13196   enable_thread=yes
13197 fi
13198
13199
13200
13201 py_mod_var=`echo thread'_' | sed 'y%./+-%__p_%'`
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module thread" >&5
13203 $as_echo_n "checking for python module thread... " >&6; }
13204 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13205   $as_echo_n "(cached) " >&6
13206 else
13207
13208 prog="
13209 import sys
13210 try:
13211         import thread
13212 except ImportError:
13213         sys.exit(1)
13214 except:
13215         sys.exit(0)
13216 sys.exit(0)"
13217 if $PYTHON -c "$prog" 1>&5 2>&5
13218   then
13219     eval "py_cv_mod_$py_mod_var=yes"
13220   else
13221     eval "py_cv_mod_$py_mod_var=no"
13222   fi
13223
13224 fi
13225
13226 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13227 if test "x$py_val" != xno; then
13228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13229 $as_echo "yes" >&6; }
13230   else
13231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13232 $as_echo "no" >&6; }
13233   enable_thread=check_for_py3_module
13234 fi
13235
13236 if test "x$enable_thread" = xcheck_for_py3_module; then
13237
13238 py_mod_var=`echo _thread'_' | sed 'y%./+-%__p_%'`
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module _thread" >&5
13240 $as_echo_n "checking for python module _thread... " >&6; }
13241 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13242   $as_echo_n "(cached) " >&6
13243 else
13244
13245 prog="
13246 import sys
13247 try:
13248         import _thread
13249 except ImportError:
13250         sys.exit(1)
13251 except:
13252         sys.exit(0)
13253 sys.exit(0)"
13254 if $PYTHON -c "$prog" 1>&5 2>&5
13255   then
13256     eval "py_cv_mod_$py_mod_var=yes"
13257   else
13258     eval "py_cv_mod_$py_mod_var=no"
13259   fi
13260
13261 fi
13262
13263 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13264 if test "x$py_val" != xno; then
13265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13266 $as_echo "yes" >&6; }
13267   enable_thread=yes
13268 else
13269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270 $as_echo "no" >&6; }
13271   enable_thread=no
13272 fi
13273
13274 fi
13275
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable threading in pygobject" >&5
13277 $as_echo_n "checking whether to enable threading in pygobject... " >&6; }
13278 if test "x$enable_thread" != xno; then
13279   extra_mods=gthread
13280   THREADING_CFLAGS=
13281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13282 $as_echo "yes" >&6; }
13283 else
13284   extra_mods=
13285   THREADING_CFLAGS="-DDISABLE_THREADING"
13286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13287 $as_echo "no" >&6; }
13288 fi
13289
13290 CPPFLAGS="${CPPFLAGS} $THREADING_CFLAGS"
13291
13292 export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
13293
13294 # Check whether --enable-glibtest was given.
13295 if test "${enable_glibtest+set}" = set; then :
13296   enableval=$enable_glibtest;
13297 else
13298   enable_glibtest=yes
13299 fi
13300
13301
13302   pkg_config_args=glib-2.0
13303   for module in . gobject $extra_mods
13304   do
13305       case "$module" in
13306          gmodule)
13307              pkg_config_args="$pkg_config_args gmodule-2.0"
13308          ;;
13309          gmodule-no-export)
13310              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
13311          ;;
13312          gobject)
13313              pkg_config_args="$pkg_config_args gobject-2.0"
13314          ;;
13315          gthread)
13316              pkg_config_args="$pkg_config_args gthread-2.0"
13317          ;;
13318          gio*)
13319              pkg_config_args="$pkg_config_args $module-2.0"
13320          ;;
13321       esac
13322   done
13323
13324
13325
13326
13327
13328
13329
13330
13331 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13332         if test -n "$ac_tool_prefix"; then
13333   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13334 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13336 $as_echo_n "checking for $ac_word... " >&6; }
13337 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13338   $as_echo_n "(cached) " >&6
13339 else
13340   case $PKG_CONFIG in
13341   [\\/]* | ?:[\\/]*)
13342   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13343   ;;
13344   *)
13345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13346 for as_dir in $PATH
13347 do
13348   IFS=$as_save_IFS
13349   test -z "$as_dir" && as_dir=.
13350     for ac_exec_ext in '' $ac_executable_extensions; do
13351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13352     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13354     break 2
13355   fi
13356 done
13357   done
13358 IFS=$as_save_IFS
13359
13360   ;;
13361 esac
13362 fi
13363 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13364 if test -n "$PKG_CONFIG"; then
13365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13366 $as_echo "$PKG_CONFIG" >&6; }
13367 else
13368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369 $as_echo "no" >&6; }
13370 fi
13371
13372
13373 fi
13374 if test -z "$ac_cv_path_PKG_CONFIG"; then
13375   ac_pt_PKG_CONFIG=$PKG_CONFIG
13376   # Extract the first word of "pkg-config", so it can be a program name with args.
13377 set dummy pkg-config; ac_word=$2
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13379 $as_echo_n "checking for $ac_word... " >&6; }
13380 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13381   $as_echo_n "(cached) " >&6
13382 else
13383   case $ac_pt_PKG_CONFIG in
13384   [\\/]* | ?:[\\/]*)
13385   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13386   ;;
13387   *)
13388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13389 for as_dir in $PATH
13390 do
13391   IFS=$as_save_IFS
13392   test -z "$as_dir" && as_dir=.
13393     for ac_exec_ext in '' $ac_executable_extensions; do
13394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13395     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13397     break 2
13398   fi
13399 done
13400   done
13401 IFS=$as_save_IFS
13402
13403   ;;
13404 esac
13405 fi
13406 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13407 if test -n "$ac_pt_PKG_CONFIG"; then
13408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13409 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13410 else
13411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13412 $as_echo "no" >&6; }
13413 fi
13414
13415   if test "x$ac_pt_PKG_CONFIG" = x; then
13416     PKG_CONFIG=""
13417   else
13418     case $cross_compiling:$ac_tool_warned in
13419 yes:)
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13422 ac_tool_warned=yes ;;
13423 esac
13424     PKG_CONFIG=$ac_pt_PKG_CONFIG
13425   fi
13426 else
13427   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13428 fi
13429
13430 fi
13431 if test -n "$PKG_CONFIG"; then
13432         _pkg_min_version=0.16
13433         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13434 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13435         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13436                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13437 $as_echo "yes" >&6; }
13438         else
13439                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13440 $as_echo "no" >&6; }
13441                 PKG_CONFIG=""
13442         fi
13443 fi
13444
13445   no_glib=""
13446
13447   if test "x$PKG_CONFIG" = x ; then
13448     no_glib=yes
13449     PKG_CONFIG=no
13450   fi
13451
13452   min_glib_version=2.38.0
13453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
13454 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
13455
13456   if test x$PKG_CONFIG != xno ; then
13457     ## don't try to run the test against uninstalled libtool libs
13458     if $PKG_CONFIG --uninstalled $pkg_config_args; then
13459           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
13460           enable_glibtest=no
13461     fi
13462
13463     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
13464           :
13465     else
13466           no_glib=yes
13467     fi
13468   fi
13469
13470   if test x"$no_glib" = x ; then
13471     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
13472     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
13473     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
13474     GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
13475
13476     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13477     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13478     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
13479            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13480     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
13481            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13482     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
13483            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13484     if test "x$enable_glibtest" = "xyes" ; then
13485       ac_save_CFLAGS="$CFLAGS"
13486       ac_save_LIBS="$LIBS"
13487       CFLAGS="$CFLAGS $GLIB_CFLAGS"
13488       LIBS="$GLIB_LIBS $LIBS"
13489       rm -f conf.glibtest
13490       if test "$cross_compiling" = yes; then :
13491   echo $ac_n "cross compiling; assumed OK... $ac_c"
13492 else
13493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h.  */
13495
13496 #include <glib.h>
13497 #include <stdio.h>
13498 #include <stdlib.h>
13499
13500 int
13501 main ()
13502 {
13503   unsigned int major, minor, micro;
13504
13505   fclose (fopen ("conf.glibtest", "w"));
13506
13507   if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, &micro) != 3) {
13508      printf("%s, bad version string\n", "$min_glib_version");
13509      exit(1);
13510    }
13511
13512   if ((glib_major_version != $glib_config_major_version) ||
13513       (glib_minor_version != $glib_config_minor_version) ||
13514       (glib_micro_version != $glib_config_micro_version))
13515     {
13516       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
13517              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
13518              glib_major_version, glib_minor_version, glib_micro_version);
13519       printf ("*** was found! If pkg-config was correct, then it is best\n");
13520       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
13521       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13522       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13523       printf("*** required on your system.\n");
13524       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
13525       printf("*** to point to the correct configuration files\n");
13526     }
13527   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
13528            (glib_minor_version != GLIB_MINOR_VERSION) ||
13529            (glib_micro_version != GLIB_MICRO_VERSION))
13530     {
13531       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
13532              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
13533       printf("*** library (version %d.%d.%d)\n",
13534              glib_major_version, glib_minor_version, glib_micro_version);
13535     }
13536   else
13537     {
13538       if ((glib_major_version > major) ||
13539         ((glib_major_version == major) && (glib_minor_version > minor)) ||
13540         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
13541       {
13542         return 0;
13543        }
13544      else
13545       {
13546         printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
13547                glib_major_version, glib_minor_version, glib_micro_version);
13548         printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
13549                major, minor, micro);
13550         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
13551         printf("***\n");
13552         printf("*** If you have already installed a sufficiently new version, this error\n");
13553         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
13554         printf("*** being found. The easiest way to fix this is to remove the old version\n");
13555         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
13556         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
13557         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13558         printf("*** so that the correct libraries are found at run-time))\n");
13559       }
13560     }
13561   return 1;
13562 }
13563
13564 _ACEOF
13565 if ac_fn_c_try_run "$LINENO"; then :
13566
13567 else
13568   no_glib=yes
13569 fi
13570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13571   conftest.$ac_objext conftest.beam conftest.$ac_ext
13572 fi
13573
13574        CFLAGS="$ac_save_CFLAGS"
13575        LIBS="$ac_save_LIBS"
13576      fi
13577   fi
13578   if test "x$no_glib" = x ; then
13579      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
13580 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
13581      :
13582   else
13583      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13584 $as_echo "no" >&6; }
13585      if test "$PKG_CONFIG" = "no" ; then
13586        echo "*** A new enough version of pkg-config was not found."
13587        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
13588      else
13589        if test -f conf.glibtest ; then
13590         :
13591        else
13592           echo "*** Could not run GLIB test program, checking why..."
13593           ac_save_CFLAGS="$CFLAGS"
13594           ac_save_LIBS="$LIBS"
13595           CFLAGS="$CFLAGS $GLIB_CFLAGS"
13596           LIBS="$LIBS $GLIB_LIBS"
13597           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13598 /* end confdefs.h.  */
13599
13600 #include <glib.h>
13601 #include <stdio.h>
13602
13603 int
13604 main ()
13605 {
13606  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
13607   ;
13608   return 0;
13609 }
13610 _ACEOF
13611 if ac_fn_c_try_link "$LINENO"; then :
13612    echo "*** The test program compiled, but did not run. This usually means"
13613           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
13614           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
13615           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13616           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13617           echo "*** is required on your system"
13618           echo "***"
13619           echo "*** If you have an old version installed, it is best to remove it, although"
13620           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13621 else
13622    echo "*** The test program failed to compile or link. See the file config.log for the"
13623           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
13624 fi
13625 rm -f core conftest.err conftest.$ac_objext \
13626     conftest$ac_exeext conftest.$ac_ext
13627           CFLAGS="$ac_save_CFLAGS"
13628           LIBS="$ac_save_LIBS"
13629        fi
13630      fi
13631      GLIB_CFLAGS=""
13632      GLIB_LIBS=""
13633      GLIB_GENMARSHAL=""
13634      GOBJECT_QUERY=""
13635      GLIB_MKENUMS=""
13636      GLIB_COMPILE_RESOURCES=""
13637      as_fn_error $? "maybe you want the pygobject-2-4 branch?" "$LINENO" 5
13638   fi
13639
13640
13641
13642
13643
13644
13645   rm -f conf.glibtest
13646
13647 if test -n "$export_dynamic"; then
13648   GLIB_LIBS=`echo $GLIB_LIBS | sed -e "s/$export_dynamic//"`
13649 fi
13650 PYTHON_BASENAME=`basename $PYTHON`
13651
13652
13653
13654   EXP_VAR=DATADIR
13655   FROM_VAR=$datadir
13656
13657     prefix_save=$prefix
13658   exec_prefix_save=$exec_prefix
13659
13660     if test "x$prefix" = "xNONE"; then
13661     prefix=$ac_default_prefix
13662   fi
13663     if test "x$exec_prefix" = "xNONE"; then
13664     exec_prefix=$prefix
13665   fi
13666
13667   full_var="$FROM_VAR"
13668     while true; do
13669     new_full_var="`eval echo $full_var`"
13670     if test "x$new_full_var"="x$full_var"; then break; fi
13671     full_var=$new_full_var
13672   done
13673
13674     full_var=$new_full_var
13675   DATADIR="$full_var"
13676
13677
13678     prefix=$prefix_save
13679   exec_prefix=$exec_prefix_save
13680
13681
13682
13683 pkg_failed=no
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
13685 $as_echo_n "checking for FFI... " >&6; }
13686
13687 if test -n "$FFI_CFLAGS"; then
13688     pkg_cv_FFI_CFLAGS="$FFI_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 \"libffi >= 3.0\""; } >&5
13692   ($PKG_CONFIG --exists --print-errors "libffi >= 3.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_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.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 "$FFI_LIBS"; then
13705     pkg_cv_FFI_LIBS="$FFI_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 \"libffi >= 3.0\""; } >&5
13709   ($PKG_CONFIG --exists --print-errors "libffi >= 3.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_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.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                 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13735         else
13736                 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13737         fi
13738         # Put the nasty error message in config.log where it belongs
13739         echo "$FFI_PKG_ERRORS" >&5
13740
13741         as_fn_error $? "Package requirements (libffi >= 3.0) were not met:
13742
13743 $FFI_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 FFI_CFLAGS
13749 and FFI_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 FFI_CFLAGS
13761 and FFI_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         FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
13768         FFI_LIBS=$pkg_cv_FFI_LIBS
13769         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13770 $as_echo "yes" >&6; }
13771
13772 fi
13773 LIBFFI_PC=libffi
13774
13775
13776
13777
13778
13779
13780 pkg_failed=no
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
13782 $as_echo_n "checking for GIO... " >&6; }
13783
13784 if test -n "$GIO_CFLAGS"; then
13785     pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
13786  elif test -n "$PKG_CONFIG"; then
13787     if test -n "$PKG_CONFIG" && \
13788     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.38.0\""; } >&5
13789   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.38.0") 2>&5
13790   ac_status=$?
13791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13792   test $ac_status = 0; }; then
13793   pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.38.0" 2>/dev/null`
13794                       test "x$?" != "x0" && pkg_failed=yes
13795 else
13796   pkg_failed=yes
13797 fi
13798  else
13799     pkg_failed=untried
13800 fi
13801 if test -n "$GIO_LIBS"; then
13802     pkg_cv_GIO_LIBS="$GIO_LIBS"
13803  elif test -n "$PKG_CONFIG"; then
13804     if test -n "$PKG_CONFIG" && \
13805     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.38.0\""; } >&5
13806   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.38.0") 2>&5
13807   ac_status=$?
13808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13809   test $ac_status = 0; }; then
13810   pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.38.0" 2>/dev/null`
13811                       test "x$?" != "x0" && pkg_failed=yes
13812 else
13813   pkg_failed=yes
13814 fi
13815  else
13816     pkg_failed=untried
13817 fi
13818
13819
13820
13821 if test $pkg_failed = yes; then
13822         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13823 $as_echo "no" >&6; }
13824
13825 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13826         _pkg_short_errors_supported=yes
13827 else
13828         _pkg_short_errors_supported=no
13829 fi
13830         if test $_pkg_short_errors_supported = yes; then
13831                 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.38.0" 2>&1`
13832         else
13833                 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.38.0" 2>&1`
13834         fi
13835         # Put the nasty error message in config.log where it belongs
13836         echo "$GIO_PKG_ERRORS" >&5
13837
13838         as_fn_error $? "Package requirements (gio-2.0 >= 2.38.0) were not met:
13839
13840 $GIO_PKG_ERRORS
13841
13842 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13843 installed software in a non-standard prefix.
13844
13845 Alternatively, you may set the environment variables GIO_CFLAGS
13846 and GIO_LIBS to avoid the need to call pkg-config.
13847 See the pkg-config man page for more details." "$LINENO" 5
13848 elif test $pkg_failed = untried; then
13849         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13850 $as_echo "no" >&6; }
13851         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13853 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13854 is in your PATH or set the PKG_CONFIG environment variable to the full
13855 path to pkg-config.
13856
13857 Alternatively, you may set the environment variables GIO_CFLAGS
13858 and GIO_LIBS to avoid the need to call pkg-config.
13859 See the pkg-config man page for more details.
13860
13861 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13862 See \`config.log' for more details" "$LINENO" 5; }
13863 else
13864         GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
13865         GIO_LIBS=$pkg_cv_GIO_LIBS
13866         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13867 $as_echo "yes" >&6; }
13868
13869 fi
13870
13871 # Check whether --enable-cairo was given.
13872 if test "${enable_cairo+set}" = set; then :
13873   enableval=$enable_cairo; enable_cairo=$enableval
13874 else
13875   enable_cairo=yes
13876 fi
13877
13878
13879
13880 pkg_failed=no
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GI" >&5
13882 $as_echo_n "checking for GI... " >&6; }
13883
13884 if test -n "$GI_CFLAGS"; then
13885     pkg_cv_GI_CFLAGS="$GI_CFLAGS"
13886  elif test -n "$PKG_CONFIG"; then
13887     if test -n "$PKG_CONFIG" && \
13888     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.38.0
13889     gobject-introspection-1.0 >= 1.39.0
13890 \""; } >&5
13891   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0
13892     gobject-introspection-1.0 >= 1.39.0
13893 ") 2>&5
13894   ac_status=$?
13895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13896   test $ac_status = 0; }; then
13897   pkg_cv_GI_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.38.0
13898     gobject-introspection-1.0 >= 1.39.0
13899 " 2>/dev/null`
13900                       test "x$?" != "x0" && pkg_failed=yes
13901 else
13902   pkg_failed=yes
13903 fi
13904  else
13905     pkg_failed=untried
13906 fi
13907 if test -n "$GI_LIBS"; then
13908     pkg_cv_GI_LIBS="$GI_LIBS"
13909  elif test -n "$PKG_CONFIG"; then
13910     if test -n "$PKG_CONFIG" && \
13911     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.38.0
13912     gobject-introspection-1.0 >= 1.39.0
13913 \""; } >&5
13914   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0
13915     gobject-introspection-1.0 >= 1.39.0
13916 ") 2>&5
13917   ac_status=$?
13918   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13919   test $ac_status = 0; }; then
13920   pkg_cv_GI_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.38.0
13921     gobject-introspection-1.0 >= 1.39.0
13922 " 2>/dev/null`
13923                       test "x$?" != "x0" && pkg_failed=yes
13924 else
13925   pkg_failed=yes
13926 fi
13927  else
13928     pkg_failed=untried
13929 fi
13930
13931
13932
13933 if test $pkg_failed = yes; then
13934         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13935 $as_echo "no" >&6; }
13936
13937 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13938         _pkg_short_errors_supported=yes
13939 else
13940         _pkg_short_errors_supported=no
13941 fi
13942         if test $_pkg_short_errors_supported = yes; then
13943                 GI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.38.0
13944     gobject-introspection-1.0 >= 1.39.0
13945 " 2>&1`
13946         else
13947                 GI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.38.0
13948     gobject-introspection-1.0 >= 1.39.0
13949 " 2>&1`
13950         fi
13951         # Put the nasty error message in config.log where it belongs
13952         echo "$GI_PKG_ERRORS" >&5
13953
13954         as_fn_error $? "Package requirements (glib-2.0 >= 2.38.0
13955     gobject-introspection-1.0 >= 1.39.0
13956 ) were not met:
13957
13958 $GI_PKG_ERRORS
13959
13960 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13961 installed software in a non-standard prefix.
13962
13963 Alternatively, you may set the environment variables GI_CFLAGS
13964 and GI_LIBS to avoid the need to call pkg-config.
13965 See the pkg-config man page for more details." "$LINENO" 5
13966 elif test $pkg_failed = untried; then
13967         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13968 $as_echo "no" >&6; }
13969         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13971 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13972 is in your PATH or set the PKG_CONFIG environment variable to the full
13973 path to pkg-config.
13974
13975 Alternatively, you may set the environment variables GI_CFLAGS
13976 and GI_LIBS to avoid the need to call pkg-config.
13977 See the pkg-config man page for more details.
13978
13979 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13980 See \`config.log' for more details" "$LINENO" 5; }
13981 else
13982         GI_CFLAGS=$pkg_cv_GI_CFLAGS
13983         GI_LIBS=$pkg_cv_GI_LIBS
13984         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13985 $as_echo "yes" >&6; }
13986
13987 fi
13988
13989 GI_DATADIR=$($PKG_CONFIG --variable=gidatadir gobject-introspection-1.0)
13990
13991
13992 if test "$enable_cairo" != no; then
13993
13994 pkg_failed=no
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
13996 $as_echo_n "checking for CAIRO... " >&6; }
13997
13998 if test -n "$CAIRO_CFLAGS"; then
13999     pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
14000  elif test -n "$PKG_CONFIG"; then
14001     if test -n "$PKG_CONFIG" && \
14002     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
14003   ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
14004   ac_status=$?
14005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14006   test $ac_status = 0; }; then
14007   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo cairo-gobject" 2>/dev/null`
14008                       test "x$?" != "x0" && pkg_failed=yes
14009 else
14010   pkg_failed=yes
14011 fi
14012  else
14013     pkg_failed=untried
14014 fi
14015 if test -n "$CAIRO_LIBS"; then
14016     pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
14017  elif test -n "$PKG_CONFIG"; then
14018     if test -n "$PKG_CONFIG" && \
14019     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
14020   ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
14021   ac_status=$?
14022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14023   test $ac_status = 0; }; then
14024   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo cairo-gobject" 2>/dev/null`
14025                       test "x$?" != "x0" && pkg_failed=yes
14026 else
14027   pkg_failed=yes
14028 fi
14029  else
14030     pkg_failed=untried
14031 fi
14032
14033
14034
14035 if test $pkg_failed = yes; then
14036         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14037 $as_echo "no" >&6; }
14038
14039 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14040         _pkg_short_errors_supported=yes
14041 else
14042         _pkg_short_errors_supported=no
14043 fi
14044         if test $_pkg_short_errors_supported = yes; then
14045                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14046         else
14047                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14048         fi
14049         # Put the nasty error message in config.log where it belongs
14050         echo "$CAIRO_PKG_ERRORS" >&5
14051
14052         as_fn_error $? "Package requirements (cairo cairo-gobject) were not met:
14053
14054 $CAIRO_PKG_ERRORS
14055
14056 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14057 installed software in a non-standard prefix.
14058
14059 Alternatively, you may set the environment variables CAIRO_CFLAGS
14060 and CAIRO_LIBS to avoid the need to call pkg-config.
14061 See the pkg-config man page for more details." "$LINENO" 5
14062 elif test $pkg_failed = untried; then
14063         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14064 $as_echo "no" >&6; }
14065         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14067 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14068 is in your PATH or set the PKG_CONFIG environment variable to the full
14069 path to pkg-config.
14070
14071 Alternatively, you may set the environment variables CAIRO_CFLAGS
14072 and CAIRO_LIBS to avoid the need to call pkg-config.
14073 See the pkg-config man page for more details.
14074
14075 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14076 See \`config.log' for more details" "$LINENO" 5; }
14077 else
14078         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
14079         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
14080         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14081 $as_echo "yes" >&6; }
14082
14083 fi
14084
14085     if test $build_py3k = true; then
14086
14087 pkg_failed=no
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14089 $as_echo_n "checking for PYCAIRO... " >&6; }
14090
14091 if test -n "$PYCAIRO_CFLAGS"; then
14092     pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14093  elif test -n "$PKG_CONFIG"; then
14094     if test -n "$PKG_CONFIG" && \
14095     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14096         \""; } >&5
14097   ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14098         ") 2>&5
14099   ac_status=$?
14100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14101   test $ac_status = 0; }; then
14102   pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "py3cairo >= 1.10.0
14103         " 2>/dev/null`
14104                       test "x$?" != "x0" && pkg_failed=yes
14105 else
14106   pkg_failed=yes
14107 fi
14108  else
14109     pkg_failed=untried
14110 fi
14111 if test -n "$PYCAIRO_LIBS"; then
14112     pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14113  elif test -n "$PKG_CONFIG"; then
14114     if test -n "$PKG_CONFIG" && \
14115     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14116         \""; } >&5
14117   ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14118         ") 2>&5
14119   ac_status=$?
14120   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14121   test $ac_status = 0; }; then
14122   pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "py3cairo >= 1.10.0
14123         " 2>/dev/null`
14124                       test "x$?" != "x0" && pkg_failed=yes
14125 else
14126   pkg_failed=yes
14127 fi
14128  else
14129     pkg_failed=untried
14130 fi
14131
14132
14133
14134 if test $pkg_failed = yes; then
14135         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14136 $as_echo "no" >&6; }
14137
14138 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14139         _pkg_short_errors_supported=yes
14140 else
14141         _pkg_short_errors_supported=no
14142 fi
14143         if test $_pkg_short_errors_supported = yes; then
14144                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "py3cairo >= 1.10.0
14145         " 2>&1`
14146         else
14147                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "py3cairo >= 1.10.0
14148         " 2>&1`
14149         fi
14150         # Put the nasty error message in config.log where it belongs
14151         echo "$PYCAIRO_PKG_ERRORS" >&5
14152
14153         as_fn_error $? "Package requirements (py3cairo >= 1.10.0
14154         ) were not met:
14155
14156 $PYCAIRO_PKG_ERRORS
14157
14158 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14159 installed software in a non-standard prefix.
14160
14161 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14162 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14163 See the pkg-config man page for more details." "$LINENO" 5
14164 elif test $pkg_failed = untried; then
14165         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14166 $as_echo "no" >&6; }
14167         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14169 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14170 is in your PATH or set the PKG_CONFIG environment variable to the full
14171 path to pkg-config.
14172
14173 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14174 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14175 See the pkg-config man page for more details.
14176
14177 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14178 See \`config.log' for more details" "$LINENO" 5; }
14179 else
14180         PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14181         PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14182         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14183 $as_echo "yes" >&6; }
14184
14185 fi
14186     else
14187
14188 pkg_failed=no
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14190 $as_echo_n "checking for PYCAIRO... " >&6; }
14191
14192 if test -n "$PYCAIRO_CFLAGS"; then
14193     pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14194  elif test -n "$PKG_CONFIG"; then
14195     if test -n "$PKG_CONFIG" && \
14196     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14197         \""; } >&5
14198   ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14199         ") 2>&5
14200   ac_status=$?
14201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14202   test $ac_status = 0; }; then
14203   pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "pycairo >= 1.2.0
14204         " 2>/dev/null`
14205                       test "x$?" != "x0" && pkg_failed=yes
14206 else
14207   pkg_failed=yes
14208 fi
14209  else
14210     pkg_failed=untried
14211 fi
14212 if test -n "$PYCAIRO_LIBS"; then
14213     pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14214  elif test -n "$PKG_CONFIG"; then
14215     if test -n "$PKG_CONFIG" && \
14216     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14217         \""; } >&5
14218   ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14219         ") 2>&5
14220   ac_status=$?
14221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14222   test $ac_status = 0; }; then
14223   pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "pycairo >= 1.2.0
14224         " 2>/dev/null`
14225                       test "x$?" != "x0" && pkg_failed=yes
14226 else
14227   pkg_failed=yes
14228 fi
14229  else
14230     pkg_failed=untried
14231 fi
14232
14233
14234
14235 if test $pkg_failed = yes; then
14236         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14237 $as_echo "no" >&6; }
14238
14239 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14240         _pkg_short_errors_supported=yes
14241 else
14242         _pkg_short_errors_supported=no
14243 fi
14244         if test $_pkg_short_errors_supported = yes; then
14245                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pycairo >= 1.2.0
14246         " 2>&1`
14247         else
14248                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pycairo >= 1.2.0
14249         " 2>&1`
14250         fi
14251         # Put the nasty error message in config.log where it belongs
14252         echo "$PYCAIRO_PKG_ERRORS" >&5
14253
14254         as_fn_error $? "Package requirements (pycairo >= 1.2.0
14255         ) were not met:
14256
14257 $PYCAIRO_PKG_ERRORS
14258
14259 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14260 installed software in a non-standard prefix.
14261
14262 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14263 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14264 See the pkg-config man page for more details." "$LINENO" 5
14265 elif test $pkg_failed = untried; then
14266         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14267 $as_echo "no" >&6; }
14268         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14270 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14271 is in your PATH or set the PKG_CONFIG environment variable to the full
14272 path to pkg-config.
14273
14274 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14275 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14276 See the pkg-config man page for more details.
14277
14278 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14279 See \`config.log' for more details" "$LINENO" 5; }
14280 else
14281         PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14282         PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14283         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14284 $as_echo "yes" >&6; }
14285
14286 fi
14287     fi
14288 fi
14289  if test "$enable_cairo" = "yes"; then
14290   ENABLE_CAIRO_TRUE=
14291   ENABLE_CAIRO_FALSE='#'
14292 else
14293   ENABLE_CAIRO_TRUE='#'
14294   ENABLE_CAIRO_FALSE=
14295 fi
14296
14297
14298
14299 # Check whether --with-common was given.
14300 if test "${with_common+set}" = set; then :
14301   withval=$with_common; with_common=$enableval
14302 else
14303   with_common=yes
14304 fi
14305
14306  if test "$with_common" = "yes"; then
14307   WITH_COMMON_TRUE=
14308   WITH_COMMON_FALSE='#'
14309 else
14310   WITH_COMMON_TRUE='#'
14311   WITH_COMMON_FALSE=
14312 fi
14313
14314
14315 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14316 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14317
14318
14319
14320
14321 # compiler warnings, errors, required cflags, and code coverage support
14322
14323
14324     # Check whether --enable-compile-warnings was given.
14325 if test "${enable_compile_warnings+set}" = set; then :
14326   enableval=$enable_compile_warnings;
14327 else
14328   enable_compile_warnings="maximum"
14329 fi
14330
14331
14332     if test "x$GCC" != xyes; then
14333         enable_compile_warnings=no
14334     fi
14335
14336     warning_flags=
14337     realsave_CFLAGS="$CFLAGS"
14338
14339             base_warn_flags=" \
14340         -Wall \
14341         -Wstrict-prototypes \
14342         -Wnested-externs \
14343     "
14344
14345                     base_error_flags=" \
14346         -Werror=missing-prototypes \
14347         -Werror=implicit-function-declaration \
14348         -Werror=pointer-arith \
14349         -Werror=init-self \
14350         -Werror=format-security \
14351         -Werror=format=2 \
14352         -Werror=missing-include-dirs \
14353     "
14354
14355                 additional_flags=""
14356
14357     case "$enable_compile_warnings" in
14358     no)
14359         warning_flags="-w"
14360         ;;
14361     minimum)
14362         warning_flags="-Wall"
14363         ;;
14364     yes|maximum|error)
14365         warning_flags="$base_warn_flags $base_error_flags $additional_flags"
14366         ;;
14367     *)
14368         as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5
14369         ;;
14370     esac
14371
14372     if test "$enable_compile_warnings" = "error" ; then
14373         warning_flags="$warning_flags -Werror"
14374     fi
14375
14376         for option in $warning_flags; do
14377         save_CFLAGS="$CFLAGS"
14378         CFLAGS="$CFLAGS $option"
14379         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5
14380 $as_echo_n "checking whether gcc understands $option... " >&6; }
14381         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14382 /* end confdefs.h.  */
14383
14384 int
14385 main ()
14386 {
14387
14388   ;
14389   return 0;
14390 }
14391 _ACEOF
14392 if ac_fn_c_try_compile "$LINENO"; then :
14393   has_option=yes
14394 else
14395   has_option=no
14396 fi
14397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14398         CFLAGS="$save_CFLAGS"
14399         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
14400 $as_echo "$has_option" >&6; }
14401         if test $has_option = yes; then
14402             tested_warning_flags="$tested_warning_flags $option"
14403         fi
14404         unset has_option
14405         unset save_CFLAGS
14406     done
14407     unset option
14408     CFLAGS="$realsave_CFLAGS"
14409     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
14410 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
14411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tested_warning_flags" >&5
14412 $as_echo "$tested_warning_flags" >&6; }
14413
14414     # Check whether --enable-iso-c was given.
14415 if test "${enable_iso_c+set}" = set; then :
14416   enableval=$enable_iso_c;
14417 else
14418   enable_iso_c=no
14419 fi
14420
14421
14422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what language compliance flags to pass to the C compiler" >&5
14423 $as_echo_n "checking what language compliance flags to pass to the C compiler... " >&6; }
14424     complCFLAGS=
14425     if test "x$enable_iso_c" != "xno"; then
14426         if test "x$GCC" = "xyes"; then
14427         case " $CFLAGS " in
14428             *\ \        -ansi\ \        *) ;;
14429             *) complCFLAGS="$complCFLAGS -ansi" ;;
14430         esac
14431         case " $CFLAGS " in
14432             *\ \        -pedantic\ \    *) ;;
14433             *) complCFLAGS="$complCFLAGS -pedantic" ;;
14434         esac
14435         fi
14436     fi
14437     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $complCFLAGS" >&5
14438 $as_echo "$complCFLAGS" >&6; }
14439
14440     WARN_CFLAGS="$tested_warning_flags $complCFLAGS"
14441
14442
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gnome code coverage support" >&5
14444 $as_echo_n "checking for Gnome code coverage support... " >&6; }
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14446 $as_echo "yes" >&6; }
14447
14448
14449
14450
14451         # allow to override gcov location
14452
14453 # Check whether --with-gcov was given.
14454 if test "${with_gcov+set}" = set; then :
14455   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
14456 else
14457   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
14458 fi
14459
14460
14461         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
14462 $as_echo_n "checking whether to build with code coverage support... " >&6; }
14463         # Check whether --enable-code-coverage was given.
14464 if test "${enable_code_coverage+set}" = set; then :
14465   enableval=$enable_code_coverage;
14466 else
14467   enable_code_coverage=no
14468 fi
14469
14470
14471          if test x$enable_code_coverage = xyes; then
14472   CODE_COVERAGE_ENABLED_TRUE=
14473   CODE_COVERAGE_ENABLED_FALSE='#'
14474 else
14475   CODE_COVERAGE_ENABLED_TRUE='#'
14476   CODE_COVERAGE_ENABLED_FALSE=
14477 fi
14478
14479         CODE_COVERAGE_ENABLED=$enable_code_coverage
14480
14481         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
14482 $as_echo "$enable_code_coverage" >&6; }
14483
14484         if  test "$enable_code_coverage" = "yes" ; then :
14485
14486                 # check for gcov
14487                 if test -n "$ac_tool_prefix"; then
14488   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
14489 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14491 $as_echo_n "checking for $ac_word... " >&6; }
14492 if ${ac_cv_prog_GCOV+:} false; then :
14493   $as_echo_n "(cached) " >&6
14494 else
14495   if test -n "$GCOV"; then
14496   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
14497 else
14498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14499 for as_dir in $PATH
14500 do
14501   IFS=$as_save_IFS
14502   test -z "$as_dir" && as_dir=.
14503     for ac_exec_ext in '' $ac_executable_extensions; do
14504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14505     ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
14506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14507     break 2
14508   fi
14509 done
14510   done
14511 IFS=$as_save_IFS
14512
14513 fi
14514 fi
14515 GCOV=$ac_cv_prog_GCOV
14516 if test -n "$GCOV"; then
14517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
14518 $as_echo "$GCOV" >&6; }
14519 else
14520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14521 $as_echo "no" >&6; }
14522 fi
14523
14524
14525 fi
14526 if test -z "$ac_cv_prog_GCOV"; then
14527   ac_ct_GCOV=$GCOV
14528   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
14529 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14531 $as_echo_n "checking for $ac_word... " >&6; }
14532 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
14533   $as_echo_n "(cached) " >&6
14534 else
14535   if test -n "$ac_ct_GCOV"; then
14536   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
14537 else
14538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14539 for as_dir in $PATH
14540 do
14541   IFS=$as_save_IFS
14542   test -z "$as_dir" && as_dir=.
14543     for ac_exec_ext in '' $ac_executable_extensions; do
14544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14545     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
14546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14547     break 2
14548   fi
14549 done
14550   done
14551 IFS=$as_save_IFS
14552
14553 fi
14554 fi
14555 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
14556 if test -n "$ac_ct_GCOV"; then
14557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
14558 $as_echo "$ac_ct_GCOV" >&6; }
14559 else
14560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14561 $as_echo "no" >&6; }
14562 fi
14563
14564   if test "x$ac_ct_GCOV" = x; then
14565     GCOV=":"
14566   else
14567     case $cross_compiling:$ac_tool_warned in
14568 yes:)
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14571 ac_tool_warned=yes ;;
14572 esac
14573     GCOV=$ac_ct_GCOV
14574   fi
14575 else
14576   GCOV="$ac_cv_prog_GCOV"
14577 fi
14578
14579                 if test "X$GCOV" = "X:"; then :
14580   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
14581 fi
14582
14583
14584                                 if  test "$GCC" = "no" ; then :
14585
14586                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
14587
14588 fi
14589
14590                 # List of supported lcov versions.
14591                 lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11"
14592
14593                 # Extract the first word of "lcov", so it can be a program name with args.
14594 set dummy lcov; ac_word=$2
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14596 $as_echo_n "checking for $ac_word... " >&6; }
14597 if ${ac_cv_prog_LCOV+:} false; then :
14598   $as_echo_n "(cached) " >&6
14599 else
14600   if test -n "$LCOV"; then
14601   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
14602 else
14603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14604 for as_dir in $PATH
14605 do
14606   IFS=$as_save_IFS
14607   test -z "$as_dir" && as_dir=.
14608     for ac_exec_ext in '' $ac_executable_extensions; do
14609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14610     ac_cv_prog_LCOV="lcov"
14611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14612     break 2
14613   fi
14614 done
14615   done
14616 IFS=$as_save_IFS
14617
14618 fi
14619 fi
14620 LCOV=$ac_cv_prog_LCOV
14621 if test -n "$LCOV"; then
14622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
14623 $as_echo "$LCOV" >&6; }
14624 else
14625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14626 $as_echo "no" >&6; }
14627 fi
14628
14629
14630                 # Extract the first word of "genhtml", so it can be a program name with args.
14631 set dummy genhtml; ac_word=$2
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14633 $as_echo_n "checking for $ac_word... " >&6; }
14634 if ${ac_cv_prog_GENHTML+:} false; then :
14635   $as_echo_n "(cached) " >&6
14636 else
14637   if test -n "$GENHTML"; then
14638   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
14639 else
14640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14641 for as_dir in $PATH
14642 do
14643   IFS=$as_save_IFS
14644   test -z "$as_dir" && as_dir=.
14645     for ac_exec_ext in '' $ac_executable_extensions; do
14646   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14647     ac_cv_prog_GENHTML="genhtml"
14648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14649     break 2
14650   fi
14651 done
14652   done
14653 IFS=$as_save_IFS
14654
14655 fi
14656 fi
14657 GENHTML=$ac_cv_prog_GENHTML
14658 if test -n "$GENHTML"; then
14659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
14660 $as_echo "$GENHTML" >&6; }
14661 else
14662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14663 $as_echo "no" >&6; }
14664 fi
14665
14666
14667
14668                 if  test "$LCOV" ; then :
14669
14670                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
14671 $as_echo_n "checking for lcov version... " >&6; }
14672 if ${ax_cv_lcov_version+:} false; then :
14673   $as_echo_n "(cached) " >&6
14674 else
14675
14676                                 ax_cv_lcov_version=invalid
14677                                 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
14678                                 for lcov_check_version in $lcov_version_list; do
14679                                         if test "$lcov_version" = "$lcov_check_version"; then
14680                                                 ax_cv_lcov_version="$lcov_check_version (ok)"
14681                                         fi
14682                                 done
14683
14684 fi
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lcov_version" >&5
14686 $as_echo "$ax_cv_lcov_version" >&6; }
14687
14688 else
14689
14690                         lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
14691                         as_fn_error $? "$lcov_msg" "$LINENO" 5
14692
14693 fi
14694
14695                 case $ax_cv_lcov_version in
14696                         ""|invalid)
14697                                 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
14698                                 as_fn_error $? "$lcov_msg" "$LINENO" 5
14699                                 LCOV="exit 0;"
14700                         ;;
14701                 esac
14702
14703                 if  test -z "$GENHTML" ; then :
14704
14705                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
14706
14707 fi
14708
14709                                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
14710                 CODE_COVERAGE_LDFLAGS="-lgcov"
14711
14712
14713
14714
14715 fi
14716
14717 CODE_COVERAGE_RULES='
14718 # Code coverage
14719 #
14720 # Optional:
14721 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
14722 #    (Default: $(top_builddir))
14723 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
14724 #    by lcov for code coverage. (Default:
14725 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
14726 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
14727 #    reports to be created. (Default:
14728 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
14729 #  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
14730 #  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the lcov instance.
14731 #    (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
14732 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
14733 #    (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
14734 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
14735 #    instance. (Default: empty)
14736 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
14737 #
14738 # The generated report will be titled using the $(PACKAGE_NAME) and
14739 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
14740 # use the git-version-gen script, available online.
14741
14742 # Optional variables
14743 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
14744 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
14745 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
14746 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
14747 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
14748 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
14749 CODE_COVERAGE_GENHTML_OPTIONS ?=
14750 CODE_COVERAGE_IGNORE_PATTERN ?=
14751
14752 code_coverage_quiet = $(code_coverage_quiet_$(V))
14753 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
14754 code_coverage_quiet_0 = --quiet
14755
14756 # Use recursive makes in order to ignore errors during check
14757 check-code-coverage:
14758 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14759         -$(MAKE) $(AM_MAKEFLAGS) -k check
14760         $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
14761 else
14762         @echo "Need to reconfigure with --enable-code-coverage"
14763 endif
14764
14765 # Capture code coverage data
14766 code-coverage-capture: code-coverage-capture-hook
14767 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14768         $(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)
14769         $(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)"
14770         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
14771         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)
14772         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
14773 else
14774         @echo "Need to reconfigure with --enable-code-coverage"
14775 endif
14776
14777 # Hook rule executed before code-coverage-capture, overridable by the user
14778 code-coverage-capture-hook:
14779
14780 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14781 clean: code-coverage-clean
14782 code-coverage-clean:
14783         -$(LCOV) --directory $(top_builddir) -z
14784         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14785         -find . -name "*.gcda" -o -name "*.gcov" -delete
14786 endif
14787
14788 GITIGNOREFILES ?=
14789 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14790
14791 DISTCHECK_CONFIGURE_FLAGS ?=
14792 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
14793
14794 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
14795 '
14796
14797
14798
14799
14800         GNOME_CODE_COVERAGE_RULES=$CODE_COVERAGE_RULES
14801
14802
14803
14804
14805
14806 if test "x$GCC" = "xyes"; then
14807
14808 case " $CFLAGS " in
14809 *[\     \ ]-Wall[\      \ ]*)
14810   ;;
14811 *)
14812   save_CFLAGS="$CFLAGS"
14813   CFLAGS="$CFLAGS -Wall"
14814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Wall" >&5
14815 $as_echo_n "checking whether $CC understands -Wall... " >&6; }
14816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14817 /* end confdefs.h.  */
14818
14819 int
14820 main ()
14821 {
14822
14823   ;
14824   return 0;
14825 }
14826 _ACEOF
14827 if ac_fn_c_try_compile "$LINENO"; then :
14828   jh_has_option=yes
14829 else
14830   jh_has_option=no
14831 fi
14832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14834 $as_echo "$jh_has_option" >&6; }
14835   if test $jh_has_option = no; then
14836     CFLAGS="$save_CFLAGS"
14837   fi
14838   ;;
14839 esac
14840
14841 case " $CFLAGS " in
14842 *[\     \ ]-Werror=unused-variable[\    \ ]*)
14843   ;;
14844 *)
14845   save_CFLAGS="$CFLAGS"
14846   CFLAGS="$CFLAGS -Werror=unused-variable"
14847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=unused-variable" >&5
14848 $as_echo_n "checking whether $CC understands -Werror=unused-variable... " >&6; }
14849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14850 /* end confdefs.h.  */
14851
14852 int
14853 main ()
14854 {
14855
14856   ;
14857   return 0;
14858 }
14859 _ACEOF
14860 if ac_fn_c_try_compile "$LINENO"; then :
14861   jh_has_option=yes
14862 else
14863   jh_has_option=no
14864 fi
14865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14867 $as_echo "$jh_has_option" >&6; }
14868   if test $jh_has_option = no; then
14869     CFLAGS="$save_CFLAGS"
14870   fi
14871   ;;
14872 esac
14873
14874 case " $CFLAGS " in
14875 *[\     \ ]-fno-strict-aliasing[\       \ ]*)
14876   ;;
14877 *)
14878   save_CFLAGS="$CFLAGS"
14879   CFLAGS="$CFLAGS -fno-strict-aliasing"
14880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -fno-strict-aliasing" >&5
14881 $as_echo_n "checking whether $CC understands -fno-strict-aliasing... " >&6; }
14882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14883 /* end confdefs.h.  */
14884
14885 int
14886 main ()
14887 {
14888
14889   ;
14890   return 0;
14891 }
14892 _ACEOF
14893 if ac_fn_c_try_compile "$LINENO"; then :
14894   jh_has_option=yes
14895 else
14896   jh_has_option=no
14897 fi
14898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14900 $as_echo "$jh_has_option" >&6; }
14901   if test $jh_has_option = no; then
14902     CFLAGS="$save_CFLAGS"
14903   fi
14904   ;;
14905 esac
14906
14907 case " $CFLAGS " in
14908 *[\     \ ]-Werror=declaration-after-statement[\        \ ]*)
14909   ;;
14910 *)
14911   save_CFLAGS="$CFLAGS"
14912   CFLAGS="$CFLAGS -Werror=declaration-after-statement"
14913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=declaration-after-statement" >&5
14914 $as_echo_n "checking whether $CC understands -Werror=declaration-after-statement... " >&6; }
14915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14916 /* end confdefs.h.  */
14917
14918 int
14919 main ()
14920 {
14921
14922   ;
14923   return 0;
14924 }
14925 _ACEOF
14926 if ac_fn_c_try_compile "$LINENO"; then :
14927   jh_has_option=yes
14928 else
14929   jh_has_option=no
14930 fi
14931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14933 $as_echo "$jh_has_option" >&6; }
14934   if test $jh_has_option = no; then
14935     CFLAGS="$save_CFLAGS"
14936   fi
14937   ;;
14938 esac
14939
14940   case $host_os in
14941   solaris*)
14942     ;;
14943   *)
14944
14945 case " $CFLAGS " in
14946 *[\     \ ]-std=c90[\   \ ]*)
14947   ;;
14948 *)
14949   save_CFLAGS="$CFLAGS"
14950   CFLAGS="$CFLAGS -std=c90"
14951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -std=c90" >&5
14952 $as_echo_n "checking whether $CC understands -std=c90... " >&6; }
14953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14954 /* end confdefs.h.  */
14955
14956 int
14957 main ()
14958 {
14959
14960   ;
14961   return 0;
14962 }
14963 _ACEOF
14964 if ac_fn_c_try_compile "$LINENO"; then :
14965   jh_has_option=yes
14966 else
14967   jh_has_option=no
14968 fi
14969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14971 $as_echo "$jh_has_option" >&6; }
14972   if test $jh_has_option = no; then
14973     CFLAGS="$save_CFLAGS"
14974   fi
14975   ;;
14976 esac
14977     ;;
14978   esac
14979
14980 fi
14981
14982 CFLAGS="$CFLAGS $WARN_CFLAGS $CODE_COVERAGE_CFLAGS"
14983 LDFLAGS="$LDFLAGS $CODE_COVERAGE_CFLAGS"
14984
14985 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"
14986
14987 cat >confcache <<\_ACEOF
14988 # This file is a shell script that caches the results of configure
14989 # tests run on this system so they can be shared between configure
14990 # scripts and configure runs, see configure's option --config-cache.
14991 # It is not useful on other systems.  If it contains results you don't
14992 # want to keep, you may remove or edit it.
14993 #
14994 # config.status only pays attention to the cache file if you give it
14995 # the --recheck option to rerun configure.
14996 #
14997 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14998 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14999 # following values.
15000
15001 _ACEOF
15002
15003 # The following way of writing the cache mishandles newlines in values,
15004 # but we know of no workaround that is simple, portable, and efficient.
15005 # So, we kill variables containing newlines.
15006 # Ultrix sh set writes to stderr and can't be redirected directly,
15007 # and sets the high bit in the cache file unless we assign to the vars.
15008 (
15009   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15010     eval ac_val=\$$ac_var
15011     case $ac_val in #(
15012     *${as_nl}*)
15013       case $ac_var in #(
15014       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15015 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15016       esac
15017       case $ac_var in #(
15018       _ | IFS | as_nl) ;; #(
15019       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15020       *) { eval $ac_var=; unset $ac_var;} ;;
15021       esac ;;
15022     esac
15023   done
15024
15025   (set) 2>&1 |
15026     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15027     *${as_nl}ac_space=\ *)
15028       # `set' does not quote correctly, so add quotes: double-quote
15029       # substitution turns \\\\ into \\, and sed turns \\ into \.
15030       sed -n \
15031         "s/'/'\\\\''/g;
15032           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15033       ;; #(
15034     *)
15035       # `set' quotes correctly as required by POSIX, so do not add quotes.
15036       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15037       ;;
15038     esac |
15039     sort
15040 ) |
15041   sed '
15042      /^ac_cv_env_/b end
15043      t clear
15044      :clear
15045      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15046      t end
15047      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15048      :end' >>confcache
15049 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15050   if test -w "$cache_file"; then
15051     if test "x$cache_file" != "x/dev/null"; then
15052       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15053 $as_echo "$as_me: updating cache $cache_file" >&6;}
15054       if test ! -f "$cache_file" || test -h "$cache_file"; then
15055         cat confcache >"$cache_file"
15056       else
15057         case $cache_file in #(
15058         */* | ?:*)
15059           mv -f confcache "$cache_file"$$ &&
15060           mv -f "$cache_file"$$ "$cache_file" ;; #(
15061         *)
15062           mv -f confcache "$cache_file" ;;
15063         esac
15064       fi
15065     fi
15066   else
15067     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15068 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15069   fi
15070 fi
15071 rm -f confcache
15072
15073 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15074 # Let make expand exec_prefix.
15075 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15076
15077 DEFS=-DHAVE_CONFIG_H
15078
15079 ac_libobjs=
15080 ac_ltlibobjs=
15081 U=
15082 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15083   # 1. Remove the extension, and $U if already installed.
15084   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15085   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15086   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15087   #    will be set to the directory where LIBOBJS objects are built.
15088   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15089   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15090 done
15091 LIBOBJS=$ac_libobjs
15092
15093 LTLIBOBJS=$ac_ltlibobjs
15094
15095
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15097 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15098    if test -n "$am_sleep_pid"; then
15099      # Hide warnings about reused PIDs.
15100      wait $am_sleep_pid 2>/dev/null
15101    fi
15102    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15103 $as_echo "done" >&6; }
15104  if test -n "$EXEEXT"; then
15105   am__EXEEXT_TRUE=
15106   am__EXEEXT_FALSE='#'
15107 else
15108   am__EXEEXT_TRUE='#'
15109   am__EXEEXT_FALSE=
15110 fi
15111
15112 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
15113   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
15114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15115 fi
15116 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15117   as_fn_error $? "conditional \"AMDEP\" was never defined.
15118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15119 fi
15120 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15121   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15123 fi
15124 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15125   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15127 fi
15128 if test -z "${ENABLE_CAIRO_TRUE}" && test -z "${ENABLE_CAIRO_FALSE}"; then
15129   as_fn_error $? "conditional \"ENABLE_CAIRO\" was never defined.
15130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15131 fi
15132 if test -z "${WITH_COMMON_TRUE}" && test -z "${WITH_COMMON_FALSE}"; then
15133   as_fn_error $? "conditional \"WITH_COMMON\" was never defined.
15134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15135 fi
15136 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
15137   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
15138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15139 fi
15140
15141 : "${CONFIG_STATUS=./config.status}"
15142 ac_write_fail=0
15143 ac_clean_files_save=$ac_clean_files
15144 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15146 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15147 as_write_fail=0
15148 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15149 #! $SHELL
15150 # Generated by $as_me.
15151 # Run this file to recreate the current configuration.
15152 # Compiler output produced by configure, useful for debugging
15153 # configure, is in config.log if it exists.
15154
15155 debug=false
15156 ac_cs_recheck=false
15157 ac_cs_silent=false
15158
15159 SHELL=\${CONFIG_SHELL-$SHELL}
15160 export SHELL
15161 _ASEOF
15162 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15163 ## -------------------- ##
15164 ## M4sh Initialization. ##
15165 ## -------------------- ##
15166
15167 # Be more Bourne compatible
15168 DUALCASE=1; export DUALCASE # for MKS sh
15169 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15170   emulate sh
15171   NULLCMD=:
15172   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15173   # is contrary to our usage.  Disable this feature.
15174   alias -g '${1+"$@"}'='"$@"'
15175   setopt NO_GLOB_SUBST
15176 else
15177   case `(set -o) 2>/dev/null` in #(
15178   *posix*) :
15179     set -o posix ;; #(
15180   *) :
15181      ;;
15182 esac
15183 fi
15184
15185
15186 as_nl='
15187 '
15188 export as_nl
15189 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15190 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15191 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15192 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15193 # Prefer a ksh shell builtin over an external printf program on Solaris,
15194 # but without wasting forks for bash or zsh.
15195 if test -z "$BASH_VERSION$ZSH_VERSION" \
15196     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15197   as_echo='print -r --'
15198   as_echo_n='print -rn --'
15199 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15200   as_echo='printf %s\n'
15201   as_echo_n='printf %s'
15202 else
15203   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15204     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15205     as_echo_n='/usr/ucb/echo -n'
15206   else
15207     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15208     as_echo_n_body='eval
15209       arg=$1;
15210       case $arg in #(
15211       *"$as_nl"*)
15212         expr "X$arg" : "X\\(.*\\)$as_nl";
15213         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15214       esac;
15215       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15216     '
15217     export as_echo_n_body
15218     as_echo_n='sh -c $as_echo_n_body as_echo'
15219   fi
15220   export as_echo_body
15221   as_echo='sh -c $as_echo_body as_echo'
15222 fi
15223
15224 # The user is always right.
15225 if test "${PATH_SEPARATOR+set}" != set; then
15226   PATH_SEPARATOR=:
15227   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15228     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15229       PATH_SEPARATOR=';'
15230   }
15231 fi
15232
15233
15234 # IFS
15235 # We need space, tab and new line, in precisely that order.  Quoting is
15236 # there to prevent editors from complaining about space-tab.
15237 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15238 # splitting by setting IFS to empty value.)
15239 IFS=" ""        $as_nl"
15240
15241 # Find who we are.  Look in the path if we contain no directory separator.
15242 as_myself=
15243 case $0 in #((
15244   *[\\/]* ) as_myself=$0 ;;
15245   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15246 for as_dir in $PATH
15247 do
15248   IFS=$as_save_IFS
15249   test -z "$as_dir" && as_dir=.
15250     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15251   done
15252 IFS=$as_save_IFS
15253
15254      ;;
15255 esac
15256 # We did not find ourselves, most probably we were run as `sh COMMAND'
15257 # in which case we are not to be found in the path.
15258 if test "x$as_myself" = x; then
15259   as_myself=$0
15260 fi
15261 if test ! -f "$as_myself"; then
15262   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15263   exit 1
15264 fi
15265
15266 # Unset variables that we do not need and which cause bugs (e.g. in
15267 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15268 # suppresses any "Segmentation fault" message there.  '((' could
15269 # trigger a bug in pdksh 5.2.14.
15270 for as_var in BASH_ENV ENV MAIL MAILPATH
15271 do eval test x\${$as_var+set} = xset \
15272   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15273 done
15274 PS1='$ '
15275 PS2='> '
15276 PS4='+ '
15277
15278 # NLS nuisances.
15279 LC_ALL=C
15280 export LC_ALL
15281 LANGUAGE=C
15282 export LANGUAGE
15283
15284 # CDPATH.
15285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15286
15287
15288 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15289 # ----------------------------------------
15290 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15291 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15292 # script with STATUS, using 1 if that was 0.
15293 as_fn_error ()
15294 {
15295   as_status=$1; test $as_status -eq 0 && as_status=1
15296   if test "$4"; then
15297     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15298     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15299   fi
15300   $as_echo "$as_me: error: $2" >&2
15301   as_fn_exit $as_status
15302 } # as_fn_error
15303
15304
15305 # as_fn_set_status STATUS
15306 # -----------------------
15307 # Set $? to STATUS, without forking.
15308 as_fn_set_status ()
15309 {
15310   return $1
15311 } # as_fn_set_status
15312
15313 # as_fn_exit STATUS
15314 # -----------------
15315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15316 as_fn_exit ()
15317 {
15318   set +e
15319   as_fn_set_status $1
15320   exit $1
15321 } # as_fn_exit
15322
15323 # as_fn_unset VAR
15324 # ---------------
15325 # Portably unset VAR.
15326 as_fn_unset ()
15327 {
15328   { eval $1=; unset $1;}
15329 }
15330 as_unset=as_fn_unset
15331 # as_fn_append VAR VALUE
15332 # ----------------------
15333 # Append the text in VALUE to the end of the definition contained in VAR. Take
15334 # advantage of any shell optimizations that allow amortized linear growth over
15335 # repeated appends, instead of the typical quadratic growth present in naive
15336 # implementations.
15337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15338   eval 'as_fn_append ()
15339   {
15340     eval $1+=\$2
15341   }'
15342 else
15343   as_fn_append ()
15344   {
15345     eval $1=\$$1\$2
15346   }
15347 fi # as_fn_append
15348
15349 # as_fn_arith ARG...
15350 # ------------------
15351 # Perform arithmetic evaluation on the ARGs, and store the result in the
15352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15353 # must be portable across $(()) and expr.
15354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15355   eval 'as_fn_arith ()
15356   {
15357     as_val=$(( $* ))
15358   }'
15359 else
15360   as_fn_arith ()
15361   {
15362     as_val=`expr "$@" || test $? -eq 1`
15363   }
15364 fi # as_fn_arith
15365
15366
15367 if expr a : '\(a\)' >/dev/null 2>&1 &&
15368    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15369   as_expr=expr
15370 else
15371   as_expr=false
15372 fi
15373
15374 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15375   as_basename=basename
15376 else
15377   as_basename=false
15378 fi
15379
15380 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15381   as_dirname=dirname
15382 else
15383   as_dirname=false
15384 fi
15385
15386 as_me=`$as_basename -- "$0" ||
15387 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15388          X"$0" : 'X\(//\)$' \| \
15389          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15390 $as_echo X/"$0" |
15391     sed '/^.*\/\([^/][^/]*\)\/*$/{
15392             s//\1/
15393             q
15394           }
15395           /^X\/\(\/\/\)$/{
15396             s//\1/
15397             q
15398           }
15399           /^X\/\(\/\).*/{
15400             s//\1/
15401             q
15402           }
15403           s/.*/./; q'`
15404
15405 # Avoid depending upon Character Ranges.
15406 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15407 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15408 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15409 as_cr_digits='0123456789'
15410 as_cr_alnum=$as_cr_Letters$as_cr_digits
15411
15412 ECHO_C= ECHO_N= ECHO_T=
15413 case `echo -n x` in #(((((
15414 -n*)
15415   case `echo 'xy\c'` in
15416   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15417   xy)  ECHO_C='\c';;
15418   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15419        ECHO_T=' ';;
15420   esac;;
15421 *)
15422   ECHO_N='-n';;
15423 esac
15424
15425 rm -f conf$$ conf$$.exe conf$$.file
15426 if test -d conf$$.dir; then
15427   rm -f conf$$.dir/conf$$.file
15428 else
15429   rm -f conf$$.dir
15430   mkdir conf$$.dir 2>/dev/null
15431 fi
15432 if (echo >conf$$.file) 2>/dev/null; then
15433   if ln -s conf$$.file conf$$ 2>/dev/null; then
15434     as_ln_s='ln -s'
15435     # ... but there are two gotchas:
15436     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15437     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15438     # In both cases, we have to default to `cp -pR'.
15439     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15440       as_ln_s='cp -pR'
15441   elif ln conf$$.file conf$$ 2>/dev/null; then
15442     as_ln_s=ln
15443   else
15444     as_ln_s='cp -pR'
15445   fi
15446 else
15447   as_ln_s='cp -pR'
15448 fi
15449 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15450 rmdir conf$$.dir 2>/dev/null
15451
15452
15453 # as_fn_mkdir_p
15454 # -------------
15455 # Create "$as_dir" as a directory, including parents if necessary.
15456 as_fn_mkdir_p ()
15457 {
15458
15459   case $as_dir in #(
15460   -*) as_dir=./$as_dir;;
15461   esac
15462   test -d "$as_dir" || eval $as_mkdir_p || {
15463     as_dirs=
15464     while :; do
15465       case $as_dir in #(
15466       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15467       *) as_qdir=$as_dir;;
15468       esac
15469       as_dirs="'$as_qdir' $as_dirs"
15470       as_dir=`$as_dirname -- "$as_dir" ||
15471 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15472          X"$as_dir" : 'X\(//\)[^/]' \| \
15473          X"$as_dir" : 'X\(//\)$' \| \
15474          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15475 $as_echo X"$as_dir" |
15476     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15477             s//\1/
15478             q
15479           }
15480           /^X\(\/\/\)[^/].*/{
15481             s//\1/
15482             q
15483           }
15484           /^X\(\/\/\)$/{
15485             s//\1/
15486             q
15487           }
15488           /^X\(\/\).*/{
15489             s//\1/
15490             q
15491           }
15492           s/.*/./; q'`
15493       test -d "$as_dir" && break
15494     done
15495     test -z "$as_dirs" || eval "mkdir $as_dirs"
15496   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15497
15498
15499 } # as_fn_mkdir_p
15500 if mkdir -p . 2>/dev/null; then
15501   as_mkdir_p='mkdir -p "$as_dir"'
15502 else
15503   test -d ./-p && rmdir ./-p
15504   as_mkdir_p=false
15505 fi
15506
15507
15508 # as_fn_executable_p FILE
15509 # -----------------------
15510 # Test if FILE is an executable regular file.
15511 as_fn_executable_p ()
15512 {
15513   test -f "$1" && test -x "$1"
15514 } # as_fn_executable_p
15515 as_test_x='test -x'
15516 as_executable_p=as_fn_executable_p
15517
15518 # Sed expression to map a string onto a valid CPP name.
15519 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15520
15521 # Sed expression to map a string onto a valid variable name.
15522 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15523
15524
15525 exec 6>&1
15526 ## ----------------------------------- ##
15527 ## Main body of $CONFIG_STATUS script. ##
15528 ## ----------------------------------- ##
15529 _ASEOF
15530 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15531
15532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15533 # Save the log message, to keep $0 and so on meaningful, and to
15534 # report actual input values of CONFIG_FILES etc. instead of their
15535 # values after options handling.
15536 ac_log="
15537 This file was extended by pygobject $as_me 3.18.0, which was
15538 generated by GNU Autoconf 2.69.  Invocation command line was
15539
15540   CONFIG_FILES    = $CONFIG_FILES
15541   CONFIG_HEADERS  = $CONFIG_HEADERS
15542   CONFIG_LINKS    = $CONFIG_LINKS
15543   CONFIG_COMMANDS = $CONFIG_COMMANDS
15544   $ $0 $@
15545
15546 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15547 "
15548
15549 _ACEOF
15550
15551 case $ac_config_files in *"
15552 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15553 esac
15554
15555 case $ac_config_headers in *"
15556 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15557 esac
15558
15559
15560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15561 # Files that config.status was made for.
15562 config_files="$ac_config_files"
15563 config_headers="$ac_config_headers"
15564 config_commands="$ac_config_commands"
15565
15566 _ACEOF
15567
15568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15569 ac_cs_usage="\
15570 \`$as_me' instantiates files and other configuration actions
15571 from templates according to the current configuration.  Unless the files
15572 and actions are specified as TAGs, all are instantiated by default.
15573
15574 Usage: $0 [OPTION]... [TAG]...
15575
15576   -h, --help       print this help, then exit
15577   -V, --version    print version number and configuration settings, then exit
15578       --config     print configuration, then exit
15579   -q, --quiet, --silent
15580                    do not print progress messages
15581   -d, --debug      don't remove temporary files
15582       --recheck    update $as_me by reconfiguring in the same conditions
15583       --file=FILE[:TEMPLATE]
15584                    instantiate the configuration file FILE
15585       --header=FILE[:TEMPLATE]
15586                    instantiate the configuration header FILE
15587
15588 Configuration files:
15589 $config_files
15590
15591 Configuration headers:
15592 $config_headers
15593
15594 Configuration commands:
15595 $config_commands
15596
15597 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
15598 pygobject home page: <https://wiki.gnome.org/Projects/PyGObject/>."
15599
15600 _ACEOF
15601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15602 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15603 ac_cs_version="\\
15604 pygobject config.status 3.18.0
15605 configured by $0, generated by GNU Autoconf 2.69,
15606   with options \\"\$ac_cs_config\\"
15607
15608 Copyright (C) 2012 Free Software Foundation, Inc.
15609 This config.status script is free software; the Free Software Foundation
15610 gives unlimited permission to copy, distribute and modify it."
15611
15612 ac_pwd='$ac_pwd'
15613 srcdir='$srcdir'
15614 INSTALL='$INSTALL'
15615 MKDIR_P='$MKDIR_P'
15616 AWK='$AWK'
15617 test -n "\$AWK" || AWK=awk
15618 _ACEOF
15619
15620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15621 # The default lists apply if the user does not specify any file.
15622 ac_need_defaults=:
15623 while test $# != 0
15624 do
15625   case $1 in
15626   --*=?*)
15627     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15628     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15629     ac_shift=:
15630     ;;
15631   --*=)
15632     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15633     ac_optarg=
15634     ac_shift=:
15635     ;;
15636   *)
15637     ac_option=$1
15638     ac_optarg=$2
15639     ac_shift=shift
15640     ;;
15641   esac
15642
15643   case $ac_option in
15644   # Handling of the options.
15645   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15646     ac_cs_recheck=: ;;
15647   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15648     $as_echo "$ac_cs_version"; exit ;;
15649   --config | --confi | --conf | --con | --co | --c )
15650     $as_echo "$ac_cs_config"; exit ;;
15651   --debug | --debu | --deb | --de | --d | -d )
15652     debug=: ;;
15653   --file | --fil | --fi | --f )
15654     $ac_shift
15655     case $ac_optarg in
15656     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15657     '') as_fn_error $? "missing file argument" ;;
15658     esac
15659     as_fn_append CONFIG_FILES " '$ac_optarg'"
15660     ac_need_defaults=false;;
15661   --header | --heade | --head | --hea )
15662     $ac_shift
15663     case $ac_optarg in
15664     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15665     esac
15666     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15667     ac_need_defaults=false;;
15668   --he | --h)
15669     # Conflict between --help and --header
15670     as_fn_error $? "ambiguous option: \`$1'
15671 Try \`$0 --help' for more information.";;
15672   --help | --hel | -h )
15673     $as_echo "$ac_cs_usage"; exit ;;
15674   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15675   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15676     ac_cs_silent=: ;;
15677
15678   # This is an error.
15679   -*) as_fn_error $? "unrecognized option: \`$1'
15680 Try \`$0 --help' for more information." ;;
15681
15682   *) as_fn_append ac_config_targets " $1"
15683      ac_need_defaults=false ;;
15684
15685   esac
15686   shift
15687 done
15688
15689 ac_configure_extra_args=
15690
15691 if $ac_cs_silent; then
15692   exec 6>/dev/null
15693   ac_configure_extra_args="$ac_configure_extra_args --silent"
15694 fi
15695
15696 _ACEOF
15697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15698 if \$ac_cs_recheck; then
15699   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15700   shift
15701   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15702   CONFIG_SHELL='$SHELL'
15703   export CONFIG_SHELL
15704   exec "\$@"
15705 fi
15706
15707 _ACEOF
15708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15709 exec 5>>config.log
15710 {
15711   echo
15712   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15713 ## Running $as_me. ##
15714 _ASBOX
15715   $as_echo "$ac_log"
15716 } >&5
15717
15718 _ACEOF
15719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15720 #
15721 # INIT-COMMANDS
15722 #
15723 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15724
15725
15726 # The HP-UX ksh and POSIX shell print the target directory to stdout
15727 # if CDPATH is set.
15728 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15729
15730 sed_quote_subst='$sed_quote_subst'
15731 double_quote_subst='$double_quote_subst'
15732 delay_variable_subst='$delay_variable_subst'
15733 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15734 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15735 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15736 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15737 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15738 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15739 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15740 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15741 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15742 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15743 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15744 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15745 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15746 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15747 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15748 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15749 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15750 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15751 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15752 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15753 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15754 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15755 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15756 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15757 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15758 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15759 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15760 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15761 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15762 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15763 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15764 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15765 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15766 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15767 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15768 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15769 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15770 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15771 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15772 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15773 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15774 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15775 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15776 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15777 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15778 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15779 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15780 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15781 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15782 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15783 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15784 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15785 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15786 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15787 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15788 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15789 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15790 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"`'
15791 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15792 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15793 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15794 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15795 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15796 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15797 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15798 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15799 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15800 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15801 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15802 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15803 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15804 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15805 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15806 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15807 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15808 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15809 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15810 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15811 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15812 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15813 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15814 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15815 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15816 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15817 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15818 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15819 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15820 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15821 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15822 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15823 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15824 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15825 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15826 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15827 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15828 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15829 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15830 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15831 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15832 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15833 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15834 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15835 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15836 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15837 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15838 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15839 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15840 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15841 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15842 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15843 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15844 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15845 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15846 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15847 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15848 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15849 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15850 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15851 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15852 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15853 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15854 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15855 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15856 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15857 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15858 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15859 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15860 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15861 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15862 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15863 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15864
15865 LTCC='$LTCC'
15866 LTCFLAGS='$LTCFLAGS'
15867 compiler='$compiler_DEFAULT'
15868
15869 # A function that is used when there is no print builtin or printf.
15870 func_fallback_echo ()
15871 {
15872   eval 'cat <<_LTECHO_EOF
15873 \$1
15874 _LTECHO_EOF'
15875 }
15876
15877 # Quote evaled strings.
15878 for var in AS \
15879 DLLTOOL \
15880 OBJDUMP \
15881 SHELL \
15882 ECHO \
15883 PATH_SEPARATOR \
15884 SED \
15885 GREP \
15886 EGREP \
15887 FGREP \
15888 LD \
15889 NM \
15890 LN_S \
15891 lt_SP2NL \
15892 lt_NL2SP \
15893 reload_flag \
15894 deplibs_check_method \
15895 file_magic_cmd \
15896 file_magic_glob \
15897 want_nocaseglob \
15898 sharedlib_from_linklib_cmd \
15899 AR \
15900 AR_FLAGS \
15901 archiver_list_spec \
15902 STRIP \
15903 RANLIB \
15904 CC \
15905 CFLAGS \
15906 compiler \
15907 lt_cv_sys_global_symbol_pipe \
15908 lt_cv_sys_global_symbol_to_cdecl \
15909 lt_cv_sys_global_symbol_to_c_name_address \
15910 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15911 nm_file_list_spec \
15912 lt_prog_compiler_no_builtin_flag \
15913 lt_prog_compiler_pic \
15914 lt_prog_compiler_wl \
15915 lt_prog_compiler_static \
15916 lt_cv_prog_compiler_c_o \
15917 need_locks \
15918 MANIFEST_TOOL \
15919 DSYMUTIL \
15920 NMEDIT \
15921 LIPO \
15922 OTOOL \
15923 OTOOL64 \
15924 shrext_cmds \
15925 export_dynamic_flag_spec \
15926 whole_archive_flag_spec \
15927 compiler_needs_object \
15928 with_gnu_ld \
15929 allow_undefined_flag \
15930 no_undefined_flag \
15931 hardcode_libdir_flag_spec \
15932 hardcode_libdir_separator \
15933 exclude_expsyms \
15934 include_expsyms \
15935 file_list_spec \
15936 variables_saved_for_relink \
15937 libname_spec \
15938 library_names_spec \
15939 soname_spec \
15940 install_override_mode \
15941 finish_eval \
15942 old_striplib \
15943 striplib; do
15944     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15945     *[\\\\\\\`\\"\\\$]*)
15946       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15947       ;;
15948     *)
15949       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15950       ;;
15951     esac
15952 done
15953
15954 # Double-quote double-evaled strings.
15955 for var in reload_cmds \
15956 old_postinstall_cmds \
15957 old_postuninstall_cmds \
15958 old_archive_cmds \
15959 extract_expsyms_cmds \
15960 old_archive_from_new_cmds \
15961 old_archive_from_expsyms_cmds \
15962 archive_cmds \
15963 archive_expsym_cmds \
15964 module_cmds \
15965 module_expsym_cmds \
15966 export_symbols_cmds \
15967 prelink_cmds \
15968 postlink_cmds \
15969 postinstall_cmds \
15970 postuninstall_cmds \
15971 finish_cmds \
15972 sys_lib_search_path_spec \
15973 sys_lib_dlsearch_path_spec; do
15974     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15975     *[\\\\\\\`\\"\\\$]*)
15976       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15977       ;;
15978     *)
15979       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15980       ;;
15981     esac
15982 done
15983
15984 ac_aux_dir='$ac_aux_dir'
15985 xsi_shell='$xsi_shell'
15986 lt_shell_append='$lt_shell_append'
15987
15988 # See if we are running on zsh, and set the options which allow our
15989 # commands through without removal of \ escapes INIT.
15990 if test -n "\${ZSH_VERSION+set}" ; then
15991    setopt NO_GLOB_SUBST
15992 fi
15993
15994
15995     PACKAGE='$PACKAGE'
15996     VERSION='$VERSION'
15997     TIMESTAMP='$TIMESTAMP'
15998     RM='$RM'
15999     ofile='$ofile'
16000
16001
16002
16003
16004 _ACEOF
16005
16006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16007
16008 # Handling of arguments.
16009 for ac_config_target in $ac_config_targets
16010 do
16011   case $ac_config_target in
16012     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16013     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16014     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16015     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16016     "pygobject-3.0.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0.pc" ;;
16017     "pygobject-3.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0-uninstalled.pc" ;;
16018     "gi/Makefile") CONFIG_FILES="$CONFIG_FILES gi/Makefile" ;;
16019     "gi/repository/Makefile") CONFIG_FILES="$CONFIG_FILES gi/repository/Makefile" ;;
16020     "gi/overrides/Makefile") CONFIG_FILES="$CONFIG_FILES gi/overrides/Makefile" ;;
16021     "gi/_gobject/Makefile") CONFIG_FILES="$CONFIG_FILES gi/_gobject/Makefile" ;;
16022     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
16023     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16024     "pygtkcompat/Makefile") CONFIG_FILES="$CONFIG_FILES pygtkcompat/Makefile" ;;
16025     "PKG-INFO") CONFIG_FILES="$CONFIG_FILES PKG-INFO" ;;
16026
16027   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16028   esac
16029 done
16030
16031
16032 # If the user did not use the arguments to specify the items to instantiate,
16033 # then the envvar interface is used.  Set only those that are not.
16034 # We use the long form for the default assignment because of an extremely
16035 # bizarre bug on SunOS 4.1.3.
16036 if $ac_need_defaults; then
16037   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16038   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16039   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16040 fi
16041
16042 # Have a temporary directory for convenience.  Make it in the build tree
16043 # simply because there is no reason against having it here, and in addition,
16044 # creating and moving files from /tmp can sometimes cause problems.
16045 # Hook for its removal unless debugging.
16046 # Note that there is a small window in which the directory will not be cleaned:
16047 # after its creation but before its name has been assigned to `$tmp'.
16048 $debug ||
16049 {
16050   tmp= ac_tmp=
16051   trap 'exit_status=$?
16052   : "${ac_tmp:=$tmp}"
16053   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16054 ' 0
16055   trap 'as_fn_exit 1' 1 2 13 15
16056 }
16057 # Create a (secure) tmp directory for tmp files.
16058
16059 {
16060   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16061   test -d "$tmp"
16062 }  ||
16063 {
16064   tmp=./conf$$-$RANDOM
16065   (umask 077 && mkdir "$tmp")
16066 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16067 ac_tmp=$tmp
16068
16069 # Set up the scripts for CONFIG_FILES section.
16070 # No need to generate them if there are no CONFIG_FILES.
16071 # This happens for instance with `./config.status config.h'.
16072 if test -n "$CONFIG_FILES"; then
16073
16074
16075 ac_cr=`echo X | tr X '\015'`
16076 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16077 # But we know of no other shell where ac_cr would be empty at this
16078 # point, so we can use a bashism as a fallback.
16079 if test "x$ac_cr" = x; then
16080   eval ac_cr=\$\'\\r\'
16081 fi
16082 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16083 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16084   ac_cs_awk_cr='\\r'
16085 else
16086   ac_cs_awk_cr=$ac_cr
16087 fi
16088
16089 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16090 _ACEOF
16091
16092
16093 {
16094   echo "cat >conf$$subs.awk <<_ACEOF" &&
16095   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16096   echo "_ACEOF"
16097 } >conf$$subs.sh ||
16098   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16099 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16100 ac_delim='%!_!# '
16101 for ac_last_try in false false false false false :; do
16102   . ./conf$$subs.sh ||
16103     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16104
16105   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16106   if test $ac_delim_n = $ac_delim_num; then
16107     break
16108   elif $ac_last_try; then
16109     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16110   else
16111     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16112   fi
16113 done
16114 rm -f conf$$subs.sh
16115
16116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16117 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16118 _ACEOF
16119 sed -n '
16120 h
16121 s/^/S["/; s/!.*/"]=/
16122 p
16123 g
16124 s/^[^!]*!//
16125 :repl
16126 t repl
16127 s/'"$ac_delim"'$//
16128 t delim
16129 :nl
16130 h
16131 s/\(.\{148\}\)..*/\1/
16132 t more1
16133 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16134 p
16135 n
16136 b repl
16137 :more1
16138 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16139 p
16140 g
16141 s/.\{148\}//
16142 t nl
16143 :delim
16144 h
16145 s/\(.\{148\}\)..*/\1/
16146 t more2
16147 s/["\\]/\\&/g; s/^/"/; s/$/"/
16148 p
16149 b
16150 :more2
16151 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16152 p
16153 g
16154 s/.\{148\}//
16155 t delim
16156 ' <conf$$subs.awk | sed '
16157 /^[^""]/{
16158   N
16159   s/\n//
16160 }
16161 ' >>$CONFIG_STATUS || ac_write_fail=1
16162 rm -f conf$$subs.awk
16163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16164 _ACAWK
16165 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16166   for (key in S) S_is_set[key] = 1
16167   FS = "\a"
16168
16169 }
16170 {
16171   line = $ 0
16172   nfields = split(line, field, "@")
16173   substed = 0
16174   len = length(field[1])
16175   for (i = 2; i < nfields; i++) {
16176     key = field[i]
16177     keylen = length(key)
16178     if (S_is_set[key]) {
16179       value = S[key]
16180       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16181       len += length(value) + length(field[++i])
16182       substed = 1
16183     } else
16184       len += 1 + keylen
16185   }
16186
16187   print line
16188 }
16189
16190 _ACAWK
16191 _ACEOF
16192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16193 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16194   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16195 else
16196   cat
16197 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16198   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16199 _ACEOF
16200
16201 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16202 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16203 # trailing colons and then remove the whole line if VPATH becomes empty
16204 # (actually we leave an empty line to preserve line numbers).
16205 if test "x$srcdir" = x.; then
16206   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16207 h
16208 s///
16209 s/^/:/
16210 s/[      ]*$/:/
16211 s/:\$(srcdir):/:/g
16212 s/:\${srcdir}:/:/g
16213 s/:@srcdir@:/:/g
16214 s/^:*//
16215 s/:*$//
16216 x
16217 s/\(=[   ]*\).*/\1/
16218 G
16219 s/\n//
16220 s/^[^=]*=[       ]*$//
16221 }'
16222 fi
16223
16224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16225 fi # test -n "$CONFIG_FILES"
16226
16227 # Set up the scripts for CONFIG_HEADERS section.
16228 # No need to generate them if there are no CONFIG_HEADERS.
16229 # This happens for instance with `./config.status Makefile'.
16230 if test -n "$CONFIG_HEADERS"; then
16231 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16232 BEGIN {
16233 _ACEOF
16234
16235 # Transform confdefs.h into an awk script `defines.awk', embedded as
16236 # here-document in config.status, that substitutes the proper values into
16237 # config.h.in to produce config.h.
16238
16239 # Create a delimiter string that does not exist in confdefs.h, to ease
16240 # handling of long lines.
16241 ac_delim='%!_!# '
16242 for ac_last_try in false false :; do
16243   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16244   if test -z "$ac_tt"; then
16245     break
16246   elif $ac_last_try; then
16247     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16248   else
16249     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16250   fi
16251 done
16252
16253 # For the awk script, D is an array of macro values keyed by name,
16254 # likewise P contains macro parameters if any.  Preserve backslash
16255 # newline sequences.
16256
16257 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16258 sed -n '
16259 s/.\{148\}/&'"$ac_delim"'/g
16260 t rset
16261 :rset
16262 s/^[     ]*#[    ]*define[       ][      ]*/ /
16263 t def
16264 d
16265 :def
16266 s/\\$//
16267 t bsnl
16268 s/["\\]/\\&/g
16269 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16270 D["\1"]=" \3"/p
16271 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16272 d
16273 :bsnl
16274 s/["\\]/\\&/g
16275 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16276 D["\1"]=" \3\\\\\\n"\\/p
16277 t cont
16278 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16279 t cont
16280 d
16281 :cont
16282 n
16283 s/.\{148\}/&'"$ac_delim"'/g
16284 t clear
16285 :clear
16286 s/\\$//
16287 t bsnlc
16288 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16289 d
16290 :bsnlc
16291 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16292 b cont
16293 ' <confdefs.h | sed '
16294 s/'"$ac_delim"'/"\\\
16295 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16296
16297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16298   for (key in D) D_is_set[key] = 1
16299   FS = "\a"
16300 }
16301 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16302   line = \$ 0
16303   split(line, arg, " ")
16304   if (arg[1] == "#") {
16305     defundef = arg[2]
16306     mac1 = arg[3]
16307   } else {
16308     defundef = substr(arg[1], 2)
16309     mac1 = arg[2]
16310   }
16311   split(mac1, mac2, "(") #)
16312   macro = mac2[1]
16313   prefix = substr(line, 1, index(line, defundef) - 1)
16314   if (D_is_set[macro]) {
16315     # Preserve the white space surrounding the "#".
16316     print prefix "define", macro P[macro] D[macro]
16317     next
16318   } else {
16319     # Replace #undef with comments.  This is necessary, for example,
16320     # in the case of _POSIX_SOURCE, which is predefined and required
16321     # on some systems where configure will not decide to define it.
16322     if (defundef == "undef") {
16323       print "/*", prefix defundef, macro, "*/"
16324       next
16325     }
16326   }
16327 }
16328 { print }
16329 _ACAWK
16330 _ACEOF
16331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16332   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16333 fi # test -n "$CONFIG_HEADERS"
16334
16335
16336 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16337 shift
16338 for ac_tag
16339 do
16340   case $ac_tag in
16341   :[FHLC]) ac_mode=$ac_tag; continue;;
16342   esac
16343   case $ac_mode$ac_tag in
16344   :[FHL]*:*);;
16345   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16346   :[FH]-) ac_tag=-:-;;
16347   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16348   esac
16349   ac_save_IFS=$IFS
16350   IFS=:
16351   set x $ac_tag
16352   IFS=$ac_save_IFS
16353   shift
16354   ac_file=$1
16355   shift
16356
16357   case $ac_mode in
16358   :L) ac_source=$1;;
16359   :[FH])
16360     ac_file_inputs=
16361     for ac_f
16362     do
16363       case $ac_f in
16364       -) ac_f="$ac_tmp/stdin";;
16365       *) # Look for the file first in the build tree, then in the source tree
16366          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16367          # because $ac_f cannot contain `:'.
16368          test -f "$ac_f" ||
16369            case $ac_f in
16370            [\\/$]*) false;;
16371            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16372            esac ||
16373            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16374       esac
16375       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16376       as_fn_append ac_file_inputs " '$ac_f'"
16377     done
16378
16379     # Let's still pretend it is `configure' which instantiates (i.e., don't
16380     # use $as_me), people would be surprised to read:
16381     #    /* config.h.  Generated by config.status.  */
16382     configure_input='Generated from '`
16383           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16384         `' by configure.'
16385     if test x"$ac_file" != x-; then
16386       configure_input="$ac_file.  $configure_input"
16387       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16388 $as_echo "$as_me: creating $ac_file" >&6;}
16389     fi
16390     # Neutralize special characters interpreted by sed in replacement strings.
16391     case $configure_input in #(
16392     *\&* | *\|* | *\\* )
16393        ac_sed_conf_input=`$as_echo "$configure_input" |
16394        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16395     *) ac_sed_conf_input=$configure_input;;
16396     esac
16397
16398     case $ac_tag in
16399     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16400       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16401     esac
16402     ;;
16403   esac
16404
16405   ac_dir=`$as_dirname -- "$ac_file" ||
16406 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16407          X"$ac_file" : 'X\(//\)[^/]' \| \
16408          X"$ac_file" : 'X\(//\)$' \| \
16409          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16410 $as_echo X"$ac_file" |
16411     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16412             s//\1/
16413             q
16414           }
16415           /^X\(\/\/\)[^/].*/{
16416             s//\1/
16417             q
16418           }
16419           /^X\(\/\/\)$/{
16420             s//\1/
16421             q
16422           }
16423           /^X\(\/\).*/{
16424             s//\1/
16425             q
16426           }
16427           s/.*/./; q'`
16428   as_dir="$ac_dir"; as_fn_mkdir_p
16429   ac_builddir=.
16430
16431 case "$ac_dir" in
16432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16433 *)
16434   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16435   # A ".." for each directory in $ac_dir_suffix.
16436   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16437   case $ac_top_builddir_sub in
16438   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16439   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16440   esac ;;
16441 esac
16442 ac_abs_top_builddir=$ac_pwd
16443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16444 # for backward compatibility:
16445 ac_top_builddir=$ac_top_build_prefix
16446
16447 case $srcdir in
16448   .)  # We are building in place.
16449     ac_srcdir=.
16450     ac_top_srcdir=$ac_top_builddir_sub
16451     ac_abs_top_srcdir=$ac_pwd ;;
16452   [\\/]* | ?:[\\/]* )  # Absolute name.
16453     ac_srcdir=$srcdir$ac_dir_suffix;
16454     ac_top_srcdir=$srcdir
16455     ac_abs_top_srcdir=$srcdir ;;
16456   *) # Relative name.
16457     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16458     ac_top_srcdir=$ac_top_build_prefix$srcdir
16459     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16460 esac
16461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16462
16463
16464   case $ac_mode in
16465   :F)
16466   #
16467   # CONFIG_FILE
16468   #
16469
16470   case $INSTALL in
16471   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16472   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16473   esac
16474   ac_MKDIR_P=$MKDIR_P
16475   case $MKDIR_P in
16476   [\\/$]* | ?:[\\/]* ) ;;
16477   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16478   esac
16479 _ACEOF
16480
16481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16482 # If the template does not know about datarootdir, expand it.
16483 # FIXME: This hack should be removed a few years after 2.60.
16484 ac_datarootdir_hack=; ac_datarootdir_seen=
16485 ac_sed_dataroot='
16486 /datarootdir/ {
16487   p
16488   q
16489 }
16490 /@datadir@/p
16491 /@docdir@/p
16492 /@infodir@/p
16493 /@localedir@/p
16494 /@mandir@/p'
16495 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16496 *datarootdir*) ac_datarootdir_seen=yes;;
16497 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16498   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16499 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16500 _ACEOF
16501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16502   ac_datarootdir_hack='
16503   s&@datadir@&$datadir&g
16504   s&@docdir@&$docdir&g
16505   s&@infodir@&$infodir&g
16506   s&@localedir@&$localedir&g
16507   s&@mandir@&$mandir&g
16508   s&\\\${datarootdir}&$datarootdir&g' ;;
16509 esac
16510 _ACEOF
16511
16512 # Neutralize VPATH when `$srcdir' = `.'.
16513 # Shell code in configure.ac might set extrasub.
16514 # FIXME: do we really want to maintain this feature?
16515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16516 ac_sed_extra="$ac_vpsub
16517 $extrasub
16518 _ACEOF
16519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16520 :t
16521 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16522 s|@configure_input@|$ac_sed_conf_input|;t t
16523 s&@top_builddir@&$ac_top_builddir_sub&;t t
16524 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16525 s&@srcdir@&$ac_srcdir&;t t
16526 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16527 s&@top_srcdir@&$ac_top_srcdir&;t t
16528 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16529 s&@builddir@&$ac_builddir&;t t
16530 s&@abs_builddir@&$ac_abs_builddir&;t t
16531 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16532 s&@INSTALL@&$ac_INSTALL&;t t
16533 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16534 $ac_datarootdir_hack
16535 "
16536 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16537   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16538
16539 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16540   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16541   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16542       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16543   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16544 which seems to be undefined.  Please make sure it is defined" >&5
16545 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16546 which seems to be undefined.  Please make sure it is defined" >&2;}
16547
16548   rm -f "$ac_tmp/stdin"
16549   case $ac_file in
16550   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16551   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16552   esac \
16553   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16554  ;;
16555   :H)
16556   #
16557   # CONFIG_HEADER
16558   #
16559   if test x"$ac_file" != x-; then
16560     {
16561       $as_echo "/* $configure_input  */" \
16562       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16563     } >"$ac_tmp/config.h" \
16564       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16565     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16566       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16567 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16568     else
16569       rm -f "$ac_file"
16570       mv "$ac_tmp/config.h" "$ac_file" \
16571         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16572     fi
16573   else
16574     $as_echo "/* $configure_input  */" \
16575       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16576       || as_fn_error $? "could not create -" "$LINENO" 5
16577   fi
16578 # Compute "$ac_file"'s index in $config_headers.
16579 _am_arg="$ac_file"
16580 _am_stamp_count=1
16581 for _am_header in $config_headers :; do
16582   case $_am_header in
16583     $_am_arg | $_am_arg:* )
16584       break ;;
16585     * )
16586       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16587   esac
16588 done
16589 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16590 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16591          X"$_am_arg" : 'X\(//\)[^/]' \| \
16592          X"$_am_arg" : 'X\(//\)$' \| \
16593          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16594 $as_echo X"$_am_arg" |
16595     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16596             s//\1/
16597             q
16598           }
16599           /^X\(\/\/\)[^/].*/{
16600             s//\1/
16601             q
16602           }
16603           /^X\(\/\/\)$/{
16604             s//\1/
16605             q
16606           }
16607           /^X\(\/\).*/{
16608             s//\1/
16609             q
16610           }
16611           s/.*/./; q'`/stamp-h$_am_stamp_count
16612  ;;
16613
16614   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16615 $as_echo "$as_me: executing $ac_file commands" >&6;}
16616  ;;
16617   esac
16618
16619
16620   case $ac_file$ac_mode in
16621     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16622   # Older Autoconf quotes --file arguments for eval, but not when files
16623   # are listed without --file.  Let's play safe and only enable the eval
16624   # if we detect the quoting.
16625   case $CONFIG_FILES in
16626   *\'*) eval set x "$CONFIG_FILES" ;;
16627   *)   set x $CONFIG_FILES ;;
16628   esac
16629   shift
16630   for mf
16631   do
16632     # Strip MF so we end up with the name of the file.
16633     mf=`echo "$mf" | sed -e 's/:.*$//'`
16634     # Check whether this is an Automake generated Makefile or not.
16635     # We used to match only the files named 'Makefile.in', but
16636     # some people rename them; so instead we look at the file content.
16637     # Grep'ing the first line is not enough: some people post-process
16638     # each Makefile.in and add a new line on top of each file to say so.
16639     # Grep'ing the whole file is not good either: AIX grep has a line
16640     # limit of 2048, but all sed's we know have understand at least 4000.
16641     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16642       dirpart=`$as_dirname -- "$mf" ||
16643 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16644          X"$mf" : 'X\(//\)[^/]' \| \
16645          X"$mf" : 'X\(//\)$' \| \
16646          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16647 $as_echo X"$mf" |
16648     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16649             s//\1/
16650             q
16651           }
16652           /^X\(\/\/\)[^/].*/{
16653             s//\1/
16654             q
16655           }
16656           /^X\(\/\/\)$/{
16657             s//\1/
16658             q
16659           }
16660           /^X\(\/\).*/{
16661             s//\1/
16662             q
16663           }
16664           s/.*/./; q'`
16665     else
16666       continue
16667     fi
16668     # Extract the definition of DEPDIR, am__include, and am__quote
16669     # from the Makefile without running 'make'.
16670     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16671     test -z "$DEPDIR" && continue
16672     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16673     test -z "$am__include" && continue
16674     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16675     # Find all dependency output files, they are included files with
16676     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16677     # simplest approach to changing $(DEPDIR) to its actual value in the
16678     # expansion.
16679     for file in `sed -n "
16680       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16681          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16682       # Make sure the directory exists.
16683       test -f "$dirpart/$file" && continue
16684       fdir=`$as_dirname -- "$file" ||
16685 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16686          X"$file" : 'X\(//\)[^/]' \| \
16687          X"$file" : 'X\(//\)$' \| \
16688          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16689 $as_echo X"$file" |
16690     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16691             s//\1/
16692             q
16693           }
16694           /^X\(\/\/\)[^/].*/{
16695             s//\1/
16696             q
16697           }
16698           /^X\(\/\/\)$/{
16699             s//\1/
16700             q
16701           }
16702           /^X\(\/\).*/{
16703             s//\1/
16704             q
16705           }
16706           s/.*/./; q'`
16707       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16708       # echo "creating $dirpart/$file"
16709       echo '# dummy' > "$dirpart/$file"
16710     done
16711   done
16712 }
16713  ;;
16714     "libtool":C)
16715
16716     # See if we are running on zsh, and set the options which allow our
16717     # commands through without removal of \ escapes.
16718     if test -n "${ZSH_VERSION+set}" ; then
16719       setopt NO_GLOB_SUBST
16720     fi
16721
16722     cfgfile="${ofile}T"
16723     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16724     $RM "$cfgfile"
16725
16726     cat <<_LT_EOF >> "$cfgfile"
16727 #! $SHELL
16728
16729 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16730 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16731 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16732 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16733 #
16734 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16735 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16736 #                 Foundation, Inc.
16737 #   Written by Gordon Matzigkeit, 1996
16738 #
16739 #   This file is part of GNU Libtool.
16740 #
16741 # GNU Libtool is free software; you can redistribute it and/or
16742 # modify it under the terms of the GNU General Public License as
16743 # published by the Free Software Foundation; either version 2 of
16744 # the License, or (at your option) any later version.
16745 #
16746 # As a special exception to the GNU General Public License,
16747 # if you distribute this file as part of a program or library that
16748 # is built using GNU Libtool, you may include this file under the
16749 # same distribution terms that you use for the rest of that program.
16750 #
16751 # GNU Libtool is distributed in the hope that it will be useful,
16752 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16753 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16754 # GNU General Public License for more details.
16755 #
16756 # You should have received a copy of the GNU General Public License
16757 # along with GNU Libtool; see the file COPYING.  If not, a copy
16758 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16759 # obtained by writing to the Free Software Foundation, Inc.,
16760 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16761
16762
16763 # The names of the tagged configurations supported by this script.
16764 available_tags=""
16765
16766 # ### BEGIN LIBTOOL CONFIG
16767
16768 # Which release of libtool.m4 was used?
16769 macro_version=$macro_version
16770 macro_revision=$macro_revision
16771
16772 # Assembler program.
16773 AS=$lt_AS
16774
16775 # DLL creation program.
16776 DLLTOOL=$lt_DLLTOOL
16777
16778 # Object dumper program.
16779 OBJDUMP=$lt_OBJDUMP
16780
16781 # Whether or not to build static libraries.
16782 build_old_libs=$enable_static
16783
16784 # Whether or not to build shared libraries.
16785 build_libtool_libs=$enable_shared
16786
16787 # What type of objects to build.
16788 pic_mode=$pic_mode
16789
16790 # Whether or not to optimize for fast installation.
16791 fast_install=$enable_fast_install
16792
16793 # Shell to use when invoking shell scripts.
16794 SHELL=$lt_SHELL
16795
16796 # An echo program that protects backslashes.
16797 ECHO=$lt_ECHO
16798
16799 # The PATH separator for the build system.
16800 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16801
16802 # The host system.
16803 host_alias=$host_alias
16804 host=$host
16805 host_os=$host_os
16806
16807 # The build system.
16808 build_alias=$build_alias
16809 build=$build
16810 build_os=$build_os
16811
16812 # A sed program that does not truncate output.
16813 SED=$lt_SED
16814
16815 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16816 Xsed="\$SED -e 1s/^X//"
16817
16818 # A grep program that handles long lines.
16819 GREP=$lt_GREP
16820
16821 # An ERE matcher.
16822 EGREP=$lt_EGREP
16823
16824 # A literal string matcher.
16825 FGREP=$lt_FGREP
16826
16827 # A BSD- or MS-compatible name lister.
16828 NM=$lt_NM
16829
16830 # Whether we need soft or hard links.
16831 LN_S=$lt_LN_S
16832
16833 # What is the maximum length of a command?
16834 max_cmd_len=$max_cmd_len
16835
16836 # Object file suffix (normally "o").
16837 objext=$ac_objext
16838
16839 # Executable file suffix (normally "").
16840 exeext=$exeext
16841
16842 # whether the shell understands "unset".
16843 lt_unset=$lt_unset
16844
16845 # turn spaces into newlines.
16846 SP2NL=$lt_lt_SP2NL
16847
16848 # turn newlines into spaces.
16849 NL2SP=$lt_lt_NL2SP
16850
16851 # convert \$build file names to \$host format.
16852 to_host_file_cmd=$lt_cv_to_host_file_cmd
16853
16854 # convert \$build files to toolchain format.
16855 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16856
16857 # Method to check whether dependent libraries are shared objects.
16858 deplibs_check_method=$lt_deplibs_check_method
16859
16860 # Command to use when deplibs_check_method = "file_magic".
16861 file_magic_cmd=$lt_file_magic_cmd
16862
16863 # How to find potential files when deplibs_check_method = "file_magic".
16864 file_magic_glob=$lt_file_magic_glob
16865
16866 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16867 want_nocaseglob=$lt_want_nocaseglob
16868
16869 # Command to associate shared and link libraries.
16870 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16871
16872 # The archiver.
16873 AR=$lt_AR
16874
16875 # Flags to create an archive.
16876 AR_FLAGS=$lt_AR_FLAGS
16877
16878 # How to feed a file listing to the archiver.
16879 archiver_list_spec=$lt_archiver_list_spec
16880
16881 # A symbol stripping program.
16882 STRIP=$lt_STRIP
16883
16884 # Commands used to install an old-style archive.
16885 RANLIB=$lt_RANLIB
16886 old_postinstall_cmds=$lt_old_postinstall_cmds
16887 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16888
16889 # Whether to use a lock for old archive extraction.
16890 lock_old_archive_extraction=$lock_old_archive_extraction
16891
16892 # A C compiler.
16893 LTCC=$lt_CC
16894
16895 # LTCC compiler flags.
16896 LTCFLAGS=$lt_CFLAGS
16897
16898 # Take the output of nm and produce a listing of raw symbols and C names.
16899 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16900
16901 # Transform the output of nm in a proper C declaration.
16902 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16903
16904 # Transform the output of nm in a C name address pair.
16905 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16906
16907 # Transform the output of nm in a C name address pair when lib prefix is needed.
16908 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16909
16910 # Specify filename containing input files for \$NM.
16911 nm_file_list_spec=$lt_nm_file_list_spec
16912
16913 # The root where to search for dependent libraries,and in which our libraries should be installed.
16914 lt_sysroot=$lt_sysroot
16915
16916 # The name of the directory that contains temporary libtool files.
16917 objdir=$objdir
16918
16919 # Used to examine libraries when file_magic_cmd begins with "file".
16920 MAGIC_CMD=$MAGIC_CMD
16921
16922 # Must we lock files when doing compilation?
16923 need_locks=$lt_need_locks
16924
16925 # Manifest tool.
16926 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16927
16928 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16929 DSYMUTIL=$lt_DSYMUTIL
16930
16931 # Tool to change global to local symbols on Mac OS X.
16932 NMEDIT=$lt_NMEDIT
16933
16934 # Tool to manipulate fat objects and archives on Mac OS X.
16935 LIPO=$lt_LIPO
16936
16937 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16938 OTOOL=$lt_OTOOL
16939
16940 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16941 OTOOL64=$lt_OTOOL64
16942
16943 # Old archive suffix (normally "a").
16944 libext=$libext
16945
16946 # Shared library suffix (normally ".so").
16947 shrext_cmds=$lt_shrext_cmds
16948
16949 # The commands to extract the exported symbol list from a shared archive.
16950 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16951
16952 # Variables whose values should be saved in libtool wrapper scripts and
16953 # restored at link time.
16954 variables_saved_for_relink=$lt_variables_saved_for_relink
16955
16956 # Do we need the "lib" prefix for modules?
16957 need_lib_prefix=$need_lib_prefix
16958
16959 # Do we need a version for libraries?
16960 need_version=$need_version
16961
16962 # Library versioning type.
16963 version_type=$version_type
16964
16965 # Shared library runtime path variable.
16966 runpath_var=$runpath_var
16967
16968 # Shared library path variable.
16969 shlibpath_var=$shlibpath_var
16970
16971 # Is shlibpath searched before the hard-coded library search path?
16972 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16973
16974 # Format of library name prefix.
16975 libname_spec=$lt_libname_spec
16976
16977 # List of archive names.  First name is the real one, the rest are links.
16978 # The last name is the one that the linker finds with -lNAME
16979 library_names_spec=$lt_library_names_spec
16980
16981 # The coded name of the library, if different from the real name.
16982 soname_spec=$lt_soname_spec
16983
16984 # Permission mode override for installation of shared libraries.
16985 install_override_mode=$lt_install_override_mode
16986
16987 # Command to use after installation of a shared archive.
16988 postinstall_cmds=$lt_postinstall_cmds
16989
16990 # Command to use after uninstallation of a shared archive.
16991 postuninstall_cmds=$lt_postuninstall_cmds
16992
16993 # Commands used to finish a libtool library installation in a directory.
16994 finish_cmds=$lt_finish_cmds
16995
16996 # As "finish_cmds", except a single script fragment to be evaled but
16997 # not shown.
16998 finish_eval=$lt_finish_eval
16999
17000 # Whether we should hardcode library paths into libraries.
17001 hardcode_into_libs=$hardcode_into_libs
17002
17003 # Compile-time system search path for libraries.
17004 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17005
17006 # Run-time system search path for libraries.
17007 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17008
17009 # Whether dlopen is supported.
17010 dlopen_support=$enable_dlopen
17011
17012 # Whether dlopen of programs is supported.
17013 dlopen_self=$enable_dlopen_self
17014
17015 # Whether dlopen of statically linked programs is supported.
17016 dlopen_self_static=$enable_dlopen_self_static
17017
17018 # Commands to strip libraries.
17019 old_striplib=$lt_old_striplib
17020 striplib=$lt_striplib
17021
17022
17023 # The linker used to build libraries.
17024 LD=$lt_LD
17025
17026 # How to create reloadable object files.
17027 reload_flag=$lt_reload_flag
17028 reload_cmds=$lt_reload_cmds
17029
17030 # Commands used to build an old-style archive.
17031 old_archive_cmds=$lt_old_archive_cmds
17032
17033 # A language specific compiler.
17034 CC=$lt_compiler
17035
17036 # Is the compiler the GNU compiler?
17037 with_gcc=$GCC
17038
17039 # Compiler flag to turn off builtin functions.
17040 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17041
17042 # Additional compiler flags for building library objects.
17043 pic_flag=$lt_lt_prog_compiler_pic
17044
17045 # How to pass a linker flag through the compiler.
17046 wl=$lt_lt_prog_compiler_wl
17047
17048 # Compiler flag to prevent dynamic linking.
17049 link_static_flag=$lt_lt_prog_compiler_static
17050
17051 # Does compiler simultaneously support -c and -o options?
17052 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17053
17054 # Whether or not to add -lc for building shared libraries.
17055 build_libtool_need_lc=$archive_cmds_need_lc
17056
17057 # Whether or not to disallow shared libs when runtime libs are static.
17058 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17059
17060 # Compiler flag to allow reflexive dlopens.
17061 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17062
17063 # Compiler flag to generate shared objects directly from archives.
17064 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17065
17066 # Whether the compiler copes with passing no objects directly.
17067 compiler_needs_object=$lt_compiler_needs_object
17068
17069 # Create an old-style archive from a shared archive.
17070 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17071
17072 # Create a temporary old-style archive to link instead of a shared archive.
17073 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17074
17075 # Commands used to build a shared archive.
17076 archive_cmds=$lt_archive_cmds
17077 archive_expsym_cmds=$lt_archive_expsym_cmds
17078
17079 # Commands used to build a loadable module if different from building
17080 # a shared archive.
17081 module_cmds=$lt_module_cmds
17082 module_expsym_cmds=$lt_module_expsym_cmds
17083
17084 # Whether we are building with GNU ld or not.
17085 with_gnu_ld=$lt_with_gnu_ld
17086
17087 # Flag that allows shared libraries with undefined symbols to be built.
17088 allow_undefined_flag=$lt_allow_undefined_flag
17089
17090 # Flag that enforces no undefined symbols.
17091 no_undefined_flag=$lt_no_undefined_flag
17092
17093 # Flag to hardcode \$libdir into a binary during linking.
17094 # This must work even if \$libdir does not exist
17095 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17096
17097 # Whether we need a single "-rpath" flag with a separated argument.
17098 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17099
17100 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17101 # DIR into the resulting binary.
17102 hardcode_direct=$hardcode_direct
17103
17104 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17105 # DIR into the resulting binary and the resulting library dependency is
17106 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17107 # library is relocated.
17108 hardcode_direct_absolute=$hardcode_direct_absolute
17109
17110 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17111 # into the resulting binary.
17112 hardcode_minus_L=$hardcode_minus_L
17113
17114 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17115 # into the resulting binary.
17116 hardcode_shlibpath_var=$hardcode_shlibpath_var
17117
17118 # Set to "yes" if building a shared library automatically hardcodes DIR
17119 # into the library and all subsequent libraries and executables linked
17120 # against it.
17121 hardcode_automatic=$hardcode_automatic
17122
17123 # Set to yes if linker adds runtime paths of dependent libraries
17124 # to runtime path list.
17125 inherit_rpath=$inherit_rpath
17126
17127 # Whether libtool must link a program against all its dependency libraries.
17128 link_all_deplibs=$link_all_deplibs
17129
17130 # Set to "yes" if exported symbols are required.
17131 always_export_symbols=$always_export_symbols
17132
17133 # The commands to list exported symbols.
17134 export_symbols_cmds=$lt_export_symbols_cmds
17135
17136 # Symbols that should not be listed in the preloaded symbols.
17137 exclude_expsyms=$lt_exclude_expsyms
17138
17139 # Symbols that must always be exported.
17140 include_expsyms=$lt_include_expsyms
17141
17142 # Commands necessary for linking programs (against libraries) with templates.
17143 prelink_cmds=$lt_prelink_cmds
17144
17145 # Commands necessary for finishing linking programs.
17146 postlink_cmds=$lt_postlink_cmds
17147
17148 # Specify filename containing input files.
17149 file_list_spec=$lt_file_list_spec
17150
17151 # How to hardcode a shared library path into an executable.
17152 hardcode_action=$hardcode_action
17153
17154 # ### END LIBTOOL CONFIG
17155
17156 _LT_EOF
17157
17158   case $host_os in
17159   aix3*)
17160     cat <<\_LT_EOF >> "$cfgfile"
17161 # AIX sometimes has problems with the GCC collect2 program.  For some
17162 # reason, if we set the COLLECT_NAMES environment variable, the problems
17163 # vanish in a puff of smoke.
17164 if test "X${COLLECT_NAMES+set}" != Xset; then
17165   COLLECT_NAMES=
17166   export COLLECT_NAMES
17167 fi
17168 _LT_EOF
17169     ;;
17170   esac
17171
17172
17173 ltmain="$ac_aux_dir/ltmain.sh"
17174
17175
17176   # We use sed instead of cat because bash on DJGPP gets confused if
17177   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17178   # text mode, it properly converts lines to CR/LF.  This bash problem
17179   # is reportedly fixed, but why not run on old versions too?
17180   sed '$q' "$ltmain" >> "$cfgfile" \
17181      || (rm -f "$cfgfile"; exit 1)
17182
17183   if test x"$xsi_shell" = xyes; then
17184   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17185 func_dirname ()\
17186 {\
17187 \    case ${1} in\
17188 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17189 \      *  ) func_dirname_result="${3}" ;;\
17190 \    esac\
17191 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17192   && mv -f "$cfgfile.tmp" "$cfgfile" \
17193     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17194 test 0 -eq $? || _lt_function_replace_fail=:
17195
17196
17197   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17198 func_basename ()\
17199 {\
17200 \    func_basename_result="${1##*/}"\
17201 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17202   && mv -f "$cfgfile.tmp" "$cfgfile" \
17203     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17204 test 0 -eq $? || _lt_function_replace_fail=:
17205
17206
17207   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17208 func_dirname_and_basename ()\
17209 {\
17210 \    case ${1} in\
17211 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17212 \      *  ) func_dirname_result="${3}" ;;\
17213 \    esac\
17214 \    func_basename_result="${1##*/}"\
17215 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17216   && mv -f "$cfgfile.tmp" "$cfgfile" \
17217     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17218 test 0 -eq $? || _lt_function_replace_fail=:
17219
17220
17221   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17222 func_stripname ()\
17223 {\
17224 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17225 \    # positional parameters, so assign one to ordinary parameter first.\
17226 \    func_stripname_result=${3}\
17227 \    func_stripname_result=${func_stripname_result#"${1}"}\
17228 \    func_stripname_result=${func_stripname_result%"${2}"}\
17229 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17230   && mv -f "$cfgfile.tmp" "$cfgfile" \
17231     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17232 test 0 -eq $? || _lt_function_replace_fail=:
17233
17234
17235   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17236 func_split_long_opt ()\
17237 {\
17238 \    func_split_long_opt_name=${1%%=*}\
17239 \    func_split_long_opt_arg=${1#*=}\
17240 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17241   && mv -f "$cfgfile.tmp" "$cfgfile" \
17242     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17243 test 0 -eq $? || _lt_function_replace_fail=:
17244
17245
17246   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17247 func_split_short_opt ()\
17248 {\
17249 \    func_split_short_opt_arg=${1#??}\
17250 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17251 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17252   && mv -f "$cfgfile.tmp" "$cfgfile" \
17253     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17254 test 0 -eq $? || _lt_function_replace_fail=:
17255
17256
17257   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17258 func_lo2o ()\
17259 {\
17260 \    case ${1} in\
17261 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17262 \      *)    func_lo2o_result=${1} ;;\
17263 \    esac\
17264 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17265   && mv -f "$cfgfile.tmp" "$cfgfile" \
17266     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17267 test 0 -eq $? || _lt_function_replace_fail=:
17268
17269
17270   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17271 func_xform ()\
17272 {\
17273     func_xform_result=${1%.*}.lo\
17274 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17275   && mv -f "$cfgfile.tmp" "$cfgfile" \
17276     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17277 test 0 -eq $? || _lt_function_replace_fail=:
17278
17279
17280   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17281 func_arith ()\
17282 {\
17283     func_arith_result=$(( $* ))\
17284 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17285   && mv -f "$cfgfile.tmp" "$cfgfile" \
17286     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17287 test 0 -eq $? || _lt_function_replace_fail=:
17288
17289
17290   sed -e '/^func_len ()$/,/^} # func_len /c\
17291 func_len ()\
17292 {\
17293     func_len_result=${#1}\
17294 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17295   && mv -f "$cfgfile.tmp" "$cfgfile" \
17296     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17297 test 0 -eq $? || _lt_function_replace_fail=:
17298
17299 fi
17300
17301 if test x"$lt_shell_append" = xyes; then
17302   sed -e '/^func_append ()$/,/^} # func_append /c\
17303 func_append ()\
17304 {\
17305     eval "${1}+=\\${2}"\
17306 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17307   && mv -f "$cfgfile.tmp" "$cfgfile" \
17308     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17309 test 0 -eq $? || _lt_function_replace_fail=:
17310
17311
17312   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17313 func_append_quoted ()\
17314 {\
17315 \    func_quote_for_eval "${2}"\
17316 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17317 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17318   && mv -f "$cfgfile.tmp" "$cfgfile" \
17319     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17320 test 0 -eq $? || _lt_function_replace_fail=:
17321
17322
17323   # Save a `func_append' function call where possible by direct use of '+='
17324   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17325     && mv -f "$cfgfile.tmp" "$cfgfile" \
17326       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17327   test 0 -eq $? || _lt_function_replace_fail=:
17328 else
17329   # Save a `func_append' function call even when '+=' is not available
17330   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17331     && mv -f "$cfgfile.tmp" "$cfgfile" \
17332       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17333   test 0 -eq $? || _lt_function_replace_fail=:
17334 fi
17335
17336 if test x"$_lt_function_replace_fail" = x":"; then
17337   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17338 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17339 fi
17340
17341
17342    mv -f "$cfgfile" "$ofile" ||
17343     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17344   chmod +x "$ofile"
17345
17346  ;;
17347
17348   esac
17349 done # for ac_tag
17350
17351
17352 as_fn_exit 0
17353 _ACEOF
17354 ac_clean_files=$ac_clean_files_save
17355
17356 test $ac_write_fail = 0 ||
17357   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17358
17359
17360 # configure is writing to config.log, and then calls config.status.
17361 # config.status does its own redirection, appending to config.log.
17362 # Unfortunately, on DOS this fails, as config.log is still kept open
17363 # by configure, so config.status won't be able to write to it; its
17364 # output is simply discarded.  So we exec the FD to /dev/null,
17365 # effectively closing config.log, so it can be properly (re)opened and
17366 # appended to by config.status.  When coming back to configure, we
17367 # need to make the FD available again.
17368 if test "$no_create" != yes; then
17369   ac_cs_success=:
17370   ac_config_status_args=
17371   test "$silent" = yes &&
17372     ac_config_status_args="$ac_config_status_args --quiet"
17373   exec 5>/dev/null
17374   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17375   exec 5>>config.log
17376   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17377   # would make configure fail if this is the last instruction.
17378   $ac_cs_success || as_fn_exit 1
17379 fi
17380 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17381   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17382 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17383 fi
17384
17385
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
17387         pygobject $VERSION
17388
17389         Using python interpreter:       $PYTHON
17390         cairo support:                  $enable_cairo
17391         thread support:                 $enable_thread
17392         code coverage support:          $enable_code_coverage
17393 " >&5
17394 $as_echo "
17395         pygobject $VERSION
17396
17397         Using python interpreter:       $PYTHON
17398         cairo support:                  $enable_cairo
17399         thread support:                 $enable_thread
17400         code coverage support:          $enable_code_coverage
17401 " >&6; }
17402