fixed Makefile.am for sqlite support
[platform/upstream/libsoup.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libsoup 2.46.0.
4 #
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libsoup>.
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=libsoup
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='libsoup'
593 PACKAGE_TARNAME='libsoup'
594 PACKAGE_VERSION='2.46.0'
595 PACKAGE_STRING='libsoup 2.46.0'
596 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=libsoup'
597 PACKAGE_URL=''
598
599 ac_unique_file="libsoup-2.4.pc.in"
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 ntlm_auth
641 CURL
642 IF_HAVE_PHP
643 PHP
644 HAVE_APACHE_2_4_FALSE
645 HAVE_APACHE_2_4_TRUE
646 HAVE_APACHE_2_2_FALSE
647 HAVE_APACHE_2_2_TRUE
648 HAVE_APACHE_FALSE
649 HAVE_APACHE_TRUE
650 APACHE_PHP_MODULE
651 APACHE_PHP_MODULE_DIR
652 APACHE_SSL_MODULE_DIR
653 APACHE_MODULE_DIR
654 APACHE_HTTPD
655 HAVE_INTROSPECTION_FALSE
656 HAVE_INTROSPECTION_TRUE
657 INTROSPECTION_MAKEFILE
658 INTROSPECTION_LIBS
659 INTROSPECTION_CFLAGS
660 INTROSPECTION_TYPELIBDIR
661 INTROSPECTION_GIRDIR
662 INTROSPECTION_GENERATE
663 INTROSPECTION_COMPILER
664 INTROSPECTION_SCANNER
665 GTK_DOC_USE_REBASE_FALSE
666 GTK_DOC_USE_REBASE_TRUE
667 GTK_DOC_USE_LIBTOOL_FALSE
668 GTK_DOC_USE_LIBTOOL_TRUE
669 GTK_DOC_BUILD_PDF_FALSE
670 GTK_DOC_BUILD_PDF_TRUE
671 GTK_DOC_BUILD_HTML_FALSE
672 GTK_DOC_BUILD_HTML_TRUE
673 ENABLE_GTK_DOC_FALSE
674 ENABLE_GTK_DOC_TRUE
675 HAVE_GTK_DOC_FALSE
676 HAVE_GTK_DOC_TRUE
677 GTKDOC_DEPS_LIBS
678 GTKDOC_DEPS_CFLAGS
679 HTML_DIR
680 GTKDOC_MKPDF
681 GTKDOC_REBASE
682 GTKDOC_CHECK_PATH
683 GTKDOC_CHECK
684 HAVE_GNOME
685 BUILD_LIBSOUP_GNOME_FALSE
686 BUILD_LIBSOUP_GNOME_TRUE
687 GETTEXT_PACKAGE
688 ALL_LINGUAS
689 INTLTOOL_PERL
690 GMSGFMT
691 MSGFMT
692 MSGMERGE
693 XGETTEXT
694 INTLTOOL_POLICY_RULE
695 INTLTOOL_SERVICE_RULE
696 INTLTOOL_THEME_RULE
697 INTLTOOL_SCHEMAS_RULE
698 INTLTOOL_CAVES_RULE
699 INTLTOOL_XML_NOMERGE_RULE
700 INTLTOOL_XML_RULE
701 INTLTOOL_KBD_RULE
702 INTLTOOL_XAM_RULE
703 INTLTOOL_UI_RULE
704 INTLTOOL_SOUNDLIST_RULE
705 INTLTOOL_SHEET_RULE
706 INTLTOOL_SERVER_RULE
707 INTLTOOL_PONG_RULE
708 INTLTOOL_OAF_RULE
709 INTLTOOL_PROP_RULE
710 INTLTOOL_KEYS_RULE
711 INTLTOOL_DIRECTORY_RULE
712 INTLTOOL_DESKTOP_RULE
713 intltool__v_merge_options_0
714 intltool__v_merge_options_
715 INTLTOOL_V_MERGE_OPTIONS
716 INTLTOOL__v_MERGE_0
717 INTLTOOL__v_MERGE_
718 INTLTOOL_V_MERGE
719 INTLTOOL_EXTRACT
720 INTLTOOL_MERGE
721 INTLTOOL_UPDATE
722 USE_NLS
723 OS_WIN32_FALSE
724 OS_WIN32_TRUE
725 SQLITE_LIBS
726 SQLITE_CFLAGS
727 XML_LIBS
728 XML_CFLAGS
729 installed_testdir
730 installed_test_metadir
731 ENABLE_ALWAYS_BUILD_TESTS_FALSE
732 ENABLE_ALWAYS_BUILD_TESTS_TRUE
733 ENABLE_INSTALLED_TESTS_FALSE
734 ENABLE_INSTALLED_TESTS_TRUE
735 GLIB_MAKEFILE
736 GLIB_COMPILE_RESOURCES
737 GLIB_MKENUMS
738 GOBJECT_QUERY
739 GLIB_GENMARSHAL
740 GLIB_LIBS
741 GLIB_CFLAGS
742 PKG_CONFIG_LIBDIR
743 PKG_CONFIG_PATH
744 PKG_CONFIG
745 CPP
746 OTOOL64
747 OTOOL
748 LIPO
749 NMEDIT
750 DSYMUTIL
751 MANIFEST_TOOL
752 RANLIB
753 ac_ct_AR
754 AR
755 LN_S
756 NM
757 ac_ct_DUMPBIN
758 DUMPBIN
759 LD
760 FGREP
761 EGREP
762 GREP
763 SED
764 host_os
765 host_vendor
766 host_cpu
767 host
768 build_os
769 build_vendor
770 build_cpu
771 build
772 LIBTOOL
773 OBJDUMP
774 DLLTOOL
775 AS
776 am__fastdepCC_FALSE
777 am__fastdepCC_TRUE
778 CCDEPMODE
779 am__nodep
780 AMDEPBACKSLASH
781 AMDEP_FALSE
782 AMDEP_TRUE
783 am__quote
784 am__include
785 DEPDIR
786 OBJEXT
787 EXEEXT
788 ac_ct_CC
789 CPPFLAGS
790 LDFLAGS
791 CFLAGS
792 CC
793 SOUP_DEBUG_FLAGS
794 SOUP_AGE
795 SOUP_REVISION
796 SOUP_CURRENT
797 SOUP_API_VERSION
798 SOUP_MICRO_VERSION
799 SOUP_MINOR_VERSION
800 SOUP_MAJOR_VERSION
801 AM_BACKSLASH
802 AM_DEFAULT_VERBOSITY
803 AM_DEFAULT_V
804 AM_V
805 am__untar
806 am__tar
807 AMTAR
808 am__leading_dot
809 SET_MAKE
810 AWK
811 mkdir_p
812 MKDIR_P
813 INSTALL_STRIP_PROGRAM
814 STRIP
815 install_sh
816 MAKEINFO
817 AUTOHEADER
818 AUTOMAKE
819 AUTOCONF
820 ACLOCAL
821 VERSION
822 PACKAGE
823 CYGPATH_W
824 am__isrc
825 INSTALL_DATA
826 INSTALL_SCRIPT
827 INSTALL_PROGRAM
828 target_alias
829 host_alias
830 build_alias
831 LIBS
832 ECHO_T
833 ECHO_N
834 ECHO_C
835 DEFS
836 mandir
837 localedir
838 libdir
839 psdir
840 pdfdir
841 dvidir
842 htmldir
843 infodir
844 docdir
845 oldincludedir
846 includedir
847 localstatedir
848 sharedstatedir
849 sysconfdir
850 datadir
851 datarootdir
852 libexecdir
853 sbindir
854 bindir
855 program_transform_name
856 prefix
857 exec_prefix
858 PACKAGE_URL
859 PACKAGE_BUGREPORT
860 PACKAGE_STRING
861 PACKAGE_VERSION
862 PACKAGE_TARNAME
863 PACKAGE_NAME
864 PATH_SEPARATOR
865 SHELL'
866 ac_subst_files=''
867 ac_user_opts='
868 enable_option_checking
869 enable_silent_rules
870 enable_debug
871 enable_dependency_tracking
872 enable_shared
873 enable_static
874 with_pic
875 enable_fast_install
876 with_gnu_ld
877 with_sysroot
878 enable_libtool_lock
879 enable_glibtest
880 enable_installed_tests
881 enable_always_build_tests
882 enable_nls
883 with_gnome
884 with_html_dir
885 enable_gtk_doc
886 enable_gtk_doc_html
887 enable_gtk_doc_pdf
888 enable_introspection
889 enable_tls_check
890 with_apache_httpd
891 with_apache_module_dir
892 with_ntlm_auth
893 enable_more_warnings
894 '
895       ac_precious_vars='build_alias
896 host_alias
897 target_alias
898 CC
899 CFLAGS
900 LDFLAGS
901 LIBS
902 CPPFLAGS
903 CPP
904 PKG_CONFIG
905 PKG_CONFIG_PATH
906 PKG_CONFIG_LIBDIR
907 XML_CFLAGS
908 XML_LIBS
909 SQLITE_CFLAGS
910 SQLITE_LIBS
911 GTKDOC_DEPS_CFLAGS
912 GTKDOC_DEPS_LIBS'
913
914
915 # Initialize some variables set by options.
916 ac_init_help=
917 ac_init_version=false
918 ac_unrecognized_opts=
919 ac_unrecognized_sep=
920 # The variables have the same names as the options, with
921 # dashes changed to underlines.
922 cache_file=/dev/null
923 exec_prefix=NONE
924 no_create=
925 no_recursion=
926 prefix=NONE
927 program_prefix=NONE
928 program_suffix=NONE
929 program_transform_name=s,x,x,
930 silent=
931 site=
932 srcdir=
933 verbose=
934 x_includes=NONE
935 x_libraries=NONE
936
937 # Installation directory options.
938 # These are left unexpanded so users can "make install exec_prefix=/foo"
939 # and all the variables that are supposed to be based on exec_prefix
940 # by default will actually change.
941 # Use braces instead of parens because sh, perl, etc. also accept them.
942 # (The list follows the same order as the GNU Coding Standards.)
943 bindir='${exec_prefix}/bin'
944 sbindir='${exec_prefix}/sbin'
945 libexecdir='${exec_prefix}/libexec'
946 datarootdir='${prefix}/share'
947 datadir='${datarootdir}'
948 sysconfdir='${prefix}/etc'
949 sharedstatedir='${prefix}/com'
950 localstatedir='${prefix}/var'
951 includedir='${prefix}/include'
952 oldincludedir='/usr/include'
953 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
954 infodir='${datarootdir}/info'
955 htmldir='${docdir}'
956 dvidir='${docdir}'
957 pdfdir='${docdir}'
958 psdir='${docdir}'
959 libdir='${exec_prefix}/lib'
960 localedir='${datarootdir}/locale'
961 mandir='${datarootdir}/man'
962
963 ac_prev=
964 ac_dashdash=
965 for ac_option
966 do
967   # If the previous option needs an argument, assign it.
968   if test -n "$ac_prev"; then
969     eval $ac_prev=\$ac_option
970     ac_prev=
971     continue
972   fi
973
974   case $ac_option in
975   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976   *=)   ac_optarg= ;;
977   *)    ac_optarg=yes ;;
978   esac
979
980   # Accept the important Cygnus configure options, so we can diagnose typos.
981
982   case $ac_dashdash$ac_option in
983   --)
984     ac_dashdash=yes ;;
985
986   -bindir | --bindir | --bindi | --bind | --bin | --bi)
987     ac_prev=bindir ;;
988   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989     bindir=$ac_optarg ;;
990
991   -build | --build | --buil | --bui | --bu)
992     ac_prev=build_alias ;;
993   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994     build_alias=$ac_optarg ;;
995
996   -cache-file | --cache-file | --cache-fil | --cache-fi \
997   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998     ac_prev=cache_file ;;
999   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001     cache_file=$ac_optarg ;;
1002
1003   --config-cache | -C)
1004     cache_file=config.cache ;;
1005
1006   -datadir | --datadir | --datadi | --datad)
1007     ac_prev=datadir ;;
1008   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009     datadir=$ac_optarg ;;
1010
1011   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012   | --dataroo | --dataro | --datar)
1013     ac_prev=datarootdir ;;
1014   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016     datarootdir=$ac_optarg ;;
1017
1018   -disable-* | --disable-*)
1019     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020     # Reject names that are not valid shell variable names.
1021     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022       as_fn_error $? "invalid feature name: $ac_useropt"
1023     ac_useropt_orig=$ac_useropt
1024     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025     case $ac_user_opts in
1026       *"
1027 "enable_$ac_useropt"
1028 "*) ;;
1029       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1030          ac_unrecognized_sep=', ';;
1031     esac
1032     eval enable_$ac_useropt=no ;;
1033
1034   -docdir | --docdir | --docdi | --doc | --do)
1035     ac_prev=docdir ;;
1036   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1037     docdir=$ac_optarg ;;
1038
1039   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1040     ac_prev=dvidir ;;
1041   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1042     dvidir=$ac_optarg ;;
1043
1044   -enable-* | --enable-*)
1045     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046     # Reject names that are not valid shell variable names.
1047     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048       as_fn_error $? "invalid feature name: $ac_useropt"
1049     ac_useropt_orig=$ac_useropt
1050     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051     case $ac_user_opts in
1052       *"
1053 "enable_$ac_useropt"
1054 "*) ;;
1055       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1056          ac_unrecognized_sep=', ';;
1057     esac
1058     eval enable_$ac_useropt=\$ac_optarg ;;
1059
1060   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062   | --exec | --exe | --ex)
1063     ac_prev=exec_prefix ;;
1064   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066   | --exec=* | --exe=* | --ex=*)
1067     exec_prefix=$ac_optarg ;;
1068
1069   -gas | --gas | --ga | --g)
1070     # Obsolete; use --with-gas.
1071     with_gas=yes ;;
1072
1073   -help | --help | --hel | --he | -h)
1074     ac_init_help=long ;;
1075   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076     ac_init_help=recursive ;;
1077   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078     ac_init_help=short ;;
1079
1080   -host | --host | --hos | --ho)
1081     ac_prev=host_alias ;;
1082   -host=* | --host=* | --hos=* | --ho=*)
1083     host_alias=$ac_optarg ;;
1084
1085   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1086     ac_prev=htmldir ;;
1087   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1088   | --ht=*)
1089     htmldir=$ac_optarg ;;
1090
1091   -includedir | --includedir | --includedi | --included | --include \
1092   | --includ | --inclu | --incl | --inc)
1093     ac_prev=includedir ;;
1094   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095   | --includ=* | --inclu=* | --incl=* | --inc=*)
1096     includedir=$ac_optarg ;;
1097
1098   -infodir | --infodir | --infodi | --infod | --info | --inf)
1099     ac_prev=infodir ;;
1100   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101     infodir=$ac_optarg ;;
1102
1103   -libdir | --libdir | --libdi | --libd)
1104     ac_prev=libdir ;;
1105   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1106     libdir=$ac_optarg ;;
1107
1108   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109   | --libexe | --libex | --libe)
1110     ac_prev=libexecdir ;;
1111   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112   | --libexe=* | --libex=* | --libe=*)
1113     libexecdir=$ac_optarg ;;
1114
1115   -localedir | --localedir | --localedi | --localed | --locale)
1116     ac_prev=localedir ;;
1117   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118     localedir=$ac_optarg ;;
1119
1120   -localstatedir | --localstatedir | --localstatedi | --localstated \
1121   | --localstate | --localstat | --localsta | --localst | --locals)
1122     ac_prev=localstatedir ;;
1123   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125     localstatedir=$ac_optarg ;;
1126
1127   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1128     ac_prev=mandir ;;
1129   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130     mandir=$ac_optarg ;;
1131
1132   -nfp | --nfp | --nf)
1133     # Obsolete; use --without-fp.
1134     with_fp=no ;;
1135
1136   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137   | --no-cr | --no-c | -n)
1138     no_create=yes ;;
1139
1140   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1142     no_recursion=yes ;;
1143
1144   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146   | --oldin | --oldi | --old | --ol | --o)
1147     ac_prev=oldincludedir ;;
1148   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151     oldincludedir=$ac_optarg ;;
1152
1153   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1154     ac_prev=prefix ;;
1155   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156     prefix=$ac_optarg ;;
1157
1158   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159   | --program-pre | --program-pr | --program-p)
1160     ac_prev=program_prefix ;;
1161   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163     program_prefix=$ac_optarg ;;
1164
1165   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166   | --program-suf | --program-su | --program-s)
1167     ac_prev=program_suffix ;;
1168   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170     program_suffix=$ac_optarg ;;
1171
1172   -program-transform-name | --program-transform-name \
1173   | --program-transform-nam | --program-transform-na \
1174   | --program-transform-n | --program-transform- \
1175   | --program-transform | --program-transfor \
1176   | --program-transfo | --program-transf \
1177   | --program-trans | --program-tran \
1178   | --progr-tra | --program-tr | --program-t)
1179     ac_prev=program_transform_name ;;
1180   -program-transform-name=* | --program-transform-name=* \
1181   | --program-transform-nam=* | --program-transform-na=* \
1182   | --program-transform-n=* | --program-transform-=* \
1183   | --program-transform=* | --program-transfor=* \
1184   | --program-transfo=* | --program-transf=* \
1185   | --program-trans=* | --program-tran=* \
1186   | --progr-tra=* | --program-tr=* | --program-t=*)
1187     program_transform_name=$ac_optarg ;;
1188
1189   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1190     ac_prev=pdfdir ;;
1191   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192     pdfdir=$ac_optarg ;;
1193
1194   -psdir | --psdir | --psdi | --psd | --ps)
1195     ac_prev=psdir ;;
1196   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1197     psdir=$ac_optarg ;;
1198
1199   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200   | -silent | --silent | --silen | --sile | --sil)
1201     silent=yes ;;
1202
1203   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1204     ac_prev=sbindir ;;
1205   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1206   | --sbi=* | --sb=*)
1207     sbindir=$ac_optarg ;;
1208
1209   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211   | --sharedst | --shareds | --shared | --share | --shar \
1212   | --sha | --sh)
1213     ac_prev=sharedstatedir ;;
1214   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1217   | --sha=* | --sh=*)
1218     sharedstatedir=$ac_optarg ;;
1219
1220   -site | --site | --sit)
1221     ac_prev=site ;;
1222   -site=* | --site=* | --sit=*)
1223     site=$ac_optarg ;;
1224
1225   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1226     ac_prev=srcdir ;;
1227   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228     srcdir=$ac_optarg ;;
1229
1230   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231   | --syscon | --sysco | --sysc | --sys | --sy)
1232     ac_prev=sysconfdir ;;
1233   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235     sysconfdir=$ac_optarg ;;
1236
1237   -target | --target | --targe | --targ | --tar | --ta | --t)
1238     ac_prev=target_alias ;;
1239   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240     target_alias=$ac_optarg ;;
1241
1242   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1243     verbose=yes ;;
1244
1245   -version | --version | --versio | --versi | --vers | -V)
1246     ac_init_version=: ;;
1247
1248   -with-* | --with-*)
1249     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250     # Reject names that are not valid shell variable names.
1251     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252       as_fn_error $? "invalid package name: $ac_useropt"
1253     ac_useropt_orig=$ac_useropt
1254     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255     case $ac_user_opts in
1256       *"
1257 "with_$ac_useropt"
1258 "*) ;;
1259       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1260          ac_unrecognized_sep=', ';;
1261     esac
1262     eval with_$ac_useropt=\$ac_optarg ;;
1263
1264   -without-* | --without-*)
1265     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266     # Reject names that are not valid shell variable names.
1267     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268       as_fn_error $? "invalid package name: $ac_useropt"
1269     ac_useropt_orig=$ac_useropt
1270     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271     case $ac_user_opts in
1272       *"
1273 "with_$ac_useropt"
1274 "*) ;;
1275       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1276          ac_unrecognized_sep=', ';;
1277     esac
1278     eval with_$ac_useropt=no ;;
1279
1280   --x)
1281     # Obsolete; use --with-x.
1282     with_x=yes ;;
1283
1284   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1285   | --x-incl | --x-inc | --x-in | --x-i)
1286     ac_prev=x_includes ;;
1287   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1288   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1289     x_includes=$ac_optarg ;;
1290
1291   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1292   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1293     ac_prev=x_libraries ;;
1294   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1295   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1296     x_libraries=$ac_optarg ;;
1297
1298   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1299 Try \`$0 --help' for more information"
1300     ;;
1301
1302   *=*)
1303     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304     # Reject names that are not valid shell variable names.
1305     case $ac_envvar in #(
1306       '' | [0-9]* | *[!_$as_cr_alnum]* )
1307       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1308     esac
1309     eval $ac_envvar=\$ac_optarg
1310     export $ac_envvar ;;
1311
1312   *)
1313     # FIXME: should be removed in autoconf 3.0.
1314     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1315     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1316       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1317     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1318     ;;
1319
1320   esac
1321 done
1322
1323 if test -n "$ac_prev"; then
1324   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1325   as_fn_error $? "missing argument to $ac_option"
1326 fi
1327
1328 if test -n "$ac_unrecognized_opts"; then
1329   case $enable_option_checking in
1330     no) ;;
1331     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1332     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1333   esac
1334 fi
1335
1336 # Check all directory arguments for consistency.
1337 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338                 datadir sysconfdir sharedstatedir localstatedir includedir \
1339                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340                 libdir localedir mandir
1341 do
1342   eval ac_val=\$$ac_var
1343   # Remove trailing slashes.
1344   case $ac_val in
1345     */ )
1346       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1347       eval $ac_var=\$ac_val;;
1348   esac
1349   # Be sure to have absolute directory names.
1350   case $ac_val in
1351     [\\/$]* | ?:[\\/]* )  continue;;
1352     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353   esac
1354   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1355 done
1356
1357 # There might be people who depend on the old broken behavior: `$host'
1358 # used to hold the argument of --host etc.
1359 # FIXME: To remove some day.
1360 build=$build_alias
1361 host=$host_alias
1362 target=$target_alias
1363
1364 # FIXME: To remove some day.
1365 if test "x$host_alias" != x; then
1366   if test "x$build_alias" = x; then
1367     cross_compiling=maybe
1368   elif test "x$build_alias" != "x$host_alias"; then
1369     cross_compiling=yes
1370   fi
1371 fi
1372
1373 ac_tool_prefix=
1374 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1375
1376 test "$silent" = yes && exec 6>/dev/null
1377
1378
1379 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1380 ac_ls_di=`ls -di .` &&
1381 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1382   as_fn_error $? "working directory cannot be determined"
1383 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1384   as_fn_error $? "pwd does not report name of working directory"
1385
1386
1387 # Find the source files, if location was not specified.
1388 if test -z "$srcdir"; then
1389   ac_srcdir_defaulted=yes
1390   # Try the directory containing this script, then the parent directory.
1391   ac_confdir=`$as_dirname -- "$as_myself" ||
1392 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1393          X"$as_myself" : 'X\(//\)[^/]' \| \
1394          X"$as_myself" : 'X\(//\)$' \| \
1395          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1396 $as_echo X"$as_myself" |
1397     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1398             s//\1/
1399             q
1400           }
1401           /^X\(\/\/\)[^/].*/{
1402             s//\1/
1403             q
1404           }
1405           /^X\(\/\/\)$/{
1406             s//\1/
1407             q
1408           }
1409           /^X\(\/\).*/{
1410             s//\1/
1411             q
1412           }
1413           s/.*/./; q'`
1414   srcdir=$ac_confdir
1415   if test ! -r "$srcdir/$ac_unique_file"; then
1416     srcdir=..
1417   fi
1418 else
1419   ac_srcdir_defaulted=no
1420 fi
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1423   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1424 fi
1425 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1426 ac_abs_confdir=`(
1427         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1428         pwd)`
1429 # When building in place, set srcdir=.
1430 if test "$ac_abs_confdir" = "$ac_pwd"; then
1431   srcdir=.
1432 fi
1433 # Remove unnecessary trailing slashes from srcdir.
1434 # Double slashes in file names in object file debugging info
1435 # mess up M-x gdb in Emacs.
1436 case $srcdir in
1437 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438 esac
1439 for ac_var in $ac_precious_vars; do
1440   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1441   eval ac_env_${ac_var}_value=\$${ac_var}
1442   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1443   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444 done
1445
1446 #
1447 # Report the --help message.
1448 #
1449 if test "$ac_init_help" = "long"; then
1450   # Omit some internal or obsolete options to make the list less imposing.
1451   # This message is too long to be a string in the A/UX 3.1 sh.
1452   cat <<_ACEOF
1453 \`configure' configures libsoup 2.46.0 to adapt to many kinds of systems.
1454
1455 Usage: $0 [OPTION]... [VAR=VALUE]...
1456
1457 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458 VAR=VALUE.  See below for descriptions of some of the useful variables.
1459
1460 Defaults for the options are specified in brackets.
1461
1462 Configuration:
1463   -h, --help              display this help and exit
1464       --help=short        display options specific to this package
1465       --help=recursive    display the short help of all the included packages
1466   -V, --version           display version information and exit
1467   -q, --quiet, --silent   do not print \`checking ...' messages
1468       --cache-file=FILE   cache test results in FILE [disabled]
1469   -C, --config-cache      alias for \`--cache-file=config.cache'
1470   -n, --no-create         do not create output files
1471       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1472
1473 Installation directories:
1474   --prefix=PREFIX         install architecture-independent files in PREFIX
1475                           [$ac_default_prefix]
1476   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1477                           [PREFIX]
1478
1479 By default, \`make install' will install all the files in
1480 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1481 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482 for instance \`--prefix=\$HOME'.
1483
1484 For better control, use the options below.
1485
1486 Fine tuning of the installation directories:
1487   --bindir=DIR            user executables [EPREFIX/bin]
1488   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1489   --libexecdir=DIR        program executables [EPREFIX/libexec]
1490   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1491   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1492   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1493   --libdir=DIR            object code libraries [EPREFIX/lib]
1494   --includedir=DIR        C header files [PREFIX/include]
1495   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1496   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1497   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1498   --infodir=DIR           info documentation [DATAROOTDIR/info]
1499   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1500   --mandir=DIR            man documentation [DATAROOTDIR/man]
1501   --docdir=DIR            documentation root [DATAROOTDIR/doc/libsoup]
1502   --htmldir=DIR           html documentation [DOCDIR]
1503   --dvidir=DIR            dvi documentation [DOCDIR]
1504   --pdfdir=DIR            pdf documentation [DOCDIR]
1505   --psdir=DIR             ps documentation [DOCDIR]
1506 _ACEOF
1507
1508   cat <<\_ACEOF
1509
1510 Program names:
1511   --program-prefix=PREFIX            prepend PREFIX to installed program names
1512   --program-suffix=SUFFIX            append SUFFIX to installed program names
1513   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1514
1515 System types:
1516   --build=BUILD     configure for building on BUILD [guessed]
1517   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1518 _ACEOF
1519 fi
1520
1521 if test -n "$ac_init_help"; then
1522   case $ac_init_help in
1523      short | recursive ) echo "Configuration of libsoup 2.46.0:";;
1524    esac
1525   cat <<\_ACEOF
1526
1527 Optional Features:
1528   --disable-option-checking  ignore unrecognized --enable/--with options
1529   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1530   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1531   --enable-silent-rules   less verbose build output (undo: "make V=1")
1532   --disable-silent-rules  verbose build output (undo: "make V=0")
1533   --enable-debug=no/minimum/yes
1534                           turn on debugging (default=$debug_default)
1535   --enable-dependency-tracking
1536                           do not reject slow dependency extractors
1537   --disable-dependency-tracking
1538                           speeds up one-time build
1539   --enable-shared[=PKGS]  build shared libraries [default=yes]
1540   --enable-static[=PKGS]  build static libraries [default=yes]
1541   --enable-fast-install[=PKGS]
1542                           optimize for fast installation [default=yes]
1543   --disable-libtool-lock  avoid locking (might break parallel builds)
1544   --disable-glibtest      do not try to compile and run a test GLIB program
1545   --enable-installed-tests
1546                           Enable installation of some test cases
1547   --enable-always-build-tests
1548                           Enable always building tests during 'make all'
1549   --disable-nls           do not use Native Language Support
1550   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1551   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1552   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1553   --enable-introspection=[no/auto/yes]
1554                           Enable introspection for this build
1555   --disable-tls-check     Don't error out if glib-networking is unavailable
1556   --disable-more-warnings Inhibit compiler warnings
1557
1558 Optional Packages:
1559   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1560   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1561   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1562                           both]
1563   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1564   --with-sysroot=DIR Search for dependent libraries within DIR
1565                         (or the compiler's sysroot if not specified).
1566   --without-gnome         Do not build libsoup-gnome
1567   --with-html-dir=PATH    path to installed docs
1568   --with-apache-httpd     Path to apache httpd (for tests)
1569   --with-apache-module-dir
1570                           Apache modules dirs (for tests)
1571   --with-ntlm-auth=PATH   Where to look for ntlm_auth, path points to
1572                           ntlm_auth installation (default: /usr/bin/ntlm_auth)
1573
1574 Some influential environment variables:
1575   CC          C compiler command
1576   CFLAGS      C compiler flags
1577   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1578               nonstandard directory <lib dir>
1579   LIBS        libraries to pass to the linker, e.g. -l<library>
1580   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1581               you have headers in a nonstandard directory <include dir>
1582   CPP         C preprocessor
1583   PKG_CONFIG  path to pkg-config utility
1584   PKG_CONFIG_PATH
1585               directories to add to pkg-config's search path
1586   PKG_CONFIG_LIBDIR
1587               path overriding pkg-config's built-in search path
1588   XML_CFLAGS  C compiler flags for XML, overriding pkg-config
1589   XML_LIBS    linker flags for XML, overriding pkg-config
1590   SQLITE_CFLAGS
1591               C compiler flags for SQLITE, overriding pkg-config
1592   SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
1593   GTKDOC_DEPS_CFLAGS
1594               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1595   GTKDOC_DEPS_LIBS
1596               linker flags for GTKDOC_DEPS, overriding pkg-config
1597
1598 Use these variables to override the choices made by `configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1600
1601 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libsoup>.
1602 _ACEOF
1603 ac_status=$?
1604 fi
1605
1606 if test "$ac_init_help" = "recursive"; then
1607   # If there are subdirs, report their specific --help.
1608   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609     test -d "$ac_dir" ||
1610       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1611       continue
1612     ac_builddir=.
1613
1614 case "$ac_dir" in
1615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *)
1617   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1618   # A ".." for each directory in $ac_dir_suffix.
1619   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1620   case $ac_top_builddir_sub in
1621   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623   esac ;;
1624 esac
1625 ac_abs_top_builddir=$ac_pwd
1626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627 # for backward compatibility:
1628 ac_top_builddir=$ac_top_build_prefix
1629
1630 case $srcdir in
1631   .)  # We are building in place.
1632     ac_srcdir=.
1633     ac_top_srcdir=$ac_top_builddir_sub
1634     ac_abs_top_srcdir=$ac_pwd ;;
1635   [\\/]* | ?:[\\/]* )  # Absolute name.
1636     ac_srcdir=$srcdir$ac_dir_suffix;
1637     ac_top_srcdir=$srcdir
1638     ac_abs_top_srcdir=$srcdir ;;
1639   *) # Relative name.
1640     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641     ac_top_srcdir=$ac_top_build_prefix$srcdir
1642     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1643 esac
1644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645
1646     cd "$ac_dir" || { ac_status=$?; continue; }
1647     # Check for guested configure.
1648     if test -f "$ac_srcdir/configure.gnu"; then
1649       echo &&
1650       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651     elif test -f "$ac_srcdir/configure"; then
1652       echo &&
1653       $SHELL "$ac_srcdir/configure" --help=recursive
1654     else
1655       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656     fi || ac_status=$?
1657     cd "$ac_pwd" || { ac_status=$?; break; }
1658   done
1659 fi
1660
1661 test -n "$ac_init_help" && exit $ac_status
1662 if $ac_init_version; then
1663   cat <<\_ACEOF
1664 libsoup configure 2.46.0
1665 generated by GNU Autoconf 2.69
1666
1667 Copyright (C) 2012 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1670 _ACEOF
1671   exit
1672 fi
1673
1674 ## ------------------------ ##
1675 ## Autoconf initialization. ##
1676 ## ------------------------ ##
1677
1678 # ac_fn_c_try_compile LINENO
1679 # --------------------------
1680 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_compile ()
1682 {
1683   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684   rm -f conftest.$ac_objext
1685   if { { ac_try="$ac_compile"
1686 case "(($ac_try" in
1687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688   *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692   (eval "$ac_compile") 2>conftest.err
1693   ac_status=$?
1694   if test -s conftest.err; then
1695     grep -v '^ *+' conftest.err >conftest.er1
1696     cat conftest.er1 >&5
1697     mv -f conftest.er1 conftest.err
1698   fi
1699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700   test $ac_status = 0; } && {
1701          test -z "$ac_c_werror_flag" ||
1702          test ! -s conftest.err
1703        } && test -s conftest.$ac_objext; then :
1704   ac_retval=0
1705 else
1706   $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709         ac_retval=1
1710 fi
1711   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712   as_fn_set_status $ac_retval
1713
1714 } # ac_fn_c_try_compile
1715
1716 # ac_fn_c_try_link LINENO
1717 # -----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_link ()
1720 {
1721   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722   rm -f conftest.$ac_objext conftest$ac_exeext
1723   if { { ac_try="$ac_link"
1724 case "(($ac_try" in
1725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726   *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730   (eval "$ac_link") 2>conftest.err
1731   ac_status=$?
1732   if test -s conftest.err; then
1733     grep -v '^ *+' conftest.err >conftest.er1
1734     cat conftest.er1 >&5
1735     mv -f conftest.er1 conftest.err
1736   fi
1737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738   test $ac_status = 0; } && {
1739          test -z "$ac_c_werror_flag" ||
1740          test ! -s conftest.err
1741        } && test -s conftest$ac_exeext && {
1742          test "$cross_compiling" = yes ||
1743          test -x conftest$ac_exeext
1744        }; then :
1745   ac_retval=0
1746 else
1747   $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1749
1750         ac_retval=1
1751 fi
1752   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1753   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1754   # interfere with the next link command; also delete a directory that is
1755   # left behind by Apple's compiler.  We do this before executing the actions.
1756   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758   as_fn_set_status $ac_retval
1759
1760 } # ac_fn_c_try_link
1761
1762 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists and can be compiled using the include files in
1765 # INCLUDES, setting the cache variable VAR accordingly.
1766 ac_fn_c_check_header_compile ()
1767 {
1768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \${$3+:} false; then :
1772   $as_echo_n "(cached) " >&6
1773 else
1774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h.  */
1776 $4
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780   eval "$3=yes"
1781 else
1782   eval "$3=no"
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 fi
1786 eval ac_res=\$$3
1787                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791 } # ac_fn_c_check_header_compile
1792
1793 # ac_fn_c_try_cpp LINENO
1794 # ----------------------
1795 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_cpp ()
1797 {
1798   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799   if { { ac_try="$ac_cpp conftest.$ac_ext"
1800 case "(($ac_try" in
1801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802   *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1807   ac_status=$?
1808   if test -s conftest.err; then
1809     grep -v '^ *+' conftest.err >conftest.er1
1810     cat conftest.er1 >&5
1811     mv -f conftest.er1 conftest.err
1812   fi
1813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814   test $ac_status = 0; } > conftest.i && {
1815          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1816          test ! -s conftest.err
1817        }; then :
1818   ac_retval=0
1819 else
1820   $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823     ac_retval=1
1824 fi
1825   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826   as_fn_set_status $ac_retval
1827
1828 } # ac_fn_c_try_cpp
1829
1830 # ac_fn_c_try_run LINENO
1831 # ----------------------
1832 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1833 # that executables *can* be run.
1834 ac_fn_c_try_run ()
1835 {
1836   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837   if { { ac_try="$ac_link"
1838 case "(($ac_try" in
1839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840   *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844   (eval "$ac_link") 2>&5
1845   ac_status=$?
1846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1848   { { case "(($ac_try" in
1849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850   *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854   (eval "$ac_try") 2>&5
1855   ac_status=$?
1856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857   test $ac_status = 0; }; }; then :
1858   ac_retval=0
1859 else
1860   $as_echo "$as_me: program exited with status $ac_status" >&5
1861        $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1863
1864        ac_retval=$ac_status
1865 fi
1866   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1867   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868   as_fn_set_status $ac_retval
1869
1870 } # ac_fn_c_try_run
1871
1872 # ac_fn_c_check_func LINENO FUNC VAR
1873 # ----------------------------------
1874 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1875 ac_fn_c_check_func ()
1876 {
1877   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if eval \${$3+:} false; then :
1881   $as_echo_n "(cached) " >&6
1882 else
1883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h.  */
1885 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1887 #define $2 innocuous_$2
1888
1889 /* System header to define __stub macros and hopefully few prototypes,
1890     which can conflict with char $2 (); below.
1891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1892     <limits.h> exists even on freestanding compilers.  */
1893
1894 #ifdef __STDC__
1895 # include <limits.h>
1896 #else
1897 # include <assert.h>
1898 #endif
1899
1900 #undef $2
1901
1902 /* Override any GCC internal prototype to avoid an error.
1903    Use char because int might match the return type of a GCC
1904    builtin and then its argument prototype would still apply.  */
1905 #ifdef __cplusplus
1906 extern "C"
1907 #endif
1908 char $2 ();
1909 /* The GNU C library defines this for functions which it implements
1910     to always fail with ENOSYS.  Some functions are actually named
1911     something starting with __ and the normal name is an alias.  */
1912 #if defined __stub_$2 || defined __stub___$2
1913 choke me
1914 #endif
1915
1916 int
1917 main ()
1918 {
1919 return $2 ();
1920   ;
1921   return 0;
1922 }
1923 _ACEOF
1924 if ac_fn_c_try_link "$LINENO"; then :
1925   eval "$3=yes"
1926 else
1927   eval "$3=no"
1928 fi
1929 rm -f core conftest.err conftest.$ac_objext \
1930     conftest$ac_exeext conftest.$ac_ext
1931 fi
1932 eval ac_res=\$$3
1933                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936
1937 } # ac_fn_c_check_func
1938 cat >config.log <<_ACEOF
1939 This file contains any messages produced by compilers while
1940 running configure, to aid debugging if configure makes a mistake.
1941
1942 It was created by libsoup $as_me 2.46.0, which was
1943 generated by GNU Autoconf 2.69.  Invocation command line was
1944
1945   $ $0 $@
1946
1947 _ACEOF
1948 exec 5>>config.log
1949 {
1950 cat <<_ASUNAME
1951 ## --------- ##
1952 ## Platform. ##
1953 ## --------- ##
1954
1955 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1956 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1957 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1958 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1959 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1960
1961 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1962 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1963
1964 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1965 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1966 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1967 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1968 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1969 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1970 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1971
1972 _ASUNAME
1973
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1976 do
1977   IFS=$as_save_IFS
1978   test -z "$as_dir" && as_dir=.
1979     $as_echo "PATH: $as_dir"
1980   done
1981 IFS=$as_save_IFS
1982
1983 } >&5
1984
1985 cat >&5 <<_ACEOF
1986
1987
1988 ## ----------- ##
1989 ## Core tests. ##
1990 ## ----------- ##
1991
1992 _ACEOF
1993
1994
1995 # Keep a trace of the command line.
1996 # Strip out --no-create and --no-recursion so they do not pile up.
1997 # Strip out --silent because we don't want to record it for future runs.
1998 # Also quote any args containing shell meta-characters.
1999 # Make two passes to allow for proper duplicate-argument suppression.
2000 ac_configure_args=
2001 ac_configure_args0=
2002 ac_configure_args1=
2003 ac_must_keep_next=false
2004 for ac_pass in 1 2
2005 do
2006   for ac_arg
2007   do
2008     case $ac_arg in
2009     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2010     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2011     | -silent | --silent | --silen | --sile | --sil)
2012       continue ;;
2013     *\'*)
2014       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2015     esac
2016     case $ac_pass in
2017     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2018     2)
2019       as_fn_append ac_configure_args1 " '$ac_arg'"
2020       if test $ac_must_keep_next = true; then
2021         ac_must_keep_next=false # Got value, back to normal.
2022       else
2023         case $ac_arg in
2024           *=* | --config-cache | -C | -disable-* | --disable-* \
2025           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2026           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2027           | -with-* | --with-* | -without-* | --without-* | --x)
2028             case "$ac_configure_args0 " in
2029               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2030             esac
2031             ;;
2032           -* ) ac_must_keep_next=true ;;
2033         esac
2034       fi
2035       as_fn_append ac_configure_args " '$ac_arg'"
2036       ;;
2037     esac
2038   done
2039 done
2040 { ac_configure_args0=; unset ac_configure_args0;}
2041 { ac_configure_args1=; unset ac_configure_args1;}
2042
2043 # When interrupted or exit'd, cleanup temporary files, and complete
2044 # config.log.  We remove comments because anyway the quotes in there
2045 # would cause problems or look ugly.
2046 # WARNING: Use '\'' to represent an apostrophe within the trap.
2047 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2048 trap 'exit_status=$?
2049   # Save into config.log some information that might help in debugging.
2050   {
2051     echo
2052
2053     $as_echo "## ---------------- ##
2054 ## Cache variables. ##
2055 ## ---------------- ##"
2056     echo
2057     # The following way of writing the cache mishandles newlines in values,
2058 (
2059   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2060     eval ac_val=\$$ac_var
2061     case $ac_val in #(
2062     *${as_nl}*)
2063       case $ac_var in #(
2064       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2065 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2066       esac
2067       case $ac_var in #(
2068       _ | IFS | as_nl) ;; #(
2069       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2070       *) { eval $ac_var=; unset $ac_var;} ;;
2071       esac ;;
2072     esac
2073   done
2074   (set) 2>&1 |
2075     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2076     *${as_nl}ac_space=\ *)
2077       sed -n \
2078         "s/'\''/'\''\\\\'\'''\''/g;
2079           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2080       ;; #(
2081     *)
2082       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2083       ;;
2084     esac |
2085     sort
2086 )
2087     echo
2088
2089     $as_echo "## ----------------- ##
2090 ## Output variables. ##
2091 ## ----------------- ##"
2092     echo
2093     for ac_var in $ac_subst_vars
2094     do
2095       eval ac_val=\$$ac_var
2096       case $ac_val in
2097       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098       esac
2099       $as_echo "$ac_var='\''$ac_val'\''"
2100     done | sort
2101     echo
2102
2103     if test -n "$ac_subst_files"; then
2104       $as_echo "## ------------------- ##
2105 ## File substitutions. ##
2106 ## ------------------- ##"
2107       echo
2108       for ac_var in $ac_subst_files
2109       do
2110         eval ac_val=\$$ac_var
2111         case $ac_val in
2112         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2113         esac
2114         $as_echo "$ac_var='\''$ac_val'\''"
2115       done | sort
2116       echo
2117     fi
2118
2119     if test -s confdefs.h; then
2120       $as_echo "## ----------- ##
2121 ## confdefs.h. ##
2122 ## ----------- ##"
2123       echo
2124       cat confdefs.h
2125       echo
2126     fi
2127     test "$ac_signal" != 0 &&
2128       $as_echo "$as_me: caught signal $ac_signal"
2129     $as_echo "$as_me: exit $exit_status"
2130   } >&5
2131   rm -f core *.core core.conftest.* &&
2132     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2133     exit $exit_status
2134 ' 0
2135 for ac_signal in 1 2 13 15; do
2136   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2137 done
2138 ac_signal=0
2139
2140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2141 rm -f -r conftest* confdefs.h
2142
2143 $as_echo "/* confdefs.h */" > confdefs.h
2144
2145 # Predefined preprocessor variables.
2146
2147 cat >>confdefs.h <<_ACEOF
2148 #define PACKAGE_NAME "$PACKAGE_NAME"
2149 _ACEOF
2150
2151 cat >>confdefs.h <<_ACEOF
2152 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2153 _ACEOF
2154
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2157 _ACEOF
2158
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_STRING "$PACKAGE_STRING"
2161 _ACEOF
2162
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2165 _ACEOF
2166
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_URL "$PACKAGE_URL"
2169 _ACEOF
2170
2171
2172 # Let the site file select an alternate cache file if it wants to.
2173 # Prefer an explicitly selected file to automatically selected ones.
2174 ac_site_file1=NONE
2175 ac_site_file2=NONE
2176 if test -n "$CONFIG_SITE"; then
2177   # We do not want a PATH search for config.site.
2178   case $CONFIG_SITE in #((
2179     -*)  ac_site_file1=./$CONFIG_SITE;;
2180     */*) ac_site_file1=$CONFIG_SITE;;
2181     *)   ac_site_file1=./$CONFIG_SITE;;
2182   esac
2183 elif test "x$prefix" != xNONE; then
2184   ac_site_file1=$prefix/share/config.site
2185   ac_site_file2=$prefix/etc/config.site
2186 else
2187   ac_site_file1=$ac_default_prefix/share/config.site
2188   ac_site_file2=$ac_default_prefix/etc/config.site
2189 fi
2190 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2191 do
2192   test "x$ac_site_file" = xNONE && continue
2193   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2194     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2195 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2196     sed 's/^/| /' "$ac_site_file" >&5
2197     . "$ac_site_file" \
2198       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2200 as_fn_error $? "failed to load site script $ac_site_file
2201 See \`config.log' for more details" "$LINENO" 5; }
2202   fi
2203 done
2204
2205 if test -r "$cache_file"; then
2206   # Some versions of bash will fail to source /dev/null (special files
2207   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2208   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2209     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2210 $as_echo "$as_me: loading cache $cache_file" >&6;}
2211     case $cache_file in
2212       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2213       *)                      . "./$cache_file";;
2214     esac
2215   fi
2216 else
2217   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2218 $as_echo "$as_me: creating cache $cache_file" >&6;}
2219   >$cache_file
2220 fi
2221
2222 # Check that the precious variables saved in the cache have kept the same
2223 # value.
2224 ac_cache_corrupted=false
2225 for ac_var in $ac_precious_vars; do
2226   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2227   eval ac_new_set=\$ac_env_${ac_var}_set
2228   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2229   eval ac_new_val=\$ac_env_${ac_var}_value
2230   case $ac_old_set,$ac_new_set in
2231     set,)
2232       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2233 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2234       ac_cache_corrupted=: ;;
2235     ,set)
2236       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2237 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2238       ac_cache_corrupted=: ;;
2239     ,);;
2240     *)
2241       if test "x$ac_old_val" != "x$ac_new_val"; then
2242         # differences in whitespace do not lead to failure.
2243         ac_old_val_w=`echo x $ac_old_val`
2244         ac_new_val_w=`echo x $ac_new_val`
2245         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2246           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2247 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2248           ac_cache_corrupted=:
2249         else
2250           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2251 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2252           eval $ac_var=\$ac_old_val
2253         fi
2254         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2255 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2256         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2257 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2258       fi;;
2259   esac
2260   # Pass precious variables to config.status.
2261   if test "$ac_new_set" = set; then
2262     case $ac_new_val in
2263     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2264     *) ac_arg=$ac_var=$ac_new_val ;;
2265     esac
2266     case " $ac_configure_args " in
2267       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2268       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2269     esac
2270   fi
2271 done
2272 if $ac_cache_corrupted; then
2273   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2275   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2276 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2277   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2278 fi
2279 ## -------------------- ##
2280 ## Main body of script. ##
2281 ## -------------------- ##
2282
2283 ac_ext=c
2284 ac_cpp='$CPP $CPPFLAGS'
2285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2288
2289
2290
2291
2292 ac_aux_dir=
2293 for ac_dir in build-aux "$srcdir"/build-aux; do
2294   if test -f "$ac_dir/install-sh"; then
2295     ac_aux_dir=$ac_dir
2296     ac_install_sh="$ac_aux_dir/install-sh -c"
2297     break
2298   elif test -f "$ac_dir/install.sh"; then
2299     ac_aux_dir=$ac_dir
2300     ac_install_sh="$ac_aux_dir/install.sh -c"
2301     break
2302   elif test -f "$ac_dir/shtool"; then
2303     ac_aux_dir=$ac_dir
2304     ac_install_sh="$ac_aux_dir/shtool install -c"
2305     break
2306   fi
2307 done
2308 if test -z "$ac_aux_dir"; then
2309   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2310 fi
2311
2312 # These three variables are undocumented and unsupported,
2313 # and are intended to be withdrawn in a future Autoconf release.
2314 # They can cause serious problems if a builder's source tree is in a directory
2315 # whose full name contains unusual characters.
2316 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2317 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2318 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2319
2320
2321
2322 am__api_version='1.13'
2323
2324 # Find a good install program.  We prefer a C program (faster),
2325 # so one script is as good as another.  But avoid the broken or
2326 # incompatible versions:
2327 # SysV /etc/install, /usr/sbin/install
2328 # SunOS /usr/etc/install
2329 # IRIX /sbin/install
2330 # AIX /bin/install
2331 # AmigaOS /C/install, which installs bootblocks on floppy discs
2332 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2333 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2334 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2335 # OS/2's system install, which has a completely different semantic
2336 # ./install, which can be erroneously created by make from ./install.sh.
2337 # Reject install programs that cannot install multiple files.
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2339 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2340 if test -z "$INSTALL"; then
2341 if ${ac_cv_path_install+:} false; then :
2342   $as_echo_n "(cached) " >&6
2343 else
2344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH
2346 do
2347   IFS=$as_save_IFS
2348   test -z "$as_dir" && as_dir=.
2349     # Account for people who put trailing slashes in PATH elements.
2350 case $as_dir/ in #((
2351   ./ | .// | /[cC]/* | \
2352   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2353   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2354   /usr/ucb/* ) ;;
2355   *)
2356     # OSF1 and SCO ODT 3.0 have their own names for install.
2357     # Don't use installbsd from OSF since it installs stuff as root
2358     # by default.
2359     for ac_prog in ginstall scoinst install; do
2360       for ac_exec_ext in '' $ac_executable_extensions; do
2361         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2362           if test $ac_prog = install &&
2363             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2364             # AIX install.  It has an incompatible calling convention.
2365             :
2366           elif test $ac_prog = install &&
2367             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2368             # program-specific install script used by HP pwplus--don't use.
2369             :
2370           else
2371             rm -rf conftest.one conftest.two conftest.dir
2372             echo one > conftest.one
2373             echo two > conftest.two
2374             mkdir conftest.dir
2375             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2376               test -s conftest.one && test -s conftest.two &&
2377               test -s conftest.dir/conftest.one &&
2378               test -s conftest.dir/conftest.two
2379             then
2380               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2381               break 3
2382             fi
2383           fi
2384         fi
2385       done
2386     done
2387     ;;
2388 esac
2389
2390   done
2391 IFS=$as_save_IFS
2392
2393 rm -rf conftest.one conftest.two conftest.dir
2394
2395 fi
2396   if test "${ac_cv_path_install+set}" = set; then
2397     INSTALL=$ac_cv_path_install
2398   else
2399     # As a last resort, use the slow shell script.  Don't cache a
2400     # value for INSTALL within a source directory, because that will
2401     # break other packages using the cache if that directory is
2402     # removed, or if the value is a relative name.
2403     INSTALL=$ac_install_sh
2404   fi
2405 fi
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2407 $as_echo "$INSTALL" >&6; }
2408
2409 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2410 # It thinks the first close brace ends the variable substitution.
2411 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2412
2413 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2414
2415 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2416
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2418 $as_echo_n "checking whether build environment is sane... " >&6; }
2419 # Reject unsafe characters in $srcdir or the absolute working directory
2420 # name.  Accept space and tab only in the latter.
2421 am_lf='
2422 '
2423 case `pwd` in
2424   *[\\\"\#\$\&\'\`$am_lf]*)
2425     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2426 esac
2427 case $srcdir in
2428   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2429     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2430 esac
2431
2432 # Do 'set' in a subshell so we don't clobber the current shell's
2433 # arguments.  Must try -L first in case configure is actually a
2434 # symlink; some systems play weird games with the mod time of symlinks
2435 # (eg FreeBSD returns the mod time of the symlink's containing
2436 # directory).
2437 if (
2438    am_has_slept=no
2439    for am_try in 1 2; do
2440      echo "timestamp, slept: $am_has_slept" > conftest.file
2441      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2442      if test "$*" = "X"; then
2443         # -L didn't work.
2444         set X `ls -t "$srcdir/configure" conftest.file`
2445      fi
2446      if test "$*" != "X $srcdir/configure conftest.file" \
2447         && test "$*" != "X conftest.file $srcdir/configure"; then
2448
2449         # If neither matched, then we have a broken ls.  This can happen
2450         # if, for instance, CONFIG_SHELL is bash and it inherits a
2451         # broken ls alias from the environment.  This has actually
2452         # happened.  Such a system could not be considered "sane".
2453         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2454   alias in your environment" "$LINENO" 5
2455      fi
2456      if test "$2" = conftest.file || test $am_try -eq 2; then
2457        break
2458      fi
2459      # Just in case.
2460      sleep 1
2461      am_has_slept=yes
2462    done
2463    test "$2" = conftest.file
2464    )
2465 then
2466    # Ok.
2467    :
2468 else
2469    as_fn_error $? "newly created file is older than distributed files!
2470 Check your system clock" "$LINENO" 5
2471 fi
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2473 $as_echo "yes" >&6; }
2474 # If we didn't sleep, we still need to ensure time stamps of config.status and
2475 # generated files are strictly newer.
2476 am_sleep_pid=
2477 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2478   ( sleep 1 ) &
2479   am_sleep_pid=$!
2480 fi
2481
2482 rm -f conftest.file
2483
2484 test "$program_prefix" != NONE &&
2485   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2486 # Use a double $ so make ignores it.
2487 test "$program_suffix" != NONE &&
2488   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2489 # Double any \ or $.
2490 # By default was `s,x,x', remove it if useless.
2491 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2492 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2493
2494 # expand $ac_aux_dir to an absolute path
2495 am_aux_dir=`cd $ac_aux_dir && pwd`
2496
2497 if test x"${MISSING+set}" != xset; then
2498   case $am_aux_dir in
2499   *\ * | *\     *)
2500     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2501   *)
2502     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2503   esac
2504 fi
2505 # Use eval to expand $SHELL
2506 if eval "$MISSING --is-lightweight"; then
2507   am_missing_run="$MISSING "
2508 else
2509   am_missing_run=
2510   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2511 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2512 fi
2513
2514 if test x"${install_sh}" != xset; then
2515   case $am_aux_dir in
2516   *\ * | *\     *)
2517     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2518   *)
2519     install_sh="\${SHELL} $am_aux_dir/install-sh"
2520   esac
2521 fi
2522
2523 # Installed binaries are usually stripped using 'strip' when the user
2524 # run "make install-strip".  However 'strip' might not be the right
2525 # tool to use in cross-compilation environments, therefore Automake
2526 # will honor the 'STRIP' environment variable to overrule this program.
2527 if test "$cross_compiling" != no; then
2528   if test -n "$ac_tool_prefix"; then
2529   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2530 set dummy ${ac_tool_prefix}strip; ac_word=$2
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2532 $as_echo_n "checking for $ac_word... " >&6; }
2533 if ${ac_cv_prog_STRIP+:} false; then :
2534   $as_echo_n "(cached) " >&6
2535 else
2536   if test -n "$STRIP"; then
2537   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2538 else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2541 do
2542   IFS=$as_save_IFS
2543   test -z "$as_dir" && as_dir=.
2544     for ac_exec_ext in '' $ac_executable_extensions; do
2545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2546     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548     break 2
2549   fi
2550 done
2551   done
2552 IFS=$as_save_IFS
2553
2554 fi
2555 fi
2556 STRIP=$ac_cv_prog_STRIP
2557 if test -n "$STRIP"; then
2558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2559 $as_echo "$STRIP" >&6; }
2560 else
2561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2562 $as_echo "no" >&6; }
2563 fi
2564
2565
2566 fi
2567 if test -z "$ac_cv_prog_STRIP"; then
2568   ac_ct_STRIP=$STRIP
2569   # Extract the first word of "strip", so it can be a program name with args.
2570 set dummy strip; ac_word=$2
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2574   $as_echo_n "(cached) " >&6
2575 else
2576   if test -n "$ac_ct_STRIP"; then
2577   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582   IFS=$as_save_IFS
2583   test -z "$as_dir" && as_dir=.
2584     for ac_exec_ext in '' $ac_executable_extensions; do
2585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2586     ac_cv_prog_ac_ct_STRIP="strip"
2587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588     break 2
2589   fi
2590 done
2591   done
2592 IFS=$as_save_IFS
2593
2594 fi
2595 fi
2596 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2597 if test -n "$ac_ct_STRIP"; then
2598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2599 $as_echo "$ac_ct_STRIP" >&6; }
2600 else
2601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 $as_echo "no" >&6; }
2603 fi
2604
2605   if test "x$ac_ct_STRIP" = x; then
2606     STRIP=":"
2607   else
2608     case $cross_compiling:$ac_tool_warned in
2609 yes:)
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2612 ac_tool_warned=yes ;;
2613 esac
2614     STRIP=$ac_ct_STRIP
2615   fi
2616 else
2617   STRIP="$ac_cv_prog_STRIP"
2618 fi
2619
2620 fi
2621 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2622
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2624 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2625 if test -z "$MKDIR_P"; then
2626   if ${ac_cv_path_mkdir+:} false; then :
2627   $as_echo_n "(cached) " >&6
2628 else
2629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2631 do
2632   IFS=$as_save_IFS
2633   test -z "$as_dir" && as_dir=.
2634     for ac_prog in mkdir gmkdir; do
2635          for ac_exec_ext in '' $ac_executable_extensions; do
2636            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2637            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2638              'mkdir (GNU coreutils) '* | \
2639              'mkdir (coreutils) '* | \
2640              'mkdir (fileutils) '4.1*)
2641                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2642                break 3;;
2643            esac
2644          done
2645        done
2646   done
2647 IFS=$as_save_IFS
2648
2649 fi
2650
2651   test -d ./--version && rmdir ./--version
2652   if test "${ac_cv_path_mkdir+set}" = set; then
2653     MKDIR_P="$ac_cv_path_mkdir -p"
2654   else
2655     # As a last resort, use the slow shell script.  Don't cache a
2656     # value for MKDIR_P within a source directory, because that will
2657     # break other packages using the cache if that directory is
2658     # removed, or if the value is a relative name.
2659     MKDIR_P="$ac_install_sh -d"
2660   fi
2661 fi
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2663 $as_echo "$MKDIR_P" >&6; }
2664
2665 for ac_prog in gawk mawk nawk awk
2666 do
2667   # Extract the first word of "$ac_prog", so it can be a program name with args.
2668 set dummy $ac_prog; ac_word=$2
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670 $as_echo_n "checking for $ac_word... " >&6; }
2671 if ${ac_cv_prog_AWK+:} false; then :
2672   $as_echo_n "(cached) " >&6
2673 else
2674   if test -n "$AWK"; then
2675   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680   IFS=$as_save_IFS
2681   test -z "$as_dir" && as_dir=.
2682     for ac_exec_ext in '' $ac_executable_extensions; do
2683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684     ac_cv_prog_AWK="$ac_prog"
2685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686     break 2
2687   fi
2688 done
2689   done
2690 IFS=$as_save_IFS
2691
2692 fi
2693 fi
2694 AWK=$ac_cv_prog_AWK
2695 if test -n "$AWK"; then
2696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2697 $as_echo "$AWK" >&6; }
2698 else
2699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700 $as_echo "no" >&6; }
2701 fi
2702
2703
2704   test -n "$AWK" && break
2705 done
2706
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2708 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2709 set x ${MAKE-make}
2710 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2711 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2712   $as_echo_n "(cached) " >&6
2713 else
2714   cat >conftest.make <<\_ACEOF
2715 SHELL = /bin/sh
2716 all:
2717         @echo '@@@%%%=$(MAKE)=@@@%%%'
2718 _ACEOF
2719 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2720 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2721   *@@@%%%=?*=@@@%%%*)
2722     eval ac_cv_prog_make_${ac_make}_set=yes;;
2723   *)
2724     eval ac_cv_prog_make_${ac_make}_set=no;;
2725 esac
2726 rm -f conftest.make
2727 fi
2728 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2730 $as_echo "yes" >&6; }
2731   SET_MAKE=
2732 else
2733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 $as_echo "no" >&6; }
2735   SET_MAKE="MAKE=${MAKE-make}"
2736 fi
2737
2738 rm -rf .tst 2>/dev/null
2739 mkdir .tst 2>/dev/null
2740 if test -d .tst; then
2741   am__leading_dot=.
2742 else
2743   am__leading_dot=_
2744 fi
2745 rmdir .tst 2>/dev/null
2746
2747 # Check whether --enable-silent-rules was given.
2748 if test "${enable_silent_rules+set}" = set; then :
2749   enableval=$enable_silent_rules;
2750 fi
2751
2752 case $enable_silent_rules in # (((
2753   yes) AM_DEFAULT_VERBOSITY=0;;
2754    no) AM_DEFAULT_VERBOSITY=1;;
2755     *) AM_DEFAULT_VERBOSITY=1;;
2756 esac
2757 am_make=${MAKE-make}
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2759 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2760 if ${am_cv_make_support_nested_variables+:} false; then :
2761   $as_echo_n "(cached) " >&6
2762 else
2763   if $as_echo 'TRUE=$(BAR$(V))
2764 BAR0=false
2765 BAR1=true
2766 V=1
2767 am__doit:
2768         @$(TRUE)
2769 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2770   am_cv_make_support_nested_variables=yes
2771 else
2772   am_cv_make_support_nested_variables=no
2773 fi
2774 fi
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2776 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2777 if test $am_cv_make_support_nested_variables = yes; then
2778     AM_V='$(V)'
2779   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2780 else
2781   AM_V=$AM_DEFAULT_VERBOSITY
2782   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2783 fi
2784 AM_BACKSLASH='\'
2785
2786 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2787   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2788   # is not polluted with repeated "-I."
2789   am__isrc=' -I$(srcdir)'
2790   # test to see if srcdir already configured
2791   if test -f $srcdir/config.status; then
2792     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2793   fi
2794 fi
2795
2796 # test whether we have cygpath
2797 if test -z "$CYGPATH_W"; then
2798   if (cygpath --version) >/dev/null 2>/dev/null; then
2799     CYGPATH_W='cygpath -w'
2800   else
2801     CYGPATH_W=echo
2802   fi
2803 fi
2804
2805
2806 # Define the identity of the package.
2807  PACKAGE='libsoup'
2808  VERSION='2.46.0'
2809
2810
2811 cat >>confdefs.h <<_ACEOF
2812 #define PACKAGE "$PACKAGE"
2813 _ACEOF
2814
2815
2816 cat >>confdefs.h <<_ACEOF
2817 #define VERSION "$VERSION"
2818 _ACEOF
2819
2820 # Some tools Automake needs.
2821
2822 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2823
2824
2825 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2826
2827
2828 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2829
2830
2831 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2832
2833
2834 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2835
2836 # For better backward compatibility.  To be removed once Automake 1.9.x
2837 # dies out for good.  For more background, see:
2838 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2839 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2840 mkdir_p='$(MKDIR_P)'
2841
2842 # We need awk for the "check" target.  The system "awk" is bad on
2843 # some platforms.
2844 # Always define AMTAR for backward compatibility.  Yes, it's still used
2845 # in the wild :-(  We should find a proper way to deprecate it ...
2846 AMTAR='$${TAR-tar}'
2847
2848
2849 # We'll loop over all known methods to create a tar archive until one works.
2850 _am_tools='gnutar  pax cpio none'
2851
2852 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2853
2854
2855
2856
2857
2858
2859 # Check whether --enable-silent-rules was given.
2860 if test "${enable_silent_rules+set}" = set; then :
2861   enableval=$enable_silent_rules;
2862 fi
2863
2864 case $enable_silent_rules in # (((
2865   yes) AM_DEFAULT_VERBOSITY=0;;
2866    no) AM_DEFAULT_VERBOSITY=1;;
2867     *) AM_DEFAULT_VERBOSITY=0;;
2868 esac
2869 am_make=${MAKE-make}
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2871 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2872 if ${am_cv_make_support_nested_variables+:} false; then :
2873   $as_echo_n "(cached) " >&6
2874 else
2875   if $as_echo 'TRUE=$(BAR$(V))
2876 BAR0=false
2877 BAR1=true
2878 V=1
2879 am__doit:
2880         @$(TRUE)
2881 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2882   am_cv_make_support_nested_variables=yes
2883 else
2884   am_cv_make_support_nested_variables=no
2885 fi
2886 fi
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2888 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2889 if test $am_cv_make_support_nested_variables = yes; then
2890     AM_V='$(V)'
2891   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2892 else
2893   AM_V=$AM_DEFAULT_VERBOSITY
2894   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2895 fi
2896 AM_BACKSLASH='\'
2897
2898
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2900 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2901 set x ${MAKE-make}
2902 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2903 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2904   $as_echo_n "(cached) " >&6
2905 else
2906   cat >conftest.make <<\_ACEOF
2907 SHELL = /bin/sh
2908 all:
2909         @echo '@@@%%%=$(MAKE)=@@@%%%'
2910 _ACEOF
2911 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2912 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2913   *@@@%%%=?*=@@@%%%*)
2914     eval ac_cv_prog_make_${ac_make}_set=yes;;
2915   *)
2916     eval ac_cv_prog_make_${ac_make}_set=no;;
2917 esac
2918 rm -f conftest.make
2919 fi
2920 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2922 $as_echo "yes" >&6; }
2923   SET_MAKE=
2924 else
2925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 $as_echo "no" >&6; }
2927   SET_MAKE="MAKE=${MAKE-make}"
2928 fi
2929
2930
2931 SOUP_MAJOR_VERSION=2
2932 SOUP_MINOR_VERSION=46
2933 SOUP_MICRO_VERSION=0
2934
2935
2936
2937
2938 SOUP_API_VERSION=2.4
2939
2940
2941 # Increment on interface addition. Reset on removal.
2942 SOUP_AGE=7
2943
2944 # Increment on interface add, remove, or change.
2945 SOUP_CURRENT=8
2946
2947 # Increment on source change. Reset when CURRENT changes.
2948 SOUP_REVISION=0
2949
2950
2951
2952
2953
2954
2955 debug_default=minimum
2956
2957 # Declare --enable-* args and collect ac_help strings
2958 # Check whether --enable-debug was given.
2959 if test "${enable_debug+set}" = set; then :
2960   enableval=$enable_debug;
2961 else
2962   enable_debug=$debug_default
2963 fi
2964
2965
2966 # Set the debug flags
2967 if test "x$enable_debug" = "xyes"; then
2968         test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
2969         SOUP_DEBUG_FLAGS="-DG_ENABLE_DEBUG"
2970 else
2971         if test "x$enable_debug" = "xno"; then
2972                 SOUP_DEBUG_FLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
2973         fi
2974 fi
2975
2976
2977
2978
2979 ac_ext=c
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984 if test -n "$ac_tool_prefix"; then
2985   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2986 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_CC+:} false; then :
2990   $as_echo_n "(cached) " >&6
2991 else
2992   if test -n "$CC"; then
2993   ac_cv_prog_CC="$CC" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998   IFS=$as_save_IFS
2999   test -z "$as_dir" && as_dir=.
3000     for ac_exec_ext in '' $ac_executable_extensions; do
3001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004     break 2
3005   fi
3006 done
3007   done
3008 IFS=$as_save_IFS
3009
3010 fi
3011 fi
3012 CC=$ac_cv_prog_CC
3013 if test -n "$CC"; then
3014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3015 $as_echo "$CC" >&6; }
3016 else
3017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 fi
3020
3021
3022 fi
3023 if test -z "$ac_cv_prog_CC"; then
3024   ac_ct_CC=$CC
3025   # Extract the first word of "gcc", so it can be a program name with args.
3026 set dummy gcc; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3030   $as_echo_n "(cached) " >&6
3031 else
3032   if test -n "$ac_ct_CC"; then
3033   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038   IFS=$as_save_IFS
3039   test -z "$as_dir" && as_dir=.
3040     for ac_exec_ext in '' $ac_executable_extensions; do
3041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042     ac_cv_prog_ac_ct_CC="gcc"
3043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044     break 2
3045   fi
3046 done
3047   done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3053 if test -n "$ac_ct_CC"; then
3054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3055 $as_echo "$ac_ct_CC" >&6; }
3056 else
3057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061   if test "x$ac_ct_CC" = x; then
3062     CC=""
3063   else
3064     case $cross_compiling:$ac_tool_warned in
3065 yes:)
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3068 ac_tool_warned=yes ;;
3069 esac
3070     CC=$ac_ct_CC
3071   fi
3072 else
3073   CC="$ac_cv_prog_CC"
3074 fi
3075
3076 if test -z "$CC"; then
3077           if test -n "$ac_tool_prefix"; then
3078     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3079 set dummy ${ac_tool_prefix}cc; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if ${ac_cv_prog_CC+:} false; then :
3083   $as_echo_n "(cached) " >&6
3084 else
3085   if test -n "$CC"; then
3086   ac_cv_prog_CC="$CC" # Let the user override the test.
3087 else
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091   IFS=$as_save_IFS
3092   test -z "$as_dir" && as_dir=.
3093     for ac_exec_ext in '' $ac_executable_extensions; do
3094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3095     ac_cv_prog_CC="${ac_tool_prefix}cc"
3096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097     break 2
3098   fi
3099 done
3100   done
3101 IFS=$as_save_IFS
3102
3103 fi
3104 fi
3105 CC=$ac_cv_prog_CC
3106 if test -n "$CC"; then
3107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108 $as_echo "$CC" >&6; }
3109 else
3110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 fi
3113
3114
3115   fi
3116 fi
3117 if test -z "$CC"; then
3118   # Extract the first word of "cc", so it can be a program name with args.
3119 set dummy cc; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if ${ac_cv_prog_CC+:} false; then :
3123   $as_echo_n "(cached) " >&6
3124 else
3125   if test -n "$CC"; then
3126   ac_cv_prog_CC="$CC" # Let the user override the test.
3127 else
3128   ac_prog_rejected=no
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132   IFS=$as_save_IFS
3133   test -z "$as_dir" && as_dir=.
3134     for ac_exec_ext in '' $ac_executable_extensions; do
3135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3137        ac_prog_rejected=yes
3138        continue
3139      fi
3140     ac_cv_prog_CC="cc"
3141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142     break 2
3143   fi
3144 done
3145   done
3146 IFS=$as_save_IFS
3147
3148 if test $ac_prog_rejected = yes; then
3149   # We found a bogon in the path, so make sure we never use it.
3150   set dummy $ac_cv_prog_CC
3151   shift
3152   if test $# != 0; then
3153     # We chose a different compiler from the bogus one.
3154     # However, it has the same basename, so the bogon will be chosen
3155     # first if we set CC to just the basename; use the full file name.
3156     shift
3157     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3158   fi
3159 fi
3160 fi
3161 fi
3162 CC=$ac_cv_prog_CC
3163 if test -n "$CC"; then
3164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3165 $as_echo "$CC" >&6; }
3166 else
3167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3169 fi
3170
3171
3172 fi
3173 if test -z "$CC"; then
3174   if test -n "$ac_tool_prefix"; then
3175   for ac_prog in cl.exe
3176   do
3177     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if ${ac_cv_prog_CC+:} false; then :
3182   $as_echo_n "(cached) " >&6
3183 else
3184   if test -n "$CC"; then
3185   ac_cv_prog_CC="$CC" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190   IFS=$as_save_IFS
3191   test -z "$as_dir" && as_dir=.
3192     for ac_exec_ext in '' $ac_executable_extensions; do
3193   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196     break 2
3197   fi
3198 done
3199   done
3200 IFS=$as_save_IFS
3201
3202 fi
3203 fi
3204 CC=$ac_cv_prog_CC
3205 if test -n "$CC"; then
3206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3207 $as_echo "$CC" >&6; }
3208 else
3209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3211 fi
3212
3213
3214     test -n "$CC" && break
3215   done
3216 fi
3217 if test -z "$CC"; then
3218   ac_ct_CC=$CC
3219   for ac_prog in cl.exe
3220 do
3221   # Extract the first word of "$ac_prog", so it can be a program name with args.
3222 set dummy $ac_prog; ac_word=$2
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3226   $as_echo_n "(cached) " >&6
3227 else
3228   if test -n "$ac_ct_CC"; then
3229   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3230 else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3233 do
3234   IFS=$as_save_IFS
3235   test -z "$as_dir" && as_dir=.
3236     for ac_exec_ext in '' $ac_executable_extensions; do
3237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238     ac_cv_prog_ac_ct_CC="$ac_prog"
3239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240     break 2
3241   fi
3242 done
3243   done
3244 IFS=$as_save_IFS
3245
3246 fi
3247 fi
3248 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3249 if test -n "$ac_ct_CC"; then
3250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3251 $as_echo "$ac_ct_CC" >&6; }
3252 else
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 fi
3256
3257
3258   test -n "$ac_ct_CC" && break
3259 done
3260
3261   if test "x$ac_ct_CC" = x; then
3262     CC=""
3263   else
3264     case $cross_compiling:$ac_tool_warned in
3265 yes:)
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3268 ac_tool_warned=yes ;;
3269 esac
3270     CC=$ac_ct_CC
3271   fi
3272 fi
3273
3274 fi
3275
3276
3277 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error $? "no acceptable C compiler found in \$PATH
3280 See \`config.log' for more details" "$LINENO" 5; }
3281
3282 # Provide some information about the compiler.
3283 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3284 set X $ac_compile
3285 ac_compiler=$2
3286 for ac_option in --version -v -V -qversion; do
3287   { { ac_try="$ac_compiler $ac_option >&5"
3288 case "(($ac_try" in
3289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290   *) ac_try_echo=$ac_try;;
3291 esac
3292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293 $as_echo "$ac_try_echo"; } >&5
3294   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3295   ac_status=$?
3296   if test -s conftest.err; then
3297     sed '10a\
3298 ... rest of stderr output deleted ...
3299          10q' conftest.err >conftest.er1
3300     cat conftest.er1 >&5
3301   fi
3302   rm -f conftest.er1 conftest.err
3303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304   test $ac_status = 0; }
3305 done
3306
3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308 /* end confdefs.h.  */
3309
3310 int
3311 main ()
3312 {
3313
3314   ;
3315   return 0;
3316 }
3317 _ACEOF
3318 ac_clean_files_save=$ac_clean_files
3319 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3320 # Try to create an executable without -o first, disregard a.out.
3321 # It will help us diagnose broken compilers, and finding out an intuition
3322 # of exeext.
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3324 $as_echo_n "checking whether the C compiler works... " >&6; }
3325 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3326
3327 # The possible output files:
3328 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3329
3330 ac_rmfiles=
3331 for ac_file in $ac_files
3332 do
3333   case $ac_file in
3334     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3335     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3336   esac
3337 done
3338 rm -f $ac_rmfiles
3339
3340 if { { ac_try="$ac_link_default"
3341 case "(($ac_try" in
3342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343   *) ac_try_echo=$ac_try;;
3344 esac
3345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346 $as_echo "$ac_try_echo"; } >&5
3347   (eval "$ac_link_default") 2>&5
3348   ac_status=$?
3349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350   test $ac_status = 0; }; then :
3351   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3352 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3353 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3354 # so that the user can short-circuit this test for compilers unknown to
3355 # Autoconf.
3356 for ac_file in $ac_files ''
3357 do
3358   test -f "$ac_file" || continue
3359   case $ac_file in
3360     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3361         ;;
3362     [ab].out )
3363         # We found the default executable, but exeext='' is most
3364         # certainly right.
3365         break;;
3366     *.* )
3367         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3368         then :; else
3369            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3370         fi
3371         # We set ac_cv_exeext here because the later test for it is not
3372         # safe: cross compilers may not add the suffix if given an `-o'
3373         # argument, so we may need to know it at that point already.
3374         # Even if this section looks crufty: it has the advantage of
3375         # actually working.
3376         break;;
3377     * )
3378         break;;
3379   esac
3380 done
3381 test "$ac_cv_exeext" = no && ac_cv_exeext=
3382
3383 else
3384   ac_file=''
3385 fi
3386 if test -z "$ac_file"; then :
3387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3389 $as_echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3391
3392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394 as_fn_error 77 "C compiler cannot create executables
3395 See \`config.log' for more details" "$LINENO" 5; }
3396 else
3397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3398 $as_echo "yes" >&6; }
3399 fi
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3401 $as_echo_n "checking for C compiler default output file name... " >&6; }
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3403 $as_echo "$ac_file" >&6; }
3404 ac_exeext=$ac_cv_exeext
3405
3406 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3407 ac_clean_files=$ac_clean_files_save
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3409 $as_echo_n "checking for suffix of executables... " >&6; }
3410 if { { ac_try="$ac_link"
3411 case "(($ac_try" in
3412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413   *) ac_try_echo=$ac_try;;
3414 esac
3415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416 $as_echo "$ac_try_echo"; } >&5
3417   (eval "$ac_link") 2>&5
3418   ac_status=$?
3419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420   test $ac_status = 0; }; then :
3421   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3422 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3423 # work properly (i.e., refer to `conftest.exe'), while it won't with
3424 # `rm'.
3425 for ac_file in conftest.exe conftest conftest.*; do
3426   test -f "$ac_file" || continue
3427   case $ac_file in
3428     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3429     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3430           break;;
3431     * ) break;;
3432   esac
3433 done
3434 else
3435   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3438 See \`config.log' for more details" "$LINENO" 5; }
3439 fi
3440 rm -f conftest conftest$ac_cv_exeext
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3442 $as_echo "$ac_cv_exeext" >&6; }
3443
3444 rm -f conftest.$ac_ext
3445 EXEEXT=$ac_cv_exeext
3446 ac_exeext=$EXEEXT
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h.  */
3449 #include <stdio.h>
3450 int
3451 main ()
3452 {
3453 FILE *f = fopen ("conftest.out", "w");
3454  return ferror (f) || fclose (f) != 0;
3455
3456   ;
3457   return 0;
3458 }
3459 _ACEOF
3460 ac_clean_files="$ac_clean_files conftest.out"
3461 # Check that the compiler produces executables we can run.  If not, either
3462 # the compiler is broken, or we cross compile.
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3464 $as_echo_n "checking whether we are cross compiling... " >&6; }
3465 if test "$cross_compiling" != yes; then
3466   { { ac_try="$ac_link"
3467 case "(($ac_try" in
3468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469   *) ac_try_echo=$ac_try;;
3470 esac
3471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472 $as_echo "$ac_try_echo"; } >&5
3473   (eval "$ac_link") 2>&5
3474   ac_status=$?
3475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476   test $ac_status = 0; }
3477   if { ac_try='./conftest$ac_cv_exeext'
3478   { { case "(($ac_try" in
3479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480   *) ac_try_echo=$ac_try;;
3481 esac
3482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483 $as_echo "$ac_try_echo"; } >&5
3484   (eval "$ac_try") 2>&5
3485   ac_status=$?
3486   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487   test $ac_status = 0; }; }; then
3488     cross_compiling=no
3489   else
3490     if test "$cross_compiling" = maybe; then
3491         cross_compiling=yes
3492     else
3493         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3495 as_fn_error $? "cannot run C compiled programs.
3496 If you meant to cross compile, use \`--host'.
3497 See \`config.log' for more details" "$LINENO" 5; }
3498     fi
3499   fi
3500 fi
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3502 $as_echo "$cross_compiling" >&6; }
3503
3504 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3505 ac_clean_files=$ac_clean_files_save
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3507 $as_echo_n "checking for suffix of object files... " >&6; }
3508 if ${ac_cv_objext+:} false; then :
3509   $as_echo_n "(cached) " >&6
3510 else
3511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h.  */
3513
3514 int
3515 main ()
3516 {
3517
3518   ;
3519   return 0;
3520 }
3521 _ACEOF
3522 rm -f conftest.o conftest.obj
3523 if { { ac_try="$ac_compile"
3524 case "(($ac_try" in
3525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526   *) ac_try_echo=$ac_try;;
3527 esac
3528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529 $as_echo "$ac_try_echo"; } >&5
3530   (eval "$ac_compile") 2>&5
3531   ac_status=$?
3532   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533   test $ac_status = 0; }; then :
3534   for ac_file in conftest.o conftest.obj conftest.*; do
3535   test -f "$ac_file" || continue;
3536   case $ac_file in
3537     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3538     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3539        break;;
3540   esac
3541 done
3542 else
3543   $as_echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.$ac_ext >&5
3545
3546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3548 as_fn_error $? "cannot compute suffix of object files: cannot compile
3549 See \`config.log' for more details" "$LINENO" 5; }
3550 fi
3551 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3552 fi
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3554 $as_echo "$ac_cv_objext" >&6; }
3555 OBJEXT=$ac_cv_objext
3556 ac_objext=$OBJEXT
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3558 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3559 if ${ac_cv_c_compiler_gnu+:} false; then :
3560   $as_echo_n "(cached) " >&6
3561 else
3562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h.  */
3564
3565 int
3566 main ()
3567 {
3568 #ifndef __GNUC__
3569        choke me
3570 #endif
3571
3572   ;
3573   return 0;
3574 }
3575 _ACEOF
3576 if ac_fn_c_try_compile "$LINENO"; then :
3577   ac_compiler_gnu=yes
3578 else
3579   ac_compiler_gnu=no
3580 fi
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3583
3584 fi
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3586 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3587 if test $ac_compiler_gnu = yes; then
3588   GCC=yes
3589 else
3590   GCC=
3591 fi
3592 ac_test_CFLAGS=${CFLAGS+set}
3593 ac_save_CFLAGS=$CFLAGS
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3595 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3596 if ${ac_cv_prog_cc_g+:} false; then :
3597   $as_echo_n "(cached) " >&6
3598 else
3599   ac_save_c_werror_flag=$ac_c_werror_flag
3600    ac_c_werror_flag=yes
3601    ac_cv_prog_cc_g=no
3602    CFLAGS="-g"
3603    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h.  */
3605
3606 int
3607 main ()
3608 {
3609
3610   ;
3611   return 0;
3612 }
3613 _ACEOF
3614 if ac_fn_c_try_compile "$LINENO"; then :
3615   ac_cv_prog_cc_g=yes
3616 else
3617   CFLAGS=""
3618       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h.  */
3620
3621 int
3622 main ()
3623 {
3624
3625   ;
3626   return 0;
3627 }
3628 _ACEOF
3629 if ac_fn_c_try_compile "$LINENO"; then :
3630
3631 else
3632   ac_c_werror_flag=$ac_save_c_werror_flag
3633          CFLAGS="-g"
3634          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h.  */
3636
3637 int
3638 main ()
3639 {
3640
3641   ;
3642   return 0;
3643 }
3644 _ACEOF
3645 if ac_fn_c_try_compile "$LINENO"; then :
3646   ac_cv_prog_cc_g=yes
3647 fi
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649 fi
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 fi
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653    ac_c_werror_flag=$ac_save_c_werror_flag
3654 fi
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3656 $as_echo "$ac_cv_prog_cc_g" >&6; }
3657 if test "$ac_test_CFLAGS" = set; then
3658   CFLAGS=$ac_save_CFLAGS
3659 elif test $ac_cv_prog_cc_g = yes; then
3660   if test "$GCC" = yes; then
3661     CFLAGS="-g -O2"
3662   else
3663     CFLAGS="-g"
3664   fi
3665 else
3666   if test "$GCC" = yes; then
3667     CFLAGS="-O2"
3668   else
3669     CFLAGS=
3670   fi
3671 fi
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3673 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3674 if ${ac_cv_prog_cc_c89+:} false; then :
3675   $as_echo_n "(cached) " >&6
3676 else
3677   ac_cv_prog_cc_c89=no
3678 ac_save_CC=$CC
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h.  */
3681 #include <stdarg.h>
3682 #include <stdio.h>
3683 struct stat;
3684 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3685 struct buf { int x; };
3686 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3687 static char *e (p, i)
3688      char **p;
3689      int i;
3690 {
3691   return p[i];
3692 }
3693 static char *f (char * (*g) (char **, int), char **p, ...)
3694 {
3695   char *s;
3696   va_list v;
3697   va_start (v,p);
3698   s = g (p, va_arg (v,int));
3699   va_end (v);
3700   return s;
3701 }
3702
3703 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3704    function prototypes and stuff, but not '\xHH' hex character constants.
3705    These don't provoke an error unfortunately, instead are silently treated
3706    as 'x'.  The following induces an error, until -std is added to get
3707    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3708    array size at least.  It's necessary to write '\x00'==0 to get something
3709    that's true only with -std.  */
3710 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3711
3712 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3713    inside strings and character constants.  */
3714 #define FOO(x) 'x'
3715 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3716
3717 int test (int i, double x);
3718 struct s1 {int (*f) (int a);};
3719 struct s2 {int (*f) (double a);};
3720 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3721 int argc;
3722 char **argv;
3723 int
3724 main ()
3725 {
3726 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3727   ;
3728   return 0;
3729 }
3730 _ACEOF
3731 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3732         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3733 do
3734   CC="$ac_save_CC $ac_arg"
3735   if ac_fn_c_try_compile "$LINENO"; then :
3736   ac_cv_prog_cc_c89=$ac_arg
3737 fi
3738 rm -f core conftest.err conftest.$ac_objext
3739   test "x$ac_cv_prog_cc_c89" != "xno" && break
3740 done
3741 rm -f conftest.$ac_ext
3742 CC=$ac_save_CC
3743
3744 fi
3745 # AC_CACHE_VAL
3746 case "x$ac_cv_prog_cc_c89" in
3747   x)
3748     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3749 $as_echo "none needed" >&6; } ;;
3750   xno)
3751     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3752 $as_echo "unsupported" >&6; } ;;
3753   *)
3754     CC="$CC $ac_cv_prog_cc_c89"
3755     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3756 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3757 esac
3758 if test "x$ac_cv_prog_cc_c89" != xno; then :
3759
3760 fi
3761
3762 ac_ext=c
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767 DEPDIR="${am__leading_dot}deps"
3768
3769 ac_config_commands="$ac_config_commands depfiles"
3770
3771
3772 am_make=${MAKE-make}
3773 cat > confinc << 'END'
3774 am__doit:
3775         @echo this is the am__doit target
3776 .PHONY: am__doit
3777 END
3778 # If we don't find an include directive, just comment out the code.
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3780 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3781 am__include="#"
3782 am__quote=
3783 _am_result=none
3784 # First try GNU make style include.
3785 echo "include confinc" > confmf
3786 # Ignore all kinds of additional output from 'make'.
3787 case `$am_make -s -f confmf 2> /dev/null` in #(
3788 *the\ am__doit\ target*)
3789   am__include=include
3790   am__quote=
3791   _am_result=GNU
3792   ;;
3793 esac
3794 # Now try BSD make style include.
3795 if test "$am__include" = "#"; then
3796    echo '.include "confinc"' > confmf
3797    case `$am_make -s -f confmf 2> /dev/null` in #(
3798    *the\ am__doit\ target*)
3799      am__include=.include
3800      am__quote="\""
3801      _am_result=BSD
3802      ;;
3803    esac
3804 fi
3805
3806
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3808 $as_echo "$_am_result" >&6; }
3809 rm -f confinc confmf
3810
3811 # Check whether --enable-dependency-tracking was given.
3812 if test "${enable_dependency_tracking+set}" = set; then :
3813   enableval=$enable_dependency_tracking;
3814 fi
3815
3816 if test "x$enable_dependency_tracking" != xno; then
3817   am_depcomp="$ac_aux_dir/depcomp"
3818   AMDEPBACKSLASH='\'
3819   am__nodep='_no'
3820 fi
3821  if test "x$enable_dependency_tracking" != xno; then
3822   AMDEP_TRUE=
3823   AMDEP_FALSE='#'
3824 else
3825   AMDEP_TRUE='#'
3826   AMDEP_FALSE=
3827 fi
3828
3829
3830
3831 depcc="$CC"   am_compiler_list=
3832
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3834 $as_echo_n "checking dependency style of $depcc... " >&6; }
3835 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3836   $as_echo_n "(cached) " >&6
3837 else
3838   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3839   # We make a subdir and do the tests there.  Otherwise we can end up
3840   # making bogus files that we don't know about and never remove.  For
3841   # instance it was reported that on HP-UX the gcc test will end up
3842   # making a dummy file named 'D' -- because '-MD' means "put the output
3843   # in D".
3844   rm -rf conftest.dir
3845   mkdir conftest.dir
3846   # Copy depcomp to subdir because otherwise we won't find it if we're
3847   # using a relative directory.
3848   cp "$am_depcomp" conftest.dir
3849   cd conftest.dir
3850   # We will build objects and dependencies in a subdirectory because
3851   # it helps to detect inapplicable dependency modes.  For instance
3852   # both Tru64's cc and ICC support -MD to output dependencies as a
3853   # side effect of compilation, but ICC will put the dependencies in
3854   # the current directory while Tru64 will put them in the object
3855   # directory.
3856   mkdir sub
3857
3858   am_cv_CC_dependencies_compiler_type=none
3859   if test "$am_compiler_list" = ""; then
3860      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3861   fi
3862   am__universal=false
3863   case " $depcc " in #(
3864      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3865      esac
3866
3867   for depmode in $am_compiler_list; do
3868     # Setup a source with many dependencies, because some compilers
3869     # like to wrap large dependency lists on column 80 (with \), and
3870     # we should not choose a depcomp mode which is confused by this.
3871     #
3872     # We need to recreate these files for each test, as the compiler may
3873     # overwrite some of them when testing with obscure command lines.
3874     # This happens at least with the AIX C compiler.
3875     : > sub/conftest.c
3876     for i in 1 2 3 4 5 6; do
3877       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3878       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3879       # Solaris 10 /bin/sh.
3880       echo '/* dummy */' > sub/conftst$i.h
3881     done
3882     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3883
3884     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3885     # mode.  It turns out that the SunPro C++ compiler does not properly
3886     # handle '-M -o', and we need to detect this.  Also, some Intel
3887     # versions had trouble with output in subdirs.
3888     am__obj=sub/conftest.${OBJEXT-o}
3889     am__minus_obj="-o $am__obj"
3890     case $depmode in
3891     gcc)
3892       # This depmode causes a compiler race in universal mode.
3893       test "$am__universal" = false || continue
3894       ;;
3895     nosideeffect)
3896       # After this tag, mechanisms are not by side-effect, so they'll
3897       # only be used when explicitly requested.
3898       if test "x$enable_dependency_tracking" = xyes; then
3899         continue
3900       else
3901         break
3902       fi
3903       ;;
3904     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3905       # This compiler won't grok '-c -o', but also, the minuso test has
3906       # not run yet.  These depmodes are late enough in the game, and
3907       # so weak that their functioning should not be impacted.
3908       am__obj=conftest.${OBJEXT-o}
3909       am__minus_obj=
3910       ;;
3911     none) break ;;
3912     esac
3913     if depmode=$depmode \
3914        source=sub/conftest.c object=$am__obj \
3915        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3916        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3917          >/dev/null 2>conftest.err &&
3918        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3919        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3920        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3921        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3922       # icc doesn't choke on unknown options, it will just issue warnings
3923       # or remarks (even with -Werror).  So we grep stderr for any message
3924       # that says an option was ignored or not supported.
3925       # When given -MP, icc 7.0 and 7.1 complain thusly:
3926       #   icc: Command line warning: ignoring option '-M'; no argument required
3927       # The diagnosis changed in icc 8.0:
3928       #   icc: Command line remark: option '-MP' not supported
3929       if (grep 'ignoring option' conftest.err ||
3930           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3931         am_cv_CC_dependencies_compiler_type=$depmode
3932         break
3933       fi
3934     fi
3935   done
3936
3937   cd ..
3938   rm -rf conftest.dir
3939 else
3940   am_cv_CC_dependencies_compiler_type=none
3941 fi
3942
3943 fi
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3945 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3946 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3947
3948  if
3949   test "x$enable_dependency_tracking" != xno \
3950   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3951   am__fastdepCC_TRUE=
3952   am__fastdepCC_FALSE='#'
3953 else
3954   am__fastdepCC_TRUE='#'
3955   am__fastdepCC_FALSE=
3956 fi
3957
3958
3959
3960
3961 # Initialize libtool
3962 case `pwd` in
3963   *\ * | *\     *)
3964     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3965 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3966 esac
3967
3968
3969
3970 macro_version='2.4.2'
3971 macro_revision='1.3337'
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985 ltmain="$ac_aux_dir/ltmain.sh"
3986
3987 # Make sure we can run config.sub.
3988 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3989   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3990
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3992 $as_echo_n "checking build system type... " >&6; }
3993 if ${ac_cv_build+:} false; then :
3994   $as_echo_n "(cached) " >&6
3995 else
3996   ac_build_alias=$build_alias
3997 test "x$ac_build_alias" = x &&
3998   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3999 test "x$ac_build_alias" = x &&
4000   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4001 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4002   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4003
4004 fi
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4006 $as_echo "$ac_cv_build" >&6; }
4007 case $ac_cv_build in
4008 *-*-*) ;;
4009 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4010 esac
4011 build=$ac_cv_build
4012 ac_save_IFS=$IFS; IFS='-'
4013 set x $ac_cv_build
4014 shift
4015 build_cpu=$1
4016 build_vendor=$2
4017 shift; shift
4018 # Remember, the first character of IFS is used to create $*,
4019 # except with old shells:
4020 build_os=$*
4021 IFS=$ac_save_IFS
4022 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4023
4024
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4026 $as_echo_n "checking host system type... " >&6; }
4027 if ${ac_cv_host+:} false; then :
4028   $as_echo_n "(cached) " >&6
4029 else
4030   if test "x$host_alias" = x; then
4031   ac_cv_host=$ac_cv_build
4032 else
4033   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4034     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4035 fi
4036
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4039 $as_echo "$ac_cv_host" >&6; }
4040 case $ac_cv_host in
4041 *-*-*) ;;
4042 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4043 esac
4044 host=$ac_cv_host
4045 ac_save_IFS=$IFS; IFS='-'
4046 set x $ac_cv_host
4047 shift
4048 host_cpu=$1
4049 host_vendor=$2
4050 shift; shift
4051 # Remember, the first character of IFS is used to create $*,
4052 # except with old shells:
4053 host_os=$*
4054 IFS=$ac_save_IFS
4055 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4056
4057
4058 # Backslashify metacharacters that are still active within
4059 # double-quoted strings.
4060 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4061
4062 # Same as above, but do not quote variable references.
4063 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4064
4065 # Sed substitution to delay expansion of an escaped shell variable in a
4066 # double_quote_subst'ed string.
4067 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4068
4069 # Sed substitution to delay expansion of an escaped single quote.
4070 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4071
4072 # Sed substitution to avoid accidental globbing in evaled expressions
4073 no_glob_subst='s/\*/\\\*/g'
4074
4075 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4076 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4077 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4078
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4080 $as_echo_n "checking how to print strings... " >&6; }
4081 # Test print first, because it will be a builtin if present.
4082 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4083    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4084   ECHO='print -r --'
4085 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4086   ECHO='printf %s\n'
4087 else
4088   # Use this function as a fallback that always works.
4089   func_fallback_echo ()
4090   {
4091     eval 'cat <<_LTECHO_EOF
4092 $1
4093 _LTECHO_EOF'
4094   }
4095   ECHO='func_fallback_echo'
4096 fi
4097
4098 # func_echo_all arg...
4099 # Invoke $ECHO with all args, space-separated.
4100 func_echo_all ()
4101 {
4102     $ECHO ""
4103 }
4104
4105 case "$ECHO" in
4106   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4107 $as_echo "printf" >&6; } ;;
4108   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4109 $as_echo "print -r" >&6; } ;;
4110   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4111 $as_echo "cat" >&6; } ;;
4112 esac
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4128 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4129 if ${ac_cv_path_SED+:} false; then :
4130   $as_echo_n "(cached) " >&6
4131 else
4132             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4133      for ac_i in 1 2 3 4 5 6 7; do
4134        ac_script="$ac_script$as_nl$ac_script"
4135      done
4136      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4137      { ac_script=; unset ac_script;}
4138      if test -z "$SED"; then
4139   ac_path_SED_found=false
4140   # Loop through the user's path and test for each of PROGNAME-LIST
4141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH
4143 do
4144   IFS=$as_save_IFS
4145   test -z "$as_dir" && as_dir=.
4146     for ac_prog in sed gsed; do
4147     for ac_exec_ext in '' $ac_executable_extensions; do
4148       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4149       as_fn_executable_p "$ac_path_SED" || continue
4150 # Check for GNU ac_path_SED and select it if it is found.
4151   # Check for GNU $ac_path_SED
4152 case `"$ac_path_SED" --version 2>&1` in
4153 *GNU*)
4154   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4155 *)
4156   ac_count=0
4157   $as_echo_n 0123456789 >"conftest.in"
4158   while :
4159   do
4160     cat "conftest.in" "conftest.in" >"conftest.tmp"
4161     mv "conftest.tmp" "conftest.in"
4162     cp "conftest.in" "conftest.nl"
4163     $as_echo '' >> "conftest.nl"
4164     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4165     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4166     as_fn_arith $ac_count + 1 && ac_count=$as_val
4167     if test $ac_count -gt ${ac_path_SED_max-0}; then
4168       # Best one so far, save it but keep looking for a better one
4169       ac_cv_path_SED="$ac_path_SED"
4170       ac_path_SED_max=$ac_count
4171     fi
4172     # 10*(2^10) chars as input seems more than enough
4173     test $ac_count -gt 10 && break
4174   done
4175   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4176 esac
4177
4178       $ac_path_SED_found && break 3
4179     done
4180   done
4181   done
4182 IFS=$as_save_IFS
4183   if test -z "$ac_cv_path_SED"; then
4184     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4185   fi
4186 else
4187   ac_cv_path_SED=$SED
4188 fi
4189
4190 fi
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4192 $as_echo "$ac_cv_path_SED" >&6; }
4193  SED="$ac_cv_path_SED"
4194   rm -f conftest.sed
4195
4196 test -z "$SED" && SED=sed
4197 Xsed="$SED -e 1s/^X//"
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4210 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4211 if ${ac_cv_path_GREP+:} false; then :
4212   $as_echo_n "(cached) " >&6
4213 else
4214   if test -z "$GREP"; then
4215   ac_path_GREP_found=false
4216   # Loop through the user's path and test for each of PROGNAME-LIST
4217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4219 do
4220   IFS=$as_save_IFS
4221   test -z "$as_dir" && as_dir=.
4222     for ac_prog in grep ggrep; do
4223     for ac_exec_ext in '' $ac_executable_extensions; do
4224       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4225       as_fn_executable_p "$ac_path_GREP" || continue
4226 # Check for GNU ac_path_GREP and select it if it is found.
4227   # Check for GNU $ac_path_GREP
4228 case `"$ac_path_GREP" --version 2>&1` in
4229 *GNU*)
4230   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4231 *)
4232   ac_count=0
4233   $as_echo_n 0123456789 >"conftest.in"
4234   while :
4235   do
4236     cat "conftest.in" "conftest.in" >"conftest.tmp"
4237     mv "conftest.tmp" "conftest.in"
4238     cp "conftest.in" "conftest.nl"
4239     $as_echo 'GREP' >> "conftest.nl"
4240     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4241     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4242     as_fn_arith $ac_count + 1 && ac_count=$as_val
4243     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4244       # Best one so far, save it but keep looking for a better one
4245       ac_cv_path_GREP="$ac_path_GREP"
4246       ac_path_GREP_max=$ac_count
4247     fi
4248     # 10*(2^10) chars as input seems more than enough
4249     test $ac_count -gt 10 && break
4250   done
4251   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4252 esac
4253
4254       $ac_path_GREP_found && break 3
4255     done
4256   done
4257   done
4258 IFS=$as_save_IFS
4259   if test -z "$ac_cv_path_GREP"; then
4260     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4261   fi
4262 else
4263   ac_cv_path_GREP=$GREP
4264 fi
4265
4266 fi
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4268 $as_echo "$ac_cv_path_GREP" >&6; }
4269  GREP="$ac_cv_path_GREP"
4270
4271
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4273 $as_echo_n "checking for egrep... " >&6; }
4274 if ${ac_cv_path_EGREP+:} false; then :
4275   $as_echo_n "(cached) " >&6
4276 else
4277   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4278    then ac_cv_path_EGREP="$GREP -E"
4279    else
4280      if test -z "$EGREP"; then
4281   ac_path_EGREP_found=false
4282   # Loop through the user's path and test for each of PROGNAME-LIST
4283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4285 do
4286   IFS=$as_save_IFS
4287   test -z "$as_dir" && as_dir=.
4288     for ac_prog in egrep; do
4289     for ac_exec_ext in '' $ac_executable_extensions; do
4290       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4291       as_fn_executable_p "$ac_path_EGREP" || continue
4292 # Check for GNU ac_path_EGREP and select it if it is found.
4293   # Check for GNU $ac_path_EGREP
4294 case `"$ac_path_EGREP" --version 2>&1` in
4295 *GNU*)
4296   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4297 *)
4298   ac_count=0
4299   $as_echo_n 0123456789 >"conftest.in"
4300   while :
4301   do
4302     cat "conftest.in" "conftest.in" >"conftest.tmp"
4303     mv "conftest.tmp" "conftest.in"
4304     cp "conftest.in" "conftest.nl"
4305     $as_echo 'EGREP' >> "conftest.nl"
4306     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4307     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4308     as_fn_arith $ac_count + 1 && ac_count=$as_val
4309     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4310       # Best one so far, save it but keep looking for a better one
4311       ac_cv_path_EGREP="$ac_path_EGREP"
4312       ac_path_EGREP_max=$ac_count
4313     fi
4314     # 10*(2^10) chars as input seems more than enough
4315     test $ac_count -gt 10 && break
4316   done
4317   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4318 esac
4319
4320       $ac_path_EGREP_found && break 3
4321     done
4322   done
4323   done
4324 IFS=$as_save_IFS
4325   if test -z "$ac_cv_path_EGREP"; then
4326     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4327   fi
4328 else
4329   ac_cv_path_EGREP=$EGREP
4330 fi
4331
4332    fi
4333 fi
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4335 $as_echo "$ac_cv_path_EGREP" >&6; }
4336  EGREP="$ac_cv_path_EGREP"
4337
4338
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4340 $as_echo_n "checking for fgrep... " >&6; }
4341 if ${ac_cv_path_FGREP+:} false; then :
4342   $as_echo_n "(cached) " >&6
4343 else
4344   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4345    then ac_cv_path_FGREP="$GREP -F"
4346    else
4347      if test -z "$FGREP"; then
4348   ac_path_FGREP_found=false
4349   # Loop through the user's path and test for each of PROGNAME-LIST
4350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4352 do
4353   IFS=$as_save_IFS
4354   test -z "$as_dir" && as_dir=.
4355     for ac_prog in fgrep; do
4356     for ac_exec_ext in '' $ac_executable_extensions; do
4357       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4358       as_fn_executable_p "$ac_path_FGREP" || continue
4359 # Check for GNU ac_path_FGREP and select it if it is found.
4360   # Check for GNU $ac_path_FGREP
4361 case `"$ac_path_FGREP" --version 2>&1` in
4362 *GNU*)
4363   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4364 *)
4365   ac_count=0
4366   $as_echo_n 0123456789 >"conftest.in"
4367   while :
4368   do
4369     cat "conftest.in" "conftest.in" >"conftest.tmp"
4370     mv "conftest.tmp" "conftest.in"
4371     cp "conftest.in" "conftest.nl"
4372     $as_echo 'FGREP' >> "conftest.nl"
4373     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4374     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4375     as_fn_arith $ac_count + 1 && ac_count=$as_val
4376     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4377       # Best one so far, save it but keep looking for a better one
4378       ac_cv_path_FGREP="$ac_path_FGREP"
4379       ac_path_FGREP_max=$ac_count
4380     fi
4381     # 10*(2^10) chars as input seems more than enough
4382     test $ac_count -gt 10 && break
4383   done
4384   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4385 esac
4386
4387       $ac_path_FGREP_found && break 3
4388     done
4389   done
4390   done
4391 IFS=$as_save_IFS
4392   if test -z "$ac_cv_path_FGREP"; then
4393     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4394   fi
4395 else
4396   ac_cv_path_FGREP=$FGREP
4397 fi
4398
4399    fi
4400 fi
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4402 $as_echo "$ac_cv_path_FGREP" >&6; }
4403  FGREP="$ac_cv_path_FGREP"
4404
4405
4406 test -z "$GREP" && GREP=grep
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426 # Check whether --with-gnu-ld was given.
4427 if test "${with_gnu_ld+set}" = set; then :
4428   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4429 else
4430   with_gnu_ld=no
4431 fi
4432
4433 ac_prog=ld
4434 if test "$GCC" = yes; then
4435   # Check if gcc -print-prog-name=ld gives a path.
4436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4437 $as_echo_n "checking for ld used by $CC... " >&6; }
4438   case $host in
4439   *-*-mingw*)
4440     # gcc leaves a trailing carriage return which upsets mingw
4441     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4442   *)
4443     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4444   esac
4445   case $ac_prog in
4446     # Accept absolute paths.
4447     [\\/]* | ?:[\\/]*)
4448       re_direlt='/[^/][^/]*/\.\./'
4449       # Canonicalize the pathname of ld
4450       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4451       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4452         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4453       done
4454       test -z "$LD" && LD="$ac_prog"
4455       ;;
4456   "")
4457     # If it fails, then pretend we aren't using GCC.
4458     ac_prog=ld
4459     ;;
4460   *)
4461     # If it is relative, then search for the first ld in PATH.
4462     with_gnu_ld=unknown
4463     ;;
4464   esac
4465 elif test "$with_gnu_ld" = yes; then
4466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4467 $as_echo_n "checking for GNU ld... " >&6; }
4468 else
4469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4470 $as_echo_n "checking for non-GNU ld... " >&6; }
4471 fi
4472 if ${lt_cv_path_LD+:} false; then :
4473   $as_echo_n "(cached) " >&6
4474 else
4475   if test -z "$LD"; then
4476   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4477   for ac_dir in $PATH; do
4478     IFS="$lt_save_ifs"
4479     test -z "$ac_dir" && ac_dir=.
4480     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4481       lt_cv_path_LD="$ac_dir/$ac_prog"
4482       # Check to see if the program is GNU ld.  I'd rather use --version,
4483       # but apparently some variants of GNU ld only accept -v.
4484       # Break only if it was the GNU/non-GNU ld that we prefer.
4485       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4486       *GNU* | *'with BFD'*)
4487         test "$with_gnu_ld" != no && break
4488         ;;
4489       *)
4490         test "$with_gnu_ld" != yes && break
4491         ;;
4492       esac
4493     fi
4494   done
4495   IFS="$lt_save_ifs"
4496 else
4497   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4498 fi
4499 fi
4500
4501 LD="$lt_cv_path_LD"
4502 if test -n "$LD"; then
4503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4504 $as_echo "$LD" >&6; }
4505 else
4506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4507 $as_echo "no" >&6; }
4508 fi
4509 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4511 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4512 if ${lt_cv_prog_gnu_ld+:} false; then :
4513   $as_echo_n "(cached) " >&6
4514 else
4515   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4516 case `$LD -v 2>&1 </dev/null` in
4517 *GNU* | *'with BFD'*)
4518   lt_cv_prog_gnu_ld=yes
4519   ;;
4520 *)
4521   lt_cv_prog_gnu_ld=no
4522   ;;
4523 esac
4524 fi
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4526 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4527 with_gnu_ld=$lt_cv_prog_gnu_ld
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4538 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4539 if ${lt_cv_path_NM+:} false; then :
4540   $as_echo_n "(cached) " >&6
4541 else
4542   if test -n "$NM"; then
4543   # Let the user override the test.
4544   lt_cv_path_NM="$NM"
4545 else
4546   lt_nm_to_check="${ac_tool_prefix}nm"
4547   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4548     lt_nm_to_check="$lt_nm_to_check nm"
4549   fi
4550   for lt_tmp_nm in $lt_nm_to_check; do
4551     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4552     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4553       IFS="$lt_save_ifs"
4554       test -z "$ac_dir" && ac_dir=.
4555       tmp_nm="$ac_dir/$lt_tmp_nm"
4556       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4557         # Check to see if the nm accepts a BSD-compat flag.
4558         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4559         #   nm: unknown option "B" ignored
4560         # Tru64's nm complains that /dev/null is an invalid object file
4561         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4562         */dev/null* | *'Invalid file or object type'*)
4563           lt_cv_path_NM="$tmp_nm -B"
4564           break
4565           ;;
4566         *)
4567           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4568           */dev/null*)
4569             lt_cv_path_NM="$tmp_nm -p"
4570             break
4571             ;;
4572           *)
4573             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4574             continue # so that we can try to find one that supports BSD flags
4575             ;;
4576           esac
4577           ;;
4578         esac
4579       fi
4580     done
4581     IFS="$lt_save_ifs"
4582   done
4583   : ${lt_cv_path_NM=no}
4584 fi
4585 fi
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4587 $as_echo "$lt_cv_path_NM" >&6; }
4588 if test "$lt_cv_path_NM" != "no"; then
4589   NM="$lt_cv_path_NM"
4590 else
4591   # Didn't find any BSD compatible name lister, look for dumpbin.
4592   if test -n "$DUMPBIN"; then :
4593     # Let the user override the test.
4594   else
4595     if test -n "$ac_tool_prefix"; then
4596   for ac_prog in dumpbin "link -dump"
4597   do
4598     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4601 $as_echo_n "checking for $ac_word... " >&6; }
4602 if ${ac_cv_prog_DUMPBIN+:} false; then :
4603   $as_echo_n "(cached) " >&6
4604 else
4605   if test -n "$DUMPBIN"; then
4606   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4607 else
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4610 do
4611   IFS=$as_save_IFS
4612   test -z "$as_dir" && as_dir=.
4613     for ac_exec_ext in '' $ac_executable_extensions; do
4614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4615     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4617     break 2
4618   fi
4619 done
4620   done
4621 IFS=$as_save_IFS
4622
4623 fi
4624 fi
4625 DUMPBIN=$ac_cv_prog_DUMPBIN
4626 if test -n "$DUMPBIN"; then
4627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4628 $as_echo "$DUMPBIN" >&6; }
4629 else
4630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4632 fi
4633
4634
4635     test -n "$DUMPBIN" && break
4636   done
4637 fi
4638 if test -z "$DUMPBIN"; then
4639   ac_ct_DUMPBIN=$DUMPBIN
4640   for ac_prog in dumpbin "link -dump"
4641 do
4642   # Extract the first word of "$ac_prog", so it can be a program name with args.
4643 set dummy $ac_prog; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4647   $as_echo_n "(cached) " >&6
4648 else
4649   if test -n "$ac_ct_DUMPBIN"; then
4650   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655   IFS=$as_save_IFS
4656   test -z "$as_dir" && as_dir=.
4657     for ac_exec_ext in '' $ac_executable_extensions; do
4658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4659     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661     break 2
4662   fi
4663 done
4664   done
4665 IFS=$as_save_IFS
4666
4667 fi
4668 fi
4669 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4670 if test -n "$ac_ct_DUMPBIN"; then
4671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4672 $as_echo "$ac_ct_DUMPBIN" >&6; }
4673 else
4674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4676 fi
4677
4678
4679   test -n "$ac_ct_DUMPBIN" && break
4680 done
4681
4682   if test "x$ac_ct_DUMPBIN" = x; then
4683     DUMPBIN=":"
4684   else
4685     case $cross_compiling:$ac_tool_warned in
4686 yes:)
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4689 ac_tool_warned=yes ;;
4690 esac
4691     DUMPBIN=$ac_ct_DUMPBIN
4692   fi
4693 fi
4694
4695     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4696     *COFF*)
4697       DUMPBIN="$DUMPBIN -symbols"
4698       ;;
4699     *)
4700       DUMPBIN=:
4701       ;;
4702     esac
4703   fi
4704
4705   if test "$DUMPBIN" != ":"; then
4706     NM="$DUMPBIN"
4707   fi
4708 fi
4709 test -z "$NM" && NM=nm
4710
4711
4712
4713
4714
4715
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4717 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4718 if ${lt_cv_nm_interface+:} false; then :
4719   $as_echo_n "(cached) " >&6
4720 else
4721   lt_cv_nm_interface="BSD nm"
4722   echo "int some_variable = 0;" > conftest.$ac_ext
4723   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4724   (eval "$ac_compile" 2>conftest.err)
4725   cat conftest.err >&5
4726   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4727   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4728   cat conftest.err >&5
4729   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4730   cat conftest.out >&5
4731   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4732     lt_cv_nm_interface="MS dumpbin"
4733   fi
4734   rm -f conftest*
4735 fi
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4737 $as_echo "$lt_cv_nm_interface" >&6; }
4738
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4740 $as_echo_n "checking whether ln -s works... " >&6; }
4741 LN_S=$as_ln_s
4742 if test "$LN_S" = "ln -s"; then
4743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4744 $as_echo "yes" >&6; }
4745 else
4746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4747 $as_echo "no, using $LN_S" >&6; }
4748 fi
4749
4750 # find the maximum length of command line arguments
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4752 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4753 if ${lt_cv_sys_max_cmd_len+:} false; then :
4754   $as_echo_n "(cached) " >&6
4755 else
4756     i=0
4757   teststring="ABCD"
4758
4759   case $build_os in
4760   msdosdjgpp*)
4761     # On DJGPP, this test can blow up pretty badly due to problems in libc
4762     # (any single argument exceeding 2000 bytes causes a buffer overrun
4763     # during glob expansion).  Even if it were fixed, the result of this
4764     # check would be larger than it should be.
4765     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4766     ;;
4767
4768   gnu*)
4769     # Under GNU Hurd, this test is not required because there is
4770     # no limit to the length of command line arguments.
4771     # Libtool will interpret -1 as no limit whatsoever
4772     lt_cv_sys_max_cmd_len=-1;
4773     ;;
4774
4775   cygwin* | mingw* | cegcc*)
4776     # On Win9x/ME, this test blows up -- it succeeds, but takes
4777     # about 5 minutes as the teststring grows exponentially.
4778     # Worse, since 9x/ME are not pre-emptively multitasking,
4779     # you end up with a "frozen" computer, even though with patience
4780     # the test eventually succeeds (with a max line length of 256k).
4781     # Instead, let's just punt: use the minimum linelength reported by
4782     # all of the supported platforms: 8192 (on NT/2K/XP).
4783     lt_cv_sys_max_cmd_len=8192;
4784     ;;
4785
4786   mint*)
4787     # On MiNT this can take a long time and run out of memory.
4788     lt_cv_sys_max_cmd_len=8192;
4789     ;;
4790
4791   amigaos*)
4792     # On AmigaOS with pdksh, this test takes hours, literally.
4793     # So we just punt and use a minimum line length of 8192.
4794     lt_cv_sys_max_cmd_len=8192;
4795     ;;
4796
4797   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4798     # This has been around since 386BSD, at least.  Likely further.
4799     if test -x /sbin/sysctl; then
4800       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4801     elif test -x /usr/sbin/sysctl; then
4802       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4803     else
4804       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4805     fi
4806     # And add a safety zone
4807     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4808     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4809     ;;
4810
4811   interix*)
4812     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4813     lt_cv_sys_max_cmd_len=196608
4814     ;;
4815
4816   os2*)
4817     # The test takes a long time on OS/2.
4818     lt_cv_sys_max_cmd_len=8192
4819     ;;
4820
4821   osf*)
4822     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4823     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4824     # nice to cause kernel panics so lets avoid the loop below.
4825     # First set a reasonable default.
4826     lt_cv_sys_max_cmd_len=16384
4827     #
4828     if test -x /sbin/sysconfig; then
4829       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4830         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4831       esac
4832     fi
4833     ;;
4834   sco3.2v5*)
4835     lt_cv_sys_max_cmd_len=102400
4836     ;;
4837   sysv5* | sco5v6* | sysv4.2uw2*)
4838     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4839     if test -n "$kargmax"; then
4840       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4841     else
4842       lt_cv_sys_max_cmd_len=32768
4843     fi
4844     ;;
4845   *)
4846     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4847     if test -n "$lt_cv_sys_max_cmd_len"; then
4848       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4849       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4850     else
4851       # Make teststring a little bigger before we do anything with it.
4852       # a 1K string should be a reasonable start.
4853       for i in 1 2 3 4 5 6 7 8 ; do
4854         teststring=$teststring$teststring
4855       done
4856       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4857       # If test is not a shell built-in, we'll probably end up computing a
4858       # maximum length that is only half of the actual maximum length, but
4859       # we can't tell.
4860       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4861                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4862               test $i != 17 # 1/2 MB should be enough
4863       do
4864         i=`expr $i + 1`
4865         teststring=$teststring$teststring
4866       done
4867       # Only check the string length outside the loop.
4868       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4869       teststring=
4870       # Add a significant safety factor because C++ compilers can tack on
4871       # massive amounts of additional arguments before passing them to the
4872       # linker.  It appears as though 1/2 is a usable value.
4873       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4874     fi
4875     ;;
4876   esac
4877
4878 fi
4879
4880 if test -n $lt_cv_sys_max_cmd_len ; then
4881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4882 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4883 else
4884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4885 $as_echo "none" >&6; }
4886 fi
4887 max_cmd_len=$lt_cv_sys_max_cmd_len
4888
4889
4890
4891
4892
4893
4894 : ${CP="cp -f"}
4895 : ${MV="mv -f"}
4896 : ${RM="rm -f"}
4897
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4899 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4900 # Try some XSI features
4901 xsi_shell=no
4902 ( _lt_dummy="a/b/c"
4903   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4904       = c,a/b,b/c, \
4905     && eval 'test $(( 1 + 1 )) -eq 2 \
4906     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4907   && xsi_shell=yes
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4909 $as_echo "$xsi_shell" >&6; }
4910
4911
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4913 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4914 lt_shell_append=no
4915 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4916     >/dev/null 2>&1 \
4917   && lt_shell_append=yes
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4919 $as_echo "$lt_shell_append" >&6; }
4920
4921
4922 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4923   lt_unset=unset
4924 else
4925   lt_unset=false
4926 fi
4927
4928
4929
4930
4931
4932 # test EBCDIC or ASCII
4933 case `echo X|tr X '\101'` in
4934  A) # ASCII based system
4935     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4936   lt_SP2NL='tr \040 \012'
4937   lt_NL2SP='tr \015\012 \040\040'
4938   ;;
4939  *) # EBCDIC based system
4940   lt_SP2NL='tr \100 \n'
4941   lt_NL2SP='tr \r\n \100\100'
4942   ;;
4943 esac
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4954 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4955 if ${lt_cv_to_host_file_cmd+:} false; then :
4956   $as_echo_n "(cached) " >&6
4957 else
4958   case $host in
4959   *-*-mingw* )
4960     case $build in
4961       *-*-mingw* ) # actually msys
4962         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4963         ;;
4964       *-*-cygwin* )
4965         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4966         ;;
4967       * ) # otherwise, assume *nix
4968         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4969         ;;
4970     esac
4971     ;;
4972   *-*-cygwin* )
4973     case $build in
4974       *-*-mingw* ) # actually msys
4975         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4976         ;;
4977       *-*-cygwin* )
4978         lt_cv_to_host_file_cmd=func_convert_file_noop
4979         ;;
4980       * ) # otherwise, assume *nix
4981         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4982         ;;
4983     esac
4984     ;;
4985   * ) # unhandled hosts (and "normal" native builds)
4986     lt_cv_to_host_file_cmd=func_convert_file_noop
4987     ;;
4988 esac
4989
4990 fi
4991
4992 to_host_file_cmd=$lt_cv_to_host_file_cmd
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4994 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4995
4996
4997
4998
4999
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5001 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5002 if ${lt_cv_to_tool_file_cmd+:} false; then :
5003   $as_echo_n "(cached) " >&6
5004 else
5005   #assume ordinary cross tools, or native build.
5006 lt_cv_to_tool_file_cmd=func_convert_file_noop
5007 case $host in
5008   *-*-mingw* )
5009     case $build in
5010       *-*-mingw* ) # actually msys
5011         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5012         ;;
5013     esac
5014     ;;
5015 esac
5016
5017 fi
5018
5019 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5021 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5022
5023
5024
5025
5026
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5028 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5029 if ${lt_cv_ld_reload_flag+:} false; then :
5030   $as_echo_n "(cached) " >&6
5031 else
5032   lt_cv_ld_reload_flag='-r'
5033 fi
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5035 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5036 reload_flag=$lt_cv_ld_reload_flag
5037 case $reload_flag in
5038 "" | " "*) ;;
5039 *) reload_flag=" $reload_flag" ;;
5040 esac
5041 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5042 case $host_os in
5043   cygwin* | mingw* | pw32* | cegcc*)
5044     if test "$GCC" != yes; then
5045       reload_cmds=false
5046     fi
5047     ;;
5048   darwin*)
5049     if test "$GCC" = yes; then
5050       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5051     else
5052       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5053     fi
5054     ;;
5055 esac
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065 if test -n "$ac_tool_prefix"; then
5066   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5067 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if ${ac_cv_prog_OBJDUMP+:} false; then :
5071   $as_echo_n "(cached) " >&6
5072 else
5073   if test -n "$OBJDUMP"; then
5074   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5075 else
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5078 do
5079   IFS=$as_save_IFS
5080   test -z "$as_dir" && as_dir=.
5081     for ac_exec_ext in '' $ac_executable_extensions; do
5082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5083     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085     break 2
5086   fi
5087 done
5088   done
5089 IFS=$as_save_IFS
5090
5091 fi
5092 fi
5093 OBJDUMP=$ac_cv_prog_OBJDUMP
5094 if test -n "$OBJDUMP"; then
5095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5096 $as_echo "$OBJDUMP" >&6; }
5097 else
5098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5100 fi
5101
5102
5103 fi
5104 if test -z "$ac_cv_prog_OBJDUMP"; then
5105   ac_ct_OBJDUMP=$OBJDUMP
5106   # Extract the first word of "objdump", so it can be a program name with args.
5107 set dummy objdump; ac_word=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5111   $as_echo_n "(cached) " >&6
5112 else
5113   if test -n "$ac_ct_OBJDUMP"; then
5114   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5115 else
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5118 do
5119   IFS=$as_save_IFS
5120   test -z "$as_dir" && as_dir=.
5121     for ac_exec_ext in '' $ac_executable_extensions; do
5122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125     break 2
5126   fi
5127 done
5128   done
5129 IFS=$as_save_IFS
5130
5131 fi
5132 fi
5133 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5134 if test -n "$ac_ct_OBJDUMP"; then
5135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5136 $as_echo "$ac_ct_OBJDUMP" >&6; }
5137 else
5138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 $as_echo "no" >&6; }
5140 fi
5141
5142   if test "x$ac_ct_OBJDUMP" = x; then
5143     OBJDUMP="false"
5144   else
5145     case $cross_compiling:$ac_tool_warned in
5146 yes:)
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5149 ac_tool_warned=yes ;;
5150 esac
5151     OBJDUMP=$ac_ct_OBJDUMP
5152   fi
5153 else
5154   OBJDUMP="$ac_cv_prog_OBJDUMP"
5155 fi
5156
5157 test -z "$OBJDUMP" && OBJDUMP=objdump
5158
5159
5160
5161
5162
5163
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5165 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5166 if ${lt_cv_deplibs_check_method+:} false; then :
5167   $as_echo_n "(cached) " >&6
5168 else
5169   lt_cv_file_magic_cmd='$MAGIC_CMD'
5170 lt_cv_file_magic_test_file=
5171 lt_cv_deplibs_check_method='unknown'
5172 # Need to set the preceding variable on all platforms that support
5173 # interlibrary dependencies.
5174 # 'none' -- dependencies not supported.
5175 # `unknown' -- same as none, but documents that we really don't know.
5176 # 'pass_all' -- all dependencies passed with no checks.
5177 # 'test_compile' -- check by making test program.
5178 # 'file_magic [[regex]]' -- check by looking for files in library path
5179 # which responds to the $file_magic_cmd with a given extended regex.
5180 # If you have `file' or equivalent on your system and you're not sure
5181 # whether `pass_all' will *always* work, you probably want this one.
5182
5183 case $host_os in
5184 aix[4-9]*)
5185   lt_cv_deplibs_check_method=pass_all
5186   ;;
5187
5188 beos*)
5189   lt_cv_deplibs_check_method=pass_all
5190   ;;
5191
5192 bsdi[45]*)
5193   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5194   lt_cv_file_magic_cmd='/usr/bin/file -L'
5195   lt_cv_file_magic_test_file=/shlib/libc.so
5196   ;;
5197
5198 cygwin*)
5199   # func_win32_libid is a shell function defined in ltmain.sh
5200   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5201   lt_cv_file_magic_cmd='func_win32_libid'
5202   ;;
5203
5204 mingw* | pw32*)
5205   # Base MSYS/MinGW do not provide the 'file' command needed by
5206   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5207   # unless we find 'file', for example because we are cross-compiling.
5208   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5209   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5210     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5211     lt_cv_file_magic_cmd='func_win32_libid'
5212   else
5213     # Keep this pattern in sync with the one in func_win32_libid.
5214     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5215     lt_cv_file_magic_cmd='$OBJDUMP -f'
5216   fi
5217   ;;
5218
5219 cegcc*)
5220   # use the weaker test based on 'objdump'. See mingw*.
5221   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5222   lt_cv_file_magic_cmd='$OBJDUMP -f'
5223   ;;
5224
5225 darwin* | rhapsody*)
5226   lt_cv_deplibs_check_method=pass_all
5227   ;;
5228
5229 freebsd* | dragonfly*)
5230   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5231     case $host_cpu in
5232     i*86 )
5233       # Not sure whether the presence of OpenBSD here was a mistake.
5234       # Let's accept both of them until this is cleared up.
5235       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5236       lt_cv_file_magic_cmd=/usr/bin/file
5237       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5238       ;;
5239     esac
5240   else
5241     lt_cv_deplibs_check_method=pass_all
5242   fi
5243   ;;
5244
5245 gnu*)
5246   lt_cv_deplibs_check_method=pass_all
5247   ;;
5248
5249 haiku*)
5250   lt_cv_deplibs_check_method=pass_all
5251   ;;
5252
5253 hpux10.20* | hpux11*)
5254   lt_cv_file_magic_cmd=/usr/bin/file
5255   case $host_cpu in
5256   ia64*)
5257     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5258     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5259     ;;
5260   hppa*64*)
5261     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]'
5262     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5263     ;;
5264   *)
5265     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5266     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5267     ;;
5268   esac
5269   ;;
5270
5271 interix[3-9]*)
5272   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5273   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5274   ;;
5275
5276 irix5* | irix6* | nonstopux*)
5277   case $LD in
5278   *-32|*"-32 ") libmagic=32-bit;;
5279   *-n32|*"-n32 ") libmagic=N32;;
5280   *-64|*"-64 ") libmagic=64-bit;;
5281   *) libmagic=never-match;;
5282   esac
5283   lt_cv_deplibs_check_method=pass_all
5284   ;;
5285
5286 # This must be glibc/ELF.
5287 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5288   lt_cv_deplibs_check_method=pass_all
5289   ;;
5290
5291 netbsd*)
5292   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5293     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5294   else
5295     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5296   fi
5297   ;;
5298
5299 newos6*)
5300   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5301   lt_cv_file_magic_cmd=/usr/bin/file
5302   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5303   ;;
5304
5305 *nto* | *qnx*)
5306   lt_cv_deplibs_check_method=pass_all
5307   ;;
5308
5309 openbsd*)
5310   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5311     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5312   else
5313     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5314   fi
5315   ;;
5316
5317 osf3* | osf4* | osf5*)
5318   lt_cv_deplibs_check_method=pass_all
5319   ;;
5320
5321 rdos*)
5322   lt_cv_deplibs_check_method=pass_all
5323   ;;
5324
5325 solaris*)
5326   lt_cv_deplibs_check_method=pass_all
5327   ;;
5328
5329 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5330   lt_cv_deplibs_check_method=pass_all
5331   ;;
5332
5333 sysv4 | sysv4.3*)
5334   case $host_vendor in
5335   motorola)
5336     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]'
5337     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5338     ;;
5339   ncr)
5340     lt_cv_deplibs_check_method=pass_all
5341     ;;
5342   sequent)
5343     lt_cv_file_magic_cmd='/bin/file'
5344     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5345     ;;
5346   sni)
5347     lt_cv_file_magic_cmd='/bin/file'
5348     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5349     lt_cv_file_magic_test_file=/lib/libc.so
5350     ;;
5351   siemens)
5352     lt_cv_deplibs_check_method=pass_all
5353     ;;
5354   pc)
5355     lt_cv_deplibs_check_method=pass_all
5356     ;;
5357   esac
5358   ;;
5359
5360 tpf*)
5361   lt_cv_deplibs_check_method=pass_all
5362   ;;
5363 esac
5364
5365 fi
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5367 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5368
5369 file_magic_glob=
5370 want_nocaseglob=no
5371 if test "$build" = "$host"; then
5372   case $host_os in
5373   mingw* | pw32*)
5374     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5375       want_nocaseglob=yes
5376     else
5377       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5378     fi
5379     ;;
5380   esac
5381 fi
5382
5383 file_magic_cmd=$lt_cv_file_magic_cmd
5384 deplibs_check_method=$lt_cv_deplibs_check_method
5385 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408 if test -n "$ac_tool_prefix"; then
5409   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5410 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_prog_DLLTOOL+:} false; then :
5414   $as_echo_n "(cached) " >&6
5415 else
5416   if test -n "$DLLTOOL"; then
5417   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5418 else
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5421 do
5422   IFS=$as_save_IFS
5423   test -z "$as_dir" && as_dir=.
5424     for ac_exec_ext in '' $ac_executable_extensions; do
5425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5426     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428     break 2
5429   fi
5430 done
5431   done
5432 IFS=$as_save_IFS
5433
5434 fi
5435 fi
5436 DLLTOOL=$ac_cv_prog_DLLTOOL
5437 if test -n "$DLLTOOL"; then
5438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5439 $as_echo "$DLLTOOL" >&6; }
5440 else
5441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 $as_echo "no" >&6; }
5443 fi
5444
5445
5446 fi
5447 if test -z "$ac_cv_prog_DLLTOOL"; then
5448   ac_ct_DLLTOOL=$DLLTOOL
5449   # Extract the first word of "dlltool", so it can be a program name with args.
5450 set dummy dlltool; ac_word=$2
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5452 $as_echo_n "checking for $ac_word... " >&6; }
5453 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5454   $as_echo_n "(cached) " >&6
5455 else
5456   if test -n "$ac_ct_DLLTOOL"; then
5457   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5458 else
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5461 do
5462   IFS=$as_save_IFS
5463   test -z "$as_dir" && as_dir=.
5464     for ac_exec_ext in '' $ac_executable_extensions; do
5465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5466     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468     break 2
5469   fi
5470 done
5471   done
5472 IFS=$as_save_IFS
5473
5474 fi
5475 fi
5476 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5477 if test -n "$ac_ct_DLLTOOL"; then
5478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5479 $as_echo "$ac_ct_DLLTOOL" >&6; }
5480 else
5481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5483 fi
5484
5485   if test "x$ac_ct_DLLTOOL" = x; then
5486     DLLTOOL="false"
5487   else
5488     case $cross_compiling:$ac_tool_warned in
5489 yes:)
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5492 ac_tool_warned=yes ;;
5493 esac
5494     DLLTOOL=$ac_ct_DLLTOOL
5495   fi
5496 else
5497   DLLTOOL="$ac_cv_prog_DLLTOOL"
5498 fi
5499
5500 test -z "$DLLTOOL" && DLLTOOL=dlltool
5501
5502
5503
5504
5505
5506
5507
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5509 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5510 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5511   $as_echo_n "(cached) " >&6
5512 else
5513   lt_cv_sharedlib_from_linklib_cmd='unknown'
5514
5515 case $host_os in
5516 cygwin* | mingw* | pw32* | cegcc*)
5517   # two different shell functions defined in ltmain.sh
5518   # decide which to use based on capabilities of $DLLTOOL
5519   case `$DLLTOOL --help 2>&1` in
5520   *--identify-strict*)
5521     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5522     ;;
5523   *)
5524     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5525     ;;
5526   esac
5527   ;;
5528 *)
5529   # fallback: assume linklib IS sharedlib
5530   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5531   ;;
5532 esac
5533
5534 fi
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5536 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5537 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5538 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5539
5540
5541
5542
5543
5544
5545
5546
5547 if test -n "$ac_tool_prefix"; then
5548   for ac_prog in ar
5549   do
5550     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5553 $as_echo_n "checking for $ac_word... " >&6; }
5554 if ${ac_cv_prog_AR+:} false; then :
5555   $as_echo_n "(cached) " >&6
5556 else
5557   if test -n "$AR"; then
5558   ac_cv_prog_AR="$AR" # Let the user override the test.
5559 else
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in $PATH
5562 do
5563   IFS=$as_save_IFS
5564   test -z "$as_dir" && as_dir=.
5565     for ac_exec_ext in '' $ac_executable_extensions; do
5566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5567     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5569     break 2
5570   fi
5571 done
5572   done
5573 IFS=$as_save_IFS
5574
5575 fi
5576 fi
5577 AR=$ac_cv_prog_AR
5578 if test -n "$AR"; then
5579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5580 $as_echo "$AR" >&6; }
5581 else
5582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583 $as_echo "no" >&6; }
5584 fi
5585
5586
5587     test -n "$AR" && break
5588   done
5589 fi
5590 if test -z "$AR"; then
5591   ac_ct_AR=$AR
5592   for ac_prog in ar
5593 do
5594   # Extract the first word of "$ac_prog", so it can be a program name with args.
5595 set dummy $ac_prog; ac_word=$2
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597 $as_echo_n "checking for $ac_word... " >&6; }
5598 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5599   $as_echo_n "(cached) " >&6
5600 else
5601   if test -n "$ac_ct_AR"; then
5602   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5603 else
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 for as_dir in $PATH
5606 do
5607   IFS=$as_save_IFS
5608   test -z "$as_dir" && as_dir=.
5609     for ac_exec_ext in '' $ac_executable_extensions; do
5610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611     ac_cv_prog_ac_ct_AR="$ac_prog"
5612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5613     break 2
5614   fi
5615 done
5616   done
5617 IFS=$as_save_IFS
5618
5619 fi
5620 fi
5621 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5622 if test -n "$ac_ct_AR"; then
5623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5624 $as_echo "$ac_ct_AR" >&6; }
5625 else
5626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627 $as_echo "no" >&6; }
5628 fi
5629
5630
5631   test -n "$ac_ct_AR" && break
5632 done
5633
5634   if test "x$ac_ct_AR" = x; then
5635     AR="false"
5636   else
5637     case $cross_compiling:$ac_tool_warned in
5638 yes:)
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5641 ac_tool_warned=yes ;;
5642 esac
5643     AR=$ac_ct_AR
5644   fi
5645 fi
5646
5647 : ${AR=ar}
5648 : ${AR_FLAGS=cru}
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5661 $as_echo_n "checking for archiver @FILE support... " >&6; }
5662 if ${lt_cv_ar_at_file+:} false; then :
5663   $as_echo_n "(cached) " >&6
5664 else
5665   lt_cv_ar_at_file=no
5666    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h.  */
5668
5669 int
5670 main ()
5671 {
5672
5673   ;
5674   return 0;
5675 }
5676 _ACEOF
5677 if ac_fn_c_try_compile "$LINENO"; then :
5678   echo conftest.$ac_objext > conftest.lst
5679       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5680       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5681   (eval $lt_ar_try) 2>&5
5682   ac_status=$?
5683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5684   test $ac_status = 0; }
5685       if test "$ac_status" -eq 0; then
5686         # Ensure the archiver fails upon bogus file names.
5687         rm -f conftest.$ac_objext libconftest.a
5688         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5689   (eval $lt_ar_try) 2>&5
5690   ac_status=$?
5691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5692   test $ac_status = 0; }
5693         if test "$ac_status" -ne 0; then
5694           lt_cv_ar_at_file=@
5695         fi
5696       fi
5697       rm -f conftest.* libconftest.a
5698
5699 fi
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701
5702 fi
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5704 $as_echo "$lt_cv_ar_at_file" >&6; }
5705
5706 if test "x$lt_cv_ar_at_file" = xno; then
5707   archiver_list_spec=
5708 else
5709   archiver_list_spec=$lt_cv_ar_at_file
5710 fi
5711
5712
5713
5714
5715
5716
5717
5718 if test -n "$ac_tool_prefix"; then
5719   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5720 set dummy ${ac_tool_prefix}strip; ac_word=$2
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if ${ac_cv_prog_STRIP+:} false; then :
5724   $as_echo_n "(cached) " >&6
5725 else
5726   if test -n "$STRIP"; then
5727   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5728 else
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH
5731 do
5732   IFS=$as_save_IFS
5733   test -z "$as_dir" && as_dir=.
5734     for ac_exec_ext in '' $ac_executable_extensions; do
5735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5736     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738     break 2
5739   fi
5740 done
5741   done
5742 IFS=$as_save_IFS
5743
5744 fi
5745 fi
5746 STRIP=$ac_cv_prog_STRIP
5747 if test -n "$STRIP"; then
5748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5749 $as_echo "$STRIP" >&6; }
5750 else
5751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5753 fi
5754
5755
5756 fi
5757 if test -z "$ac_cv_prog_STRIP"; then
5758   ac_ct_STRIP=$STRIP
5759   # Extract the first word of "strip", so it can be a program name with args.
5760 set dummy strip; ac_word=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5764   $as_echo_n "(cached) " >&6
5765 else
5766   if test -n "$ac_ct_STRIP"; then
5767   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5771 do
5772   IFS=$as_save_IFS
5773   test -z "$as_dir" && as_dir=.
5774     for ac_exec_ext in '' $ac_executable_extensions; do
5775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776     ac_cv_prog_ac_ct_STRIP="strip"
5777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778     break 2
5779   fi
5780 done
5781   done
5782 IFS=$as_save_IFS
5783
5784 fi
5785 fi
5786 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5787 if test -n "$ac_ct_STRIP"; then
5788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5789 $as_echo "$ac_ct_STRIP" >&6; }
5790 else
5791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5793 fi
5794
5795   if test "x$ac_ct_STRIP" = x; then
5796     STRIP=":"
5797   else
5798     case $cross_compiling:$ac_tool_warned in
5799 yes:)
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5802 ac_tool_warned=yes ;;
5803 esac
5804     STRIP=$ac_ct_STRIP
5805   fi
5806 else
5807   STRIP="$ac_cv_prog_STRIP"
5808 fi
5809
5810 test -z "$STRIP" && STRIP=:
5811
5812
5813
5814
5815
5816
5817 if test -n "$ac_tool_prefix"; then
5818   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5819 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if ${ac_cv_prog_RANLIB+:} false; then :
5823   $as_echo_n "(cached) " >&6
5824 else
5825   if test -n "$RANLIB"; then
5826   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831   IFS=$as_save_IFS
5832   test -z "$as_dir" && as_dir=.
5833     for ac_exec_ext in '' $ac_executable_extensions; do
5834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5835     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837     break 2
5838   fi
5839 done
5840   done
5841 IFS=$as_save_IFS
5842
5843 fi
5844 fi
5845 RANLIB=$ac_cv_prog_RANLIB
5846 if test -n "$RANLIB"; then
5847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5848 $as_echo "$RANLIB" >&6; }
5849 else
5850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5852 fi
5853
5854
5855 fi
5856 if test -z "$ac_cv_prog_RANLIB"; then
5857   ac_ct_RANLIB=$RANLIB
5858   # Extract the first word of "ranlib", so it can be a program name with args.
5859 set dummy ranlib; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5863   $as_echo_n "(cached) " >&6
5864 else
5865   if test -n "$ac_ct_RANLIB"; then
5866   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5870 do
5871   IFS=$as_save_IFS
5872   test -z "$as_dir" && as_dir=.
5873     for ac_exec_ext in '' $ac_executable_extensions; do
5874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875     ac_cv_prog_ac_ct_RANLIB="ranlib"
5876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5877     break 2
5878   fi
5879 done
5880   done
5881 IFS=$as_save_IFS
5882
5883 fi
5884 fi
5885 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5886 if test -n "$ac_ct_RANLIB"; then
5887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5888 $as_echo "$ac_ct_RANLIB" >&6; }
5889 else
5890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891 $as_echo "no" >&6; }
5892 fi
5893
5894   if test "x$ac_ct_RANLIB" = x; then
5895     RANLIB=":"
5896   else
5897     case $cross_compiling:$ac_tool_warned in
5898 yes:)
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5901 ac_tool_warned=yes ;;
5902 esac
5903     RANLIB=$ac_ct_RANLIB
5904   fi
5905 else
5906   RANLIB="$ac_cv_prog_RANLIB"
5907 fi
5908
5909 test -z "$RANLIB" && RANLIB=:
5910
5911
5912
5913
5914
5915
5916 # Determine commands to create old-style static archives.
5917 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5918 old_postinstall_cmds='chmod 644 $oldlib'
5919 old_postuninstall_cmds=
5920
5921 if test -n "$RANLIB"; then
5922   case $host_os in
5923   openbsd*)
5924     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5925     ;;
5926   *)
5927     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5928     ;;
5929   esac
5930   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5931 fi
5932
5933 case $host_os in
5934   darwin*)
5935     lock_old_archive_extraction=yes ;;
5936   *)
5937     lock_old_archive_extraction=no ;;
5938 esac
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978 # If no C compiler was specified, use CC.
5979 LTCC=${LTCC-"$CC"}
5980
5981 # If no C compiler flags were specified, use CFLAGS.
5982 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5983
5984 # Allow CC to be a program name with arguments.
5985 compiler=$CC
5986
5987
5988 # Check for command to grab the raw symbol name followed by C symbol from nm.
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5990 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5991 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5992   $as_echo_n "(cached) " >&6
5993 else
5994
5995 # These are sane defaults that work on at least a few old systems.
5996 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5997
5998 # Character class describing NM global symbol codes.
5999 symcode='[BCDEGRST]'
6000
6001 # Regexp to match symbols that can be accessed directly from C.
6002 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6003
6004 # Define system-specific variables.
6005 case $host_os in
6006 aix*)
6007   symcode='[BCDT]'
6008   ;;
6009 cygwin* | mingw* | pw32* | cegcc*)
6010   symcode='[ABCDGISTW]'
6011   ;;
6012 hpux*)
6013   if test "$host_cpu" = ia64; then
6014     symcode='[ABCDEGRST]'
6015   fi
6016   ;;
6017 irix* | nonstopux*)
6018   symcode='[BCDEGRST]'
6019   ;;
6020 osf*)
6021   symcode='[BCDEGQRST]'
6022   ;;
6023 solaris*)
6024   symcode='[BDRT]'
6025   ;;
6026 sco3.2v5*)
6027   symcode='[DT]'
6028   ;;
6029 sysv4.2uw2*)
6030   symcode='[DT]'
6031   ;;
6032 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6033   symcode='[ABDT]'
6034   ;;
6035 sysv4)
6036   symcode='[DFNSTU]'
6037   ;;
6038 esac
6039
6040 # If we're using GNU nm, then use its standard symbol codes.
6041 case `$NM -V 2>&1` in
6042 *GNU* | *'with BFD'*)
6043   symcode='[ABCDGIRSTW]' ;;
6044 esac
6045
6046 # Transform an extracted symbol line into a proper C declaration.
6047 # Some systems (esp. on ia64) link data and code symbols differently,
6048 # so use this general approach.
6049 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6050
6051 # Transform an extracted symbol line into symbol name and symbol address
6052 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6053 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'"
6054
6055 # Handle CRLF in mingw tool chain
6056 opt_cr=
6057 case $build_os in
6058 mingw*)
6059   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6060   ;;
6061 esac
6062
6063 # Try without a prefix underscore, then with it.
6064 for ac_symprfx in "" "_"; do
6065
6066   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6067   symxfrm="\\1 $ac_symprfx\\2 \\2"
6068
6069   # Write the raw and C identifiers.
6070   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6071     # Fake it for dumpbin and say T for any non-static function
6072     # and D for any global variable.
6073     # Also find C++ and __fastcall symbols from MSVC++,
6074     # which start with @ or ?.
6075     lt_cv_sys_global_symbol_pipe="$AWK '"\
6076 "     {last_section=section; section=\$ 3};"\
6077 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6078 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6079 "     \$ 0!~/External *\|/{next};"\
6080 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6081 "     {if(hide[section]) next};"\
6082 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6083 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6084 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6085 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6086 "     ' prfx=^$ac_symprfx"
6087   else
6088     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6089   fi
6090   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6091
6092   # Check to see that the pipe works correctly.
6093   pipe_works=no
6094
6095   rm -f conftest*
6096   cat > conftest.$ac_ext <<_LT_EOF
6097 #ifdef __cplusplus
6098 extern "C" {
6099 #endif
6100 char nm_test_var;
6101 void nm_test_func(void);
6102 void nm_test_func(void){}
6103 #ifdef __cplusplus
6104 }
6105 #endif
6106 int main(){nm_test_var='a';nm_test_func();return(0);}
6107 _LT_EOF
6108
6109   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6110   (eval $ac_compile) 2>&5
6111   ac_status=$?
6112   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6113   test $ac_status = 0; }; then
6114     # Now try to grab the symbols.
6115     nlist=conftest.nm
6116     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6117   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6118   ac_status=$?
6119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6120   test $ac_status = 0; } && test -s "$nlist"; then
6121       # Try sorting and uniquifying the output.
6122       if sort "$nlist" | uniq > "$nlist"T; then
6123         mv -f "$nlist"T "$nlist"
6124       else
6125         rm -f "$nlist"T
6126       fi
6127
6128       # Make sure that we snagged all the symbols we need.
6129       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6130         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6131           cat <<_LT_EOF > conftest.$ac_ext
6132 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6133 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6134 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6135    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6136 # define LT_DLSYM_CONST
6137 #elif defined(__osf__)
6138 /* This system does not cope well with relocations in const data.  */
6139 # define LT_DLSYM_CONST
6140 #else
6141 # define LT_DLSYM_CONST const
6142 #endif
6143
6144 #ifdef __cplusplus
6145 extern "C" {
6146 #endif
6147
6148 _LT_EOF
6149           # Now generate the symbol file.
6150           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6151
6152           cat <<_LT_EOF >> conftest.$ac_ext
6153
6154 /* The mapping between symbol names and symbols.  */
6155 LT_DLSYM_CONST struct {
6156   const char *name;
6157   void       *address;
6158 }
6159 lt__PROGRAM__LTX_preloaded_symbols[] =
6160 {
6161   { "@PROGRAM@", (void *) 0 },
6162 _LT_EOF
6163           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6164           cat <<\_LT_EOF >> conftest.$ac_ext
6165   {0, (void *) 0}
6166 };
6167
6168 /* This works around a problem in FreeBSD linker */
6169 #ifdef FREEBSD_WORKAROUND
6170 static const void *lt_preloaded_setup() {
6171   return lt__PROGRAM__LTX_preloaded_symbols;
6172 }
6173 #endif
6174
6175 #ifdef __cplusplus
6176 }
6177 #endif
6178 _LT_EOF
6179           # Now try linking the two files.
6180           mv conftest.$ac_objext conftstm.$ac_objext
6181           lt_globsym_save_LIBS=$LIBS
6182           lt_globsym_save_CFLAGS=$CFLAGS
6183           LIBS="conftstm.$ac_objext"
6184           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6185           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6186   (eval $ac_link) 2>&5
6187   ac_status=$?
6188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6189   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6190             pipe_works=yes
6191           fi
6192           LIBS=$lt_globsym_save_LIBS
6193           CFLAGS=$lt_globsym_save_CFLAGS
6194         else
6195           echo "cannot find nm_test_func in $nlist" >&5
6196         fi
6197       else
6198         echo "cannot find nm_test_var in $nlist" >&5
6199       fi
6200     else
6201       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6202     fi
6203   else
6204     echo "$progname: failed program was:" >&5
6205     cat conftest.$ac_ext >&5
6206   fi
6207   rm -rf conftest* conftst*
6208
6209   # Do not use the global_symbol_pipe unless it works.
6210   if test "$pipe_works" = yes; then
6211     break
6212   else
6213     lt_cv_sys_global_symbol_pipe=
6214   fi
6215 done
6216
6217 fi
6218
6219 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6220   lt_cv_sys_global_symbol_to_cdecl=
6221 fi
6222 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6224 $as_echo "failed" >&6; }
6225 else
6226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6227 $as_echo "ok" >&6; }
6228 fi
6229
6230 # Response file support.
6231 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6232   nm_file_list_spec='@'
6233 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6234   nm_file_list_spec='@'
6235 fi
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6264 $as_echo_n "checking for sysroot... " >&6; }
6265
6266 # Check whether --with-sysroot was given.
6267 if test "${with_sysroot+set}" = set; then :
6268   withval=$with_sysroot;
6269 else
6270   with_sysroot=no
6271 fi
6272
6273
6274 lt_sysroot=
6275 case ${with_sysroot} in #(
6276  yes)
6277    if test "$GCC" = yes; then
6278      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6279    fi
6280    ;; #(
6281  /*)
6282    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6283    ;; #(
6284  no|'')
6285    ;; #(
6286  *)
6287    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6288 $as_echo "${with_sysroot}" >&6; }
6289    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6290    ;;
6291 esac
6292
6293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6294 $as_echo "${lt_sysroot:-no}" >&6; }
6295
6296
6297
6298
6299
6300 # Check whether --enable-libtool-lock was given.
6301 if test "${enable_libtool_lock+set}" = set; then :
6302   enableval=$enable_libtool_lock;
6303 fi
6304
6305 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6306
6307 # Some flags need to be propagated to the compiler or linker for good
6308 # libtool support.
6309 case $host in
6310 ia64-*-hpux*)
6311   # Find out which ABI we are using.
6312   echo 'int i;' > conftest.$ac_ext
6313   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6314   (eval $ac_compile) 2>&5
6315   ac_status=$?
6316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6317   test $ac_status = 0; }; then
6318     case `/usr/bin/file conftest.$ac_objext` in
6319       *ELF-32*)
6320         HPUX_IA64_MODE="32"
6321         ;;
6322       *ELF-64*)
6323         HPUX_IA64_MODE="64"
6324         ;;
6325     esac
6326   fi
6327   rm -rf conftest*
6328   ;;
6329 *-*-irix6*)
6330   # Find out which ABI we are using.
6331   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6332   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6333   (eval $ac_compile) 2>&5
6334   ac_status=$?
6335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6336   test $ac_status = 0; }; then
6337     if test "$lt_cv_prog_gnu_ld" = yes; then
6338       case `/usr/bin/file conftest.$ac_objext` in
6339         *32-bit*)
6340           LD="${LD-ld} -melf32bsmip"
6341           ;;
6342         *N32*)
6343           LD="${LD-ld} -melf32bmipn32"
6344           ;;
6345         *64-bit*)
6346           LD="${LD-ld} -melf64bmip"
6347         ;;
6348       esac
6349     else
6350       case `/usr/bin/file conftest.$ac_objext` in
6351         *32-bit*)
6352           LD="${LD-ld} -32"
6353           ;;
6354         *N32*)
6355           LD="${LD-ld} -n32"
6356           ;;
6357         *64-bit*)
6358           LD="${LD-ld} -64"
6359           ;;
6360       esac
6361     fi
6362   fi
6363   rm -rf conftest*
6364   ;;
6365
6366 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6367 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6368   # Find out which ABI we are using.
6369   echo 'int i;' > conftest.$ac_ext
6370   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6371   (eval $ac_compile) 2>&5
6372   ac_status=$?
6373   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6374   test $ac_status = 0; }; then
6375     case `/usr/bin/file conftest.o` in
6376       *32-bit*)
6377         case $host in
6378           x86_64-*kfreebsd*-gnu)
6379             LD="${LD-ld} -m elf_i386_fbsd"
6380             ;;
6381           x86_64-*linux*)
6382             LD="${LD-ld} -m elf_i386"
6383             ;;
6384           powerpc64le-*linux*)
6385             LD="${LD-ld} -m elf32lppclinux"
6386             ;;
6387           powerpc64-*linux*)
6388             LD="${LD-ld} -m elf32ppclinux"
6389             ;;
6390           s390x-*linux*)
6391             LD="${LD-ld} -m elf_s390"
6392             ;;
6393           sparc64-*linux*)
6394             LD="${LD-ld} -m elf32_sparc"
6395             ;;
6396         esac
6397         ;;
6398       *64-bit*)
6399         case $host in
6400           x86_64-*kfreebsd*-gnu)
6401             LD="${LD-ld} -m elf_x86_64_fbsd"
6402             ;;
6403           x86_64-*linux*)
6404             LD="${LD-ld} -m elf_x86_64"
6405             ;;
6406           powerpcle-*linux*)
6407             LD="${LD-ld} -m elf64lppc"
6408             ;;
6409           powerpc-*linux*)
6410             LD="${LD-ld} -m elf64ppc"
6411             ;;
6412           s390*-*linux*|s390*-*tpf*)
6413             LD="${LD-ld} -m elf64_s390"
6414             ;;
6415           sparc*-*linux*)
6416             LD="${LD-ld} -m elf64_sparc"
6417             ;;
6418         esac
6419         ;;
6420     esac
6421   fi
6422   rm -rf conftest*
6423   ;;
6424
6425 *-*-sco3.2v5*)
6426   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6427   SAVE_CFLAGS="$CFLAGS"
6428   CFLAGS="$CFLAGS -belf"
6429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6430 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6431 if ${lt_cv_cc_needs_belf+:} false; then :
6432   $as_echo_n "(cached) " >&6
6433 else
6434   ac_ext=c
6435 ac_cpp='$CPP $CPPFLAGS'
6436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6439
6440      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h.  */
6442
6443 int
6444 main ()
6445 {
6446
6447   ;
6448   return 0;
6449 }
6450 _ACEOF
6451 if ac_fn_c_try_link "$LINENO"; then :
6452   lt_cv_cc_needs_belf=yes
6453 else
6454   lt_cv_cc_needs_belf=no
6455 fi
6456 rm -f core conftest.err conftest.$ac_objext \
6457     conftest$ac_exeext conftest.$ac_ext
6458      ac_ext=c
6459 ac_cpp='$CPP $CPPFLAGS'
6460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6463
6464 fi
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6466 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6467   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6468     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6469     CFLAGS="$SAVE_CFLAGS"
6470   fi
6471   ;;
6472 *-*solaris*)
6473   # Find out which ABI we are using.
6474   echo 'int i;' > conftest.$ac_ext
6475   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6476   (eval $ac_compile) 2>&5
6477   ac_status=$?
6478   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6479   test $ac_status = 0; }; then
6480     case `/usr/bin/file conftest.o` in
6481     *64-bit*)
6482       case $lt_cv_prog_gnu_ld in
6483       yes*)
6484         case $host in
6485         i?86-*-solaris*)
6486           LD="${LD-ld} -m elf_x86_64"
6487           ;;
6488         sparc*-*-solaris*)
6489           LD="${LD-ld} -m elf64_sparc"
6490           ;;
6491         esac
6492         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6493         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6494           LD="${LD-ld}_sol2"
6495         fi
6496         ;;
6497       *)
6498         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6499           LD="${LD-ld} -64"
6500         fi
6501         ;;
6502       esac
6503       ;;
6504     esac
6505   fi
6506   rm -rf conftest*
6507   ;;
6508 esac
6509
6510 need_locks="$enable_libtool_lock"
6511
6512 if test -n "$ac_tool_prefix"; then
6513   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6514 set dummy ${ac_tool_prefix}mt; ac_word=$2
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516 $as_echo_n "checking for $ac_word... " >&6; }
6517 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6518   $as_echo_n "(cached) " >&6
6519 else
6520   if test -n "$MANIFEST_TOOL"; then
6521   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6522 else
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 for as_dir in $PATH
6525 do
6526   IFS=$as_save_IFS
6527   test -z "$as_dir" && as_dir=.
6528     for ac_exec_ext in '' $ac_executable_extensions; do
6529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6530     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6532     break 2
6533   fi
6534 done
6535   done
6536 IFS=$as_save_IFS
6537
6538 fi
6539 fi
6540 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6541 if test -n "$MANIFEST_TOOL"; then
6542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6543 $as_echo "$MANIFEST_TOOL" >&6; }
6544 else
6545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546 $as_echo "no" >&6; }
6547 fi
6548
6549
6550 fi
6551 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6552   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6553   # Extract the first word of "mt", so it can be a program name with args.
6554 set dummy mt; ac_word=$2
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6558   $as_echo_n "(cached) " >&6
6559 else
6560   if test -n "$ac_ct_MANIFEST_TOOL"; then
6561   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6562 else
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH
6565 do
6566   IFS=$as_save_IFS
6567   test -z "$as_dir" && as_dir=.
6568     for ac_exec_ext in '' $ac_executable_extensions; do
6569   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6570     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572     break 2
6573   fi
6574 done
6575   done
6576 IFS=$as_save_IFS
6577
6578 fi
6579 fi
6580 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6581 if test -n "$ac_ct_MANIFEST_TOOL"; then
6582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6583 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6584 else
6585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586 $as_echo "no" >&6; }
6587 fi
6588
6589   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6590     MANIFEST_TOOL=":"
6591   else
6592     case $cross_compiling:$ac_tool_warned in
6593 yes:)
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6596 ac_tool_warned=yes ;;
6597 esac
6598     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6599   fi
6600 else
6601   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6602 fi
6603
6604 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6606 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6607 if ${lt_cv_path_mainfest_tool+:} false; then :
6608   $as_echo_n "(cached) " >&6
6609 else
6610   lt_cv_path_mainfest_tool=no
6611   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6612   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6613   cat conftest.err >&5
6614   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6615     lt_cv_path_mainfest_tool=yes
6616   fi
6617   rm -f conftest*
6618 fi
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6620 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6621 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6622   MANIFEST_TOOL=:
6623 fi
6624
6625
6626
6627
6628
6629
6630   case $host_os in
6631     rhapsody* | darwin*)
6632     if test -n "$ac_tool_prefix"; then
6633   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6634 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6638   $as_echo_n "(cached) " >&6
6639 else
6640   if test -n "$DSYMUTIL"; then
6641   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646   IFS=$as_save_IFS
6647   test -z "$as_dir" && as_dir=.
6648     for ac_exec_ext in '' $ac_executable_extensions; do
6649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652     break 2
6653   fi
6654 done
6655   done
6656 IFS=$as_save_IFS
6657
6658 fi
6659 fi
6660 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6661 if test -n "$DSYMUTIL"; then
6662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6663 $as_echo "$DSYMUTIL" >&6; }
6664 else
6665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6667 fi
6668
6669
6670 fi
6671 if test -z "$ac_cv_prog_DSYMUTIL"; then
6672   ac_ct_DSYMUTIL=$DSYMUTIL
6673   # Extract the first word of "dsymutil", so it can be a program name with args.
6674 set dummy dsymutil; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6678   $as_echo_n "(cached) " >&6
6679 else
6680   if test -n "$ac_ct_DSYMUTIL"; then
6681   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686   IFS=$as_save_IFS
6687   test -z "$as_dir" && as_dir=.
6688     for ac_exec_ext in '' $ac_executable_extensions; do
6689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692     break 2
6693   fi
6694 done
6695   done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6701 if test -n "$ac_ct_DSYMUTIL"; then
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6703 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6704 else
6705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6707 fi
6708
6709   if test "x$ac_ct_DSYMUTIL" = x; then
6710     DSYMUTIL=":"
6711   else
6712     case $cross_compiling:$ac_tool_warned in
6713 yes:)
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6716 ac_tool_warned=yes ;;
6717 esac
6718     DSYMUTIL=$ac_ct_DSYMUTIL
6719   fi
6720 else
6721   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6722 fi
6723
6724     if test -n "$ac_tool_prefix"; then
6725   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6726 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if ${ac_cv_prog_NMEDIT+:} false; then :
6730   $as_echo_n "(cached) " >&6
6731 else
6732   if test -n "$NMEDIT"; then
6733   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6734 else
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738   IFS=$as_save_IFS
6739   test -z "$as_dir" && as_dir=.
6740     for ac_exec_ext in '' $ac_executable_extensions; do
6741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6742     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744     break 2
6745   fi
6746 done
6747   done
6748 IFS=$as_save_IFS
6749
6750 fi
6751 fi
6752 NMEDIT=$ac_cv_prog_NMEDIT
6753 if test -n "$NMEDIT"; then
6754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6755 $as_echo "$NMEDIT" >&6; }
6756 else
6757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6759 fi
6760
6761
6762 fi
6763 if test -z "$ac_cv_prog_NMEDIT"; then
6764   ac_ct_NMEDIT=$NMEDIT
6765   # Extract the first word of "nmedit", so it can be a program name with args.
6766 set dummy nmedit; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6770   $as_echo_n "(cached) " >&6
6771 else
6772   if test -n "$ac_ct_NMEDIT"; then
6773   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6774 else
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 for as_dir in $PATH
6777 do
6778   IFS=$as_save_IFS
6779   test -z "$as_dir" && as_dir=.
6780     for ac_exec_ext in '' $ac_executable_extensions; do
6781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6782     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784     break 2
6785   fi
6786 done
6787   done
6788 IFS=$as_save_IFS
6789
6790 fi
6791 fi
6792 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6793 if test -n "$ac_ct_NMEDIT"; then
6794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6795 $as_echo "$ac_ct_NMEDIT" >&6; }
6796 else
6797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6799 fi
6800
6801   if test "x$ac_ct_NMEDIT" = x; then
6802     NMEDIT=":"
6803   else
6804     case $cross_compiling:$ac_tool_warned in
6805 yes:)
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6808 ac_tool_warned=yes ;;
6809 esac
6810     NMEDIT=$ac_ct_NMEDIT
6811   fi
6812 else
6813   NMEDIT="$ac_cv_prog_NMEDIT"
6814 fi
6815
6816     if test -n "$ac_tool_prefix"; then
6817   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6818 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if ${ac_cv_prog_LIPO+:} false; then :
6822   $as_echo_n "(cached) " >&6
6823 else
6824   if test -n "$LIPO"; then
6825   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830   IFS=$as_save_IFS
6831   test -z "$as_dir" && as_dir=.
6832     for ac_exec_ext in '' $ac_executable_extensions; do
6833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6834     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836     break 2
6837   fi
6838 done
6839   done
6840 IFS=$as_save_IFS
6841
6842 fi
6843 fi
6844 LIPO=$ac_cv_prog_LIPO
6845 if test -n "$LIPO"; then
6846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6847 $as_echo "$LIPO" >&6; }
6848 else
6849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6851 fi
6852
6853
6854 fi
6855 if test -z "$ac_cv_prog_LIPO"; then
6856   ac_ct_LIPO=$LIPO
6857   # Extract the first word of "lipo", so it can be a program name with args.
6858 set dummy lipo; ac_word=$2
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860 $as_echo_n "checking for $ac_word... " >&6; }
6861 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6862   $as_echo_n "(cached) " >&6
6863 else
6864   if test -n "$ac_ct_LIPO"; then
6865   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6866 else
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870   IFS=$as_save_IFS
6871   test -z "$as_dir" && as_dir=.
6872     for ac_exec_ext in '' $ac_executable_extensions; do
6873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6874     ac_cv_prog_ac_ct_LIPO="lipo"
6875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876     break 2
6877   fi
6878 done
6879   done
6880 IFS=$as_save_IFS
6881
6882 fi
6883 fi
6884 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6885 if test -n "$ac_ct_LIPO"; then
6886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6887 $as_echo "$ac_ct_LIPO" >&6; }
6888 else
6889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 $as_echo "no" >&6; }
6891 fi
6892
6893   if test "x$ac_ct_LIPO" = x; then
6894     LIPO=":"
6895   else
6896     case $cross_compiling:$ac_tool_warned in
6897 yes:)
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6900 ac_tool_warned=yes ;;
6901 esac
6902     LIPO=$ac_ct_LIPO
6903   fi
6904 else
6905   LIPO="$ac_cv_prog_LIPO"
6906 fi
6907
6908     if test -n "$ac_tool_prefix"; then
6909   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6910 set dummy ${ac_tool_prefix}otool; ac_word=$2
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 $as_echo_n "checking for $ac_word... " >&6; }
6913 if ${ac_cv_prog_OTOOL+:} false; then :
6914   $as_echo_n "(cached) " >&6
6915 else
6916   if test -n "$OTOOL"; then
6917   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6918 else
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 for as_dir in $PATH
6921 do
6922   IFS=$as_save_IFS
6923   test -z "$as_dir" && as_dir=.
6924     for ac_exec_ext in '' $ac_executable_extensions; do
6925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6926     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928     break 2
6929   fi
6930 done
6931   done
6932 IFS=$as_save_IFS
6933
6934 fi
6935 fi
6936 OTOOL=$ac_cv_prog_OTOOL
6937 if test -n "$OTOOL"; then
6938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6939 $as_echo "$OTOOL" >&6; }
6940 else
6941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6943 fi
6944
6945
6946 fi
6947 if test -z "$ac_cv_prog_OTOOL"; then
6948   ac_ct_OTOOL=$OTOOL
6949   # Extract the first word of "otool", so it can be a program name with args.
6950 set dummy otool; ac_word=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6954   $as_echo_n "(cached) " >&6
6955 else
6956   if test -n "$ac_ct_OTOOL"; then
6957   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962   IFS=$as_save_IFS
6963   test -z "$as_dir" && as_dir=.
6964     for ac_exec_ext in '' $ac_executable_extensions; do
6965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6966     ac_cv_prog_ac_ct_OTOOL="otool"
6967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968     break 2
6969   fi
6970 done
6971   done
6972 IFS=$as_save_IFS
6973
6974 fi
6975 fi
6976 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6977 if test -n "$ac_ct_OTOOL"; then
6978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6979 $as_echo "$ac_ct_OTOOL" >&6; }
6980 else
6981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6983 fi
6984
6985   if test "x$ac_ct_OTOOL" = x; then
6986     OTOOL=":"
6987   else
6988     case $cross_compiling:$ac_tool_warned in
6989 yes:)
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6992 ac_tool_warned=yes ;;
6993 esac
6994     OTOOL=$ac_ct_OTOOL
6995   fi
6996 else
6997   OTOOL="$ac_cv_prog_OTOOL"
6998 fi
6999
7000     if test -n "$ac_tool_prefix"; then
7001   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7002 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004 $as_echo_n "checking for $ac_word... " >&6; }
7005 if ${ac_cv_prog_OTOOL64+:} false; then :
7006   $as_echo_n "(cached) " >&6
7007 else
7008   if test -n "$OTOOL64"; then
7009   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7010 else
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7013 do
7014   IFS=$as_save_IFS
7015   test -z "$as_dir" && as_dir=.
7016     for ac_exec_ext in '' $ac_executable_extensions; do
7017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7018     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020     break 2
7021   fi
7022 done
7023   done
7024 IFS=$as_save_IFS
7025
7026 fi
7027 fi
7028 OTOOL64=$ac_cv_prog_OTOOL64
7029 if test -n "$OTOOL64"; then
7030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7031 $as_echo "$OTOOL64" >&6; }
7032 else
7033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7035 fi
7036
7037
7038 fi
7039 if test -z "$ac_cv_prog_OTOOL64"; then
7040   ac_ct_OTOOL64=$OTOOL64
7041   # Extract the first word of "otool64", so it can be a program name with args.
7042 set dummy otool64; ac_word=$2
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044 $as_echo_n "checking for $ac_word... " >&6; }
7045 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7046   $as_echo_n "(cached) " >&6
7047 else
7048   if test -n "$ac_ct_OTOOL64"; then
7049   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7050 else
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 for as_dir in $PATH
7053 do
7054   IFS=$as_save_IFS
7055   test -z "$as_dir" && as_dir=.
7056     for ac_exec_ext in '' $ac_executable_extensions; do
7057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7058     ac_cv_prog_ac_ct_OTOOL64="otool64"
7059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7060     break 2
7061   fi
7062 done
7063   done
7064 IFS=$as_save_IFS
7065
7066 fi
7067 fi
7068 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7069 if test -n "$ac_ct_OTOOL64"; then
7070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7071 $as_echo "$ac_ct_OTOOL64" >&6; }
7072 else
7073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074 $as_echo "no" >&6; }
7075 fi
7076
7077   if test "x$ac_ct_OTOOL64" = x; then
7078     OTOOL64=":"
7079   else
7080     case $cross_compiling:$ac_tool_warned in
7081 yes:)
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7084 ac_tool_warned=yes ;;
7085 esac
7086     OTOOL64=$ac_ct_OTOOL64
7087   fi
7088 else
7089   OTOOL64="$ac_cv_prog_OTOOL64"
7090 fi
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7119 $as_echo_n "checking for -single_module linker flag... " >&6; }
7120 if ${lt_cv_apple_cc_single_mod+:} false; then :
7121   $as_echo_n "(cached) " >&6
7122 else
7123   lt_cv_apple_cc_single_mod=no
7124       if test -z "${LT_MULTI_MODULE}"; then
7125         # By default we will add the -single_module flag. You can override
7126         # by either setting the environment variable LT_MULTI_MODULE
7127         # non-empty at configure time, or by adding -multi_module to the
7128         # link flags.
7129         rm -rf libconftest.dylib*
7130         echo "int foo(void){return 1;}" > conftest.c
7131         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7132 -dynamiclib -Wl,-single_module conftest.c" >&5
7133         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7134           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7135         _lt_result=$?
7136         # If there is a non-empty error log, and "single_module"
7137         # appears in it, assume the flag caused a linker warning
7138         if test -s conftest.err && $GREP single_module conftest.err; then
7139           cat conftest.err >&5
7140         # Otherwise, if the output was created with a 0 exit code from
7141         # the compiler, it worked.
7142         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7143           lt_cv_apple_cc_single_mod=yes
7144         else
7145           cat conftest.err >&5
7146         fi
7147         rm -rf libconftest.dylib*
7148         rm -f conftest.*
7149       fi
7150 fi
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7152 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7153
7154     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7155 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7156 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7157   $as_echo_n "(cached) " >&6
7158 else
7159   lt_cv_ld_exported_symbols_list=no
7160       save_LDFLAGS=$LDFLAGS
7161       echo "_main" > conftest.sym
7162       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7163       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h.  */
7165
7166 int
7167 main ()
7168 {
7169
7170   ;
7171   return 0;
7172 }
7173 _ACEOF
7174 if ac_fn_c_try_link "$LINENO"; then :
7175   lt_cv_ld_exported_symbols_list=yes
7176 else
7177   lt_cv_ld_exported_symbols_list=no
7178 fi
7179 rm -f core conftest.err conftest.$ac_objext \
7180     conftest$ac_exeext conftest.$ac_ext
7181         LDFLAGS="$save_LDFLAGS"
7182
7183 fi
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7185 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7186
7187     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7188 $as_echo_n "checking for -force_load linker flag... " >&6; }
7189 if ${lt_cv_ld_force_load+:} false; then :
7190   $as_echo_n "(cached) " >&6
7191 else
7192   lt_cv_ld_force_load=no
7193       cat > conftest.c << _LT_EOF
7194 int forced_loaded() { return 2;}
7195 _LT_EOF
7196       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7197       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7198       echo "$AR cru libconftest.a conftest.o" >&5
7199       $AR cru libconftest.a conftest.o 2>&5
7200       echo "$RANLIB libconftest.a" >&5
7201       $RANLIB libconftest.a 2>&5
7202       cat > conftest.c << _LT_EOF
7203 int main() { return 0;}
7204 _LT_EOF
7205       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7206       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7207       _lt_result=$?
7208       if test -s conftest.err && $GREP force_load conftest.err; then
7209         cat conftest.err >&5
7210       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7211         lt_cv_ld_force_load=yes
7212       else
7213         cat conftest.err >&5
7214       fi
7215         rm -f conftest.err libconftest.a conftest conftest.c
7216         rm -rf conftest.dSYM
7217
7218 fi
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7220 $as_echo "$lt_cv_ld_force_load" >&6; }
7221     case $host_os in
7222     rhapsody* | darwin1.[012])
7223       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7224     darwin1.*)
7225       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7226     darwin*) # darwin 5.x on
7227       # if running on 10.5 or later, the deployment target defaults
7228       # to the OS version, if on x86, and 10.4, the deployment
7229       # target defaults to 10.4. Don't you love it?
7230       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7231         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7232           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7233         10.[012]*)
7234           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7235         10.*)
7236           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7237       esac
7238     ;;
7239   esac
7240     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7241       _lt_dar_single_mod='$single_module'
7242     fi
7243     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7244       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7245     else
7246       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7247     fi
7248     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7249       _lt_dsymutil='~$DSYMUTIL $lib || :'
7250     else
7251       _lt_dsymutil=
7252     fi
7253     ;;
7254   esac
7255
7256 ac_ext=c
7257 ac_cpp='$CPP $CPPFLAGS'
7258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7262 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7263 # On Suns, sometimes $CPP names a directory.
7264 if test -n "$CPP" && test -d "$CPP"; then
7265   CPP=
7266 fi
7267 if test -z "$CPP"; then
7268   if ${ac_cv_prog_CPP+:} false; then :
7269   $as_echo_n "(cached) " >&6
7270 else
7271       # Double quotes because CPP needs to be expanded
7272     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7273     do
7274       ac_preproc_ok=false
7275 for ac_c_preproc_warn_flag in '' yes
7276 do
7277   # Use a header file that comes with gcc, so configuring glibc
7278   # with a fresh cross-compiler works.
7279   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7280   # <limits.h> exists even on freestanding compilers.
7281   # On the NeXT, cc -E runs the code through the compiler's parser,
7282   # not just through cpp. "Syntax error" is here to catch this case.
7283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h.  */
7285 #ifdef __STDC__
7286 # include <limits.h>
7287 #else
7288 # include <assert.h>
7289 #endif
7290                      Syntax error
7291 _ACEOF
7292 if ac_fn_c_try_cpp "$LINENO"; then :
7293
7294 else
7295   # Broken: fails on valid input.
7296 continue
7297 fi
7298 rm -f conftest.err conftest.i conftest.$ac_ext
7299
7300   # OK, works on sane cases.  Now check whether nonexistent headers
7301   # can be detected and how.
7302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h.  */
7304 #include <ac_nonexistent.h>
7305 _ACEOF
7306 if ac_fn_c_try_cpp "$LINENO"; then :
7307   # Broken: success on invalid input.
7308 continue
7309 else
7310   # Passes both tests.
7311 ac_preproc_ok=:
7312 break
7313 fi
7314 rm -f conftest.err conftest.i conftest.$ac_ext
7315
7316 done
7317 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7318 rm -f conftest.i conftest.err conftest.$ac_ext
7319 if $ac_preproc_ok; then :
7320   break
7321 fi
7322
7323     done
7324     ac_cv_prog_CPP=$CPP
7325
7326 fi
7327   CPP=$ac_cv_prog_CPP
7328 else
7329   ac_cv_prog_CPP=$CPP
7330 fi
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7332 $as_echo "$CPP" >&6; }
7333 ac_preproc_ok=false
7334 for ac_c_preproc_warn_flag in '' yes
7335 do
7336   # Use a header file that comes with gcc, so configuring glibc
7337   # with a fresh cross-compiler works.
7338   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7339   # <limits.h> exists even on freestanding compilers.
7340   # On the NeXT, cc -E runs the code through the compiler's parser,
7341   # not just through cpp. "Syntax error" is here to catch this case.
7342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h.  */
7344 #ifdef __STDC__
7345 # include <limits.h>
7346 #else
7347 # include <assert.h>
7348 #endif
7349                      Syntax error
7350 _ACEOF
7351 if ac_fn_c_try_cpp "$LINENO"; then :
7352
7353 else
7354   # Broken: fails on valid input.
7355 continue
7356 fi
7357 rm -f conftest.err conftest.i conftest.$ac_ext
7358
7359   # OK, works on sane cases.  Now check whether nonexistent headers
7360   # can be detected and how.
7361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h.  */
7363 #include <ac_nonexistent.h>
7364 _ACEOF
7365 if ac_fn_c_try_cpp "$LINENO"; then :
7366   # Broken: success on invalid input.
7367 continue
7368 else
7369   # Passes both tests.
7370 ac_preproc_ok=:
7371 break
7372 fi
7373 rm -f conftest.err conftest.i conftest.$ac_ext
7374
7375 done
7376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7377 rm -f conftest.i conftest.err conftest.$ac_ext
7378 if $ac_preproc_ok; then :
7379
7380 else
7381   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7383 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7384 See \`config.log' for more details" "$LINENO" 5; }
7385 fi
7386
7387 ac_ext=c
7388 ac_cpp='$CPP $CPPFLAGS'
7389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7392
7393
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7395 $as_echo_n "checking for ANSI C header files... " >&6; }
7396 if ${ac_cv_header_stdc+:} false; then :
7397   $as_echo_n "(cached) " >&6
7398 else
7399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h.  */
7401 #include <stdlib.h>
7402 #include <stdarg.h>
7403 #include <string.h>
7404 #include <float.h>
7405
7406 int
7407 main ()
7408 {
7409
7410   ;
7411   return 0;
7412 }
7413 _ACEOF
7414 if ac_fn_c_try_compile "$LINENO"; then :
7415   ac_cv_header_stdc=yes
7416 else
7417   ac_cv_header_stdc=no
7418 fi
7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7420
7421 if test $ac_cv_header_stdc = yes; then
7422   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h.  */
7425 #include <string.h>
7426
7427 _ACEOF
7428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7429   $EGREP "memchr" >/dev/null 2>&1; then :
7430
7431 else
7432   ac_cv_header_stdc=no
7433 fi
7434 rm -f conftest*
7435
7436 fi
7437
7438 if test $ac_cv_header_stdc = yes; then
7439   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h.  */
7442 #include <stdlib.h>
7443
7444 _ACEOF
7445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7446   $EGREP "free" >/dev/null 2>&1; then :
7447
7448 else
7449   ac_cv_header_stdc=no
7450 fi
7451 rm -f conftest*
7452
7453 fi
7454
7455 if test $ac_cv_header_stdc = yes; then
7456   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7457   if test "$cross_compiling" = yes; then :
7458   :
7459 else
7460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h.  */
7462 #include <ctype.h>
7463 #include <stdlib.h>
7464 #if ((' ' & 0x0FF) == 0x020)
7465 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7466 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7467 #else
7468 # define ISLOWER(c) \
7469                    (('a' <= (c) && (c) <= 'i') \
7470                      || ('j' <= (c) && (c) <= 'r') \
7471                      || ('s' <= (c) && (c) <= 'z'))
7472 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7473 #endif
7474
7475 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7476 int
7477 main ()
7478 {
7479   int i;
7480   for (i = 0; i < 256; i++)
7481     if (XOR (islower (i), ISLOWER (i))
7482         || toupper (i) != TOUPPER (i))
7483       return 2;
7484   return 0;
7485 }
7486 _ACEOF
7487 if ac_fn_c_try_run "$LINENO"; then :
7488
7489 else
7490   ac_cv_header_stdc=no
7491 fi
7492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7493   conftest.$ac_objext conftest.beam conftest.$ac_ext
7494 fi
7495
7496 fi
7497 fi
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7499 $as_echo "$ac_cv_header_stdc" >&6; }
7500 if test $ac_cv_header_stdc = yes; then
7501
7502 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7503
7504 fi
7505
7506 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7507 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7508                   inttypes.h stdint.h unistd.h
7509 do :
7510   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7511 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7512 "
7513 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7514   cat >>confdefs.h <<_ACEOF
7515 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7516 _ACEOF
7517
7518 fi
7519
7520 done
7521
7522
7523 for ac_header in dlfcn.h
7524 do :
7525   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7526 "
7527 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7528   cat >>confdefs.h <<_ACEOF
7529 #define HAVE_DLFCN_H 1
7530 _ACEOF
7531
7532 fi
7533
7534 done
7535
7536
7537
7538
7539
7540 # Set options
7541 enable_win32_dll=yes
7542
7543 case $host in
7544 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7545   if test -n "$ac_tool_prefix"; then
7546   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7547 set dummy ${ac_tool_prefix}as; ac_word=$2
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549 $as_echo_n "checking for $ac_word... " >&6; }
7550 if ${ac_cv_prog_AS+:} false; then :
7551   $as_echo_n "(cached) " >&6
7552 else
7553   if test -n "$AS"; then
7554   ac_cv_prog_AS="$AS" # Let the user override the test.
7555 else
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559   IFS=$as_save_IFS
7560   test -z "$as_dir" && as_dir=.
7561     for ac_exec_ext in '' $ac_executable_extensions; do
7562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7563     ac_cv_prog_AS="${ac_tool_prefix}as"
7564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565     break 2
7566   fi
7567 done
7568   done
7569 IFS=$as_save_IFS
7570
7571 fi
7572 fi
7573 AS=$ac_cv_prog_AS
7574 if test -n "$AS"; then
7575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7576 $as_echo "$AS" >&6; }
7577 else
7578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7580 fi
7581
7582
7583 fi
7584 if test -z "$ac_cv_prog_AS"; then
7585   ac_ct_AS=$AS
7586   # Extract the first word of "as", so it can be a program name with args.
7587 set dummy as; ac_word=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7591   $as_echo_n "(cached) " >&6
7592 else
7593   if test -n "$ac_ct_AS"; then
7594   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599   IFS=$as_save_IFS
7600   test -z "$as_dir" && as_dir=.
7601     for ac_exec_ext in '' $ac_executable_extensions; do
7602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7603     ac_cv_prog_ac_ct_AS="as"
7604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605     break 2
7606   fi
7607 done
7608   done
7609 IFS=$as_save_IFS
7610
7611 fi
7612 fi
7613 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7614 if test -n "$ac_ct_AS"; then
7615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7616 $as_echo "$ac_ct_AS" >&6; }
7617 else
7618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7620 fi
7621
7622   if test "x$ac_ct_AS" = x; then
7623     AS="false"
7624   else
7625     case $cross_compiling:$ac_tool_warned in
7626 yes:)
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7629 ac_tool_warned=yes ;;
7630 esac
7631     AS=$ac_ct_AS
7632   fi
7633 else
7634   AS="$ac_cv_prog_AS"
7635 fi
7636
7637   if test -n "$ac_tool_prefix"; then
7638   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7639 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641 $as_echo_n "checking for $ac_word... " >&6; }
7642 if ${ac_cv_prog_DLLTOOL+:} false; then :
7643   $as_echo_n "(cached) " >&6
7644 else
7645   if test -n "$DLLTOOL"; then
7646   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7647 else
7648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 for as_dir in $PATH
7650 do
7651   IFS=$as_save_IFS
7652   test -z "$as_dir" && as_dir=.
7653     for ac_exec_ext in '' $ac_executable_extensions; do
7654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7655     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657     break 2
7658   fi
7659 done
7660   done
7661 IFS=$as_save_IFS
7662
7663 fi
7664 fi
7665 DLLTOOL=$ac_cv_prog_DLLTOOL
7666 if test -n "$DLLTOOL"; then
7667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7668 $as_echo "$DLLTOOL" >&6; }
7669 else
7670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671 $as_echo "no" >&6; }
7672 fi
7673
7674
7675 fi
7676 if test -z "$ac_cv_prog_DLLTOOL"; then
7677   ac_ct_DLLTOOL=$DLLTOOL
7678   # Extract the first word of "dlltool", so it can be a program name with args.
7679 set dummy dlltool; ac_word=$2
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681 $as_echo_n "checking for $ac_word... " >&6; }
7682 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7683   $as_echo_n "(cached) " >&6
7684 else
7685   if test -n "$ac_ct_DLLTOOL"; then
7686   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7687 else
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 for as_dir in $PATH
7690 do
7691   IFS=$as_save_IFS
7692   test -z "$as_dir" && as_dir=.
7693     for ac_exec_ext in '' $ac_executable_extensions; do
7694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7695     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7697     break 2
7698   fi
7699 done
7700   done
7701 IFS=$as_save_IFS
7702
7703 fi
7704 fi
7705 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7706 if test -n "$ac_ct_DLLTOOL"; then
7707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7708 $as_echo "$ac_ct_DLLTOOL" >&6; }
7709 else
7710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711 $as_echo "no" >&6; }
7712 fi
7713
7714   if test "x$ac_ct_DLLTOOL" = x; then
7715     DLLTOOL="false"
7716   else
7717     case $cross_compiling:$ac_tool_warned in
7718 yes:)
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7721 ac_tool_warned=yes ;;
7722 esac
7723     DLLTOOL=$ac_ct_DLLTOOL
7724   fi
7725 else
7726   DLLTOOL="$ac_cv_prog_DLLTOOL"
7727 fi
7728
7729   if test -n "$ac_tool_prefix"; then
7730   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7731 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733 $as_echo_n "checking for $ac_word... " >&6; }
7734 if ${ac_cv_prog_OBJDUMP+:} false; then :
7735   $as_echo_n "(cached) " >&6
7736 else
7737   if test -n "$OBJDUMP"; then
7738   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7739 else
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7742 do
7743   IFS=$as_save_IFS
7744   test -z "$as_dir" && as_dir=.
7745     for ac_exec_ext in '' $ac_executable_extensions; do
7746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7747     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749     break 2
7750   fi
7751 done
7752   done
7753 IFS=$as_save_IFS
7754
7755 fi
7756 fi
7757 OBJDUMP=$ac_cv_prog_OBJDUMP
7758 if test -n "$OBJDUMP"; then
7759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7760 $as_echo "$OBJDUMP" >&6; }
7761 else
7762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763 $as_echo "no" >&6; }
7764 fi
7765
7766
7767 fi
7768 if test -z "$ac_cv_prog_OBJDUMP"; then
7769   ac_ct_OBJDUMP=$OBJDUMP
7770   # Extract the first word of "objdump", so it can be a program name with args.
7771 set dummy objdump; ac_word=$2
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 $as_echo_n "checking for $ac_word... " >&6; }
7774 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7775   $as_echo_n "(cached) " >&6
7776 else
7777   if test -n "$ac_ct_OBJDUMP"; then
7778   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7779 else
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7782 do
7783   IFS=$as_save_IFS
7784   test -z "$as_dir" && as_dir=.
7785     for ac_exec_ext in '' $ac_executable_extensions; do
7786   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7787     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789     break 2
7790   fi
7791 done
7792   done
7793 IFS=$as_save_IFS
7794
7795 fi
7796 fi
7797 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7798 if test -n "$ac_ct_OBJDUMP"; then
7799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7800 $as_echo "$ac_ct_OBJDUMP" >&6; }
7801 else
7802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7804 fi
7805
7806   if test "x$ac_ct_OBJDUMP" = x; then
7807     OBJDUMP="false"
7808   else
7809     case $cross_compiling:$ac_tool_warned in
7810 yes:)
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7813 ac_tool_warned=yes ;;
7814 esac
7815     OBJDUMP=$ac_ct_OBJDUMP
7816   fi
7817 else
7818   OBJDUMP="$ac_cv_prog_OBJDUMP"
7819 fi
7820
7821   ;;
7822 esac
7823
7824 test -z "$AS" && AS=as
7825
7826
7827
7828
7829
7830 test -z "$DLLTOOL" && DLLTOOL=dlltool
7831
7832
7833
7834
7835
7836 test -z "$OBJDUMP" && OBJDUMP=objdump
7837
7838
7839
7840
7841
7842
7843
7844         enable_dlopen=no
7845
7846
7847
7848             # Check whether --enable-shared was given.
7849 if test "${enable_shared+set}" = set; then :
7850   enableval=$enable_shared; p=${PACKAGE-default}
7851     case $enableval in
7852     yes) enable_shared=yes ;;
7853     no) enable_shared=no ;;
7854     *)
7855       enable_shared=no
7856       # Look at the argument we got.  We use all the common list separators.
7857       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7858       for pkg in $enableval; do
7859         IFS="$lt_save_ifs"
7860         if test "X$pkg" = "X$p"; then
7861           enable_shared=yes
7862         fi
7863       done
7864       IFS="$lt_save_ifs"
7865       ;;
7866     esac
7867 else
7868   enable_shared=yes
7869 fi
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879   # Check whether --enable-static was given.
7880 if test "${enable_static+set}" = set; then :
7881   enableval=$enable_static; p=${PACKAGE-default}
7882     case $enableval in
7883     yes) enable_static=yes ;;
7884     no) enable_static=no ;;
7885     *)
7886      enable_static=no
7887       # Look at the argument we got.  We use all the common list separators.
7888       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7889       for pkg in $enableval; do
7890         IFS="$lt_save_ifs"
7891         if test "X$pkg" = "X$p"; then
7892           enable_static=yes
7893         fi
7894       done
7895       IFS="$lt_save_ifs"
7896       ;;
7897     esac
7898 else
7899   enable_static=yes
7900 fi
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911 # Check whether --with-pic was given.
7912 if test "${with_pic+set}" = set; then :
7913   withval=$with_pic; lt_p=${PACKAGE-default}
7914     case $withval in
7915     yes|no) pic_mode=$withval ;;
7916     *)
7917       pic_mode=default
7918       # Look at the argument we got.  We use all the common list separators.
7919       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7920       for lt_pkg in $withval; do
7921         IFS="$lt_save_ifs"
7922         if test "X$lt_pkg" = "X$lt_p"; then
7923           pic_mode=yes
7924         fi
7925       done
7926       IFS="$lt_save_ifs"
7927       ;;
7928     esac
7929 else
7930   pic_mode=default
7931 fi
7932
7933
7934 test -z "$pic_mode" && pic_mode=default
7935
7936
7937
7938
7939
7940
7941
7942   # Check whether --enable-fast-install was given.
7943 if test "${enable_fast_install+set}" = set; then :
7944   enableval=$enable_fast_install; p=${PACKAGE-default}
7945     case $enableval in
7946     yes) enable_fast_install=yes ;;
7947     no) enable_fast_install=no ;;
7948     *)
7949       enable_fast_install=no
7950       # Look at the argument we got.  We use all the common list separators.
7951       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7952       for pkg in $enableval; do
7953         IFS="$lt_save_ifs"
7954         if test "X$pkg" = "X$p"; then
7955           enable_fast_install=yes
7956         fi
7957       done
7958       IFS="$lt_save_ifs"
7959       ;;
7960     esac
7961 else
7962   enable_fast_install=yes
7963 fi
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975 # This can be used to rebuild libtool when needed
7976 LIBTOOL_DEPS="$ltmain"
7977
7978 # Always use our own libtool.
7979 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010 test -z "$LN_S" && LN_S="ln -s"
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025 if test -n "${ZSH_VERSION+set}" ; then
8026    setopt NO_GLOB_SUBST
8027 fi
8028
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8030 $as_echo_n "checking for objdir... " >&6; }
8031 if ${lt_cv_objdir+:} false; then :
8032   $as_echo_n "(cached) " >&6
8033 else
8034   rm -f .libs 2>/dev/null
8035 mkdir .libs 2>/dev/null
8036 if test -d .libs; then
8037   lt_cv_objdir=.libs
8038 else
8039   # MS-DOS does not allow filenames that begin with a dot.
8040   lt_cv_objdir=_libs
8041 fi
8042 rmdir .libs 2>/dev/null
8043 fi
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8045 $as_echo "$lt_cv_objdir" >&6; }
8046 objdir=$lt_cv_objdir
8047
8048
8049
8050
8051
8052 cat >>confdefs.h <<_ACEOF
8053 #define LT_OBJDIR "$lt_cv_objdir/"
8054 _ACEOF
8055
8056
8057
8058
8059 case $host_os in
8060 aix3*)
8061   # AIX sometimes has problems with the GCC collect2 program.  For some
8062   # reason, if we set the COLLECT_NAMES environment variable, the problems
8063   # vanish in a puff of smoke.
8064   if test "X${COLLECT_NAMES+set}" != Xset; then
8065     COLLECT_NAMES=
8066     export COLLECT_NAMES
8067   fi
8068   ;;
8069 esac
8070
8071 # Global variables:
8072 ofile=libtool
8073 can_build_shared=yes
8074
8075 # All known linkers require a `.a' archive for static linking (except MSVC,
8076 # which needs '.lib').
8077 libext=a
8078
8079 with_gnu_ld="$lt_cv_prog_gnu_ld"
8080
8081 old_CC="$CC"
8082 old_CFLAGS="$CFLAGS"
8083
8084 # Set sane defaults for various variables
8085 test -z "$CC" && CC=cc
8086 test -z "$LTCC" && LTCC=$CC
8087 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8088 test -z "$LD" && LD=ld
8089 test -z "$ac_objext" && ac_objext=o
8090
8091 for cc_temp in $compiler""; do
8092   case $cc_temp in
8093     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8094     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8095     \-*) ;;
8096     *) break;;
8097   esac
8098 done
8099 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8100
8101
8102 # Only perform the check for file, if the check method requires it
8103 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8104 case $deplibs_check_method in
8105 file_magic*)
8106   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8107     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8108 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8109 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8110   $as_echo_n "(cached) " >&6
8111 else
8112   case $MAGIC_CMD in
8113 [\\/*] |  ?:[\\/]*)
8114   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8115   ;;
8116 *)
8117   lt_save_MAGIC_CMD="$MAGIC_CMD"
8118   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8119   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8120   for ac_dir in $ac_dummy; do
8121     IFS="$lt_save_ifs"
8122     test -z "$ac_dir" && ac_dir=.
8123     if test -f $ac_dir/${ac_tool_prefix}file; then
8124       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8125       if test -n "$file_magic_test_file"; then
8126         case $deplibs_check_method in
8127         "file_magic "*)
8128           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8129           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8130           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8131             $EGREP "$file_magic_regex" > /dev/null; then
8132             :
8133           else
8134             cat <<_LT_EOF 1>&2
8135
8136 *** Warning: the command libtool uses to detect shared libraries,
8137 *** $file_magic_cmd, produces output that libtool cannot recognize.
8138 *** The result is that libtool may fail to recognize shared libraries
8139 *** as such.  This will affect the creation of libtool libraries that
8140 *** depend on shared libraries, but programs linked with such libtool
8141 *** libraries will work regardless of this problem.  Nevertheless, you
8142 *** may want to report the problem to your system manager and/or to
8143 *** bug-libtool@gnu.org
8144
8145 _LT_EOF
8146           fi ;;
8147         esac
8148       fi
8149       break
8150     fi
8151   done
8152   IFS="$lt_save_ifs"
8153   MAGIC_CMD="$lt_save_MAGIC_CMD"
8154   ;;
8155 esac
8156 fi
8157
8158 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8159 if test -n "$MAGIC_CMD"; then
8160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8161 $as_echo "$MAGIC_CMD" >&6; }
8162 else
8163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8165 fi
8166
8167
8168
8169
8170
8171 if test -z "$lt_cv_path_MAGIC_CMD"; then
8172   if test -n "$ac_tool_prefix"; then
8173     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8174 $as_echo_n "checking for file... " >&6; }
8175 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8176   $as_echo_n "(cached) " >&6
8177 else
8178   case $MAGIC_CMD in
8179 [\\/*] |  ?:[\\/]*)
8180   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8181   ;;
8182 *)
8183   lt_save_MAGIC_CMD="$MAGIC_CMD"
8184   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8185   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8186   for ac_dir in $ac_dummy; do
8187     IFS="$lt_save_ifs"
8188     test -z "$ac_dir" && ac_dir=.
8189     if test -f $ac_dir/file; then
8190       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8191       if test -n "$file_magic_test_file"; then
8192         case $deplibs_check_method in
8193         "file_magic "*)
8194           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8195           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8196           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8197             $EGREP "$file_magic_regex" > /dev/null; then
8198             :
8199           else
8200             cat <<_LT_EOF 1>&2
8201
8202 *** Warning: the command libtool uses to detect shared libraries,
8203 *** $file_magic_cmd, produces output that libtool cannot recognize.
8204 *** The result is that libtool may fail to recognize shared libraries
8205 *** as such.  This will affect the creation of libtool libraries that
8206 *** depend on shared libraries, but programs linked with such libtool
8207 *** libraries will work regardless of this problem.  Nevertheless, you
8208 *** may want to report the problem to your system manager and/or to
8209 *** bug-libtool@gnu.org
8210
8211 _LT_EOF
8212           fi ;;
8213         esac
8214       fi
8215       break
8216     fi
8217   done
8218   IFS="$lt_save_ifs"
8219   MAGIC_CMD="$lt_save_MAGIC_CMD"
8220   ;;
8221 esac
8222 fi
8223
8224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8225 if test -n "$MAGIC_CMD"; then
8226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8227 $as_echo "$MAGIC_CMD" >&6; }
8228 else
8229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8230 $as_echo "no" >&6; }
8231 fi
8232
8233
8234   else
8235     MAGIC_CMD=:
8236   fi
8237 fi
8238
8239   fi
8240   ;;
8241 esac
8242
8243 # Use C for the default configuration in the libtool script
8244
8245 lt_save_CC="$CC"
8246 ac_ext=c
8247 ac_cpp='$CPP $CPPFLAGS'
8248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8251
8252
8253 # Source file extension for C test sources.
8254 ac_ext=c
8255
8256 # Object file extension for compiled C test sources.
8257 objext=o
8258 objext=$objext
8259
8260 # Code to be used in simple compile tests
8261 lt_simple_compile_test_code="int some_variable = 0;"
8262
8263 # Code to be used in simple link tests
8264 lt_simple_link_test_code='int main(){return(0);}'
8265
8266
8267
8268
8269
8270
8271
8272 # If no C compiler was specified, use CC.
8273 LTCC=${LTCC-"$CC"}
8274
8275 # If no C compiler flags were specified, use CFLAGS.
8276 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8277
8278 # Allow CC to be a program name with arguments.
8279 compiler=$CC
8280
8281 # Save the default compiler, since it gets overwritten when the other
8282 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8283 compiler_DEFAULT=$CC
8284
8285 # save warnings/boilerplate of simple test code
8286 ac_outfile=conftest.$ac_objext
8287 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8288 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8289 _lt_compiler_boilerplate=`cat conftest.err`
8290 $RM conftest*
8291
8292 ac_outfile=conftest.$ac_objext
8293 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8294 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8295 _lt_linker_boilerplate=`cat conftest.err`
8296 $RM -r conftest*
8297
8298
8299 ## CAVEAT EMPTOR:
8300 ## There is no encapsulation within the following macros, do not change
8301 ## the running order or otherwise move them around unless you know exactly
8302 ## what you are doing...
8303 if test -n "$compiler"; then
8304
8305 lt_prog_compiler_no_builtin_flag=
8306
8307 if test "$GCC" = yes; then
8308   case $cc_basename in
8309   nvcc*)
8310     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8311   *)
8312     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8313   esac
8314
8315   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8316 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8317 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8318   $as_echo_n "(cached) " >&6
8319 else
8320   lt_cv_prog_compiler_rtti_exceptions=no
8321    ac_outfile=conftest.$ac_objext
8322    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8323    lt_compiler_flag="-fno-rtti -fno-exceptions"
8324    # Insert the option either (1) after the last *FLAGS variable, or
8325    # (2) before a word containing "conftest.", or (3) at the end.
8326    # Note that $ac_compile itself does not contain backslashes and begins
8327    # with a dollar sign (not a hyphen), so the echo should work correctly.
8328    # The option is referenced via a variable to avoid confusing sed.
8329    lt_compile=`echo "$ac_compile" | $SED \
8330    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8331    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8332    -e 's:$: $lt_compiler_flag:'`
8333    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8334    (eval "$lt_compile" 2>conftest.err)
8335    ac_status=$?
8336    cat conftest.err >&5
8337    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338    if (exit $ac_status) && test -s "$ac_outfile"; then
8339      # The compiler can only warn and ignore the option if not recognized
8340      # So say no if there are warnings other than the usual output.
8341      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8342      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8343      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8344        lt_cv_prog_compiler_rtti_exceptions=yes
8345      fi
8346    fi
8347    $RM conftest*
8348
8349 fi
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8351 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8352
8353 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8354     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8355 else
8356     :
8357 fi
8358
8359 fi
8360
8361
8362
8363
8364
8365
8366   lt_prog_compiler_wl=
8367 lt_prog_compiler_pic=
8368 lt_prog_compiler_static=
8369
8370
8371   if test "$GCC" = yes; then
8372     lt_prog_compiler_wl='-Wl,'
8373     lt_prog_compiler_static='-static'
8374
8375     case $host_os in
8376       aix*)
8377       # All AIX code is PIC.
8378       if test "$host_cpu" = ia64; then
8379         # AIX 5 now supports IA64 processor
8380         lt_prog_compiler_static='-Bstatic'
8381       fi
8382       ;;
8383
8384     amigaos*)
8385       case $host_cpu in
8386       powerpc)
8387             # see comment about AmigaOS4 .so support
8388             lt_prog_compiler_pic='-fPIC'
8389         ;;
8390       m68k)
8391             # FIXME: we need at least 68020 code to build shared libraries, but
8392             # adding the `-m68020' flag to GCC prevents building anything better,
8393             # like `-m68040'.
8394             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8395         ;;
8396       esac
8397       ;;
8398
8399     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8400       # PIC is the default for these OSes.
8401       ;;
8402
8403     mingw* | cygwin* | pw32* | os2* | cegcc*)
8404       # This hack is so that the source file can tell whether it is being
8405       # built for inclusion in a dll (and should export symbols for example).
8406       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8407       # (--disable-auto-import) libraries
8408       lt_prog_compiler_pic='-DDLL_EXPORT'
8409       ;;
8410
8411     darwin* | rhapsody*)
8412       # PIC is the default on this platform
8413       # Common symbols not allowed in MH_DYLIB files
8414       lt_prog_compiler_pic='-fno-common'
8415       ;;
8416
8417     haiku*)
8418       # PIC is the default for Haiku.
8419       # The "-static" flag exists, but is broken.
8420       lt_prog_compiler_static=
8421       ;;
8422
8423     hpux*)
8424       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8425       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8426       # sets the default TLS model and affects inlining.
8427       case $host_cpu in
8428       hppa*64*)
8429         # +Z the default
8430         ;;
8431       *)
8432         lt_prog_compiler_pic='-fPIC'
8433         ;;
8434       esac
8435       ;;
8436
8437     interix[3-9]*)
8438       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8439       # Instead, we relocate shared libraries at runtime.
8440       ;;
8441
8442     msdosdjgpp*)
8443       # Just because we use GCC doesn't mean we suddenly get shared libraries
8444       # on systems that don't support them.
8445       lt_prog_compiler_can_build_shared=no
8446       enable_shared=no
8447       ;;
8448
8449     *nto* | *qnx*)
8450       # QNX uses GNU C++, but need to define -shared option too, otherwise
8451       # it will coredump.
8452       lt_prog_compiler_pic='-fPIC -shared'
8453       ;;
8454
8455     sysv4*MP*)
8456       if test -d /usr/nec; then
8457         lt_prog_compiler_pic=-Kconform_pic
8458       fi
8459       ;;
8460
8461     *)
8462       lt_prog_compiler_pic='-fPIC'
8463       ;;
8464     esac
8465
8466     case $cc_basename in
8467     nvcc*) # Cuda Compiler Driver 2.2
8468       lt_prog_compiler_wl='-Xlinker '
8469       if test -n "$lt_prog_compiler_pic"; then
8470         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8471       fi
8472       ;;
8473     esac
8474   else
8475     # PORTME Check for flag to pass linker flags through the system compiler.
8476     case $host_os in
8477     aix*)
8478       lt_prog_compiler_wl='-Wl,'
8479       if test "$host_cpu" = ia64; then
8480         # AIX 5 now supports IA64 processor
8481         lt_prog_compiler_static='-Bstatic'
8482       else
8483         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8484       fi
8485       ;;
8486
8487     mingw* | cygwin* | pw32* | os2* | cegcc*)
8488       # This hack is so that the source file can tell whether it is being
8489       # built for inclusion in a dll (and should export symbols for example).
8490       lt_prog_compiler_pic='-DDLL_EXPORT'
8491       ;;
8492
8493     hpux9* | hpux10* | hpux11*)
8494       lt_prog_compiler_wl='-Wl,'
8495       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8496       # not for PA HP-UX.
8497       case $host_cpu in
8498       hppa*64*|ia64*)
8499         # +Z the default
8500         ;;
8501       *)
8502         lt_prog_compiler_pic='+Z'
8503         ;;
8504       esac
8505       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8506       lt_prog_compiler_static='${wl}-a ${wl}archive'
8507       ;;
8508
8509     irix5* | irix6* | nonstopux*)
8510       lt_prog_compiler_wl='-Wl,'
8511       # PIC (with -KPIC) is the default.
8512       lt_prog_compiler_static='-non_shared'
8513       ;;
8514
8515     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8516       case $cc_basename in
8517       # old Intel for x86_64 which still supported -KPIC.
8518       ecc*)
8519         lt_prog_compiler_wl='-Wl,'
8520         lt_prog_compiler_pic='-KPIC'
8521         lt_prog_compiler_static='-static'
8522         ;;
8523       # icc used to be incompatible with GCC.
8524       # ICC 10 doesn't accept -KPIC any more.
8525       icc* | ifort*)
8526         lt_prog_compiler_wl='-Wl,'
8527         lt_prog_compiler_pic='-fPIC'
8528         lt_prog_compiler_static='-static'
8529         ;;
8530       # Lahey Fortran 8.1.
8531       lf95*)
8532         lt_prog_compiler_wl='-Wl,'
8533         lt_prog_compiler_pic='--shared'
8534         lt_prog_compiler_static='--static'
8535         ;;
8536       nagfor*)
8537         # NAG Fortran compiler
8538         lt_prog_compiler_wl='-Wl,-Wl,,'
8539         lt_prog_compiler_pic='-PIC'
8540         lt_prog_compiler_static='-Bstatic'
8541         ;;
8542       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8543         # Portland Group compilers (*not* the Pentium gcc compiler,
8544         # which looks to be a dead project)
8545         lt_prog_compiler_wl='-Wl,'
8546         lt_prog_compiler_pic='-fpic'
8547         lt_prog_compiler_static='-Bstatic'
8548         ;;
8549       ccc*)
8550         lt_prog_compiler_wl='-Wl,'
8551         # All Alpha code is PIC.
8552         lt_prog_compiler_static='-non_shared'
8553         ;;
8554       xl* | bgxl* | bgf* | mpixl*)
8555         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8556         lt_prog_compiler_wl='-Wl,'
8557         lt_prog_compiler_pic='-qpic'
8558         lt_prog_compiler_static='-qstaticlink'
8559         ;;
8560       *)
8561         case `$CC -V 2>&1 | sed 5q` in
8562         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8563           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8564           lt_prog_compiler_pic='-KPIC'
8565           lt_prog_compiler_static='-Bstatic'
8566           lt_prog_compiler_wl=''
8567           ;;
8568         *Sun\ F* | *Sun*Fortran*)
8569           lt_prog_compiler_pic='-KPIC'
8570           lt_prog_compiler_static='-Bstatic'
8571           lt_prog_compiler_wl='-Qoption ld '
8572           ;;
8573         *Sun\ C*)
8574           # Sun C 5.9
8575           lt_prog_compiler_pic='-KPIC'
8576           lt_prog_compiler_static='-Bstatic'
8577           lt_prog_compiler_wl='-Wl,'
8578           ;;
8579         *Intel*\ [CF]*Compiler*)
8580           lt_prog_compiler_wl='-Wl,'
8581           lt_prog_compiler_pic='-fPIC'
8582           lt_prog_compiler_static='-static'
8583           ;;
8584         *Portland\ Group*)
8585           lt_prog_compiler_wl='-Wl,'
8586           lt_prog_compiler_pic='-fpic'
8587           lt_prog_compiler_static='-Bstatic'
8588           ;;
8589         esac
8590         ;;
8591       esac
8592       ;;
8593
8594     newsos6)
8595       lt_prog_compiler_pic='-KPIC'
8596       lt_prog_compiler_static='-Bstatic'
8597       ;;
8598
8599     *nto* | *qnx*)
8600       # QNX uses GNU C++, but need to define -shared option too, otherwise
8601       # it will coredump.
8602       lt_prog_compiler_pic='-fPIC -shared'
8603       ;;
8604
8605     osf3* | osf4* | osf5*)
8606       lt_prog_compiler_wl='-Wl,'
8607       # All OSF/1 code is PIC.
8608       lt_prog_compiler_static='-non_shared'
8609       ;;
8610
8611     rdos*)
8612       lt_prog_compiler_static='-non_shared'
8613       ;;
8614
8615     solaris*)
8616       lt_prog_compiler_pic='-KPIC'
8617       lt_prog_compiler_static='-Bstatic'
8618       case $cc_basename in
8619       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8620         lt_prog_compiler_wl='-Qoption ld ';;
8621       *)
8622         lt_prog_compiler_wl='-Wl,';;
8623       esac
8624       ;;
8625
8626     sunos4*)
8627       lt_prog_compiler_wl='-Qoption ld '
8628       lt_prog_compiler_pic='-PIC'
8629       lt_prog_compiler_static='-Bstatic'
8630       ;;
8631
8632     sysv4 | sysv4.2uw2* | sysv4.3*)
8633       lt_prog_compiler_wl='-Wl,'
8634       lt_prog_compiler_pic='-KPIC'
8635       lt_prog_compiler_static='-Bstatic'
8636       ;;
8637
8638     sysv4*MP*)
8639       if test -d /usr/nec ;then
8640         lt_prog_compiler_pic='-Kconform_pic'
8641         lt_prog_compiler_static='-Bstatic'
8642       fi
8643       ;;
8644
8645     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8646       lt_prog_compiler_wl='-Wl,'
8647       lt_prog_compiler_pic='-KPIC'
8648       lt_prog_compiler_static='-Bstatic'
8649       ;;
8650
8651     unicos*)
8652       lt_prog_compiler_wl='-Wl,'
8653       lt_prog_compiler_can_build_shared=no
8654       ;;
8655
8656     uts4*)
8657       lt_prog_compiler_pic='-pic'
8658       lt_prog_compiler_static='-Bstatic'
8659       ;;
8660
8661     *)
8662       lt_prog_compiler_can_build_shared=no
8663       ;;
8664     esac
8665   fi
8666
8667 case $host_os in
8668   # For platforms which do not support PIC, -DPIC is meaningless:
8669   *djgpp*)
8670     lt_prog_compiler_pic=
8671     ;;
8672   *)
8673     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8674     ;;
8675 esac
8676
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8678 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8679 if ${lt_cv_prog_compiler_pic+:} false; then :
8680   $as_echo_n "(cached) " >&6
8681 else
8682   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8683 fi
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8685 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8686 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8687
8688 #
8689 # Check to make sure the PIC flag actually works.
8690 #
8691 if test -n "$lt_prog_compiler_pic"; then
8692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8693 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8694 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8695   $as_echo_n "(cached) " >&6
8696 else
8697   lt_cv_prog_compiler_pic_works=no
8698    ac_outfile=conftest.$ac_objext
8699    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8700    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8701    # Insert the option either (1) after the last *FLAGS variable, or
8702    # (2) before a word containing "conftest.", or (3) at the end.
8703    # Note that $ac_compile itself does not contain backslashes and begins
8704    # with a dollar sign (not a hyphen), so the echo should work correctly.
8705    # The option is referenced via a variable to avoid confusing sed.
8706    lt_compile=`echo "$ac_compile" | $SED \
8707    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8708    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8709    -e 's:$: $lt_compiler_flag:'`
8710    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8711    (eval "$lt_compile" 2>conftest.err)
8712    ac_status=$?
8713    cat conftest.err >&5
8714    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715    if (exit $ac_status) && test -s "$ac_outfile"; then
8716      # The compiler can only warn and ignore the option if not recognized
8717      # So say no if there are warnings other than the usual output.
8718      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8719      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8720      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8721        lt_cv_prog_compiler_pic_works=yes
8722      fi
8723    fi
8724    $RM conftest*
8725
8726 fi
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8728 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8729
8730 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8731     case $lt_prog_compiler_pic in
8732      "" | " "*) ;;
8733      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8734      esac
8735 else
8736     lt_prog_compiler_pic=
8737      lt_prog_compiler_can_build_shared=no
8738 fi
8739
8740 fi
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752 #
8753 # Check to make sure the static flag actually works.
8754 #
8755 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8757 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8758 if ${lt_cv_prog_compiler_static_works+:} false; then :
8759   $as_echo_n "(cached) " >&6
8760 else
8761   lt_cv_prog_compiler_static_works=no
8762    save_LDFLAGS="$LDFLAGS"
8763    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8764    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8765    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8766      # The linker can only warn and ignore the option if not recognized
8767      # So say no if there are warnings
8768      if test -s conftest.err; then
8769        # Append any errors to the config.log.
8770        cat conftest.err 1>&5
8771        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8772        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8773        if diff conftest.exp conftest.er2 >/dev/null; then
8774          lt_cv_prog_compiler_static_works=yes
8775        fi
8776      else
8777        lt_cv_prog_compiler_static_works=yes
8778      fi
8779    fi
8780    $RM -r conftest*
8781    LDFLAGS="$save_LDFLAGS"
8782
8783 fi
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8785 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8786
8787 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8788     :
8789 else
8790     lt_prog_compiler_static=
8791 fi
8792
8793
8794
8795
8796
8797
8798
8799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8800 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8801 if ${lt_cv_prog_compiler_c_o+:} false; then :
8802   $as_echo_n "(cached) " >&6
8803 else
8804   lt_cv_prog_compiler_c_o=no
8805    $RM -r conftest 2>/dev/null
8806    mkdir conftest
8807    cd conftest
8808    mkdir out
8809    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8810
8811    lt_compiler_flag="-o out/conftest2.$ac_objext"
8812    # Insert the option either (1) after the last *FLAGS variable, or
8813    # (2) before a word containing "conftest.", or (3) at the end.
8814    # Note that $ac_compile itself does not contain backslashes and begins
8815    # with a dollar sign (not a hyphen), so the echo should work correctly.
8816    lt_compile=`echo "$ac_compile" | $SED \
8817    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8818    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8819    -e 's:$: $lt_compiler_flag:'`
8820    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8821    (eval "$lt_compile" 2>out/conftest.err)
8822    ac_status=$?
8823    cat out/conftest.err >&5
8824    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8826    then
8827      # The compiler can only warn and ignore the option if not recognized
8828      # So say no if there are warnings
8829      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8830      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8831      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8832        lt_cv_prog_compiler_c_o=yes
8833      fi
8834    fi
8835    chmod u+w . 2>&5
8836    $RM conftest*
8837    # SGI C++ compiler will create directory out/ii_files/ for
8838    # template instantiation
8839    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8840    $RM out/* && rmdir out
8841    cd ..
8842    $RM -r conftest
8843    $RM conftest*
8844
8845 fi
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8847 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8848
8849
8850
8851
8852
8853
8854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8855 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8856 if ${lt_cv_prog_compiler_c_o+:} false; then :
8857   $as_echo_n "(cached) " >&6
8858 else
8859   lt_cv_prog_compiler_c_o=no
8860    $RM -r conftest 2>/dev/null
8861    mkdir conftest
8862    cd conftest
8863    mkdir out
8864    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8865
8866    lt_compiler_flag="-o out/conftest2.$ac_objext"
8867    # Insert the option either (1) after the last *FLAGS variable, or
8868    # (2) before a word containing "conftest.", or (3) at the end.
8869    # Note that $ac_compile itself does not contain backslashes and begins
8870    # with a dollar sign (not a hyphen), so the echo should work correctly.
8871    lt_compile=`echo "$ac_compile" | $SED \
8872    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8873    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8874    -e 's:$: $lt_compiler_flag:'`
8875    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8876    (eval "$lt_compile" 2>out/conftest.err)
8877    ac_status=$?
8878    cat out/conftest.err >&5
8879    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8881    then
8882      # The compiler can only warn and ignore the option if not recognized
8883      # So say no if there are warnings
8884      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8885      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8886      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8887        lt_cv_prog_compiler_c_o=yes
8888      fi
8889    fi
8890    chmod u+w . 2>&5
8891    $RM conftest*
8892    # SGI C++ compiler will create directory out/ii_files/ for
8893    # template instantiation
8894    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8895    $RM out/* && rmdir out
8896    cd ..
8897    $RM -r conftest
8898    $RM conftest*
8899
8900 fi
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8902 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8903
8904
8905
8906
8907 hard_links="nottested"
8908 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8909   # do not overwrite the value of need_locks provided by the user
8910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8911 $as_echo_n "checking if we can lock with hard links... " >&6; }
8912   hard_links=yes
8913   $RM conftest*
8914   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8915   touch conftest.a
8916   ln conftest.a conftest.b 2>&5 || hard_links=no
8917   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8919 $as_echo "$hard_links" >&6; }
8920   if test "$hard_links" = no; then
8921     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8922 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8923     need_locks=warn
8924   fi
8925 else
8926   need_locks=no
8927 fi
8928
8929
8930
8931
8932
8933
8934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8935 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8936
8937   runpath_var=
8938   allow_undefined_flag=
8939   always_export_symbols=no
8940   archive_cmds=
8941   archive_expsym_cmds=
8942   compiler_needs_object=no
8943   enable_shared_with_static_runtimes=no
8944   export_dynamic_flag_spec=
8945   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8946   hardcode_automatic=no
8947   hardcode_direct=no
8948   hardcode_direct_absolute=no
8949   hardcode_libdir_flag_spec=
8950   hardcode_libdir_separator=
8951   hardcode_minus_L=no
8952   hardcode_shlibpath_var=unsupported
8953   inherit_rpath=no
8954   link_all_deplibs=unknown
8955   module_cmds=
8956   module_expsym_cmds=
8957   old_archive_from_new_cmds=
8958   old_archive_from_expsyms_cmds=
8959   thread_safe_flag_spec=
8960   whole_archive_flag_spec=
8961   # include_expsyms should be a list of space-separated symbols to be *always*
8962   # included in the symbol list
8963   include_expsyms=
8964   # exclude_expsyms can be an extended regexp of symbols to exclude
8965   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8966   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8967   # as well as any symbol that contains `d'.
8968   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8969   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8970   # platforms (ab)use it in PIC code, but their linkers get confused if
8971   # the symbol is explicitly referenced.  Since portable code cannot
8972   # rely on this symbol name, it's probably fine to never include it in
8973   # preloaded symbol tables.
8974   # Exclude shared library initialization/finalization symbols.
8975   extract_expsyms_cmds=
8976
8977   case $host_os in
8978   cygwin* | mingw* | pw32* | cegcc*)
8979     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8980     # When not using gcc, we currently assume that we are using
8981     # Microsoft Visual C++.
8982     if test "$GCC" != yes; then
8983       with_gnu_ld=no
8984     fi
8985     ;;
8986   interix*)
8987     # we just hope/assume this is gcc and not c89 (= MSVC++)
8988     with_gnu_ld=yes
8989     ;;
8990   openbsd*)
8991     with_gnu_ld=no
8992     ;;
8993   esac
8994
8995   ld_shlibs=yes
8996
8997   # On some targets, GNU ld is compatible enough with the native linker
8998   # that we're better off using the native interface for both.
8999   lt_use_gnu_ld_interface=no
9000   if test "$with_gnu_ld" = yes; then
9001     case $host_os in
9002       aix*)
9003         # The AIX port of GNU ld has always aspired to compatibility
9004         # with the native linker.  However, as the warning in the GNU ld
9005         # block says, versions before 2.19.5* couldn't really create working
9006         # shared libraries, regardless of the interface used.
9007         case `$LD -v 2>&1` in
9008           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9009           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9010           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9011           *)
9012             lt_use_gnu_ld_interface=yes
9013             ;;
9014         esac
9015         ;;
9016       *)
9017         lt_use_gnu_ld_interface=yes
9018         ;;
9019     esac
9020   fi
9021
9022   if test "$lt_use_gnu_ld_interface" = yes; then
9023     # If archive_cmds runs LD, not CC, wlarc should be empty
9024     wlarc='${wl}'
9025
9026     # Set some defaults for GNU ld with shared library support. These
9027     # are reset later if shared libraries are not supported. Putting them
9028     # here allows them to be overridden if necessary.
9029     runpath_var=LD_RUN_PATH
9030     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9031     export_dynamic_flag_spec='${wl}--export-dynamic'
9032     # ancient GNU ld didn't support --whole-archive et. al.
9033     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9034       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9035     else
9036       whole_archive_flag_spec=
9037     fi
9038     supports_anon_versioning=no
9039     case `$LD -v 2>&1` in
9040       *GNU\ gold*) supports_anon_versioning=yes ;;
9041       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9042       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9043       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9044       *\ 2.11.*) ;; # other 2.11 versions
9045       *) supports_anon_versioning=yes ;;
9046     esac
9047
9048     # See if GNU ld supports shared libraries.
9049     case $host_os in
9050     aix[3-9]*)
9051       # On AIX/PPC, the GNU linker is very broken
9052       if test "$host_cpu" != ia64; then
9053         ld_shlibs=no
9054         cat <<_LT_EOF 1>&2
9055
9056 *** Warning: the GNU linker, at least up to release 2.19, is reported
9057 *** to be unable to reliably create shared libraries on AIX.
9058 *** Therefore, libtool is disabling shared libraries support.  If you
9059 *** really care for shared libraries, you may want to install binutils
9060 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9061 *** You will then need to restart the configuration process.
9062
9063 _LT_EOF
9064       fi
9065       ;;
9066
9067     amigaos*)
9068       case $host_cpu in
9069       powerpc)
9070             # see comment about AmigaOS4 .so support
9071             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9072             archive_expsym_cmds=''
9073         ;;
9074       m68k)
9075             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)'
9076             hardcode_libdir_flag_spec='-L$libdir'
9077             hardcode_minus_L=yes
9078         ;;
9079       esac
9080       ;;
9081
9082     beos*)
9083       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9084         allow_undefined_flag=unsupported
9085         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9086         # support --undefined.  This deserves some investigation.  FIXME
9087         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9088       else
9089         ld_shlibs=no
9090       fi
9091       ;;
9092
9093     cygwin* | mingw* | pw32* | cegcc*)
9094       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9095       # as there is no search path for DLLs.
9096       hardcode_libdir_flag_spec='-L$libdir'
9097       export_dynamic_flag_spec='${wl}--export-all-symbols'
9098       allow_undefined_flag=unsupported
9099       always_export_symbols=no
9100       enable_shared_with_static_runtimes=yes
9101       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'
9102       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9103
9104       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9105         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9106         # If the export-symbols file already is a .def file (1st line
9107         # is EXPORTS), use it as is; otherwise, prepend...
9108         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9109           cp $export_symbols $output_objdir/$soname.def;
9110         else
9111           echo EXPORTS > $output_objdir/$soname.def;
9112           cat $export_symbols >> $output_objdir/$soname.def;
9113         fi~
9114         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9115       else
9116         ld_shlibs=no
9117       fi
9118       ;;
9119
9120     haiku*)
9121       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122       link_all_deplibs=yes
9123       ;;
9124
9125     interix[3-9]*)
9126       hardcode_direct=no
9127       hardcode_shlibpath_var=no
9128       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9129       export_dynamic_flag_spec='${wl}-E'
9130       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9131       # Instead, shared libraries are loaded at an image base (0x10000000 by
9132       # default) and relocated if they conflict, which is a slow very memory
9133       # consuming and fragmenting process.  To avoid this, we pick a random,
9134       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9135       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9136       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9137       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'
9138       ;;
9139
9140     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9141       tmp_diet=no
9142       if test "$host_os" = linux-dietlibc; then
9143         case $cc_basename in
9144           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9145         esac
9146       fi
9147       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9148          && test "$tmp_diet" = no
9149       then
9150         tmp_addflag=' $pic_flag'
9151         tmp_sharedflag='-shared'
9152         case $cc_basename,$host_cpu in
9153         pgcc*)                          # Portland Group C compiler
9154           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'
9155           tmp_addflag=' $pic_flag'
9156           ;;
9157         pgf77* | pgf90* | pgf95* | pgfortran*)
9158                                         # Portland Group f77 and f90 compilers
9159           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'
9160           tmp_addflag=' $pic_flag -Mnomain' ;;
9161         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9162           tmp_addflag=' -i_dynamic' ;;
9163         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9164           tmp_addflag=' -i_dynamic -nofor_main' ;;
9165         ifc* | ifort*)                  # Intel Fortran compiler
9166           tmp_addflag=' -nofor_main' ;;
9167         lf95*)                          # Lahey Fortran 8.1
9168           whole_archive_flag_spec=
9169           tmp_sharedflag='--shared' ;;
9170         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9171           tmp_sharedflag='-qmkshrobj'
9172           tmp_addflag= ;;
9173         nvcc*)  # Cuda Compiler Driver 2.2
9174           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'
9175           compiler_needs_object=yes
9176           ;;
9177         esac
9178         case `$CC -V 2>&1 | sed 5q` in
9179         *Sun\ C*)                       # Sun C 5.9
9180           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'
9181           compiler_needs_object=yes
9182           tmp_sharedflag='-G' ;;
9183         *Sun\ F*)                       # Sun Fortran 8.3
9184           tmp_sharedflag='-G' ;;
9185         esac
9186         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9187
9188         if test "x$supports_anon_versioning" = xyes; then
9189           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9190             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9191             echo "local: *; };" >> $output_objdir/$libname.ver~
9192             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9193         fi
9194
9195         case $cc_basename in
9196         xlf* | bgf* | bgxlf* | mpixlf*)
9197           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9198           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9199           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9200           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9201           if test "x$supports_anon_versioning" = xyes; then
9202             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9203               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9204               echo "local: *; };" >> $output_objdir/$libname.ver~
9205               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9206           fi
9207           ;;
9208         esac
9209       else
9210         ld_shlibs=no
9211       fi
9212       ;;
9213
9214     netbsd*)
9215       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9216         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9217         wlarc=
9218       else
9219         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9220         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9221       fi
9222       ;;
9223
9224     solaris*)
9225       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9226         ld_shlibs=no
9227         cat <<_LT_EOF 1>&2
9228
9229 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9230 *** create shared libraries on Solaris systems.  Therefore, libtool
9231 *** is disabling shared libraries support.  We urge you to upgrade GNU
9232 *** binutils to release 2.9.1 or newer.  Another option is to modify
9233 *** your PATH or compiler configuration so that the native linker is
9234 *** used, and then restart.
9235
9236 _LT_EOF
9237       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9238         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9239         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9240       else
9241         ld_shlibs=no
9242       fi
9243       ;;
9244
9245     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9246       case `$LD -v 2>&1` in
9247         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9248         ld_shlibs=no
9249         cat <<_LT_EOF 1>&2
9250
9251 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9252 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9253 *** is disabling shared libraries support.  We urge you to upgrade GNU
9254 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9255 *** your PATH or compiler configuration so that the native linker is
9256 *** used, and then restart.
9257
9258 _LT_EOF
9259         ;;
9260         *)
9261           # For security reasons, it is highly recommended that you always
9262           # use absolute paths for naming shared libraries, and exclude the
9263           # DT_RUNPATH tag from executables and libraries.  But doing so
9264           # requires that you compile everything twice, which is a pain.
9265           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9266             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9267             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9268             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9269           else
9270             ld_shlibs=no
9271           fi
9272         ;;
9273       esac
9274       ;;
9275
9276     sunos4*)
9277       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9278       wlarc=
9279       hardcode_direct=yes
9280       hardcode_shlibpath_var=no
9281       ;;
9282
9283     *)
9284       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9285         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9286         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9287       else
9288         ld_shlibs=no
9289       fi
9290       ;;
9291     esac
9292
9293     if test "$ld_shlibs" = no; then
9294       runpath_var=
9295       hardcode_libdir_flag_spec=
9296       export_dynamic_flag_spec=
9297       whole_archive_flag_spec=
9298     fi
9299   else
9300     # PORTME fill in a description of your system's linker (not GNU ld)
9301     case $host_os in
9302     aix3*)
9303       allow_undefined_flag=unsupported
9304       always_export_symbols=yes
9305       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'
9306       # Note: this linker hardcodes the directories in LIBPATH if there
9307       # are no directories specified by -L.
9308       hardcode_minus_L=yes
9309       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9310         # Neither direct hardcoding nor static linking is supported with a
9311         # broken collect2.
9312         hardcode_direct=unsupported
9313       fi
9314       ;;
9315
9316     aix[4-9]*)
9317       if test "$host_cpu" = ia64; then
9318         # On IA64, the linker does run time linking by default, so we don't
9319         # have to do anything special.
9320         aix_use_runtimelinking=no
9321         exp_sym_flag='-Bexport'
9322         no_entry_flag=""
9323       else
9324         # If we're using GNU nm, then we don't want the "-C" option.
9325         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9326         # Also, AIX nm treats weak defined symbols like other global
9327         # defined symbols, whereas GNU nm marks them as "W".
9328         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9329           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'
9330         else
9331           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'
9332         fi
9333         aix_use_runtimelinking=no
9334
9335         # Test if we are trying to use run time linking or normal
9336         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9337         # need to do runtime linking.
9338         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9339           for ld_flag in $LDFLAGS; do
9340           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9341             aix_use_runtimelinking=yes
9342             break
9343           fi
9344           done
9345           ;;
9346         esac
9347
9348         exp_sym_flag='-bexport'
9349         no_entry_flag='-bnoentry'
9350       fi
9351
9352       # When large executables or shared objects are built, AIX ld can
9353       # have problems creating the table of contents.  If linking a library
9354       # or program results in "error TOC overflow" add -mminimal-toc to
9355       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9356       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9357
9358       archive_cmds=''
9359       hardcode_direct=yes
9360       hardcode_direct_absolute=yes
9361       hardcode_libdir_separator=':'
9362       link_all_deplibs=yes
9363       file_list_spec='${wl}-f,'
9364
9365       if test "$GCC" = yes; then
9366         case $host_os in aix4.[012]|aix4.[012].*)
9367         # We only want to do this on AIX 4.2 and lower, the check
9368         # below for broken collect2 doesn't work under 4.3+
9369           collect2name=`${CC} -print-prog-name=collect2`
9370           if test -f "$collect2name" &&
9371            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9372           then
9373           # We have reworked collect2
9374           :
9375           else
9376           # We have old collect2
9377           hardcode_direct=unsupported
9378           # It fails to find uninstalled libraries when the uninstalled
9379           # path is not listed in the libpath.  Setting hardcode_minus_L
9380           # to unsupported forces relinking
9381           hardcode_minus_L=yes
9382           hardcode_libdir_flag_spec='-L$libdir'
9383           hardcode_libdir_separator=
9384           fi
9385           ;;
9386         esac
9387         shared_flag='-shared'
9388         if test "$aix_use_runtimelinking" = yes; then
9389           shared_flag="$shared_flag "'${wl}-G'
9390         fi
9391       else
9392         # not using gcc
9393         if test "$host_cpu" = ia64; then
9394         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9395         # chokes on -Wl,-G. The following line is correct:
9396           shared_flag='-G'
9397         else
9398           if test "$aix_use_runtimelinking" = yes; then
9399             shared_flag='${wl}-G'
9400           else
9401             shared_flag='${wl}-bM:SRE'
9402           fi
9403         fi
9404       fi
9405
9406       export_dynamic_flag_spec='${wl}-bexpall'
9407       # It seems that -bexpall does not export symbols beginning with
9408       # underscore (_), so it is better to generate a list of symbols to export.
9409       always_export_symbols=yes
9410       if test "$aix_use_runtimelinking" = yes; then
9411         # Warning - without using the other runtime loading flags (-brtl),
9412         # -berok will link without error, but may produce a broken library.
9413         allow_undefined_flag='-berok'
9414         # Determine the default libpath from the value encoded in an
9415         # empty executable.
9416         if test "${lt_cv_aix_libpath+set}" = set; then
9417   aix_libpath=$lt_cv_aix_libpath
9418 else
9419   if ${lt_cv_aix_libpath_+:} false; then :
9420   $as_echo_n "(cached) " >&6
9421 else
9422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423 /* end confdefs.h.  */
9424
9425 int
9426 main ()
9427 {
9428
9429   ;
9430   return 0;
9431 }
9432 _ACEOF
9433 if ac_fn_c_try_link "$LINENO"; then :
9434
9435   lt_aix_libpath_sed='
9436       /Import File Strings/,/^$/ {
9437           /^0/ {
9438               s/^0  *\([^ ]*\) *$/\1/
9439               p
9440           }
9441       }'
9442   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9443   # Check for a 64-bit object if we didn't find anything.
9444   if test -z "$lt_cv_aix_libpath_"; then
9445     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9446   fi
9447 fi
9448 rm -f core conftest.err conftest.$ac_objext \
9449     conftest$ac_exeext conftest.$ac_ext
9450   if test -z "$lt_cv_aix_libpath_"; then
9451     lt_cv_aix_libpath_="/usr/lib:/lib"
9452   fi
9453
9454 fi
9455
9456   aix_libpath=$lt_cv_aix_libpath_
9457 fi
9458
9459         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9460         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"
9461       else
9462         if test "$host_cpu" = ia64; then
9463           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9464           allow_undefined_flag="-z nodefs"
9465           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"
9466         else
9467          # Determine the default libpath from the value encoded in an
9468          # empty executable.
9469          if test "${lt_cv_aix_libpath+set}" = set; then
9470   aix_libpath=$lt_cv_aix_libpath
9471 else
9472   if ${lt_cv_aix_libpath_+:} false; then :
9473   $as_echo_n "(cached) " >&6
9474 else
9475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h.  */
9477
9478 int
9479 main ()
9480 {
9481
9482   ;
9483   return 0;
9484 }
9485 _ACEOF
9486 if ac_fn_c_try_link "$LINENO"; then :
9487
9488   lt_aix_libpath_sed='
9489       /Import File Strings/,/^$/ {
9490           /^0/ {
9491               s/^0  *\([^ ]*\) *$/\1/
9492               p
9493           }
9494       }'
9495   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9496   # Check for a 64-bit object if we didn't find anything.
9497   if test -z "$lt_cv_aix_libpath_"; then
9498     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9499   fi
9500 fi
9501 rm -f core conftest.err conftest.$ac_objext \
9502     conftest$ac_exeext conftest.$ac_ext
9503   if test -z "$lt_cv_aix_libpath_"; then
9504     lt_cv_aix_libpath_="/usr/lib:/lib"
9505   fi
9506
9507 fi
9508
9509   aix_libpath=$lt_cv_aix_libpath_
9510 fi
9511
9512          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9513           # Warning - without using the other run time loading flags,
9514           # -berok will link without error, but may produce a broken library.
9515           no_undefined_flag=' ${wl}-bernotok'
9516           allow_undefined_flag=' ${wl}-berok'
9517           if test "$with_gnu_ld" = yes; then
9518             # We only use this code for GNU lds that support --whole-archive.
9519             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9520           else
9521             # Exported symbols can be pulled into shared objects from archives
9522             whole_archive_flag_spec='$convenience'
9523           fi
9524           archive_cmds_need_lc=yes
9525           # This is similar to how AIX traditionally builds its shared libraries.
9526           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'
9527         fi
9528       fi
9529       ;;
9530
9531     amigaos*)
9532       case $host_cpu in
9533       powerpc)
9534             # see comment about AmigaOS4 .so support
9535             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9536             archive_expsym_cmds=''
9537         ;;
9538       m68k)
9539             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)'
9540             hardcode_libdir_flag_spec='-L$libdir'
9541             hardcode_minus_L=yes
9542         ;;
9543       esac
9544       ;;
9545
9546     bsdi[45]*)
9547       export_dynamic_flag_spec=-rdynamic
9548       ;;
9549
9550     cygwin* | mingw* | pw32* | cegcc*)
9551       # When not using gcc, we currently assume that we are using
9552       # Microsoft Visual C++.
9553       # hardcode_libdir_flag_spec is actually meaningless, as there is
9554       # no search path for DLLs.
9555       case $cc_basename in
9556       cl*)
9557         # Native MSVC
9558         hardcode_libdir_flag_spec=' '
9559         allow_undefined_flag=unsupported
9560         always_export_symbols=yes
9561         file_list_spec='@'
9562         # Tell ltmain to make .lib files, not .a files.
9563         libext=lib
9564         # Tell ltmain to make .dll files, not .so files.
9565         shrext_cmds=".dll"
9566         # FIXME: Setting linknames here is a bad hack.
9567         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9568         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9569             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9570           else
9571             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9572           fi~
9573           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9574           linknames='
9575         # The linker will not automatically build a static lib if we build a DLL.
9576         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9577         enable_shared_with_static_runtimes=yes
9578         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9579         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9580         # Don't use ranlib
9581         old_postinstall_cmds='chmod 644 $oldlib'
9582         postlink_cmds='lt_outputfile="@OUTPUT@"~
9583           lt_tool_outputfile="@TOOL_OUTPUT@"~
9584           case $lt_outputfile in
9585             *.exe|*.EXE) ;;
9586             *)
9587               lt_outputfile="$lt_outputfile.exe"
9588               lt_tool_outputfile="$lt_tool_outputfile.exe"
9589               ;;
9590           esac~
9591           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9592             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9593             $RM "$lt_outputfile.manifest";
9594           fi'
9595         ;;
9596       *)
9597         # Assume MSVC wrapper
9598         hardcode_libdir_flag_spec=' '
9599         allow_undefined_flag=unsupported
9600         # Tell ltmain to make .lib files, not .a files.
9601         libext=lib
9602         # Tell ltmain to make .dll files, not .so files.
9603         shrext_cmds=".dll"
9604         # FIXME: Setting linknames here is a bad hack.
9605         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9606         # The linker will automatically build a .lib file if we build a DLL.
9607         old_archive_from_new_cmds='true'
9608         # FIXME: Should let the user specify the lib program.
9609         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9610         enable_shared_with_static_runtimes=yes
9611         ;;
9612       esac
9613       ;;
9614
9615     darwin* | rhapsody*)
9616
9617
9618   archive_cmds_need_lc=no
9619   hardcode_direct=no
9620   hardcode_automatic=yes
9621   hardcode_shlibpath_var=unsupported
9622   if test "$lt_cv_ld_force_load" = "yes"; then
9623     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\"`'
9624
9625   else
9626     whole_archive_flag_spec=''
9627   fi
9628   link_all_deplibs=yes
9629   allow_undefined_flag="$_lt_dar_allow_undefined"
9630   case $cc_basename in
9631      ifort*) _lt_dar_can_shared=yes ;;
9632      *) _lt_dar_can_shared=$GCC ;;
9633   esac
9634   if test "$_lt_dar_can_shared" = "yes"; then
9635     output_verbose_link_cmd=func_echo_all
9636     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9637     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9638     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}"
9639     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}"
9640
9641   else
9642   ld_shlibs=no
9643   fi
9644
9645       ;;
9646
9647     dgux*)
9648       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649       hardcode_libdir_flag_spec='-L$libdir'
9650       hardcode_shlibpath_var=no
9651       ;;
9652
9653     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9654     # support.  Future versions do this automatically, but an explicit c++rt0.o
9655     # does not break anything, and helps significantly (at the cost of a little
9656     # extra space).
9657     freebsd2.2*)
9658       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9659       hardcode_libdir_flag_spec='-R$libdir'
9660       hardcode_direct=yes
9661       hardcode_shlibpath_var=no
9662       ;;
9663
9664     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9665     freebsd2.*)
9666       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9667       hardcode_direct=yes
9668       hardcode_minus_L=yes
9669       hardcode_shlibpath_var=no
9670       ;;
9671
9672     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9673     freebsd* | dragonfly*)
9674       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9675       hardcode_libdir_flag_spec='-R$libdir'
9676       hardcode_direct=yes
9677       hardcode_shlibpath_var=no
9678       ;;
9679
9680     hpux9*)
9681       if test "$GCC" = yes; then
9682         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'
9683       else
9684         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'
9685       fi
9686       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9687       hardcode_libdir_separator=:
9688       hardcode_direct=yes
9689
9690       # hardcode_minus_L: Not really in the search PATH,
9691       # but as the default location of the library.
9692       hardcode_minus_L=yes
9693       export_dynamic_flag_spec='${wl}-E'
9694       ;;
9695
9696     hpux10*)
9697       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9698         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9699       else
9700         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9701       fi
9702       if test "$with_gnu_ld" = no; then
9703         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9704         hardcode_libdir_separator=:
9705         hardcode_direct=yes
9706         hardcode_direct_absolute=yes
9707         export_dynamic_flag_spec='${wl}-E'
9708         # hardcode_minus_L: Not really in the search PATH,
9709         # but as the default location of the library.
9710         hardcode_minus_L=yes
9711       fi
9712       ;;
9713
9714     hpux11*)
9715       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9716         case $host_cpu in
9717         hppa*64*)
9718           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9719           ;;
9720         ia64*)
9721           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9722           ;;
9723         *)
9724           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9725           ;;
9726         esac
9727       else
9728         case $host_cpu in
9729         hppa*64*)
9730           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9731           ;;
9732         ia64*)
9733           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9734           ;;
9735         *)
9736
9737           # Older versions of the 11.00 compiler do not understand -b yet
9738           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9739           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9740 $as_echo_n "checking if $CC understands -b... " >&6; }
9741 if ${lt_cv_prog_compiler__b+:} false; then :
9742   $as_echo_n "(cached) " >&6
9743 else
9744   lt_cv_prog_compiler__b=no
9745    save_LDFLAGS="$LDFLAGS"
9746    LDFLAGS="$LDFLAGS -b"
9747    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9748    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9749      # The linker can only warn and ignore the option if not recognized
9750      # So say no if there are warnings
9751      if test -s conftest.err; then
9752        # Append any errors to the config.log.
9753        cat conftest.err 1>&5
9754        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9755        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9756        if diff conftest.exp conftest.er2 >/dev/null; then
9757          lt_cv_prog_compiler__b=yes
9758        fi
9759      else
9760        lt_cv_prog_compiler__b=yes
9761      fi
9762    fi
9763    $RM -r conftest*
9764    LDFLAGS="$save_LDFLAGS"
9765
9766 fi
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9768 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9769
9770 if test x"$lt_cv_prog_compiler__b" = xyes; then
9771     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9772 else
9773     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9774 fi
9775
9776           ;;
9777         esac
9778       fi
9779       if test "$with_gnu_ld" = no; then
9780         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9781         hardcode_libdir_separator=:
9782
9783         case $host_cpu in
9784         hppa*64*|ia64*)
9785           hardcode_direct=no
9786           hardcode_shlibpath_var=no
9787           ;;
9788         *)
9789           hardcode_direct=yes
9790           hardcode_direct_absolute=yes
9791           export_dynamic_flag_spec='${wl}-E'
9792
9793           # hardcode_minus_L: Not really in the search PATH,
9794           # but as the default location of the library.
9795           hardcode_minus_L=yes
9796           ;;
9797         esac
9798       fi
9799       ;;
9800
9801     irix5* | irix6* | nonstopux*)
9802       if test "$GCC" = yes; then
9803         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'
9804         # Try to use the -exported_symbol ld option, if it does not
9805         # work, assume that -exports_file does not work either and
9806         # implicitly export all symbols.
9807         # This should be the same for all languages, so no per-tag cache variable.
9808         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9809 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9810 if ${lt_cv_irix_exported_symbol+:} false; then :
9811   $as_echo_n "(cached) " >&6
9812 else
9813   save_LDFLAGS="$LDFLAGS"
9814            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9815            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816 /* end confdefs.h.  */
9817 int foo (void) { return 0; }
9818 _ACEOF
9819 if ac_fn_c_try_link "$LINENO"; then :
9820   lt_cv_irix_exported_symbol=yes
9821 else
9822   lt_cv_irix_exported_symbol=no
9823 fi
9824 rm -f core conftest.err conftest.$ac_objext \
9825     conftest$ac_exeext conftest.$ac_ext
9826            LDFLAGS="$save_LDFLAGS"
9827 fi
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9829 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9830         if test "$lt_cv_irix_exported_symbol" = yes; then
9831           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'
9832         fi
9833       else
9834         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'
9835         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'
9836       fi
9837       archive_cmds_need_lc='no'
9838       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9839       hardcode_libdir_separator=:
9840       inherit_rpath=yes
9841       link_all_deplibs=yes
9842       ;;
9843
9844     netbsd*)
9845       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9846         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9847       else
9848         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9849       fi
9850       hardcode_libdir_flag_spec='-R$libdir'
9851       hardcode_direct=yes
9852       hardcode_shlibpath_var=no
9853       ;;
9854
9855     newsos6)
9856       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9857       hardcode_direct=yes
9858       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9859       hardcode_libdir_separator=:
9860       hardcode_shlibpath_var=no
9861       ;;
9862
9863     *nto* | *qnx*)
9864       ;;
9865
9866     openbsd*)
9867       if test -f /usr/libexec/ld.so; then
9868         hardcode_direct=yes
9869         hardcode_shlibpath_var=no
9870         hardcode_direct_absolute=yes
9871         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9872           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9873           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9874           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9875           export_dynamic_flag_spec='${wl}-E'
9876         else
9877           case $host_os in
9878            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9879              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9880              hardcode_libdir_flag_spec='-R$libdir'
9881              ;;
9882            *)
9883              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9884              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9885              ;;
9886           esac
9887         fi
9888       else
9889         ld_shlibs=no
9890       fi
9891       ;;
9892
9893     os2*)
9894       hardcode_libdir_flag_spec='-L$libdir'
9895       hardcode_minus_L=yes
9896       allow_undefined_flag=unsupported
9897       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'
9898       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9899       ;;
9900
9901     osf3*)
9902       if test "$GCC" = yes; then
9903         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9904         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'
9905       else
9906         allow_undefined_flag=' -expect_unresolved \*'
9907         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'
9908       fi
9909       archive_cmds_need_lc='no'
9910       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9911       hardcode_libdir_separator=:
9912       ;;
9913
9914     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9915       if test "$GCC" = yes; then
9916         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9917         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'
9918         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9919       else
9920         allow_undefined_flag=' -expect_unresolved \*'
9921         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'
9922         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~
9923         $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'
9924
9925         # Both c and cxx compiler support -rpath directly
9926         hardcode_libdir_flag_spec='-rpath $libdir'
9927       fi
9928       archive_cmds_need_lc='no'
9929       hardcode_libdir_separator=:
9930       ;;
9931
9932     solaris*)
9933       no_undefined_flag=' -z defs'
9934       if test "$GCC" = yes; then
9935         wlarc='${wl}'
9936         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9937         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9938           $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'
9939       else
9940         case `$CC -V 2>&1` in
9941         *"Compilers 5.0"*)
9942           wlarc=''
9943           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9944           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9945           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9946           ;;
9947         *)
9948           wlarc='${wl}'
9949           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9950           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9951           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9952           ;;
9953         esac
9954       fi
9955       hardcode_libdir_flag_spec='-R$libdir'
9956       hardcode_shlibpath_var=no
9957       case $host_os in
9958       solaris2.[0-5] | solaris2.[0-5].*) ;;
9959       *)
9960         # The compiler driver will combine and reorder linker options,
9961         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9962         # but is careful enough not to reorder.
9963         # Supported since Solaris 2.6 (maybe 2.5.1?)
9964         if test "$GCC" = yes; then
9965           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9966         else
9967           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9968         fi
9969         ;;
9970       esac
9971       link_all_deplibs=yes
9972       ;;
9973
9974     sunos4*)
9975       if test "x$host_vendor" = xsequent; then
9976         # Use $CC to link under sequent, because it throws in some extra .o
9977         # files that make .init and .fini sections work.
9978         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9979       else
9980         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9981       fi
9982       hardcode_libdir_flag_spec='-L$libdir'
9983       hardcode_direct=yes
9984       hardcode_minus_L=yes
9985       hardcode_shlibpath_var=no
9986       ;;
9987
9988     sysv4)
9989       case $host_vendor in
9990         sni)
9991           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9992           hardcode_direct=yes # is this really true???
9993         ;;
9994         siemens)
9995           ## LD is ld it makes a PLAMLIB
9996           ## CC just makes a GrossModule.
9997           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9998           reload_cmds='$CC -r -o $output$reload_objs'
9999           hardcode_direct=no
10000         ;;
10001         motorola)
10002           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10003           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10004         ;;
10005       esac
10006       runpath_var='LD_RUN_PATH'
10007       hardcode_shlibpath_var=no
10008       ;;
10009
10010     sysv4.3*)
10011       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10012       hardcode_shlibpath_var=no
10013       export_dynamic_flag_spec='-Bexport'
10014       ;;
10015
10016     sysv4*MP*)
10017       if test -d /usr/nec; then
10018         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10019         hardcode_shlibpath_var=no
10020         runpath_var=LD_RUN_PATH
10021         hardcode_runpath_var=yes
10022         ld_shlibs=yes
10023       fi
10024       ;;
10025
10026     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10027       no_undefined_flag='${wl}-z,text'
10028       archive_cmds_need_lc=no
10029       hardcode_shlibpath_var=no
10030       runpath_var='LD_RUN_PATH'
10031
10032       if test "$GCC" = yes; then
10033         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10034         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10035       else
10036         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10037         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10038       fi
10039       ;;
10040
10041     sysv5* | sco3.2v5* | sco5v6*)
10042       # Note: We can NOT use -z defs as we might desire, because we do not
10043       # link with -lc, and that would cause any symbols used from libc to
10044       # always be unresolved, which means just about no library would
10045       # ever link correctly.  If we're not using GNU ld we use -z text
10046       # though, which does catch some bad symbols but isn't as heavy-handed
10047       # as -z defs.
10048       no_undefined_flag='${wl}-z,text'
10049       allow_undefined_flag='${wl}-z,nodefs'
10050       archive_cmds_need_lc=no
10051       hardcode_shlibpath_var=no
10052       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10053       hardcode_libdir_separator=':'
10054       link_all_deplibs=yes
10055       export_dynamic_flag_spec='${wl}-Bexport'
10056       runpath_var='LD_RUN_PATH'
10057
10058       if test "$GCC" = yes; then
10059         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10060         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10061       else
10062         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10063         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10064       fi
10065       ;;
10066
10067     uts4*)
10068       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10069       hardcode_libdir_flag_spec='-L$libdir'
10070       hardcode_shlibpath_var=no
10071       ;;
10072
10073     *)
10074       ld_shlibs=no
10075       ;;
10076     esac
10077
10078     if test x$host_vendor = xsni; then
10079       case $host in
10080       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10081         export_dynamic_flag_spec='${wl}-Blargedynsym'
10082         ;;
10083       esac
10084     fi
10085   fi
10086
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10088 $as_echo "$ld_shlibs" >&6; }
10089 test "$ld_shlibs" = no && can_build_shared=no
10090
10091 with_gnu_ld=$with_gnu_ld
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107 #
10108 # Do we need to explicitly link libc?
10109 #
10110 case "x$archive_cmds_need_lc" in
10111 x|xyes)
10112   # Assume -lc should be added
10113   archive_cmds_need_lc=yes
10114
10115   if test "$enable_shared" = yes && test "$GCC" = yes; then
10116     case $archive_cmds in
10117     *'~'*)
10118       # FIXME: we may have to deal with multi-command sequences.
10119       ;;
10120     '$CC '*)
10121       # Test whether the compiler implicitly links with -lc since on some
10122       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10123       # to ld, don't add -lc before -lgcc.
10124       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10125 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10126 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10127   $as_echo_n "(cached) " >&6
10128 else
10129   $RM conftest*
10130         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10131
10132         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10133   (eval $ac_compile) 2>&5
10134   ac_status=$?
10135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10136   test $ac_status = 0; } 2>conftest.err; then
10137           soname=conftest
10138           lib=conftest
10139           libobjs=conftest.$ac_objext
10140           deplibs=
10141           wl=$lt_prog_compiler_wl
10142           pic_flag=$lt_prog_compiler_pic
10143           compiler_flags=-v
10144           linker_flags=-v
10145           verstring=
10146           output_objdir=.
10147           libname=conftest
10148           lt_save_allow_undefined_flag=$allow_undefined_flag
10149           allow_undefined_flag=
10150           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10151   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10152   ac_status=$?
10153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10154   test $ac_status = 0; }
10155           then
10156             lt_cv_archive_cmds_need_lc=no
10157           else
10158             lt_cv_archive_cmds_need_lc=yes
10159           fi
10160           allow_undefined_flag=$lt_save_allow_undefined_flag
10161         else
10162           cat conftest.err 1>&5
10163         fi
10164         $RM conftest*
10165
10166 fi
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10168 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10169       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10170       ;;
10171     esac
10172   fi
10173   ;;
10174 esac
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
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10328 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10329
10330 if test "$GCC" = yes; then
10331   case $host_os in
10332     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10333     *) lt_awk_arg="/^libraries:/" ;;
10334   esac
10335   case $host_os in
10336     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10337     *) lt_sed_strip_eq="s,=/,/,g" ;;
10338   esac
10339   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10340   case $lt_search_path_spec in
10341   *\;*)
10342     # if the path contains ";" then we assume it to be the separator
10343     # otherwise default to the standard path separator (i.e. ":") - it is
10344     # assumed that no part of a normal pathname contains ";" but that should
10345     # okay in the real world where ";" in dirpaths is itself problematic.
10346     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10347     ;;
10348   *)
10349     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10350     ;;
10351   esac
10352   # Ok, now we have the path, separated by spaces, we can step through it
10353   # and add multilib dir if necessary.
10354   lt_tmp_lt_search_path_spec=
10355   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10356   for lt_sys_path in $lt_search_path_spec; do
10357     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10358       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10359     else
10360       test -d "$lt_sys_path" && \
10361         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10362     fi
10363   done
10364   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10365 BEGIN {RS=" "; FS="/|\n";} {
10366   lt_foo="";
10367   lt_count=0;
10368   for (lt_i = NF; lt_i > 0; lt_i--) {
10369     if ($lt_i != "" && $lt_i != ".") {
10370       if ($lt_i == "..") {
10371         lt_count++;
10372       } else {
10373         if (lt_count == 0) {
10374           lt_foo="/" $lt_i lt_foo;
10375         } else {
10376           lt_count--;
10377         }
10378       }
10379     }
10380   }
10381   if (lt_foo != "") { lt_freq[lt_foo]++; }
10382   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10383 }'`
10384   # AWK program above erroneously prepends '/' to C:/dos/paths
10385   # for these hosts.
10386   case $host_os in
10387     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10388       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10389   esac
10390   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10391 else
10392   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10393 fi
10394 library_names_spec=
10395 libname_spec='lib$name'
10396 soname_spec=
10397 shrext_cmds=".so"
10398 postinstall_cmds=
10399 postuninstall_cmds=
10400 finish_cmds=
10401 finish_eval=
10402 shlibpath_var=
10403 shlibpath_overrides_runpath=unknown
10404 version_type=none
10405 dynamic_linker="$host_os ld.so"
10406 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10407 need_lib_prefix=unknown
10408 hardcode_into_libs=no
10409
10410 # when you set need_version to no, make sure it does not cause -set_version
10411 # flags to be left without arguments
10412 need_version=unknown
10413
10414 case $host_os in
10415 aix3*)
10416   version_type=linux # correct to gnu/linux during the next big refactor
10417   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10418   shlibpath_var=LIBPATH
10419
10420   # AIX 3 has no versioning support, so we append a major version to the name.
10421   soname_spec='${libname}${release}${shared_ext}$major'
10422   ;;
10423
10424 aix[4-9]*)
10425   version_type=linux # correct to gnu/linux during the next big refactor
10426   need_lib_prefix=no
10427   need_version=no
10428   hardcode_into_libs=yes
10429   if test "$host_cpu" = ia64; then
10430     # AIX 5 supports IA64
10431     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10432     shlibpath_var=LD_LIBRARY_PATH
10433   else
10434     # With GCC up to 2.95.x, collect2 would create an import file
10435     # for dependence libraries.  The import file would start with
10436     # the line `#! .'.  This would cause the generated library to
10437     # depend on `.', always an invalid library.  This was fixed in
10438     # development snapshots of GCC prior to 3.0.
10439     case $host_os in
10440       aix4 | aix4.[01] | aix4.[01].*)
10441       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10442            echo ' yes '
10443            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10444         :
10445       else
10446         can_build_shared=no
10447       fi
10448       ;;
10449     esac
10450     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10451     # soname into executable. Probably we can add versioning support to
10452     # collect2, so additional links can be useful in future.
10453     if test "$aix_use_runtimelinking" = yes; then
10454       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10455       # instead of lib<name>.a to let people know that these are not
10456       # typical AIX shared libraries.
10457       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458     else
10459       # We preserve .a as extension for shared libraries through AIX4.2
10460       # and later when we are not doing run time linking.
10461       library_names_spec='${libname}${release}.a $libname.a'
10462       soname_spec='${libname}${release}${shared_ext}$major'
10463     fi
10464     shlibpath_var=LIBPATH
10465   fi
10466   ;;
10467
10468 amigaos*)
10469   case $host_cpu in
10470   powerpc)
10471     # Since July 2007 AmigaOS4 officially supports .so libraries.
10472     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10473     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474     ;;
10475   m68k)
10476     library_names_spec='$libname.ixlibrary $libname.a'
10477     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10478     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'
10479     ;;
10480   esac
10481   ;;
10482
10483 beos*)
10484   library_names_spec='${libname}${shared_ext}'
10485   dynamic_linker="$host_os ld.so"
10486   shlibpath_var=LIBRARY_PATH
10487   ;;
10488
10489 bsdi[45]*)
10490   version_type=linux # correct to gnu/linux during the next big refactor
10491   need_version=no
10492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10493   soname_spec='${libname}${release}${shared_ext}$major'
10494   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10495   shlibpath_var=LD_LIBRARY_PATH
10496   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10497   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10498   # the default ld.so.conf also contains /usr/contrib/lib and
10499   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10500   # libtool to hard-code these into programs
10501   ;;
10502
10503 cygwin* | mingw* | pw32* | cegcc*)
10504   version_type=windows
10505   shrext_cmds=".dll"
10506   need_version=no
10507   need_lib_prefix=no
10508
10509   case $GCC,$cc_basename in
10510   yes,*)
10511     # gcc
10512     library_names_spec='$libname.dll.a'
10513     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10514     postinstall_cmds='base_file=`basename \${file}`~
10515       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10516       dldir=$destdir/`dirname \$dlpath`~
10517       test -d \$dldir || mkdir -p \$dldir~
10518       $install_prog $dir/$dlname \$dldir/$dlname~
10519       chmod a+x \$dldir/$dlname~
10520       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10521         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10522       fi'
10523     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10524       dlpath=$dir/\$dldll~
10525        $RM \$dlpath'
10526     shlibpath_overrides_runpath=yes
10527
10528     case $host_os in
10529     cygwin*)
10530       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10531       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10532
10533       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10534       ;;
10535     mingw* | cegcc*)
10536       # MinGW DLLs use traditional 'lib' prefix
10537       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10538       ;;
10539     pw32*)
10540       # pw32 DLLs use 'pw' prefix rather than 'lib'
10541       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10542       ;;
10543     esac
10544     dynamic_linker='Win32 ld.exe'
10545     ;;
10546
10547   *,cl*)
10548     # Native MSVC
10549     libname_spec='$name'
10550     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10551     library_names_spec='${libname}.dll.lib'
10552
10553     case $build_os in
10554     mingw*)
10555       sys_lib_search_path_spec=
10556       lt_save_ifs=$IFS
10557       IFS=';'
10558       for lt_path in $LIB
10559       do
10560         IFS=$lt_save_ifs
10561         # Let DOS variable expansion print the short 8.3 style file name.
10562         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10563         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10564       done
10565       IFS=$lt_save_ifs
10566       # Convert to MSYS style.
10567       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10568       ;;
10569     cygwin*)
10570       # Convert to unix form, then to dos form, then back to unix form
10571       # but this time dos style (no spaces!) so that the unix form looks
10572       # like /cygdrive/c/PROGRA~1:/cygdr...
10573       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10574       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10575       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10576       ;;
10577     *)
10578       sys_lib_search_path_spec="$LIB"
10579       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10580         # It is most probably a Windows format PATH.
10581         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10582       else
10583         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10584       fi
10585       # FIXME: find the short name or the path components, as spaces are
10586       # common. (e.g. "Program Files" -> "PROGRA~1")
10587       ;;
10588     esac
10589
10590     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10591     postinstall_cmds='base_file=`basename \${file}`~
10592       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10593       dldir=$destdir/`dirname \$dlpath`~
10594       test -d \$dldir || mkdir -p \$dldir~
10595       $install_prog $dir/$dlname \$dldir/$dlname'
10596     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10597       dlpath=$dir/\$dldll~
10598        $RM \$dlpath'
10599     shlibpath_overrides_runpath=yes
10600     dynamic_linker='Win32 link.exe'
10601     ;;
10602
10603   *)
10604     # Assume MSVC wrapper
10605     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10606     dynamic_linker='Win32 ld.exe'
10607     ;;
10608   esac
10609   # FIXME: first we should search . and the directory the executable is in
10610   shlibpath_var=PATH
10611   ;;
10612
10613 darwin* | rhapsody*)
10614   dynamic_linker="$host_os dyld"
10615   version_type=darwin
10616   need_lib_prefix=no
10617   need_version=no
10618   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10619   soname_spec='${libname}${release}${major}$shared_ext'
10620   shlibpath_overrides_runpath=yes
10621   shlibpath_var=DYLD_LIBRARY_PATH
10622   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10623
10624   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10625   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10626   ;;
10627
10628 dgux*)
10629   version_type=linux # correct to gnu/linux during the next big refactor
10630   need_lib_prefix=no
10631   need_version=no
10632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10633   soname_spec='${libname}${release}${shared_ext}$major'
10634   shlibpath_var=LD_LIBRARY_PATH
10635   ;;
10636
10637 freebsd* | dragonfly*)
10638   # DragonFly does not have aout.  When/if they implement a new
10639   # versioning mechanism, adjust this.
10640   if test -x /usr/bin/objformat; then
10641     objformat=`/usr/bin/objformat`
10642   else
10643     case $host_os in
10644     freebsd[23].*) objformat=aout ;;
10645     *) objformat=elf ;;
10646     esac
10647   fi
10648   version_type=freebsd-$objformat
10649   case $version_type in
10650     freebsd-elf*)
10651       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10652       need_version=no
10653       need_lib_prefix=no
10654       ;;
10655     freebsd-*)
10656       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10657       need_version=yes
10658       ;;
10659   esac
10660   shlibpath_var=LD_LIBRARY_PATH
10661   case $host_os in
10662   freebsd2.*)
10663     shlibpath_overrides_runpath=yes
10664     ;;
10665   freebsd3.[01]* | freebsdelf3.[01]*)
10666     shlibpath_overrides_runpath=yes
10667     hardcode_into_libs=yes
10668     ;;
10669   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10670   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10671     shlibpath_overrides_runpath=no
10672     hardcode_into_libs=yes
10673     ;;
10674   *) # from 4.6 on, and DragonFly
10675     shlibpath_overrides_runpath=yes
10676     hardcode_into_libs=yes
10677     ;;
10678   esac
10679   ;;
10680
10681 gnu*)
10682   version_type=linux # correct to gnu/linux during the next big refactor
10683   need_lib_prefix=no
10684   need_version=no
10685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10686   soname_spec='${libname}${release}${shared_ext}$major'
10687   shlibpath_var=LD_LIBRARY_PATH
10688   shlibpath_overrides_runpath=no
10689   hardcode_into_libs=yes
10690   ;;
10691
10692 haiku*)
10693   version_type=linux # correct to gnu/linux during the next big refactor
10694   need_lib_prefix=no
10695   need_version=no
10696   dynamic_linker="$host_os runtime_loader"
10697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10698   soname_spec='${libname}${release}${shared_ext}$major'
10699   shlibpath_var=LIBRARY_PATH
10700   shlibpath_overrides_runpath=yes
10701   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10702   hardcode_into_libs=yes
10703   ;;
10704
10705 hpux9* | hpux10* | hpux11*)
10706   # Give a soname corresponding to the major version so that dld.sl refuses to
10707   # link against other versions.
10708   version_type=sunos
10709   need_lib_prefix=no
10710   need_version=no
10711   case $host_cpu in
10712   ia64*)
10713     shrext_cmds='.so'
10714     hardcode_into_libs=yes
10715     dynamic_linker="$host_os dld.so"
10716     shlibpath_var=LD_LIBRARY_PATH
10717     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10718     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10719     soname_spec='${libname}${release}${shared_ext}$major'
10720     if test "X$HPUX_IA64_MODE" = X32; then
10721       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10722     else
10723       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10724     fi
10725     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10726     ;;
10727   hppa*64*)
10728     shrext_cmds='.sl'
10729     hardcode_into_libs=yes
10730     dynamic_linker="$host_os dld.sl"
10731     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10732     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10733     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10734     soname_spec='${libname}${release}${shared_ext}$major'
10735     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10736     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10737     ;;
10738   *)
10739     shrext_cmds='.sl'
10740     dynamic_linker="$host_os dld.sl"
10741     shlibpath_var=SHLIB_PATH
10742     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10743     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744     soname_spec='${libname}${release}${shared_ext}$major'
10745     ;;
10746   esac
10747   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10748   postinstall_cmds='chmod 555 $lib'
10749   # or fails outright, so override atomically:
10750   install_override_mode=555
10751   ;;
10752
10753 interix[3-9]*)
10754   version_type=linux # correct to gnu/linux during the next big refactor
10755   need_lib_prefix=no
10756   need_version=no
10757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10758   soname_spec='${libname}${release}${shared_ext}$major'
10759   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10760   shlibpath_var=LD_LIBRARY_PATH
10761   shlibpath_overrides_runpath=no
10762   hardcode_into_libs=yes
10763   ;;
10764
10765 irix5* | irix6* | nonstopux*)
10766   case $host_os in
10767     nonstopux*) version_type=nonstopux ;;
10768     *)
10769         if test "$lt_cv_prog_gnu_ld" = yes; then
10770                 version_type=linux # correct to gnu/linux during the next big refactor
10771         else
10772                 version_type=irix
10773         fi ;;
10774   esac
10775   need_lib_prefix=no
10776   need_version=no
10777   soname_spec='${libname}${release}${shared_ext}$major'
10778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10779   case $host_os in
10780   irix5* | nonstopux*)
10781     libsuff= shlibsuff=
10782     ;;
10783   *)
10784     case $LD in # libtool.m4 will add one of these switches to LD
10785     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10786       libsuff= shlibsuff= libmagic=32-bit;;
10787     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10788       libsuff=32 shlibsuff=N32 libmagic=N32;;
10789     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10790       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10791     *) libsuff= shlibsuff= libmagic=never-match;;
10792     esac
10793     ;;
10794   esac
10795   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10796   shlibpath_overrides_runpath=no
10797   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10798   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10799   hardcode_into_libs=yes
10800   ;;
10801
10802 # No shared lib support for Linux oldld, aout, or coff.
10803 linux*oldld* | linux*aout* | linux*coff*)
10804   dynamic_linker=no
10805   ;;
10806
10807 # This must be glibc/ELF.
10808 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10809   version_type=linux # correct to gnu/linux during the next big refactor
10810   need_lib_prefix=no
10811   need_version=no
10812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10813   soname_spec='${libname}${release}${shared_ext}$major'
10814   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10815   shlibpath_var=LD_LIBRARY_PATH
10816   shlibpath_overrides_runpath=no
10817
10818   # Some binutils ld are patched to set DT_RUNPATH
10819   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10820   $as_echo_n "(cached) " >&6
10821 else
10822   lt_cv_shlibpath_overrides_runpath=no
10823     save_LDFLAGS=$LDFLAGS
10824     save_libdir=$libdir
10825     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10826          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10827     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h.  */
10829
10830 int
10831 main ()
10832 {
10833
10834   ;
10835   return 0;
10836 }
10837 _ACEOF
10838 if ac_fn_c_try_link "$LINENO"; then :
10839   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10840   lt_cv_shlibpath_overrides_runpath=yes
10841 fi
10842 fi
10843 rm -f core conftest.err conftest.$ac_objext \
10844     conftest$ac_exeext conftest.$ac_ext
10845     LDFLAGS=$save_LDFLAGS
10846     libdir=$save_libdir
10847
10848 fi
10849
10850   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10851
10852   # This implies no fast_install, which is unacceptable.
10853   # Some rework will be needed to allow for fast_install
10854   # before this can be enabled.
10855   hardcode_into_libs=yes
10856
10857   # Add ABI-specific directories to the system library path.
10858   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10859
10860   # Append ld.so.conf contents to the search path
10861   if test -f /etc/ld.so.conf; then
10862     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' ' '`
10863     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10864
10865   fi
10866
10867   # We used to test for /lib/ld.so.1 and disable shared libraries on
10868   # powerpc, because MkLinux only supported shared libraries with the
10869   # GNU dynamic linker.  Since this was broken with cross compilers,
10870   # most powerpc-linux boxes support dynamic linking these days and
10871   # people can always --disable-shared, the test was removed, and we
10872   # assume the GNU/Linux dynamic linker is in use.
10873   dynamic_linker='GNU/Linux ld.so'
10874   ;;
10875
10876 netbsd*)
10877   version_type=sunos
10878   need_lib_prefix=no
10879   need_version=no
10880   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10881     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10882     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10883     dynamic_linker='NetBSD (a.out) ld.so'
10884   else
10885     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10886     soname_spec='${libname}${release}${shared_ext}$major'
10887     dynamic_linker='NetBSD ld.elf_so'
10888   fi
10889   shlibpath_var=LD_LIBRARY_PATH
10890   shlibpath_overrides_runpath=yes
10891   hardcode_into_libs=yes
10892   ;;
10893
10894 newsos6)
10895   version_type=linux # correct to gnu/linux during the next big refactor
10896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10897   shlibpath_var=LD_LIBRARY_PATH
10898   shlibpath_overrides_runpath=yes
10899   ;;
10900
10901 *nto* | *qnx*)
10902   version_type=qnx
10903   need_lib_prefix=no
10904   need_version=no
10905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10906   soname_spec='${libname}${release}${shared_ext}$major'
10907   shlibpath_var=LD_LIBRARY_PATH
10908   shlibpath_overrides_runpath=no
10909   hardcode_into_libs=yes
10910   dynamic_linker='ldqnx.so'
10911   ;;
10912
10913 openbsd*)
10914   version_type=sunos
10915   sys_lib_dlsearch_path_spec="/usr/lib"
10916   need_lib_prefix=no
10917   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10918   case $host_os in
10919     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10920     *)                          need_version=no  ;;
10921   esac
10922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10923   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10924   shlibpath_var=LD_LIBRARY_PATH
10925   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10926     case $host_os in
10927       openbsd2.[89] | openbsd2.[89].*)
10928         shlibpath_overrides_runpath=no
10929         ;;
10930       *)
10931         shlibpath_overrides_runpath=yes
10932         ;;
10933       esac
10934   else
10935     shlibpath_overrides_runpath=yes
10936   fi
10937   ;;
10938
10939 os2*)
10940   libname_spec='$name'
10941   shrext_cmds=".dll"
10942   need_lib_prefix=no
10943   library_names_spec='$libname${shared_ext} $libname.a'
10944   dynamic_linker='OS/2 ld.exe'
10945   shlibpath_var=LIBPATH
10946   ;;
10947
10948 osf3* | osf4* | osf5*)
10949   version_type=osf
10950   need_lib_prefix=no
10951   need_version=no
10952   soname_spec='${libname}${release}${shared_ext}$major'
10953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954   shlibpath_var=LD_LIBRARY_PATH
10955   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10956   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10957   ;;
10958
10959 rdos*)
10960   dynamic_linker=no
10961   ;;
10962
10963 solaris*)
10964   version_type=linux # correct to gnu/linux during the next big refactor
10965   need_lib_prefix=no
10966   need_version=no
10967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968   soname_spec='${libname}${release}${shared_ext}$major'
10969   shlibpath_var=LD_LIBRARY_PATH
10970   shlibpath_overrides_runpath=yes
10971   hardcode_into_libs=yes
10972   # ldd complains unless libraries are executable
10973   postinstall_cmds='chmod +x $lib'
10974   ;;
10975
10976 sunos4*)
10977   version_type=sunos
10978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10979   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10980   shlibpath_var=LD_LIBRARY_PATH
10981   shlibpath_overrides_runpath=yes
10982   if test "$with_gnu_ld" = yes; then
10983     need_lib_prefix=no
10984   fi
10985   need_version=yes
10986   ;;
10987
10988 sysv4 | sysv4.3*)
10989   version_type=linux # correct to gnu/linux during the next big refactor
10990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10991   soname_spec='${libname}${release}${shared_ext}$major'
10992   shlibpath_var=LD_LIBRARY_PATH
10993   case $host_vendor in
10994     sni)
10995       shlibpath_overrides_runpath=no
10996       need_lib_prefix=no
10997       runpath_var=LD_RUN_PATH
10998       ;;
10999     siemens)
11000       need_lib_prefix=no
11001       ;;
11002     motorola)
11003       need_lib_prefix=no
11004       need_version=no
11005       shlibpath_overrides_runpath=no
11006       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11007       ;;
11008   esac
11009   ;;
11010
11011 sysv4*MP*)
11012   if test -d /usr/nec ;then
11013     version_type=linux # correct to gnu/linux during the next big refactor
11014     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11015     soname_spec='$libname${shared_ext}.$major'
11016     shlibpath_var=LD_LIBRARY_PATH
11017   fi
11018   ;;
11019
11020 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11021   version_type=freebsd-elf
11022   need_lib_prefix=no
11023   need_version=no
11024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11025   soname_spec='${libname}${release}${shared_ext}$major'
11026   shlibpath_var=LD_LIBRARY_PATH
11027   shlibpath_overrides_runpath=yes
11028   hardcode_into_libs=yes
11029   if test "$with_gnu_ld" = yes; then
11030     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11031   else
11032     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11033     case $host_os in
11034       sco3.2v5*)
11035         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11036         ;;
11037     esac
11038   fi
11039   sys_lib_dlsearch_path_spec='/usr/lib'
11040   ;;
11041
11042 tpf*)
11043   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11044   version_type=linux # correct to gnu/linux during the next big refactor
11045   need_lib_prefix=no
11046   need_version=no
11047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048   shlibpath_var=LD_LIBRARY_PATH
11049   shlibpath_overrides_runpath=no
11050   hardcode_into_libs=yes
11051   ;;
11052
11053 uts4*)
11054   version_type=linux # correct to gnu/linux during the next big refactor
11055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056   soname_spec='${libname}${release}${shared_ext}$major'
11057   shlibpath_var=LD_LIBRARY_PATH
11058   ;;
11059
11060 *)
11061   dynamic_linker=no
11062   ;;
11063 esac
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11065 $as_echo "$dynamic_linker" >&6; }
11066 test "$dynamic_linker" = no && can_build_shared=no
11067
11068 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11069 if test "$GCC" = yes; then
11070   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11071 fi
11072
11073 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11074   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11075 fi
11076 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11077   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11078 fi
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
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11172 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11173 hardcode_action=
11174 if test -n "$hardcode_libdir_flag_spec" ||
11175    test -n "$runpath_var" ||
11176    test "X$hardcode_automatic" = "Xyes" ; then
11177
11178   # We can hardcode non-existent directories.
11179   if test "$hardcode_direct" != no &&
11180      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11181      # have to relink, otherwise we might link with an installed library
11182      # when we should be linking with a yet-to-be-installed one
11183      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11184      test "$hardcode_minus_L" != no; then
11185     # Linking always hardcodes the temporary library directory.
11186     hardcode_action=relink
11187   else
11188     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11189     hardcode_action=immediate
11190   fi
11191 else
11192   # We cannot hardcode anything, or else we can only hardcode existing
11193   # directories.
11194   hardcode_action=unsupported
11195 fi
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11197 $as_echo "$hardcode_action" >&6; }
11198
11199 if test "$hardcode_action" = relink ||
11200    test "$inherit_rpath" = yes; then
11201   # Fast installation is not supported
11202   enable_fast_install=no
11203 elif test "$shlibpath_overrides_runpath" = yes ||
11204      test "$enable_shared" = no; then
11205   # Fast installation is not necessary
11206   enable_fast_install=needless
11207 fi
11208
11209
11210
11211
11212
11213
11214   if test "x$enable_dlopen" != xyes; then
11215   enable_dlopen=unknown
11216   enable_dlopen_self=unknown
11217   enable_dlopen_self_static=unknown
11218 else
11219   lt_cv_dlopen=no
11220   lt_cv_dlopen_libs=
11221
11222   case $host_os in
11223   beos*)
11224     lt_cv_dlopen="load_add_on"
11225     lt_cv_dlopen_libs=
11226     lt_cv_dlopen_self=yes
11227     ;;
11228
11229   mingw* | pw32* | cegcc*)
11230     lt_cv_dlopen="LoadLibrary"
11231     lt_cv_dlopen_libs=
11232     ;;
11233
11234   cygwin*)
11235     lt_cv_dlopen="dlopen"
11236     lt_cv_dlopen_libs=
11237     ;;
11238
11239   darwin*)
11240   # if libdl is installed we need to link against it
11241     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11242 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11243 if ${ac_cv_lib_dl_dlopen+:} false; then :
11244   $as_echo_n "(cached) " >&6
11245 else
11246   ac_check_lib_save_LIBS=$LIBS
11247 LIBS="-ldl  $LIBS"
11248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249 /* end confdefs.h.  */
11250
11251 /* Override any GCC internal prototype to avoid an error.
11252    Use char because int might match the return type of a GCC
11253    builtin and then its argument prototype would still apply.  */
11254 #ifdef __cplusplus
11255 extern "C"
11256 #endif
11257 char dlopen ();
11258 int
11259 main ()
11260 {
11261 return dlopen ();
11262   ;
11263   return 0;
11264 }
11265 _ACEOF
11266 if ac_fn_c_try_link "$LINENO"; then :
11267   ac_cv_lib_dl_dlopen=yes
11268 else
11269   ac_cv_lib_dl_dlopen=no
11270 fi
11271 rm -f core conftest.err conftest.$ac_objext \
11272     conftest$ac_exeext conftest.$ac_ext
11273 LIBS=$ac_check_lib_save_LIBS
11274 fi
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11276 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11277 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11278   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11279 else
11280
11281     lt_cv_dlopen="dyld"
11282     lt_cv_dlopen_libs=
11283     lt_cv_dlopen_self=yes
11284
11285 fi
11286
11287     ;;
11288
11289   *)
11290     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11291 if test "x$ac_cv_func_shl_load" = xyes; then :
11292   lt_cv_dlopen="shl_load"
11293 else
11294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11295 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11296 if ${ac_cv_lib_dld_shl_load+:} false; then :
11297   $as_echo_n "(cached) " >&6
11298 else
11299   ac_check_lib_save_LIBS=$LIBS
11300 LIBS="-ldld  $LIBS"
11301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302 /* end confdefs.h.  */
11303
11304 /* Override any GCC internal prototype to avoid an error.
11305    Use char because int might match the return type of a GCC
11306    builtin and then its argument prototype would still apply.  */
11307 #ifdef __cplusplus
11308 extern "C"
11309 #endif
11310 char shl_load ();
11311 int
11312 main ()
11313 {
11314 return shl_load ();
11315   ;
11316   return 0;
11317 }
11318 _ACEOF
11319 if ac_fn_c_try_link "$LINENO"; then :
11320   ac_cv_lib_dld_shl_load=yes
11321 else
11322   ac_cv_lib_dld_shl_load=no
11323 fi
11324 rm -f core conftest.err conftest.$ac_objext \
11325     conftest$ac_exeext conftest.$ac_ext
11326 LIBS=$ac_check_lib_save_LIBS
11327 fi
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11329 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11330 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11331   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11332 else
11333   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11334 if test "x$ac_cv_func_dlopen" = xyes; then :
11335   lt_cv_dlopen="dlopen"
11336 else
11337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11338 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11339 if ${ac_cv_lib_dl_dlopen+:} false; then :
11340   $as_echo_n "(cached) " >&6
11341 else
11342   ac_check_lib_save_LIBS=$LIBS
11343 LIBS="-ldl  $LIBS"
11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h.  */
11346
11347 /* Override any GCC internal prototype to avoid an error.
11348    Use char because int might match the return type of a GCC
11349    builtin and then its argument prototype would still apply.  */
11350 #ifdef __cplusplus
11351 extern "C"
11352 #endif
11353 char dlopen ();
11354 int
11355 main ()
11356 {
11357 return dlopen ();
11358   ;
11359   return 0;
11360 }
11361 _ACEOF
11362 if ac_fn_c_try_link "$LINENO"; then :
11363   ac_cv_lib_dl_dlopen=yes
11364 else
11365   ac_cv_lib_dl_dlopen=no
11366 fi
11367 rm -f core conftest.err conftest.$ac_objext \
11368     conftest$ac_exeext conftest.$ac_ext
11369 LIBS=$ac_check_lib_save_LIBS
11370 fi
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11372 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11373 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11374   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11375 else
11376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11377 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11378 if ${ac_cv_lib_svld_dlopen+:} false; then :
11379   $as_echo_n "(cached) " >&6
11380 else
11381   ac_check_lib_save_LIBS=$LIBS
11382 LIBS="-lsvld  $LIBS"
11383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384 /* end confdefs.h.  */
11385
11386 /* Override any GCC internal prototype to avoid an error.
11387    Use char because int might match the return type of a GCC
11388    builtin and then its argument prototype would still apply.  */
11389 #ifdef __cplusplus
11390 extern "C"
11391 #endif
11392 char dlopen ();
11393 int
11394 main ()
11395 {
11396 return dlopen ();
11397   ;
11398   return 0;
11399 }
11400 _ACEOF
11401 if ac_fn_c_try_link "$LINENO"; then :
11402   ac_cv_lib_svld_dlopen=yes
11403 else
11404   ac_cv_lib_svld_dlopen=no
11405 fi
11406 rm -f core conftest.err conftest.$ac_objext \
11407     conftest$ac_exeext conftest.$ac_ext
11408 LIBS=$ac_check_lib_save_LIBS
11409 fi
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11411 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11412 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11413   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11414 else
11415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11416 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11417 if ${ac_cv_lib_dld_dld_link+:} false; then :
11418   $as_echo_n "(cached) " >&6
11419 else
11420   ac_check_lib_save_LIBS=$LIBS
11421 LIBS="-ldld  $LIBS"
11422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h.  */
11424
11425 /* Override any GCC internal prototype to avoid an error.
11426    Use char because int might match the return type of a GCC
11427    builtin and then its argument prototype would still apply.  */
11428 #ifdef __cplusplus
11429 extern "C"
11430 #endif
11431 char dld_link ();
11432 int
11433 main ()
11434 {
11435 return dld_link ();
11436   ;
11437   return 0;
11438 }
11439 _ACEOF
11440 if ac_fn_c_try_link "$LINENO"; then :
11441   ac_cv_lib_dld_dld_link=yes
11442 else
11443   ac_cv_lib_dld_dld_link=no
11444 fi
11445 rm -f core conftest.err conftest.$ac_objext \
11446     conftest$ac_exeext conftest.$ac_ext
11447 LIBS=$ac_check_lib_save_LIBS
11448 fi
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11450 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11451 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11452   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11453 fi
11454
11455
11456 fi
11457
11458
11459 fi
11460
11461
11462 fi
11463
11464
11465 fi
11466
11467
11468 fi
11469
11470     ;;
11471   esac
11472
11473   if test "x$lt_cv_dlopen" != xno; then
11474     enable_dlopen=yes
11475   else
11476     enable_dlopen=no
11477   fi
11478
11479   case $lt_cv_dlopen in
11480   dlopen)
11481     save_CPPFLAGS="$CPPFLAGS"
11482     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11483
11484     save_LDFLAGS="$LDFLAGS"
11485     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11486
11487     save_LIBS="$LIBS"
11488     LIBS="$lt_cv_dlopen_libs $LIBS"
11489
11490     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11491 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11492 if ${lt_cv_dlopen_self+:} false; then :
11493   $as_echo_n "(cached) " >&6
11494 else
11495           if test "$cross_compiling" = yes; then :
11496   lt_cv_dlopen_self=cross
11497 else
11498   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11499   lt_status=$lt_dlunknown
11500   cat > conftest.$ac_ext <<_LT_EOF
11501 #line $LINENO "configure"
11502 #include "confdefs.h"
11503
11504 #if HAVE_DLFCN_H
11505 #include <dlfcn.h>
11506 #endif
11507
11508 #include <stdio.h>
11509
11510 #ifdef RTLD_GLOBAL
11511 #  define LT_DLGLOBAL           RTLD_GLOBAL
11512 #else
11513 #  ifdef DL_GLOBAL
11514 #    define LT_DLGLOBAL         DL_GLOBAL
11515 #  else
11516 #    define LT_DLGLOBAL         0
11517 #  endif
11518 #endif
11519
11520 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11521    find out it does not work in some platform. */
11522 #ifndef LT_DLLAZY_OR_NOW
11523 #  ifdef RTLD_LAZY
11524 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11525 #  else
11526 #    ifdef DL_LAZY
11527 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11528 #    else
11529 #      ifdef RTLD_NOW
11530 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11531 #      else
11532 #        ifdef DL_NOW
11533 #          define LT_DLLAZY_OR_NOW      DL_NOW
11534 #        else
11535 #          define LT_DLLAZY_OR_NOW      0
11536 #        endif
11537 #      endif
11538 #    endif
11539 #  endif
11540 #endif
11541
11542 /* When -fvisbility=hidden is used, assume the code has been annotated
11543    correspondingly for the symbols needed.  */
11544 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11545 int fnord () __attribute__((visibility("default")));
11546 #endif
11547
11548 int fnord () { return 42; }
11549 int main ()
11550 {
11551   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11552   int status = $lt_dlunknown;
11553
11554   if (self)
11555     {
11556       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11557       else
11558         {
11559           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11560           else puts (dlerror ());
11561         }
11562       /* dlclose (self); */
11563     }
11564   else
11565     puts (dlerror ());
11566
11567   return status;
11568 }
11569 _LT_EOF
11570   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11571   (eval $ac_link) 2>&5
11572   ac_status=$?
11573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11574   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11575     (./conftest; exit; ) >&5 2>/dev/null
11576     lt_status=$?
11577     case x$lt_status in
11578       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11579       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11580       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11581     esac
11582   else :
11583     # compilation failed
11584     lt_cv_dlopen_self=no
11585   fi
11586 fi
11587 rm -fr conftest*
11588
11589
11590 fi
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11592 $as_echo "$lt_cv_dlopen_self" >&6; }
11593
11594     if test "x$lt_cv_dlopen_self" = xyes; then
11595       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11596       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11597 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11598 if ${lt_cv_dlopen_self_static+:} false; then :
11599   $as_echo_n "(cached) " >&6
11600 else
11601           if test "$cross_compiling" = yes; then :
11602   lt_cv_dlopen_self_static=cross
11603 else
11604   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11605   lt_status=$lt_dlunknown
11606   cat > conftest.$ac_ext <<_LT_EOF
11607 #line $LINENO "configure"
11608 #include "confdefs.h"
11609
11610 #if HAVE_DLFCN_H
11611 #include <dlfcn.h>
11612 #endif
11613
11614 #include <stdio.h>
11615
11616 #ifdef RTLD_GLOBAL
11617 #  define LT_DLGLOBAL           RTLD_GLOBAL
11618 #else
11619 #  ifdef DL_GLOBAL
11620 #    define LT_DLGLOBAL         DL_GLOBAL
11621 #  else
11622 #    define LT_DLGLOBAL         0
11623 #  endif
11624 #endif
11625
11626 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11627    find out it does not work in some platform. */
11628 #ifndef LT_DLLAZY_OR_NOW
11629 #  ifdef RTLD_LAZY
11630 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11631 #  else
11632 #    ifdef DL_LAZY
11633 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11634 #    else
11635 #      ifdef RTLD_NOW
11636 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11637 #      else
11638 #        ifdef DL_NOW
11639 #          define LT_DLLAZY_OR_NOW      DL_NOW
11640 #        else
11641 #          define LT_DLLAZY_OR_NOW      0
11642 #        endif
11643 #      endif
11644 #    endif
11645 #  endif
11646 #endif
11647
11648 /* When -fvisbility=hidden is used, assume the code has been annotated
11649    correspondingly for the symbols needed.  */
11650 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11651 int fnord () __attribute__((visibility("default")));
11652 #endif
11653
11654 int fnord () { return 42; }
11655 int main ()
11656 {
11657   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11658   int status = $lt_dlunknown;
11659
11660   if (self)
11661     {
11662       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11663       else
11664         {
11665           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11666           else puts (dlerror ());
11667         }
11668       /* dlclose (self); */
11669     }
11670   else
11671     puts (dlerror ());
11672
11673   return status;
11674 }
11675 _LT_EOF
11676   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11677   (eval $ac_link) 2>&5
11678   ac_status=$?
11679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11680   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11681     (./conftest; exit; ) >&5 2>/dev/null
11682     lt_status=$?
11683     case x$lt_status in
11684       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11685       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11686       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11687     esac
11688   else :
11689     # compilation failed
11690     lt_cv_dlopen_self_static=no
11691   fi
11692 fi
11693 rm -fr conftest*
11694
11695
11696 fi
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11698 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11699     fi
11700
11701     CPPFLAGS="$save_CPPFLAGS"
11702     LDFLAGS="$save_LDFLAGS"
11703     LIBS="$save_LIBS"
11704     ;;
11705   esac
11706
11707   case $lt_cv_dlopen_self in
11708   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11709   *) enable_dlopen_self=unknown ;;
11710   esac
11711
11712   case $lt_cv_dlopen_self_static in
11713   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11714   *) enable_dlopen_self_static=unknown ;;
11715   esac
11716 fi
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734 striplib=
11735 old_striplib=
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11737 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11738 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11739   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11740   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11742 $as_echo "yes" >&6; }
11743 else
11744 # FIXME - insert some real tests, host_os isn't really good enough
11745   case $host_os in
11746   darwin*)
11747     if test -n "$STRIP" ; then
11748       striplib="$STRIP -x"
11749       old_striplib="$STRIP -S"
11750       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11751 $as_echo "yes" >&6; }
11752     else
11753       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754 $as_echo "no" >&6; }
11755     fi
11756     ;;
11757   *)
11758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759 $as_echo "no" >&6; }
11760     ;;
11761   esac
11762 fi
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775   # Report which library types will actually be built
11776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11777 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11779 $as_echo "$can_build_shared" >&6; }
11780
11781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11782 $as_echo_n "checking whether to build shared libraries... " >&6; }
11783   test "$can_build_shared" = "no" && enable_shared=no
11784
11785   # On AIX, shared libraries and static libraries use the same namespace, and
11786   # are all built from PIC.
11787   case $host_os in
11788   aix3*)
11789     test "$enable_shared" = yes && enable_static=no
11790     if test -n "$RANLIB"; then
11791       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11792       postinstall_cmds='$RANLIB $lib'
11793     fi
11794     ;;
11795
11796   aix[4-9]*)
11797     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11798       test "$enable_shared" = yes && enable_static=no
11799     fi
11800     ;;
11801   esac
11802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11803 $as_echo "$enable_shared" >&6; }
11804
11805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11806 $as_echo_n "checking whether to build static libraries... " >&6; }
11807   # Make sure either enable_shared or enable_static is yes.
11808   test "$enable_shared" = yes || enable_static=yes
11809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11810 $as_echo "$enable_static" >&6; }
11811
11812
11813
11814
11815 fi
11816 ac_ext=c
11817 ac_cpp='$CPP $CPPFLAGS'
11818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11821
11822 CC="$lt_save_CC"
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838         ac_config_commands="$ac_config_commands libtool"
11839
11840
11841
11842
11843 # Only expand once:
11844
11845
11846
11847
11848 GLIB_REQUIRED=2.38.0
11849 # Check whether --enable-glibtest was given.
11850 if test "${enable_glibtest+set}" = set; then :
11851   enableval=$enable_glibtest;
11852 else
11853   enable_glibtest=yes
11854 fi
11855
11856
11857   pkg_config_args=glib-2.0
11858   for module in . gobject gio
11859   do
11860       case "$module" in
11861          gmodule)
11862              pkg_config_args="$pkg_config_args gmodule-2.0"
11863          ;;
11864          gmodule-no-export)
11865              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
11866          ;;
11867          gobject)
11868              pkg_config_args="$pkg_config_args gobject-2.0"
11869          ;;
11870          gthread)
11871              pkg_config_args="$pkg_config_args gthread-2.0"
11872          ;;
11873          gio*)
11874              pkg_config_args="$pkg_config_args $module-2.0"
11875          ;;
11876       esac
11877   done
11878
11879
11880
11881
11882
11883
11884
11885
11886 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11887         if test -n "$ac_tool_prefix"; then
11888   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11889 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11891 $as_echo_n "checking for $ac_word... " >&6; }
11892 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11893   $as_echo_n "(cached) " >&6
11894 else
11895   case $PKG_CONFIG in
11896   [\\/]* | ?:[\\/]*)
11897   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11898   ;;
11899   *)
11900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11901 for as_dir in $PATH
11902 do
11903   IFS=$as_save_IFS
11904   test -z "$as_dir" && as_dir=.
11905     for ac_exec_ext in '' $ac_executable_extensions; do
11906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11907     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11909     break 2
11910   fi
11911 done
11912   done
11913 IFS=$as_save_IFS
11914
11915   ;;
11916 esac
11917 fi
11918 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11919 if test -n "$PKG_CONFIG"; then
11920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11921 $as_echo "$PKG_CONFIG" >&6; }
11922 else
11923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11924 $as_echo "no" >&6; }
11925 fi
11926
11927
11928 fi
11929 if test -z "$ac_cv_path_PKG_CONFIG"; then
11930   ac_pt_PKG_CONFIG=$PKG_CONFIG
11931   # Extract the first word of "pkg-config", so it can be a program name with args.
11932 set dummy pkg-config; ac_word=$2
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11934 $as_echo_n "checking for $ac_word... " >&6; }
11935 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11936   $as_echo_n "(cached) " >&6
11937 else
11938   case $ac_pt_PKG_CONFIG in
11939   [\\/]* | ?:[\\/]*)
11940   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11941   ;;
11942   *)
11943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11944 for as_dir in $PATH
11945 do
11946   IFS=$as_save_IFS
11947   test -z "$as_dir" && as_dir=.
11948     for ac_exec_ext in '' $ac_executable_extensions; do
11949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11950     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11952     break 2
11953   fi
11954 done
11955   done
11956 IFS=$as_save_IFS
11957
11958   ;;
11959 esac
11960 fi
11961 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11962 if test -n "$ac_pt_PKG_CONFIG"; then
11963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11964 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11965 else
11966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11967 $as_echo "no" >&6; }
11968 fi
11969
11970   if test "x$ac_pt_PKG_CONFIG" = x; then
11971     PKG_CONFIG=""
11972   else
11973     case $cross_compiling:$ac_tool_warned in
11974 yes:)
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11977 ac_tool_warned=yes ;;
11978 esac
11979     PKG_CONFIG=$ac_pt_PKG_CONFIG
11980   fi
11981 else
11982   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11983 fi
11984
11985 fi
11986 if test -n "$PKG_CONFIG"; then
11987         _pkg_min_version=0.16
11988         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11989 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11990         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11991                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11992 $as_echo "yes" >&6; }
11993         else
11994                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995 $as_echo "no" >&6; }
11996                 PKG_CONFIG=""
11997         fi
11998 fi
11999
12000   no_glib=""
12001
12002   if test "x$PKG_CONFIG" = x ; then
12003     no_glib=yes
12004     PKG_CONFIG=no
12005   fi
12006
12007   min_glib_version=$GLIB_REQUIRED
12008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
12009 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
12010
12011   if test x$PKG_CONFIG != xno ; then
12012     ## don't try to run the test against uninstalled libtool libs
12013     if $PKG_CONFIG --uninstalled $pkg_config_args; then
12014           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
12015           enable_glibtest=no
12016     fi
12017
12018     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
12019           :
12020     else
12021           no_glib=yes
12022     fi
12023   fi
12024
12025   if test x"$no_glib" = x ; then
12026     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
12027     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
12028     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
12029     GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
12030
12031     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
12032     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
12033     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
12034            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12035     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
12036            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12037     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
12038            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12039     if test "x$enable_glibtest" = "xyes" ; then
12040       ac_save_CFLAGS="$CFLAGS"
12041       ac_save_LIBS="$LIBS"
12042       CFLAGS="$CFLAGS $GLIB_CFLAGS"
12043       LIBS="$GLIB_LIBS $LIBS"
12044       rm -f conf.glibtest
12045       if test "$cross_compiling" = yes; then :
12046   echo $ac_n "cross compiling; assumed OK... $ac_c"
12047 else
12048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h.  */
12050
12051 #include <glib.h>
12052 #include <stdio.h>
12053 #include <stdlib.h>
12054
12055 int
12056 main ()
12057 {
12058   unsigned int major, minor, micro;
12059
12060   fclose (fopen ("conf.glibtest", "w"));
12061
12062   if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, &micro) != 3) {
12063      printf("%s, bad version string\n", "$min_glib_version");
12064      exit(1);
12065    }
12066
12067   if ((glib_major_version != $glib_config_major_version) ||
12068       (glib_minor_version != $glib_config_minor_version) ||
12069       (glib_micro_version != $glib_config_micro_version))
12070     {
12071       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
12072              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
12073              glib_major_version, glib_minor_version, glib_micro_version);
12074       printf ("*** was found! If pkg-config was correct, then it is best\n");
12075       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
12076       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12077       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12078       printf("*** required on your system.\n");
12079       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12080       printf("*** to point to the correct configuration files\n");
12081     }
12082   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
12083            (glib_minor_version != GLIB_MINOR_VERSION) ||
12084            (glib_micro_version != GLIB_MICRO_VERSION))
12085     {
12086       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
12087              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
12088       printf("*** library (version %d.%d.%d)\n",
12089              glib_major_version, glib_minor_version, glib_micro_version);
12090     }
12091   else
12092     {
12093       if ((glib_major_version > major) ||
12094         ((glib_major_version == major) && (glib_minor_version > minor)) ||
12095         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
12096       {
12097         return 0;
12098        }
12099      else
12100       {
12101         printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
12102                glib_major_version, glib_minor_version, glib_micro_version);
12103         printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
12104                major, minor, micro);
12105         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
12106         printf("***\n");
12107         printf("*** If you have already installed a sufficiently new version, this error\n");
12108         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12109         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12110         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
12111         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12112         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12113         printf("*** so that the correct libraries are found at run-time))\n");
12114       }
12115     }
12116   return 1;
12117 }
12118
12119 _ACEOF
12120 if ac_fn_c_try_run "$LINENO"; then :
12121
12122 else
12123   no_glib=yes
12124 fi
12125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12126   conftest.$ac_objext conftest.beam conftest.$ac_ext
12127 fi
12128
12129        CFLAGS="$ac_save_CFLAGS"
12130        LIBS="$ac_save_LIBS"
12131      fi
12132   fi
12133   if test "x$no_glib" = x ; then
12134      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
12135 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
12136      :
12137   else
12138      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12139 $as_echo "no" >&6; }
12140      if test "$PKG_CONFIG" = "no" ; then
12141        echo "*** A new enough version of pkg-config was not found."
12142        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
12143      else
12144        if test -f conf.glibtest ; then
12145         :
12146        else
12147           echo "*** Could not run GLIB test program, checking why..."
12148           ac_save_CFLAGS="$CFLAGS"
12149           ac_save_LIBS="$LIBS"
12150           CFLAGS="$CFLAGS $GLIB_CFLAGS"
12151           LIBS="$LIBS $GLIB_LIBS"
12152           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12153 /* end confdefs.h.  */
12154
12155 #include <glib.h>
12156 #include <stdio.h>
12157
12158 int
12159 main ()
12160 {
12161  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
12162   ;
12163   return 0;
12164 }
12165 _ACEOF
12166 if ac_fn_c_try_link "$LINENO"; then :
12167    echo "*** The test program compiled, but did not run. This usually means"
12168           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
12169           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
12170           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12171           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12172           echo "*** is required on your system"
12173           echo "***"
12174           echo "*** If you have an old version installed, it is best to remove it, although"
12175           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12176 else
12177    echo "*** The test program failed to compile or link. See the file config.log for the"
12178           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
12179 fi
12180 rm -f core conftest.err conftest.$ac_objext \
12181     conftest$ac_exeext conftest.$ac_ext
12182           CFLAGS="$ac_save_CFLAGS"
12183           LIBS="$ac_save_LIBS"
12184        fi
12185      fi
12186      GLIB_CFLAGS=""
12187      GLIB_LIBS=""
12188      GLIB_GENMARSHAL=""
12189      GOBJECT_QUERY=""
12190      GLIB_MKENUMS=""
12191      GLIB_COMPILE_RESOURCES=""
12192      :
12193   fi
12194
12195
12196
12197
12198
12199
12200   rm -f conf.glibtest
12201
12202 if test "$GLIB_LIBS" = ""; then
12203    as_fn_error $? "GLIB $GLIB_REQUIRED or later is required to build libsoup" "$LINENO" 5
12204 fi
12205 GLIB_CFLAGS="$GLIB_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_38"
12206
12207 GLIB_MAKEFILE='$(top_srcdir)/Makefile.glib'
12208
12209
12210
12211   # Check whether --enable-installed-tests was given.
12212 if test "${enable_installed_tests+set}" = set; then :
12213   enableval=$enable_installed_tests; case ${enableval} in
12214                   yes) ENABLE_INSTALLED_TESTS="1"  ;;
12215                   no)  ENABLE_INSTALLED_TESTS="" ;;
12216                   *) as_fn_error $? "bad value ${enableval} for --enable-installed-tests" "$LINENO" 5 ;;
12217                  esac
12218 fi
12219
12220    if test "$ENABLE_INSTALLED_TESTS" = "1"; then
12221   ENABLE_INSTALLED_TESTS_TRUE=
12222   ENABLE_INSTALLED_TESTS_FALSE='#'
12223 else
12224   ENABLE_INSTALLED_TESTS_TRUE='#'
12225   ENABLE_INSTALLED_TESTS_FALSE=
12226 fi
12227
12228   # Check whether --enable-always-build-tests was given.
12229 if test "${enable_always_build_tests+set}" = set; then :
12230   enableval=$enable_always_build_tests; case ${enableval} in
12231                   yes) ENABLE_ALWAYS_BUILD_TESTS="1"  ;;
12232                   no)  ENABLE_ALWAYS_BUILD_TESTS="" ;;
12233                   *) as_fn_error $? "bad value ${enableval} for --enable-always-build-tests" "$LINENO" 5 ;;
12234                  esac
12235 fi
12236
12237    if test "$ENABLE_ALWAYS_BUILD_TESTS" = "1"; then
12238   ENABLE_ALWAYS_BUILD_TESTS_TRUE=
12239   ENABLE_ALWAYS_BUILD_TESTS_FALSE='#'
12240 else
12241   ENABLE_ALWAYS_BUILD_TESTS_TRUE='#'
12242   ENABLE_ALWAYS_BUILD_TESTS_FALSE=
12243 fi
12244
12245   if test "$ENABLE_INSTALLED_TESTS" = "1"; then
12246     installed_test_metadir=${datadir}/installed-tests/libsoup
12247
12248     installed_testdir=${libexecdir}/installed-tests/libsoup
12249
12250   fi
12251
12252
12253
12254 pkg_failed=no
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
12256 $as_echo_n "checking for XML... " >&6; }
12257
12258 if test -n "$XML_CFLAGS"; then
12259     pkg_cv_XML_CFLAGS="$XML_CFLAGS"
12260  elif test -n "$PKG_CONFIG"; then
12261     if test -n "$PKG_CONFIG" && \
12262     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
12263   ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
12264   ac_status=$?
12265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12266   test $ac_status = 0; }; then
12267   pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
12268                       test "x$?" != "x0" && pkg_failed=yes
12269 else
12270   pkg_failed=yes
12271 fi
12272  else
12273     pkg_failed=untried
12274 fi
12275 if test -n "$XML_LIBS"; then
12276     pkg_cv_XML_LIBS="$XML_LIBS"
12277  elif test -n "$PKG_CONFIG"; then
12278     if test -n "$PKG_CONFIG" && \
12279     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
12280   ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
12281   ac_status=$?
12282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12283   test $ac_status = 0; }; then
12284   pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
12285                       test "x$?" != "x0" && pkg_failed=yes
12286 else
12287   pkg_failed=yes
12288 fi
12289  else
12290     pkg_failed=untried
12291 fi
12292
12293
12294
12295 if test $pkg_failed = yes; then
12296         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297 $as_echo "no" >&6; }
12298
12299 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12300         _pkg_short_errors_supported=yes
12301 else
12302         _pkg_short_errors_supported=no
12303 fi
12304         if test $_pkg_short_errors_supported = yes; then
12305                 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
12306         else
12307                 XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
12308         fi
12309         # Put the nasty error message in config.log where it belongs
12310         echo "$XML_PKG_ERRORS" >&5
12311
12312         as_fn_error $? "Package requirements (libxml-2.0) were not met:
12313
12314 $XML_PKG_ERRORS
12315
12316 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12317 installed software in a non-standard prefix.
12318
12319 Alternatively, you may set the environment variables XML_CFLAGS
12320 and XML_LIBS to avoid the need to call pkg-config.
12321 See the pkg-config man page for more details." "$LINENO" 5
12322 elif test $pkg_failed = untried; then
12323         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12325         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12327 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12328 is in your PATH or set the PKG_CONFIG environment variable to the full
12329 path to pkg-config.
12330
12331 Alternatively, you may set the environment variables XML_CFLAGS
12332 and XML_LIBS to avoid the need to call pkg-config.
12333 See the pkg-config man page for more details.
12334
12335 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12336 See \`config.log' for more details" "$LINENO" 5; }
12337 else
12338         XML_CFLAGS=$pkg_cv_XML_CFLAGS
12339         XML_LIBS=$pkg_cv_XML_LIBS
12340         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12341 $as_echo "yes" >&6; }
12342
12343 fi
12344
12345
12346
12347
12348 pkg_failed=no
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
12350 $as_echo_n "checking for SQLITE... " >&6; }
12351
12352 if test -n "$SQLITE_CFLAGS"; then
12353     pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
12354  elif test -n "$PKG_CONFIG"; then
12355     if test -n "$PKG_CONFIG" && \
12356     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
12357   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
12358   ac_status=$?
12359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12360   test $ac_status = 0; }; then
12361   pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
12362                       test "x$?" != "x0" && pkg_failed=yes
12363 else
12364   pkg_failed=yes
12365 fi
12366  else
12367     pkg_failed=untried
12368 fi
12369 if test -n "$SQLITE_LIBS"; then
12370     pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
12371  elif test -n "$PKG_CONFIG"; then
12372     if test -n "$PKG_CONFIG" && \
12373     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
12374   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
12375   ac_status=$?
12376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12377   test $ac_status = 0; }; then
12378   pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
12379                       test "x$?" != "x0" && pkg_failed=yes
12380 else
12381   pkg_failed=yes
12382 fi
12383  else
12384     pkg_failed=untried
12385 fi
12386
12387
12388
12389 if test $pkg_failed = yes; then
12390         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391 $as_echo "no" >&6; }
12392
12393 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12394         _pkg_short_errors_supported=yes
12395 else
12396         _pkg_short_errors_supported=no
12397 fi
12398         if test $_pkg_short_errors_supported = yes; then
12399                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
12400         else
12401                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
12402         fi
12403         # Put the nasty error message in config.log where it belongs
12404         echo "$SQLITE_PKG_ERRORS" >&5
12405
12406         as_fn_error $? "Package requirements (sqlite3) were not met:
12407
12408 $SQLITE_PKG_ERRORS
12409
12410 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12411 installed software in a non-standard prefix.
12412
12413 Alternatively, you may set the environment variables SQLITE_CFLAGS
12414 and SQLITE_LIBS to avoid the need to call pkg-config.
12415 See the pkg-config man page for more details." "$LINENO" 5
12416 elif test $pkg_failed = untried; then
12417         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12418 $as_echo "no" >&6; }
12419         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12421 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12422 is in your PATH or set the PKG_CONFIG environment variable to the full
12423 path to pkg-config.
12424
12425 Alternatively, you may set the environment variables SQLITE_CFLAGS
12426 and SQLITE_LIBS to avoid the need to call pkg-config.
12427 See the pkg-config man page for more details.
12428
12429 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12430 See \`config.log' for more details" "$LINENO" 5; }
12431 else
12432         SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
12433         SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
12434         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12435 $as_echo "yes" >&6; }
12436
12437 fi
12438
12439
12440
12441
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32" >&5
12443 $as_echo_n "checking for Win32... " >&6; }
12444 case "$host" in
12445   *-*-mingw*)
12446     os_win32=yes
12447     CFLAGS="$CFLAGS -D_REENTRANT"
12448     ;;
12449   *)
12450     os_win32=no
12451     ;;
12452 esac
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
12454 $as_echo "$os_win32" >&6; }
12455  if test $os_win32 = yes; then
12456   OS_WIN32_TRUE=
12457   OS_WIN32_FALSE='#'
12458 else
12459   OS_WIN32_TRUE='#'
12460   OS_WIN32_FALSE=
12461 fi
12462
12463
12464
12465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12466 $as_echo_n "checking whether NLS is requested... " >&6; }
12467     # Check whether --enable-nls was given.
12468 if test "${enable_nls+set}" = set; then :
12469   enableval=$enable_nls; USE_NLS=$enableval
12470 else
12471   USE_NLS=yes
12472 fi
12473
12474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12475 $as_echo "$USE_NLS" >&6; }
12476
12477
12478
12479
12480 case "$am__api_version" in
12481     1.01234)
12482         as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
12483     ;;
12484     *)
12485     ;;
12486 esac
12487
12488 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
12489 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
12490 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
12491 if test -n "0.35.0"; then
12492     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
12493 $as_echo_n "checking for intltool >= 0.35.0... " >&6; }
12494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
12495 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
12496     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
12497         as_fn_error $? "Your intltool is too old.  You need intltool 0.35.0 or later." "$LINENO" 5
12498 fi
12499
12500 # Extract the first word of "intltool-update", so it can be a program name with args.
12501 set dummy intltool-update; ac_word=$2
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12503 $as_echo_n "checking for $ac_word... " >&6; }
12504 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
12505   $as_echo_n "(cached) " >&6
12506 else
12507   case $INTLTOOL_UPDATE in
12508   [\\/]* | ?:[\\/]*)
12509   ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
12510   ;;
12511   *)
12512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12513 for as_dir in $PATH
12514 do
12515   IFS=$as_save_IFS
12516   test -z "$as_dir" && as_dir=.
12517     for ac_exec_ext in '' $ac_executable_extensions; do
12518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12519     ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
12520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12521     break 2
12522   fi
12523 done
12524   done
12525 IFS=$as_save_IFS
12526
12527   ;;
12528 esac
12529 fi
12530 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
12531 if test -n "$INTLTOOL_UPDATE"; then
12532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
12533 $as_echo "$INTLTOOL_UPDATE" >&6; }
12534 else
12535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12537 fi
12538
12539
12540 # Extract the first word of "intltool-merge", so it can be a program name with args.
12541 set dummy intltool-merge; ac_word=$2
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12543 $as_echo_n "checking for $ac_word... " >&6; }
12544 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
12545   $as_echo_n "(cached) " >&6
12546 else
12547   case $INTLTOOL_MERGE in
12548   [\\/]* | ?:[\\/]*)
12549   ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
12550   ;;
12551   *)
12552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12553 for as_dir in $PATH
12554 do
12555   IFS=$as_save_IFS
12556   test -z "$as_dir" && as_dir=.
12557     for ac_exec_ext in '' $ac_executable_extensions; do
12558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12559     ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
12560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12561     break 2
12562   fi
12563 done
12564   done
12565 IFS=$as_save_IFS
12566
12567   ;;
12568 esac
12569 fi
12570 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
12571 if test -n "$INTLTOOL_MERGE"; then
12572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
12573 $as_echo "$INTLTOOL_MERGE" >&6; }
12574 else
12575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576 $as_echo "no" >&6; }
12577 fi
12578
12579
12580 # Extract the first word of "intltool-extract", so it can be a program name with args.
12581 set dummy intltool-extract; ac_word=$2
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12583 $as_echo_n "checking for $ac_word... " >&6; }
12584 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
12585   $as_echo_n "(cached) " >&6
12586 else
12587   case $INTLTOOL_EXTRACT in
12588   [\\/]* | ?:[\\/]*)
12589   ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
12590   ;;
12591   *)
12592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12593 for as_dir in $PATH
12594 do
12595   IFS=$as_save_IFS
12596   test -z "$as_dir" && as_dir=.
12597     for ac_exec_ext in '' $ac_executable_extensions; do
12598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12599     ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
12600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12601     break 2
12602   fi
12603 done
12604   done
12605 IFS=$as_save_IFS
12606
12607   ;;
12608 esac
12609 fi
12610 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
12611 if test -n "$INTLTOOL_EXTRACT"; then
12612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
12613 $as_echo "$INTLTOOL_EXTRACT" >&6; }
12614 else
12615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12616 $as_echo "no" >&6; }
12617 fi
12618
12619
12620 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
12621     as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
12622 fi
12623
12624 if test -z "$AM_DEFAULT_VERBOSITY"; then
12625   AM_DEFAULT_VERBOSITY=1
12626 fi
12627
12628
12629 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
12630 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
12631 INTLTOOL__v_MERGE_0='@echo "  ITMRG " $@;'
12632
12633
12634
12635
12636 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
12637 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
12638 intltool__v_merge_options_0='-q'
12639
12640
12641
12642
12643   INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12644 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12645      INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12646      INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12647       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
12648      INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12649    INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12650     INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12651 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12652        INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12653       INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12654 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
12655       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
12656 else
12657       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
12658 fi
12659       INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12660       INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12661     INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12662   INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12663     INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12664     INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12665    INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763 # Check the gettext tools to make sure they are GNU
12764 # Extract the first word of "xgettext", so it can be a program name with args.
12765 set dummy xgettext; ac_word=$2
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12767 $as_echo_n "checking for $ac_word... " >&6; }
12768 if ${ac_cv_path_XGETTEXT+:} false; then :
12769   $as_echo_n "(cached) " >&6
12770 else
12771   case $XGETTEXT in
12772   [\\/]* | ?:[\\/]*)
12773   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12774   ;;
12775   *)
12776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12777 for as_dir in $PATH
12778 do
12779   IFS=$as_save_IFS
12780   test -z "$as_dir" && as_dir=.
12781     for ac_exec_ext in '' $ac_executable_extensions; do
12782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12783     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
12784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12785     break 2
12786   fi
12787 done
12788   done
12789 IFS=$as_save_IFS
12790
12791   ;;
12792 esac
12793 fi
12794 XGETTEXT=$ac_cv_path_XGETTEXT
12795 if test -n "$XGETTEXT"; then
12796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12797 $as_echo "$XGETTEXT" >&6; }
12798 else
12799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800 $as_echo "no" >&6; }
12801 fi
12802
12803
12804 # Extract the first word of "msgmerge", so it can be a program name with args.
12805 set dummy msgmerge; ac_word=$2
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12807 $as_echo_n "checking for $ac_word... " >&6; }
12808 if ${ac_cv_path_MSGMERGE+:} false; then :
12809   $as_echo_n "(cached) " >&6
12810 else
12811   case $MSGMERGE in
12812   [\\/]* | ?:[\\/]*)
12813   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12814   ;;
12815   *)
12816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12817 for as_dir in $PATH
12818 do
12819   IFS=$as_save_IFS
12820   test -z "$as_dir" && as_dir=.
12821     for ac_exec_ext in '' $ac_executable_extensions; do
12822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12823     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
12824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12825     break 2
12826   fi
12827 done
12828   done
12829 IFS=$as_save_IFS
12830
12831   ;;
12832 esac
12833 fi
12834 MSGMERGE=$ac_cv_path_MSGMERGE
12835 if test -n "$MSGMERGE"; then
12836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12837 $as_echo "$MSGMERGE" >&6; }
12838 else
12839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840 $as_echo "no" >&6; }
12841 fi
12842
12843
12844 # Extract the first word of "msgfmt", so it can be a program name with args.
12845 set dummy msgfmt; ac_word=$2
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12847 $as_echo_n "checking for $ac_word... " >&6; }
12848 if ${ac_cv_path_MSGFMT+:} false; then :
12849   $as_echo_n "(cached) " >&6
12850 else
12851   case $MSGFMT in
12852   [\\/]* | ?:[\\/]*)
12853   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12854   ;;
12855   *)
12856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12857 for as_dir in $PATH
12858 do
12859   IFS=$as_save_IFS
12860   test -z "$as_dir" && as_dir=.
12861     for ac_exec_ext in '' $ac_executable_extensions; do
12862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12863     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
12864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12865     break 2
12866   fi
12867 done
12868   done
12869 IFS=$as_save_IFS
12870
12871   ;;
12872 esac
12873 fi
12874 MSGFMT=$ac_cv_path_MSGFMT
12875 if test -n "$MSGFMT"; then
12876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12877 $as_echo "$MSGFMT" >&6; }
12878 else
12879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12880 $as_echo "no" >&6; }
12881 fi
12882
12883
12884 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12885 set dummy gmsgfmt; ac_word=$2
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12887 $as_echo_n "checking for $ac_word... " >&6; }
12888 if ${ac_cv_path_GMSGFMT+:} false; then :
12889   $as_echo_n "(cached) " >&6
12890 else
12891   case $GMSGFMT in
12892   [\\/]* | ?:[\\/]*)
12893   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12894   ;;
12895   *)
12896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12897 for as_dir in $PATH
12898 do
12899   IFS=$as_save_IFS
12900   test -z "$as_dir" && as_dir=.
12901     for ac_exec_ext in '' $ac_executable_extensions; do
12902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12903     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12905     break 2
12906   fi
12907 done
12908   done
12909 IFS=$as_save_IFS
12910
12911   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12912   ;;
12913 esac
12914 fi
12915 GMSGFMT=$ac_cv_path_GMSGFMT
12916 if test -n "$GMSGFMT"; then
12917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12918 $as_echo "$GMSGFMT" >&6; }
12919 else
12920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921 $as_echo "no" >&6; }
12922 fi
12923
12924
12925 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
12926     as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
12927 fi
12928 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
12929 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
12930 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
12931 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
12932     as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
12933 fi
12934
12935 # Extract the first word of "perl", so it can be a program name with args.
12936 set dummy perl; ac_word=$2
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12938 $as_echo_n "checking for $ac_word... " >&6; }
12939 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
12940   $as_echo_n "(cached) " >&6
12941 else
12942   case $INTLTOOL_PERL in
12943   [\\/]* | ?:[\\/]*)
12944   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
12945   ;;
12946   *)
12947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12948 for as_dir in $PATH
12949 do
12950   IFS=$as_save_IFS
12951   test -z "$as_dir" && as_dir=.
12952     for ac_exec_ext in '' $ac_executable_extensions; do
12953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12954     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
12955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12956     break 2
12957   fi
12958 done
12959   done
12960 IFS=$as_save_IFS
12961
12962   ;;
12963 esac
12964 fi
12965 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
12966 if test -n "$INTLTOOL_PERL"; then
12967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
12968 $as_echo "$INTLTOOL_PERL" >&6; }
12969 else
12970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971 $as_echo "no" >&6; }
12972 fi
12973
12974
12975 if test -z "$INTLTOOL_PERL"; then
12976    as_fn_error $? "perl not found" "$LINENO" 5
12977 fi
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
12979 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
12980 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
12981 if test $? -ne 0; then
12982    as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
12983 else
12984    IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
12985    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
12986 $as_echo "$IT_PERL_VERSION" >&6; }
12987 fi
12988 if test "x" != "xno-xml"; then
12989    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
12990 $as_echo_n "checking for XML::Parser... " >&6; }
12991    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
12992        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12993 $as_echo "ok" >&6; }
12994    else
12995        as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
12996    fi
12997 fi
12998
12999 # Substitute ALL_LINGUAS so we can use it in po/Makefile
13000
13001
13002
13003
13004
13005 GETTEXT_PACKAGE=libsoup
13006
13007
13008 cat >>confdefs.h <<_ACEOF
13009 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
13010 _ACEOF
13011
13012
13013 for ac_func in gmtime_r
13014 do :
13015   ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
13016 if test "x$ac_cv_func_gmtime_r" = xyes; then :
13017   cat >>confdefs.h <<_ACEOF
13018 #define HAVE_GMTIME_R 1
13019 _ACEOF
13020
13021 fi
13022 done
13023
13024
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build libsoup-gnome" >&5
13026 $as_echo_n "checking whether to build libsoup-gnome... " >&6; }
13027
13028 # Check whether --with-gnome was given.
13029 if test "${with_gnome+set}" = set; then :
13030   withval=$with_gnome; :
13031 else
13032   if test $os_win32 = yes; then with_gnome=no; else with_gnome=yes; fi
13033 fi
13034
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gnome" >&5
13036 $as_echo "$with_gnome" >&6; }
13037
13038  if test $with_gnome != no; then
13039   BUILD_LIBSOUP_GNOME_TRUE=
13040   BUILD_LIBSOUP_GNOME_FALSE='#'
13041 else
13042   BUILD_LIBSOUP_GNOME_TRUE='#'
13043   BUILD_LIBSOUP_GNOME_FALSE=
13044 fi
13045
13046
13047 if test $with_gnome != no; then
13048
13049 $as_echo "#define HAVE_GNOME 1" >>confdefs.h
13050
13051 fi
13052
13053
13054
13055
13056
13057
13058   gtk_doc_requires="gtk-doc >= 1.10"
13059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
13060 $as_echo_n "checking for gtk-doc... " >&6; }
13061   if test -n "$PKG_CONFIG" && \
13062     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
13063   ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
13064   ac_status=$?
13065   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13066   test $ac_status = 0; }; then
13067   have_gtk_doc=yes
13068 else
13069   have_gtk_doc=no
13070 fi
13071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
13072 $as_echo "$have_gtk_doc" >&6; }
13073
13074   if test "$have_gtk_doc" = "no"; then
13075       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13076   You will not be able to create source packages with 'make dist'
13077   because $gtk_doc_requires is not found." >&5
13078 $as_echo "$as_me: WARNING:
13079   You will not be able to create source packages with 'make dist'
13080   because $gtk_doc_requires is not found." >&2;}
13081   fi
13082
13083             # Extract the first word of "gtkdoc-check", so it can be a program name with args.
13084 set dummy gtkdoc-check; ac_word=$2
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13086 $as_echo_n "checking for $ac_word... " >&6; }
13087 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
13088   $as_echo_n "(cached) " >&6
13089 else
13090   if test -n "$GTKDOC_CHECK"; then
13091   ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
13092 else
13093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13094 for as_dir in $PATH
13095 do
13096   IFS=$as_save_IFS
13097   test -z "$as_dir" && as_dir=.
13098     for ac_exec_ext in '' $ac_executable_extensions; do
13099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13100     ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
13101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13102     break 2
13103   fi
13104 done
13105   done
13106 IFS=$as_save_IFS
13107
13108 fi
13109 fi
13110 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
13111 if test -n "$GTKDOC_CHECK"; then
13112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
13113 $as_echo "$GTKDOC_CHECK" >&6; }
13114 else
13115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13116 $as_echo "no" >&6; }
13117 fi
13118
13119
13120   # Extract the first word of "gtkdoc-check", so it can be a program name with args.
13121 set dummy gtkdoc-check; ac_word=$2
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13123 $as_echo_n "checking for $ac_word... " >&6; }
13124 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
13125   $as_echo_n "(cached) " >&6
13126 else
13127   case $GTKDOC_CHECK_PATH in
13128   [\\/]* | ?:[\\/]*)
13129   ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
13130   ;;
13131   *)
13132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13133 for as_dir in $PATH
13134 do
13135   IFS=$as_save_IFS
13136   test -z "$as_dir" && as_dir=.
13137     for ac_exec_ext in '' $ac_executable_extensions; do
13138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13139     ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
13140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13141     break 2
13142   fi
13143 done
13144   done
13145 IFS=$as_save_IFS
13146
13147   ;;
13148 esac
13149 fi
13150 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
13151 if test -n "$GTKDOC_CHECK_PATH"; then
13152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
13153 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
13154 else
13155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156 $as_echo "no" >&6; }
13157 fi
13158
13159
13160   for ac_prog in gtkdoc-rebase
13161 do
13162   # Extract the first word of "$ac_prog", so it can be a program name with args.
13163 set dummy $ac_prog; ac_word=$2
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13165 $as_echo_n "checking for $ac_word... " >&6; }
13166 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
13167   $as_echo_n "(cached) " >&6
13168 else
13169   case $GTKDOC_REBASE in
13170   [\\/]* | ?:[\\/]*)
13171   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
13172   ;;
13173   *)
13174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13175 for as_dir in $PATH
13176 do
13177   IFS=$as_save_IFS
13178   test -z "$as_dir" && as_dir=.
13179     for ac_exec_ext in '' $ac_executable_extensions; do
13180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13181     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
13182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13183     break 2
13184   fi
13185 done
13186   done
13187 IFS=$as_save_IFS
13188
13189   ;;
13190 esac
13191 fi
13192 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
13193 if test -n "$GTKDOC_REBASE"; then
13194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
13195 $as_echo "$GTKDOC_REBASE" >&6; }
13196 else
13197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13198 $as_echo "no" >&6; }
13199 fi
13200
13201
13202   test -n "$GTKDOC_REBASE" && break
13203 done
13204 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
13205
13206   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
13207 set dummy gtkdoc-mkpdf; ac_word=$2
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13209 $as_echo_n "checking for $ac_word... " >&6; }
13210 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
13211   $as_echo_n "(cached) " >&6
13212 else
13213   case $GTKDOC_MKPDF in
13214   [\\/]* | ?:[\\/]*)
13215   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
13216   ;;
13217   *)
13218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13219 for as_dir in $PATH
13220 do
13221   IFS=$as_save_IFS
13222   test -z "$as_dir" && as_dir=.
13223     for ac_exec_ext in '' $ac_executable_extensions; do
13224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13225     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
13226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13227     break 2
13228   fi
13229 done
13230   done
13231 IFS=$as_save_IFS
13232
13233   ;;
13234 esac
13235 fi
13236 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
13237 if test -n "$GTKDOC_MKPDF"; then
13238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
13239 $as_echo "$GTKDOC_MKPDF" >&6; }
13240 else
13241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242 $as_echo "no" >&6; }
13243 fi
13244
13245
13246
13247
13248 # Check whether --with-html-dir was given.
13249 if test "${with_html_dir+set}" = set; then :
13250   withval=$with_html_dir;
13251 else
13252   with_html_dir='${datadir}/gtk-doc/html'
13253 fi
13254
13255   HTML_DIR="$with_html_dir"
13256
13257
13258     # Check whether --enable-gtk-doc was given.
13259 if test "${enable_gtk_doc+set}" = set; then :
13260   enableval=$enable_gtk_doc;
13261 else
13262   enable_gtk_doc=no
13263 fi
13264
13265
13266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
13267 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
13268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
13269 $as_echo "$enable_gtk_doc" >&6; }
13270
13271   if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
13272     as_fn_error $? "
13273   You must have $gtk_doc_requires installed to build documentation for
13274   $PACKAGE_NAME. Please install gtk-doc or disable building the
13275   documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
13276   fi
13277
13278     if test "x$PACKAGE_NAME" != "xglib"; then
13279
13280 pkg_failed=no
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
13282 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
13283
13284 if test -n "$GTKDOC_DEPS_CFLAGS"; then
13285     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
13286  elif test -n "$PKG_CONFIG"; then
13287     if test -n "$PKG_CONFIG" && \
13288     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
13289   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13290   ac_status=$?
13291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13292   test $ac_status = 0; }; then
13293   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13294                       test "x$?" != "x0" && pkg_failed=yes
13295 else
13296   pkg_failed=yes
13297 fi
13298  else
13299     pkg_failed=untried
13300 fi
13301 if test -n "$GTKDOC_DEPS_LIBS"; then
13302     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
13303  elif test -n "$PKG_CONFIG"; then
13304     if test -n "$PKG_CONFIG" && \
13305     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
13306   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13307   ac_status=$?
13308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13309   test $ac_status = 0; }; then
13310   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13311                       test "x$?" != "x0" && pkg_failed=yes
13312 else
13313   pkg_failed=yes
13314 fi
13315  else
13316     pkg_failed=untried
13317 fi
13318
13319
13320
13321 if test $pkg_failed = yes; then
13322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13323 $as_echo "no" >&6; }
13324
13325 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13326         _pkg_short_errors_supported=yes
13327 else
13328         _pkg_short_errors_supported=no
13329 fi
13330         if test $_pkg_short_errors_supported = yes; then
13331                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
13332         else
13333                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
13334         fi
13335         # Put the nasty error message in config.log where it belongs
13336         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
13337
13338         :
13339 elif test $pkg_failed = untried; then
13340         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341 $as_echo "no" >&6; }
13342         :
13343 else
13344         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
13345         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
13346         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13347 $as_echo "yes" >&6; }
13348
13349 fi
13350   fi
13351
13352     # Check whether --enable-gtk-doc-html was given.
13353 if test "${enable_gtk_doc_html+set}" = set; then :
13354   enableval=$enable_gtk_doc_html;
13355 else
13356   enable_gtk_doc_html=yes
13357 fi
13358
13359     # Check whether --enable-gtk-doc-pdf was given.
13360 if test "${enable_gtk_doc_pdf+set}" = set; then :
13361   enableval=$enable_gtk_doc_pdf;
13362 else
13363   enable_gtk_doc_pdf=no
13364 fi
13365
13366
13367   if test -z "$GTKDOC_MKPDF"; then
13368     enable_gtk_doc_pdf=no
13369   fi
13370
13371   if test -z "$AM_DEFAULT_VERBOSITY"; then
13372     AM_DEFAULT_VERBOSITY=1
13373   fi
13374
13375
13376    if test x$have_gtk_doc = xyes; then
13377   HAVE_GTK_DOC_TRUE=
13378   HAVE_GTK_DOC_FALSE='#'
13379 else
13380   HAVE_GTK_DOC_TRUE='#'
13381   HAVE_GTK_DOC_FALSE=
13382 fi
13383
13384    if test x$enable_gtk_doc = xyes; then
13385   ENABLE_GTK_DOC_TRUE=
13386   ENABLE_GTK_DOC_FALSE='#'
13387 else
13388   ENABLE_GTK_DOC_TRUE='#'
13389   ENABLE_GTK_DOC_FALSE=
13390 fi
13391
13392    if test x$enable_gtk_doc_html = xyes; then
13393   GTK_DOC_BUILD_HTML_TRUE=
13394   GTK_DOC_BUILD_HTML_FALSE='#'
13395 else
13396   GTK_DOC_BUILD_HTML_TRUE='#'
13397   GTK_DOC_BUILD_HTML_FALSE=
13398 fi
13399
13400    if test x$enable_gtk_doc_pdf = xyes; then
13401   GTK_DOC_BUILD_PDF_TRUE=
13402   GTK_DOC_BUILD_PDF_FALSE='#'
13403 else
13404   GTK_DOC_BUILD_PDF_TRUE='#'
13405   GTK_DOC_BUILD_PDF_FALSE=
13406 fi
13407
13408    if test -n "$LIBTOOL"; then
13409   GTK_DOC_USE_LIBTOOL_TRUE=
13410   GTK_DOC_USE_LIBTOOL_FALSE='#'
13411 else
13412   GTK_DOC_USE_LIBTOOL_TRUE='#'
13413   GTK_DOC_USE_LIBTOOL_FALSE=
13414 fi
13415
13416    if test -n "$GTKDOC_REBASE"; then
13417   GTK_DOC_USE_REBASE_TRUE=
13418   GTK_DOC_USE_REBASE_FALSE='#'
13419 else
13420   GTK_DOC_USE_REBASE_TRUE='#'
13421   GTK_DOC_USE_REBASE_FALSE=
13422 fi
13423
13424
13425
13426
13427
13428
13429                 # Check whether --enable-introspection was given.
13430 if test "${enable_introspection+set}" = set; then :
13431   enableval=$enable_introspection;
13432 else
13433   enable_introspection=auto
13434 fi
13435
13436
13437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
13438 $as_echo_n "checking for gobject-introspection... " >&6; }
13439
13440         case $enable_introspection in #(
13441   no) :
13442             found_introspection="no (disabled, use --enable-introspection to enable)"
13443      ;; #(
13444       yes) :
13445             if test -n "$PKG_CONFIG" && \
13446     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
13447   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
13448   ac_status=$?
13449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13450   test $ac_status = 0; }; then
13451   :
13452 else
13453   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
13454 fi
13455         if test -n "$PKG_CONFIG" && \
13456     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
13457   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
13458   ac_status=$?
13459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13460   test $ac_status = 0; }; then
13461   found_introspection=yes
13462 else
13463   as_fn_error $? "You need to have gobject-introspection >= 0.9.5 installed to build libsoup" "$LINENO" 5
13464 fi
13465      ;; #(
13466       auto) :
13467             if test -n "$PKG_CONFIG" && \
13468     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
13469   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
13470   ac_status=$?
13471   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13472   test $ac_status = 0; }; then
13473   found_introspection=yes
13474 else
13475   found_introspection=no
13476 fi
13477      ;; #(
13478   *) :
13479                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
13480      ;;
13481 esac
13482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
13483 $as_echo "$found_introspection" >&6; }
13484
13485     INTROSPECTION_SCANNER=
13486     INTROSPECTION_COMPILER=
13487     INTROSPECTION_GENERATE=
13488     INTROSPECTION_GIRDIR=
13489     INTROSPECTION_TYPELIBDIR=
13490     if test "x$found_introspection" = "xyes"; then
13491        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
13492        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
13493        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
13494        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
13495        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
13496        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
13497        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
13498        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
13499     fi
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509      if test "x$found_introspection" = "xyes"; then
13510   HAVE_INTROSPECTION_TRUE=
13511   HAVE_INTROSPECTION_FALSE='#'
13512 else
13513   HAVE_INTROSPECTION_TRUE='#'
13514   HAVE_INTROSPECTION_FALSE=
13515 fi
13516
13517
13518
13519
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-networking (glib TLS implementation)" >&5
13521 $as_echo_n "checking for glib-networking (glib TLS implementation)... " >&6; }
13522 save_CFLAGS="$CFLAGS"
13523 save_LIBS="$LIBS"
13524 CFLAGS="$CFLAGS $GLIB_CFLAGS"
13525 LIBS="$LIBS $GLIB_LIBS"
13526 if test "$cross_compiling" = yes; then :
13527   have_glib_networking="unknown (cross-compiling)"
13528 else
13529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530 /* end confdefs.h.  */
13531 #include <gio/gio.h>
13532 int
13533 main ()
13534 {
13535 return !g_tls_backend_supports_tls (g_tls_backend_get_default ());
13536   ;
13537   return 0;
13538 }
13539 _ACEOF
13540 if ac_fn_c_try_run "$LINENO"; then :
13541   have_glib_networking=yes
13542 else
13543   have_glib_networking=no
13544 fi
13545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13546   conftest.$ac_objext conftest.beam conftest.$ac_ext
13547 fi
13548
13549 CFLAGS="$save_CFLAGS"
13550 LIBS="$save_LIBS"
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glib_networking" >&5
13552 $as_echo "$have_glib_networking" >&6; }
13553
13554 # Check whether --enable-tls-check was given.
13555 if test "${enable_tls_check+set}" = set; then :
13556   enableval=$enable_tls_check;
13557 fi
13558
13559 if test "$enable_tls_check" != "no" -a "$have_glib_networking" = "no"; then
13560         as_fn_error $? "libsoup requires glib-networking for TLS support.
13561
13562 If you are building a package, you can pass --disable-tls-check to
13563 allow building libsoup anyway (since glib-networking is not actually
13564 required at compile time), but you should be sure to add a runtime
13565 dependency on it." "$LINENO" 5
13566 fi
13567
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for programs needed for regression tests" >&5
13569 $as_echo "$as_me: checking for programs needed for regression tests" >&6;}
13570
13571
13572 # Check whether --with-apache-httpd was given.
13573 if test "${with_apache_httpd+set}" = set; then :
13574   withval=$with_apache_httpd; APACHE_HTTPD="$withval"
13575 else
13576   for ac_prog in httpd2 httpd apache2 apache
13577 do
13578   # Extract the first word of "$ac_prog", so it can be a program name with args.
13579 set dummy $ac_prog; ac_word=$2
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13581 $as_echo_n "checking for $ac_word... " >&6; }
13582 if ${ac_cv_path_APACHE_HTTPD+:} false; then :
13583   $as_echo_n "(cached) " >&6
13584 else
13585   case $APACHE_HTTPD in
13586   [\\/]* | ?:[\\/]*)
13587   ac_cv_path_APACHE_HTTPD="$APACHE_HTTPD" # Let the user override the test with a path.
13588   ;;
13589   *)
13590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591 as_dummy="${PATH}:/usr/sbin"
13592 for as_dir in $as_dummy
13593 do
13594   IFS=$as_save_IFS
13595   test -z "$as_dir" && as_dir=.
13596     for ac_exec_ext in '' $ac_executable_extensions; do
13597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13598     ac_cv_path_APACHE_HTTPD="$as_dir/$ac_word$ac_exec_ext"
13599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13600     break 2
13601   fi
13602 done
13603   done
13604 IFS=$as_save_IFS
13605
13606   ;;
13607 esac
13608 fi
13609 APACHE_HTTPD=$ac_cv_path_APACHE_HTTPD
13610 if test -n "$APACHE_HTTPD"; then
13611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APACHE_HTTPD" >&5
13612 $as_echo "$APACHE_HTTPD" >&6; }
13613 else
13614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13615 $as_echo "no" >&6; }
13616 fi
13617
13618
13619   test -n "$APACHE_HTTPD" && break
13620 done
13621 test -n "$APACHE_HTTPD" || APACHE_HTTPD="no"
13622
13623 fi
13624
13625 if test "$APACHE_HTTPD" != "no"; then
13626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking Apache version" >&5
13627 $as_echo_n "checking Apache version... " >&6; }
13628     apache_version=`$APACHE_HTTPD -v 2>/dev/null | sed -ne 's/Server version: Apache\///p'`
13629     case $apache_version in
13630     2.2.*)
13631         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apache_version (ok)" >&5
13632 $as_echo "$apache_version (ok)" >&6; }
13633         apache_version=2.2
13634         ;;
13635     2.4.*)
13636         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apache_version (ok)" >&5
13637 $as_echo "$apache_version (ok)" >&6; }
13638         apache_version=2.4
13639         ;;
13640     *)
13641         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apache_version (ignoring)" >&5
13642 $as_echo "$apache_version (ignoring)" >&6; }
13643         APACHE_HTTPD="no"
13644         ;;
13645     esac
13646 fi
13647
13648
13649 cat >>confdefs.h <<_ACEOF
13650 #define APACHE_HTTPD "$APACHE_HTTPD"
13651 _ACEOF
13652
13653
13654 if test "$APACHE_HTTPD" != "no"; then
13655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache module directory" >&5
13656 $as_echo_n "checking for Apache module directory... " >&6; }
13657
13658 # Check whether --with-apache-module-dir was given.
13659 if test "${with_apache_module_dir+set}" = set; then :
13660   withval=$with_apache_module_dir; apache_module_dirs="$withval"
13661 else
13662   apache_prefix=`dirname \`dirname $APACHE_HTTPD\``
13663                 mpm=`$APACHE_HTTPD -V -C "ServerName localhost" | sed -ne 's/^Server MPM: */-/p' | tr 'A-Z' 'a-z'`
13664                 # This only works with bash, but should fail harmlessly in sh
13665                 apache_module_dirs=`echo $apache_prefix/lib{64,}/{apache,apache2,http,http2,httpd}{$mpm,}{/modules,}`
13666 fi
13667
13668     for dir in $apache_module_dirs; do
13669         if test -f $dir/mod_auth_digest.so; then
13670             APACHE_MODULE_DIR="$dir"
13671         fi
13672         if test -f $dir/mod_ssl.so; then
13673             APACHE_SSL_MODULE_DIR="$dir"
13674             IF_HAVE_APACHE_SSL=""
13675         fi
13676         if test -f $dir/mod_php5.so; then
13677             APACHE_PHP_MODULE_DIR="$dir"
13678             APACHE_PHP_MODULE=mod_php5.so
13679         fi
13680         if test -f $dir/libphp5.so; then
13681             APACHE_PHP_MODULE_DIR="$dir"
13682             APACHE_PHP_MODULE=libphp5.so
13683         fi
13684     done
13685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APACHE_MODULE_DIR" >&5
13686 $as_echo "$APACHE_MODULE_DIR" >&6; }
13687
13688
13689
13690
13691 fi
13692
13693 if test "$APACHE_HTTPD" != "no" -a -n "$APACHE_MODULE_DIR" -a -n "$APACHE_SSL_MODULE_DIR"; then
13694
13695 $as_echo "#define HAVE_APACHE 1" >>confdefs.h
13696
13697     if test $apache_version = 2.2; then
13698
13699 $as_echo "#define HAVE_APACHE_2_2 1" >>confdefs.h
13700
13701     else
13702
13703 $as_echo "#define HAVE_APACHE_2_4 1" >>confdefs.h
13704
13705     fi
13706     have_apache=1
13707 else
13708     have_apache=0
13709 fi
13710  if test "$have_apache" = 1; then
13711   HAVE_APACHE_TRUE=
13712   HAVE_APACHE_FALSE='#'
13713 else
13714   HAVE_APACHE_TRUE='#'
13715   HAVE_APACHE_FALSE=
13716 fi
13717
13718  if test "$apache_version" = 2.2; then
13719   HAVE_APACHE_2_2_TRUE=
13720   HAVE_APACHE_2_2_FALSE='#'
13721 else
13722   HAVE_APACHE_2_2_TRUE='#'
13723   HAVE_APACHE_2_2_FALSE=
13724 fi
13725
13726  if test "$apache_version" = 2.4; then
13727   HAVE_APACHE_2_4_TRUE=
13728   HAVE_APACHE_2_4_FALSE='#'
13729 else
13730   HAVE_APACHE_2_4_TRUE='#'
13731   HAVE_APACHE_2_4_FALSE=
13732 fi
13733
13734
13735 if test "$have_apache" = 1; then
13736     for ac_prog in php php5
13737 do
13738   # Extract the first word of "$ac_prog", so it can be a program name with args.
13739 set dummy $ac_prog; ac_word=$2
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13741 $as_echo_n "checking for $ac_word... " >&6; }
13742 if ${ac_cv_prog_PHP+:} false; then :
13743   $as_echo_n "(cached) " >&6
13744 else
13745   if test -n "$PHP"; then
13746   ac_cv_prog_PHP="$PHP" # Let the user override the test.
13747 else
13748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13749 for as_dir in $PATH
13750 do
13751   IFS=$as_save_IFS
13752   test -z "$as_dir" && as_dir=.
13753     for ac_exec_ext in '' $ac_executable_extensions; do
13754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13755     ac_cv_prog_PHP="$ac_prog"
13756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13757     break 2
13758   fi
13759 done
13760   done
13761 IFS=$as_save_IFS
13762
13763 fi
13764 fi
13765 PHP=$ac_cv_prog_PHP
13766 if test -n "$PHP"; then
13767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
13768 $as_echo "$PHP" >&6; }
13769 else
13770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13771 $as_echo "no" >&6; }
13772 fi
13773
13774
13775   test -n "$PHP" && break
13776 done
13777
13778
13779     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache PHP module" >&5
13780 $as_echo_n "checking for Apache PHP module... " >&6; }
13781     if test -f $APACHE_PHP_MODULE_DIR/$APACHE_PHP_MODULE; then
13782         have_php=yes
13783         IF_HAVE_PHP=""
13784     else
13785         have_php=no
13786         IF_HAVE_PHP="\#"
13787     fi
13788     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_php" >&5
13789 $as_echo "$have_php" >&6; }
13790
13791
13792     if test "$have_php" = yes; then
13793         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for php-xmlrpc" >&5
13794 $as_echo_n "checking for php-xmlrpc... " >&6; }
13795         if $PHP --rf xmlrpc_server_create | grep -q "does not exist"; then
13796             have_php_xmlrpc=no
13797         else
13798             have_php_xmlrpc=yes
13799
13800 $as_echo "#define HAVE_PHP_XMLRPC 1" >>confdefs.h
13801
13802         fi
13803         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_php_xmlrpc" >&5
13804 $as_echo "$have_php_xmlrpc" >&6; }
13805     fi
13806 fi
13807
13808 # Extract the first word of "curl", so it can be a program name with args.
13809 set dummy curl; ac_word=$2
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13811 $as_echo_n "checking for $ac_word... " >&6; }
13812 if ${ac_cv_path_CURL+:} false; then :
13813   $as_echo_n "(cached) " >&6
13814 else
13815   case $CURL in
13816   [\\/]* | ?:[\\/]*)
13817   ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
13818   ;;
13819   *)
13820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13821 for as_dir in $PATH
13822 do
13823   IFS=$as_save_IFS
13824   test -z "$as_dir" && as_dir=.
13825     for ac_exec_ext in '' $ac_executable_extensions; do
13826   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13827     ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
13828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13829     break 2
13830   fi
13831 done
13832   done
13833 IFS=$as_save_IFS
13834
13835   test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="no"
13836   ;;
13837 esac
13838 fi
13839 CURL=$ac_cv_path_CURL
13840 if test -n "$CURL"; then
13841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
13842 $as_echo "$CURL" >&6; }
13843 else
13844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13845 $as_echo "no" >&6; }
13846 fi
13847
13848
13849 if test "$CURL" != no; then
13850
13851 $as_echo "#define HAVE_CURL 1" >>confdefs.h
13852
13853 fi
13854
13855
13856 # Check whether --with-ntlm-auth was given.
13857 if test "${with_ntlm_auth+set}" = set; then :
13858   withval=$with_ntlm_auth; ntlm_auth="$withval"
13859 else
13860   if test $os_win32 = yes; then ntlm_auth="no"; else ntlm_auth="/usr/bin/ntlm_auth"; fi
13861 fi
13862
13863 if test "$ntlm_auth" != "no"; then
13864
13865 $as_echo "#define USE_NTLM_AUTH 1" >>confdefs.h
13866
13867     if test "$ntlm_auth" = "yes"; then
13868                 ntlm_auth="/usr/bin/ntlm_auth"
13869     fi
13870 fi
13871
13872
13873 cat >>confdefs.h <<_ACEOF
13874 #define NTLM_AUTH "$ntlm_auth"
13875 _ACEOF
13876
13877
13878
13879 # Check whether --enable-more-warnings was given.
13880 if test "${enable_more_warnings+set}" = set; then :
13881   enableval=$enable_more_warnings; set_more_warnings=no
13882 fi
13883
13884
13885 if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
13886         CFLAGS="$CFLAGS \
13887                 -Wall -Wstrict-prototypes -Werror=missing-prototypes \
13888                 -Werror=implicit-function-declaration \
13889                 -Werror=pointer-arith -Werror=init-self -Werror=format=2 \
13890                 -Wno-format-zero-length \
13891                 -Werror=missing-include-dirs -Werror=aggregate-return \
13892                 -Werror=declaration-after-statement"
13893 fi
13894
13895
13896 ac_config_headers="$ac_config_headers config.h"
13897
13898 ac_config_files="$ac_config_files libsoup-2.4.pc libsoup-gnome-2.4.pc Makefile libsoup-zip libsoup/Makefile po/Makefile.in po/Makefile tests/Makefile examples/Makefile docs/Makefile docs/reference/Makefile libsoup/soup-version.h"
13899
13900 cat >confcache <<\_ACEOF
13901 # This file is a shell script that caches the results of configure
13902 # tests run on this system so they can be shared between configure
13903 # scripts and configure runs, see configure's option --config-cache.
13904 # It is not useful on other systems.  If it contains results you don't
13905 # want to keep, you may remove or edit it.
13906 #
13907 # config.status only pays attention to the cache file if you give it
13908 # the --recheck option to rerun configure.
13909 #
13910 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13911 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13912 # following values.
13913
13914 _ACEOF
13915
13916 # The following way of writing the cache mishandles newlines in values,
13917 # but we know of no workaround that is simple, portable, and efficient.
13918 # So, we kill variables containing newlines.
13919 # Ultrix sh set writes to stderr and can't be redirected directly,
13920 # and sets the high bit in the cache file unless we assign to the vars.
13921 (
13922   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13923     eval ac_val=\$$ac_var
13924     case $ac_val in #(
13925     *${as_nl}*)
13926       case $ac_var in #(
13927       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13928 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13929       esac
13930       case $ac_var in #(
13931       _ | IFS | as_nl) ;; #(
13932       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13933       *) { eval $ac_var=; unset $ac_var;} ;;
13934       esac ;;
13935     esac
13936   done
13937
13938   (set) 2>&1 |
13939     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13940     *${as_nl}ac_space=\ *)
13941       # `set' does not quote correctly, so add quotes: double-quote
13942       # substitution turns \\\\ into \\, and sed turns \\ into \.
13943       sed -n \
13944         "s/'/'\\\\''/g;
13945           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13946       ;; #(
13947     *)
13948       # `set' quotes correctly as required by POSIX, so do not add quotes.
13949       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13950       ;;
13951     esac |
13952     sort
13953 ) |
13954   sed '
13955      /^ac_cv_env_/b end
13956      t clear
13957      :clear
13958      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13959      t end
13960      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13961      :end' >>confcache
13962 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13963   if test -w "$cache_file"; then
13964     if test "x$cache_file" != "x/dev/null"; then
13965       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13966 $as_echo "$as_me: updating cache $cache_file" >&6;}
13967       if test ! -f "$cache_file" || test -h "$cache_file"; then
13968         cat confcache >"$cache_file"
13969       else
13970         case $cache_file in #(
13971         */* | ?:*)
13972           mv -f confcache "$cache_file"$$ &&
13973           mv -f "$cache_file"$$ "$cache_file" ;; #(
13974         *)
13975           mv -f confcache "$cache_file" ;;
13976         esac
13977       fi
13978     fi
13979   else
13980     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13981 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13982   fi
13983 fi
13984 rm -f confcache
13985
13986 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13987 # Let make expand exec_prefix.
13988 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13989
13990 DEFS=-DHAVE_CONFIG_H
13991
13992 ac_libobjs=
13993 ac_ltlibobjs=
13994 U=
13995 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13996   # 1. Remove the extension, and $U if already installed.
13997   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13998   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13999   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14000   #    will be set to the directory where LIBOBJS objects are built.
14001   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14002   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14003 done
14004 LIBOBJS=$ac_libobjs
14005
14006 LTLIBOBJS=$ac_ltlibobjs
14007
14008
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14010 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14011    if test -n "$am_sleep_pid"; then
14012      # Hide warnings about reused PIDs.
14013      wait $am_sleep_pid 2>/dev/null
14014    fi
14015    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14016 $as_echo "done" >&6; }
14017  if test -n "$EXEEXT"; then
14018   am__EXEEXT_TRUE=
14019   am__EXEEXT_FALSE='#'
14020 else
14021   am__EXEEXT_TRUE='#'
14022   am__EXEEXT_FALSE=
14023 fi
14024
14025 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14026   as_fn_error $? "conditional \"AMDEP\" was never defined.
14027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14028 fi
14029 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14030   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14032 fi
14033 if test -z "${ENABLE_INSTALLED_TESTS_TRUE}" && test -z "${ENABLE_INSTALLED_TESTS_FALSE}"; then
14034   as_fn_error $? "conditional \"ENABLE_INSTALLED_TESTS\" was never defined.
14035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14036 fi
14037 if test -z "${ENABLE_ALWAYS_BUILD_TESTS_TRUE}" && test -z "${ENABLE_ALWAYS_BUILD_TESTS_FALSE}"; then
14038   as_fn_error $? "conditional \"ENABLE_ALWAYS_BUILD_TESTS\" was never defined.
14039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14040 fi
14041 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
14042   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
14043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14044 fi
14045
14046   ac_config_commands="$ac_config_commands po/stamp-it"
14047
14048
14049 if test -z "${BUILD_LIBSOUP_GNOME_TRUE}" && test -z "${BUILD_LIBSOUP_GNOME_FALSE}"; then
14050   as_fn_error $? "conditional \"BUILD_LIBSOUP_GNOME\" was never defined.
14051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14052 fi
14053 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
14054   as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
14055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14056 fi
14057 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
14058   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
14059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14060 fi
14061 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
14062   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
14063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14064 fi
14065 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
14066   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
14067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14068 fi
14069 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
14070   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
14071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14072 fi
14073 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
14074   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
14075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14076 fi
14077 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
14078   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
14079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14080 fi
14081 if test -z "${HAVE_APACHE_TRUE}" && test -z "${HAVE_APACHE_FALSE}"; then
14082   as_fn_error $? "conditional \"HAVE_APACHE\" was never defined.
14083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14084 fi
14085 if test -z "${HAVE_APACHE_2_2_TRUE}" && test -z "${HAVE_APACHE_2_2_FALSE}"; then
14086   as_fn_error $? "conditional \"HAVE_APACHE_2_2\" was never defined.
14087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14088 fi
14089 if test -z "${HAVE_APACHE_2_4_TRUE}" && test -z "${HAVE_APACHE_2_4_FALSE}"; then
14090   as_fn_error $? "conditional \"HAVE_APACHE_2_4\" was never defined.
14091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14092 fi
14093
14094 : "${CONFIG_STATUS=./config.status}"
14095 ac_write_fail=0
14096 ac_clean_files_save=$ac_clean_files
14097 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14099 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14100 as_write_fail=0
14101 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14102 #! $SHELL
14103 # Generated by $as_me.
14104 # Run this file to recreate the current configuration.
14105 # Compiler output produced by configure, useful for debugging
14106 # configure, is in config.log if it exists.
14107
14108 debug=false
14109 ac_cs_recheck=false
14110 ac_cs_silent=false
14111
14112 SHELL=\${CONFIG_SHELL-$SHELL}
14113 export SHELL
14114 _ASEOF
14115 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14116 ## -------------------- ##
14117 ## M4sh Initialization. ##
14118 ## -------------------- ##
14119
14120 # Be more Bourne compatible
14121 DUALCASE=1; export DUALCASE # for MKS sh
14122 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14123   emulate sh
14124   NULLCMD=:
14125   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14126   # is contrary to our usage.  Disable this feature.
14127   alias -g '${1+"$@"}'='"$@"'
14128   setopt NO_GLOB_SUBST
14129 else
14130   case `(set -o) 2>/dev/null` in #(
14131   *posix*) :
14132     set -o posix ;; #(
14133   *) :
14134      ;;
14135 esac
14136 fi
14137
14138
14139 as_nl='
14140 '
14141 export as_nl
14142 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14143 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14144 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14145 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14146 # Prefer a ksh shell builtin over an external printf program on Solaris,
14147 # but without wasting forks for bash or zsh.
14148 if test -z "$BASH_VERSION$ZSH_VERSION" \
14149     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14150   as_echo='print -r --'
14151   as_echo_n='print -rn --'
14152 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14153   as_echo='printf %s\n'
14154   as_echo_n='printf %s'
14155 else
14156   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14157     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14158     as_echo_n='/usr/ucb/echo -n'
14159   else
14160     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14161     as_echo_n_body='eval
14162       arg=$1;
14163       case $arg in #(
14164       *"$as_nl"*)
14165         expr "X$arg" : "X\\(.*\\)$as_nl";
14166         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14167       esac;
14168       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14169     '
14170     export as_echo_n_body
14171     as_echo_n='sh -c $as_echo_n_body as_echo'
14172   fi
14173   export as_echo_body
14174   as_echo='sh -c $as_echo_body as_echo'
14175 fi
14176
14177 # The user is always right.
14178 if test "${PATH_SEPARATOR+set}" != set; then
14179   PATH_SEPARATOR=:
14180   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14181     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14182       PATH_SEPARATOR=';'
14183   }
14184 fi
14185
14186
14187 # IFS
14188 # We need space, tab and new line, in precisely that order.  Quoting is
14189 # there to prevent editors from complaining about space-tab.
14190 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14191 # splitting by setting IFS to empty value.)
14192 IFS=" ""        $as_nl"
14193
14194 # Find who we are.  Look in the path if we contain no directory separator.
14195 as_myself=
14196 case $0 in #((
14197   *[\\/]* ) as_myself=$0 ;;
14198   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14199 for as_dir in $PATH
14200 do
14201   IFS=$as_save_IFS
14202   test -z "$as_dir" && as_dir=.
14203     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14204   done
14205 IFS=$as_save_IFS
14206
14207      ;;
14208 esac
14209 # We did not find ourselves, most probably we were run as `sh COMMAND'
14210 # in which case we are not to be found in the path.
14211 if test "x$as_myself" = x; then
14212   as_myself=$0
14213 fi
14214 if test ! -f "$as_myself"; then
14215   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14216   exit 1
14217 fi
14218
14219 # Unset variables that we do not need and which cause bugs (e.g. in
14220 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14221 # suppresses any "Segmentation fault" message there.  '((' could
14222 # trigger a bug in pdksh 5.2.14.
14223 for as_var in BASH_ENV ENV MAIL MAILPATH
14224 do eval test x\${$as_var+set} = xset \
14225   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14226 done
14227 PS1='$ '
14228 PS2='> '
14229 PS4='+ '
14230
14231 # NLS nuisances.
14232 LC_ALL=C
14233 export LC_ALL
14234 LANGUAGE=C
14235 export LANGUAGE
14236
14237 # CDPATH.
14238 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14239
14240
14241 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14242 # ----------------------------------------
14243 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14244 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14245 # script with STATUS, using 1 if that was 0.
14246 as_fn_error ()
14247 {
14248   as_status=$1; test $as_status -eq 0 && as_status=1
14249   if test "$4"; then
14250     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14251     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14252   fi
14253   $as_echo "$as_me: error: $2" >&2
14254   as_fn_exit $as_status
14255 } # as_fn_error
14256
14257
14258 # as_fn_set_status STATUS
14259 # -----------------------
14260 # Set $? to STATUS, without forking.
14261 as_fn_set_status ()
14262 {
14263   return $1
14264 } # as_fn_set_status
14265
14266 # as_fn_exit STATUS
14267 # -----------------
14268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14269 as_fn_exit ()
14270 {
14271   set +e
14272   as_fn_set_status $1
14273   exit $1
14274 } # as_fn_exit
14275
14276 # as_fn_unset VAR
14277 # ---------------
14278 # Portably unset VAR.
14279 as_fn_unset ()
14280 {
14281   { eval $1=; unset $1;}
14282 }
14283 as_unset=as_fn_unset
14284 # as_fn_append VAR VALUE
14285 # ----------------------
14286 # Append the text in VALUE to the end of the definition contained in VAR. Take
14287 # advantage of any shell optimizations that allow amortized linear growth over
14288 # repeated appends, instead of the typical quadratic growth present in naive
14289 # implementations.
14290 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14291   eval 'as_fn_append ()
14292   {
14293     eval $1+=\$2
14294   }'
14295 else
14296   as_fn_append ()
14297   {
14298     eval $1=\$$1\$2
14299   }
14300 fi # as_fn_append
14301
14302 # as_fn_arith ARG...
14303 # ------------------
14304 # Perform arithmetic evaluation on the ARGs, and store the result in the
14305 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14306 # must be portable across $(()) and expr.
14307 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14308   eval 'as_fn_arith ()
14309   {
14310     as_val=$(( $* ))
14311   }'
14312 else
14313   as_fn_arith ()
14314   {
14315     as_val=`expr "$@" || test $? -eq 1`
14316   }
14317 fi # as_fn_arith
14318
14319
14320 if expr a : '\(a\)' >/dev/null 2>&1 &&
14321    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14322   as_expr=expr
14323 else
14324   as_expr=false
14325 fi
14326
14327 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14328   as_basename=basename
14329 else
14330   as_basename=false
14331 fi
14332
14333 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14334   as_dirname=dirname
14335 else
14336   as_dirname=false
14337 fi
14338
14339 as_me=`$as_basename -- "$0" ||
14340 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14341          X"$0" : 'X\(//\)$' \| \
14342          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14343 $as_echo X/"$0" |
14344     sed '/^.*\/\([^/][^/]*\)\/*$/{
14345             s//\1/
14346             q
14347           }
14348           /^X\/\(\/\/\)$/{
14349             s//\1/
14350             q
14351           }
14352           /^X\/\(\/\).*/{
14353             s//\1/
14354             q
14355           }
14356           s/.*/./; q'`
14357
14358 # Avoid depending upon Character Ranges.
14359 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14360 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14361 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14362 as_cr_digits='0123456789'
14363 as_cr_alnum=$as_cr_Letters$as_cr_digits
14364
14365 ECHO_C= ECHO_N= ECHO_T=
14366 case `echo -n x` in #(((((
14367 -n*)
14368   case `echo 'xy\c'` in
14369   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14370   xy)  ECHO_C='\c';;
14371   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14372        ECHO_T=' ';;
14373   esac;;
14374 *)
14375   ECHO_N='-n';;
14376 esac
14377
14378 rm -f conf$$ conf$$.exe conf$$.file
14379 if test -d conf$$.dir; then
14380   rm -f conf$$.dir/conf$$.file
14381 else
14382   rm -f conf$$.dir
14383   mkdir conf$$.dir 2>/dev/null
14384 fi
14385 if (echo >conf$$.file) 2>/dev/null; then
14386   if ln -s conf$$.file conf$$ 2>/dev/null; then
14387     as_ln_s='ln -s'
14388     # ... but there are two gotchas:
14389     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14390     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14391     # In both cases, we have to default to `cp -pR'.
14392     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14393       as_ln_s='cp -pR'
14394   elif ln conf$$.file conf$$ 2>/dev/null; then
14395     as_ln_s=ln
14396   else
14397     as_ln_s='cp -pR'
14398   fi
14399 else
14400   as_ln_s='cp -pR'
14401 fi
14402 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14403 rmdir conf$$.dir 2>/dev/null
14404
14405
14406 # as_fn_mkdir_p
14407 # -------------
14408 # Create "$as_dir" as a directory, including parents if necessary.
14409 as_fn_mkdir_p ()
14410 {
14411
14412   case $as_dir in #(
14413   -*) as_dir=./$as_dir;;
14414   esac
14415   test -d "$as_dir" || eval $as_mkdir_p || {
14416     as_dirs=
14417     while :; do
14418       case $as_dir in #(
14419       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14420       *) as_qdir=$as_dir;;
14421       esac
14422       as_dirs="'$as_qdir' $as_dirs"
14423       as_dir=`$as_dirname -- "$as_dir" ||
14424 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14425          X"$as_dir" : 'X\(//\)[^/]' \| \
14426          X"$as_dir" : 'X\(//\)$' \| \
14427          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14428 $as_echo X"$as_dir" |
14429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14430             s//\1/
14431             q
14432           }
14433           /^X\(\/\/\)[^/].*/{
14434             s//\1/
14435             q
14436           }
14437           /^X\(\/\/\)$/{
14438             s//\1/
14439             q
14440           }
14441           /^X\(\/\).*/{
14442             s//\1/
14443             q
14444           }
14445           s/.*/./; q'`
14446       test -d "$as_dir" && break
14447     done
14448     test -z "$as_dirs" || eval "mkdir $as_dirs"
14449   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14450
14451
14452 } # as_fn_mkdir_p
14453 if mkdir -p . 2>/dev/null; then
14454   as_mkdir_p='mkdir -p "$as_dir"'
14455 else
14456   test -d ./-p && rmdir ./-p
14457   as_mkdir_p=false
14458 fi
14459
14460
14461 # as_fn_executable_p FILE
14462 # -----------------------
14463 # Test if FILE is an executable regular file.
14464 as_fn_executable_p ()
14465 {
14466   test -f "$1" && test -x "$1"
14467 } # as_fn_executable_p
14468 as_test_x='test -x'
14469 as_executable_p=as_fn_executable_p
14470
14471 # Sed expression to map a string onto a valid CPP name.
14472 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14473
14474 # Sed expression to map a string onto a valid variable name.
14475 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14476
14477
14478 exec 6>&1
14479 ## ----------------------------------- ##
14480 ## Main body of $CONFIG_STATUS script. ##
14481 ## ----------------------------------- ##
14482 _ASEOF
14483 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14484
14485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14486 # Save the log message, to keep $0 and so on meaningful, and to
14487 # report actual input values of CONFIG_FILES etc. instead of their
14488 # values after options handling.
14489 ac_log="
14490 This file was extended by libsoup $as_me 2.46.0, which was
14491 generated by GNU Autoconf 2.69.  Invocation command line was
14492
14493   CONFIG_FILES    = $CONFIG_FILES
14494   CONFIG_HEADERS  = $CONFIG_HEADERS
14495   CONFIG_LINKS    = $CONFIG_LINKS
14496   CONFIG_COMMANDS = $CONFIG_COMMANDS
14497   $ $0 $@
14498
14499 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14500 "
14501
14502 _ACEOF
14503
14504 case $ac_config_files in *"
14505 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14506 esac
14507
14508 case $ac_config_headers in *"
14509 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14510 esac
14511
14512
14513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14514 # Files that config.status was made for.
14515 config_files="$ac_config_files"
14516 config_headers="$ac_config_headers"
14517 config_commands="$ac_config_commands"
14518
14519 _ACEOF
14520
14521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14522 ac_cs_usage="\
14523 \`$as_me' instantiates files and other configuration actions
14524 from templates according to the current configuration.  Unless the files
14525 and actions are specified as TAGs, all are instantiated by default.
14526
14527 Usage: $0 [OPTION]... [TAG]...
14528
14529   -h, --help       print this help, then exit
14530   -V, --version    print version number and configuration settings, then exit
14531       --config     print configuration, then exit
14532   -q, --quiet, --silent
14533                    do not print progress messages
14534   -d, --debug      don't remove temporary files
14535       --recheck    update $as_me by reconfiguring in the same conditions
14536       --file=FILE[:TEMPLATE]
14537                    instantiate the configuration file FILE
14538       --header=FILE[:TEMPLATE]
14539                    instantiate the configuration header FILE
14540
14541 Configuration files:
14542 $config_files
14543
14544 Configuration headers:
14545 $config_headers
14546
14547 Configuration commands:
14548 $config_commands
14549
14550 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libsoup>."
14551
14552 _ACEOF
14553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14554 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14555 ac_cs_version="\\
14556 libsoup config.status 2.46.0
14557 configured by $0, generated by GNU Autoconf 2.69,
14558   with options \\"\$ac_cs_config\\"
14559
14560 Copyright (C) 2012 Free Software Foundation, Inc.
14561 This config.status script is free software; the Free Software Foundation
14562 gives unlimited permission to copy, distribute and modify it."
14563
14564 ac_pwd='$ac_pwd'
14565 srcdir='$srcdir'
14566 INSTALL='$INSTALL'
14567 MKDIR_P='$MKDIR_P'
14568 AWK='$AWK'
14569 test -n "\$AWK" || AWK=awk
14570 _ACEOF
14571
14572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14573 # The default lists apply if the user does not specify any file.
14574 ac_need_defaults=:
14575 while test $# != 0
14576 do
14577   case $1 in
14578   --*=?*)
14579     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14580     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14581     ac_shift=:
14582     ;;
14583   --*=)
14584     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14585     ac_optarg=
14586     ac_shift=:
14587     ;;
14588   *)
14589     ac_option=$1
14590     ac_optarg=$2
14591     ac_shift=shift
14592     ;;
14593   esac
14594
14595   case $ac_option in
14596   # Handling of the options.
14597   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14598     ac_cs_recheck=: ;;
14599   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14600     $as_echo "$ac_cs_version"; exit ;;
14601   --config | --confi | --conf | --con | --co | --c )
14602     $as_echo "$ac_cs_config"; exit ;;
14603   --debug | --debu | --deb | --de | --d | -d )
14604     debug=: ;;
14605   --file | --fil | --fi | --f )
14606     $ac_shift
14607     case $ac_optarg in
14608     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14609     '') as_fn_error $? "missing file argument" ;;
14610     esac
14611     as_fn_append CONFIG_FILES " '$ac_optarg'"
14612     ac_need_defaults=false;;
14613   --header | --heade | --head | --hea )
14614     $ac_shift
14615     case $ac_optarg in
14616     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14617     esac
14618     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14619     ac_need_defaults=false;;
14620   --he | --h)
14621     # Conflict between --help and --header
14622     as_fn_error $? "ambiguous option: \`$1'
14623 Try \`$0 --help' for more information.";;
14624   --help | --hel | -h )
14625     $as_echo "$ac_cs_usage"; exit ;;
14626   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14627   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14628     ac_cs_silent=: ;;
14629
14630   # This is an error.
14631   -*) as_fn_error $? "unrecognized option: \`$1'
14632 Try \`$0 --help' for more information." ;;
14633
14634   *) as_fn_append ac_config_targets " $1"
14635      ac_need_defaults=false ;;
14636
14637   esac
14638   shift
14639 done
14640
14641 ac_configure_extra_args=
14642
14643 if $ac_cs_silent; then
14644   exec 6>/dev/null
14645   ac_configure_extra_args="$ac_configure_extra_args --silent"
14646 fi
14647
14648 _ACEOF
14649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14650 if \$ac_cs_recheck; then
14651   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14652   shift
14653   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14654   CONFIG_SHELL='$SHELL'
14655   export CONFIG_SHELL
14656   exec "\$@"
14657 fi
14658
14659 _ACEOF
14660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14661 exec 5>>config.log
14662 {
14663   echo
14664   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14665 ## Running $as_me. ##
14666 _ASBOX
14667   $as_echo "$ac_log"
14668 } >&5
14669
14670 _ACEOF
14671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14672 #
14673 # INIT-COMMANDS
14674 #
14675 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14676
14677
14678 # The HP-UX ksh and POSIX shell print the target directory to stdout
14679 # if CDPATH is set.
14680 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14681
14682 sed_quote_subst='$sed_quote_subst'
14683 double_quote_subst='$double_quote_subst'
14684 delay_variable_subst='$delay_variable_subst'
14685 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14686 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14687 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14688 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14689 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14690 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14691 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14692 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14693 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14694 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14695 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14696 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14697 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14698 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14699 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14700 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14701 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14702 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14703 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14704 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14705 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14706 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14707 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14708 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14709 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14710 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14711 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14712 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14713 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14714 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14715 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14716 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14717 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14718 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14719 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14720 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14721 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14722 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14723 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14724 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14725 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14726 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14727 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14728 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14729 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14730 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14731 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14732 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14733 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14734 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14735 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14736 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14737 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14738 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14739 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14740 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14741 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14742 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"`'
14743 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14744 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14745 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14746 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14747 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14748 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14749 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14750 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14751 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14752 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14753 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14754 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14755 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14756 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14757 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14758 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14759 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14760 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14761 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14762 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14763 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14764 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14765 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14766 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14767 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14768 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14769 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14770 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14771 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14772 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14773 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14774 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14775 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14776 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14777 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14778 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14779 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14780 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14781 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14782 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14783 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14784 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14785 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14786 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14787 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14788 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14789 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14790 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14791 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14792 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14793 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14794 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14795 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14796 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14797 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14798 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14799 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14800 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14801 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14802 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14803 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14804 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14805 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14806 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14807 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14808 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14809 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14810 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14811 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14812 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14813 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14814 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14815 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14816
14817 LTCC='$LTCC'
14818 LTCFLAGS='$LTCFLAGS'
14819 compiler='$compiler_DEFAULT'
14820
14821 # A function that is used when there is no print builtin or printf.
14822 func_fallback_echo ()
14823 {
14824   eval 'cat <<_LTECHO_EOF
14825 \$1
14826 _LTECHO_EOF'
14827 }
14828
14829 # Quote evaled strings.
14830 for var in AS \
14831 DLLTOOL \
14832 OBJDUMP \
14833 SHELL \
14834 ECHO \
14835 PATH_SEPARATOR \
14836 SED \
14837 GREP \
14838 EGREP \
14839 FGREP \
14840 LD \
14841 NM \
14842 LN_S \
14843 lt_SP2NL \
14844 lt_NL2SP \
14845 reload_flag \
14846 deplibs_check_method \
14847 file_magic_cmd \
14848 file_magic_glob \
14849 want_nocaseglob \
14850 sharedlib_from_linklib_cmd \
14851 AR \
14852 AR_FLAGS \
14853 archiver_list_spec \
14854 STRIP \
14855 RANLIB \
14856 CC \
14857 CFLAGS \
14858 compiler \
14859 lt_cv_sys_global_symbol_pipe \
14860 lt_cv_sys_global_symbol_to_cdecl \
14861 lt_cv_sys_global_symbol_to_c_name_address \
14862 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14863 nm_file_list_spec \
14864 lt_prog_compiler_no_builtin_flag \
14865 lt_prog_compiler_pic \
14866 lt_prog_compiler_wl \
14867 lt_prog_compiler_static \
14868 lt_cv_prog_compiler_c_o \
14869 need_locks \
14870 MANIFEST_TOOL \
14871 DSYMUTIL \
14872 NMEDIT \
14873 LIPO \
14874 OTOOL \
14875 OTOOL64 \
14876 shrext_cmds \
14877 export_dynamic_flag_spec \
14878 whole_archive_flag_spec \
14879 compiler_needs_object \
14880 with_gnu_ld \
14881 allow_undefined_flag \
14882 no_undefined_flag \
14883 hardcode_libdir_flag_spec \
14884 hardcode_libdir_separator \
14885 exclude_expsyms \
14886 include_expsyms \
14887 file_list_spec \
14888 variables_saved_for_relink \
14889 libname_spec \
14890 library_names_spec \
14891 soname_spec \
14892 install_override_mode \
14893 finish_eval \
14894 old_striplib \
14895 striplib; do
14896     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14897     *[\\\\\\\`\\"\\\$]*)
14898       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14899       ;;
14900     *)
14901       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14902       ;;
14903     esac
14904 done
14905
14906 # Double-quote double-evaled strings.
14907 for var in reload_cmds \
14908 old_postinstall_cmds \
14909 old_postuninstall_cmds \
14910 old_archive_cmds \
14911 extract_expsyms_cmds \
14912 old_archive_from_new_cmds \
14913 old_archive_from_expsyms_cmds \
14914 archive_cmds \
14915 archive_expsym_cmds \
14916 module_cmds \
14917 module_expsym_cmds \
14918 export_symbols_cmds \
14919 prelink_cmds \
14920 postlink_cmds \
14921 postinstall_cmds \
14922 postuninstall_cmds \
14923 finish_cmds \
14924 sys_lib_search_path_spec \
14925 sys_lib_dlsearch_path_spec; do
14926     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14927     *[\\\\\\\`\\"\\\$]*)
14928       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14929       ;;
14930     *)
14931       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14932       ;;
14933     esac
14934 done
14935
14936 ac_aux_dir='$ac_aux_dir'
14937 xsi_shell='$xsi_shell'
14938 lt_shell_append='$lt_shell_append'
14939
14940 # See if we are running on zsh, and set the options which allow our
14941 # commands through without removal of \ escapes INIT.
14942 if test -n "\${ZSH_VERSION+set}" ; then
14943    setopt NO_GLOB_SUBST
14944 fi
14945
14946
14947     PACKAGE='$PACKAGE'
14948     VERSION='$VERSION'
14949     TIMESTAMP='$TIMESTAMP'
14950     RM='$RM'
14951     ofile='$ofile'
14952
14953
14954
14955
14956 _ACEOF
14957
14958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14959
14960 # Handling of arguments.
14961 for ac_config_target in $ac_config_targets
14962 do
14963   case $ac_config_target in
14964     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14965     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14966     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14967     "libsoup-2.4.pc") CONFIG_FILES="$CONFIG_FILES libsoup-2.4.pc" ;;
14968     "libsoup-gnome-2.4.pc") CONFIG_FILES="$CONFIG_FILES libsoup-gnome-2.4.pc" ;;
14969     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14970     "libsoup-zip") CONFIG_FILES="$CONFIG_FILES libsoup-zip" ;;
14971     "libsoup/Makefile") CONFIG_FILES="$CONFIG_FILES libsoup/Makefile" ;;
14972     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14973     "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
14974     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14975     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14976     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
14977     "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
14978     "libsoup/soup-version.h") CONFIG_FILES="$CONFIG_FILES libsoup/soup-version.h" ;;
14979     "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
14980
14981   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14982   esac
14983 done
14984
14985
14986 # If the user did not use the arguments to specify the items to instantiate,
14987 # then the envvar interface is used.  Set only those that are not.
14988 # We use the long form for the default assignment because of an extremely
14989 # bizarre bug on SunOS 4.1.3.
14990 if $ac_need_defaults; then
14991   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14992   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14993   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14994 fi
14995
14996 # Have a temporary directory for convenience.  Make it in the build tree
14997 # simply because there is no reason against having it here, and in addition,
14998 # creating and moving files from /tmp can sometimes cause problems.
14999 # Hook for its removal unless debugging.
15000 # Note that there is a small window in which the directory will not be cleaned:
15001 # after its creation but before its name has been assigned to `$tmp'.
15002 $debug ||
15003 {
15004   tmp= ac_tmp=
15005   trap 'exit_status=$?
15006   : "${ac_tmp:=$tmp}"
15007   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15008 ' 0
15009   trap 'as_fn_exit 1' 1 2 13 15
15010 }
15011 # Create a (secure) tmp directory for tmp files.
15012
15013 {
15014   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15015   test -d "$tmp"
15016 }  ||
15017 {
15018   tmp=./conf$$-$RANDOM
15019   (umask 077 && mkdir "$tmp")
15020 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15021 ac_tmp=$tmp
15022
15023 # Set up the scripts for CONFIG_FILES section.
15024 # No need to generate them if there are no CONFIG_FILES.
15025 # This happens for instance with `./config.status config.h'.
15026 if test -n "$CONFIG_FILES"; then
15027
15028
15029 ac_cr=`echo X | tr X '\015'`
15030 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15031 # But we know of no other shell where ac_cr would be empty at this
15032 # point, so we can use a bashism as a fallback.
15033 if test "x$ac_cr" = x; then
15034   eval ac_cr=\$\'\\r\'
15035 fi
15036 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15037 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15038   ac_cs_awk_cr='\\r'
15039 else
15040   ac_cs_awk_cr=$ac_cr
15041 fi
15042
15043 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15044 _ACEOF
15045
15046
15047 {
15048   echo "cat >conf$$subs.awk <<_ACEOF" &&
15049   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15050   echo "_ACEOF"
15051 } >conf$$subs.sh ||
15052   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15053 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15054 ac_delim='%!_!# '
15055 for ac_last_try in false false false false false :; do
15056   . ./conf$$subs.sh ||
15057     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15058
15059   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15060   if test $ac_delim_n = $ac_delim_num; then
15061     break
15062   elif $ac_last_try; then
15063     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15064   else
15065     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15066   fi
15067 done
15068 rm -f conf$$subs.sh
15069
15070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15071 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15072 _ACEOF
15073 sed -n '
15074 h
15075 s/^/S["/; s/!.*/"]=/
15076 p
15077 g
15078 s/^[^!]*!//
15079 :repl
15080 t repl
15081 s/'"$ac_delim"'$//
15082 t delim
15083 :nl
15084 h
15085 s/\(.\{148\}\)..*/\1/
15086 t more1
15087 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15088 p
15089 n
15090 b repl
15091 :more1
15092 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15093 p
15094 g
15095 s/.\{148\}//
15096 t nl
15097 :delim
15098 h
15099 s/\(.\{148\}\)..*/\1/
15100 t more2
15101 s/["\\]/\\&/g; s/^/"/; s/$/"/
15102 p
15103 b
15104 :more2
15105 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15106 p
15107 g
15108 s/.\{148\}//
15109 t delim
15110 ' <conf$$subs.awk | sed '
15111 /^[^""]/{
15112   N
15113   s/\n//
15114 }
15115 ' >>$CONFIG_STATUS || ac_write_fail=1
15116 rm -f conf$$subs.awk
15117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15118 _ACAWK
15119 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15120   for (key in S) S_is_set[key] = 1
15121   FS = "\a"
15122
15123 }
15124 {
15125   line = $ 0
15126   nfields = split(line, field, "@")
15127   substed = 0
15128   len = length(field[1])
15129   for (i = 2; i < nfields; i++) {
15130     key = field[i]
15131     keylen = length(key)
15132     if (S_is_set[key]) {
15133       value = S[key]
15134       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15135       len += length(value) + length(field[++i])
15136       substed = 1
15137     } else
15138       len += 1 + keylen
15139   }
15140
15141   print line
15142 }
15143
15144 _ACAWK
15145 _ACEOF
15146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15147 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15148   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15149 else
15150   cat
15151 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15152   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15153 _ACEOF
15154
15155 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15156 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15157 # trailing colons and then remove the whole line if VPATH becomes empty
15158 # (actually we leave an empty line to preserve line numbers).
15159 if test "x$srcdir" = x.; then
15160   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15161 h
15162 s///
15163 s/^/:/
15164 s/[      ]*$/:/
15165 s/:\$(srcdir):/:/g
15166 s/:\${srcdir}:/:/g
15167 s/:@srcdir@:/:/g
15168 s/^:*//
15169 s/:*$//
15170 x
15171 s/\(=[   ]*\).*/\1/
15172 G
15173 s/\n//
15174 s/^[^=]*=[       ]*$//
15175 }'
15176 fi
15177
15178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15179 fi # test -n "$CONFIG_FILES"
15180
15181 # Set up the scripts for CONFIG_HEADERS section.
15182 # No need to generate them if there are no CONFIG_HEADERS.
15183 # This happens for instance with `./config.status Makefile'.
15184 if test -n "$CONFIG_HEADERS"; then
15185 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15186 BEGIN {
15187 _ACEOF
15188
15189 # Transform confdefs.h into an awk script `defines.awk', embedded as
15190 # here-document in config.status, that substitutes the proper values into
15191 # config.h.in to produce config.h.
15192
15193 # Create a delimiter string that does not exist in confdefs.h, to ease
15194 # handling of long lines.
15195 ac_delim='%!_!# '
15196 for ac_last_try in false false :; do
15197   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15198   if test -z "$ac_tt"; then
15199     break
15200   elif $ac_last_try; then
15201     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15202   else
15203     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15204   fi
15205 done
15206
15207 # For the awk script, D is an array of macro values keyed by name,
15208 # likewise P contains macro parameters if any.  Preserve backslash
15209 # newline sequences.
15210
15211 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15212 sed -n '
15213 s/.\{148\}/&'"$ac_delim"'/g
15214 t rset
15215 :rset
15216 s/^[     ]*#[    ]*define[       ][      ]*/ /
15217 t def
15218 d
15219 :def
15220 s/\\$//
15221 t bsnl
15222 s/["\\]/\\&/g
15223 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15224 D["\1"]=" \3"/p
15225 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15226 d
15227 :bsnl
15228 s/["\\]/\\&/g
15229 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15230 D["\1"]=" \3\\\\\\n"\\/p
15231 t cont
15232 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15233 t cont
15234 d
15235 :cont
15236 n
15237 s/.\{148\}/&'"$ac_delim"'/g
15238 t clear
15239 :clear
15240 s/\\$//
15241 t bsnlc
15242 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15243 d
15244 :bsnlc
15245 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15246 b cont
15247 ' <confdefs.h | sed '
15248 s/'"$ac_delim"'/"\\\
15249 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15250
15251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15252   for (key in D) D_is_set[key] = 1
15253   FS = "\a"
15254 }
15255 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15256   line = \$ 0
15257   split(line, arg, " ")
15258   if (arg[1] == "#") {
15259     defundef = arg[2]
15260     mac1 = arg[3]
15261   } else {
15262     defundef = substr(arg[1], 2)
15263     mac1 = arg[2]
15264   }
15265   split(mac1, mac2, "(") #)
15266   macro = mac2[1]
15267   prefix = substr(line, 1, index(line, defundef) - 1)
15268   if (D_is_set[macro]) {
15269     # Preserve the white space surrounding the "#".
15270     print prefix "define", macro P[macro] D[macro]
15271     next
15272   } else {
15273     # Replace #undef with comments.  This is necessary, for example,
15274     # in the case of _POSIX_SOURCE, which is predefined and required
15275     # on some systems where configure will not decide to define it.
15276     if (defundef == "undef") {
15277       print "/*", prefix defundef, macro, "*/"
15278       next
15279     }
15280   }
15281 }
15282 { print }
15283 _ACAWK
15284 _ACEOF
15285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15286   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15287 fi # test -n "$CONFIG_HEADERS"
15288
15289
15290 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15291 shift
15292 for ac_tag
15293 do
15294   case $ac_tag in
15295   :[FHLC]) ac_mode=$ac_tag; continue;;
15296   esac
15297   case $ac_mode$ac_tag in
15298   :[FHL]*:*);;
15299   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15300   :[FH]-) ac_tag=-:-;;
15301   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15302   esac
15303   ac_save_IFS=$IFS
15304   IFS=:
15305   set x $ac_tag
15306   IFS=$ac_save_IFS
15307   shift
15308   ac_file=$1
15309   shift
15310
15311   case $ac_mode in
15312   :L) ac_source=$1;;
15313   :[FH])
15314     ac_file_inputs=
15315     for ac_f
15316     do
15317       case $ac_f in
15318       -) ac_f="$ac_tmp/stdin";;
15319       *) # Look for the file first in the build tree, then in the source tree
15320          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15321          # because $ac_f cannot contain `:'.
15322          test -f "$ac_f" ||
15323            case $ac_f in
15324            [\\/$]*) false;;
15325            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15326            esac ||
15327            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15328       esac
15329       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15330       as_fn_append ac_file_inputs " '$ac_f'"
15331     done
15332
15333     # Let's still pretend it is `configure' which instantiates (i.e., don't
15334     # use $as_me), people would be surprised to read:
15335     #    /* config.h.  Generated by config.status.  */
15336     configure_input='Generated from '`
15337           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15338         `' by configure.'
15339     if test x"$ac_file" != x-; then
15340       configure_input="$ac_file.  $configure_input"
15341       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15342 $as_echo "$as_me: creating $ac_file" >&6;}
15343     fi
15344     # Neutralize special characters interpreted by sed in replacement strings.
15345     case $configure_input in #(
15346     *\&* | *\|* | *\\* )
15347        ac_sed_conf_input=`$as_echo "$configure_input" |
15348        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15349     *) ac_sed_conf_input=$configure_input;;
15350     esac
15351
15352     case $ac_tag in
15353     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15354       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15355     esac
15356     ;;
15357   esac
15358
15359   ac_dir=`$as_dirname -- "$ac_file" ||
15360 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15361          X"$ac_file" : 'X\(//\)[^/]' \| \
15362          X"$ac_file" : 'X\(//\)$' \| \
15363          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15364 $as_echo X"$ac_file" |
15365     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15366             s//\1/
15367             q
15368           }
15369           /^X\(\/\/\)[^/].*/{
15370             s//\1/
15371             q
15372           }
15373           /^X\(\/\/\)$/{
15374             s//\1/
15375             q
15376           }
15377           /^X\(\/\).*/{
15378             s//\1/
15379             q
15380           }
15381           s/.*/./; q'`
15382   as_dir="$ac_dir"; as_fn_mkdir_p
15383   ac_builddir=.
15384
15385 case "$ac_dir" in
15386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15387 *)
15388   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15389   # A ".." for each directory in $ac_dir_suffix.
15390   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15391   case $ac_top_builddir_sub in
15392   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15393   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15394   esac ;;
15395 esac
15396 ac_abs_top_builddir=$ac_pwd
15397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15398 # for backward compatibility:
15399 ac_top_builddir=$ac_top_build_prefix
15400
15401 case $srcdir in
15402   .)  # We are building in place.
15403     ac_srcdir=.
15404     ac_top_srcdir=$ac_top_builddir_sub
15405     ac_abs_top_srcdir=$ac_pwd ;;
15406   [\\/]* | ?:[\\/]* )  # Absolute name.
15407     ac_srcdir=$srcdir$ac_dir_suffix;
15408     ac_top_srcdir=$srcdir
15409     ac_abs_top_srcdir=$srcdir ;;
15410   *) # Relative name.
15411     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15412     ac_top_srcdir=$ac_top_build_prefix$srcdir
15413     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15414 esac
15415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15416
15417
15418   case $ac_mode in
15419   :F)
15420   #
15421   # CONFIG_FILE
15422   #
15423
15424   case $INSTALL in
15425   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15426   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15427   esac
15428   ac_MKDIR_P=$MKDIR_P
15429   case $MKDIR_P in
15430   [\\/$]* | ?:[\\/]* ) ;;
15431   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15432   esac
15433 _ACEOF
15434
15435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15436 # If the template does not know about datarootdir, expand it.
15437 # FIXME: This hack should be removed a few years after 2.60.
15438 ac_datarootdir_hack=; ac_datarootdir_seen=
15439 ac_sed_dataroot='
15440 /datarootdir/ {
15441   p
15442   q
15443 }
15444 /@datadir@/p
15445 /@docdir@/p
15446 /@infodir@/p
15447 /@localedir@/p
15448 /@mandir@/p'
15449 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15450 *datarootdir*) ac_datarootdir_seen=yes;;
15451 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15452   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15453 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15454 _ACEOF
15455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15456   ac_datarootdir_hack='
15457   s&@datadir@&$datadir&g
15458   s&@docdir@&$docdir&g
15459   s&@infodir@&$infodir&g
15460   s&@localedir@&$localedir&g
15461   s&@mandir@&$mandir&g
15462   s&\\\${datarootdir}&$datarootdir&g' ;;
15463 esac
15464 _ACEOF
15465
15466 # Neutralize VPATH when `$srcdir' = `.'.
15467 # Shell code in configure.ac might set extrasub.
15468 # FIXME: do we really want to maintain this feature?
15469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15470 ac_sed_extra="$ac_vpsub
15471 $extrasub
15472 _ACEOF
15473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15474 :t
15475 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15476 s|@configure_input@|$ac_sed_conf_input|;t t
15477 s&@top_builddir@&$ac_top_builddir_sub&;t t
15478 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15479 s&@srcdir@&$ac_srcdir&;t t
15480 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15481 s&@top_srcdir@&$ac_top_srcdir&;t t
15482 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15483 s&@builddir@&$ac_builddir&;t t
15484 s&@abs_builddir@&$ac_abs_builddir&;t t
15485 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15486 s&@INSTALL@&$ac_INSTALL&;t t
15487 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15488 $ac_datarootdir_hack
15489 "
15490 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15491   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15492
15493 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15494   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15495   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15496       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15497   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15498 which seems to be undefined.  Please make sure it is defined" >&5
15499 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15500 which seems to be undefined.  Please make sure it is defined" >&2;}
15501
15502   rm -f "$ac_tmp/stdin"
15503   case $ac_file in
15504   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15505   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15506   esac \
15507   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15508  ;;
15509   :H)
15510   #
15511   # CONFIG_HEADER
15512   #
15513   if test x"$ac_file" != x-; then
15514     {
15515       $as_echo "/* $configure_input  */" \
15516       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15517     } >"$ac_tmp/config.h" \
15518       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15519     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15520       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15521 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15522     else
15523       rm -f "$ac_file"
15524       mv "$ac_tmp/config.h" "$ac_file" \
15525         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15526     fi
15527   else
15528     $as_echo "/* $configure_input  */" \
15529       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15530       || as_fn_error $? "could not create -" "$LINENO" 5
15531   fi
15532 # Compute "$ac_file"'s index in $config_headers.
15533 _am_arg="$ac_file"
15534 _am_stamp_count=1
15535 for _am_header in $config_headers :; do
15536   case $_am_header in
15537     $_am_arg | $_am_arg:* )
15538       break ;;
15539     * )
15540       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15541   esac
15542 done
15543 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15544 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15545          X"$_am_arg" : 'X\(//\)[^/]' \| \
15546          X"$_am_arg" : 'X\(//\)$' \| \
15547          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15548 $as_echo X"$_am_arg" |
15549     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15550             s//\1/
15551             q
15552           }
15553           /^X\(\/\/\)[^/].*/{
15554             s//\1/
15555             q
15556           }
15557           /^X\(\/\/\)$/{
15558             s//\1/
15559             q
15560           }
15561           /^X\(\/\).*/{
15562             s//\1/
15563             q
15564           }
15565           s/.*/./; q'`/stamp-h$_am_stamp_count
15566  ;;
15567
15568   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15569 $as_echo "$as_me: executing $ac_file commands" >&6;}
15570  ;;
15571   esac
15572
15573
15574   case $ac_file$ac_mode in
15575     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15576   # Older Autoconf quotes --file arguments for eval, but not when files
15577   # are listed without --file.  Let's play safe and only enable the eval
15578   # if we detect the quoting.
15579   case $CONFIG_FILES in
15580   *\'*) eval set x "$CONFIG_FILES" ;;
15581   *)   set x $CONFIG_FILES ;;
15582   esac
15583   shift
15584   for mf
15585   do
15586     # Strip MF so we end up with the name of the file.
15587     mf=`echo "$mf" | sed -e 's/:.*$//'`
15588     # Check whether this is an Automake generated Makefile or not.
15589     # We used to match only the files named 'Makefile.in', but
15590     # some people rename them; so instead we look at the file content.
15591     # Grep'ing the first line is not enough: some people post-process
15592     # each Makefile.in and add a new line on top of each file to say so.
15593     # Grep'ing the whole file is not good either: AIX grep has a line
15594     # limit of 2048, but all sed's we know have understand at least 4000.
15595     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15596       dirpart=`$as_dirname -- "$mf" ||
15597 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15598          X"$mf" : 'X\(//\)[^/]' \| \
15599          X"$mf" : 'X\(//\)$' \| \
15600          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15601 $as_echo X"$mf" |
15602     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15603             s//\1/
15604             q
15605           }
15606           /^X\(\/\/\)[^/].*/{
15607             s//\1/
15608             q
15609           }
15610           /^X\(\/\/\)$/{
15611             s//\1/
15612             q
15613           }
15614           /^X\(\/\).*/{
15615             s//\1/
15616             q
15617           }
15618           s/.*/./; q'`
15619     else
15620       continue
15621     fi
15622     # Extract the definition of DEPDIR, am__include, and am__quote
15623     # from the Makefile without running 'make'.
15624     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15625     test -z "$DEPDIR" && continue
15626     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15627     test -z "$am__include" && continue
15628     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15629     # Find all dependency output files, they are included files with
15630     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15631     # simplest approach to changing $(DEPDIR) to its actual value in the
15632     # expansion.
15633     for file in `sed -n "
15634       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15635          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15636       # Make sure the directory exists.
15637       test -f "$dirpart/$file" && continue
15638       fdir=`$as_dirname -- "$file" ||
15639 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15640          X"$file" : 'X\(//\)[^/]' \| \
15641          X"$file" : 'X\(//\)$' \| \
15642          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15643 $as_echo X"$file" |
15644     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15645             s//\1/
15646             q
15647           }
15648           /^X\(\/\/\)[^/].*/{
15649             s//\1/
15650             q
15651           }
15652           /^X\(\/\/\)$/{
15653             s//\1/
15654             q
15655           }
15656           /^X\(\/\).*/{
15657             s//\1/
15658             q
15659           }
15660           s/.*/./; q'`
15661       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15662       # echo "creating $dirpart/$file"
15663       echo '# dummy' > "$dirpart/$file"
15664     done
15665   done
15666 }
15667  ;;
15668     "libtool":C)
15669
15670     # See if we are running on zsh, and set the options which allow our
15671     # commands through without removal of \ escapes.
15672     if test -n "${ZSH_VERSION+set}" ; then
15673       setopt NO_GLOB_SUBST
15674     fi
15675
15676     cfgfile="${ofile}T"
15677     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15678     $RM "$cfgfile"
15679
15680     cat <<_LT_EOF >> "$cfgfile"
15681 #! $SHELL
15682
15683 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15684 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15685 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15686 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15687 #
15688 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15689 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15690 #                 Foundation, Inc.
15691 #   Written by Gordon Matzigkeit, 1996
15692 #
15693 #   This file is part of GNU Libtool.
15694 #
15695 # GNU Libtool is free software; you can redistribute it and/or
15696 # modify it under the terms of the GNU General Public License as
15697 # published by the Free Software Foundation; either version 2 of
15698 # the License, or (at your option) any later version.
15699 #
15700 # As a special exception to the GNU General Public License,
15701 # if you distribute this file as part of a program or library that
15702 # is built using GNU Libtool, you may include this file under the
15703 # same distribution terms that you use for the rest of that program.
15704 #
15705 # GNU Libtool is distributed in the hope that it will be useful,
15706 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15707 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15708 # GNU General Public License for more details.
15709 #
15710 # You should have received a copy of the GNU General Public License
15711 # along with GNU Libtool; see the file COPYING.  If not, a copy
15712 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15713 # obtained by writing to the Free Software Foundation, Inc.,
15714 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15715
15716
15717 # The names of the tagged configurations supported by this script.
15718 available_tags=""
15719
15720 # ### BEGIN LIBTOOL CONFIG
15721
15722 # Which release of libtool.m4 was used?
15723 macro_version=$macro_version
15724 macro_revision=$macro_revision
15725
15726 # Assembler program.
15727 AS=$lt_AS
15728
15729 # DLL creation program.
15730 DLLTOOL=$lt_DLLTOOL
15731
15732 # Object dumper program.
15733 OBJDUMP=$lt_OBJDUMP
15734
15735 # Whether or not to build shared libraries.
15736 build_libtool_libs=$enable_shared
15737
15738 # Whether or not to build static libraries.
15739 build_old_libs=$enable_static
15740
15741 # What type of objects to build.
15742 pic_mode=$pic_mode
15743
15744 # Whether or not to optimize for fast installation.
15745 fast_install=$enable_fast_install
15746
15747 # Shell to use when invoking shell scripts.
15748 SHELL=$lt_SHELL
15749
15750 # An echo program that protects backslashes.
15751 ECHO=$lt_ECHO
15752
15753 # The PATH separator for the build system.
15754 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15755
15756 # The host system.
15757 host_alias=$host_alias
15758 host=$host
15759 host_os=$host_os
15760
15761 # The build system.
15762 build_alias=$build_alias
15763 build=$build
15764 build_os=$build_os
15765
15766 # A sed program that does not truncate output.
15767 SED=$lt_SED
15768
15769 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15770 Xsed="\$SED -e 1s/^X//"
15771
15772 # A grep program that handles long lines.
15773 GREP=$lt_GREP
15774
15775 # An ERE matcher.
15776 EGREP=$lt_EGREP
15777
15778 # A literal string matcher.
15779 FGREP=$lt_FGREP
15780
15781 # A BSD- or MS-compatible name lister.
15782 NM=$lt_NM
15783
15784 # Whether we need soft or hard links.
15785 LN_S=$lt_LN_S
15786
15787 # What is the maximum length of a command?
15788 max_cmd_len=$max_cmd_len
15789
15790 # Object file suffix (normally "o").
15791 objext=$ac_objext
15792
15793 # Executable file suffix (normally "").
15794 exeext=$exeext
15795
15796 # whether the shell understands "unset".
15797 lt_unset=$lt_unset
15798
15799 # turn spaces into newlines.
15800 SP2NL=$lt_lt_SP2NL
15801
15802 # turn newlines into spaces.
15803 NL2SP=$lt_lt_NL2SP
15804
15805 # convert \$build file names to \$host format.
15806 to_host_file_cmd=$lt_cv_to_host_file_cmd
15807
15808 # convert \$build files to toolchain format.
15809 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15810
15811 # Method to check whether dependent libraries are shared objects.
15812 deplibs_check_method=$lt_deplibs_check_method
15813
15814 # Command to use when deplibs_check_method = "file_magic".
15815 file_magic_cmd=$lt_file_magic_cmd
15816
15817 # How to find potential files when deplibs_check_method = "file_magic".
15818 file_magic_glob=$lt_file_magic_glob
15819
15820 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15821 want_nocaseglob=$lt_want_nocaseglob
15822
15823 # Command to associate shared and link libraries.
15824 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15825
15826 # The archiver.
15827 AR=$lt_AR
15828
15829 # Flags to create an archive.
15830 AR_FLAGS=$lt_AR_FLAGS
15831
15832 # How to feed a file listing to the archiver.
15833 archiver_list_spec=$lt_archiver_list_spec
15834
15835 # A symbol stripping program.
15836 STRIP=$lt_STRIP
15837
15838 # Commands used to install an old-style archive.
15839 RANLIB=$lt_RANLIB
15840 old_postinstall_cmds=$lt_old_postinstall_cmds
15841 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15842
15843 # Whether to use a lock for old archive extraction.
15844 lock_old_archive_extraction=$lock_old_archive_extraction
15845
15846 # A C compiler.
15847 LTCC=$lt_CC
15848
15849 # LTCC compiler flags.
15850 LTCFLAGS=$lt_CFLAGS
15851
15852 # Take the output of nm and produce a listing of raw symbols and C names.
15853 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15854
15855 # Transform the output of nm in a proper C declaration.
15856 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15857
15858 # Transform the output of nm in a C name address pair.
15859 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15860
15861 # Transform the output of nm in a C name address pair when lib prefix is needed.
15862 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15863
15864 # Specify filename containing input files for \$NM.
15865 nm_file_list_spec=$lt_nm_file_list_spec
15866
15867 # The root where to search for dependent libraries,and in which our libraries should be installed.
15868 lt_sysroot=$lt_sysroot
15869
15870 # The name of the directory that contains temporary libtool files.
15871 objdir=$objdir
15872
15873 # Used to examine libraries when file_magic_cmd begins with "file".
15874 MAGIC_CMD=$MAGIC_CMD
15875
15876 # Must we lock files when doing compilation?
15877 need_locks=$lt_need_locks
15878
15879 # Manifest tool.
15880 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15881
15882 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15883 DSYMUTIL=$lt_DSYMUTIL
15884
15885 # Tool to change global to local symbols on Mac OS X.
15886 NMEDIT=$lt_NMEDIT
15887
15888 # Tool to manipulate fat objects and archives on Mac OS X.
15889 LIPO=$lt_LIPO
15890
15891 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15892 OTOOL=$lt_OTOOL
15893
15894 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15895 OTOOL64=$lt_OTOOL64
15896
15897 # Old archive suffix (normally "a").
15898 libext=$libext
15899
15900 # Shared library suffix (normally ".so").
15901 shrext_cmds=$lt_shrext_cmds
15902
15903 # The commands to extract the exported symbol list from a shared archive.
15904 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15905
15906 # Variables whose values should be saved in libtool wrapper scripts and
15907 # restored at link time.
15908 variables_saved_for_relink=$lt_variables_saved_for_relink
15909
15910 # Do we need the "lib" prefix for modules?
15911 need_lib_prefix=$need_lib_prefix
15912
15913 # Do we need a version for libraries?
15914 need_version=$need_version
15915
15916 # Library versioning type.
15917 version_type=$version_type
15918
15919 # Shared library runtime path variable.
15920 runpath_var=$runpath_var
15921
15922 # Shared library path variable.
15923 shlibpath_var=$shlibpath_var
15924
15925 # Is shlibpath searched before the hard-coded library search path?
15926 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15927
15928 # Format of library name prefix.
15929 libname_spec=$lt_libname_spec
15930
15931 # List of archive names.  First name is the real one, the rest are links.
15932 # The last name is the one that the linker finds with -lNAME
15933 library_names_spec=$lt_library_names_spec
15934
15935 # The coded name of the library, if different from the real name.
15936 soname_spec=$lt_soname_spec
15937
15938 # Permission mode override for installation of shared libraries.
15939 install_override_mode=$lt_install_override_mode
15940
15941 # Command to use after installation of a shared archive.
15942 postinstall_cmds=$lt_postinstall_cmds
15943
15944 # Command to use after uninstallation of a shared archive.
15945 postuninstall_cmds=$lt_postuninstall_cmds
15946
15947 # Commands used to finish a libtool library installation in a directory.
15948 finish_cmds=$lt_finish_cmds
15949
15950 # As "finish_cmds", except a single script fragment to be evaled but
15951 # not shown.
15952 finish_eval=$lt_finish_eval
15953
15954 # Whether we should hardcode library paths into libraries.
15955 hardcode_into_libs=$hardcode_into_libs
15956
15957 # Compile-time system search path for libraries.
15958 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15959
15960 # Run-time system search path for libraries.
15961 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15962
15963 # Whether dlopen is supported.
15964 dlopen_support=$enable_dlopen
15965
15966 # Whether dlopen of programs is supported.
15967 dlopen_self=$enable_dlopen_self
15968
15969 # Whether dlopen of statically linked programs is supported.
15970 dlopen_self_static=$enable_dlopen_self_static
15971
15972 # Commands to strip libraries.
15973 old_striplib=$lt_old_striplib
15974 striplib=$lt_striplib
15975
15976
15977 # The linker used to build libraries.
15978 LD=$lt_LD
15979
15980 # How to create reloadable object files.
15981 reload_flag=$lt_reload_flag
15982 reload_cmds=$lt_reload_cmds
15983
15984 # Commands used to build an old-style archive.
15985 old_archive_cmds=$lt_old_archive_cmds
15986
15987 # A language specific compiler.
15988 CC=$lt_compiler
15989
15990 # Is the compiler the GNU compiler?
15991 with_gcc=$GCC
15992
15993 # Compiler flag to turn off builtin functions.
15994 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15995
15996 # Additional compiler flags for building library objects.
15997 pic_flag=$lt_lt_prog_compiler_pic
15998
15999 # How to pass a linker flag through the compiler.
16000 wl=$lt_lt_prog_compiler_wl
16001
16002 # Compiler flag to prevent dynamic linking.
16003 link_static_flag=$lt_lt_prog_compiler_static
16004
16005 # Does compiler simultaneously support -c and -o options?
16006 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16007
16008 # Whether or not to add -lc for building shared libraries.
16009 build_libtool_need_lc=$archive_cmds_need_lc
16010
16011 # Whether or not to disallow shared libs when runtime libs are static.
16012 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16013
16014 # Compiler flag to allow reflexive dlopens.
16015 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16016
16017 # Compiler flag to generate shared objects directly from archives.
16018 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16019
16020 # Whether the compiler copes with passing no objects directly.
16021 compiler_needs_object=$lt_compiler_needs_object
16022
16023 # Create an old-style archive from a shared archive.
16024 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16025
16026 # Create a temporary old-style archive to link instead of a shared archive.
16027 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16028
16029 # Commands used to build a shared archive.
16030 archive_cmds=$lt_archive_cmds
16031 archive_expsym_cmds=$lt_archive_expsym_cmds
16032
16033 # Commands used to build a loadable module if different from building
16034 # a shared archive.
16035 module_cmds=$lt_module_cmds
16036 module_expsym_cmds=$lt_module_expsym_cmds
16037
16038 # Whether we are building with GNU ld or not.
16039 with_gnu_ld=$lt_with_gnu_ld
16040
16041 # Flag that allows shared libraries with undefined symbols to be built.
16042 allow_undefined_flag=$lt_allow_undefined_flag
16043
16044 # Flag that enforces no undefined symbols.
16045 no_undefined_flag=$lt_no_undefined_flag
16046
16047 # Flag to hardcode \$libdir into a binary during linking.
16048 # This must work even if \$libdir does not exist
16049 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16050
16051 # Whether we need a single "-rpath" flag with a separated argument.
16052 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16053
16054 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16055 # DIR into the resulting binary.
16056 hardcode_direct=$hardcode_direct
16057
16058 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16059 # DIR into the resulting binary and the resulting library dependency is
16060 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16061 # library is relocated.
16062 hardcode_direct_absolute=$hardcode_direct_absolute
16063
16064 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16065 # into the resulting binary.
16066 hardcode_minus_L=$hardcode_minus_L
16067
16068 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16069 # into the resulting binary.
16070 hardcode_shlibpath_var=$hardcode_shlibpath_var
16071
16072 # Set to "yes" if building a shared library automatically hardcodes DIR
16073 # into the library and all subsequent libraries and executables linked
16074 # against it.
16075 hardcode_automatic=$hardcode_automatic
16076
16077 # Set to yes if linker adds runtime paths of dependent libraries
16078 # to runtime path list.
16079 inherit_rpath=$inherit_rpath
16080
16081 # Whether libtool must link a program against all its dependency libraries.
16082 link_all_deplibs=$link_all_deplibs
16083
16084 # Set to "yes" if exported symbols are required.
16085 always_export_symbols=$always_export_symbols
16086
16087 # The commands to list exported symbols.
16088 export_symbols_cmds=$lt_export_symbols_cmds
16089
16090 # Symbols that should not be listed in the preloaded symbols.
16091 exclude_expsyms=$lt_exclude_expsyms
16092
16093 # Symbols that must always be exported.
16094 include_expsyms=$lt_include_expsyms
16095
16096 # Commands necessary for linking programs (against libraries) with templates.
16097 prelink_cmds=$lt_prelink_cmds
16098
16099 # Commands necessary for finishing linking programs.
16100 postlink_cmds=$lt_postlink_cmds
16101
16102 # Specify filename containing input files.
16103 file_list_spec=$lt_file_list_spec
16104
16105 # How to hardcode a shared library path into an executable.
16106 hardcode_action=$hardcode_action
16107
16108 # ### END LIBTOOL CONFIG
16109
16110 _LT_EOF
16111
16112   case $host_os in
16113   aix3*)
16114     cat <<\_LT_EOF >> "$cfgfile"
16115 # AIX sometimes has problems with the GCC collect2 program.  For some
16116 # reason, if we set the COLLECT_NAMES environment variable, the problems
16117 # vanish in a puff of smoke.
16118 if test "X${COLLECT_NAMES+set}" != Xset; then
16119   COLLECT_NAMES=
16120   export COLLECT_NAMES
16121 fi
16122 _LT_EOF
16123     ;;
16124   esac
16125
16126
16127 ltmain="$ac_aux_dir/ltmain.sh"
16128
16129
16130   # We use sed instead of cat because bash on DJGPP gets confused if
16131   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16132   # text mode, it properly converts lines to CR/LF.  This bash problem
16133   # is reportedly fixed, but why not run on old versions too?
16134   sed '$q' "$ltmain" >> "$cfgfile" \
16135      || (rm -f "$cfgfile"; exit 1)
16136
16137   if test x"$xsi_shell" = xyes; then
16138   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16139 func_dirname ()\
16140 {\
16141 \    case ${1} in\
16142 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16143 \      *  ) func_dirname_result="${3}" ;;\
16144 \    esac\
16145 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16146   && mv -f "$cfgfile.tmp" "$cfgfile" \
16147     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16148 test 0 -eq $? || _lt_function_replace_fail=:
16149
16150
16151   sed -e '/^func_basename ()$/,/^} # func_basename /c\
16152 func_basename ()\
16153 {\
16154 \    func_basename_result="${1##*/}"\
16155 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16156   && mv -f "$cfgfile.tmp" "$cfgfile" \
16157     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16158 test 0 -eq $? || _lt_function_replace_fail=:
16159
16160
16161   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16162 func_dirname_and_basename ()\
16163 {\
16164 \    case ${1} in\
16165 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16166 \      *  ) func_dirname_result="${3}" ;;\
16167 \    esac\
16168 \    func_basename_result="${1##*/}"\
16169 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16170   && mv -f "$cfgfile.tmp" "$cfgfile" \
16171     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16172 test 0 -eq $? || _lt_function_replace_fail=:
16173
16174
16175   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16176 func_stripname ()\
16177 {\
16178 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16179 \    # positional parameters, so assign one to ordinary parameter first.\
16180 \    func_stripname_result=${3}\
16181 \    func_stripname_result=${func_stripname_result#"${1}"}\
16182 \    func_stripname_result=${func_stripname_result%"${2}"}\
16183 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16184   && mv -f "$cfgfile.tmp" "$cfgfile" \
16185     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16186 test 0 -eq $? || _lt_function_replace_fail=:
16187
16188
16189   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16190 func_split_long_opt ()\
16191 {\
16192 \    func_split_long_opt_name=${1%%=*}\
16193 \    func_split_long_opt_arg=${1#*=}\
16194 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16195   && mv -f "$cfgfile.tmp" "$cfgfile" \
16196     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16197 test 0 -eq $? || _lt_function_replace_fail=:
16198
16199
16200   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16201 func_split_short_opt ()\
16202 {\
16203 \    func_split_short_opt_arg=${1#??}\
16204 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16205 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16206   && mv -f "$cfgfile.tmp" "$cfgfile" \
16207     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16208 test 0 -eq $? || _lt_function_replace_fail=:
16209
16210
16211   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16212 func_lo2o ()\
16213 {\
16214 \    case ${1} in\
16215 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16216 \      *)    func_lo2o_result=${1} ;;\
16217 \    esac\
16218 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16219   && mv -f "$cfgfile.tmp" "$cfgfile" \
16220     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16221 test 0 -eq $? || _lt_function_replace_fail=:
16222
16223
16224   sed -e '/^func_xform ()$/,/^} # func_xform /c\
16225 func_xform ()\
16226 {\
16227     func_xform_result=${1%.*}.lo\
16228 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16229   && mv -f "$cfgfile.tmp" "$cfgfile" \
16230     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16231 test 0 -eq $? || _lt_function_replace_fail=:
16232
16233
16234   sed -e '/^func_arith ()$/,/^} # func_arith /c\
16235 func_arith ()\
16236 {\
16237     func_arith_result=$(( $* ))\
16238 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16239   && mv -f "$cfgfile.tmp" "$cfgfile" \
16240     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16241 test 0 -eq $? || _lt_function_replace_fail=:
16242
16243
16244   sed -e '/^func_len ()$/,/^} # func_len /c\
16245 func_len ()\
16246 {\
16247     func_len_result=${#1}\
16248 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16249   && mv -f "$cfgfile.tmp" "$cfgfile" \
16250     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16251 test 0 -eq $? || _lt_function_replace_fail=:
16252
16253 fi
16254
16255 if test x"$lt_shell_append" = xyes; then
16256   sed -e '/^func_append ()$/,/^} # func_append /c\
16257 func_append ()\
16258 {\
16259     eval "${1}+=\\${2}"\
16260 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16261   && mv -f "$cfgfile.tmp" "$cfgfile" \
16262     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16263 test 0 -eq $? || _lt_function_replace_fail=:
16264
16265
16266   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16267 func_append_quoted ()\
16268 {\
16269 \    func_quote_for_eval "${2}"\
16270 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16271 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16272   && mv -f "$cfgfile.tmp" "$cfgfile" \
16273     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16274 test 0 -eq $? || _lt_function_replace_fail=:
16275
16276
16277   # Save a `func_append' function call where possible by direct use of '+='
16278   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16279     && mv -f "$cfgfile.tmp" "$cfgfile" \
16280       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16281   test 0 -eq $? || _lt_function_replace_fail=:
16282 else
16283   # Save a `func_append' function call even when '+=' is not available
16284   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16285     && mv -f "$cfgfile.tmp" "$cfgfile" \
16286       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16287   test 0 -eq $? || _lt_function_replace_fail=:
16288 fi
16289
16290 if test x"$_lt_function_replace_fail" = x":"; then
16291   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16292 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16293 fi
16294
16295
16296    mv -f "$cfgfile" "$ofile" ||
16297     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16298   chmod +x "$ofile"
16299
16300  ;;
16301     "po/stamp-it":C)
16302     if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
16303        as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
16304     fi
16305     rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
16306     >"po/stamp-it.tmp"
16307     sed '/^#/d
16308          s/^[[].*] *//
16309          /^[    ]*$/d
16310         '"s|^|  $ac_top_srcdir/|" \
16311       "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
16312
16313     sed '/^POTFILES =/,/[^\\]$/ {
16314                 /^POTFILES =/!d
16315                 r po/POTFILES
16316           }
16317          ' "po/Makefile.in" >"po/Makefile"
16318     rm -f "po/Makefile.tmp"
16319     mv "po/stamp-it.tmp" "po/stamp-it"
16320    ;;
16321
16322   esac
16323 done # for ac_tag
16324
16325
16326 as_fn_exit 0
16327 _ACEOF
16328 ac_clean_files=$ac_clean_files_save
16329
16330 test $ac_write_fail = 0 ||
16331   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16332
16333
16334 # configure is writing to config.log, and then calls config.status.
16335 # config.status does its own redirection, appending to config.log.
16336 # Unfortunately, on DOS this fails, as config.log is still kept open
16337 # by configure, so config.status won't be able to write to it; its
16338 # output is simply discarded.  So we exec the FD to /dev/null,
16339 # effectively closing config.log, so it can be properly (re)opened and
16340 # appended to by config.status.  When coming back to configure, we
16341 # need to make the FD available again.
16342 if test "$no_create" != yes; then
16343   ac_cs_success=:
16344   ac_config_status_args=
16345   test "$silent" = yes &&
16346     ac_config_status_args="$ac_config_status_args --quiet"
16347   exec 5>/dev/null
16348   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16349   exec 5>>config.log
16350   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16351   # would make configure fail if this is the last instruction.
16352   $ac_cs_success || as_fn_exit 1
16353 fi
16354 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16355   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16356 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16357 fi
16358