SoupDirectoryInputStream: Remove deprecated use of GTimeVal
[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.62.2.
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 as_awk_strverscmp='
571   # Use only awk features that work with 7th edition Unix awk (1978).
572   # My, what an old awk you have, Mr. Solaris!
573   END {
574     while (length(v1) && length(v2)) {
575       # Set d1 to be the next thing to compare from v1, and likewise for d2.
576       # Normally this is a single character, but if v1 and v2 contain digits,
577       # compare them as integers and fractions as strverscmp does.
578       if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
579         # Split v1 and v2 into their leading digit string components d1 and d2,
580         # and advance v1 and v2 past the leading digit strings.
581         for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
582         for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
583         d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
584         d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
585         if (d1 ~ /^0/) {
586           if (d2 ~ /^0/) {
587             # Compare two fractions.
588             while (d1 ~ /^0/ && d2 ~ /^0/) {
589               d1 = substr(d1, 2); len1--
590               d2 = substr(d2, 2); len2--
591             }
592             if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
593               # The two components differ in length, and the common prefix
594               # contains only leading zeros.  Consider the longer to be less.
595               d1 = -len1
596               d2 = -len2
597             } else {
598               # Otherwise, compare as strings.
599               d1 = "x" d1
600               d2 = "x" d2
601             }
602           } else {
603             # A fraction is less than an integer.
604             exit 1
605           }
606         } else {
607           if (d2 ~ /^0/) {
608             # An integer is greater than a fraction.
609             exit 2
610           } else {
611             # Compare two integers.
612             d1 += 0
613             d2 += 0
614           }
615         }
616       } else {
617         # The normal case, without worrying about digits.
618         d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
619         d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
620       }
621       if (d1 < d2) exit 1
622       if (d1 > d2) exit 2
623     }
624     # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
625     # which mishandles some comparisons of empty strings to integers.
626     if (length(v2)) exit 1
627     if (length(v1)) exit 2
628   }
629 '
630
631 test -n "$DJDIR" || exec 7<&0 </dev/null
632 exec 6>&1
633
634 # Name of the host.
635 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636 # so uname gets run too.
637 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
638
639 #
640 # Initializations.
641 #
642 ac_default_prefix=/usr/local
643 ac_clean_files=
644 ac_config_libobj_dir=.
645 LIBOBJS=
646 cross_compiling=no
647 subdirs=
648 MFLAGS=
649 MAKEFLAGS=
650
651 # Identity of this package.
652 PACKAGE_NAME='libsoup'
653 PACKAGE_TARNAME='libsoup'
654 PACKAGE_VERSION='2.62.2'
655 PACKAGE_STRING='libsoup 2.62.2'
656 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=libsoup'
657 PACKAGE_URL=''
658
659 ac_unique_file="libsoup-2.4.pc.in"
660 # Factoring default headers for most tests.
661 ac_includes_default="\
662 #include <stdio.h>
663 #ifdef HAVE_SYS_TYPES_H
664 # include <sys/types.h>
665 #endif
666 #ifdef HAVE_SYS_STAT_H
667 # include <sys/stat.h>
668 #endif
669 #ifdef STDC_HEADERS
670 # include <stdlib.h>
671 # include <stddef.h>
672 #else
673 # ifdef HAVE_STDLIB_H
674 #  include <stdlib.h>
675 # endif
676 #endif
677 #ifdef HAVE_STRING_H
678 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
679 #  include <memory.h>
680 # endif
681 # include <string.h>
682 #endif
683 #ifdef HAVE_STRINGS_H
684 # include <strings.h>
685 #endif
686 #ifdef HAVE_INTTYPES_H
687 # include <inttypes.h>
688 #endif
689 #ifdef HAVE_STDINT_H
690 # include <stdint.h>
691 #endif
692 #ifdef HAVE_UNISTD_H
693 # include <unistd.h>
694 #endif"
695
696 ac_subst_vars='am__EXEEXT_FALSE
697 am__EXEEXT_TRUE
698 LTLIBOBJS
699 LIBOBJS
700 MSVC_NO_TOOLSET_SET_FALSE
701 MSVC_NO_TOOLSET_SET_TRUE
702 MSVC_BASE_NO_TOOLSET_SET_FALSE
703 MSVC_BASE_NO_TOOLSET_SET_TRUE
704 SOUP_HIDDEN_VISIBILITY_CFLAGS
705 KRB5_LIBS
706 KRB5_CFLAGS
707 KRB5_CONFIG
708 CODE_COVERAGE_RULES
709 CODE_COVERAGE_LDFLAGS
710 CODE_COVERAGE_CXXFLAGS
711 CODE_COVERAGE_CFLAGS
712 CODE_COVERAGE_CPPFLAGS
713 GENHTML
714 LCOV
715 GCOV
716 CODE_COVERAGE_ENABLED
717 CODE_COVERAGE_ENABLED_FALSE
718 CODE_COVERAGE_ENABLED_TRUE
719 ntlm_auth
720 CURL
721 IF_HAVE_MOD_UNIXD
722 IF_HAVE_PHP
723 PHP
724 HAVE_APACHE_FALSE
725 HAVE_APACHE_TRUE
726 APACHE_PHP_MODULE_DIR
727 APACHE_SSL_MODULE_DIR
728 APACHE_MODULE_DIR
729 APACHE_HTTPD
730 ENABLE_VAPIGEN_FALSE
731 ENABLE_VAPIGEN_TRUE
732 VAPIGEN_MAKEFILE
733 VAPIDIR
734 VAPIGEN_VAPIDIR
735 VAPIGEN
736 VALAC
737 HAVE_INTROSPECTION_FALSE
738 HAVE_INTROSPECTION_TRUE
739 INTROSPECTION_MAKEFILE
740 INTROSPECTION_LIBS
741 INTROSPECTION_CFLAGS
742 INTROSPECTION_TYPELIBDIR
743 INTROSPECTION_GIRDIR
744 INTROSPECTION_GENERATE
745 INTROSPECTION_COMPILER
746 INTROSPECTION_SCANNER
747 GTK_DOC_USE_REBASE_FALSE
748 GTK_DOC_USE_REBASE_TRUE
749 GTK_DOC_USE_LIBTOOL_FALSE
750 GTK_DOC_USE_LIBTOOL_TRUE
751 GTK_DOC_BUILD_PDF_FALSE
752 GTK_DOC_BUILD_PDF_TRUE
753 GTK_DOC_BUILD_HTML_FALSE
754 GTK_DOC_BUILD_HTML_TRUE
755 ENABLE_GTK_DOC_FALSE
756 ENABLE_GTK_DOC_TRUE
757 HAVE_GTK_DOC_FALSE
758 HAVE_GTK_DOC_TRUE
759 GTKDOC_DEPS_LIBS
760 GTKDOC_DEPS_CFLAGS
761 HTML_DIR
762 GTKDOC_MKPDF
763 GTKDOC_REBASE
764 GTKDOC_CHECK_PATH
765 GTKDOC_CHECK
766 HAVE_GNOME
767 BUILD_LIBSOUP_GNOME_FALSE
768 BUILD_LIBSOUP_GNOME_TRUE
769 GETTEXT_PACKAGE
770 ALL_LINGUAS
771 INTLTOOL_PERL
772 GMSGFMT
773 MSGFMT
774 MSGMERGE
775 XGETTEXT
776 INTLTOOL_POLICY_RULE
777 INTLTOOL_SERVICE_RULE
778 INTLTOOL_THEME_RULE
779 INTLTOOL_SCHEMAS_RULE
780 INTLTOOL_CAVES_RULE
781 INTLTOOL_XML_NOMERGE_RULE
782 INTLTOOL_XML_RULE
783 INTLTOOL_KBD_RULE
784 INTLTOOL_XAM_RULE
785 INTLTOOL_UI_RULE
786 INTLTOOL_SOUNDLIST_RULE
787 INTLTOOL_SHEET_RULE
788 INTLTOOL_SERVER_RULE
789 INTLTOOL_PONG_RULE
790 INTLTOOL_OAF_RULE
791 INTLTOOL_PROP_RULE
792 INTLTOOL_KEYS_RULE
793 INTLTOOL_DIRECTORY_RULE
794 INTLTOOL_DESKTOP_RULE
795 intltool__v_merge_options_0
796 intltool__v_merge_options_
797 INTLTOOL_V_MERGE_OPTIONS
798 INTLTOOL__v_MERGE_0
799 INTLTOOL__v_MERGE_
800 INTLTOOL_V_MERGE
801 INTLTOOL_EXTRACT
802 INTLTOOL_MERGE
803 INTLTOOL_UPDATE
804 USE_NLS
805 OS_LINUX_FALSE
806 OS_LINUX_TRUE
807 OS_WIN32_FALSE
808 OS_WIN32_TRUE
809 SQLITE_LIBS
810 SQLITE_CFLAGS
811 XML_LIBS
812 XML_CFLAGS
813 installed_testdir
814 installed_test_metadir
815 ENABLE_ALWAYS_BUILD_TESTS_FALSE
816 ENABLE_ALWAYS_BUILD_TESTS_TRUE
817 ENABLE_INSTALLED_TESTS_FALSE
818 ENABLE_INSTALLED_TESTS_TRUE
819 GLIB_MAKEFILE
820 GLIB_COMPILE_RESOURCES
821 GLIB_MKENUMS
822 GOBJECT_QUERY
823 GLIB_GENMARSHAL
824 GLIB_LIBS
825 GLIB_CFLAGS
826 PKG_CONFIG_LIBDIR
827 PKG_CONFIG_PATH
828 PKG_CONFIG
829 CPP
830 LT_SYS_LIBRARY_PATH
831 OTOOL64
832 OTOOL
833 LIPO
834 NMEDIT
835 DSYMUTIL
836 MANIFEST_TOOL
837 RANLIB
838 ac_ct_AR
839 AR
840 LN_S
841 NM
842 ac_ct_DUMPBIN
843 DUMPBIN
844 LD
845 FGREP
846 EGREP
847 GREP
848 SED
849 host_os
850 host_vendor
851 host_cpu
852 host
853 build_os
854 build_vendor
855 build_cpu
856 build
857 LIBTOOL
858 OBJDUMP
859 DLLTOOL
860 AS
861 am__fastdepCC_FALSE
862 am__fastdepCC_TRUE
863 CCDEPMODE
864 am__nodep
865 AMDEPBACKSLASH
866 AMDEP_FALSE
867 AMDEP_TRUE
868 am__quote
869 am__include
870 DEPDIR
871 OBJEXT
872 EXEEXT
873 ac_ct_CC
874 CPPFLAGS
875 LDFLAGS
876 CFLAGS
877 CC
878 SOUP_DEBUG_FLAGS
879 SOUP_AGE
880 SOUP_REVISION
881 SOUP_CURRENT
882 SOUP_API_VERSION
883 SOUP_MICRO_VERSION
884 SOUP_MINOR_VERSION
885 SOUP_MAJOR_VERSION
886 AM_BACKSLASH
887 AM_DEFAULT_VERBOSITY
888 AM_DEFAULT_V
889 AM_V
890 am__untar
891 am__tar
892 AMTAR
893 am__leading_dot
894 SET_MAKE
895 AWK
896 mkdir_p
897 MKDIR_P
898 INSTALL_STRIP_PROGRAM
899 STRIP
900 install_sh
901 MAKEINFO
902 AUTOHEADER
903 AUTOMAKE
904 AUTOCONF
905 ACLOCAL
906 VERSION
907 PACKAGE
908 CYGPATH_W
909 am__isrc
910 INSTALL_DATA
911 INSTALL_SCRIPT
912 INSTALL_PROGRAM
913 target_alias
914 host_alias
915 build_alias
916 LIBS
917 ECHO_T
918 ECHO_N
919 ECHO_C
920 DEFS
921 mandir
922 localedir
923 libdir
924 psdir
925 pdfdir
926 dvidir
927 htmldir
928 infodir
929 docdir
930 oldincludedir
931 includedir
932 runstatedir
933 localstatedir
934 sharedstatedir
935 sysconfdir
936 datadir
937 datarootdir
938 libexecdir
939 sbindir
940 bindir
941 program_transform_name
942 prefix
943 exec_prefix
944 PACKAGE_URL
945 PACKAGE_BUGREPORT
946 PACKAGE_STRING
947 PACKAGE_VERSION
948 PACKAGE_TARNAME
949 PACKAGE_NAME
950 PATH_SEPARATOR
951 SHELL'
952 ac_subst_files=''
953 ac_user_opts='
954 enable_option_checking
955 enable_silent_rules
956 enable_debug
957 enable_dependency_tracking
958 enable_shared
959 enable_static
960 with_pic
961 enable_fast_install
962 with_aix_soname
963 with_gnu_ld
964 with_sysroot
965 enable_libtool_lock
966 enable_glibtest
967 enable_installed_tests
968 enable_always_build_tests
969 enable_nls
970 with_gnome
971 with_html_dir
972 enable_gtk_doc
973 enable_gtk_doc_html
974 enable_gtk_doc_pdf
975 enable_introspection
976 enable_vala
977 enable_tls_check
978 with_apache_httpd
979 with_apache_module_dir
980 with_ntlm_auth
981 with_gcov
982 enable_code_coverage
983 with_gssapi
984 with_krb5_config
985 enable_more_warnings
986 '
987       ac_precious_vars='build_alias
988 host_alias
989 target_alias
990 CC
991 CFLAGS
992 LDFLAGS
993 LIBS
994 CPPFLAGS
995 LT_SYS_LIBRARY_PATH
996 CPP
997 PKG_CONFIG
998 PKG_CONFIG_PATH
999 PKG_CONFIG_LIBDIR
1000 XML_CFLAGS
1001 XML_LIBS
1002 SQLITE_CFLAGS
1003 SQLITE_LIBS
1004 GTKDOC_DEPS_CFLAGS
1005 GTKDOC_DEPS_LIBS'
1006
1007
1008 # Initialize some variables set by options.
1009 ac_init_help=
1010 ac_init_version=false
1011 ac_unrecognized_opts=
1012 ac_unrecognized_sep=
1013 # The variables have the same names as the options, with
1014 # dashes changed to underlines.
1015 cache_file=/dev/null
1016 exec_prefix=NONE
1017 no_create=
1018 no_recursion=
1019 prefix=NONE
1020 program_prefix=NONE
1021 program_suffix=NONE
1022 program_transform_name=s,x,x,
1023 silent=
1024 site=
1025 srcdir=
1026 verbose=
1027 x_includes=NONE
1028 x_libraries=NONE
1029
1030 # Installation directory options.
1031 # These are left unexpanded so users can "make install exec_prefix=/foo"
1032 # and all the variables that are supposed to be based on exec_prefix
1033 # by default will actually change.
1034 # Use braces instead of parens because sh, perl, etc. also accept them.
1035 # (The list follows the same order as the GNU Coding Standards.)
1036 bindir='${exec_prefix}/bin'
1037 sbindir='${exec_prefix}/sbin'
1038 libexecdir='${exec_prefix}/libexec'
1039 datarootdir='${prefix}/share'
1040 datadir='${datarootdir}'
1041 sysconfdir='${prefix}/etc'
1042 sharedstatedir='${prefix}/com'
1043 localstatedir='${prefix}/var'
1044 runstatedir='${localstatedir}/run'
1045 includedir='${prefix}/include'
1046 oldincludedir='/usr/include'
1047 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1048 infodir='${datarootdir}/info'
1049 htmldir='${docdir}'
1050 dvidir='${docdir}'
1051 pdfdir='${docdir}'
1052 psdir='${docdir}'
1053 libdir='${exec_prefix}/lib'
1054 localedir='${datarootdir}/locale'
1055 mandir='${datarootdir}/man'
1056
1057 ac_prev=
1058 ac_dashdash=
1059 for ac_option
1060 do
1061   # If the previous option needs an argument, assign it.
1062   if test -n "$ac_prev"; then
1063     eval $ac_prev=\$ac_option
1064     ac_prev=
1065     continue
1066   fi
1067
1068   case $ac_option in
1069   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1070   *=)   ac_optarg= ;;
1071   *)    ac_optarg=yes ;;
1072   esac
1073
1074   # Accept the important Cygnus configure options, so we can diagnose typos.
1075
1076   case $ac_dashdash$ac_option in
1077   --)
1078     ac_dashdash=yes ;;
1079
1080   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1081     ac_prev=bindir ;;
1082   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1083     bindir=$ac_optarg ;;
1084
1085   -build | --build | --buil | --bui | --bu)
1086     ac_prev=build_alias ;;
1087   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1088     build_alias=$ac_optarg ;;
1089
1090   -cache-file | --cache-file | --cache-fil | --cache-fi \
1091   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1092     ac_prev=cache_file ;;
1093   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1094   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1095     cache_file=$ac_optarg ;;
1096
1097   --config-cache | -C)
1098     cache_file=config.cache ;;
1099
1100   -datadir | --datadir | --datadi | --datad)
1101     ac_prev=datadir ;;
1102   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1103     datadir=$ac_optarg ;;
1104
1105   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1106   | --dataroo | --dataro | --datar)
1107     ac_prev=datarootdir ;;
1108   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1109   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1110     datarootdir=$ac_optarg ;;
1111
1112   -disable-* | --disable-*)
1113     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1114     # Reject names that are not valid shell variable names.
1115     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116       as_fn_error $? "invalid feature name: $ac_useropt"
1117     ac_useropt_orig=$ac_useropt
1118     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119     case $ac_user_opts in
1120       *"
1121 "enable_$ac_useropt"
1122 "*) ;;
1123       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1124          ac_unrecognized_sep=', ';;
1125     esac
1126     eval enable_$ac_useropt=no ;;
1127
1128   -docdir | --docdir | --docdi | --doc | --do)
1129     ac_prev=docdir ;;
1130   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1131     docdir=$ac_optarg ;;
1132
1133   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1134     ac_prev=dvidir ;;
1135   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1136     dvidir=$ac_optarg ;;
1137
1138   -enable-* | --enable-*)
1139     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142       as_fn_error $? "invalid feature name: $ac_useropt"
1143     ac_useropt_orig=$ac_useropt
1144     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145     case $ac_user_opts in
1146       *"
1147 "enable_$ac_useropt"
1148 "*) ;;
1149       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1150          ac_unrecognized_sep=', ';;
1151     esac
1152     eval enable_$ac_useropt=\$ac_optarg ;;
1153
1154   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1155   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1156   | --exec | --exe | --ex)
1157     ac_prev=exec_prefix ;;
1158   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1159   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1160   | --exec=* | --exe=* | --ex=*)
1161     exec_prefix=$ac_optarg ;;
1162
1163   -gas | --gas | --ga | --g)
1164     # Obsolete; use --with-gas.
1165     with_gas=yes ;;
1166
1167   -help | --help | --hel | --he | -h)
1168     ac_init_help=long ;;
1169   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1170     ac_init_help=recursive ;;
1171   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1172     ac_init_help=short ;;
1173
1174   -host | --host | --hos | --ho)
1175     ac_prev=host_alias ;;
1176   -host=* | --host=* | --hos=* | --ho=*)
1177     host_alias=$ac_optarg ;;
1178
1179   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1180     ac_prev=htmldir ;;
1181   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1182   | --ht=*)
1183     htmldir=$ac_optarg ;;
1184
1185   -includedir | --includedir | --includedi | --included | --include \
1186   | --includ | --inclu | --incl | --inc)
1187     ac_prev=includedir ;;
1188   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1189   | --includ=* | --inclu=* | --incl=* | --inc=*)
1190     includedir=$ac_optarg ;;
1191
1192   -infodir | --infodir | --infodi | --infod | --info | --inf)
1193     ac_prev=infodir ;;
1194   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1195     infodir=$ac_optarg ;;
1196
1197   -libdir | --libdir | --libdi | --libd)
1198     ac_prev=libdir ;;
1199   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1200     libdir=$ac_optarg ;;
1201
1202   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1203   | --libexe | --libex | --libe)
1204     ac_prev=libexecdir ;;
1205   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1206   | --libexe=* | --libex=* | --libe=*)
1207     libexecdir=$ac_optarg ;;
1208
1209   -localedir | --localedir | --localedi | --localed | --locale)
1210     ac_prev=localedir ;;
1211   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1212     localedir=$ac_optarg ;;
1213
1214   -localstatedir | --localstatedir | --localstatedi | --localstated \
1215   | --localstate | --localstat | --localsta | --localst | --locals)
1216     ac_prev=localstatedir ;;
1217   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1218   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1219     localstatedir=$ac_optarg ;;
1220
1221   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1222     ac_prev=mandir ;;
1223   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1224     mandir=$ac_optarg ;;
1225
1226   -nfp | --nfp | --nf)
1227     # Obsolete; use --without-fp.
1228     with_fp=no ;;
1229
1230   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1231   | --no-cr | --no-c | -n)
1232     no_create=yes ;;
1233
1234   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1235   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1236     no_recursion=yes ;;
1237
1238   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1239   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1240   | --oldin | --oldi | --old | --ol | --o)
1241     ac_prev=oldincludedir ;;
1242   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1243   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1244   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1245     oldincludedir=$ac_optarg ;;
1246
1247   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1248     ac_prev=prefix ;;
1249   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1250     prefix=$ac_optarg ;;
1251
1252   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1253   | --program-pre | --program-pr | --program-p)
1254     ac_prev=program_prefix ;;
1255   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1256   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1257     program_prefix=$ac_optarg ;;
1258
1259   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1260   | --program-suf | --program-su | --program-s)
1261     ac_prev=program_suffix ;;
1262   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1263   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1264     program_suffix=$ac_optarg ;;
1265
1266   -program-transform-name | --program-transform-name \
1267   | --program-transform-nam | --program-transform-na \
1268   | --program-transform-n | --program-transform- \
1269   | --program-transform | --program-transfor \
1270   | --program-transfo | --program-transf \
1271   | --program-trans | --program-tran \
1272   | --progr-tra | --program-tr | --program-t)
1273     ac_prev=program_transform_name ;;
1274   -program-transform-name=* | --program-transform-name=* \
1275   | --program-transform-nam=* | --program-transform-na=* \
1276   | --program-transform-n=* | --program-transform-=* \
1277   | --program-transform=* | --program-transfor=* \
1278   | --program-transfo=* | --program-transf=* \
1279   | --program-trans=* | --program-tran=* \
1280   | --progr-tra=* | --program-tr=* | --program-t=*)
1281     program_transform_name=$ac_optarg ;;
1282
1283   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1284     ac_prev=pdfdir ;;
1285   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1286     pdfdir=$ac_optarg ;;
1287
1288   -psdir | --psdir | --psdi | --psd | --ps)
1289     ac_prev=psdir ;;
1290   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1291     psdir=$ac_optarg ;;
1292
1293   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1294   | -silent | --silent | --silen | --sile | --sil)
1295     silent=yes ;;
1296
1297   -runstatedir | --runstatedir | --runstatedi | --runstated \
1298   | --runstate | --runstat | --runsta | --runst | --runs \
1299   | --run | --ru | --r)
1300     ac_prev=runstatedir ;;
1301   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1302   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1303   | --run=* | --ru=* | --r=*)
1304     runstatedir=$ac_optarg ;;
1305
1306   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1307     ac_prev=sbindir ;;
1308   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1309   | --sbi=* | --sb=*)
1310     sbindir=$ac_optarg ;;
1311
1312   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1313   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1314   | --sharedst | --shareds | --shared | --share | --shar \
1315   | --sha | --sh)
1316     ac_prev=sharedstatedir ;;
1317   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1318   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1319   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1320   | --sha=* | --sh=*)
1321     sharedstatedir=$ac_optarg ;;
1322
1323   -site | --site | --sit)
1324     ac_prev=site ;;
1325   -site=* | --site=* | --sit=*)
1326     site=$ac_optarg ;;
1327
1328   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1329     ac_prev=srcdir ;;
1330   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1331     srcdir=$ac_optarg ;;
1332
1333   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1334   | --syscon | --sysco | --sysc | --sys | --sy)
1335     ac_prev=sysconfdir ;;
1336   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1337   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1338     sysconfdir=$ac_optarg ;;
1339
1340   -target | --target | --targe | --targ | --tar | --ta | --t)
1341     ac_prev=target_alias ;;
1342   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1343     target_alias=$ac_optarg ;;
1344
1345   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1346     verbose=yes ;;
1347
1348   -version | --version | --versio | --versi | --vers | -V)
1349     ac_init_version=: ;;
1350
1351   -with-* | --with-*)
1352     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1353     # Reject names that are not valid shell variable names.
1354     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1355       as_fn_error $? "invalid package name: $ac_useropt"
1356     ac_useropt_orig=$ac_useropt
1357     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358     case $ac_user_opts in
1359       *"
1360 "with_$ac_useropt"
1361 "*) ;;
1362       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1363          ac_unrecognized_sep=', ';;
1364     esac
1365     eval with_$ac_useropt=\$ac_optarg ;;
1366
1367   -without-* | --without-*)
1368     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1369     # Reject names that are not valid shell variable names.
1370     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1371       as_fn_error $? "invalid package name: $ac_useropt"
1372     ac_useropt_orig=$ac_useropt
1373     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1374     case $ac_user_opts in
1375       *"
1376 "with_$ac_useropt"
1377 "*) ;;
1378       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1379          ac_unrecognized_sep=', ';;
1380     esac
1381     eval with_$ac_useropt=no ;;
1382
1383   --x)
1384     # Obsolete; use --with-x.
1385     with_x=yes ;;
1386
1387   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1388   | --x-incl | --x-inc | --x-in | --x-i)
1389     ac_prev=x_includes ;;
1390   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1391   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1392     x_includes=$ac_optarg ;;
1393
1394   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1395   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1396     ac_prev=x_libraries ;;
1397   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1398   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1399     x_libraries=$ac_optarg ;;
1400
1401   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1402 Try \`$0 --help' for more information"
1403     ;;
1404
1405   *=*)
1406     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1407     # Reject names that are not valid shell variable names.
1408     case $ac_envvar in #(
1409       '' | [0-9]* | *[!_$as_cr_alnum]* )
1410       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1411     esac
1412     eval $ac_envvar=\$ac_optarg
1413     export $ac_envvar ;;
1414
1415   *)
1416     # FIXME: should be removed in autoconf 3.0.
1417     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1418     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1419       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1420     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1421     ;;
1422
1423   esac
1424 done
1425
1426 if test -n "$ac_prev"; then
1427   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1428   as_fn_error $? "missing argument to $ac_option"
1429 fi
1430
1431 if test -n "$ac_unrecognized_opts"; then
1432   case $enable_option_checking in
1433     no) ;;
1434     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1435     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1436   esac
1437 fi
1438
1439 # Check all directory arguments for consistency.
1440 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1441                 datadir sysconfdir sharedstatedir localstatedir includedir \
1442                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1443                 libdir localedir mandir runstatedir
1444 do
1445   eval ac_val=\$$ac_var
1446   # Remove trailing slashes.
1447   case $ac_val in
1448     */ )
1449       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1450       eval $ac_var=\$ac_val;;
1451   esac
1452   # Be sure to have absolute directory names.
1453   case $ac_val in
1454     [\\/$]* | ?:[\\/]* )  continue;;
1455     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1456   esac
1457   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1458 done
1459
1460 # There might be people who depend on the old broken behavior: `$host'
1461 # used to hold the argument of --host etc.
1462 # FIXME: To remove some day.
1463 build=$build_alias
1464 host=$host_alias
1465 target=$target_alias
1466
1467 # FIXME: To remove some day.
1468 if test "x$host_alias" != x; then
1469   if test "x$build_alias" = x; then
1470     cross_compiling=maybe
1471   elif test "x$build_alias" != "x$host_alias"; then
1472     cross_compiling=yes
1473   fi
1474 fi
1475
1476 ac_tool_prefix=
1477 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1478
1479 test "$silent" = yes && exec 6>/dev/null
1480
1481
1482 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1483 ac_ls_di=`ls -di .` &&
1484 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1485   as_fn_error $? "working directory cannot be determined"
1486 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1487   as_fn_error $? "pwd does not report name of working directory"
1488
1489
1490 # Find the source files, if location was not specified.
1491 if test -z "$srcdir"; then
1492   ac_srcdir_defaulted=yes
1493   # Try the directory containing this script, then the parent directory.
1494   ac_confdir=`$as_dirname -- "$as_myself" ||
1495 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1496          X"$as_myself" : 'X\(//\)[^/]' \| \
1497          X"$as_myself" : 'X\(//\)$' \| \
1498          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1499 $as_echo X"$as_myself" |
1500     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1501             s//\1/
1502             q
1503           }
1504           /^X\(\/\/\)[^/].*/{
1505             s//\1/
1506             q
1507           }
1508           /^X\(\/\/\)$/{
1509             s//\1/
1510             q
1511           }
1512           /^X\(\/\).*/{
1513             s//\1/
1514             q
1515           }
1516           s/.*/./; q'`
1517   srcdir=$ac_confdir
1518   if test ! -r "$srcdir/$ac_unique_file"; then
1519     srcdir=..
1520   fi
1521 else
1522   ac_srcdir_defaulted=no
1523 fi
1524 if test ! -r "$srcdir/$ac_unique_file"; then
1525   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1526   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1527 fi
1528 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1529 ac_abs_confdir=`(
1530         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1531         pwd)`
1532 # When building in place, set srcdir=.
1533 if test "$ac_abs_confdir" = "$ac_pwd"; then
1534   srcdir=.
1535 fi
1536 # Remove unnecessary trailing slashes from srcdir.
1537 # Double slashes in file names in object file debugging info
1538 # mess up M-x gdb in Emacs.
1539 case $srcdir in
1540 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1541 esac
1542 for ac_var in $ac_precious_vars; do
1543   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1544   eval ac_env_${ac_var}_value=\$${ac_var}
1545   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1546   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1547 done
1548
1549 #
1550 # Report the --help message.
1551 #
1552 if test "$ac_init_help" = "long"; then
1553   # Omit some internal or obsolete options to make the list less imposing.
1554   # This message is too long to be a string in the A/UX 3.1 sh.
1555   cat <<_ACEOF
1556 \`configure' configures libsoup 2.62.2 to adapt to many kinds of systems.
1557
1558 Usage: $0 [OPTION]... [VAR=VALUE]...
1559
1560 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1561 VAR=VALUE.  See below for descriptions of some of the useful variables.
1562
1563 Defaults for the options are specified in brackets.
1564
1565 Configuration:
1566   -h, --help              display this help and exit
1567       --help=short        display options specific to this package
1568       --help=recursive    display the short help of all the included packages
1569   -V, --version           display version information and exit
1570   -q, --quiet, --silent   do not print \`checking ...' messages
1571       --cache-file=FILE   cache test results in FILE [disabled]
1572   -C, --config-cache      alias for \`--cache-file=config.cache'
1573   -n, --no-create         do not create output files
1574       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1575
1576 Installation directories:
1577   --prefix=PREFIX         install architecture-independent files in PREFIX
1578                           [$ac_default_prefix]
1579   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1580                           [PREFIX]
1581
1582 By default, \`make install' will install all the files in
1583 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1584 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1585 for instance \`--prefix=\$HOME'.
1586
1587 For better control, use the options below.
1588
1589 Fine tuning of the installation directories:
1590   --bindir=DIR            user executables [EPREFIX/bin]
1591   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1592   --libexecdir=DIR        program executables [EPREFIX/libexec]
1593   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1594   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1595   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1596   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1597   --libdir=DIR            object code libraries [EPREFIX/lib]
1598   --includedir=DIR        C header files [PREFIX/include]
1599   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1600   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1601   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1602   --infodir=DIR           info documentation [DATAROOTDIR/info]
1603   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1604   --mandir=DIR            man documentation [DATAROOTDIR/man]
1605   --docdir=DIR            documentation root [DATAROOTDIR/doc/libsoup]
1606   --htmldir=DIR           html documentation [DOCDIR]
1607   --dvidir=DIR            dvi documentation [DOCDIR]
1608   --pdfdir=DIR            pdf documentation [DOCDIR]
1609   --psdir=DIR             ps documentation [DOCDIR]
1610 _ACEOF
1611
1612   cat <<\_ACEOF
1613
1614 Program names:
1615   --program-prefix=PREFIX            prepend PREFIX to installed program names
1616   --program-suffix=SUFFIX            append SUFFIX to installed program names
1617   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1618
1619 System types:
1620   --build=BUILD     configure for building on BUILD [guessed]
1621   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1622 _ACEOF
1623 fi
1624
1625 if test -n "$ac_init_help"; then
1626   case $ac_init_help in
1627      short | recursive ) echo "Configuration of libsoup 2.62.2:";;
1628    esac
1629   cat <<\_ACEOF
1630
1631 Optional Features:
1632   --disable-option-checking  ignore unrecognized --enable/--with options
1633   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1634   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1635   --enable-silent-rules   less verbose build output (undo: "make V=1")
1636   --disable-silent-rules  verbose build output (undo: "make V=0")
1637   --enable-debug=no/minimum/yes
1638                           turn on debugging (default=$debug_default)
1639   --enable-dependency-tracking
1640                           do not reject slow dependency extractors
1641   --disable-dependency-tracking
1642                           speeds up one-time build
1643   --enable-shared[=PKGS]  build shared libraries [default=yes]
1644   --enable-static[=PKGS]  build static libraries [default=yes]
1645   --enable-fast-install[=PKGS]
1646                           optimize for fast installation [default=yes]
1647   --disable-libtool-lock  avoid locking (might break parallel builds)
1648   --disable-glibtest      do not try to compile and run a test GLIB program
1649   --enable-installed-tests
1650                           Enable installation of some test cases
1651   --enable-always-build-tests
1652                           Enable always building tests during 'make all'
1653   --disable-nls           do not use Native Language Support
1654   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1655   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1656   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1657   --enable-introspection=[no/auto/yes]
1658                           Enable introspection for this build
1659   --enable-vala=[no/auto/yes]
1660                           build Vala bindings [default=auto]
1661   --disable-tls-check     Don't error out if glib-networking is unavailable
1662   --enable-code-coverage  Whether to enable code coverage support
1663   --disable-more-warnings Inhibit compiler warnings
1664
1665 Optional Packages:
1666   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1667   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1668   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1669                           both]
1670   --with-aix-soname=aix|svr4|both
1671                           shared library versioning (aka "SONAME") variant to
1672                           provide on AIX, [default=aix].
1673   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1674   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1675                           compiler's sysroot if not specified).
1676   --without-gnome         Do not build libsoup-gnome
1677   --with-html-dir=PATH    path to installed docs
1678   --with-apache-httpd     Path to apache httpd (for tests)
1679   --with-apache-module-dir
1680                           Apache modules dirs (for tests)
1681   --with-ntlm-auth=PATH   Where to look for ntlm_auth, path points to
1682                           ntlm_auth installation (default: /usr/bin/ntlm_auth)
1683   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1684   --with-gssapi           Build with GSSAPI support [default=auto]
1685   --with-krb5-config=PATH Where to look for krb5-config, path points to
1686                           krb5-config installation (default:
1687                           /usr/kerberos/bin/)
1688
1689 Some influential environment variables:
1690   CC          C compiler command
1691   CFLAGS      C compiler flags
1692   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1693               nonstandard directory <lib dir>
1694   LIBS        libraries to pass to the linker, e.g. -l<library>
1695   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1696               you have headers in a nonstandard directory <include dir>
1697   LT_SYS_LIBRARY_PATH
1698               User-defined run-time library search path.
1699   CPP         C preprocessor
1700   PKG_CONFIG  path to pkg-config utility
1701   PKG_CONFIG_PATH
1702               directories to add to pkg-config's search path
1703   PKG_CONFIG_LIBDIR
1704               path overriding pkg-config's built-in search path
1705   XML_CFLAGS  C compiler flags for XML, overriding pkg-config
1706   XML_LIBS    linker flags for XML, overriding pkg-config
1707   SQLITE_CFLAGS
1708               C compiler flags for SQLITE, overriding pkg-config
1709   SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
1710   GTKDOC_DEPS_CFLAGS
1711               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1712   GTKDOC_DEPS_LIBS
1713               linker flags for GTKDOC_DEPS, overriding pkg-config
1714
1715 Use these variables to override the choices made by `configure' or to help
1716 it to find libraries and programs with nonstandard names/locations.
1717
1718 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libsoup>.
1719 _ACEOF
1720 ac_status=$?
1721 fi
1722
1723 if test "$ac_init_help" = "recursive"; then
1724   # If there are subdirs, report their specific --help.
1725   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1726     test -d "$ac_dir" ||
1727       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1728       continue
1729     ac_builddir=.
1730
1731 case "$ac_dir" in
1732 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1733 *)
1734   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1735   # A ".." for each directory in $ac_dir_suffix.
1736   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1737   case $ac_top_builddir_sub in
1738   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1739   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1740   esac ;;
1741 esac
1742 ac_abs_top_builddir=$ac_pwd
1743 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1744 # for backward compatibility:
1745 ac_top_builddir=$ac_top_build_prefix
1746
1747 case $srcdir in
1748   .)  # We are building in place.
1749     ac_srcdir=.
1750     ac_top_srcdir=$ac_top_builddir_sub
1751     ac_abs_top_srcdir=$ac_pwd ;;
1752   [\\/]* | ?:[\\/]* )  # Absolute name.
1753     ac_srcdir=$srcdir$ac_dir_suffix;
1754     ac_top_srcdir=$srcdir
1755     ac_abs_top_srcdir=$srcdir ;;
1756   *) # Relative name.
1757     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1758     ac_top_srcdir=$ac_top_build_prefix$srcdir
1759     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1760 esac
1761 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1762
1763     cd "$ac_dir" || { ac_status=$?; continue; }
1764     # Check for guested configure.
1765     if test -f "$ac_srcdir/configure.gnu"; then
1766       echo &&
1767       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1768     elif test -f "$ac_srcdir/configure"; then
1769       echo &&
1770       $SHELL "$ac_srcdir/configure" --help=recursive
1771     else
1772       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1773     fi || ac_status=$?
1774     cd "$ac_pwd" || { ac_status=$?; break; }
1775   done
1776 fi
1777
1778 test -n "$ac_init_help" && exit $ac_status
1779 if $ac_init_version; then
1780   cat <<\_ACEOF
1781 libsoup configure 2.62.2
1782 generated by GNU Autoconf 2.69
1783
1784 Copyright (C) 2012 Free Software Foundation, Inc.
1785 This configure script is free software; the Free Software Foundation
1786 gives unlimited permission to copy, distribute and modify it.
1787 _ACEOF
1788   exit
1789 fi
1790
1791 ## ------------------------ ##
1792 ## Autoconf initialization. ##
1793 ## ------------------------ ##
1794
1795 # ac_fn_c_try_compile LINENO
1796 # --------------------------
1797 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_c_try_compile ()
1799 {
1800   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801   rm -f conftest.$ac_objext
1802   if { { ac_try="$ac_compile"
1803 case "(($ac_try" in
1804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805   *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809   (eval "$ac_compile") 2>conftest.err
1810   ac_status=$?
1811   if test -s conftest.err; then
1812     grep -v '^ *+' conftest.err >conftest.er1
1813     cat conftest.er1 >&5
1814     mv -f conftest.er1 conftest.err
1815   fi
1816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817   test $ac_status = 0; } && {
1818          test -z "$ac_c_werror_flag" ||
1819          test ! -s conftest.err
1820        } && test -s conftest.$ac_objext; then :
1821   ac_retval=0
1822 else
1823   $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826         ac_retval=1
1827 fi
1828   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829   as_fn_set_status $ac_retval
1830
1831 } # ac_fn_c_try_compile
1832
1833 # ac_fn_c_try_link LINENO
1834 # -----------------------
1835 # Try to link conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_c_try_link ()
1837 {
1838   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839   rm -f conftest.$ac_objext conftest$ac_exeext
1840   if { { ac_try="$ac_link"
1841 case "(($ac_try" in
1842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843   *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847   (eval "$ac_link") 2>conftest.err
1848   ac_status=$?
1849   if test -s conftest.err; then
1850     grep -v '^ *+' conftest.err >conftest.er1
1851     cat conftest.er1 >&5
1852     mv -f conftest.er1 conftest.err
1853   fi
1854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855   test $ac_status = 0; } && {
1856          test -z "$ac_c_werror_flag" ||
1857          test ! -s conftest.err
1858        } && test -s conftest$ac_exeext && {
1859          test "$cross_compiling" = yes ||
1860          test -x conftest$ac_exeext
1861        }; then :
1862   ac_retval=0
1863 else
1864   $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1866
1867         ac_retval=1
1868 fi
1869   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1870   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1871   # interfere with the next link command; also delete a directory that is
1872   # left behind by Apple's compiler.  We do this before executing the actions.
1873   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875   as_fn_set_status $ac_retval
1876
1877 } # ac_fn_c_try_link
1878
1879 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1880 # -------------------------------------------------------
1881 # Tests whether HEADER exists and can be compiled using the include files in
1882 # INCLUDES, setting the cache variable VAR accordingly.
1883 ac_fn_c_check_header_compile ()
1884 {
1885   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889   $as_echo_n "(cached) " >&6
1890 else
1891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h.  */
1893 $4
1894 #include <$2>
1895 _ACEOF
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897   eval "$3=yes"
1898 else
1899   eval "$3=no"
1900 fi
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 fi
1903 eval ac_res=\$$3
1904                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907
1908 } # ac_fn_c_check_header_compile
1909
1910 # ac_fn_c_try_cpp LINENO
1911 # ----------------------
1912 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1913 ac_fn_c_try_cpp ()
1914 {
1915   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916   if { { ac_try="$ac_cpp conftest.$ac_ext"
1917 case "(($ac_try" in
1918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919   *) ac_try_echo=$ac_try;;
1920 esac
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1924   ac_status=$?
1925   if test -s conftest.err; then
1926     grep -v '^ *+' conftest.err >conftest.er1
1927     cat conftest.er1 >&5
1928     mv -f conftest.er1 conftest.err
1929   fi
1930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931   test $ac_status = 0; } > conftest.i && {
1932          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1933          test ! -s conftest.err
1934        }; then :
1935   ac_retval=0
1936 else
1937   $as_echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1939
1940     ac_retval=1
1941 fi
1942   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943   as_fn_set_status $ac_retval
1944
1945 } # ac_fn_c_try_cpp
1946
1947 # ac_fn_c_try_run LINENO
1948 # ----------------------
1949 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1950 # that executables *can* be run.
1951 ac_fn_c_try_run ()
1952 {
1953   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954   if { { ac_try="$ac_link"
1955 case "(($ac_try" in
1956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957   *) ac_try_echo=$ac_try;;
1958 esac
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 $as_echo "$ac_try_echo"; } >&5
1961   (eval "$ac_link") 2>&5
1962   ac_status=$?
1963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1965   { { case "(($ac_try" in
1966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967   *) ac_try_echo=$ac_try;;
1968 esac
1969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970 $as_echo "$ac_try_echo"; } >&5
1971   (eval "$ac_try") 2>&5
1972   ac_status=$?
1973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974   test $ac_status = 0; }; }; then :
1975   ac_retval=0
1976 else
1977   $as_echo "$as_me: program exited with status $ac_status" >&5
1978        $as_echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1980
1981        ac_retval=$ac_status
1982 fi
1983   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1984   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985   as_fn_set_status $ac_retval
1986
1987 } # ac_fn_c_try_run
1988
1989 # ac_fn_c_check_func LINENO FUNC VAR
1990 # ----------------------------------
1991 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1992 ac_fn_c_check_func ()
1993 {
1994   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996 $as_echo_n "checking for $2... " >&6; }
1997 if eval \${$3+:} false; then :
1998   $as_echo_n "(cached) " >&6
1999 else
2000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h.  */
2002 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2004 #define $2 innocuous_$2
2005
2006 /* System header to define __stub macros and hopefully few prototypes,
2007     which can conflict with char $2 (); below.
2008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2009     <limits.h> exists even on freestanding compilers.  */
2010
2011 #ifdef __STDC__
2012 # include <limits.h>
2013 #else
2014 # include <assert.h>
2015 #endif
2016
2017 #undef $2
2018
2019 /* Override any GCC internal prototype to avoid an error.
2020    Use char because int might match the return type of a GCC
2021    builtin and then its argument prototype would still apply.  */
2022 #ifdef __cplusplus
2023 extern "C"
2024 #endif
2025 char $2 ();
2026 /* The GNU C library defines this for functions which it implements
2027     to always fail with ENOSYS.  Some functions are actually named
2028     something starting with __ and the normal name is an alias.  */
2029 #if defined __stub_$2 || defined __stub___$2
2030 choke me
2031 #endif
2032
2033 int
2034 main ()
2035 {
2036 return $2 ();
2037   ;
2038   return 0;
2039 }
2040 _ACEOF
2041 if ac_fn_c_try_link "$LINENO"; then :
2042   eval "$3=yes"
2043 else
2044   eval "$3=no"
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext \
2047     conftest$ac_exeext conftest.$ac_ext
2048 fi
2049 eval ac_res=\$$3
2050                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053
2054 } # ac_fn_c_check_func
2055 cat >config.log <<_ACEOF
2056 This file contains any messages produced by compilers while
2057 running configure, to aid debugging if configure makes a mistake.
2058
2059 It was created by libsoup $as_me 2.62.2, which was
2060 generated by GNU Autoconf 2.69.  Invocation command line was
2061
2062   $ $0 $@
2063
2064 _ACEOF
2065 exec 5>>config.log
2066 {
2067 cat <<_ASUNAME
2068 ## --------- ##
2069 ## Platform. ##
2070 ## --------- ##
2071
2072 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2073 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2074 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2075 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2076 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2077
2078 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2079 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2080
2081 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2082 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2083 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2084 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2085 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2086 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2087 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2088
2089 _ASUNAME
2090
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 for as_dir in $PATH
2093 do
2094   IFS=$as_save_IFS
2095   test -z "$as_dir" && as_dir=.
2096     $as_echo "PATH: $as_dir"
2097   done
2098 IFS=$as_save_IFS
2099
2100 } >&5
2101
2102 cat >&5 <<_ACEOF
2103
2104
2105 ## ----------- ##
2106 ## Core tests. ##
2107 ## ----------- ##
2108
2109 _ACEOF
2110
2111
2112 # Keep a trace of the command line.
2113 # Strip out --no-create and --no-recursion so they do not pile up.
2114 # Strip out --silent because we don't want to record it for future runs.
2115 # Also quote any args containing shell meta-characters.
2116 # Make two passes to allow for proper duplicate-argument suppression.
2117 ac_configure_args=
2118 ac_configure_args0=
2119 ac_configure_args1=
2120 ac_must_keep_next=false
2121 for ac_pass in 1 2
2122 do
2123   for ac_arg
2124   do
2125     case $ac_arg in
2126     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2127     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2128     | -silent | --silent | --silen | --sile | --sil)
2129       continue ;;
2130     *\'*)
2131       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2132     esac
2133     case $ac_pass in
2134     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2135     2)
2136       as_fn_append ac_configure_args1 " '$ac_arg'"
2137       if test $ac_must_keep_next = true; then
2138         ac_must_keep_next=false # Got value, back to normal.
2139       else
2140         case $ac_arg in
2141           *=* | --config-cache | -C | -disable-* | --disable-* \
2142           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2143           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2144           | -with-* | --with-* | -without-* | --without-* | --x)
2145             case "$ac_configure_args0 " in
2146               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2147             esac
2148             ;;
2149           -* ) ac_must_keep_next=true ;;
2150         esac
2151       fi
2152       as_fn_append ac_configure_args " '$ac_arg'"
2153       ;;
2154     esac
2155   done
2156 done
2157 { ac_configure_args0=; unset ac_configure_args0;}
2158 { ac_configure_args1=; unset ac_configure_args1;}
2159
2160 # When interrupted or exit'd, cleanup temporary files, and complete
2161 # config.log.  We remove comments because anyway the quotes in there
2162 # would cause problems or look ugly.
2163 # WARNING: Use '\'' to represent an apostrophe within the trap.
2164 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2165 trap 'exit_status=$?
2166   # Save into config.log some information that might help in debugging.
2167   {
2168     echo
2169
2170     $as_echo "## ---------------- ##
2171 ## Cache variables. ##
2172 ## ---------------- ##"
2173     echo
2174     # The following way of writing the cache mishandles newlines in values,
2175 (
2176   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2177     eval ac_val=\$$ac_var
2178     case $ac_val in #(
2179     *${as_nl}*)
2180       case $ac_var in #(
2181       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2182 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2183       esac
2184       case $ac_var in #(
2185       _ | IFS | as_nl) ;; #(
2186       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2187       *) { eval $ac_var=; unset $ac_var;} ;;
2188       esac ;;
2189     esac
2190   done
2191   (set) 2>&1 |
2192     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2193     *${as_nl}ac_space=\ *)
2194       sed -n \
2195         "s/'\''/'\''\\\\'\'''\''/g;
2196           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2197       ;; #(
2198     *)
2199       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2200       ;;
2201     esac |
2202     sort
2203 )
2204     echo
2205
2206     $as_echo "## ----------------- ##
2207 ## Output variables. ##
2208 ## ----------------- ##"
2209     echo
2210     for ac_var in $ac_subst_vars
2211     do
2212       eval ac_val=\$$ac_var
2213       case $ac_val in
2214       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2215       esac
2216       $as_echo "$ac_var='\''$ac_val'\''"
2217     done | sort
2218     echo
2219
2220     if test -n "$ac_subst_files"; then
2221       $as_echo "## ------------------- ##
2222 ## File substitutions. ##
2223 ## ------------------- ##"
2224       echo
2225       for ac_var in $ac_subst_files
2226       do
2227         eval ac_val=\$$ac_var
2228         case $ac_val in
2229         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2230         esac
2231         $as_echo "$ac_var='\''$ac_val'\''"
2232       done | sort
2233       echo
2234     fi
2235
2236     if test -s confdefs.h; then
2237       $as_echo "## ----------- ##
2238 ## confdefs.h. ##
2239 ## ----------- ##"
2240       echo
2241       cat confdefs.h
2242       echo
2243     fi
2244     test "$ac_signal" != 0 &&
2245       $as_echo "$as_me: caught signal $ac_signal"
2246     $as_echo "$as_me: exit $exit_status"
2247   } >&5
2248   rm -f core *.core core.conftest.* &&
2249     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2250     exit $exit_status
2251 ' 0
2252 for ac_signal in 1 2 13 15; do
2253   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2254 done
2255 ac_signal=0
2256
2257 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2258 rm -f -r conftest* confdefs.h
2259
2260 $as_echo "/* confdefs.h */" > confdefs.h
2261
2262 # Predefined preprocessor variables.
2263
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_NAME "$PACKAGE_NAME"
2266 _ACEOF
2267
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2270 _ACEOF
2271
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2274 _ACEOF
2275
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_STRING "$PACKAGE_STRING"
2278 _ACEOF
2279
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2282 _ACEOF
2283
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_URL "$PACKAGE_URL"
2286 _ACEOF
2287
2288
2289 # Let the site file select an alternate cache file if it wants to.
2290 # Prefer an explicitly selected file to automatically selected ones.
2291 ac_site_file1=NONE
2292 ac_site_file2=NONE
2293 if test -n "$CONFIG_SITE"; then
2294   # We do not want a PATH search for config.site.
2295   case $CONFIG_SITE in #((
2296     -*)  ac_site_file1=./$CONFIG_SITE;;
2297     */*) ac_site_file1=$CONFIG_SITE;;
2298     *)   ac_site_file1=./$CONFIG_SITE;;
2299   esac
2300 elif test "x$prefix" != xNONE; then
2301   ac_site_file1=$prefix/share/config.site
2302   ac_site_file2=$prefix/etc/config.site
2303 else
2304   ac_site_file1=$ac_default_prefix/share/config.site
2305   ac_site_file2=$ac_default_prefix/etc/config.site
2306 fi
2307 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2308 do
2309   test "x$ac_site_file" = xNONE && continue
2310   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2311     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2312 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2313     sed 's/^/| /' "$ac_site_file" >&5
2314     . "$ac_site_file" \
2315       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2317 as_fn_error $? "failed to load site script $ac_site_file
2318 See \`config.log' for more details" "$LINENO" 5; }
2319   fi
2320 done
2321
2322 if test -r "$cache_file"; then
2323   # Some versions of bash will fail to source /dev/null (special files
2324   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2325   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2326     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2327 $as_echo "$as_me: loading cache $cache_file" >&6;}
2328     case $cache_file in
2329       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2330       *)                      . "./$cache_file";;
2331     esac
2332   fi
2333 else
2334   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2335 $as_echo "$as_me: creating cache $cache_file" >&6;}
2336   >$cache_file
2337 fi
2338
2339 # Check that the precious variables saved in the cache have kept the same
2340 # value.
2341 ac_cache_corrupted=false
2342 for ac_var in $ac_precious_vars; do
2343   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2344   eval ac_new_set=\$ac_env_${ac_var}_set
2345   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2346   eval ac_new_val=\$ac_env_${ac_var}_value
2347   case $ac_old_set,$ac_new_set in
2348     set,)
2349       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2350 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2351       ac_cache_corrupted=: ;;
2352     ,set)
2353       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2354 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2355       ac_cache_corrupted=: ;;
2356     ,);;
2357     *)
2358       if test "x$ac_old_val" != "x$ac_new_val"; then
2359         # differences in whitespace do not lead to failure.
2360         ac_old_val_w=`echo x $ac_old_val`
2361         ac_new_val_w=`echo x $ac_new_val`
2362         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2363           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2364 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2365           ac_cache_corrupted=:
2366         else
2367           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2368 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2369           eval $ac_var=\$ac_old_val
2370         fi
2371         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2372 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2373         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2374 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2375       fi;;
2376   esac
2377   # Pass precious variables to config.status.
2378   if test "$ac_new_set" = set; then
2379     case $ac_new_val in
2380     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2381     *) ac_arg=$ac_var=$ac_new_val ;;
2382     esac
2383     case " $ac_configure_args " in
2384       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2385       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2386     esac
2387   fi
2388 done
2389 if $ac_cache_corrupted; then
2390   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2392   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2393 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2394   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2395 fi
2396 ## -------------------- ##
2397 ## Main body of script. ##
2398 ## -------------------- ##
2399
2400 ac_ext=c
2401 ac_cpp='$CPP $CPPFLAGS'
2402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2405
2406
2407
2408
2409 ac_aux_dir=
2410 for ac_dir in build-aux "$srcdir"/build-aux; do
2411   if test -f "$ac_dir/install-sh"; then
2412     ac_aux_dir=$ac_dir
2413     ac_install_sh="$ac_aux_dir/install-sh -c"
2414     break
2415   elif test -f "$ac_dir/install.sh"; then
2416     ac_aux_dir=$ac_dir
2417     ac_install_sh="$ac_aux_dir/install.sh -c"
2418     break
2419   elif test -f "$ac_dir/shtool"; then
2420     ac_aux_dir=$ac_dir
2421     ac_install_sh="$ac_aux_dir/shtool install -c"
2422     break
2423   fi
2424 done
2425 if test -z "$ac_aux_dir"; then
2426   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2427 fi
2428
2429 # These three variables are undocumented and unsupported,
2430 # and are intended to be withdrawn in a future Autoconf release.
2431 # They can cause serious problems if a builder's source tree is in a directory
2432 # whose full name contains unusual characters.
2433 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2434 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2435 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2436
2437
2438
2439 am__api_version='1.15'
2440
2441 # Find a good install program.  We prefer a C program (faster),
2442 # so one script is as good as another.  But avoid the broken or
2443 # incompatible versions:
2444 # SysV /etc/install, /usr/sbin/install
2445 # SunOS /usr/etc/install
2446 # IRIX /sbin/install
2447 # AIX /bin/install
2448 # AmigaOS /C/install, which installs bootblocks on floppy discs
2449 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2450 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2451 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2452 # OS/2's system install, which has a completely different semantic
2453 # ./install, which can be erroneously created by make from ./install.sh.
2454 # Reject install programs that cannot install multiple files.
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2456 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2457 if test -z "$INSTALL"; then
2458 if ${ac_cv_path_install+:} false; then :
2459   $as_echo_n "(cached) " >&6
2460 else
2461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464   IFS=$as_save_IFS
2465   test -z "$as_dir" && as_dir=.
2466     # Account for people who put trailing slashes in PATH elements.
2467 case $as_dir/ in #((
2468   ./ | .// | /[cC]/* | \
2469   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2470   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2471   /usr/ucb/* ) ;;
2472   *)
2473     # OSF1 and SCO ODT 3.0 have their own names for install.
2474     # Don't use installbsd from OSF since it installs stuff as root
2475     # by default.
2476     for ac_prog in ginstall scoinst install; do
2477       for ac_exec_ext in '' $ac_executable_extensions; do
2478         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2479           if test $ac_prog = install &&
2480             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2481             # AIX install.  It has an incompatible calling convention.
2482             :
2483           elif test $ac_prog = install &&
2484             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2485             # program-specific install script used by HP pwplus--don't use.
2486             :
2487           else
2488             rm -rf conftest.one conftest.two conftest.dir
2489             echo one > conftest.one
2490             echo two > conftest.two
2491             mkdir conftest.dir
2492             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2493               test -s conftest.one && test -s conftest.two &&
2494               test -s conftest.dir/conftest.one &&
2495               test -s conftest.dir/conftest.two
2496             then
2497               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2498               break 3
2499             fi
2500           fi
2501         fi
2502       done
2503     done
2504     ;;
2505 esac
2506
2507   done
2508 IFS=$as_save_IFS
2509
2510 rm -rf conftest.one conftest.two conftest.dir
2511
2512 fi
2513   if test "${ac_cv_path_install+set}" = set; then
2514     INSTALL=$ac_cv_path_install
2515   else
2516     # As a last resort, use the slow shell script.  Don't cache a
2517     # value for INSTALL within a source directory, because that will
2518     # break other packages using the cache if that directory is
2519     # removed, or if the value is a relative name.
2520     INSTALL=$ac_install_sh
2521   fi
2522 fi
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2524 $as_echo "$INSTALL" >&6; }
2525
2526 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2527 # It thinks the first close brace ends the variable substitution.
2528 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2529
2530 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2531
2532 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2533
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2535 $as_echo_n "checking whether build environment is sane... " >&6; }
2536 # Reject unsafe characters in $srcdir or the absolute working directory
2537 # name.  Accept space and tab only in the latter.
2538 am_lf='
2539 '
2540 case `pwd` in
2541   *[\\\"\#\$\&\'\`$am_lf]*)
2542     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2543 esac
2544 case $srcdir in
2545   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2546     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2547 esac
2548
2549 # Do 'set' in a subshell so we don't clobber the current shell's
2550 # arguments.  Must try -L first in case configure is actually a
2551 # symlink; some systems play weird games with the mod time of symlinks
2552 # (eg FreeBSD returns the mod time of the symlink's containing
2553 # directory).
2554 if (
2555    am_has_slept=no
2556    for am_try in 1 2; do
2557      echo "timestamp, slept: $am_has_slept" > conftest.file
2558      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2559      if test "$*" = "X"; then
2560         # -L didn't work.
2561         set X `ls -t "$srcdir/configure" conftest.file`
2562      fi
2563      if test "$*" != "X $srcdir/configure conftest.file" \
2564         && test "$*" != "X conftest.file $srcdir/configure"; then
2565
2566         # If neither matched, then we have a broken ls.  This can happen
2567         # if, for instance, CONFIG_SHELL is bash and it inherits a
2568         # broken ls alias from the environment.  This has actually
2569         # happened.  Such a system could not be considered "sane".
2570         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2571   alias in your environment" "$LINENO" 5
2572      fi
2573      if test "$2" = conftest.file || test $am_try -eq 2; then
2574        break
2575      fi
2576      # Just in case.
2577      sleep 1
2578      am_has_slept=yes
2579    done
2580    test "$2" = conftest.file
2581    )
2582 then
2583    # Ok.
2584    :
2585 else
2586    as_fn_error $? "newly created file is older than distributed files!
2587 Check your system clock" "$LINENO" 5
2588 fi
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2590 $as_echo "yes" >&6; }
2591 # If we didn't sleep, we still need to ensure time stamps of config.status and
2592 # generated files are strictly newer.
2593 am_sleep_pid=
2594 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2595   ( sleep 1 ) &
2596   am_sleep_pid=$!
2597 fi
2598
2599 rm -f conftest.file
2600
2601 test "$program_prefix" != NONE &&
2602   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2603 # Use a double $ so make ignores it.
2604 test "$program_suffix" != NONE &&
2605   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2606 # Double any \ or $.
2607 # By default was `s,x,x', remove it if useless.
2608 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2609 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2610
2611 # Expand $ac_aux_dir to an absolute path.
2612 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2613
2614 if test x"${MISSING+set}" != xset; then
2615   case $am_aux_dir in
2616   *\ * | *\     *)
2617     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2618   *)
2619     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2620   esac
2621 fi
2622 # Use eval to expand $SHELL
2623 if eval "$MISSING --is-lightweight"; then
2624   am_missing_run="$MISSING "
2625 else
2626   am_missing_run=
2627   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2628 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2629 fi
2630
2631 if test x"${install_sh+set}" != xset; then
2632   case $am_aux_dir in
2633   *\ * | *\     *)
2634     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2635   *)
2636     install_sh="\${SHELL} $am_aux_dir/install-sh"
2637   esac
2638 fi
2639
2640 # Installed binaries are usually stripped using 'strip' when the user
2641 # run "make install-strip".  However 'strip' might not be the right
2642 # tool to use in cross-compilation environments, therefore Automake
2643 # will honor the 'STRIP' environment variable to overrule this program.
2644 if test "$cross_compiling" != no; then
2645   if test -n "$ac_tool_prefix"; then
2646   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2647 set dummy ${ac_tool_prefix}strip; ac_word=$2
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if ${ac_cv_prog_STRIP+:} false; then :
2651   $as_echo_n "(cached) " >&6
2652 else
2653   if test -n "$STRIP"; then
2654   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659   IFS=$as_save_IFS
2660   test -z "$as_dir" && as_dir=.
2661     for ac_exec_ext in '' $ac_executable_extensions; do
2662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665     break 2
2666   fi
2667 done
2668   done
2669 IFS=$as_save_IFS
2670
2671 fi
2672 fi
2673 STRIP=$ac_cv_prog_STRIP
2674 if test -n "$STRIP"; then
2675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2676 $as_echo "$STRIP" >&6; }
2677 else
2678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2680 fi
2681
2682
2683 fi
2684 if test -z "$ac_cv_prog_STRIP"; then
2685   ac_ct_STRIP=$STRIP
2686   # Extract the first word of "strip", so it can be a program name with args.
2687 set dummy strip; ac_word=$2
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689 $as_echo_n "checking for $ac_word... " >&6; }
2690 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2691   $as_echo_n "(cached) " >&6
2692 else
2693   if test -n "$ac_ct_STRIP"; then
2694   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2698 do
2699   IFS=$as_save_IFS
2700   test -z "$as_dir" && as_dir=.
2701     for ac_exec_ext in '' $ac_executable_extensions; do
2702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2703     ac_cv_prog_ac_ct_STRIP="strip"
2704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705     break 2
2706   fi
2707 done
2708   done
2709 IFS=$as_save_IFS
2710
2711 fi
2712 fi
2713 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2714 if test -n "$ac_ct_STRIP"; then
2715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2716 $as_echo "$ac_ct_STRIP" >&6; }
2717 else
2718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719 $as_echo "no" >&6; }
2720 fi
2721
2722   if test "x$ac_ct_STRIP" = x; then
2723     STRIP=":"
2724   else
2725     case $cross_compiling:$ac_tool_warned in
2726 yes:)
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2729 ac_tool_warned=yes ;;
2730 esac
2731     STRIP=$ac_ct_STRIP
2732   fi
2733 else
2734   STRIP="$ac_cv_prog_STRIP"
2735 fi
2736
2737 fi
2738 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2739
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2741 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2742 if test -z "$MKDIR_P"; then
2743   if ${ac_cv_path_mkdir+:} false; then :
2744   $as_echo_n "(cached) " >&6
2745 else
2746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2748 do
2749   IFS=$as_save_IFS
2750   test -z "$as_dir" && as_dir=.
2751     for ac_prog in mkdir gmkdir; do
2752          for ac_exec_ext in '' $ac_executable_extensions; do
2753            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2754            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2755              'mkdir (GNU coreutils) '* | \
2756              'mkdir (coreutils) '* | \
2757              'mkdir (fileutils) '4.1*)
2758                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2759                break 3;;
2760            esac
2761          done
2762        done
2763   done
2764 IFS=$as_save_IFS
2765
2766 fi
2767
2768   test -d ./--version && rmdir ./--version
2769   if test "${ac_cv_path_mkdir+set}" = set; then
2770     MKDIR_P="$ac_cv_path_mkdir -p"
2771   else
2772     # As a last resort, use the slow shell script.  Don't cache a
2773     # value for MKDIR_P within a source directory, because that will
2774     # break other packages using the cache if that directory is
2775     # removed, or if the value is a relative name.
2776     MKDIR_P="$ac_install_sh -d"
2777   fi
2778 fi
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2780 $as_echo "$MKDIR_P" >&6; }
2781
2782 for ac_prog in gawk mawk nawk awk
2783 do
2784   # Extract the first word of "$ac_prog", so it can be a program name with args.
2785 set dummy $ac_prog; ac_word=$2
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if ${ac_cv_prog_AWK+:} false; then :
2789   $as_echo_n "(cached) " >&6
2790 else
2791   if test -n "$AWK"; then
2792   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797   IFS=$as_save_IFS
2798   test -z "$as_dir" && as_dir=.
2799     for ac_exec_ext in '' $ac_executable_extensions; do
2800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2801     ac_cv_prog_AWK="$ac_prog"
2802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803     break 2
2804   fi
2805 done
2806   done
2807 IFS=$as_save_IFS
2808
2809 fi
2810 fi
2811 AWK=$ac_cv_prog_AWK
2812 if test -n "$AWK"; then
2813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2814 $as_echo "$AWK" >&6; }
2815 else
2816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817 $as_echo "no" >&6; }
2818 fi
2819
2820
2821   test -n "$AWK" && break
2822 done
2823
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2825 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2826 set x ${MAKE-make}
2827 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2828 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2829   $as_echo_n "(cached) " >&6
2830 else
2831   cat >conftest.make <<\_ACEOF
2832 SHELL = /bin/sh
2833 all:
2834         @echo '@@@%%%=$(MAKE)=@@@%%%'
2835 _ACEOF
2836 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2837 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2838   *@@@%%%=?*=@@@%%%*)
2839     eval ac_cv_prog_make_${ac_make}_set=yes;;
2840   *)
2841     eval ac_cv_prog_make_${ac_make}_set=no;;
2842 esac
2843 rm -f conftest.make
2844 fi
2845 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2847 $as_echo "yes" >&6; }
2848   SET_MAKE=
2849 else
2850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2852   SET_MAKE="MAKE=${MAKE-make}"
2853 fi
2854
2855 rm -rf .tst 2>/dev/null
2856 mkdir .tst 2>/dev/null
2857 if test -d .tst; then
2858   am__leading_dot=.
2859 else
2860   am__leading_dot=_
2861 fi
2862 rmdir .tst 2>/dev/null
2863
2864 # Check whether --enable-silent-rules was given.
2865 if test "${enable_silent_rules+set}" = set; then :
2866   enableval=$enable_silent_rules;
2867 fi
2868
2869 case $enable_silent_rules in # (((
2870   yes) AM_DEFAULT_VERBOSITY=0;;
2871    no) AM_DEFAULT_VERBOSITY=1;;
2872     *) AM_DEFAULT_VERBOSITY=1;;
2873 esac
2874 am_make=${MAKE-make}
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2876 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2877 if ${am_cv_make_support_nested_variables+:} false; then :
2878   $as_echo_n "(cached) " >&6
2879 else
2880   if $as_echo 'TRUE=$(BAR$(V))
2881 BAR0=false
2882 BAR1=true
2883 V=1
2884 am__doit:
2885         @$(TRUE)
2886 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2887   am_cv_make_support_nested_variables=yes
2888 else
2889   am_cv_make_support_nested_variables=no
2890 fi
2891 fi
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2893 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2894 if test $am_cv_make_support_nested_variables = yes; then
2895     AM_V='$(V)'
2896   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2897 else
2898   AM_V=$AM_DEFAULT_VERBOSITY
2899   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2900 fi
2901 AM_BACKSLASH='\'
2902
2903 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2904   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2905   # is not polluted with repeated "-I."
2906   am__isrc=' -I$(srcdir)'
2907   # test to see if srcdir already configured
2908   if test -f $srcdir/config.status; then
2909     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2910   fi
2911 fi
2912
2913 # test whether we have cygpath
2914 if test -z "$CYGPATH_W"; then
2915   if (cygpath --version) >/dev/null 2>/dev/null; then
2916     CYGPATH_W='cygpath -w'
2917   else
2918     CYGPATH_W=echo
2919   fi
2920 fi
2921
2922
2923 # Define the identity of the package.
2924  PACKAGE='libsoup'
2925  VERSION='2.62.2'
2926
2927
2928 cat >>confdefs.h <<_ACEOF
2929 #define PACKAGE "$PACKAGE"
2930 _ACEOF
2931
2932
2933 cat >>confdefs.h <<_ACEOF
2934 #define VERSION "$VERSION"
2935 _ACEOF
2936
2937 # Some tools Automake needs.
2938
2939 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2940
2941
2942 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2943
2944
2945 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2946
2947
2948 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2949
2950
2951 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2952
2953 # For better backward compatibility.  To be removed once Automake 1.9.x
2954 # dies out for good.  For more background, see:
2955 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2956 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2957 mkdir_p='$(MKDIR_P)'
2958
2959 # We need awk for the "check" target (and possibly the TAP driver).  The
2960 # system "awk" is bad on some platforms.
2961 # Always define AMTAR for backward compatibility.  Yes, it's still used
2962 # in the wild :-(  We should find a proper way to deprecate it ...
2963 AMTAR='$${TAR-tar}'
2964
2965
2966 # We'll loop over all known methods to create a tar archive until one works.
2967 _am_tools='gnutar  pax cpio none'
2968
2969 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2970
2971
2972
2973
2974
2975
2976 # POSIX will say in a future version that running "rm -f" with no argument
2977 # is OK; and we want to be able to make that assumption in our Makefile
2978 # recipes.  So use an aggressive probe to check that the usage we want is
2979 # actually supported "in the wild" to an acceptable degree.
2980 # See automake bug#10828.
2981 # To make any issue more visible, cause the running configure to be aborted
2982 # by default if the 'rm' program in use doesn't match our expectations; the
2983 # user can still override this though.
2984 if rm -f && rm -fr && rm -rf; then : OK; else
2985   cat >&2 <<'END'
2986 Oops!
2987
2988 Your 'rm' program seems unable to run without file operands specified
2989 on the command line, even when the '-f' option is present.  This is contrary
2990 to the behaviour of most rm programs out there, and not conforming with
2991 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2992
2993 Please tell bug-automake@gnu.org about your system, including the value
2994 of your $PATH and any error possibly output before this message.  This
2995 can help us improve future automake versions.
2996
2997 END
2998   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2999     echo 'Configuration will proceed anyway, since you have set the' >&2
3000     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3001     echo >&2
3002   else
3003     cat >&2 <<'END'
3004 Aborting the configuration process, to ensure you take notice of the issue.
3005
3006 You can download and install GNU coreutils to get an 'rm' implementation
3007 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3008
3009 If you want to complete the configuration process using your problematic
3010 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3011 to "yes", and re-run configure.
3012
3013 END
3014     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3015   fi
3016 fi
3017
3018 # Check whether --enable-silent-rules was given.
3019 if test "${enable_silent_rules+set}" = set; then :
3020   enableval=$enable_silent_rules;
3021 fi
3022
3023 case $enable_silent_rules in # (((
3024   yes) AM_DEFAULT_VERBOSITY=0;;
3025    no) AM_DEFAULT_VERBOSITY=1;;
3026     *) AM_DEFAULT_VERBOSITY=0;;
3027 esac
3028 am_make=${MAKE-make}
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3030 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3031 if ${am_cv_make_support_nested_variables+:} false; then :
3032   $as_echo_n "(cached) " >&6
3033 else
3034   if $as_echo 'TRUE=$(BAR$(V))
3035 BAR0=false
3036 BAR1=true
3037 V=1
3038 am__doit:
3039         @$(TRUE)
3040 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3041   am_cv_make_support_nested_variables=yes
3042 else
3043   am_cv_make_support_nested_variables=no
3044 fi
3045 fi
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3047 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3048 if test $am_cv_make_support_nested_variables = yes; then
3049     AM_V='$(V)'
3050   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3051 else
3052   AM_V=$AM_DEFAULT_VERBOSITY
3053   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3054 fi
3055 AM_BACKSLASH='\'
3056
3057
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3059 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3060 set x ${MAKE-make}
3061 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3062 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3063   $as_echo_n "(cached) " >&6
3064 else
3065   cat >conftest.make <<\_ACEOF
3066 SHELL = /bin/sh
3067 all:
3068         @echo '@@@%%%=$(MAKE)=@@@%%%'
3069 _ACEOF
3070 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3071 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3072   *@@@%%%=?*=@@@%%%*)
3073     eval ac_cv_prog_make_${ac_make}_set=yes;;
3074   *)
3075     eval ac_cv_prog_make_${ac_make}_set=no;;
3076 esac
3077 rm -f conftest.make
3078 fi
3079 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3081 $as_echo "yes" >&6; }
3082   SET_MAKE=
3083 else
3084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3086   SET_MAKE="MAKE=${MAKE-make}"
3087 fi
3088
3089
3090 SOUP_MAJOR_VERSION=2
3091 SOUP_MINOR_VERSION=62
3092 SOUP_MICRO_VERSION=2
3093
3094
3095
3096
3097 SOUP_API_VERSION=2.4
3098
3099
3100 # Increment on interface addition. Reset on removal.
3101 SOUP_AGE=8
3102
3103 # Increment on interface add, remove, or change.
3104 SOUP_CURRENT=9
3105
3106 # Increment on source change. Reset when CURRENT changes.
3107 SOUP_REVISION=0
3108
3109
3110
3111
3112
3113
3114 debug_default=minimum
3115
3116 # Declare --enable-* args and collect ac_help strings
3117 # Check whether --enable-debug was given.
3118 if test "${enable_debug+set}" = set; then :
3119   enableval=$enable_debug;
3120 else
3121   enable_debug=$debug_default
3122 fi
3123
3124
3125 # Set the debug flags
3126 if test "x$enable_debug" = "xyes"; then
3127         test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
3128         SOUP_DEBUG_FLAGS="-DG_ENABLE_DEBUG"
3129 else
3130         if test "x$enable_debug" = "xno"; then
3131                 SOUP_DEBUG_FLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
3132         fi
3133 fi
3134
3135
3136
3137
3138 ac_ext=c
3139 ac_cpp='$CPP $CPPFLAGS'
3140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143 if test -n "$ac_tool_prefix"; then
3144   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3145 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if ${ac_cv_prog_CC+:} false; then :
3149   $as_echo_n "(cached) " >&6
3150 else
3151   if test -n "$CC"; then
3152   ac_cv_prog_CC="$CC" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3156 do
3157   IFS=$as_save_IFS
3158   test -z "$as_dir" && as_dir=.
3159     for ac_exec_ext in '' $ac_executable_extensions; do
3160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163     break 2
3164   fi
3165 done
3166   done
3167 IFS=$as_save_IFS
3168
3169 fi
3170 fi
3171 CC=$ac_cv_prog_CC
3172 if test -n "$CC"; then
3173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3174 $as_echo "$CC" >&6; }
3175 else
3176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3178 fi
3179
3180
3181 fi
3182 if test -z "$ac_cv_prog_CC"; then
3183   ac_ct_CC=$CC
3184   # Extract the first word of "gcc", so it can be a program name with args.
3185 set dummy gcc; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3189   $as_echo_n "(cached) " >&6
3190 else
3191   if test -n "$ac_ct_CC"; then
3192   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3193 else
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3196 do
3197   IFS=$as_save_IFS
3198   test -z "$as_dir" && as_dir=.
3199     for ac_exec_ext in '' $ac_executable_extensions; do
3200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3201     ac_cv_prog_ac_ct_CC="gcc"
3202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203     break 2
3204   fi
3205 done
3206   done
3207 IFS=$as_save_IFS
3208
3209 fi
3210 fi
3211 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3212 if test -n "$ac_ct_CC"; then
3213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3214 $as_echo "$ac_ct_CC" >&6; }
3215 else
3216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 fi
3219
3220   if test "x$ac_ct_CC" = x; then
3221     CC=""
3222   else
3223     case $cross_compiling:$ac_tool_warned in
3224 yes:)
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3227 ac_tool_warned=yes ;;
3228 esac
3229     CC=$ac_ct_CC
3230   fi
3231 else
3232   CC="$ac_cv_prog_CC"
3233 fi
3234
3235 if test -z "$CC"; then
3236           if test -n "$ac_tool_prefix"; then
3237     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3238 set dummy ${ac_tool_prefix}cc; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if ${ac_cv_prog_CC+:} false; then :
3242   $as_echo_n "(cached) " >&6
3243 else
3244   if test -n "$CC"; then
3245   ac_cv_prog_CC="$CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250   IFS=$as_save_IFS
3251   test -z "$as_dir" && as_dir=.
3252     for ac_exec_ext in '' $ac_executable_extensions; do
3253   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3254     ac_cv_prog_CC="${ac_tool_prefix}cc"
3255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256     break 2
3257   fi
3258 done
3259   done
3260 IFS=$as_save_IFS
3261
3262 fi
3263 fi
3264 CC=$ac_cv_prog_CC
3265 if test -n "$CC"; then
3266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3267 $as_echo "$CC" >&6; }
3268 else
3269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 fi
3272
3273
3274   fi
3275 fi
3276 if test -z "$CC"; then
3277   # Extract the first word of "cc", so it can be a program name with args.
3278 set dummy cc; ac_word=$2
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if ${ac_cv_prog_CC+:} false; then :
3282   $as_echo_n "(cached) " >&6
3283 else
3284   if test -n "$CC"; then
3285   ac_cv_prog_CC="$CC" # Let the user override the test.
3286 else
3287   ac_prog_rejected=no
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291   IFS=$as_save_IFS
3292   test -z "$as_dir" && as_dir=.
3293     for ac_exec_ext in '' $ac_executable_extensions; do
3294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3296        ac_prog_rejected=yes
3297        continue
3298      fi
3299     ac_cv_prog_CC="cc"
3300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301     break 2
3302   fi
3303 done
3304   done
3305 IFS=$as_save_IFS
3306
3307 if test $ac_prog_rejected = yes; then
3308   # We found a bogon in the path, so make sure we never use it.
3309   set dummy $ac_cv_prog_CC
3310   shift
3311   if test $# != 0; then
3312     # We chose a different compiler from the bogus one.
3313     # However, it has the same basename, so the bogon will be chosen
3314     # first if we set CC to just the basename; use the full file name.
3315     shift
3316     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3317   fi
3318 fi
3319 fi
3320 fi
3321 CC=$ac_cv_prog_CC
3322 if test -n "$CC"; then
3323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3324 $as_echo "$CC" >&6; }
3325 else
3326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3328 fi
3329
3330
3331 fi
3332 if test -z "$CC"; then
3333   if test -n "$ac_tool_prefix"; then
3334   for ac_prog in cl.exe
3335   do
3336     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 $as_echo_n "checking for $ac_word... " >&6; }
3340 if ${ac_cv_prog_CC+:} false; then :
3341   $as_echo_n "(cached) " >&6
3342 else
3343   if test -n "$CC"; then
3344   ac_cv_prog_CC="$CC" # Let the user override the test.
3345 else
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349   IFS=$as_save_IFS
3350   test -z "$as_dir" && as_dir=.
3351     for ac_exec_ext in '' $ac_executable_extensions; do
3352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355     break 2
3356   fi
3357 done
3358   done
3359 IFS=$as_save_IFS
3360
3361 fi
3362 fi
3363 CC=$ac_cv_prog_CC
3364 if test -n "$CC"; then
3365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3366 $as_echo "$CC" >&6; }
3367 else
3368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3370 fi
3371
3372
3373     test -n "$CC" && break
3374   done
3375 fi
3376 if test -z "$CC"; then
3377   ac_ct_CC=$CC
3378   for ac_prog in cl.exe
3379 do
3380   # Extract the first word of "$ac_prog", so it can be a program name with args.
3381 set dummy $ac_prog; ac_word=$2
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383 $as_echo_n "checking for $ac_word... " >&6; }
3384 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3385   $as_echo_n "(cached) " >&6
3386 else
3387   if test -n "$ac_ct_CC"; then
3388   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3389 else
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393   IFS=$as_save_IFS
3394   test -z "$as_dir" && as_dir=.
3395     for ac_exec_ext in '' $ac_executable_extensions; do
3396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397     ac_cv_prog_ac_ct_CC="$ac_prog"
3398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399     break 2
3400   fi
3401 done
3402   done
3403 IFS=$as_save_IFS
3404
3405 fi
3406 fi
3407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3408 if test -n "$ac_ct_CC"; then
3409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3410 $as_echo "$ac_ct_CC" >&6; }
3411 else
3412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3414 fi
3415
3416
3417   test -n "$ac_ct_CC" && break
3418 done
3419
3420   if test "x$ac_ct_CC" = x; then
3421     CC=""
3422   else
3423     case $cross_compiling:$ac_tool_warned in
3424 yes:)
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3427 ac_tool_warned=yes ;;
3428 esac
3429     CC=$ac_ct_CC
3430   fi
3431 fi
3432
3433 fi
3434
3435
3436 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438 as_fn_error $? "no acceptable C compiler found in \$PATH
3439 See \`config.log' for more details" "$LINENO" 5; }
3440
3441 # Provide some information about the compiler.
3442 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3443 set X $ac_compile
3444 ac_compiler=$2
3445 for ac_option in --version -v -V -qversion; do
3446   { { ac_try="$ac_compiler $ac_option >&5"
3447 case "(($ac_try" in
3448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449   *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3454   ac_status=$?
3455   if test -s conftest.err; then
3456     sed '10a\
3457 ... rest of stderr output deleted ...
3458          10q' conftest.err >conftest.er1
3459     cat conftest.er1 >&5
3460   fi
3461   rm -f conftest.er1 conftest.err
3462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463   test $ac_status = 0; }
3464 done
3465
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h.  */
3468
3469 int
3470 main ()
3471 {
3472
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 ac_clean_files_save=$ac_clean_files
3478 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3479 # Try to create an executable without -o first, disregard a.out.
3480 # It will help us diagnose broken compilers, and finding out an intuition
3481 # of exeext.
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3483 $as_echo_n "checking whether the C compiler works... " >&6; }
3484 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3485
3486 # The possible output files:
3487 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3488
3489 ac_rmfiles=
3490 for ac_file in $ac_files
3491 do
3492   case $ac_file in
3493     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3494     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3495   esac
3496 done
3497 rm -f $ac_rmfiles
3498
3499 if { { ac_try="$ac_link_default"
3500 case "(($ac_try" in
3501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502   *) ac_try_echo=$ac_try;;
3503 esac
3504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505 $as_echo "$ac_try_echo"; } >&5
3506   (eval "$ac_link_default") 2>&5
3507   ac_status=$?
3508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509   test $ac_status = 0; }; then :
3510   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3511 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3512 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3513 # so that the user can short-circuit this test for compilers unknown to
3514 # Autoconf.
3515 for ac_file in $ac_files ''
3516 do
3517   test -f "$ac_file" || continue
3518   case $ac_file in
3519     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3520         ;;
3521     [ab].out )
3522         # We found the default executable, but exeext='' is most
3523         # certainly right.
3524         break;;
3525     *.* )
3526         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3527         then :; else
3528            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3529         fi
3530         # We set ac_cv_exeext here because the later test for it is not
3531         # safe: cross compilers may not add the suffix if given an `-o'
3532         # argument, so we may need to know it at that point already.
3533         # Even if this section looks crufty: it has the advantage of
3534         # actually working.
3535         break;;
3536     * )
3537         break;;
3538   esac
3539 done
3540 test "$ac_cv_exeext" = no && ac_cv_exeext=
3541
3542 else
3543   ac_file=''
3544 fi
3545 if test -z "$ac_file"; then :
3546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3548 $as_echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3550
3551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553 as_fn_error 77 "C compiler cannot create executables
3554 See \`config.log' for more details" "$LINENO" 5; }
3555 else
3556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3557 $as_echo "yes" >&6; }
3558 fi
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3560 $as_echo_n "checking for C compiler default output file name... " >&6; }
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3562 $as_echo "$ac_file" >&6; }
3563 ac_exeext=$ac_cv_exeext
3564
3565 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3566 ac_clean_files=$ac_clean_files_save
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3568 $as_echo_n "checking for suffix of executables... " >&6; }
3569 if { { ac_try="$ac_link"
3570 case "(($ac_try" in
3571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572   *) ac_try_echo=$ac_try;;
3573 esac
3574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575 $as_echo "$ac_try_echo"; } >&5
3576   (eval "$ac_link") 2>&5
3577   ac_status=$?
3578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579   test $ac_status = 0; }; then :
3580   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3581 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3582 # work properly (i.e., refer to `conftest.exe'), while it won't with
3583 # `rm'.
3584 for ac_file in conftest.exe conftest conftest.*; do
3585   test -f "$ac_file" || continue
3586   case $ac_file in
3587     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3588     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3589           break;;
3590     * ) break;;
3591   esac
3592 done
3593 else
3594   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3597 See \`config.log' for more details" "$LINENO" 5; }
3598 fi
3599 rm -f conftest conftest$ac_cv_exeext
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3601 $as_echo "$ac_cv_exeext" >&6; }
3602
3603 rm -f conftest.$ac_ext
3604 EXEEXT=$ac_cv_exeext
3605 ac_exeext=$EXEEXT
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h.  */
3608 #include <stdio.h>
3609 int
3610 main ()
3611 {
3612 FILE *f = fopen ("conftest.out", "w");
3613  return ferror (f) || fclose (f) != 0;
3614
3615   ;
3616   return 0;
3617 }
3618 _ACEOF
3619 ac_clean_files="$ac_clean_files conftest.out"
3620 # Check that the compiler produces executables we can run.  If not, either
3621 # the compiler is broken, or we cross compile.
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3623 $as_echo_n "checking whether we are cross compiling... " >&6; }
3624 if test "$cross_compiling" != yes; then
3625   { { ac_try="$ac_link"
3626 case "(($ac_try" in
3627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628   *) ac_try_echo=$ac_try;;
3629 esac
3630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631 $as_echo "$ac_try_echo"; } >&5
3632   (eval "$ac_link") 2>&5
3633   ac_status=$?
3634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635   test $ac_status = 0; }
3636   if { ac_try='./conftest$ac_cv_exeext'
3637   { { case "(($ac_try" in
3638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639   *) ac_try_echo=$ac_try;;
3640 esac
3641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3642 $as_echo "$ac_try_echo"; } >&5
3643   (eval "$ac_try") 2>&5
3644   ac_status=$?
3645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646   test $ac_status = 0; }; }; then
3647     cross_compiling=no
3648   else
3649     if test "$cross_compiling" = maybe; then
3650         cross_compiling=yes
3651     else
3652         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3654 as_fn_error $? "cannot run C compiled programs.
3655 If you meant to cross compile, use \`--host'.
3656 See \`config.log' for more details" "$LINENO" 5; }
3657     fi
3658   fi
3659 fi
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3661 $as_echo "$cross_compiling" >&6; }
3662
3663 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3664 ac_clean_files=$ac_clean_files_save
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3666 $as_echo_n "checking for suffix of object files... " >&6; }
3667 if ${ac_cv_objext+:} false; then :
3668   $as_echo_n "(cached) " >&6
3669 else
3670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h.  */
3672
3673 int
3674 main ()
3675 {
3676
3677   ;
3678   return 0;
3679 }
3680 _ACEOF
3681 rm -f conftest.o conftest.obj
3682 if { { ac_try="$ac_compile"
3683 case "(($ac_try" in
3684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685   *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689   (eval "$ac_compile") 2>&5
3690   ac_status=$?
3691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692   test $ac_status = 0; }; then :
3693   for ac_file in conftest.o conftest.obj conftest.*; do
3694   test -f "$ac_file" || continue;
3695   case $ac_file in
3696     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3697     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3698        break;;
3699   esac
3700 done
3701 else
3702   $as_echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3704
3705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3707 as_fn_error $? "cannot compute suffix of object files: cannot compile
3708 See \`config.log' for more details" "$LINENO" 5; }
3709 fi
3710 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3711 fi
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3713 $as_echo "$ac_cv_objext" >&6; }
3714 OBJEXT=$ac_cv_objext
3715 ac_objext=$OBJEXT
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3717 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3718 if ${ac_cv_c_compiler_gnu+:} false; then :
3719   $as_echo_n "(cached) " >&6
3720 else
3721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h.  */
3723
3724 int
3725 main ()
3726 {
3727 #ifndef __GNUC__
3728        choke me
3729 #endif
3730
3731   ;
3732   return 0;
3733 }
3734 _ACEOF
3735 if ac_fn_c_try_compile "$LINENO"; then :
3736   ac_compiler_gnu=yes
3737 else
3738   ac_compiler_gnu=no
3739 fi
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3742
3743 fi
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3745 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3746 if test $ac_compiler_gnu = yes; then
3747   GCC=yes
3748 else
3749   GCC=
3750 fi
3751 ac_test_CFLAGS=${CFLAGS+set}
3752 ac_save_CFLAGS=$CFLAGS
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3754 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3755 if ${ac_cv_prog_cc_g+:} false; then :
3756   $as_echo_n "(cached) " >&6
3757 else
3758   ac_save_c_werror_flag=$ac_c_werror_flag
3759    ac_c_werror_flag=yes
3760    ac_cv_prog_cc_g=no
3761    CFLAGS="-g"
3762    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h.  */
3764
3765 int
3766 main ()
3767 {
3768
3769   ;
3770   return 0;
3771 }
3772 _ACEOF
3773 if ac_fn_c_try_compile "$LINENO"; then :
3774   ac_cv_prog_cc_g=yes
3775 else
3776   CFLAGS=""
3777       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h.  */
3779
3780 int
3781 main ()
3782 {
3783
3784   ;
3785   return 0;
3786 }
3787 _ACEOF
3788 if ac_fn_c_try_compile "$LINENO"; then :
3789
3790 else
3791   ac_c_werror_flag=$ac_save_c_werror_flag
3792          CFLAGS="-g"
3793          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h.  */
3795
3796 int
3797 main ()
3798 {
3799
3800   ;
3801   return 0;
3802 }
3803 _ACEOF
3804 if ac_fn_c_try_compile "$LINENO"; then :
3805   ac_cv_prog_cc_g=yes
3806 fi
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 fi
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 fi
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812    ac_c_werror_flag=$ac_save_c_werror_flag
3813 fi
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3815 $as_echo "$ac_cv_prog_cc_g" >&6; }
3816 if test "$ac_test_CFLAGS" = set; then
3817   CFLAGS=$ac_save_CFLAGS
3818 elif test $ac_cv_prog_cc_g = yes; then
3819   if test "$GCC" = yes; then
3820     CFLAGS="-g -O2"
3821   else
3822     CFLAGS="-g"
3823   fi
3824 else
3825   if test "$GCC" = yes; then
3826     CFLAGS="-O2"
3827   else
3828     CFLAGS=
3829   fi
3830 fi
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3832 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3833 if ${ac_cv_prog_cc_c89+:} false; then :
3834   $as_echo_n "(cached) " >&6
3835 else
3836   ac_cv_prog_cc_c89=no
3837 ac_save_CC=$CC
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h.  */
3840 #include <stdarg.h>
3841 #include <stdio.h>
3842 struct stat;
3843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3844 struct buf { int x; };
3845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3846 static char *e (p, i)
3847      char **p;
3848      int i;
3849 {
3850   return p[i];
3851 }
3852 static char *f (char * (*g) (char **, int), char **p, ...)
3853 {
3854   char *s;
3855   va_list v;
3856   va_start (v,p);
3857   s = g (p, va_arg (v,int));
3858   va_end (v);
3859   return s;
3860 }
3861
3862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3863    function prototypes and stuff, but not '\xHH' hex character constants.
3864    These don't provoke an error unfortunately, instead are silently treated
3865    as 'x'.  The following induces an error, until -std is added to get
3866    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3867    array size at least.  It's necessary to write '\x00'==0 to get something
3868    that's true only with -std.  */
3869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3870
3871 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3872    inside strings and character constants.  */
3873 #define FOO(x) 'x'
3874 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3875
3876 int test (int i, double x);
3877 struct s1 {int (*f) (int a);};
3878 struct s2 {int (*f) (double a);};
3879 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3880 int argc;
3881 char **argv;
3882 int
3883 main ()
3884 {
3885 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3886   ;
3887   return 0;
3888 }
3889 _ACEOF
3890 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3891         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3892 do
3893   CC="$ac_save_CC $ac_arg"
3894   if ac_fn_c_try_compile "$LINENO"; then :
3895   ac_cv_prog_cc_c89=$ac_arg
3896 fi
3897 rm -f core conftest.err conftest.$ac_objext
3898   test "x$ac_cv_prog_cc_c89" != "xno" && break
3899 done
3900 rm -f conftest.$ac_ext
3901 CC=$ac_save_CC
3902
3903 fi
3904 # AC_CACHE_VAL
3905 case "x$ac_cv_prog_cc_c89" in
3906   x)
3907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3908 $as_echo "none needed" >&6; } ;;
3909   xno)
3910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3911 $as_echo "unsupported" >&6; } ;;
3912   *)
3913     CC="$CC $ac_cv_prog_cc_c89"
3914     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3915 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3916 esac
3917 if test "x$ac_cv_prog_cc_c89" != xno; then :
3918
3919 fi
3920
3921 ac_ext=c
3922 ac_cpp='$CPP $CPPFLAGS'
3923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3926
3927 ac_ext=c
3928 ac_cpp='$CPP $CPPFLAGS'
3929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3933 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3934 if ${am_cv_prog_cc_c_o+:} false; then :
3935   $as_echo_n "(cached) " >&6
3936 else
3937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h.  */
3939
3940 int
3941 main ()
3942 {
3943
3944   ;
3945   return 0;
3946 }
3947 _ACEOF
3948   # Make sure it works both with $CC and with simple cc.
3949   # Following AC_PROG_CC_C_O, we do the test twice because some
3950   # compilers refuse to overwrite an existing .o file with -o,
3951   # though they will create one.
3952   am_cv_prog_cc_c_o=yes
3953   for am_i in 1 2; do
3954     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3955    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3956    ac_status=$?
3957    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958    (exit $ac_status); } \
3959          && test -f conftest2.$ac_objext; then
3960       : OK
3961     else
3962       am_cv_prog_cc_c_o=no
3963       break
3964     fi
3965   done
3966   rm -f core conftest*
3967   unset am_i
3968 fi
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3970 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3971 if test "$am_cv_prog_cc_c_o" != yes; then
3972    # Losing compiler, so override with the script.
3973    # FIXME: It is wrong to rewrite CC.
3974    # But if we don't then we get into trouble of one sort or another.
3975    # A longer-term fix would be to have automake use am__CC in this case,
3976    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3977    CC="$am_aux_dir/compile $CC"
3978 fi
3979 ac_ext=c
3980 ac_cpp='$CPP $CPPFLAGS'
3981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3984
3985 DEPDIR="${am__leading_dot}deps"
3986
3987 ac_config_commands="$ac_config_commands depfiles"
3988
3989
3990 am_make=${MAKE-make}
3991 cat > confinc << 'END'
3992 am__doit:
3993         @echo this is the am__doit target
3994 .PHONY: am__doit
3995 END
3996 # If we don't find an include directive, just comment out the code.
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3998 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3999 am__include="#"
4000 am__quote=
4001 _am_result=none
4002 # First try GNU make style include.
4003 echo "include confinc" > confmf
4004 # Ignore all kinds of additional output from 'make'.
4005 case `$am_make -s -f confmf 2> /dev/null` in #(
4006 *the\ am__doit\ target*)
4007   am__include=include
4008   am__quote=
4009   _am_result=GNU
4010   ;;
4011 esac
4012 # Now try BSD make style include.
4013 if test "$am__include" = "#"; then
4014    echo '.include "confinc"' > confmf
4015    case `$am_make -s -f confmf 2> /dev/null` in #(
4016    *the\ am__doit\ target*)
4017      am__include=.include
4018      am__quote="\""
4019      _am_result=BSD
4020      ;;
4021    esac
4022 fi
4023
4024
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4026 $as_echo "$_am_result" >&6; }
4027 rm -f confinc confmf
4028
4029 # Check whether --enable-dependency-tracking was given.
4030 if test "${enable_dependency_tracking+set}" = set; then :
4031   enableval=$enable_dependency_tracking;
4032 fi
4033
4034 if test "x$enable_dependency_tracking" != xno; then
4035   am_depcomp="$ac_aux_dir/depcomp"
4036   AMDEPBACKSLASH='\'
4037   am__nodep='_no'
4038 fi
4039  if test "x$enable_dependency_tracking" != xno; then
4040   AMDEP_TRUE=
4041   AMDEP_FALSE='#'
4042 else
4043   AMDEP_TRUE='#'
4044   AMDEP_FALSE=
4045 fi
4046
4047
4048
4049 depcc="$CC"   am_compiler_list=
4050
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4052 $as_echo_n "checking dependency style of $depcc... " >&6; }
4053 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4054   $as_echo_n "(cached) " >&6
4055 else
4056   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4057   # We make a subdir and do the tests there.  Otherwise we can end up
4058   # making bogus files that we don't know about and never remove.  For
4059   # instance it was reported that on HP-UX the gcc test will end up
4060   # making a dummy file named 'D' -- because '-MD' means "put the output
4061   # in D".
4062   rm -rf conftest.dir
4063   mkdir conftest.dir
4064   # Copy depcomp to subdir because otherwise we won't find it if we're
4065   # using a relative directory.
4066   cp "$am_depcomp" conftest.dir
4067   cd conftest.dir
4068   # We will build objects and dependencies in a subdirectory because
4069   # it helps to detect inapplicable dependency modes.  For instance
4070   # both Tru64's cc and ICC support -MD to output dependencies as a
4071   # side effect of compilation, but ICC will put the dependencies in
4072   # the current directory while Tru64 will put them in the object
4073   # directory.
4074   mkdir sub
4075
4076   am_cv_CC_dependencies_compiler_type=none
4077   if test "$am_compiler_list" = ""; then
4078      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4079   fi
4080   am__universal=false
4081   case " $depcc " in #(
4082      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4083      esac
4084
4085   for depmode in $am_compiler_list; do
4086     # Setup a source with many dependencies, because some compilers
4087     # like to wrap large dependency lists on column 80 (with \), and
4088     # we should not choose a depcomp mode which is confused by this.
4089     #
4090     # We need to recreate these files for each test, as the compiler may
4091     # overwrite some of them when testing with obscure command lines.
4092     # This happens at least with the AIX C compiler.
4093     : > sub/conftest.c
4094     for i in 1 2 3 4 5 6; do
4095       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4096       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4097       # Solaris 10 /bin/sh.
4098       echo '/* dummy */' > sub/conftst$i.h
4099     done
4100     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4101
4102     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4103     # mode.  It turns out that the SunPro C++ compiler does not properly
4104     # handle '-M -o', and we need to detect this.  Also, some Intel
4105     # versions had trouble with output in subdirs.
4106     am__obj=sub/conftest.${OBJEXT-o}
4107     am__minus_obj="-o $am__obj"
4108     case $depmode in
4109     gcc)
4110       # This depmode causes a compiler race in universal mode.
4111       test "$am__universal" = false || continue
4112       ;;
4113     nosideeffect)
4114       # After this tag, mechanisms are not by side-effect, so they'll
4115       # only be used when explicitly requested.
4116       if test "x$enable_dependency_tracking" = xyes; then
4117         continue
4118       else
4119         break
4120       fi
4121       ;;
4122     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4123       # This compiler won't grok '-c -o', but also, the minuso test has
4124       # not run yet.  These depmodes are late enough in the game, and
4125       # so weak that their functioning should not be impacted.
4126       am__obj=conftest.${OBJEXT-o}
4127       am__minus_obj=
4128       ;;
4129     none) break ;;
4130     esac
4131     if depmode=$depmode \
4132        source=sub/conftest.c object=$am__obj \
4133        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4134        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4135          >/dev/null 2>conftest.err &&
4136        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4137        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4138        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4139        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4140       # icc doesn't choke on unknown options, it will just issue warnings
4141       # or remarks (even with -Werror).  So we grep stderr for any message
4142       # that says an option was ignored or not supported.
4143       # When given -MP, icc 7.0 and 7.1 complain thusly:
4144       #   icc: Command line warning: ignoring option '-M'; no argument required
4145       # The diagnosis changed in icc 8.0:
4146       #   icc: Command line remark: option '-MP' not supported
4147       if (grep 'ignoring option' conftest.err ||
4148           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4149         am_cv_CC_dependencies_compiler_type=$depmode
4150         break
4151       fi
4152     fi
4153   done
4154
4155   cd ..
4156   rm -rf conftest.dir
4157 else
4158   am_cv_CC_dependencies_compiler_type=none
4159 fi
4160
4161 fi
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4163 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4164 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4165
4166  if
4167   test "x$enable_dependency_tracking" != xno \
4168   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4169   am__fastdepCC_TRUE=
4170   am__fastdepCC_FALSE='#'
4171 else
4172   am__fastdepCC_TRUE='#'
4173   am__fastdepCC_FALSE=
4174 fi
4175
4176
4177
4178
4179 # Initialize libtool
4180 case `pwd` in
4181   *\ * | *\     *)
4182     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4183 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4184 esac
4185
4186
4187
4188 macro_version='2.4.6'
4189 macro_revision='2.4.6'
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203 ltmain=$ac_aux_dir/ltmain.sh
4204
4205 # Make sure we can run config.sub.
4206 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4207   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4208
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4210 $as_echo_n "checking build system type... " >&6; }
4211 if ${ac_cv_build+:} false; then :
4212   $as_echo_n "(cached) " >&6
4213 else
4214   ac_build_alias=$build_alias
4215 test "x$ac_build_alias" = x &&
4216   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4217 test "x$ac_build_alias" = x &&
4218   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4219 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4220   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4221
4222 fi
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4224 $as_echo "$ac_cv_build" >&6; }
4225 case $ac_cv_build in
4226 *-*-*) ;;
4227 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4228 esac
4229 build=$ac_cv_build
4230 ac_save_IFS=$IFS; IFS='-'
4231 set x $ac_cv_build
4232 shift
4233 build_cpu=$1
4234 build_vendor=$2
4235 shift; shift
4236 # Remember, the first character of IFS is used to create $*,
4237 # except with old shells:
4238 build_os=$*
4239 IFS=$ac_save_IFS
4240 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4241
4242
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4244 $as_echo_n "checking host system type... " >&6; }
4245 if ${ac_cv_host+:} false; then :
4246   $as_echo_n "(cached) " >&6
4247 else
4248   if test "x$host_alias" = x; then
4249   ac_cv_host=$ac_cv_build
4250 else
4251   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4252     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4253 fi
4254
4255 fi
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4257 $as_echo "$ac_cv_host" >&6; }
4258 case $ac_cv_host in
4259 *-*-*) ;;
4260 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4261 esac
4262 host=$ac_cv_host
4263 ac_save_IFS=$IFS; IFS='-'
4264 set x $ac_cv_host
4265 shift
4266 host_cpu=$1
4267 host_vendor=$2
4268 shift; shift
4269 # Remember, the first character of IFS is used to create $*,
4270 # except with old shells:
4271 host_os=$*
4272 IFS=$ac_save_IFS
4273 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4274
4275
4276 # Backslashify metacharacters that are still active within
4277 # double-quoted strings.
4278 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4279
4280 # Same as above, but do not quote variable references.
4281 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4282
4283 # Sed substitution to delay expansion of an escaped shell variable in a
4284 # double_quote_subst'ed string.
4285 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4286
4287 # Sed substitution to delay expansion of an escaped single quote.
4288 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4289
4290 # Sed substitution to avoid accidental globbing in evaled expressions
4291 no_glob_subst='s/\*/\\\*/g'
4292
4293 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4294 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4295 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4296
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4298 $as_echo_n "checking how to print strings... " >&6; }
4299 # Test print first, because it will be a builtin if present.
4300 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4301    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4302   ECHO='print -r --'
4303 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4304   ECHO='printf %s\n'
4305 else
4306   # Use this function as a fallback that always works.
4307   func_fallback_echo ()
4308   {
4309     eval 'cat <<_LTECHO_EOF
4310 $1
4311 _LTECHO_EOF'
4312   }
4313   ECHO='func_fallback_echo'
4314 fi
4315
4316 # func_echo_all arg...
4317 # Invoke $ECHO with all args, space-separated.
4318 func_echo_all ()
4319 {
4320     $ECHO ""
4321 }
4322
4323 case $ECHO in
4324   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4325 $as_echo "printf" >&6; } ;;
4326   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4327 $as_echo "print -r" >&6; } ;;
4328   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4329 $as_echo "cat" >&6; } ;;
4330 esac
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4346 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4347 if ${ac_cv_path_SED+:} false; then :
4348   $as_echo_n "(cached) " >&6
4349 else
4350             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4351      for ac_i in 1 2 3 4 5 6 7; do
4352        ac_script="$ac_script$as_nl$ac_script"
4353      done
4354      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4355      { ac_script=; unset ac_script;}
4356      if test -z "$SED"; then
4357   ac_path_SED_found=false
4358   # Loop through the user's path and test for each of PROGNAME-LIST
4359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4361 do
4362   IFS=$as_save_IFS
4363   test -z "$as_dir" && as_dir=.
4364     for ac_prog in sed gsed; do
4365     for ac_exec_ext in '' $ac_executable_extensions; do
4366       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4367       as_fn_executable_p "$ac_path_SED" || continue
4368 # Check for GNU ac_path_SED and select it if it is found.
4369   # Check for GNU $ac_path_SED
4370 case `"$ac_path_SED" --version 2>&1` in
4371 *GNU*)
4372   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4373 *)
4374   ac_count=0
4375   $as_echo_n 0123456789 >"conftest.in"
4376   while :
4377   do
4378     cat "conftest.in" "conftest.in" >"conftest.tmp"
4379     mv "conftest.tmp" "conftest.in"
4380     cp "conftest.in" "conftest.nl"
4381     $as_echo '' >> "conftest.nl"
4382     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4383     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4384     as_fn_arith $ac_count + 1 && ac_count=$as_val
4385     if test $ac_count -gt ${ac_path_SED_max-0}; then
4386       # Best one so far, save it but keep looking for a better one
4387       ac_cv_path_SED="$ac_path_SED"
4388       ac_path_SED_max=$ac_count
4389     fi
4390     # 10*(2^10) chars as input seems more than enough
4391     test $ac_count -gt 10 && break
4392   done
4393   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4394 esac
4395
4396       $ac_path_SED_found && break 3
4397     done
4398   done
4399   done
4400 IFS=$as_save_IFS
4401   if test -z "$ac_cv_path_SED"; then
4402     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4403   fi
4404 else
4405   ac_cv_path_SED=$SED
4406 fi
4407
4408 fi
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4410 $as_echo "$ac_cv_path_SED" >&6; }
4411  SED="$ac_cv_path_SED"
4412   rm -f conftest.sed
4413
4414 test -z "$SED" && SED=sed
4415 Xsed="$SED -e 1s/^X//"
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4428 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4429 if ${ac_cv_path_GREP+:} false; then :
4430   $as_echo_n "(cached) " >&6
4431 else
4432   if test -z "$GREP"; then
4433   ac_path_GREP_found=false
4434   # Loop through the user's path and test for each of PROGNAME-LIST
4435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4437 do
4438   IFS=$as_save_IFS
4439   test -z "$as_dir" && as_dir=.
4440     for ac_prog in grep ggrep; do
4441     for ac_exec_ext in '' $ac_executable_extensions; do
4442       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4443       as_fn_executable_p "$ac_path_GREP" || continue
4444 # Check for GNU ac_path_GREP and select it if it is found.
4445   # Check for GNU $ac_path_GREP
4446 case `"$ac_path_GREP" --version 2>&1` in
4447 *GNU*)
4448   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4449 *)
4450   ac_count=0
4451   $as_echo_n 0123456789 >"conftest.in"
4452   while :
4453   do
4454     cat "conftest.in" "conftest.in" >"conftest.tmp"
4455     mv "conftest.tmp" "conftest.in"
4456     cp "conftest.in" "conftest.nl"
4457     $as_echo 'GREP' >> "conftest.nl"
4458     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4459     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4460     as_fn_arith $ac_count + 1 && ac_count=$as_val
4461     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4462       # Best one so far, save it but keep looking for a better one
4463       ac_cv_path_GREP="$ac_path_GREP"
4464       ac_path_GREP_max=$ac_count
4465     fi
4466     # 10*(2^10) chars as input seems more than enough
4467     test $ac_count -gt 10 && break
4468   done
4469   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4470 esac
4471
4472       $ac_path_GREP_found && break 3
4473     done
4474   done
4475   done
4476 IFS=$as_save_IFS
4477   if test -z "$ac_cv_path_GREP"; then
4478     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4479   fi
4480 else
4481   ac_cv_path_GREP=$GREP
4482 fi
4483
4484 fi
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4486 $as_echo "$ac_cv_path_GREP" >&6; }
4487  GREP="$ac_cv_path_GREP"
4488
4489
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4491 $as_echo_n "checking for egrep... " >&6; }
4492 if ${ac_cv_path_EGREP+:} false; then :
4493   $as_echo_n "(cached) " >&6
4494 else
4495   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4496    then ac_cv_path_EGREP="$GREP -E"
4497    else
4498      if test -z "$EGREP"; then
4499   ac_path_EGREP_found=false
4500   # Loop through the user's path and test for each of PROGNAME-LIST
4501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4503 do
4504   IFS=$as_save_IFS
4505   test -z "$as_dir" && as_dir=.
4506     for ac_prog in egrep; do
4507     for ac_exec_ext in '' $ac_executable_extensions; do
4508       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4509       as_fn_executable_p "$ac_path_EGREP" || continue
4510 # Check for GNU ac_path_EGREP and select it if it is found.
4511   # Check for GNU $ac_path_EGREP
4512 case `"$ac_path_EGREP" --version 2>&1` in
4513 *GNU*)
4514   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4515 *)
4516   ac_count=0
4517   $as_echo_n 0123456789 >"conftest.in"
4518   while :
4519   do
4520     cat "conftest.in" "conftest.in" >"conftest.tmp"
4521     mv "conftest.tmp" "conftest.in"
4522     cp "conftest.in" "conftest.nl"
4523     $as_echo 'EGREP' >> "conftest.nl"
4524     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4525     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4526     as_fn_arith $ac_count + 1 && ac_count=$as_val
4527     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4528       # Best one so far, save it but keep looking for a better one
4529       ac_cv_path_EGREP="$ac_path_EGREP"
4530       ac_path_EGREP_max=$ac_count
4531     fi
4532     # 10*(2^10) chars as input seems more than enough
4533     test $ac_count -gt 10 && break
4534   done
4535   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4536 esac
4537
4538       $ac_path_EGREP_found && break 3
4539     done
4540   done
4541   done
4542 IFS=$as_save_IFS
4543   if test -z "$ac_cv_path_EGREP"; then
4544     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4545   fi
4546 else
4547   ac_cv_path_EGREP=$EGREP
4548 fi
4549
4550    fi
4551 fi
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4553 $as_echo "$ac_cv_path_EGREP" >&6; }
4554  EGREP="$ac_cv_path_EGREP"
4555
4556
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4558 $as_echo_n "checking for fgrep... " >&6; }
4559 if ${ac_cv_path_FGREP+:} false; then :
4560   $as_echo_n "(cached) " >&6
4561 else
4562   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4563    then ac_cv_path_FGREP="$GREP -F"
4564    else
4565      if test -z "$FGREP"; then
4566   ac_path_FGREP_found=false
4567   # Loop through the user's path and test for each of PROGNAME-LIST
4568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4570 do
4571   IFS=$as_save_IFS
4572   test -z "$as_dir" && as_dir=.
4573     for ac_prog in fgrep; do
4574     for ac_exec_ext in '' $ac_executable_extensions; do
4575       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4576       as_fn_executable_p "$ac_path_FGREP" || continue
4577 # Check for GNU ac_path_FGREP and select it if it is found.
4578   # Check for GNU $ac_path_FGREP
4579 case `"$ac_path_FGREP" --version 2>&1` in
4580 *GNU*)
4581   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4582 *)
4583   ac_count=0
4584   $as_echo_n 0123456789 >"conftest.in"
4585   while :
4586   do
4587     cat "conftest.in" "conftest.in" >"conftest.tmp"
4588     mv "conftest.tmp" "conftest.in"
4589     cp "conftest.in" "conftest.nl"
4590     $as_echo 'FGREP' >> "conftest.nl"
4591     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4592     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4593     as_fn_arith $ac_count + 1 && ac_count=$as_val
4594     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4595       # Best one so far, save it but keep looking for a better one
4596       ac_cv_path_FGREP="$ac_path_FGREP"
4597       ac_path_FGREP_max=$ac_count
4598     fi
4599     # 10*(2^10) chars as input seems more than enough
4600     test $ac_count -gt 10 && break
4601   done
4602   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4603 esac
4604
4605       $ac_path_FGREP_found && break 3
4606     done
4607   done
4608   done
4609 IFS=$as_save_IFS
4610   if test -z "$ac_cv_path_FGREP"; then
4611     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4612   fi
4613 else
4614   ac_cv_path_FGREP=$FGREP
4615 fi
4616
4617    fi
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4620 $as_echo "$ac_cv_path_FGREP" >&6; }
4621  FGREP="$ac_cv_path_FGREP"
4622
4623
4624 test -z "$GREP" && GREP=grep
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644 # Check whether --with-gnu-ld was given.
4645 if test "${with_gnu_ld+set}" = set; then :
4646   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4647 else
4648   with_gnu_ld=no
4649 fi
4650
4651 ac_prog=ld
4652 if test yes = "$GCC"; then
4653   # Check if gcc -print-prog-name=ld gives a path.
4654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4655 $as_echo_n "checking for ld used by $CC... " >&6; }
4656   case $host in
4657   *-*-mingw*)
4658     # gcc leaves a trailing carriage return, which upsets mingw
4659     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4660   *)
4661     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4662   esac
4663   case $ac_prog in
4664     # Accept absolute paths.
4665     [\\/]* | ?:[\\/]*)
4666       re_direlt='/[^/][^/]*/\.\./'
4667       # Canonicalize the pathname of ld
4668       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4669       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4670         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4671       done
4672       test -z "$LD" && LD=$ac_prog
4673       ;;
4674   "")
4675     # If it fails, then pretend we aren't using GCC.
4676     ac_prog=ld
4677     ;;
4678   *)
4679     # If it is relative, then search for the first ld in PATH.
4680     with_gnu_ld=unknown
4681     ;;
4682   esac
4683 elif test yes = "$with_gnu_ld"; then
4684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4685 $as_echo_n "checking for GNU ld... " >&6; }
4686 else
4687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4688 $as_echo_n "checking for non-GNU ld... " >&6; }
4689 fi
4690 if ${lt_cv_path_LD+:} false; then :
4691   $as_echo_n "(cached) " >&6
4692 else
4693   if test -z "$LD"; then
4694   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4695   for ac_dir in $PATH; do
4696     IFS=$lt_save_ifs
4697     test -z "$ac_dir" && ac_dir=.
4698     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4699       lt_cv_path_LD=$ac_dir/$ac_prog
4700       # Check to see if the program is GNU ld.  I'd rather use --version,
4701       # but apparently some variants of GNU ld only accept -v.
4702       # Break only if it was the GNU/non-GNU ld that we prefer.
4703       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4704       *GNU* | *'with BFD'*)
4705         test no != "$with_gnu_ld" && break
4706         ;;
4707       *)
4708         test yes != "$with_gnu_ld" && break
4709         ;;
4710       esac
4711     fi
4712   done
4713   IFS=$lt_save_ifs
4714 else
4715   lt_cv_path_LD=$LD # Let the user override the test with a path.
4716 fi
4717 fi
4718
4719 LD=$lt_cv_path_LD
4720 if test -n "$LD"; then
4721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4722 $as_echo "$LD" >&6; }
4723 else
4724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4726 fi
4727 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4729 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4730 if ${lt_cv_prog_gnu_ld+:} false; then :
4731   $as_echo_n "(cached) " >&6
4732 else
4733   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4734 case `$LD -v 2>&1 </dev/null` in
4735 *GNU* | *'with BFD'*)
4736   lt_cv_prog_gnu_ld=yes
4737   ;;
4738 *)
4739   lt_cv_prog_gnu_ld=no
4740   ;;
4741 esac
4742 fi
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4744 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4745 with_gnu_ld=$lt_cv_prog_gnu_ld
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4756 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4757 if ${lt_cv_path_NM+:} false; then :
4758   $as_echo_n "(cached) " >&6
4759 else
4760   if test -n "$NM"; then
4761   # Let the user override the test.
4762   lt_cv_path_NM=$NM
4763 else
4764   lt_nm_to_check=${ac_tool_prefix}nm
4765   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4766     lt_nm_to_check="$lt_nm_to_check nm"
4767   fi
4768   for lt_tmp_nm in $lt_nm_to_check; do
4769     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4770     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4771       IFS=$lt_save_ifs
4772       test -z "$ac_dir" && ac_dir=.
4773       tmp_nm=$ac_dir/$lt_tmp_nm
4774       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4775         # Check to see if the nm accepts a BSD-compat flag.
4776         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4777         #   nm: unknown option "B" ignored
4778         # Tru64's nm complains that /dev/null is an invalid object file
4779         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4780         case $build_os in
4781         mingw*) lt_bad_file=conftest.nm/nofile ;;
4782         *) lt_bad_file=/dev/null ;;
4783         esac
4784         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4785         *$lt_bad_file* | *'Invalid file or object type'*)
4786           lt_cv_path_NM="$tmp_nm -B"
4787           break 2
4788           ;;
4789         *)
4790           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4791           */dev/null*)
4792             lt_cv_path_NM="$tmp_nm -p"
4793             break 2
4794             ;;
4795           *)
4796             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4797             continue # so that we can try to find one that supports BSD flags
4798             ;;
4799           esac
4800           ;;
4801         esac
4802       fi
4803     done
4804     IFS=$lt_save_ifs
4805   done
4806   : ${lt_cv_path_NM=no}
4807 fi
4808 fi
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4810 $as_echo "$lt_cv_path_NM" >&6; }
4811 if test no != "$lt_cv_path_NM"; then
4812   NM=$lt_cv_path_NM
4813 else
4814   # Didn't find any BSD compatible name lister, look for dumpbin.
4815   if test -n "$DUMPBIN"; then :
4816     # Let the user override the test.
4817   else
4818     if test -n "$ac_tool_prefix"; then
4819   for ac_prog in dumpbin "link -dump"
4820   do
4821     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4824 $as_echo_n "checking for $ac_word... " >&6; }
4825 if ${ac_cv_prog_DUMPBIN+:} false; then :
4826   $as_echo_n "(cached) " >&6
4827 else
4828   if test -n "$DUMPBIN"; then
4829   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4830 else
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH
4833 do
4834   IFS=$as_save_IFS
4835   test -z "$as_dir" && as_dir=.
4836     for ac_exec_ext in '' $ac_executable_extensions; do
4837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4838     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840     break 2
4841   fi
4842 done
4843   done
4844 IFS=$as_save_IFS
4845
4846 fi
4847 fi
4848 DUMPBIN=$ac_cv_prog_DUMPBIN
4849 if test -n "$DUMPBIN"; then
4850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4851 $as_echo "$DUMPBIN" >&6; }
4852 else
4853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4855 fi
4856
4857
4858     test -n "$DUMPBIN" && break
4859   done
4860 fi
4861 if test -z "$DUMPBIN"; then
4862   ac_ct_DUMPBIN=$DUMPBIN
4863   for ac_prog in dumpbin "link -dump"
4864 do
4865   # Extract the first word of "$ac_prog", so it can be a program name with args.
4866 set dummy $ac_prog; ac_word=$2
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868 $as_echo_n "checking for $ac_word... " >&6; }
4869 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4870   $as_echo_n "(cached) " >&6
4871 else
4872   if test -n "$ac_ct_DUMPBIN"; then
4873   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4874 else
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4877 do
4878   IFS=$as_save_IFS
4879   test -z "$as_dir" && as_dir=.
4880     for ac_exec_ext in '' $ac_executable_extensions; do
4881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4882     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4884     break 2
4885   fi
4886 done
4887   done
4888 IFS=$as_save_IFS
4889
4890 fi
4891 fi
4892 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4893 if test -n "$ac_ct_DUMPBIN"; then
4894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4895 $as_echo "$ac_ct_DUMPBIN" >&6; }
4896 else
4897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898 $as_echo "no" >&6; }
4899 fi
4900
4901
4902   test -n "$ac_ct_DUMPBIN" && break
4903 done
4904
4905   if test "x$ac_ct_DUMPBIN" = x; then
4906     DUMPBIN=":"
4907   else
4908     case $cross_compiling:$ac_tool_warned in
4909 yes:)
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4912 ac_tool_warned=yes ;;
4913 esac
4914     DUMPBIN=$ac_ct_DUMPBIN
4915   fi
4916 fi
4917
4918     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4919     *COFF*)
4920       DUMPBIN="$DUMPBIN -symbols -headers"
4921       ;;
4922     *)
4923       DUMPBIN=:
4924       ;;
4925     esac
4926   fi
4927
4928   if test : != "$DUMPBIN"; then
4929     NM=$DUMPBIN
4930   fi
4931 fi
4932 test -z "$NM" && NM=nm
4933
4934
4935
4936
4937
4938
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4940 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4941 if ${lt_cv_nm_interface+:} false; then :
4942   $as_echo_n "(cached) " >&6
4943 else
4944   lt_cv_nm_interface="BSD nm"
4945   echo "int some_variable = 0;" > conftest.$ac_ext
4946   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4947   (eval "$ac_compile" 2>conftest.err)
4948   cat conftest.err >&5
4949   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4950   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4951   cat conftest.err >&5
4952   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4953   cat conftest.out >&5
4954   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4955     lt_cv_nm_interface="MS dumpbin"
4956   fi
4957   rm -f conftest*
4958 fi
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4960 $as_echo "$lt_cv_nm_interface" >&6; }
4961
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4963 $as_echo_n "checking whether ln -s works... " >&6; }
4964 LN_S=$as_ln_s
4965 if test "$LN_S" = "ln -s"; then
4966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4967 $as_echo "yes" >&6; }
4968 else
4969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4970 $as_echo "no, using $LN_S" >&6; }
4971 fi
4972
4973 # find the maximum length of command line arguments
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4975 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4976 if ${lt_cv_sys_max_cmd_len+:} false; then :
4977   $as_echo_n "(cached) " >&6
4978 else
4979     i=0
4980   teststring=ABCD
4981
4982   case $build_os in
4983   msdosdjgpp*)
4984     # On DJGPP, this test can blow up pretty badly due to problems in libc
4985     # (any single argument exceeding 2000 bytes causes a buffer overrun
4986     # during glob expansion).  Even if it were fixed, the result of this
4987     # check would be larger than it should be.
4988     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4989     ;;
4990
4991   gnu*)
4992     # Under GNU Hurd, this test is not required because there is
4993     # no limit to the length of command line arguments.
4994     # Libtool will interpret -1 as no limit whatsoever
4995     lt_cv_sys_max_cmd_len=-1;
4996     ;;
4997
4998   cygwin* | mingw* | cegcc*)
4999     # On Win9x/ME, this test blows up -- it succeeds, but takes
5000     # about 5 minutes as the teststring grows exponentially.
5001     # Worse, since 9x/ME are not pre-emptively multitasking,
5002     # you end up with a "frozen" computer, even though with patience
5003     # the test eventually succeeds (with a max line length of 256k).
5004     # Instead, let's just punt: use the minimum linelength reported by
5005     # all of the supported platforms: 8192 (on NT/2K/XP).
5006     lt_cv_sys_max_cmd_len=8192;
5007     ;;
5008
5009   mint*)
5010     # On MiNT this can take a long time and run out of memory.
5011     lt_cv_sys_max_cmd_len=8192;
5012     ;;
5013
5014   amigaos*)
5015     # On AmigaOS with pdksh, this test takes hours, literally.
5016     # So we just punt and use a minimum line length of 8192.
5017     lt_cv_sys_max_cmd_len=8192;
5018     ;;
5019
5020   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5021     # This has been around since 386BSD, at least.  Likely further.
5022     if test -x /sbin/sysctl; then
5023       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5024     elif test -x /usr/sbin/sysctl; then
5025       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5026     else
5027       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5028     fi
5029     # And add a safety zone
5030     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5031     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5032     ;;
5033
5034   interix*)
5035     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5036     lt_cv_sys_max_cmd_len=196608
5037     ;;
5038
5039   os2*)
5040     # The test takes a long time on OS/2.
5041     lt_cv_sys_max_cmd_len=8192
5042     ;;
5043
5044   osf*)
5045     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5046     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5047     # nice to cause kernel panics so lets avoid the loop below.
5048     # First set a reasonable default.
5049     lt_cv_sys_max_cmd_len=16384
5050     #
5051     if test -x /sbin/sysconfig; then
5052       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5053         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5054       esac
5055     fi
5056     ;;
5057   sco3.2v5*)
5058     lt_cv_sys_max_cmd_len=102400
5059     ;;
5060   sysv5* | sco5v6* | sysv4.2uw2*)
5061     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5062     if test -n "$kargmax"; then
5063       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5064     else
5065       lt_cv_sys_max_cmd_len=32768
5066     fi
5067     ;;
5068   *)
5069     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5070     if test -n "$lt_cv_sys_max_cmd_len" && \
5071        test undefined != "$lt_cv_sys_max_cmd_len"; then
5072       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5073       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5074     else
5075       # Make teststring a little bigger before we do anything with it.
5076       # a 1K string should be a reasonable start.
5077       for i in 1 2 3 4 5 6 7 8; do
5078         teststring=$teststring$teststring
5079       done
5080       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5081       # If test is not a shell built-in, we'll probably end up computing a
5082       # maximum length that is only half of the actual maximum length, but
5083       # we can't tell.
5084       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5085                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5086               test 17 != "$i" # 1/2 MB should be enough
5087       do
5088         i=`expr $i + 1`
5089         teststring=$teststring$teststring
5090       done
5091       # Only check the string length outside the loop.
5092       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5093       teststring=
5094       # Add a significant safety factor because C++ compilers can tack on
5095       # massive amounts of additional arguments before passing them to the
5096       # linker.  It appears as though 1/2 is a usable value.
5097       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5098     fi
5099     ;;
5100   esac
5101
5102 fi
5103
5104 if test -n "$lt_cv_sys_max_cmd_len"; then
5105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5106 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5107 else
5108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5109 $as_echo "none" >&6; }
5110 fi
5111 max_cmd_len=$lt_cv_sys_max_cmd_len
5112
5113
5114
5115
5116
5117
5118 : ${CP="cp -f"}
5119 : ${MV="mv -f"}
5120 : ${RM="rm -f"}
5121
5122 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5123   lt_unset=unset
5124 else
5125   lt_unset=false
5126 fi
5127
5128
5129
5130
5131
5132 # test EBCDIC or ASCII
5133 case `echo X|tr X '\101'` in
5134  A) # ASCII based system
5135     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5136   lt_SP2NL='tr \040 \012'
5137   lt_NL2SP='tr \015\012 \040\040'
5138   ;;
5139  *) # EBCDIC based system
5140   lt_SP2NL='tr \100 \n'
5141   lt_NL2SP='tr \r\n \100\100'
5142   ;;
5143 esac
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5154 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5155 if ${lt_cv_to_host_file_cmd+:} false; then :
5156   $as_echo_n "(cached) " >&6
5157 else
5158   case $host in
5159   *-*-mingw* )
5160     case $build in
5161       *-*-mingw* ) # actually msys
5162         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5163         ;;
5164       *-*-cygwin* )
5165         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5166         ;;
5167       * ) # otherwise, assume *nix
5168         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5169         ;;
5170     esac
5171     ;;
5172   *-*-cygwin* )
5173     case $build in
5174       *-*-mingw* ) # actually msys
5175         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5176         ;;
5177       *-*-cygwin* )
5178         lt_cv_to_host_file_cmd=func_convert_file_noop
5179         ;;
5180       * ) # otherwise, assume *nix
5181         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5182         ;;
5183     esac
5184     ;;
5185   * ) # unhandled hosts (and "normal" native builds)
5186     lt_cv_to_host_file_cmd=func_convert_file_noop
5187     ;;
5188 esac
5189
5190 fi
5191
5192 to_host_file_cmd=$lt_cv_to_host_file_cmd
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5194 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5195
5196
5197
5198
5199
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5201 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5202 if ${lt_cv_to_tool_file_cmd+:} false; then :
5203   $as_echo_n "(cached) " >&6
5204 else
5205   #assume ordinary cross tools, or native build.
5206 lt_cv_to_tool_file_cmd=func_convert_file_noop
5207 case $host in
5208   *-*-mingw* )
5209     case $build in
5210       *-*-mingw* ) # actually msys
5211         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5212         ;;
5213     esac
5214     ;;
5215 esac
5216
5217 fi
5218
5219 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5221 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5222
5223
5224
5225
5226
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5228 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5229 if ${lt_cv_ld_reload_flag+:} false; then :
5230   $as_echo_n "(cached) " >&6
5231 else
5232   lt_cv_ld_reload_flag='-r'
5233 fi
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5235 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5236 reload_flag=$lt_cv_ld_reload_flag
5237 case $reload_flag in
5238 "" | " "*) ;;
5239 *) reload_flag=" $reload_flag" ;;
5240 esac
5241 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5242 case $host_os in
5243   cygwin* | mingw* | pw32* | cegcc*)
5244     if test yes != "$GCC"; then
5245       reload_cmds=false
5246     fi
5247     ;;
5248   darwin*)
5249     if test yes = "$GCC"; then
5250       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5251     else
5252       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5253     fi
5254     ;;
5255 esac
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265 if test -n "$ac_tool_prefix"; then
5266   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5267 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if ${ac_cv_prog_OBJDUMP+:} false; then :
5271   $as_echo_n "(cached) " >&6
5272 else
5273   if test -n "$OBJDUMP"; then
5274   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5278 do
5279   IFS=$as_save_IFS
5280   test -z "$as_dir" && as_dir=.
5281     for ac_exec_ext in '' $ac_executable_extensions; do
5282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285     break 2
5286   fi
5287 done
5288   done
5289 IFS=$as_save_IFS
5290
5291 fi
5292 fi
5293 OBJDUMP=$ac_cv_prog_OBJDUMP
5294 if test -n "$OBJDUMP"; then
5295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5296 $as_echo "$OBJDUMP" >&6; }
5297 else
5298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5300 fi
5301
5302
5303 fi
5304 if test -z "$ac_cv_prog_OBJDUMP"; then
5305   ac_ct_OBJDUMP=$OBJDUMP
5306   # Extract the first word of "objdump", so it can be a program name with args.
5307 set dummy objdump; ac_word=$2
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309 $as_echo_n "checking for $ac_word... " >&6; }
5310 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5311   $as_echo_n "(cached) " >&6
5312 else
5313   if test -n "$ac_ct_OBJDUMP"; then
5314   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5315 else
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 for as_dir in $PATH
5318 do
5319   IFS=$as_save_IFS
5320   test -z "$as_dir" && as_dir=.
5321     for ac_exec_ext in '' $ac_executable_extensions; do
5322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5323     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5325     break 2
5326   fi
5327 done
5328   done
5329 IFS=$as_save_IFS
5330
5331 fi
5332 fi
5333 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5334 if test -n "$ac_ct_OBJDUMP"; then
5335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5336 $as_echo "$ac_ct_OBJDUMP" >&6; }
5337 else
5338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5340 fi
5341
5342   if test "x$ac_ct_OBJDUMP" = x; then
5343     OBJDUMP="false"
5344   else
5345     case $cross_compiling:$ac_tool_warned in
5346 yes:)
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5349 ac_tool_warned=yes ;;
5350 esac
5351     OBJDUMP=$ac_ct_OBJDUMP
5352   fi
5353 else
5354   OBJDUMP="$ac_cv_prog_OBJDUMP"
5355 fi
5356
5357 test -z "$OBJDUMP" && OBJDUMP=objdump
5358
5359
5360
5361
5362
5363
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5365 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5366 if ${lt_cv_deplibs_check_method+:} false; then :
5367   $as_echo_n "(cached) " >&6
5368 else
5369   lt_cv_file_magic_cmd='$MAGIC_CMD'
5370 lt_cv_file_magic_test_file=
5371 lt_cv_deplibs_check_method='unknown'
5372 # Need to set the preceding variable on all platforms that support
5373 # interlibrary dependencies.
5374 # 'none' -- dependencies not supported.
5375 # 'unknown' -- same as none, but documents that we really don't know.
5376 # 'pass_all' -- all dependencies passed with no checks.
5377 # 'test_compile' -- check by making test program.
5378 # 'file_magic [[regex]]' -- check by looking for files in library path
5379 # that responds to the $file_magic_cmd with a given extended regex.
5380 # If you have 'file' or equivalent on your system and you're not sure
5381 # whether 'pass_all' will *always* work, you probably want this one.
5382
5383 case $host_os in
5384 aix[4-9]*)
5385   lt_cv_deplibs_check_method=pass_all
5386   ;;
5387
5388 beos*)
5389   lt_cv_deplibs_check_method=pass_all
5390   ;;
5391
5392 bsdi[45]*)
5393   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5394   lt_cv_file_magic_cmd='/usr/bin/file -L'
5395   lt_cv_file_magic_test_file=/shlib/libc.so
5396   ;;
5397
5398 cygwin*)
5399   # func_win32_libid is a shell function defined in ltmain.sh
5400   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5401   lt_cv_file_magic_cmd='func_win32_libid'
5402   ;;
5403
5404 mingw* | pw32*)
5405   # Base MSYS/MinGW do not provide the 'file' command needed by
5406   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5407   # unless we find 'file', for example because we are cross-compiling.
5408   if ( file / ) >/dev/null 2>&1; then
5409     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5410     lt_cv_file_magic_cmd='func_win32_libid'
5411   else
5412     # Keep this pattern in sync with the one in func_win32_libid.
5413     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5414     lt_cv_file_magic_cmd='$OBJDUMP -f'
5415   fi
5416   ;;
5417
5418 cegcc*)
5419   # use the weaker test based on 'objdump'. See mingw*.
5420   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5421   lt_cv_file_magic_cmd='$OBJDUMP -f'
5422   ;;
5423
5424 darwin* | rhapsody*)
5425   lt_cv_deplibs_check_method=pass_all
5426   ;;
5427
5428 freebsd* | dragonfly*)
5429   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5430     case $host_cpu in
5431     i*86 )
5432       # Not sure whether the presence of OpenBSD here was a mistake.
5433       # Let's accept both of them until this is cleared up.
5434       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5435       lt_cv_file_magic_cmd=/usr/bin/file
5436       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5437       ;;
5438     esac
5439   else
5440     lt_cv_deplibs_check_method=pass_all
5441   fi
5442   ;;
5443
5444 haiku*)
5445   lt_cv_deplibs_check_method=pass_all
5446   ;;
5447
5448 hpux10.20* | hpux11*)
5449   lt_cv_file_magic_cmd=/usr/bin/file
5450   case $host_cpu in
5451   ia64*)
5452     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5453     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5454     ;;
5455   hppa*64*)
5456     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]'
5457     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5458     ;;
5459   *)
5460     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5461     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5462     ;;
5463   esac
5464   ;;
5465
5466 interix[3-9]*)
5467   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5468   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5469   ;;
5470
5471 irix5* | irix6* | nonstopux*)
5472   case $LD in
5473   *-32|*"-32 ") libmagic=32-bit;;
5474   *-n32|*"-n32 ") libmagic=N32;;
5475   *-64|*"-64 ") libmagic=64-bit;;
5476   *) libmagic=never-match;;
5477   esac
5478   lt_cv_deplibs_check_method=pass_all
5479   ;;
5480
5481 # This must be glibc/ELF.
5482 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5483   lt_cv_deplibs_check_method=pass_all
5484   ;;
5485
5486 netbsd* | netbsdelf*-gnu)
5487   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5488     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5489   else
5490     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5491   fi
5492   ;;
5493
5494 newos6*)
5495   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5496   lt_cv_file_magic_cmd=/usr/bin/file
5497   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5498   ;;
5499
5500 *nto* | *qnx*)
5501   lt_cv_deplibs_check_method=pass_all
5502   ;;
5503
5504 openbsd* | bitrig*)
5505   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5506     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5507   else
5508     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5509   fi
5510   ;;
5511
5512 osf3* | osf4* | osf5*)
5513   lt_cv_deplibs_check_method=pass_all
5514   ;;
5515
5516 rdos*)
5517   lt_cv_deplibs_check_method=pass_all
5518   ;;
5519
5520 solaris*)
5521   lt_cv_deplibs_check_method=pass_all
5522   ;;
5523
5524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5525   lt_cv_deplibs_check_method=pass_all
5526   ;;
5527
5528 sysv4 | sysv4.3*)
5529   case $host_vendor in
5530   motorola)
5531     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]'
5532     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5533     ;;
5534   ncr)
5535     lt_cv_deplibs_check_method=pass_all
5536     ;;
5537   sequent)
5538     lt_cv_file_magic_cmd='/bin/file'
5539     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5540     ;;
5541   sni)
5542     lt_cv_file_magic_cmd='/bin/file'
5543     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5544     lt_cv_file_magic_test_file=/lib/libc.so
5545     ;;
5546   siemens)
5547     lt_cv_deplibs_check_method=pass_all
5548     ;;
5549   pc)
5550     lt_cv_deplibs_check_method=pass_all
5551     ;;
5552   esac
5553   ;;
5554
5555 tpf*)
5556   lt_cv_deplibs_check_method=pass_all
5557   ;;
5558 os2*)
5559   lt_cv_deplibs_check_method=pass_all
5560   ;;
5561 esac
5562
5563 fi
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5565 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5566
5567 file_magic_glob=
5568 want_nocaseglob=no
5569 if test "$build" = "$host"; then
5570   case $host_os in
5571   mingw* | pw32*)
5572     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5573       want_nocaseglob=yes
5574     else
5575       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5576     fi
5577     ;;
5578   esac
5579 fi
5580
5581 file_magic_cmd=$lt_cv_file_magic_cmd
5582 deplibs_check_method=$lt_cv_deplibs_check_method
5583 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606 if test -n "$ac_tool_prefix"; then
5607   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5608 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610 $as_echo_n "checking for $ac_word... " >&6; }
5611 if ${ac_cv_prog_DLLTOOL+:} false; then :
5612   $as_echo_n "(cached) " >&6
5613 else
5614   if test -n "$DLLTOOL"; then
5615   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5616 else
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5619 do
5620   IFS=$as_save_IFS
5621   test -z "$as_dir" && as_dir=.
5622     for ac_exec_ext in '' $ac_executable_extensions; do
5623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5624     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626     break 2
5627   fi
5628 done
5629   done
5630 IFS=$as_save_IFS
5631
5632 fi
5633 fi
5634 DLLTOOL=$ac_cv_prog_DLLTOOL
5635 if test -n "$DLLTOOL"; then
5636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5637 $as_echo "$DLLTOOL" >&6; }
5638 else
5639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5641 fi
5642
5643
5644 fi
5645 if test -z "$ac_cv_prog_DLLTOOL"; then
5646   ac_ct_DLLTOOL=$DLLTOOL
5647   # Extract the first word of "dlltool", so it can be a program name with args.
5648 set dummy dlltool; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650 $as_echo_n "checking for $ac_word... " >&6; }
5651 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5652   $as_echo_n "(cached) " >&6
5653 else
5654   if test -n "$ac_ct_DLLTOOL"; then
5655   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5656 else
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5659 do
5660   IFS=$as_save_IFS
5661   test -z "$as_dir" && as_dir=.
5662     for ac_exec_ext in '' $ac_executable_extensions; do
5663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666     break 2
5667   fi
5668 done
5669   done
5670 IFS=$as_save_IFS
5671
5672 fi
5673 fi
5674 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5675 if test -n "$ac_ct_DLLTOOL"; then
5676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5677 $as_echo "$ac_ct_DLLTOOL" >&6; }
5678 else
5679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5681 fi
5682
5683   if test "x$ac_ct_DLLTOOL" = x; then
5684     DLLTOOL="false"
5685   else
5686     case $cross_compiling:$ac_tool_warned in
5687 yes:)
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5690 ac_tool_warned=yes ;;
5691 esac
5692     DLLTOOL=$ac_ct_DLLTOOL
5693   fi
5694 else
5695   DLLTOOL="$ac_cv_prog_DLLTOOL"
5696 fi
5697
5698 test -z "$DLLTOOL" && DLLTOOL=dlltool
5699
5700
5701
5702
5703
5704
5705
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5707 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5708 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5709   $as_echo_n "(cached) " >&6
5710 else
5711   lt_cv_sharedlib_from_linklib_cmd='unknown'
5712
5713 case $host_os in
5714 cygwin* | mingw* | pw32* | cegcc*)
5715   # two different shell functions defined in ltmain.sh;
5716   # decide which one to use based on capabilities of $DLLTOOL
5717   case `$DLLTOOL --help 2>&1` in
5718   *--identify-strict*)
5719     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5720     ;;
5721   *)
5722     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5723     ;;
5724   esac
5725   ;;
5726 *)
5727   # fallback: assume linklib IS sharedlib
5728   lt_cv_sharedlib_from_linklib_cmd=$ECHO
5729   ;;
5730 esac
5731
5732 fi
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5734 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5735 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5736 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5737
5738
5739
5740
5741
5742
5743
5744
5745 if test -n "$ac_tool_prefix"; then
5746   for ac_prog in ar
5747   do
5748     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5749 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751 $as_echo_n "checking for $ac_word... " >&6; }
5752 if ${ac_cv_prog_AR+:} false; then :
5753   $as_echo_n "(cached) " >&6
5754 else
5755   if test -n "$AR"; then
5756   ac_cv_prog_AR="$AR" # Let the user override the test.
5757 else
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 for as_dir in $PATH
5760 do
5761   IFS=$as_save_IFS
5762   test -z "$as_dir" && as_dir=.
5763     for ac_exec_ext in '' $ac_executable_extensions; do
5764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5765     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5767     break 2
5768   fi
5769 done
5770   done
5771 IFS=$as_save_IFS
5772
5773 fi
5774 fi
5775 AR=$ac_cv_prog_AR
5776 if test -n "$AR"; then
5777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5778 $as_echo "$AR" >&6; }
5779 else
5780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 $as_echo "no" >&6; }
5782 fi
5783
5784
5785     test -n "$AR" && break
5786   done
5787 fi
5788 if test -z "$AR"; then
5789   ac_ct_AR=$AR
5790   for ac_prog in ar
5791 do
5792   # Extract the first word of "$ac_prog", so it can be a program name with args.
5793 set dummy $ac_prog; ac_word=$2
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 $as_echo_n "checking for $ac_word... " >&6; }
5796 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5797   $as_echo_n "(cached) " >&6
5798 else
5799   if test -n "$ac_ct_AR"; then
5800   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805   IFS=$as_save_IFS
5806   test -z "$as_dir" && as_dir=.
5807     for ac_exec_ext in '' $ac_executable_extensions; do
5808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809     ac_cv_prog_ac_ct_AR="$ac_prog"
5810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811     break 2
5812   fi
5813 done
5814   done
5815 IFS=$as_save_IFS
5816
5817 fi
5818 fi
5819 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5820 if test -n "$ac_ct_AR"; then
5821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5822 $as_echo "$ac_ct_AR" >&6; }
5823 else
5824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 $as_echo "no" >&6; }
5826 fi
5827
5828
5829   test -n "$ac_ct_AR" && break
5830 done
5831
5832   if test "x$ac_ct_AR" = x; then
5833     AR="false"
5834   else
5835     case $cross_compiling:$ac_tool_warned in
5836 yes:)
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5839 ac_tool_warned=yes ;;
5840 esac
5841     AR=$ac_ct_AR
5842   fi
5843 fi
5844
5845 : ${AR=ar}
5846 : ${AR_FLAGS=cru}
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5859 $as_echo_n "checking for archiver @FILE support... " >&6; }
5860 if ${lt_cv_ar_at_file+:} false; then :
5861   $as_echo_n "(cached) " >&6
5862 else
5863   lt_cv_ar_at_file=no
5864    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h.  */
5866
5867 int
5868 main ()
5869 {
5870
5871   ;
5872   return 0;
5873 }
5874 _ACEOF
5875 if ac_fn_c_try_compile "$LINENO"; then :
5876   echo conftest.$ac_objext > conftest.lst
5877       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5878       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5879   (eval $lt_ar_try) 2>&5
5880   ac_status=$?
5881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5882   test $ac_status = 0; }
5883       if test 0 -eq "$ac_status"; then
5884         # Ensure the archiver fails upon bogus file names.
5885         rm -f conftest.$ac_objext libconftest.a
5886         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5887   (eval $lt_ar_try) 2>&5
5888   ac_status=$?
5889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5890   test $ac_status = 0; }
5891         if test 0 -ne "$ac_status"; then
5892           lt_cv_ar_at_file=@
5893         fi
5894       fi
5895       rm -f conftest.* libconftest.a
5896
5897 fi
5898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5899
5900 fi
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5902 $as_echo "$lt_cv_ar_at_file" >&6; }
5903
5904 if test no = "$lt_cv_ar_at_file"; then
5905   archiver_list_spec=
5906 else
5907   archiver_list_spec=$lt_cv_ar_at_file
5908 fi
5909
5910
5911
5912
5913
5914
5915
5916 if test -n "$ac_tool_prefix"; then
5917   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5918 set dummy ${ac_tool_prefix}strip; ac_word=$2
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920 $as_echo_n "checking for $ac_word... " >&6; }
5921 if ${ac_cv_prog_STRIP+:} false; then :
5922   $as_echo_n "(cached) " >&6
5923 else
5924   if test -n "$STRIP"; then
5925   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5926 else
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930   IFS=$as_save_IFS
5931   test -z "$as_dir" && as_dir=.
5932     for ac_exec_ext in '' $ac_executable_extensions; do
5933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5936     break 2
5937   fi
5938 done
5939   done
5940 IFS=$as_save_IFS
5941
5942 fi
5943 fi
5944 STRIP=$ac_cv_prog_STRIP
5945 if test -n "$STRIP"; then
5946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5947 $as_echo "$STRIP" >&6; }
5948 else
5949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950 $as_echo "no" >&6; }
5951 fi
5952
5953
5954 fi
5955 if test -z "$ac_cv_prog_STRIP"; then
5956   ac_ct_STRIP=$STRIP
5957   # Extract the first word of "strip", so it can be a program name with args.
5958 set dummy strip; ac_word=$2
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5960 $as_echo_n "checking for $ac_word... " >&6; }
5961 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5962   $as_echo_n "(cached) " >&6
5963 else
5964   if test -n "$ac_ct_STRIP"; then
5965   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5966 else
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 for as_dir in $PATH
5969 do
5970   IFS=$as_save_IFS
5971   test -z "$as_dir" && as_dir=.
5972     for ac_exec_ext in '' $ac_executable_extensions; do
5973   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5974     ac_cv_prog_ac_ct_STRIP="strip"
5975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5976     break 2
5977   fi
5978 done
5979   done
5980 IFS=$as_save_IFS
5981
5982 fi
5983 fi
5984 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5985 if test -n "$ac_ct_STRIP"; then
5986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5987 $as_echo "$ac_ct_STRIP" >&6; }
5988 else
5989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990 $as_echo "no" >&6; }
5991 fi
5992
5993   if test "x$ac_ct_STRIP" = x; then
5994     STRIP=":"
5995   else
5996     case $cross_compiling:$ac_tool_warned in
5997 yes:)
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6000 ac_tool_warned=yes ;;
6001 esac
6002     STRIP=$ac_ct_STRIP
6003   fi
6004 else
6005   STRIP="$ac_cv_prog_STRIP"
6006 fi
6007
6008 test -z "$STRIP" && STRIP=:
6009
6010
6011
6012
6013
6014
6015 if test -n "$ac_tool_prefix"; then
6016   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6017 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6019 $as_echo_n "checking for $ac_word... " >&6; }
6020 if ${ac_cv_prog_RANLIB+:} false; then :
6021   $as_echo_n "(cached) " >&6
6022 else
6023   if test -n "$RANLIB"; then
6024   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6025 else
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 for as_dir in $PATH
6028 do
6029   IFS=$as_save_IFS
6030   test -z "$as_dir" && as_dir=.
6031     for ac_exec_ext in '' $ac_executable_extensions; do
6032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6033     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6035     break 2
6036   fi
6037 done
6038   done
6039 IFS=$as_save_IFS
6040
6041 fi
6042 fi
6043 RANLIB=$ac_cv_prog_RANLIB
6044 if test -n "$RANLIB"; then
6045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6046 $as_echo "$RANLIB" >&6; }
6047 else
6048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049 $as_echo "no" >&6; }
6050 fi
6051
6052
6053 fi
6054 if test -z "$ac_cv_prog_RANLIB"; then
6055   ac_ct_RANLIB=$RANLIB
6056   # Extract the first word of "ranlib", so it can be a program name with args.
6057 set dummy ranlib; ac_word=$2
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059 $as_echo_n "checking for $ac_word... " >&6; }
6060 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6061   $as_echo_n "(cached) " >&6
6062 else
6063   if test -n "$ac_ct_RANLIB"; then
6064   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6065 else
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH
6068 do
6069   IFS=$as_save_IFS
6070   test -z "$as_dir" && as_dir=.
6071     for ac_exec_ext in '' $ac_executable_extensions; do
6072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6073     ac_cv_prog_ac_ct_RANLIB="ranlib"
6074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075     break 2
6076   fi
6077 done
6078   done
6079 IFS=$as_save_IFS
6080
6081 fi
6082 fi
6083 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6084 if test -n "$ac_ct_RANLIB"; then
6085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6086 $as_echo "$ac_ct_RANLIB" >&6; }
6087 else
6088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6090 fi
6091
6092   if test "x$ac_ct_RANLIB" = x; then
6093     RANLIB=":"
6094   else
6095     case $cross_compiling:$ac_tool_warned in
6096 yes:)
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6099 ac_tool_warned=yes ;;
6100 esac
6101     RANLIB=$ac_ct_RANLIB
6102   fi
6103 else
6104   RANLIB="$ac_cv_prog_RANLIB"
6105 fi
6106
6107 test -z "$RANLIB" && RANLIB=:
6108
6109
6110
6111
6112
6113
6114 # Determine commands to create old-style static archives.
6115 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6116 old_postinstall_cmds='chmod 644 $oldlib'
6117 old_postuninstall_cmds=
6118
6119 if test -n "$RANLIB"; then
6120   case $host_os in
6121   bitrig* | openbsd*)
6122     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6123     ;;
6124   *)
6125     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6126     ;;
6127   esac
6128   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6129 fi
6130
6131 case $host_os in
6132   darwin*)
6133     lock_old_archive_extraction=yes ;;
6134   *)
6135     lock_old_archive_extraction=no ;;
6136 esac
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176 # If no C compiler was specified, use CC.
6177 LTCC=${LTCC-"$CC"}
6178
6179 # If no C compiler flags were specified, use CFLAGS.
6180 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6181
6182 # Allow CC to be a program name with arguments.
6183 compiler=$CC
6184
6185
6186 # Check for command to grab the raw symbol name followed by C symbol from nm.
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6188 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6189 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6190   $as_echo_n "(cached) " >&6
6191 else
6192
6193 # These are sane defaults that work on at least a few old systems.
6194 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6195
6196 # Character class describing NM global symbol codes.
6197 symcode='[BCDEGRST]'
6198
6199 # Regexp to match symbols that can be accessed directly from C.
6200 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6201
6202 # Define system-specific variables.
6203 case $host_os in
6204 aix*)
6205   symcode='[BCDT]'
6206   ;;
6207 cygwin* | mingw* | pw32* | cegcc*)
6208   symcode='[ABCDGISTW]'
6209   ;;
6210 hpux*)
6211   if test ia64 = "$host_cpu"; then
6212     symcode='[ABCDEGRST]'
6213   fi
6214   ;;
6215 irix* | nonstopux*)
6216   symcode='[BCDEGRST]'
6217   ;;
6218 osf*)
6219   symcode='[BCDEGQRST]'
6220   ;;
6221 solaris*)
6222   symcode='[BDRT]'
6223   ;;
6224 sco3.2v5*)
6225   symcode='[DT]'
6226   ;;
6227 sysv4.2uw2*)
6228   symcode='[DT]'
6229   ;;
6230 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6231   symcode='[ABDT]'
6232   ;;
6233 sysv4)
6234   symcode='[DFNSTU]'
6235   ;;
6236 esac
6237
6238 # If we're using GNU nm, then use its standard symbol codes.
6239 case `$NM -V 2>&1` in
6240 *GNU* | *'with BFD'*)
6241   symcode='[ABCDGIRSTW]' ;;
6242 esac
6243
6244 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6245   # Gets list of data symbols to import.
6246   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6247   # Adjust the below global symbol transforms to fixup imported variables.
6248   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6249   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6250   lt_c_name_lib_hook="\
6251   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6252   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6253 else
6254   # Disable hooks by default.
6255   lt_cv_sys_global_symbol_to_import=
6256   lt_cdecl_hook=
6257   lt_c_name_hook=
6258   lt_c_name_lib_hook=
6259 fi
6260
6261 # Transform an extracted symbol line into a proper C declaration.
6262 # Some systems (esp. on ia64) link data and code symbols differently,
6263 # so use this general approach.
6264 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6265 $lt_cdecl_hook\
6266 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6267 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6268
6269 # Transform an extracted symbol line into symbol name and symbol address
6270 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6271 $lt_c_name_hook\
6272 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6273 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6274
6275 # Transform an extracted symbol line into symbol name with lib prefix and
6276 # symbol address.
6277 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6278 $lt_c_name_lib_hook\
6279 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6280 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6281 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6282
6283 # Handle CRLF in mingw tool chain
6284 opt_cr=
6285 case $build_os in
6286 mingw*)
6287   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6288   ;;
6289 esac
6290
6291 # Try without a prefix underscore, then with it.
6292 for ac_symprfx in "" "_"; do
6293
6294   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6295   symxfrm="\\1 $ac_symprfx\\2 \\2"
6296
6297   # Write the raw and C identifiers.
6298   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6299     # Fake it for dumpbin and say T for any non-static function,
6300     # D for any global variable and I for any imported variable.
6301     # Also find C++ and __fastcall symbols from MSVC++,
6302     # which start with @ or ?.
6303     lt_cv_sys_global_symbol_pipe="$AWK '"\
6304 "     {last_section=section; section=\$ 3};"\
6305 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6306 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6307 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6308 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6309 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6310 "     \$ 0!~/External *\|/{next};"\
6311 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6312 "     {if(hide[section]) next};"\
6313 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6314 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6315 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6316 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6317 "     ' prfx=^$ac_symprfx"
6318   else
6319     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6320   fi
6321   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6322
6323   # Check to see that the pipe works correctly.
6324   pipe_works=no
6325
6326   rm -f conftest*
6327   cat > conftest.$ac_ext <<_LT_EOF
6328 #ifdef __cplusplus
6329 extern "C" {
6330 #endif
6331 char nm_test_var;
6332 void nm_test_func(void);
6333 void nm_test_func(void){}
6334 #ifdef __cplusplus
6335 }
6336 #endif
6337 int main(){nm_test_var='a';nm_test_func();return(0);}
6338 _LT_EOF
6339
6340   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6341   (eval $ac_compile) 2>&5
6342   ac_status=$?
6343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6344   test $ac_status = 0; }; then
6345     # Now try to grab the symbols.
6346     nlist=conftest.nm
6347     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6348   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6349   ac_status=$?
6350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6351   test $ac_status = 0; } && test -s "$nlist"; then
6352       # Try sorting and uniquifying the output.
6353       if sort "$nlist" | uniq > "$nlist"T; then
6354         mv -f "$nlist"T "$nlist"
6355       else
6356         rm -f "$nlist"T
6357       fi
6358
6359       # Make sure that we snagged all the symbols we need.
6360       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6361         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6362           cat <<_LT_EOF > conftest.$ac_ext
6363 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6364 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6365 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6366    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6367 # define LT_DLSYM_CONST
6368 #elif defined __osf__
6369 /* This system does not cope well with relocations in const data.  */
6370 # define LT_DLSYM_CONST
6371 #else
6372 # define LT_DLSYM_CONST const
6373 #endif
6374
6375 #ifdef __cplusplus
6376 extern "C" {
6377 #endif
6378
6379 _LT_EOF
6380           # Now generate the symbol file.
6381           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6382
6383           cat <<_LT_EOF >> conftest.$ac_ext
6384
6385 /* The mapping between symbol names and symbols.  */
6386 LT_DLSYM_CONST struct {
6387   const char *name;
6388   void       *address;
6389 }
6390 lt__PROGRAM__LTX_preloaded_symbols[] =
6391 {
6392   { "@PROGRAM@", (void *) 0 },
6393 _LT_EOF
6394           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6395           cat <<\_LT_EOF >> conftest.$ac_ext
6396   {0, (void *) 0}
6397 };
6398
6399 /* This works around a problem in FreeBSD linker */
6400 #ifdef FREEBSD_WORKAROUND
6401 static const void *lt_preloaded_setup() {
6402   return lt__PROGRAM__LTX_preloaded_symbols;
6403 }
6404 #endif
6405
6406 #ifdef __cplusplus
6407 }
6408 #endif
6409 _LT_EOF
6410           # Now try linking the two files.
6411           mv conftest.$ac_objext conftstm.$ac_objext
6412           lt_globsym_save_LIBS=$LIBS
6413           lt_globsym_save_CFLAGS=$CFLAGS
6414           LIBS=conftstm.$ac_objext
6415           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6416           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6417   (eval $ac_link) 2>&5
6418   ac_status=$?
6419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6420   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6421             pipe_works=yes
6422           fi
6423           LIBS=$lt_globsym_save_LIBS
6424           CFLAGS=$lt_globsym_save_CFLAGS
6425         else
6426           echo "cannot find nm_test_func in $nlist" >&5
6427         fi
6428       else
6429         echo "cannot find nm_test_var in $nlist" >&5
6430       fi
6431     else
6432       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6433     fi
6434   else
6435     echo "$progname: failed program was:" >&5
6436     cat conftest.$ac_ext >&5
6437   fi
6438   rm -rf conftest* conftst*
6439
6440   # Do not use the global_symbol_pipe unless it works.
6441   if test yes = "$pipe_works"; then
6442     break
6443   else
6444     lt_cv_sys_global_symbol_pipe=
6445   fi
6446 done
6447
6448 fi
6449
6450 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6451   lt_cv_sys_global_symbol_to_cdecl=
6452 fi
6453 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6455 $as_echo "failed" >&6; }
6456 else
6457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6458 $as_echo "ok" >&6; }
6459 fi
6460
6461 # Response file support.
6462 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6463   nm_file_list_spec='@'
6464 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6465   nm_file_list_spec='@'
6466 fi
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6505 $as_echo_n "checking for sysroot... " >&6; }
6506
6507 # Check whether --with-sysroot was given.
6508 if test "${with_sysroot+set}" = set; then :
6509   withval=$with_sysroot;
6510 else
6511   with_sysroot=no
6512 fi
6513
6514
6515 lt_sysroot=
6516 case $with_sysroot in #(
6517  yes)
6518    if test yes = "$GCC"; then
6519      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6520    fi
6521    ;; #(
6522  /*)
6523    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6524    ;; #(
6525  no|'')
6526    ;; #(
6527  *)
6528    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6529 $as_echo "$with_sysroot" >&6; }
6530    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6531    ;;
6532 esac
6533
6534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6535 $as_echo "${lt_sysroot:-no}" >&6; }
6536
6537
6538
6539
6540
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6542 $as_echo_n "checking for a working dd... " >&6; }
6543 if ${ac_cv_path_lt_DD+:} false; then :
6544   $as_echo_n "(cached) " >&6
6545 else
6546   printf 0123456789abcdef0123456789abcdef >conftest.i
6547 cat conftest.i conftest.i >conftest2.i
6548 : ${lt_DD:=$DD}
6549 if test -z "$lt_DD"; then
6550   ac_path_lt_DD_found=false
6551   # Loop through the user's path and test for each of PROGNAME-LIST
6552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
6555   IFS=$as_save_IFS
6556   test -z "$as_dir" && as_dir=.
6557     for ac_prog in dd; do
6558     for ac_exec_ext in '' $ac_executable_extensions; do
6559       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6560       as_fn_executable_p "$ac_path_lt_DD" || continue
6561 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6562   cmp -s conftest.i conftest.out \
6563   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6564 fi
6565       $ac_path_lt_DD_found && break 3
6566     done
6567   done
6568   done
6569 IFS=$as_save_IFS
6570   if test -z "$ac_cv_path_lt_DD"; then
6571     :
6572   fi
6573 else
6574   ac_cv_path_lt_DD=$lt_DD
6575 fi
6576
6577 rm -f conftest.i conftest2.i conftest.out
6578 fi
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6580 $as_echo "$ac_cv_path_lt_DD" >&6; }
6581
6582
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6584 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6585 if ${lt_cv_truncate_bin+:} false; then :
6586   $as_echo_n "(cached) " >&6
6587 else
6588   printf 0123456789abcdef0123456789abcdef >conftest.i
6589 cat conftest.i conftest.i >conftest2.i
6590 lt_cv_truncate_bin=
6591 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6592   cmp -s conftest.i conftest.out \
6593   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6594 fi
6595 rm -f conftest.i conftest2.i conftest.out
6596 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6597 fi
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6599 $as_echo "$lt_cv_truncate_bin" >&6; }
6600
6601
6602
6603
6604
6605
6606
6607 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6608 func_cc_basename ()
6609 {
6610     for cc_temp in $*""; do
6611       case $cc_temp in
6612         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6613         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6614         \-*) ;;
6615         *) break;;
6616       esac
6617     done
6618     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6619 }
6620
6621 # Check whether --enable-libtool-lock was given.
6622 if test "${enable_libtool_lock+set}" = set; then :
6623   enableval=$enable_libtool_lock;
6624 fi
6625
6626 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6627
6628 # Some flags need to be propagated to the compiler or linker for good
6629 # libtool support.
6630 case $host in
6631 ia64-*-hpux*)
6632   # Find out what ABI is being produced by ac_compile, and set mode
6633   # options accordingly.
6634   echo 'int i;' > conftest.$ac_ext
6635   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6636   (eval $ac_compile) 2>&5
6637   ac_status=$?
6638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6639   test $ac_status = 0; }; then
6640     case `/usr/bin/file conftest.$ac_objext` in
6641       *ELF-32*)
6642         HPUX_IA64_MODE=32
6643         ;;
6644       *ELF-64*)
6645         HPUX_IA64_MODE=64
6646         ;;
6647     esac
6648   fi
6649   rm -rf conftest*
6650   ;;
6651 *-*-irix6*)
6652   # Find out what ABI is being produced by ac_compile, and set linker
6653   # options accordingly.
6654   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6655   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6656   (eval $ac_compile) 2>&5
6657   ac_status=$?
6658   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6659   test $ac_status = 0; }; then
6660     if test yes = "$lt_cv_prog_gnu_ld"; then
6661       case `/usr/bin/file conftest.$ac_objext` in
6662         *32-bit*)
6663           LD="${LD-ld} -melf32bsmip"
6664           ;;
6665         *N32*)
6666           LD="${LD-ld} -melf32bmipn32"
6667           ;;
6668         *64-bit*)
6669           LD="${LD-ld} -melf64bmip"
6670         ;;
6671       esac
6672     else
6673       case `/usr/bin/file conftest.$ac_objext` in
6674         *32-bit*)
6675           LD="${LD-ld} -32"
6676           ;;
6677         *N32*)
6678           LD="${LD-ld} -n32"
6679           ;;
6680         *64-bit*)
6681           LD="${LD-ld} -64"
6682           ;;
6683       esac
6684     fi
6685   fi
6686   rm -rf conftest*
6687   ;;
6688
6689 mips64*-*linux*)
6690   # Find out what ABI is being produced by ac_compile, and set linker
6691   # options accordingly.
6692   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6693   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6694   (eval $ac_compile) 2>&5
6695   ac_status=$?
6696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6697   test $ac_status = 0; }; then
6698     emul=elf
6699     case `/usr/bin/file conftest.$ac_objext` in
6700       *32-bit*)
6701         emul="${emul}32"
6702         ;;
6703       *64-bit*)
6704         emul="${emul}64"
6705         ;;
6706     esac
6707     case `/usr/bin/file conftest.$ac_objext` in
6708       *MSB*)
6709         emul="${emul}btsmip"
6710         ;;
6711       *LSB*)
6712         emul="${emul}ltsmip"
6713         ;;
6714     esac
6715     case `/usr/bin/file conftest.$ac_objext` in
6716       *N32*)
6717         emul="${emul}n32"
6718         ;;
6719     esac
6720     LD="${LD-ld} -m $emul"
6721   fi
6722   rm -rf conftest*
6723   ;;
6724
6725 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6726 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6727   # Find out what ABI is being produced by ac_compile, and set linker
6728   # options accordingly.  Note that the listed cases only cover the
6729   # situations where additional linker options are needed (such as when
6730   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6731   # vice versa); the common cases where no linker options are needed do
6732   # not appear in the list.
6733   echo 'int i;' > conftest.$ac_ext
6734   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6735   (eval $ac_compile) 2>&5
6736   ac_status=$?
6737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6738   test $ac_status = 0; }; then
6739     case `/usr/bin/file conftest.o` in
6740       *32-bit*)
6741         case $host in
6742           x86_64-*kfreebsd*-gnu)
6743             LD="${LD-ld} -m elf_i386_fbsd"
6744             ;;
6745           x86_64-*linux*)
6746             case `/usr/bin/file conftest.o` in
6747               *x86-64*)
6748                 LD="${LD-ld} -m elf32_x86_64"
6749                 ;;
6750               *)
6751                 LD="${LD-ld} -m elf_i386"
6752                 ;;
6753             esac
6754             ;;
6755           powerpc64le-*linux*)
6756             LD="${LD-ld} -m elf32lppclinux"
6757             ;;
6758           powerpc64-*linux*)
6759             LD="${LD-ld} -m elf32ppclinux"
6760             ;;
6761           s390x-*linux*)
6762             LD="${LD-ld} -m elf_s390"
6763             ;;
6764           sparc64-*linux*)
6765             LD="${LD-ld} -m elf32_sparc"
6766             ;;
6767         esac
6768         ;;
6769       *64-bit*)
6770         case $host in
6771           x86_64-*kfreebsd*-gnu)
6772             LD="${LD-ld} -m elf_x86_64_fbsd"
6773             ;;
6774           x86_64-*linux*)
6775             LD="${LD-ld} -m elf_x86_64"
6776             ;;
6777           powerpcle-*linux*)
6778             LD="${LD-ld} -m elf64lppc"
6779             ;;
6780           powerpc-*linux*)
6781             LD="${LD-ld} -m elf64ppc"
6782             ;;
6783           s390*-*linux*|s390*-*tpf*)
6784             LD="${LD-ld} -m elf64_s390"
6785             ;;
6786           sparc*-*linux*)
6787             LD="${LD-ld} -m elf64_sparc"
6788             ;;
6789         esac
6790         ;;
6791     esac
6792   fi
6793   rm -rf conftest*
6794   ;;
6795
6796 *-*-sco3.2v5*)
6797   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6798   SAVE_CFLAGS=$CFLAGS
6799   CFLAGS="$CFLAGS -belf"
6800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6801 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6802 if ${lt_cv_cc_needs_belf+:} false; then :
6803   $as_echo_n "(cached) " >&6
6804 else
6805   ac_ext=c
6806 ac_cpp='$CPP $CPPFLAGS'
6807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6810
6811      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h.  */
6813
6814 int
6815 main ()
6816 {
6817
6818   ;
6819   return 0;
6820 }
6821 _ACEOF
6822 if ac_fn_c_try_link "$LINENO"; then :
6823   lt_cv_cc_needs_belf=yes
6824 else
6825   lt_cv_cc_needs_belf=no
6826 fi
6827 rm -f core conftest.err conftest.$ac_objext \
6828     conftest$ac_exeext conftest.$ac_ext
6829      ac_ext=c
6830 ac_cpp='$CPP $CPPFLAGS'
6831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6834
6835 fi
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6837 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6838   if test yes != "$lt_cv_cc_needs_belf"; then
6839     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6840     CFLAGS=$SAVE_CFLAGS
6841   fi
6842   ;;
6843 *-*solaris*)
6844   # Find out what ABI is being produced by ac_compile, and set linker
6845   # options accordingly.
6846   echo 'int i;' > conftest.$ac_ext
6847   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6848   (eval $ac_compile) 2>&5
6849   ac_status=$?
6850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6851   test $ac_status = 0; }; then
6852     case `/usr/bin/file conftest.o` in
6853     *64-bit*)
6854       case $lt_cv_prog_gnu_ld in
6855       yes*)
6856         case $host in
6857         i?86-*-solaris*|x86_64-*-solaris*)
6858           LD="${LD-ld} -m elf_x86_64"
6859           ;;
6860         sparc*-*-solaris*)
6861           LD="${LD-ld} -m elf64_sparc"
6862           ;;
6863         esac
6864         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6865         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6866           LD=${LD-ld}_sol2
6867         fi
6868         ;;
6869       *)
6870         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6871           LD="${LD-ld} -64"
6872         fi
6873         ;;
6874       esac
6875       ;;
6876     esac
6877   fi
6878   rm -rf conftest*
6879   ;;
6880 esac
6881
6882 need_locks=$enable_libtool_lock
6883
6884 if test -n "$ac_tool_prefix"; then
6885   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6886 set dummy ${ac_tool_prefix}mt; ac_word=$2
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6890   $as_echo_n "(cached) " >&6
6891 else
6892   if test -n "$MANIFEST_TOOL"; then
6893   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6894 else
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 for as_dir in $PATH
6897 do
6898   IFS=$as_save_IFS
6899   test -z "$as_dir" && as_dir=.
6900     for ac_exec_ext in '' $ac_executable_extensions; do
6901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6902     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6904     break 2
6905   fi
6906 done
6907   done
6908 IFS=$as_save_IFS
6909
6910 fi
6911 fi
6912 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6913 if test -n "$MANIFEST_TOOL"; then
6914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6915 $as_echo "$MANIFEST_TOOL" >&6; }
6916 else
6917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918 $as_echo "no" >&6; }
6919 fi
6920
6921
6922 fi
6923 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6924   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6925   # Extract the first word of "mt", so it can be a program name with args.
6926 set dummy mt; ac_word=$2
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6928 $as_echo_n "checking for $ac_word... " >&6; }
6929 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6930   $as_echo_n "(cached) " >&6
6931 else
6932   if test -n "$ac_ct_MANIFEST_TOOL"; then
6933   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6934 else
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938   IFS=$as_save_IFS
6939   test -z "$as_dir" && as_dir=.
6940     for ac_exec_ext in '' $ac_executable_extensions; do
6941   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6944     break 2
6945   fi
6946 done
6947   done
6948 IFS=$as_save_IFS
6949
6950 fi
6951 fi
6952 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6953 if test -n "$ac_ct_MANIFEST_TOOL"; then
6954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6955 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6956 else
6957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 $as_echo "no" >&6; }
6959 fi
6960
6961   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6962     MANIFEST_TOOL=":"
6963   else
6964     case $cross_compiling:$ac_tool_warned in
6965 yes:)
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6968 ac_tool_warned=yes ;;
6969 esac
6970     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6971   fi
6972 else
6973   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6974 fi
6975
6976 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6978 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6979 if ${lt_cv_path_mainfest_tool+:} false; then :
6980   $as_echo_n "(cached) " >&6
6981 else
6982   lt_cv_path_mainfest_tool=no
6983   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6984   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6985   cat conftest.err >&5
6986   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6987     lt_cv_path_mainfest_tool=yes
6988   fi
6989   rm -f conftest*
6990 fi
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6992 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6993 if test yes != "$lt_cv_path_mainfest_tool"; then
6994   MANIFEST_TOOL=:
6995 fi
6996
6997
6998
6999
7000
7001
7002   case $host_os in
7003     rhapsody* | darwin*)
7004     if test -n "$ac_tool_prefix"; then
7005   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7006 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008 $as_echo_n "checking for $ac_word... " >&6; }
7009 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7010   $as_echo_n "(cached) " >&6
7011 else
7012   if test -n "$DSYMUTIL"; then
7013   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018   IFS=$as_save_IFS
7019   test -z "$as_dir" && as_dir=.
7020     for ac_exec_ext in '' $ac_executable_extensions; do
7021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024     break 2
7025   fi
7026 done
7027   done
7028 IFS=$as_save_IFS
7029
7030 fi
7031 fi
7032 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7033 if test -n "$DSYMUTIL"; then
7034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7035 $as_echo "$DSYMUTIL" >&6; }
7036 else
7037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7039 fi
7040
7041
7042 fi
7043 if test -z "$ac_cv_prog_DSYMUTIL"; then
7044   ac_ct_DSYMUTIL=$DSYMUTIL
7045   # Extract the first word of "dsymutil", so it can be a program name with args.
7046 set dummy dsymutil; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7050   $as_echo_n "(cached) " >&6
7051 else
7052   if test -n "$ac_ct_DSYMUTIL"; then
7053   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7054 else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7057 do
7058   IFS=$as_save_IFS
7059   test -z "$as_dir" && as_dir=.
7060     for ac_exec_ext in '' $ac_executable_extensions; do
7061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064     break 2
7065   fi
7066 done
7067   done
7068 IFS=$as_save_IFS
7069
7070 fi
7071 fi
7072 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7073 if test -n "$ac_ct_DSYMUTIL"; then
7074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7075 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7076 else
7077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078 $as_echo "no" >&6; }
7079 fi
7080
7081   if test "x$ac_ct_DSYMUTIL" = x; then
7082     DSYMUTIL=":"
7083   else
7084     case $cross_compiling:$ac_tool_warned in
7085 yes:)
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7088 ac_tool_warned=yes ;;
7089 esac
7090     DSYMUTIL=$ac_ct_DSYMUTIL
7091   fi
7092 else
7093   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7094 fi
7095
7096     if test -n "$ac_tool_prefix"; then
7097   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7098 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if ${ac_cv_prog_NMEDIT+:} false; then :
7102   $as_echo_n "(cached) " >&6
7103 else
7104   if test -n "$NMEDIT"; then
7105   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7106 else
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7109 do
7110   IFS=$as_save_IFS
7111   test -z "$as_dir" && as_dir=.
7112     for ac_exec_ext in '' $ac_executable_extensions; do
7113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116     break 2
7117   fi
7118 done
7119   done
7120 IFS=$as_save_IFS
7121
7122 fi
7123 fi
7124 NMEDIT=$ac_cv_prog_NMEDIT
7125 if test -n "$NMEDIT"; then
7126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7127 $as_echo "$NMEDIT" >&6; }
7128 else
7129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7131 fi
7132
7133
7134 fi
7135 if test -z "$ac_cv_prog_NMEDIT"; then
7136   ac_ct_NMEDIT=$NMEDIT
7137   # Extract the first word of "nmedit", so it can be a program name with args.
7138 set dummy nmedit; ac_word=$2
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140 $as_echo_n "checking for $ac_word... " >&6; }
7141 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7142   $as_echo_n "(cached) " >&6
7143 else
7144   if test -n "$ac_ct_NMEDIT"; then
7145   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7149 do
7150   IFS=$as_save_IFS
7151   test -z "$as_dir" && as_dir=.
7152     for ac_exec_ext in '' $ac_executable_extensions; do
7153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156     break 2
7157   fi
7158 done
7159   done
7160 IFS=$as_save_IFS
7161
7162 fi
7163 fi
7164 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7165 if test -n "$ac_ct_NMEDIT"; then
7166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7167 $as_echo "$ac_ct_NMEDIT" >&6; }
7168 else
7169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7171 fi
7172
7173   if test "x$ac_ct_NMEDIT" = x; then
7174     NMEDIT=":"
7175   else
7176     case $cross_compiling:$ac_tool_warned in
7177 yes:)
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180 ac_tool_warned=yes ;;
7181 esac
7182     NMEDIT=$ac_ct_NMEDIT
7183   fi
7184 else
7185   NMEDIT="$ac_cv_prog_NMEDIT"
7186 fi
7187
7188     if test -n "$ac_tool_prefix"; then
7189   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7190 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192 $as_echo_n "checking for $ac_word... " >&6; }
7193 if ${ac_cv_prog_LIPO+:} false; then :
7194   $as_echo_n "(cached) " >&6
7195 else
7196   if test -n "$LIPO"; then
7197   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7201 do
7202   IFS=$as_save_IFS
7203   test -z "$as_dir" && as_dir=.
7204     for ac_exec_ext in '' $ac_executable_extensions; do
7205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208     break 2
7209   fi
7210 done
7211   done
7212 IFS=$as_save_IFS
7213
7214 fi
7215 fi
7216 LIPO=$ac_cv_prog_LIPO
7217 if test -n "$LIPO"; then
7218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7219 $as_echo "$LIPO" >&6; }
7220 else
7221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7223 fi
7224
7225
7226 fi
7227 if test -z "$ac_cv_prog_LIPO"; then
7228   ac_ct_LIPO=$LIPO
7229   # Extract the first word of "lipo", so it can be a program name with args.
7230 set dummy lipo; ac_word=$2
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232 $as_echo_n "checking for $ac_word... " >&6; }
7233 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7234   $as_echo_n "(cached) " >&6
7235 else
7236   if test -n "$ac_ct_LIPO"; then
7237   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7241 do
7242   IFS=$as_save_IFS
7243   test -z "$as_dir" && as_dir=.
7244     for ac_exec_ext in '' $ac_executable_extensions; do
7245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246     ac_cv_prog_ac_ct_LIPO="lipo"
7247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248     break 2
7249   fi
7250 done
7251   done
7252 IFS=$as_save_IFS
7253
7254 fi
7255 fi
7256 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7257 if test -n "$ac_ct_LIPO"; then
7258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7259 $as_echo "$ac_ct_LIPO" >&6; }
7260 else
7261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262 $as_echo "no" >&6; }
7263 fi
7264
7265   if test "x$ac_ct_LIPO" = x; then
7266     LIPO=":"
7267   else
7268     case $cross_compiling:$ac_tool_warned in
7269 yes:)
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272 ac_tool_warned=yes ;;
7273 esac
7274     LIPO=$ac_ct_LIPO
7275   fi
7276 else
7277   LIPO="$ac_cv_prog_LIPO"
7278 fi
7279
7280     if test -n "$ac_tool_prefix"; then
7281   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7282 set dummy ${ac_tool_prefix}otool; ac_word=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if ${ac_cv_prog_OTOOL+:} false; then :
7286   $as_echo_n "(cached) " >&6
7287 else
7288   if test -n "$OTOOL"; then
7289   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7290 else
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 for as_dir in $PATH
7293 do
7294   IFS=$as_save_IFS
7295   test -z "$as_dir" && as_dir=.
7296     for ac_exec_ext in '' $ac_executable_extensions; do
7297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7298     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300     break 2
7301   fi
7302 done
7303   done
7304 IFS=$as_save_IFS
7305
7306 fi
7307 fi
7308 OTOOL=$ac_cv_prog_OTOOL
7309 if test -n "$OTOOL"; then
7310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7311 $as_echo "$OTOOL" >&6; }
7312 else
7313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7315 fi
7316
7317
7318 fi
7319 if test -z "$ac_cv_prog_OTOOL"; then
7320   ac_ct_OTOOL=$OTOOL
7321   # Extract the first word of "otool", so it can be a program name with args.
7322 set dummy otool; ac_word=$2
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324 $as_echo_n "checking for $ac_word... " >&6; }
7325 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7326   $as_echo_n "(cached) " >&6
7327 else
7328   if test -n "$ac_ct_OTOOL"; then
7329   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7333 do
7334   IFS=$as_save_IFS
7335   test -z "$as_dir" && as_dir=.
7336     for ac_exec_ext in '' $ac_executable_extensions; do
7337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338     ac_cv_prog_ac_ct_OTOOL="otool"
7339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340     break 2
7341   fi
7342 done
7343   done
7344 IFS=$as_save_IFS
7345
7346 fi
7347 fi
7348 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7349 if test -n "$ac_ct_OTOOL"; then
7350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7351 $as_echo "$ac_ct_OTOOL" >&6; }
7352 else
7353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354 $as_echo "no" >&6; }
7355 fi
7356
7357   if test "x$ac_ct_OTOOL" = x; then
7358     OTOOL=":"
7359   else
7360     case $cross_compiling:$ac_tool_warned in
7361 yes:)
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7364 ac_tool_warned=yes ;;
7365 esac
7366     OTOOL=$ac_ct_OTOOL
7367   fi
7368 else
7369   OTOOL="$ac_cv_prog_OTOOL"
7370 fi
7371
7372     if test -n "$ac_tool_prefix"; then
7373   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7374 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376 $as_echo_n "checking for $ac_word... " >&6; }
7377 if ${ac_cv_prog_OTOOL64+:} false; then :
7378   $as_echo_n "(cached) " >&6
7379 else
7380   if test -n "$OTOOL64"; then
7381   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7382 else
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7385 do
7386   IFS=$as_save_IFS
7387   test -z "$as_dir" && as_dir=.
7388     for ac_exec_ext in '' $ac_executable_extensions; do
7389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392     break 2
7393   fi
7394 done
7395   done
7396 IFS=$as_save_IFS
7397
7398 fi
7399 fi
7400 OTOOL64=$ac_cv_prog_OTOOL64
7401 if test -n "$OTOOL64"; then
7402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7403 $as_echo "$OTOOL64" >&6; }
7404 else
7405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 $as_echo "no" >&6; }
7407 fi
7408
7409
7410 fi
7411 if test -z "$ac_cv_prog_OTOOL64"; then
7412   ac_ct_OTOOL64=$OTOOL64
7413   # Extract the first word of "otool64", so it can be a program name with args.
7414 set dummy otool64; ac_word=$2
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416 $as_echo_n "checking for $ac_word... " >&6; }
7417 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7418   $as_echo_n "(cached) " >&6
7419 else
7420   if test -n "$ac_ct_OTOOL64"; then
7421   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7422 else
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7425 do
7426   IFS=$as_save_IFS
7427   test -z "$as_dir" && as_dir=.
7428     for ac_exec_ext in '' $ac_executable_extensions; do
7429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7430     ac_cv_prog_ac_ct_OTOOL64="otool64"
7431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432     break 2
7433   fi
7434 done
7435   done
7436 IFS=$as_save_IFS
7437
7438 fi
7439 fi
7440 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7441 if test -n "$ac_ct_OTOOL64"; then
7442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7443 $as_echo "$ac_ct_OTOOL64" >&6; }
7444 else
7445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7447 fi
7448
7449   if test "x$ac_ct_OTOOL64" = x; then
7450     OTOOL64=":"
7451   else
7452     case $cross_compiling:$ac_tool_warned in
7453 yes:)
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7456 ac_tool_warned=yes ;;
7457 esac
7458     OTOOL64=$ac_ct_OTOOL64
7459   fi
7460 else
7461   OTOOL64="$ac_cv_prog_OTOOL64"
7462 fi
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7491 $as_echo_n "checking for -single_module linker flag... " >&6; }
7492 if ${lt_cv_apple_cc_single_mod+:} false; then :
7493   $as_echo_n "(cached) " >&6
7494 else
7495   lt_cv_apple_cc_single_mod=no
7496       if test -z "$LT_MULTI_MODULE"; then
7497         # By default we will add the -single_module flag. You can override
7498         # by either setting the environment variable LT_MULTI_MODULE
7499         # non-empty at configure time, or by adding -multi_module to the
7500         # link flags.
7501         rm -rf libconftest.dylib*
7502         echo "int foo(void){return 1;}" > conftest.c
7503         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7504 -dynamiclib -Wl,-single_module conftest.c" >&5
7505         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7506           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7507         _lt_result=$?
7508         # If there is a non-empty error log, and "single_module"
7509         # appears in it, assume the flag caused a linker warning
7510         if test -s conftest.err && $GREP single_module conftest.err; then
7511           cat conftest.err >&5
7512         # Otherwise, if the output was created with a 0 exit code from
7513         # the compiler, it worked.
7514         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7515           lt_cv_apple_cc_single_mod=yes
7516         else
7517           cat conftest.err >&5
7518         fi
7519         rm -rf libconftest.dylib*
7520         rm -f conftest.*
7521       fi
7522 fi
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7524 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7525
7526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7527 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7528 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7529   $as_echo_n "(cached) " >&6
7530 else
7531   lt_cv_ld_exported_symbols_list=no
7532       save_LDFLAGS=$LDFLAGS
7533       echo "_main" > conftest.sym
7534       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7535       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h.  */
7537
7538 int
7539 main ()
7540 {
7541
7542   ;
7543   return 0;
7544 }
7545 _ACEOF
7546 if ac_fn_c_try_link "$LINENO"; then :
7547   lt_cv_ld_exported_symbols_list=yes
7548 else
7549   lt_cv_ld_exported_symbols_list=no
7550 fi
7551 rm -f core conftest.err conftest.$ac_objext \
7552     conftest$ac_exeext conftest.$ac_ext
7553         LDFLAGS=$save_LDFLAGS
7554
7555 fi
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7557 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7558
7559     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7560 $as_echo_n "checking for -force_load linker flag... " >&6; }
7561 if ${lt_cv_ld_force_load+:} false; then :
7562   $as_echo_n "(cached) " >&6
7563 else
7564   lt_cv_ld_force_load=no
7565       cat > conftest.c << _LT_EOF
7566 int forced_loaded() { return 2;}
7567 _LT_EOF
7568       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7569       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7570       echo "$AR cru libconftest.a conftest.o" >&5
7571       $AR cru libconftest.a conftest.o 2>&5
7572       echo "$RANLIB libconftest.a" >&5
7573       $RANLIB libconftest.a 2>&5
7574       cat > conftest.c << _LT_EOF
7575 int main() { return 0;}
7576 _LT_EOF
7577       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7578       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7579       _lt_result=$?
7580       if test -s conftest.err && $GREP force_load conftest.err; then
7581         cat conftest.err >&5
7582       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7583         lt_cv_ld_force_load=yes
7584       else
7585         cat conftest.err >&5
7586       fi
7587         rm -f conftest.err libconftest.a conftest conftest.c
7588         rm -rf conftest.dSYM
7589
7590 fi
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7592 $as_echo "$lt_cv_ld_force_load" >&6; }
7593     case $host_os in
7594     rhapsody* | darwin1.[012])
7595       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7596     darwin1.*)
7597       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7598     darwin*) # darwin 5.x on
7599       # if running on 10.5 or later, the deployment target defaults
7600       # to the OS version, if on x86, and 10.4, the deployment
7601       # target defaults to 10.4. Don't you love it?
7602       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7603         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7604           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7605         10.[012][,.]*)
7606           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7607         10.*)
7608           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7609       esac
7610     ;;
7611   esac
7612     if test yes = "$lt_cv_apple_cc_single_mod"; then
7613       _lt_dar_single_mod='$single_module'
7614     fi
7615     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7616       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7617     else
7618       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7619     fi
7620     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7621       _lt_dsymutil='~$DSYMUTIL $lib || :'
7622     else
7623       _lt_dsymutil=
7624     fi
7625     ;;
7626   esac
7627
7628 # func_munge_path_list VARIABLE PATH
7629 # -----------------------------------
7630 # VARIABLE is name of variable containing _space_ separated list of
7631 # directories to be munged by the contents of PATH, which is string
7632 # having a format:
7633 # "DIR[:DIR]:"
7634 #       string "DIR[ DIR]" will be prepended to VARIABLE
7635 # ":DIR[:DIR]"
7636 #       string "DIR[ DIR]" will be appended to VARIABLE
7637 # "DIRP[:DIRP]::[DIRA:]DIRA"
7638 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7639 #       "DIRA[ DIRA]" will be appended to VARIABLE
7640 # "DIR[:DIR]"
7641 #       VARIABLE will be replaced by "DIR[ DIR]"
7642 func_munge_path_list ()
7643 {
7644     case x$2 in
7645     x)
7646         ;;
7647     *:)
7648         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7649         ;;
7650     x:*)
7651         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7652         ;;
7653     *::*)
7654         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7655         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7656         ;;
7657     *)
7658         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7659         ;;
7660     esac
7661 }
7662
7663 ac_ext=c
7664 ac_cpp='$CPP $CPPFLAGS'
7665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7669 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7670 # On Suns, sometimes $CPP names a directory.
7671 if test -n "$CPP" && test -d "$CPP"; then
7672   CPP=
7673 fi
7674 if test -z "$CPP"; then
7675   if ${ac_cv_prog_CPP+:} false; then :
7676   $as_echo_n "(cached) " >&6
7677 else
7678       # Double quotes because CPP needs to be expanded
7679     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7680     do
7681       ac_preproc_ok=false
7682 for ac_c_preproc_warn_flag in '' yes
7683 do
7684   # Use a header file that comes with gcc, so configuring glibc
7685   # with a fresh cross-compiler works.
7686   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7687   # <limits.h> exists even on freestanding compilers.
7688   # On the NeXT, cc -E runs the code through the compiler's parser,
7689   # not just through cpp. "Syntax error" is here to catch this case.
7690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h.  */
7692 #ifdef __STDC__
7693 # include <limits.h>
7694 #else
7695 # include <assert.h>
7696 #endif
7697                      Syntax error
7698 _ACEOF
7699 if ac_fn_c_try_cpp "$LINENO"; then :
7700
7701 else
7702   # Broken: fails on valid input.
7703 continue
7704 fi
7705 rm -f conftest.err conftest.i conftest.$ac_ext
7706
7707   # OK, works on sane cases.  Now check whether nonexistent headers
7708   # can be detected and how.
7709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h.  */
7711 #include <ac_nonexistent.h>
7712 _ACEOF
7713 if ac_fn_c_try_cpp "$LINENO"; then :
7714   # Broken: success on invalid input.
7715 continue
7716 else
7717   # Passes both tests.
7718 ac_preproc_ok=:
7719 break
7720 fi
7721 rm -f conftest.err conftest.i conftest.$ac_ext
7722
7723 done
7724 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7725 rm -f conftest.i conftest.err conftest.$ac_ext
7726 if $ac_preproc_ok; then :
7727   break
7728 fi
7729
7730     done
7731     ac_cv_prog_CPP=$CPP
7732
7733 fi
7734   CPP=$ac_cv_prog_CPP
7735 else
7736   ac_cv_prog_CPP=$CPP
7737 fi
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7739 $as_echo "$CPP" >&6; }
7740 ac_preproc_ok=false
7741 for ac_c_preproc_warn_flag in '' yes
7742 do
7743   # Use a header file that comes with gcc, so configuring glibc
7744   # with a fresh cross-compiler works.
7745   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7746   # <limits.h> exists even on freestanding compilers.
7747   # On the NeXT, cc -E runs the code through the compiler's parser,
7748   # not just through cpp. "Syntax error" is here to catch this case.
7749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750 /* end confdefs.h.  */
7751 #ifdef __STDC__
7752 # include <limits.h>
7753 #else
7754 # include <assert.h>
7755 #endif
7756                      Syntax error
7757 _ACEOF
7758 if ac_fn_c_try_cpp "$LINENO"; then :
7759
7760 else
7761   # Broken: fails on valid input.
7762 continue
7763 fi
7764 rm -f conftest.err conftest.i conftest.$ac_ext
7765
7766   # OK, works on sane cases.  Now check whether nonexistent headers
7767   # can be detected and how.
7768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769 /* end confdefs.h.  */
7770 #include <ac_nonexistent.h>
7771 _ACEOF
7772 if ac_fn_c_try_cpp "$LINENO"; then :
7773   # Broken: success on invalid input.
7774 continue
7775 else
7776   # Passes both tests.
7777 ac_preproc_ok=:
7778 break
7779 fi
7780 rm -f conftest.err conftest.i conftest.$ac_ext
7781
7782 done
7783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7784 rm -f conftest.i conftest.err conftest.$ac_ext
7785 if $ac_preproc_ok; then :
7786
7787 else
7788   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7790 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7791 See \`config.log' for more details" "$LINENO" 5; }
7792 fi
7793
7794 ac_ext=c
7795 ac_cpp='$CPP $CPPFLAGS'
7796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7799
7800
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7802 $as_echo_n "checking for ANSI C header files... " >&6; }
7803 if ${ac_cv_header_stdc+:} false; then :
7804   $as_echo_n "(cached) " >&6
7805 else
7806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h.  */
7808 #include <stdlib.h>
7809 #include <stdarg.h>
7810 #include <string.h>
7811 #include <float.h>
7812
7813 int
7814 main ()
7815 {
7816
7817   ;
7818   return 0;
7819 }
7820 _ACEOF
7821 if ac_fn_c_try_compile "$LINENO"; then :
7822   ac_cv_header_stdc=yes
7823 else
7824   ac_cv_header_stdc=no
7825 fi
7826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827
7828 if test $ac_cv_header_stdc = yes; then
7829   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h.  */
7832 #include <string.h>
7833
7834 _ACEOF
7835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7836   $EGREP "memchr" >/dev/null 2>&1; then :
7837
7838 else
7839   ac_cv_header_stdc=no
7840 fi
7841 rm -f conftest*
7842
7843 fi
7844
7845 if test $ac_cv_header_stdc = yes; then
7846   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h.  */
7849 #include <stdlib.h>
7850
7851 _ACEOF
7852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7853   $EGREP "free" >/dev/null 2>&1; then :
7854
7855 else
7856   ac_cv_header_stdc=no
7857 fi
7858 rm -f conftest*
7859
7860 fi
7861
7862 if test $ac_cv_header_stdc = yes; then
7863   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7864   if test "$cross_compiling" = yes; then :
7865   :
7866 else
7867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h.  */
7869 #include <ctype.h>
7870 #include <stdlib.h>
7871 #if ((' ' & 0x0FF) == 0x020)
7872 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7873 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7874 #else
7875 # define ISLOWER(c) \
7876                    (('a' <= (c) && (c) <= 'i') \
7877                      || ('j' <= (c) && (c) <= 'r') \
7878                      || ('s' <= (c) && (c) <= 'z'))
7879 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7880 #endif
7881
7882 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7883 int
7884 main ()
7885 {
7886   int i;
7887   for (i = 0; i < 256; i++)
7888     if (XOR (islower (i), ISLOWER (i))
7889         || toupper (i) != TOUPPER (i))
7890       return 2;
7891   return 0;
7892 }
7893 _ACEOF
7894 if ac_fn_c_try_run "$LINENO"; then :
7895
7896 else
7897   ac_cv_header_stdc=no
7898 fi
7899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7900   conftest.$ac_objext conftest.beam conftest.$ac_ext
7901 fi
7902
7903 fi
7904 fi
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7906 $as_echo "$ac_cv_header_stdc" >&6; }
7907 if test $ac_cv_header_stdc = yes; then
7908
7909 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7910
7911 fi
7912
7913 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7914 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7915                   inttypes.h stdint.h unistd.h
7916 do :
7917   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7918 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7919 "
7920 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7921   cat >>confdefs.h <<_ACEOF
7922 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7923 _ACEOF
7924
7925 fi
7926
7927 done
7928
7929
7930 for ac_header in dlfcn.h
7931 do :
7932   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7933 "
7934 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7935   cat >>confdefs.h <<_ACEOF
7936 #define HAVE_DLFCN_H 1
7937 _ACEOF
7938
7939 fi
7940
7941 done
7942
7943
7944
7945
7946
7947 # Set options
7948 enable_win32_dll=yes
7949
7950 case $host in
7951 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7952   if test -n "$ac_tool_prefix"; then
7953   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7954 set dummy ${ac_tool_prefix}as; ac_word=$2
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956 $as_echo_n "checking for $ac_word... " >&6; }
7957 if ${ac_cv_prog_AS+:} false; then :
7958   $as_echo_n "(cached) " >&6
7959 else
7960   if test -n "$AS"; then
7961   ac_cv_prog_AS="$AS" # Let the user override the test.
7962 else
7963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 for as_dir in $PATH
7965 do
7966   IFS=$as_save_IFS
7967   test -z "$as_dir" && as_dir=.
7968     for ac_exec_ext in '' $ac_executable_extensions; do
7969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7970     ac_cv_prog_AS="${ac_tool_prefix}as"
7971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7972     break 2
7973   fi
7974 done
7975   done
7976 IFS=$as_save_IFS
7977
7978 fi
7979 fi
7980 AS=$ac_cv_prog_AS
7981 if test -n "$AS"; then
7982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7983 $as_echo "$AS" >&6; }
7984 else
7985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }
7987 fi
7988
7989
7990 fi
7991 if test -z "$ac_cv_prog_AS"; then
7992   ac_ct_AS=$AS
7993   # Extract the first word of "as", so it can be a program name with args.
7994 set dummy as; ac_word=$2
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996 $as_echo_n "checking for $ac_word... " >&6; }
7997 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7998   $as_echo_n "(cached) " >&6
7999 else
8000   if test -n "$ac_ct_AS"; then
8001   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8002 else
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004 for as_dir in $PATH
8005 do
8006   IFS=$as_save_IFS
8007   test -z "$as_dir" && as_dir=.
8008     for ac_exec_ext in '' $ac_executable_extensions; do
8009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8010     ac_cv_prog_ac_ct_AS="as"
8011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8012     break 2
8013   fi
8014 done
8015   done
8016 IFS=$as_save_IFS
8017
8018 fi
8019 fi
8020 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8021 if test -n "$ac_ct_AS"; then
8022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8023 $as_echo "$ac_ct_AS" >&6; }
8024 else
8025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8027 fi
8028
8029   if test "x$ac_ct_AS" = x; then
8030     AS="false"
8031   else
8032     case $cross_compiling:$ac_tool_warned in
8033 yes:)
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8036 ac_tool_warned=yes ;;
8037 esac
8038     AS=$ac_ct_AS
8039   fi
8040 else
8041   AS="$ac_cv_prog_AS"
8042 fi
8043
8044   if test -n "$ac_tool_prefix"; then
8045   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8046 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048 $as_echo_n "checking for $ac_word... " >&6; }
8049 if ${ac_cv_prog_DLLTOOL+:} false; then :
8050   $as_echo_n "(cached) " >&6
8051 else
8052   if test -n "$DLLTOOL"; then
8053   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8054 else
8055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056 for as_dir in $PATH
8057 do
8058   IFS=$as_save_IFS
8059   test -z "$as_dir" && as_dir=.
8060     for ac_exec_ext in '' $ac_executable_extensions; do
8061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8062     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8064     break 2
8065   fi
8066 done
8067   done
8068 IFS=$as_save_IFS
8069
8070 fi
8071 fi
8072 DLLTOOL=$ac_cv_prog_DLLTOOL
8073 if test -n "$DLLTOOL"; then
8074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8075 $as_echo "$DLLTOOL" >&6; }
8076 else
8077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078 $as_echo "no" >&6; }
8079 fi
8080
8081
8082 fi
8083 if test -z "$ac_cv_prog_DLLTOOL"; then
8084   ac_ct_DLLTOOL=$DLLTOOL
8085   # Extract the first word of "dlltool", so it can be a program name with args.
8086 set dummy dlltool; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8090   $as_echo_n "(cached) " >&6
8091 else
8092   if test -n "$ac_ct_DLLTOOL"; then
8093   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8094 else
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 for as_dir in $PATH
8097 do
8098   IFS=$as_save_IFS
8099   test -z "$as_dir" && as_dir=.
8100     for ac_exec_ext in '' $ac_executable_extensions; do
8101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8102     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8104     break 2
8105   fi
8106 done
8107   done
8108 IFS=$as_save_IFS
8109
8110 fi
8111 fi
8112 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8113 if test -n "$ac_ct_DLLTOOL"; then
8114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8115 $as_echo "$ac_ct_DLLTOOL" >&6; }
8116 else
8117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8119 fi
8120
8121   if test "x$ac_ct_DLLTOOL" = x; then
8122     DLLTOOL="false"
8123   else
8124     case $cross_compiling:$ac_tool_warned in
8125 yes:)
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8128 ac_tool_warned=yes ;;
8129 esac
8130     DLLTOOL=$ac_ct_DLLTOOL
8131   fi
8132 else
8133   DLLTOOL="$ac_cv_prog_DLLTOOL"
8134 fi
8135
8136   if test -n "$ac_tool_prefix"; then
8137   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8138 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8140 $as_echo_n "checking for $ac_word... " >&6; }
8141 if ${ac_cv_prog_OBJDUMP+:} false; then :
8142   $as_echo_n "(cached) " >&6
8143 else
8144   if test -n "$OBJDUMP"; then
8145   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8146 else
8147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148 for as_dir in $PATH
8149 do
8150   IFS=$as_save_IFS
8151   test -z "$as_dir" && as_dir=.
8152     for ac_exec_ext in '' $ac_executable_extensions; do
8153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8154     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8156     break 2
8157   fi
8158 done
8159   done
8160 IFS=$as_save_IFS
8161
8162 fi
8163 fi
8164 OBJDUMP=$ac_cv_prog_OBJDUMP
8165 if test -n "$OBJDUMP"; then
8166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8167 $as_echo "$OBJDUMP" >&6; }
8168 else
8169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170 $as_echo "no" >&6; }
8171 fi
8172
8173
8174 fi
8175 if test -z "$ac_cv_prog_OBJDUMP"; then
8176   ac_ct_OBJDUMP=$OBJDUMP
8177   # Extract the first word of "objdump", so it can be a program name with args.
8178 set dummy objdump; ac_word=$2
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8180 $as_echo_n "checking for $ac_word... " >&6; }
8181 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8182   $as_echo_n "(cached) " >&6
8183 else
8184   if test -n "$ac_ct_OBJDUMP"; then
8185   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8186 else
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 for as_dir in $PATH
8189 do
8190   IFS=$as_save_IFS
8191   test -z "$as_dir" && as_dir=.
8192     for ac_exec_ext in '' $ac_executable_extensions; do
8193   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8194     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8196     break 2
8197   fi
8198 done
8199   done
8200 IFS=$as_save_IFS
8201
8202 fi
8203 fi
8204 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8205 if test -n "$ac_ct_OBJDUMP"; then
8206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8207 $as_echo "$ac_ct_OBJDUMP" >&6; }
8208 else
8209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210 $as_echo "no" >&6; }
8211 fi
8212
8213   if test "x$ac_ct_OBJDUMP" = x; then
8214     OBJDUMP="false"
8215   else
8216     case $cross_compiling:$ac_tool_warned in
8217 yes:)
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8220 ac_tool_warned=yes ;;
8221 esac
8222     OBJDUMP=$ac_ct_OBJDUMP
8223   fi
8224 else
8225   OBJDUMP="$ac_cv_prog_OBJDUMP"
8226 fi
8227
8228   ;;
8229 esac
8230
8231 test -z "$AS" && AS=as
8232
8233
8234
8235
8236
8237 test -z "$DLLTOOL" && DLLTOOL=dlltool
8238
8239
8240
8241
8242
8243 test -z "$OBJDUMP" && OBJDUMP=objdump
8244
8245
8246
8247
8248
8249
8250
8251         enable_dlopen=no
8252
8253
8254
8255             # Check whether --enable-shared was given.
8256 if test "${enable_shared+set}" = set; then :
8257   enableval=$enable_shared; p=${PACKAGE-default}
8258     case $enableval in
8259     yes) enable_shared=yes ;;
8260     no) enable_shared=no ;;
8261     *)
8262       enable_shared=no
8263       # Look at the argument we got.  We use all the common list separators.
8264       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8265       for pkg in $enableval; do
8266         IFS=$lt_save_ifs
8267         if test "X$pkg" = "X$p"; then
8268           enable_shared=yes
8269         fi
8270       done
8271       IFS=$lt_save_ifs
8272       ;;
8273     esac
8274 else
8275   enable_shared=yes
8276 fi
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286   # Check whether --enable-static was given.
8287 if test "${enable_static+set}" = set; then :
8288   enableval=$enable_static; p=${PACKAGE-default}
8289     case $enableval in
8290     yes) enable_static=yes ;;
8291     no) enable_static=no ;;
8292     *)
8293      enable_static=no
8294       # Look at the argument we got.  We use all the common list separators.
8295       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8296       for pkg in $enableval; do
8297         IFS=$lt_save_ifs
8298         if test "X$pkg" = "X$p"; then
8299           enable_static=yes
8300         fi
8301       done
8302       IFS=$lt_save_ifs
8303       ;;
8304     esac
8305 else
8306   enable_static=yes
8307 fi
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318 # Check whether --with-pic was given.
8319 if test "${with_pic+set}" = set; then :
8320   withval=$with_pic; lt_p=${PACKAGE-default}
8321     case $withval in
8322     yes|no) pic_mode=$withval ;;
8323     *)
8324       pic_mode=default
8325       # Look at the argument we got.  We use all the common list separators.
8326       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8327       for lt_pkg in $withval; do
8328         IFS=$lt_save_ifs
8329         if test "X$lt_pkg" = "X$lt_p"; then
8330           pic_mode=yes
8331         fi
8332       done
8333       IFS=$lt_save_ifs
8334       ;;
8335     esac
8336 else
8337   pic_mode=default
8338 fi
8339
8340
8341
8342
8343
8344
8345
8346
8347   # Check whether --enable-fast-install was given.
8348 if test "${enable_fast_install+set}" = set; then :
8349   enableval=$enable_fast_install; p=${PACKAGE-default}
8350     case $enableval in
8351     yes) enable_fast_install=yes ;;
8352     no) enable_fast_install=no ;;
8353     *)
8354       enable_fast_install=no
8355       # Look at the argument we got.  We use all the common list separators.
8356       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8357       for pkg in $enableval; do
8358         IFS=$lt_save_ifs
8359         if test "X$pkg" = "X$p"; then
8360           enable_fast_install=yes
8361         fi
8362       done
8363       IFS=$lt_save_ifs
8364       ;;
8365     esac
8366 else
8367   enable_fast_install=yes
8368 fi
8369
8370
8371
8372
8373
8374
8375
8376
8377   shared_archive_member_spec=
8378 case $host,$enable_shared in
8379 power*-*-aix[5-9]*,yes)
8380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8381 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8382
8383 # Check whether --with-aix-soname was given.
8384 if test "${with_aix_soname+set}" = set; then :
8385   withval=$with_aix_soname; case $withval in
8386     aix|svr4|both)
8387       ;;
8388     *)
8389       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8390       ;;
8391     esac
8392     lt_cv_with_aix_soname=$with_aix_soname
8393 else
8394   if ${lt_cv_with_aix_soname+:} false; then :
8395   $as_echo_n "(cached) " >&6
8396 else
8397   lt_cv_with_aix_soname=aix
8398 fi
8399
8400     with_aix_soname=$lt_cv_with_aix_soname
8401 fi
8402
8403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8404 $as_echo "$with_aix_soname" >&6; }
8405   if test aix != "$with_aix_soname"; then
8406     # For the AIX way of multilib, we name the shared archive member
8407     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8408     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8409     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8410     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8411     if test 64 = "${OBJECT_MODE-32}"; then
8412       shared_archive_member_spec=shr_64
8413     else
8414       shared_archive_member_spec=shr
8415     fi
8416   fi
8417   ;;
8418 *)
8419   with_aix_soname=aix
8420   ;;
8421 esac
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432 # This can be used to rebuild libtool when needed
8433 LIBTOOL_DEPS=$ltmain
8434
8435 # Always use our own libtool.
8436 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467 test -z "$LN_S" && LN_S="ln -s"
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482 if test -n "${ZSH_VERSION+set}"; then
8483    setopt NO_GLOB_SUBST
8484 fi
8485
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8487 $as_echo_n "checking for objdir... " >&6; }
8488 if ${lt_cv_objdir+:} false; then :
8489   $as_echo_n "(cached) " >&6
8490 else
8491   rm -f .libs 2>/dev/null
8492 mkdir .libs 2>/dev/null
8493 if test -d .libs; then
8494   lt_cv_objdir=.libs
8495 else
8496   # MS-DOS does not allow filenames that begin with a dot.
8497   lt_cv_objdir=_libs
8498 fi
8499 rmdir .libs 2>/dev/null
8500 fi
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8502 $as_echo "$lt_cv_objdir" >&6; }
8503 objdir=$lt_cv_objdir
8504
8505
8506
8507
8508
8509 cat >>confdefs.h <<_ACEOF
8510 #define LT_OBJDIR "$lt_cv_objdir/"
8511 _ACEOF
8512
8513
8514
8515
8516 case $host_os in
8517 aix3*)
8518   # AIX sometimes has problems with the GCC collect2 program.  For some
8519   # reason, if we set the COLLECT_NAMES environment variable, the problems
8520   # vanish in a puff of smoke.
8521   if test set != "${COLLECT_NAMES+set}"; then
8522     COLLECT_NAMES=
8523     export COLLECT_NAMES
8524   fi
8525   ;;
8526 esac
8527
8528 # Global variables:
8529 ofile=libtool
8530 can_build_shared=yes
8531
8532 # All known linkers require a '.a' archive for static linking (except MSVC,
8533 # which needs '.lib').
8534 libext=a
8535
8536 with_gnu_ld=$lt_cv_prog_gnu_ld
8537
8538 old_CC=$CC
8539 old_CFLAGS=$CFLAGS
8540
8541 # Set sane defaults for various variables
8542 test -z "$CC" && CC=cc
8543 test -z "$LTCC" && LTCC=$CC
8544 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8545 test -z "$LD" && LD=ld
8546 test -z "$ac_objext" && ac_objext=o
8547
8548 func_cc_basename $compiler
8549 cc_basename=$func_cc_basename_result
8550
8551
8552 # Only perform the check for file, if the check method requires it
8553 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8554 case $deplibs_check_method in
8555 file_magic*)
8556   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8558 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8559 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8560   $as_echo_n "(cached) " >&6
8561 else
8562   case $MAGIC_CMD in
8563 [\\/*] |  ?:[\\/]*)
8564   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8565   ;;
8566 *)
8567   lt_save_MAGIC_CMD=$MAGIC_CMD
8568   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8569   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8570   for ac_dir in $ac_dummy; do
8571     IFS=$lt_save_ifs
8572     test -z "$ac_dir" && ac_dir=.
8573     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8574       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8575       if test -n "$file_magic_test_file"; then
8576         case $deplibs_check_method in
8577         "file_magic "*)
8578           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8579           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8580           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8581             $EGREP "$file_magic_regex" > /dev/null; then
8582             :
8583           else
8584             cat <<_LT_EOF 1>&2
8585
8586 *** Warning: the command libtool uses to detect shared libraries,
8587 *** $file_magic_cmd, produces output that libtool cannot recognize.
8588 *** The result is that libtool may fail to recognize shared libraries
8589 *** as such.  This will affect the creation of libtool libraries that
8590 *** depend on shared libraries, but programs linked with such libtool
8591 *** libraries will work regardless of this problem.  Nevertheless, you
8592 *** may want to report the problem to your system manager and/or to
8593 *** bug-libtool@gnu.org
8594
8595 _LT_EOF
8596           fi ;;
8597         esac
8598       fi
8599       break
8600     fi
8601   done
8602   IFS=$lt_save_ifs
8603   MAGIC_CMD=$lt_save_MAGIC_CMD
8604   ;;
8605 esac
8606 fi
8607
8608 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8609 if test -n "$MAGIC_CMD"; then
8610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8611 $as_echo "$MAGIC_CMD" >&6; }
8612 else
8613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8615 fi
8616
8617
8618
8619
8620
8621 if test -z "$lt_cv_path_MAGIC_CMD"; then
8622   if test -n "$ac_tool_prefix"; then
8623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8624 $as_echo_n "checking for file... " >&6; }
8625 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8626   $as_echo_n "(cached) " >&6
8627 else
8628   case $MAGIC_CMD in
8629 [\\/*] |  ?:[\\/]*)
8630   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8631   ;;
8632 *)
8633   lt_save_MAGIC_CMD=$MAGIC_CMD
8634   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8635   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8636   for ac_dir in $ac_dummy; do
8637     IFS=$lt_save_ifs
8638     test -z "$ac_dir" && ac_dir=.
8639     if test -f "$ac_dir/file"; then
8640       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8641       if test -n "$file_magic_test_file"; then
8642         case $deplibs_check_method in
8643         "file_magic "*)
8644           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8645           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8646           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8647             $EGREP "$file_magic_regex" > /dev/null; then
8648             :
8649           else
8650             cat <<_LT_EOF 1>&2
8651
8652 *** Warning: the command libtool uses to detect shared libraries,
8653 *** $file_magic_cmd, produces output that libtool cannot recognize.
8654 *** The result is that libtool may fail to recognize shared libraries
8655 *** as such.  This will affect the creation of libtool libraries that
8656 *** depend on shared libraries, but programs linked with such libtool
8657 *** libraries will work regardless of this problem.  Nevertheless, you
8658 *** may want to report the problem to your system manager and/or to
8659 *** bug-libtool@gnu.org
8660
8661 _LT_EOF
8662           fi ;;
8663         esac
8664       fi
8665       break
8666     fi
8667   done
8668   IFS=$lt_save_ifs
8669   MAGIC_CMD=$lt_save_MAGIC_CMD
8670   ;;
8671 esac
8672 fi
8673
8674 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8675 if test -n "$MAGIC_CMD"; then
8676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8677 $as_echo "$MAGIC_CMD" >&6; }
8678 else
8679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680 $as_echo "no" >&6; }
8681 fi
8682
8683
8684   else
8685     MAGIC_CMD=:
8686   fi
8687 fi
8688
8689   fi
8690   ;;
8691 esac
8692
8693 # Use C for the default configuration in the libtool script
8694
8695 lt_save_CC=$CC
8696 ac_ext=c
8697 ac_cpp='$CPP $CPPFLAGS'
8698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8701
8702
8703 # Source file extension for C test sources.
8704 ac_ext=c
8705
8706 # Object file extension for compiled C test sources.
8707 objext=o
8708 objext=$objext
8709
8710 # Code to be used in simple compile tests
8711 lt_simple_compile_test_code="int some_variable = 0;"
8712
8713 # Code to be used in simple link tests
8714 lt_simple_link_test_code='int main(){return(0);}'
8715
8716
8717
8718
8719
8720
8721
8722 # If no C compiler was specified, use CC.
8723 LTCC=${LTCC-"$CC"}
8724
8725 # If no C compiler flags were specified, use CFLAGS.
8726 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8727
8728 # Allow CC to be a program name with arguments.
8729 compiler=$CC
8730
8731 # Save the default compiler, since it gets overwritten when the other
8732 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8733 compiler_DEFAULT=$CC
8734
8735 # save warnings/boilerplate of simple test code
8736 ac_outfile=conftest.$ac_objext
8737 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8738 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8739 _lt_compiler_boilerplate=`cat conftest.err`
8740 $RM conftest*
8741
8742 ac_outfile=conftest.$ac_objext
8743 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8744 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8745 _lt_linker_boilerplate=`cat conftest.err`
8746 $RM -r conftest*
8747
8748
8749 ## CAVEAT EMPTOR:
8750 ## There is no encapsulation within the following macros, do not change
8751 ## the running order or otherwise move them around unless you know exactly
8752 ## what you are doing...
8753 if test -n "$compiler"; then
8754
8755 lt_prog_compiler_no_builtin_flag=
8756
8757 if test yes = "$GCC"; then
8758   case $cc_basename in
8759   nvcc*)
8760     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8761   *)
8762     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8763   esac
8764
8765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8766 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8767 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8768   $as_echo_n "(cached) " >&6
8769 else
8770   lt_cv_prog_compiler_rtti_exceptions=no
8771    ac_outfile=conftest.$ac_objext
8772    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8773    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8774    # Insert the option either (1) after the last *FLAGS variable, or
8775    # (2) before a word containing "conftest.", or (3) at the end.
8776    # Note that $ac_compile itself does not contain backslashes and begins
8777    # with a dollar sign (not a hyphen), so the echo should work correctly.
8778    # The option is referenced via a variable to avoid confusing sed.
8779    lt_compile=`echo "$ac_compile" | $SED \
8780    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8781    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8782    -e 's:$: $lt_compiler_flag:'`
8783    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8784    (eval "$lt_compile" 2>conftest.err)
8785    ac_status=$?
8786    cat conftest.err >&5
8787    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788    if (exit $ac_status) && test -s "$ac_outfile"; then
8789      # The compiler can only warn and ignore the option if not recognized
8790      # So say no if there are warnings other than the usual output.
8791      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8792      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8793      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8794        lt_cv_prog_compiler_rtti_exceptions=yes
8795      fi
8796    fi
8797    $RM conftest*
8798
8799 fi
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8801 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8802
8803 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8804     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8805 else
8806     :
8807 fi
8808
8809 fi
8810
8811
8812
8813
8814
8815
8816   lt_prog_compiler_wl=
8817 lt_prog_compiler_pic=
8818 lt_prog_compiler_static=
8819
8820
8821   if test yes = "$GCC"; then
8822     lt_prog_compiler_wl='-Wl,'
8823     lt_prog_compiler_static='-static'
8824
8825     case $host_os in
8826       aix*)
8827       # All AIX code is PIC.
8828       if test ia64 = "$host_cpu"; then
8829         # AIX 5 now supports IA64 processor
8830         lt_prog_compiler_static='-Bstatic'
8831       fi
8832       lt_prog_compiler_pic='-fPIC'
8833       ;;
8834
8835     amigaos*)
8836       case $host_cpu in
8837       powerpc)
8838             # see comment about AmigaOS4 .so support
8839             lt_prog_compiler_pic='-fPIC'
8840         ;;
8841       m68k)
8842             # FIXME: we need at least 68020 code to build shared libraries, but
8843             # adding the '-m68020' flag to GCC prevents building anything better,
8844             # like '-m68040'.
8845             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8846         ;;
8847       esac
8848       ;;
8849
8850     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8851       # PIC is the default for these OSes.
8852       ;;
8853
8854     mingw* | cygwin* | pw32* | os2* | cegcc*)
8855       # This hack is so that the source file can tell whether it is being
8856       # built for inclusion in a dll (and should export symbols for example).
8857       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8858       # (--disable-auto-import) libraries
8859       lt_prog_compiler_pic='-DDLL_EXPORT'
8860       case $host_os in
8861       os2*)
8862         lt_prog_compiler_static='$wl-static'
8863         ;;
8864       esac
8865       ;;
8866
8867     darwin* | rhapsody*)
8868       # PIC is the default on this platform
8869       # Common symbols not allowed in MH_DYLIB files
8870       lt_prog_compiler_pic='-fno-common'
8871       ;;
8872
8873     haiku*)
8874       # PIC is the default for Haiku.
8875       # The "-static" flag exists, but is broken.
8876       lt_prog_compiler_static=
8877       ;;
8878
8879     hpux*)
8880       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8881       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8882       # sets the default TLS model and affects inlining.
8883       case $host_cpu in
8884       hppa*64*)
8885         # +Z the default
8886         ;;
8887       *)
8888         lt_prog_compiler_pic='-fPIC'
8889         ;;
8890       esac
8891       ;;
8892
8893     interix[3-9]*)
8894       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8895       # Instead, we relocate shared libraries at runtime.
8896       ;;
8897
8898     msdosdjgpp*)
8899       # Just because we use GCC doesn't mean we suddenly get shared libraries
8900       # on systems that don't support them.
8901       lt_prog_compiler_can_build_shared=no
8902       enable_shared=no
8903       ;;
8904
8905     *nto* | *qnx*)
8906       # QNX uses GNU C++, but need to define -shared option too, otherwise
8907       # it will coredump.
8908       lt_prog_compiler_pic='-fPIC -shared'
8909       ;;
8910
8911     sysv4*MP*)
8912       if test -d /usr/nec; then
8913         lt_prog_compiler_pic=-Kconform_pic
8914       fi
8915       ;;
8916
8917     *)
8918       lt_prog_compiler_pic='-fPIC'
8919       ;;
8920     esac
8921
8922     case $cc_basename in
8923     nvcc*) # Cuda Compiler Driver 2.2
8924       lt_prog_compiler_wl='-Xlinker '
8925       if test -n "$lt_prog_compiler_pic"; then
8926         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8927       fi
8928       ;;
8929     esac
8930   else
8931     # PORTME Check for flag to pass linker flags through the system compiler.
8932     case $host_os in
8933     aix*)
8934       lt_prog_compiler_wl='-Wl,'
8935       if test ia64 = "$host_cpu"; then
8936         # AIX 5 now supports IA64 processor
8937         lt_prog_compiler_static='-Bstatic'
8938       else
8939         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8940       fi
8941       ;;
8942
8943     darwin* | rhapsody*)
8944       # PIC is the default on this platform
8945       # Common symbols not allowed in MH_DYLIB files
8946       lt_prog_compiler_pic='-fno-common'
8947       case $cc_basename in
8948       nagfor*)
8949         # NAG Fortran compiler
8950         lt_prog_compiler_wl='-Wl,-Wl,,'
8951         lt_prog_compiler_pic='-PIC'
8952         lt_prog_compiler_static='-Bstatic'
8953         ;;
8954       esac
8955       ;;
8956
8957     mingw* | cygwin* | pw32* | os2* | cegcc*)
8958       # This hack is so that the source file can tell whether it is being
8959       # built for inclusion in a dll (and should export symbols for example).
8960       lt_prog_compiler_pic='-DDLL_EXPORT'
8961       case $host_os in
8962       os2*)
8963         lt_prog_compiler_static='$wl-static'
8964         ;;
8965       esac
8966       ;;
8967
8968     hpux9* | hpux10* | hpux11*)
8969       lt_prog_compiler_wl='-Wl,'
8970       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8971       # not for PA HP-UX.
8972       case $host_cpu in
8973       hppa*64*|ia64*)
8974         # +Z the default
8975         ;;
8976       *)
8977         lt_prog_compiler_pic='+Z'
8978         ;;
8979       esac
8980       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8981       lt_prog_compiler_static='$wl-a ${wl}archive'
8982       ;;
8983
8984     irix5* | irix6* | nonstopux*)
8985       lt_prog_compiler_wl='-Wl,'
8986       # PIC (with -KPIC) is the default.
8987       lt_prog_compiler_static='-non_shared'
8988       ;;
8989
8990     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8991       case $cc_basename in
8992       # old Intel for x86_64, which still supported -KPIC.
8993       ecc*)
8994         lt_prog_compiler_wl='-Wl,'
8995         lt_prog_compiler_pic='-KPIC'
8996         lt_prog_compiler_static='-static'
8997         ;;
8998       # icc used to be incompatible with GCC.
8999       # ICC 10 doesn't accept -KPIC any more.
9000       icc* | ifort*)
9001         lt_prog_compiler_wl='-Wl,'
9002         lt_prog_compiler_pic='-fPIC'
9003         lt_prog_compiler_static='-static'
9004         ;;
9005       # Lahey Fortran 8.1.
9006       lf95*)
9007         lt_prog_compiler_wl='-Wl,'
9008         lt_prog_compiler_pic='--shared'
9009         lt_prog_compiler_static='--static'
9010         ;;
9011       nagfor*)
9012         # NAG Fortran compiler
9013         lt_prog_compiler_wl='-Wl,-Wl,,'
9014         lt_prog_compiler_pic='-PIC'
9015         lt_prog_compiler_static='-Bstatic'
9016         ;;
9017       tcc*)
9018         # Fabrice Bellard et al's Tiny C Compiler
9019         lt_prog_compiler_wl='-Wl,'
9020         lt_prog_compiler_pic='-fPIC'
9021         lt_prog_compiler_static='-static'
9022         ;;
9023       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9024         # Portland Group compilers (*not* the Pentium gcc compiler,
9025         # which looks to be a dead project)
9026         lt_prog_compiler_wl='-Wl,'
9027         lt_prog_compiler_pic='-fpic'
9028         lt_prog_compiler_static='-Bstatic'
9029         ;;
9030       ccc*)
9031         lt_prog_compiler_wl='-Wl,'
9032         # All Alpha code is PIC.
9033         lt_prog_compiler_static='-non_shared'
9034         ;;
9035       xl* | bgxl* | bgf* | mpixl*)
9036         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9037         lt_prog_compiler_wl='-Wl,'
9038         lt_prog_compiler_pic='-qpic'
9039         lt_prog_compiler_static='-qstaticlink'
9040         ;;
9041       *)
9042         case `$CC -V 2>&1 | sed 5q` in
9043         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9044           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9045           lt_prog_compiler_pic='-KPIC'
9046           lt_prog_compiler_static='-Bstatic'
9047           lt_prog_compiler_wl=''
9048           ;;
9049         *Sun\ F* | *Sun*Fortran*)
9050           lt_prog_compiler_pic='-KPIC'
9051           lt_prog_compiler_static='-Bstatic'
9052           lt_prog_compiler_wl='-Qoption ld '
9053           ;;
9054         *Sun\ C*)
9055           # Sun C 5.9
9056           lt_prog_compiler_pic='-KPIC'
9057           lt_prog_compiler_static='-Bstatic'
9058           lt_prog_compiler_wl='-Wl,'
9059           ;;
9060         *Intel*\ [CF]*Compiler*)
9061           lt_prog_compiler_wl='-Wl,'
9062           lt_prog_compiler_pic='-fPIC'
9063           lt_prog_compiler_static='-static'
9064           ;;
9065         *Portland\ Group*)
9066           lt_prog_compiler_wl='-Wl,'
9067           lt_prog_compiler_pic='-fpic'
9068           lt_prog_compiler_static='-Bstatic'
9069           ;;
9070         esac
9071         ;;
9072       esac
9073       ;;
9074
9075     newsos6)
9076       lt_prog_compiler_pic='-KPIC'
9077       lt_prog_compiler_static='-Bstatic'
9078       ;;
9079
9080     *nto* | *qnx*)
9081       # QNX uses GNU C++, but need to define -shared option too, otherwise
9082       # it will coredump.
9083       lt_prog_compiler_pic='-fPIC -shared'
9084       ;;
9085
9086     osf3* | osf4* | osf5*)
9087       lt_prog_compiler_wl='-Wl,'
9088       # All OSF/1 code is PIC.
9089       lt_prog_compiler_static='-non_shared'
9090       ;;
9091
9092     rdos*)
9093       lt_prog_compiler_static='-non_shared'
9094       ;;
9095
9096     solaris*)
9097       lt_prog_compiler_pic='-KPIC'
9098       lt_prog_compiler_static='-Bstatic'
9099       case $cc_basename in
9100       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9101         lt_prog_compiler_wl='-Qoption ld ';;
9102       *)
9103         lt_prog_compiler_wl='-Wl,';;
9104       esac
9105       ;;
9106
9107     sunos4*)
9108       lt_prog_compiler_wl='-Qoption ld '
9109       lt_prog_compiler_pic='-PIC'
9110       lt_prog_compiler_static='-Bstatic'
9111       ;;
9112
9113     sysv4 | sysv4.2uw2* | sysv4.3*)
9114       lt_prog_compiler_wl='-Wl,'
9115       lt_prog_compiler_pic='-KPIC'
9116       lt_prog_compiler_static='-Bstatic'
9117       ;;
9118
9119     sysv4*MP*)
9120       if test -d /usr/nec; then
9121         lt_prog_compiler_pic='-Kconform_pic'
9122         lt_prog_compiler_static='-Bstatic'
9123       fi
9124       ;;
9125
9126     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9127       lt_prog_compiler_wl='-Wl,'
9128       lt_prog_compiler_pic='-KPIC'
9129       lt_prog_compiler_static='-Bstatic'
9130       ;;
9131
9132     unicos*)
9133       lt_prog_compiler_wl='-Wl,'
9134       lt_prog_compiler_can_build_shared=no
9135       ;;
9136
9137     uts4*)
9138       lt_prog_compiler_pic='-pic'
9139       lt_prog_compiler_static='-Bstatic'
9140       ;;
9141
9142     *)
9143       lt_prog_compiler_can_build_shared=no
9144       ;;
9145     esac
9146   fi
9147
9148 case $host_os in
9149   # For platforms that do not support PIC, -DPIC is meaningless:
9150   *djgpp*)
9151     lt_prog_compiler_pic=
9152     ;;
9153   *)
9154     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9155     ;;
9156 esac
9157
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9159 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9160 if ${lt_cv_prog_compiler_pic+:} false; then :
9161   $as_echo_n "(cached) " >&6
9162 else
9163   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9164 fi
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9166 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9167 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9168
9169 #
9170 # Check to make sure the PIC flag actually works.
9171 #
9172 if test -n "$lt_prog_compiler_pic"; then
9173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9174 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9175 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9176   $as_echo_n "(cached) " >&6
9177 else
9178   lt_cv_prog_compiler_pic_works=no
9179    ac_outfile=conftest.$ac_objext
9180    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9181    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9182    # Insert the option either (1) after the last *FLAGS variable, or
9183    # (2) before a word containing "conftest.", or (3) at the end.
9184    # Note that $ac_compile itself does not contain backslashes and begins
9185    # with a dollar sign (not a hyphen), so the echo should work correctly.
9186    # The option is referenced via a variable to avoid confusing sed.
9187    lt_compile=`echo "$ac_compile" | $SED \
9188    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9189    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9190    -e 's:$: $lt_compiler_flag:'`
9191    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9192    (eval "$lt_compile" 2>conftest.err)
9193    ac_status=$?
9194    cat conftest.err >&5
9195    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196    if (exit $ac_status) && test -s "$ac_outfile"; then
9197      # The compiler can only warn and ignore the option if not recognized
9198      # So say no if there are warnings other than the usual output.
9199      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9200      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9201      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9202        lt_cv_prog_compiler_pic_works=yes
9203      fi
9204    fi
9205    $RM conftest*
9206
9207 fi
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9209 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9210
9211 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9212     case $lt_prog_compiler_pic in
9213      "" | " "*) ;;
9214      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9215      esac
9216 else
9217     lt_prog_compiler_pic=
9218      lt_prog_compiler_can_build_shared=no
9219 fi
9220
9221 fi
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233 #
9234 # Check to make sure the static flag actually works.
9235 #
9236 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9238 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9239 if ${lt_cv_prog_compiler_static_works+:} false; then :
9240   $as_echo_n "(cached) " >&6
9241 else
9242   lt_cv_prog_compiler_static_works=no
9243    save_LDFLAGS=$LDFLAGS
9244    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9245    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9246    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9247      # The linker can only warn and ignore the option if not recognized
9248      # So say no if there are warnings
9249      if test -s conftest.err; then
9250        # Append any errors to the config.log.
9251        cat conftest.err 1>&5
9252        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9253        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9254        if diff conftest.exp conftest.er2 >/dev/null; then
9255          lt_cv_prog_compiler_static_works=yes
9256        fi
9257      else
9258        lt_cv_prog_compiler_static_works=yes
9259      fi
9260    fi
9261    $RM -r conftest*
9262    LDFLAGS=$save_LDFLAGS
9263
9264 fi
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9266 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9267
9268 if test yes = "$lt_cv_prog_compiler_static_works"; then
9269     :
9270 else
9271     lt_prog_compiler_static=
9272 fi
9273
9274
9275
9276
9277
9278
9279
9280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9281 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9282 if ${lt_cv_prog_compiler_c_o+:} false; then :
9283   $as_echo_n "(cached) " >&6
9284 else
9285   lt_cv_prog_compiler_c_o=no
9286    $RM -r conftest 2>/dev/null
9287    mkdir conftest
9288    cd conftest
9289    mkdir out
9290    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9291
9292    lt_compiler_flag="-o out/conftest2.$ac_objext"
9293    # Insert the option either (1) after the last *FLAGS variable, or
9294    # (2) before a word containing "conftest.", or (3) at the end.
9295    # Note that $ac_compile itself does not contain backslashes and begins
9296    # with a dollar sign (not a hyphen), so the echo should work correctly.
9297    lt_compile=`echo "$ac_compile" | $SED \
9298    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9299    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9300    -e 's:$: $lt_compiler_flag:'`
9301    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9302    (eval "$lt_compile" 2>out/conftest.err)
9303    ac_status=$?
9304    cat out/conftest.err >&5
9305    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9307    then
9308      # The compiler can only warn and ignore the option if not recognized
9309      # So say no if there are warnings
9310      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9311      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9312      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9313        lt_cv_prog_compiler_c_o=yes
9314      fi
9315    fi
9316    chmod u+w . 2>&5
9317    $RM conftest*
9318    # SGI C++ compiler will create directory out/ii_files/ for
9319    # template instantiation
9320    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9321    $RM out/* && rmdir out
9322    cd ..
9323    $RM -r conftest
9324    $RM conftest*
9325
9326 fi
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9328 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9329
9330
9331
9332
9333
9334
9335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9336 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9337 if ${lt_cv_prog_compiler_c_o+:} false; then :
9338   $as_echo_n "(cached) " >&6
9339 else
9340   lt_cv_prog_compiler_c_o=no
9341    $RM -r conftest 2>/dev/null
9342    mkdir conftest
9343    cd conftest
9344    mkdir out
9345    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9346
9347    lt_compiler_flag="-o out/conftest2.$ac_objext"
9348    # Insert the option either (1) after the last *FLAGS variable, or
9349    # (2) before a word containing "conftest.", or (3) at the end.
9350    # Note that $ac_compile itself does not contain backslashes and begins
9351    # with a dollar sign (not a hyphen), so the echo should work correctly.
9352    lt_compile=`echo "$ac_compile" | $SED \
9353    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9354    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9355    -e 's:$: $lt_compiler_flag:'`
9356    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9357    (eval "$lt_compile" 2>out/conftest.err)
9358    ac_status=$?
9359    cat out/conftest.err >&5
9360    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9362    then
9363      # The compiler can only warn and ignore the option if not recognized
9364      # So say no if there are warnings
9365      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9366      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9367      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9368        lt_cv_prog_compiler_c_o=yes
9369      fi
9370    fi
9371    chmod u+w . 2>&5
9372    $RM conftest*
9373    # SGI C++ compiler will create directory out/ii_files/ for
9374    # template instantiation
9375    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9376    $RM out/* && rmdir out
9377    cd ..
9378    $RM -r conftest
9379    $RM conftest*
9380
9381 fi
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9383 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9384
9385
9386
9387
9388 hard_links=nottested
9389 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9390   # do not overwrite the value of need_locks provided by the user
9391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9392 $as_echo_n "checking if we can lock with hard links... " >&6; }
9393   hard_links=yes
9394   $RM conftest*
9395   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9396   touch conftest.a
9397   ln conftest.a conftest.b 2>&5 || hard_links=no
9398   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9400 $as_echo "$hard_links" >&6; }
9401   if test no = "$hard_links"; then
9402     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9403 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9404     need_locks=warn
9405   fi
9406 else
9407   need_locks=no
9408 fi
9409
9410
9411
9412
9413
9414
9415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9416 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9417
9418   runpath_var=
9419   allow_undefined_flag=
9420   always_export_symbols=no
9421   archive_cmds=
9422   archive_expsym_cmds=
9423   compiler_needs_object=no
9424   enable_shared_with_static_runtimes=no
9425   export_dynamic_flag_spec=
9426   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9427   hardcode_automatic=no
9428   hardcode_direct=no
9429   hardcode_direct_absolute=no
9430   hardcode_libdir_flag_spec=
9431   hardcode_libdir_separator=
9432   hardcode_minus_L=no
9433   hardcode_shlibpath_var=unsupported
9434   inherit_rpath=no
9435   link_all_deplibs=unknown
9436   module_cmds=
9437   module_expsym_cmds=
9438   old_archive_from_new_cmds=
9439   old_archive_from_expsyms_cmds=
9440   thread_safe_flag_spec=
9441   whole_archive_flag_spec=
9442   # include_expsyms should be a list of space-separated symbols to be *always*
9443   # included in the symbol list
9444   include_expsyms=
9445   # exclude_expsyms can be an extended regexp of symbols to exclude
9446   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9447   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9448   # as well as any symbol that contains 'd'.
9449   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9450   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9451   # platforms (ab)use it in PIC code, but their linkers get confused if
9452   # the symbol is explicitly referenced.  Since portable code cannot
9453   # rely on this symbol name, it's probably fine to never include it in
9454   # preloaded symbol tables.
9455   # Exclude shared library initialization/finalization symbols.
9456   extract_expsyms_cmds=
9457
9458   case $host_os in
9459   cygwin* | mingw* | pw32* | cegcc*)
9460     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9461     # When not using gcc, we currently assume that we are using
9462     # Microsoft Visual C++.
9463     if test yes != "$GCC"; then
9464       with_gnu_ld=no
9465     fi
9466     ;;
9467   interix*)
9468     # we just hope/assume this is gcc and not c89 (= MSVC++)
9469     with_gnu_ld=yes
9470     ;;
9471   openbsd* | bitrig*)
9472     with_gnu_ld=no
9473     ;;
9474   linux* | k*bsd*-gnu | gnu*)
9475     link_all_deplibs=no
9476     ;;
9477   esac
9478
9479   ld_shlibs=yes
9480
9481   # On some targets, GNU ld is compatible enough with the native linker
9482   # that we're better off using the native interface for both.
9483   lt_use_gnu_ld_interface=no
9484   if test yes = "$with_gnu_ld"; then
9485     case $host_os in
9486       aix*)
9487         # The AIX port of GNU ld has always aspired to compatibility
9488         # with the native linker.  However, as the warning in the GNU ld
9489         # block says, versions before 2.19.5* couldn't really create working
9490         # shared libraries, regardless of the interface used.
9491         case `$LD -v 2>&1` in
9492           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9493           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9494           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9495           *)
9496             lt_use_gnu_ld_interface=yes
9497             ;;
9498         esac
9499         ;;
9500       *)
9501         lt_use_gnu_ld_interface=yes
9502         ;;
9503     esac
9504   fi
9505
9506   if test yes = "$lt_use_gnu_ld_interface"; then
9507     # If archive_cmds runs LD, not CC, wlarc should be empty
9508     wlarc='$wl'
9509
9510     # Set some defaults for GNU ld with shared library support. These
9511     # are reset later if shared libraries are not supported. Putting them
9512     # here allows them to be overridden if necessary.
9513     runpath_var=LD_RUN_PATH
9514     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9515     export_dynamic_flag_spec='$wl--export-dynamic'
9516     # ancient GNU ld didn't support --whole-archive et. al.
9517     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9518       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9519     else
9520       whole_archive_flag_spec=
9521     fi
9522     supports_anon_versioning=no
9523     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9524       *GNU\ gold*) supports_anon_versioning=yes ;;
9525       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9526       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9527       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9528       *\ 2.11.*) ;; # other 2.11 versions
9529       *) supports_anon_versioning=yes ;;
9530     esac
9531
9532     # See if GNU ld supports shared libraries.
9533     case $host_os in
9534     aix[3-9]*)
9535       # On AIX/PPC, the GNU linker is very broken
9536       if test ia64 != "$host_cpu"; then
9537         ld_shlibs=no
9538         cat <<_LT_EOF 1>&2
9539
9540 *** Warning: the GNU linker, at least up to release 2.19, is reported
9541 *** to be unable to reliably create shared libraries on AIX.
9542 *** Therefore, libtool is disabling shared libraries support.  If you
9543 *** really care for shared libraries, you may want to install binutils
9544 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9545 *** You will then need to restart the configuration process.
9546
9547 _LT_EOF
9548       fi
9549       ;;
9550
9551     amigaos*)
9552       case $host_cpu in
9553       powerpc)
9554             # see comment about AmigaOS4 .so support
9555             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9556             archive_expsym_cmds=''
9557         ;;
9558       m68k)
9559             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)'
9560             hardcode_libdir_flag_spec='-L$libdir'
9561             hardcode_minus_L=yes
9562         ;;
9563       esac
9564       ;;
9565
9566     beos*)
9567       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9568         allow_undefined_flag=unsupported
9569         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9570         # support --undefined.  This deserves some investigation.  FIXME
9571         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9572       else
9573         ld_shlibs=no
9574       fi
9575       ;;
9576
9577     cygwin* | mingw* | pw32* | cegcc*)
9578       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9579       # as there is no search path for DLLs.
9580       hardcode_libdir_flag_spec='-L$libdir'
9581       export_dynamic_flag_spec='$wl--export-all-symbols'
9582       allow_undefined_flag=unsupported
9583       always_export_symbols=no
9584       enable_shared_with_static_runtimes=yes
9585       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'
9586       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9587
9588       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9589         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9590         # If the export-symbols file already is a .def file, use it as
9591         # is; otherwise, prepend EXPORTS...
9592         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9593           cp $export_symbols $output_objdir/$soname.def;
9594         else
9595           echo EXPORTS > $output_objdir/$soname.def;
9596           cat $export_symbols >> $output_objdir/$soname.def;
9597         fi~
9598         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9599       else
9600         ld_shlibs=no
9601       fi
9602       ;;
9603
9604     haiku*)
9605       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9606       link_all_deplibs=yes
9607       ;;
9608
9609     os2*)
9610       hardcode_libdir_flag_spec='-L$libdir'
9611       hardcode_minus_L=yes
9612       allow_undefined_flag=unsupported
9613       shrext_cmds=.dll
9614       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9615         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9616         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9617         $ECHO EXPORTS >> $output_objdir/$libname.def~
9618         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9619         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9620         emximp -o $lib $output_objdir/$libname.def'
9621       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9622         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9623         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9624         $ECHO EXPORTS >> $output_objdir/$libname.def~
9625         prefix_cmds="$SED"~
9626         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9627           prefix_cmds="$prefix_cmds -e 1d";
9628         fi~
9629         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9630         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9631         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9632         emximp -o $lib $output_objdir/$libname.def'
9633       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9634       enable_shared_with_static_runtimes=yes
9635       ;;
9636
9637     interix[3-9]*)
9638       hardcode_direct=no
9639       hardcode_shlibpath_var=no
9640       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9641       export_dynamic_flag_spec='$wl-E'
9642       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9643       # Instead, shared libraries are loaded at an image base (0x10000000 by
9644       # default) and relocated if they conflict, which is a slow very memory
9645       # consuming and fragmenting process.  To avoid this, we pick a random,
9646       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9647       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9648       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9649       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'
9650       ;;
9651
9652     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9653       tmp_diet=no
9654       if test linux-dietlibc = "$host_os"; then
9655         case $cc_basename in
9656           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9657         esac
9658       fi
9659       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9660          && test no = "$tmp_diet"
9661       then
9662         tmp_addflag=' $pic_flag'
9663         tmp_sharedflag='-shared'
9664         case $cc_basename,$host_cpu in
9665         pgcc*)                          # Portland Group C compiler
9666           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'
9667           tmp_addflag=' $pic_flag'
9668           ;;
9669         pgf77* | pgf90* | pgf95* | pgfortran*)
9670                                         # Portland Group f77 and f90 compilers
9671           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'
9672           tmp_addflag=' $pic_flag -Mnomain' ;;
9673         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9674           tmp_addflag=' -i_dynamic' ;;
9675         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9676           tmp_addflag=' -i_dynamic -nofor_main' ;;
9677         ifc* | ifort*)                  # Intel Fortran compiler
9678           tmp_addflag=' -nofor_main' ;;
9679         lf95*)                          # Lahey Fortran 8.1
9680           whole_archive_flag_spec=
9681           tmp_sharedflag='--shared' ;;
9682         nagfor*)                        # NAGFOR 5.3
9683           tmp_sharedflag='-Wl,-shared' ;;
9684         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9685           tmp_sharedflag='-qmkshrobj'
9686           tmp_addflag= ;;
9687         nvcc*)  # Cuda Compiler Driver 2.2
9688           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'
9689           compiler_needs_object=yes
9690           ;;
9691         esac
9692         case `$CC -V 2>&1 | sed 5q` in
9693         *Sun\ C*)                       # Sun C 5.9
9694           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'
9695           compiler_needs_object=yes
9696           tmp_sharedflag='-G' ;;
9697         *Sun\ F*)                       # Sun Fortran 8.3
9698           tmp_sharedflag='-G' ;;
9699         esac
9700         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9701
9702         if test yes = "$supports_anon_versioning"; then
9703           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9704             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9705             echo "local: *; };" >> $output_objdir/$libname.ver~
9706             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9707         fi
9708
9709         case $cc_basename in
9710         tcc*)
9711           export_dynamic_flag_spec='-rdynamic'
9712           ;;
9713         xlf* | bgf* | bgxlf* | mpixlf*)
9714           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9715           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9716           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9717           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9718           if test yes = "$supports_anon_versioning"; then
9719             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9720               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9721               echo "local: *; };" >> $output_objdir/$libname.ver~
9722               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9723           fi
9724           ;;
9725         esac
9726       else
9727         ld_shlibs=no
9728       fi
9729       ;;
9730
9731     netbsd* | netbsdelf*-gnu)
9732       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9733         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9734         wlarc=
9735       else
9736         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9737         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9738       fi
9739       ;;
9740
9741     solaris*)
9742       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9743         ld_shlibs=no
9744         cat <<_LT_EOF 1>&2
9745
9746 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9747 *** create shared libraries on Solaris systems.  Therefore, libtool
9748 *** is disabling shared libraries support.  We urge you to upgrade GNU
9749 *** binutils to release 2.9.1 or newer.  Another option is to modify
9750 *** your PATH or compiler configuration so that the native linker is
9751 *** used, and then restart.
9752
9753 _LT_EOF
9754       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9755         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9756         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9757       else
9758         ld_shlibs=no
9759       fi
9760       ;;
9761
9762     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9763       case `$LD -v 2>&1` in
9764         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9765         ld_shlibs=no
9766         cat <<_LT_EOF 1>&2
9767
9768 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9769 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9770 *** is disabling shared libraries support.  We urge you to upgrade GNU
9771 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9772 *** your PATH or compiler configuration so that the native linker is
9773 *** used, and then restart.
9774
9775 _LT_EOF
9776         ;;
9777         *)
9778           # For security reasons, it is highly recommended that you always
9779           # use absolute paths for naming shared libraries, and exclude the
9780           # DT_RUNPATH tag from executables and libraries.  But doing so
9781           # requires that you compile everything twice, which is a pain.
9782           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9783             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9784             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9785             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9786           else
9787             ld_shlibs=no
9788           fi
9789         ;;
9790       esac
9791       ;;
9792
9793     sunos4*)
9794       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9795       wlarc=
9796       hardcode_direct=yes
9797       hardcode_shlibpath_var=no
9798       ;;
9799
9800     *)
9801       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9802         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9803         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9804       else
9805         ld_shlibs=no
9806       fi
9807       ;;
9808     esac
9809
9810     if test no = "$ld_shlibs"; then
9811       runpath_var=
9812       hardcode_libdir_flag_spec=
9813       export_dynamic_flag_spec=
9814       whole_archive_flag_spec=
9815     fi
9816   else
9817     # PORTME fill in a description of your system's linker (not GNU ld)
9818     case $host_os in
9819     aix3*)
9820       allow_undefined_flag=unsupported
9821       always_export_symbols=yes
9822       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'
9823       # Note: this linker hardcodes the directories in LIBPATH if there
9824       # are no directories specified by -L.
9825       hardcode_minus_L=yes
9826       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9827         # Neither direct hardcoding nor static linking is supported with a
9828         # broken collect2.
9829         hardcode_direct=unsupported
9830       fi
9831       ;;
9832
9833     aix[4-9]*)
9834       if test ia64 = "$host_cpu"; then
9835         # On IA64, the linker does run time linking by default, so we don't
9836         # have to do anything special.
9837         aix_use_runtimelinking=no
9838         exp_sym_flag='-Bexport'
9839         no_entry_flag=
9840       else
9841         # If we're using GNU nm, then we don't want the "-C" option.
9842         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9843         # Without the "-l" option, or with the "-B" option, AIX nm treats
9844         # weak defined symbols like other global defined symbols, whereas
9845         # GNU nm marks them as "W".
9846         # While the 'weak' keyword is ignored in the Export File, we need
9847         # it in the Import File for the 'aix-soname' feature, so we have
9848         # to replace the "-B" option with "-P" for AIX nm.
9849         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9850           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9851         else
9852           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9853         fi
9854         aix_use_runtimelinking=no
9855
9856         # Test if we are trying to use run time linking or normal
9857         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9858         # have runtime linking enabled, and use it for executables.
9859         # For shared libraries, we enable/disable runtime linking
9860         # depending on the kind of the shared library created -
9861         # when "with_aix_soname,aix_use_runtimelinking" is:
9862         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9863         # "aix,yes"  lib.so          shared, rtl:yes, for executables
9864         #            lib.a           static archive
9865         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9866         #            lib.a(lib.so.V) shared, rtl:no,  for executables
9867         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9868         #            lib.a(lib.so.V) shared, rtl:no
9869         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9870         #            lib.a           static archive
9871         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9872           for ld_flag in $LDFLAGS; do
9873           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9874             aix_use_runtimelinking=yes
9875             break
9876           fi
9877           done
9878           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9879             # With aix-soname=svr4, we create the lib.so.V shared archives only,
9880             # so we don't have lib.a shared libs to link our executables.
9881             # We have to force runtime linking in this case.
9882             aix_use_runtimelinking=yes
9883             LDFLAGS="$LDFLAGS -Wl,-brtl"
9884           fi
9885           ;;
9886         esac
9887
9888         exp_sym_flag='-bexport'
9889         no_entry_flag='-bnoentry'
9890       fi
9891
9892       # When large executables or shared objects are built, AIX ld can
9893       # have problems creating the table of contents.  If linking a library
9894       # or program results in "error TOC overflow" add -mminimal-toc to
9895       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9896       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9897
9898       archive_cmds=''
9899       hardcode_direct=yes
9900       hardcode_direct_absolute=yes
9901       hardcode_libdir_separator=':'
9902       link_all_deplibs=yes
9903       file_list_spec='$wl-f,'
9904       case $with_aix_soname,$aix_use_runtimelinking in
9905       aix,*) ;; # traditional, no import file
9906       svr4,* | *,yes) # use import file
9907         # The Import File defines what to hardcode.
9908         hardcode_direct=no
9909         hardcode_direct_absolute=no
9910         ;;
9911       esac
9912
9913       if test yes = "$GCC"; then
9914         case $host_os in aix4.[012]|aix4.[012].*)
9915         # We only want to do this on AIX 4.2 and lower, the check
9916         # below for broken collect2 doesn't work under 4.3+
9917           collect2name=`$CC -print-prog-name=collect2`
9918           if test -f "$collect2name" &&
9919            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9920           then
9921           # We have reworked collect2
9922           :
9923           else
9924           # We have old collect2
9925           hardcode_direct=unsupported
9926           # It fails to find uninstalled libraries when the uninstalled
9927           # path is not listed in the libpath.  Setting hardcode_minus_L
9928           # to unsupported forces relinking
9929           hardcode_minus_L=yes
9930           hardcode_libdir_flag_spec='-L$libdir'
9931           hardcode_libdir_separator=
9932           fi
9933           ;;
9934         esac
9935         shared_flag='-shared'
9936         if test yes = "$aix_use_runtimelinking"; then
9937           shared_flag="$shared_flag "'$wl-G'
9938         fi
9939         # Need to ensure runtime linking is disabled for the traditional
9940         # shared library, or the linker may eventually find shared libraries
9941         # /with/ Import File - we do not want to mix them.
9942         shared_flag_aix='-shared'
9943         shared_flag_svr4='-shared $wl-G'
9944       else
9945         # not using gcc
9946         if test ia64 = "$host_cpu"; then
9947         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9948         # chokes on -Wl,-G. The following line is correct:
9949           shared_flag='-G'
9950         else
9951           if test yes = "$aix_use_runtimelinking"; then
9952             shared_flag='$wl-G'
9953           else
9954             shared_flag='$wl-bM:SRE'
9955           fi
9956           shared_flag_aix='$wl-bM:SRE'
9957           shared_flag_svr4='$wl-G'
9958         fi
9959       fi
9960
9961       export_dynamic_flag_spec='$wl-bexpall'
9962       # It seems that -bexpall does not export symbols beginning with
9963       # underscore (_), so it is better to generate a list of symbols to export.
9964       always_export_symbols=yes
9965       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9966         # Warning - without using the other runtime loading flags (-brtl),
9967         # -berok will link without error, but may produce a broken library.
9968         allow_undefined_flag='-berok'
9969         # Determine the default libpath from the value encoded in an
9970         # empty executable.
9971         if test set = "${lt_cv_aix_libpath+set}"; then
9972   aix_libpath=$lt_cv_aix_libpath
9973 else
9974   if ${lt_cv_aix_libpath_+:} false; then :
9975   $as_echo_n "(cached) " >&6
9976 else
9977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978 /* end confdefs.h.  */
9979
9980 int
9981 main ()
9982 {
9983
9984   ;
9985   return 0;
9986 }
9987 _ACEOF
9988 if ac_fn_c_try_link "$LINENO"; then :
9989
9990   lt_aix_libpath_sed='
9991       /Import File Strings/,/^$/ {
9992           /^0/ {
9993               s/^0  *\([^ ]*\) *$/\1/
9994               p
9995           }
9996       }'
9997   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9998   # Check for a 64-bit object if we didn't find anything.
9999   if test -z "$lt_cv_aix_libpath_"; then
10000     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10001   fi
10002 fi
10003 rm -f core conftest.err conftest.$ac_objext \
10004     conftest$ac_exeext conftest.$ac_ext
10005   if test -z "$lt_cv_aix_libpath_"; then
10006     lt_cv_aix_libpath_=/usr/lib:/lib
10007   fi
10008
10009 fi
10010
10011   aix_libpath=$lt_cv_aix_libpath_
10012 fi
10013
10014         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10015         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10016       else
10017         if test ia64 = "$host_cpu"; then
10018           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10019           allow_undefined_flag="-z nodefs"
10020           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"
10021         else
10022          # Determine the default libpath from the value encoded in an
10023          # empty executable.
10024          if test set = "${lt_cv_aix_libpath+set}"; then
10025   aix_libpath=$lt_cv_aix_libpath
10026 else
10027   if ${lt_cv_aix_libpath_+:} false; then :
10028   $as_echo_n "(cached) " >&6
10029 else
10030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031 /* end confdefs.h.  */
10032
10033 int
10034 main ()
10035 {
10036
10037   ;
10038   return 0;
10039 }
10040 _ACEOF
10041 if ac_fn_c_try_link "$LINENO"; then :
10042
10043   lt_aix_libpath_sed='
10044       /Import File Strings/,/^$/ {
10045           /^0/ {
10046               s/^0  *\([^ ]*\) *$/\1/
10047               p
10048           }
10049       }'
10050   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10051   # Check for a 64-bit object if we didn't find anything.
10052   if test -z "$lt_cv_aix_libpath_"; then
10053     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10054   fi
10055 fi
10056 rm -f core conftest.err conftest.$ac_objext \
10057     conftest$ac_exeext conftest.$ac_ext
10058   if test -z "$lt_cv_aix_libpath_"; then
10059     lt_cv_aix_libpath_=/usr/lib:/lib
10060   fi
10061
10062 fi
10063
10064   aix_libpath=$lt_cv_aix_libpath_
10065 fi
10066
10067          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10068           # Warning - without using the other run time loading flags,
10069           # -berok will link without error, but may produce a broken library.
10070           no_undefined_flag=' $wl-bernotok'
10071           allow_undefined_flag=' $wl-berok'
10072           if test yes = "$with_gnu_ld"; then
10073             # We only use this code for GNU lds that support --whole-archive.
10074             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10075           else
10076             # Exported symbols can be pulled into shared objects from archives
10077             whole_archive_flag_spec='$convenience'
10078           fi
10079           archive_cmds_need_lc=yes
10080           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10081           # -brtl affects multiple linker settings, -berok does not and is overridden later
10082           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10083           if test svr4 != "$with_aix_soname"; then
10084             # This is similar to how AIX traditionally builds its shared libraries.
10085             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10086           fi
10087           if test aix != "$with_aix_soname"; then
10088             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10089           else
10090             # used by -dlpreopen to get the symbols
10091             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10092           fi
10093           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10094         fi
10095       fi
10096       ;;
10097
10098     amigaos*)
10099       case $host_cpu in
10100       powerpc)
10101             # see comment about AmigaOS4 .so support
10102             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10103             archive_expsym_cmds=''
10104         ;;
10105       m68k)
10106             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)'
10107             hardcode_libdir_flag_spec='-L$libdir'
10108             hardcode_minus_L=yes
10109         ;;
10110       esac
10111       ;;
10112
10113     bsdi[45]*)
10114       export_dynamic_flag_spec=-rdynamic
10115       ;;
10116
10117     cygwin* | mingw* | pw32* | cegcc*)
10118       # When not using gcc, we currently assume that we are using
10119       # Microsoft Visual C++.
10120       # hardcode_libdir_flag_spec is actually meaningless, as there is
10121       # no search path for DLLs.
10122       case $cc_basename in
10123       cl*)
10124         # Native MSVC
10125         hardcode_libdir_flag_spec=' '
10126         allow_undefined_flag=unsupported
10127         always_export_symbols=yes
10128         file_list_spec='@'
10129         # Tell ltmain to make .lib files, not .a files.
10130         libext=lib
10131         # Tell ltmain to make .dll files, not .so files.
10132         shrext_cmds=.dll
10133         # FIXME: Setting linknames here is a bad hack.
10134         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10135         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10136             cp "$export_symbols" "$output_objdir/$soname.def";
10137             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10138           else
10139             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10140           fi~
10141           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10142           linknames='
10143         # The linker will not automatically build a static lib if we build a DLL.
10144         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10145         enable_shared_with_static_runtimes=yes
10146         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10147         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10148         # Don't use ranlib
10149         old_postinstall_cmds='chmod 644 $oldlib'
10150         postlink_cmds='lt_outputfile="@OUTPUT@"~
10151           lt_tool_outputfile="@TOOL_OUTPUT@"~
10152           case $lt_outputfile in
10153             *.exe|*.EXE) ;;
10154             *)
10155               lt_outputfile=$lt_outputfile.exe
10156               lt_tool_outputfile=$lt_tool_outputfile.exe
10157               ;;
10158           esac~
10159           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10160             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10161             $RM "$lt_outputfile.manifest";
10162           fi'
10163         ;;
10164       *)
10165         # Assume MSVC wrapper
10166         hardcode_libdir_flag_spec=' '
10167         allow_undefined_flag=unsupported
10168         # Tell ltmain to make .lib files, not .a files.
10169         libext=lib
10170         # Tell ltmain to make .dll files, not .so files.
10171         shrext_cmds=.dll
10172         # FIXME: Setting linknames here is a bad hack.
10173         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10174         # The linker will automatically build a .lib file if we build a DLL.
10175         old_archive_from_new_cmds='true'
10176         # FIXME: Should let the user specify the lib program.
10177         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10178         enable_shared_with_static_runtimes=yes
10179         ;;
10180       esac
10181       ;;
10182
10183     darwin* | rhapsody*)
10184
10185
10186   archive_cmds_need_lc=no
10187   hardcode_direct=no
10188   hardcode_automatic=yes
10189   hardcode_shlibpath_var=unsupported
10190   if test yes = "$lt_cv_ld_force_load"; then
10191     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\"`'
10192
10193   else
10194     whole_archive_flag_spec=''
10195   fi
10196   link_all_deplibs=yes
10197   allow_undefined_flag=$_lt_dar_allow_undefined
10198   case $cc_basename in
10199      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10200      *) _lt_dar_can_shared=$GCC ;;
10201   esac
10202   if test yes = "$_lt_dar_can_shared"; then
10203     output_verbose_link_cmd=func_echo_all
10204     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10205     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10206     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"
10207     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"
10208
10209   else
10210   ld_shlibs=no
10211   fi
10212
10213       ;;
10214
10215     dgux*)
10216       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10217       hardcode_libdir_flag_spec='-L$libdir'
10218       hardcode_shlibpath_var=no
10219       ;;
10220
10221     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10222     # support.  Future versions do this automatically, but an explicit c++rt0.o
10223     # does not break anything, and helps significantly (at the cost of a little
10224     # extra space).
10225     freebsd2.2*)
10226       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10227       hardcode_libdir_flag_spec='-R$libdir'
10228       hardcode_direct=yes
10229       hardcode_shlibpath_var=no
10230       ;;
10231
10232     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10233     freebsd2.*)
10234       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10235       hardcode_direct=yes
10236       hardcode_minus_L=yes
10237       hardcode_shlibpath_var=no
10238       ;;
10239
10240     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10241     freebsd* | dragonfly*)
10242       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10243       hardcode_libdir_flag_spec='-R$libdir'
10244       hardcode_direct=yes
10245       hardcode_shlibpath_var=no
10246       ;;
10247
10248     hpux9*)
10249       if test yes = "$GCC"; then
10250         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10251       else
10252         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10253       fi
10254       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10255       hardcode_libdir_separator=:
10256       hardcode_direct=yes
10257
10258       # hardcode_minus_L: Not really in the search PATH,
10259       # but as the default location of the library.
10260       hardcode_minus_L=yes
10261       export_dynamic_flag_spec='$wl-E'
10262       ;;
10263
10264     hpux10*)
10265       if test yes,no = "$GCC,$with_gnu_ld"; then
10266         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10267       else
10268         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10269       fi
10270       if test no = "$with_gnu_ld"; then
10271         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10272         hardcode_libdir_separator=:
10273         hardcode_direct=yes
10274         hardcode_direct_absolute=yes
10275         export_dynamic_flag_spec='$wl-E'
10276         # hardcode_minus_L: Not really in the search PATH,
10277         # but as the default location of the library.
10278         hardcode_minus_L=yes
10279       fi
10280       ;;
10281
10282     hpux11*)
10283       if test yes,no = "$GCC,$with_gnu_ld"; then
10284         case $host_cpu in
10285         hppa*64*)
10286           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10287           ;;
10288         ia64*)
10289           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10290           ;;
10291         *)
10292           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10293           ;;
10294         esac
10295       else
10296         case $host_cpu in
10297         hppa*64*)
10298           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10299           ;;
10300         ia64*)
10301           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10302           ;;
10303         *)
10304
10305           # Older versions of the 11.00 compiler do not understand -b yet
10306           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10307           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10308 $as_echo_n "checking if $CC understands -b... " >&6; }
10309 if ${lt_cv_prog_compiler__b+:} false; then :
10310   $as_echo_n "(cached) " >&6
10311 else
10312   lt_cv_prog_compiler__b=no
10313    save_LDFLAGS=$LDFLAGS
10314    LDFLAGS="$LDFLAGS -b"
10315    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10316    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10317      # The linker can only warn and ignore the option if not recognized
10318      # So say no if there are warnings
10319      if test -s conftest.err; then
10320        # Append any errors to the config.log.
10321        cat conftest.err 1>&5
10322        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10323        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10324        if diff conftest.exp conftest.er2 >/dev/null; then
10325          lt_cv_prog_compiler__b=yes
10326        fi
10327      else
10328        lt_cv_prog_compiler__b=yes
10329      fi
10330    fi
10331    $RM -r conftest*
10332    LDFLAGS=$save_LDFLAGS
10333
10334 fi
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10336 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10337
10338 if test yes = "$lt_cv_prog_compiler__b"; then
10339     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10340 else
10341     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10342 fi
10343
10344           ;;
10345         esac
10346       fi
10347       if test no = "$with_gnu_ld"; then
10348         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10349         hardcode_libdir_separator=:
10350
10351         case $host_cpu in
10352         hppa*64*|ia64*)
10353           hardcode_direct=no
10354           hardcode_shlibpath_var=no
10355           ;;
10356         *)
10357           hardcode_direct=yes
10358           hardcode_direct_absolute=yes
10359           export_dynamic_flag_spec='$wl-E'
10360
10361           # hardcode_minus_L: Not really in the search PATH,
10362           # but as the default location of the library.
10363           hardcode_minus_L=yes
10364           ;;
10365         esac
10366       fi
10367       ;;
10368
10369     irix5* | irix6* | nonstopux*)
10370       if test yes = "$GCC"; then
10371         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'
10372         # Try to use the -exported_symbol ld option, if it does not
10373         # work, assume that -exports_file does not work either and
10374         # implicitly export all symbols.
10375         # This should be the same for all languages, so no per-tag cache variable.
10376         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10377 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10378 if ${lt_cv_irix_exported_symbol+:} false; then :
10379   $as_echo_n "(cached) " >&6
10380 else
10381   save_LDFLAGS=$LDFLAGS
10382            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10383            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h.  */
10385 int foo (void) { return 0; }
10386 _ACEOF
10387 if ac_fn_c_try_link "$LINENO"; then :
10388   lt_cv_irix_exported_symbol=yes
10389 else
10390   lt_cv_irix_exported_symbol=no
10391 fi
10392 rm -f core conftest.err conftest.$ac_objext \
10393     conftest$ac_exeext conftest.$ac_ext
10394            LDFLAGS=$save_LDFLAGS
10395 fi
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10397 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10398         if test yes = "$lt_cv_irix_exported_symbol"; then
10399           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'
10400         fi
10401         link_all_deplibs=no
10402       else
10403         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'
10404         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'
10405       fi
10406       archive_cmds_need_lc='no'
10407       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10408       hardcode_libdir_separator=:
10409       inherit_rpath=yes
10410       link_all_deplibs=yes
10411       ;;
10412
10413     linux*)
10414       case $cc_basename in
10415       tcc*)
10416         # Fabrice Bellard et al's Tiny C Compiler
10417         ld_shlibs=yes
10418         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10419         ;;
10420       esac
10421       ;;
10422
10423     netbsd* | netbsdelf*-gnu)
10424       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10425         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10426       else
10427         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10428       fi
10429       hardcode_libdir_flag_spec='-R$libdir'
10430       hardcode_direct=yes
10431       hardcode_shlibpath_var=no
10432       ;;
10433
10434     newsos6)
10435       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10436       hardcode_direct=yes
10437       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10438       hardcode_libdir_separator=:
10439       hardcode_shlibpath_var=no
10440       ;;
10441
10442     *nto* | *qnx*)
10443       ;;
10444
10445     openbsd* | bitrig*)
10446       if test -f /usr/libexec/ld.so; then
10447         hardcode_direct=yes
10448         hardcode_shlibpath_var=no
10449         hardcode_direct_absolute=yes
10450         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10451           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10452           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10453           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10454           export_dynamic_flag_spec='$wl-E'
10455         else
10456           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10457           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10458         fi
10459       else
10460         ld_shlibs=no
10461       fi
10462       ;;
10463
10464     os2*)
10465       hardcode_libdir_flag_spec='-L$libdir'
10466       hardcode_minus_L=yes
10467       allow_undefined_flag=unsupported
10468       shrext_cmds=.dll
10469       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10470         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10471         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10472         $ECHO EXPORTS >> $output_objdir/$libname.def~
10473         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10474         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10475         emximp -o $lib $output_objdir/$libname.def'
10476       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10477         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10478         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10479         $ECHO EXPORTS >> $output_objdir/$libname.def~
10480         prefix_cmds="$SED"~
10481         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10482           prefix_cmds="$prefix_cmds -e 1d";
10483         fi~
10484         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10485         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10486         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10487         emximp -o $lib $output_objdir/$libname.def'
10488       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10489       enable_shared_with_static_runtimes=yes
10490       ;;
10491
10492     osf3*)
10493       if test yes = "$GCC"; then
10494         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10495         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'
10496       else
10497         allow_undefined_flag=' -expect_unresolved \*'
10498         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'
10499       fi
10500       archive_cmds_need_lc='no'
10501       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10502       hardcode_libdir_separator=:
10503       ;;
10504
10505     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10506       if test yes = "$GCC"; then
10507         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10508         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'
10509         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10510       else
10511         allow_undefined_flag=' -expect_unresolved \*'
10512         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'
10513         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~
10514           $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'
10515
10516         # Both c and cxx compiler support -rpath directly
10517         hardcode_libdir_flag_spec='-rpath $libdir'
10518       fi
10519       archive_cmds_need_lc='no'
10520       hardcode_libdir_separator=:
10521       ;;
10522
10523     solaris*)
10524       no_undefined_flag=' -z defs'
10525       if test yes = "$GCC"; then
10526         wlarc='$wl'
10527         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10528         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10529           $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'
10530       else
10531         case `$CC -V 2>&1` in
10532         *"Compilers 5.0"*)
10533           wlarc=''
10534           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10535           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10536             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10537           ;;
10538         *)
10539           wlarc='$wl'
10540           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10541           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10542             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10543           ;;
10544         esac
10545       fi
10546       hardcode_libdir_flag_spec='-R$libdir'
10547       hardcode_shlibpath_var=no
10548       case $host_os in
10549       solaris2.[0-5] | solaris2.[0-5].*) ;;
10550       *)
10551         # The compiler driver will combine and reorder linker options,
10552         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10553         # but is careful enough not to reorder.
10554         # Supported since Solaris 2.6 (maybe 2.5.1?)
10555         if test yes = "$GCC"; then
10556           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10557         else
10558           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10559         fi
10560         ;;
10561       esac
10562       link_all_deplibs=yes
10563       ;;
10564
10565     sunos4*)
10566       if test sequent = "$host_vendor"; then
10567         # Use $CC to link under sequent, because it throws in some extra .o
10568         # files that make .init and .fini sections work.
10569         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10570       else
10571         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10572       fi
10573       hardcode_libdir_flag_spec='-L$libdir'
10574       hardcode_direct=yes
10575       hardcode_minus_L=yes
10576       hardcode_shlibpath_var=no
10577       ;;
10578
10579     sysv4)
10580       case $host_vendor in
10581         sni)
10582           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10583           hardcode_direct=yes # is this really true???
10584         ;;
10585         siemens)
10586           ## LD is ld it makes a PLAMLIB
10587           ## CC just makes a GrossModule.
10588           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10589           reload_cmds='$CC -r -o $output$reload_objs'
10590           hardcode_direct=no
10591         ;;
10592         motorola)
10593           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10594           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10595         ;;
10596       esac
10597       runpath_var='LD_RUN_PATH'
10598       hardcode_shlibpath_var=no
10599       ;;
10600
10601     sysv4.3*)
10602       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10603       hardcode_shlibpath_var=no
10604       export_dynamic_flag_spec='-Bexport'
10605       ;;
10606
10607     sysv4*MP*)
10608       if test -d /usr/nec; then
10609         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10610         hardcode_shlibpath_var=no
10611         runpath_var=LD_RUN_PATH
10612         hardcode_runpath_var=yes
10613         ld_shlibs=yes
10614       fi
10615       ;;
10616
10617     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10618       no_undefined_flag='$wl-z,text'
10619       archive_cmds_need_lc=no
10620       hardcode_shlibpath_var=no
10621       runpath_var='LD_RUN_PATH'
10622
10623       if test yes = "$GCC"; then
10624         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10625         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10626       else
10627         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10628         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10629       fi
10630       ;;
10631
10632     sysv5* | sco3.2v5* | sco5v6*)
10633       # Note: We CANNOT use -z defs as we might desire, because we do not
10634       # link with -lc, and that would cause any symbols used from libc to
10635       # always be unresolved, which means just about no library would
10636       # ever link correctly.  If we're not using GNU ld we use -z text
10637       # though, which does catch some bad symbols but isn't as heavy-handed
10638       # as -z defs.
10639       no_undefined_flag='$wl-z,text'
10640       allow_undefined_flag='$wl-z,nodefs'
10641       archive_cmds_need_lc=no
10642       hardcode_shlibpath_var=no
10643       hardcode_libdir_flag_spec='$wl-R,$libdir'
10644       hardcode_libdir_separator=':'
10645       link_all_deplibs=yes
10646       export_dynamic_flag_spec='$wl-Bexport'
10647       runpath_var='LD_RUN_PATH'
10648
10649       if test yes = "$GCC"; then
10650         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10651         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10652       else
10653         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10654         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10655       fi
10656       ;;
10657
10658     uts4*)
10659       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10660       hardcode_libdir_flag_spec='-L$libdir'
10661       hardcode_shlibpath_var=no
10662       ;;
10663
10664     *)
10665       ld_shlibs=no
10666       ;;
10667     esac
10668
10669     if test sni = "$host_vendor"; then
10670       case $host in
10671       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10672         export_dynamic_flag_spec='$wl-Blargedynsym'
10673         ;;
10674       esac
10675     fi
10676   fi
10677
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10679 $as_echo "$ld_shlibs" >&6; }
10680 test no = "$ld_shlibs" && can_build_shared=no
10681
10682 with_gnu_ld=$with_gnu_ld
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698 #
10699 # Do we need to explicitly link libc?
10700 #
10701 case "x$archive_cmds_need_lc" in
10702 x|xyes)
10703   # Assume -lc should be added
10704   archive_cmds_need_lc=yes
10705
10706   if test yes,yes = "$GCC,$enable_shared"; then
10707     case $archive_cmds in
10708     *'~'*)
10709       # FIXME: we may have to deal with multi-command sequences.
10710       ;;
10711     '$CC '*)
10712       # Test whether the compiler implicitly links with -lc since on some
10713       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10714       # to ld, don't add -lc before -lgcc.
10715       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10716 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10717 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10718   $as_echo_n "(cached) " >&6
10719 else
10720   $RM conftest*
10721         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10722
10723         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10724   (eval $ac_compile) 2>&5
10725   ac_status=$?
10726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10727   test $ac_status = 0; } 2>conftest.err; then
10728           soname=conftest
10729           lib=conftest
10730           libobjs=conftest.$ac_objext
10731           deplibs=
10732           wl=$lt_prog_compiler_wl
10733           pic_flag=$lt_prog_compiler_pic
10734           compiler_flags=-v
10735           linker_flags=-v
10736           verstring=
10737           output_objdir=.
10738           libname=conftest
10739           lt_save_allow_undefined_flag=$allow_undefined_flag
10740           allow_undefined_flag=
10741           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10742   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10743   ac_status=$?
10744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10745   test $ac_status = 0; }
10746           then
10747             lt_cv_archive_cmds_need_lc=no
10748           else
10749             lt_cv_archive_cmds_need_lc=yes
10750           fi
10751           allow_undefined_flag=$lt_save_allow_undefined_flag
10752         else
10753           cat conftest.err 1>&5
10754         fi
10755         $RM conftest*
10756
10757 fi
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10759 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10760       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10761       ;;
10762     esac
10763   fi
10764   ;;
10765 esac
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10919 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10920
10921 if test yes = "$GCC"; then
10922   case $host_os in
10923     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10924     *) lt_awk_arg='/^libraries:/' ;;
10925   esac
10926   case $host_os in
10927     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10928     *) lt_sed_strip_eq='s|=/|/|g' ;;
10929   esac
10930   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10931   case $lt_search_path_spec in
10932   *\;*)
10933     # if the path contains ";" then we assume it to be the separator
10934     # otherwise default to the standard path separator (i.e. ":") - it is
10935     # assumed that no part of a normal pathname contains ";" but that should
10936     # okay in the real world where ";" in dirpaths is itself problematic.
10937     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10938     ;;
10939   *)
10940     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10941     ;;
10942   esac
10943   # Ok, now we have the path, separated by spaces, we can step through it
10944   # and add multilib dir if necessary...
10945   lt_tmp_lt_search_path_spec=
10946   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10947   # ...but if some path component already ends with the multilib dir we assume
10948   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10949   case "$lt_multi_os_dir; $lt_search_path_spec " in
10950   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10951     lt_multi_os_dir=
10952     ;;
10953   esac
10954   for lt_sys_path in $lt_search_path_spec; do
10955     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10956       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10957     elif test -n "$lt_multi_os_dir"; then
10958       test -d "$lt_sys_path" && \
10959         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10960     fi
10961   done
10962   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10963 BEGIN {RS = " "; FS = "/|\n";} {
10964   lt_foo = "";
10965   lt_count = 0;
10966   for (lt_i = NF; lt_i > 0; lt_i--) {
10967     if ($lt_i != "" && $lt_i != ".") {
10968       if ($lt_i == "..") {
10969         lt_count++;
10970       } else {
10971         if (lt_count == 0) {
10972           lt_foo = "/" $lt_i lt_foo;
10973         } else {
10974           lt_count--;
10975         }
10976       }
10977     }
10978   }
10979   if (lt_foo != "") { lt_freq[lt_foo]++; }
10980   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10981 }'`
10982   # AWK program above erroneously prepends '/' to C:/dos/paths
10983   # for these hosts.
10984   case $host_os in
10985     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10986       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10987   esac
10988   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10989 else
10990   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10991 fi
10992 library_names_spec=
10993 libname_spec='lib$name'
10994 soname_spec=
10995 shrext_cmds=.so
10996 postinstall_cmds=
10997 postuninstall_cmds=
10998 finish_cmds=
10999 finish_eval=
11000 shlibpath_var=
11001 shlibpath_overrides_runpath=unknown
11002 version_type=none
11003 dynamic_linker="$host_os ld.so"
11004 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11005 need_lib_prefix=unknown
11006 hardcode_into_libs=no
11007
11008 # when you set need_version to no, make sure it does not cause -set_version
11009 # flags to be left without arguments
11010 need_version=unknown
11011
11012
11013
11014 case $host_os in
11015 aix3*)
11016   version_type=linux # correct to gnu/linux during the next big refactor
11017   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11018   shlibpath_var=LIBPATH
11019
11020   # AIX 3 has no versioning support, so we append a major version to the name.
11021   soname_spec='$libname$release$shared_ext$major'
11022   ;;
11023
11024 aix[4-9]*)
11025   version_type=linux # correct to gnu/linux during the next big refactor
11026   need_lib_prefix=no
11027   need_version=no
11028   hardcode_into_libs=yes
11029   if test ia64 = "$host_cpu"; then
11030     # AIX 5 supports IA64
11031     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11032     shlibpath_var=LD_LIBRARY_PATH
11033   else
11034     # With GCC up to 2.95.x, collect2 would create an import file
11035     # for dependence libraries.  The import file would start with
11036     # the line '#! .'.  This would cause the generated library to
11037     # depend on '.', always an invalid library.  This was fixed in
11038     # development snapshots of GCC prior to 3.0.
11039     case $host_os in
11040       aix4 | aix4.[01] | aix4.[01].*)
11041       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11042            echo ' yes '
11043            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11044         :
11045       else
11046         can_build_shared=no
11047       fi
11048       ;;
11049     esac
11050     # Using Import Files as archive members, it is possible to support
11051     # filename-based versioning of shared library archives on AIX. While
11052     # this would work for both with and without runtime linking, it will
11053     # prevent static linking of such archives. So we do filename-based
11054     # shared library versioning with .so extension only, which is used
11055     # when both runtime linking and shared linking is enabled.
11056     # Unfortunately, runtime linking may impact performance, so we do
11057     # not want this to be the default eventually. Also, we use the
11058     # versioned .so libs for executables only if there is the -brtl
11059     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11060     # To allow for filename-based versioning support, we need to create
11061     # libNAME.so.V as an archive file, containing:
11062     # *) an Import File, referring to the versioned filename of the
11063     #    archive as well as the shared archive member, telling the
11064     #    bitwidth (32 or 64) of that shared object, and providing the
11065     #    list of exported symbols of that shared object, eventually
11066     #    decorated with the 'weak' keyword
11067     # *) the shared object with the F_LOADONLY flag set, to really avoid
11068     #    it being seen by the linker.
11069     # At run time we better use the real file rather than another symlink,
11070     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11071
11072     case $with_aix_soname,$aix_use_runtimelinking in
11073     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11074     # soname into executable. Probably we can add versioning support to
11075     # collect2, so additional links can be useful in future.
11076     aix,yes) # traditional libtool
11077       dynamic_linker='AIX unversionable lib.so'
11078       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11079       # instead of lib<name>.a to let people know that these are not
11080       # typical AIX shared libraries.
11081       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11082       ;;
11083     aix,no) # traditional AIX only
11084       dynamic_linker='AIX lib.a(lib.so.V)'
11085       # We preserve .a as extension for shared libraries through AIX4.2
11086       # and later when we are not doing run time linking.
11087       library_names_spec='$libname$release.a $libname.a'
11088       soname_spec='$libname$release$shared_ext$major'
11089       ;;
11090     svr4,*) # full svr4 only
11091       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11092       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11093       # We do not specify a path in Import Files, so LIBPATH fires.
11094       shlibpath_overrides_runpath=yes
11095       ;;
11096     *,yes) # both, prefer svr4
11097       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11098       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11099       # unpreferred sharedlib libNAME.a needs extra handling
11100       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11101       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11102       # We do not specify a path in Import Files, so LIBPATH fires.
11103       shlibpath_overrides_runpath=yes
11104       ;;
11105     *,no) # both, prefer aix
11106       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11107       library_names_spec='$libname$release.a $libname.a'
11108       soname_spec='$libname$release$shared_ext$major'
11109       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11110       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11111       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11112       ;;
11113     esac
11114     shlibpath_var=LIBPATH
11115   fi
11116   ;;
11117
11118 amigaos*)
11119   case $host_cpu in
11120   powerpc)
11121     # Since July 2007 AmigaOS4 officially supports .so libraries.
11122     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11123     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11124     ;;
11125   m68k)
11126     library_names_spec='$libname.ixlibrary $libname.a'
11127     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11128     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11129     ;;
11130   esac
11131   ;;
11132
11133 beos*)
11134   library_names_spec='$libname$shared_ext'
11135   dynamic_linker="$host_os ld.so"
11136   shlibpath_var=LIBRARY_PATH
11137   ;;
11138
11139 bsdi[45]*)
11140   version_type=linux # correct to gnu/linux during the next big refactor
11141   need_version=no
11142   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11143   soname_spec='$libname$release$shared_ext$major'
11144   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11145   shlibpath_var=LD_LIBRARY_PATH
11146   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11147   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11148   # the default ld.so.conf also contains /usr/contrib/lib and
11149   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11150   # libtool to hard-code these into programs
11151   ;;
11152
11153 cygwin* | mingw* | pw32* | cegcc*)
11154   version_type=windows
11155   shrext_cmds=.dll
11156   need_version=no
11157   need_lib_prefix=no
11158
11159   case $GCC,$cc_basename in
11160   yes,*)
11161     # gcc
11162     library_names_spec='$libname.dll.a'
11163     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11164     postinstall_cmds='base_file=`basename \$file`~
11165       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11166       dldir=$destdir/`dirname \$dlpath`~
11167       test -d \$dldir || mkdir -p \$dldir~
11168       $install_prog $dir/$dlname \$dldir/$dlname~
11169       chmod a+x \$dldir/$dlname~
11170       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11171         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11172       fi'
11173     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11174       dlpath=$dir/\$dldll~
11175        $RM \$dlpath'
11176     shlibpath_overrides_runpath=yes
11177
11178     case $host_os in
11179     cygwin*)
11180       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11181       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11182
11183       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11184       ;;
11185     mingw* | cegcc*)
11186       # MinGW DLLs use traditional 'lib' prefix
11187       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11188       ;;
11189     pw32*)
11190       # pw32 DLLs use 'pw' prefix rather than 'lib'
11191       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11192       ;;
11193     esac
11194     dynamic_linker='Win32 ld.exe'
11195     ;;
11196
11197   *,cl*)
11198     # Native MSVC
11199     libname_spec='$name'
11200     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11201     library_names_spec='$libname.dll.lib'
11202
11203     case $build_os in
11204     mingw*)
11205       sys_lib_search_path_spec=
11206       lt_save_ifs=$IFS
11207       IFS=';'
11208       for lt_path in $LIB
11209       do
11210         IFS=$lt_save_ifs
11211         # Let DOS variable expansion print the short 8.3 style file name.
11212         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11213         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11214       done
11215       IFS=$lt_save_ifs
11216       # Convert to MSYS style.
11217       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11218       ;;
11219     cygwin*)
11220       # Convert to unix form, then to dos form, then back to unix form
11221       # but this time dos style (no spaces!) so that the unix form looks
11222       # like /cygdrive/c/PROGRA~1:/cygdr...
11223       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11224       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11225       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11226       ;;
11227     *)
11228       sys_lib_search_path_spec=$LIB
11229       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11230         # It is most probably a Windows format PATH.
11231         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11232       else
11233         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11234       fi
11235       # FIXME: find the short name or the path components, as spaces are
11236       # common. (e.g. "Program Files" -> "PROGRA~1")
11237       ;;
11238     esac
11239
11240     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11241     postinstall_cmds='base_file=`basename \$file`~
11242       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11243       dldir=$destdir/`dirname \$dlpath`~
11244       test -d \$dldir || mkdir -p \$dldir~
11245       $install_prog $dir/$dlname \$dldir/$dlname'
11246     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11247       dlpath=$dir/\$dldll~
11248        $RM \$dlpath'
11249     shlibpath_overrides_runpath=yes
11250     dynamic_linker='Win32 link.exe'
11251     ;;
11252
11253   *)
11254     # Assume MSVC wrapper
11255     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11256     dynamic_linker='Win32 ld.exe'
11257     ;;
11258   esac
11259   # FIXME: first we should search . and the directory the executable is in
11260   shlibpath_var=PATH
11261   ;;
11262
11263 darwin* | rhapsody*)
11264   dynamic_linker="$host_os dyld"
11265   version_type=darwin
11266   need_lib_prefix=no
11267   need_version=no
11268   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11269   soname_spec='$libname$release$major$shared_ext'
11270   shlibpath_overrides_runpath=yes
11271   shlibpath_var=DYLD_LIBRARY_PATH
11272   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11273
11274   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11275   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11276   ;;
11277
11278 dgux*)
11279   version_type=linux # correct to gnu/linux during the next big refactor
11280   need_lib_prefix=no
11281   need_version=no
11282   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11283   soname_spec='$libname$release$shared_ext$major'
11284   shlibpath_var=LD_LIBRARY_PATH
11285   ;;
11286
11287 freebsd* | dragonfly*)
11288   # DragonFly does not have aout.  When/if they implement a new
11289   # versioning mechanism, adjust this.
11290   if test -x /usr/bin/objformat; then
11291     objformat=`/usr/bin/objformat`
11292   else
11293     case $host_os in
11294     freebsd[23].*) objformat=aout ;;
11295     *) objformat=elf ;;
11296     esac
11297   fi
11298   version_type=freebsd-$objformat
11299   case $version_type in
11300     freebsd-elf*)
11301       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11302       soname_spec='$libname$release$shared_ext$major'
11303       need_version=no
11304       need_lib_prefix=no
11305       ;;
11306     freebsd-*)
11307       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11308       need_version=yes
11309       ;;
11310   esac
11311   shlibpath_var=LD_LIBRARY_PATH
11312   case $host_os in
11313   freebsd2.*)
11314     shlibpath_overrides_runpath=yes
11315     ;;
11316   freebsd3.[01]* | freebsdelf3.[01]*)
11317     shlibpath_overrides_runpath=yes
11318     hardcode_into_libs=yes
11319     ;;
11320   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11321   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11322     shlibpath_overrides_runpath=no
11323     hardcode_into_libs=yes
11324     ;;
11325   *) # from 4.6 on, and DragonFly
11326     shlibpath_overrides_runpath=yes
11327     hardcode_into_libs=yes
11328     ;;
11329   esac
11330   ;;
11331
11332 haiku*)
11333   version_type=linux # correct to gnu/linux during the next big refactor
11334   need_lib_prefix=no
11335   need_version=no
11336   dynamic_linker="$host_os runtime_loader"
11337   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11338   soname_spec='$libname$release$shared_ext$major'
11339   shlibpath_var=LIBRARY_PATH
11340   shlibpath_overrides_runpath=no
11341   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11342   hardcode_into_libs=yes
11343   ;;
11344
11345 hpux9* | hpux10* | hpux11*)
11346   # Give a soname corresponding to the major version so that dld.sl refuses to
11347   # link against other versions.
11348   version_type=sunos
11349   need_lib_prefix=no
11350   need_version=no
11351   case $host_cpu in
11352   ia64*)
11353     shrext_cmds='.so'
11354     hardcode_into_libs=yes
11355     dynamic_linker="$host_os dld.so"
11356     shlibpath_var=LD_LIBRARY_PATH
11357     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11358     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11359     soname_spec='$libname$release$shared_ext$major'
11360     if test 32 = "$HPUX_IA64_MODE"; then
11361       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11362       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11363     else
11364       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11365       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11366     fi
11367     ;;
11368   hppa*64*)
11369     shrext_cmds='.sl'
11370     hardcode_into_libs=yes
11371     dynamic_linker="$host_os dld.sl"
11372     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11373     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11374     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11375     soname_spec='$libname$release$shared_ext$major'
11376     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11377     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11378     ;;
11379   *)
11380     shrext_cmds='.sl'
11381     dynamic_linker="$host_os dld.sl"
11382     shlibpath_var=SHLIB_PATH
11383     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11384     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11385     soname_spec='$libname$release$shared_ext$major'
11386     ;;
11387   esac
11388   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11389   postinstall_cmds='chmod 555 $lib'
11390   # or fails outright, so override atomically:
11391   install_override_mode=555
11392   ;;
11393
11394 interix[3-9]*)
11395   version_type=linux # correct to gnu/linux during the next big refactor
11396   need_lib_prefix=no
11397   need_version=no
11398   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11399   soname_spec='$libname$release$shared_ext$major'
11400   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11401   shlibpath_var=LD_LIBRARY_PATH
11402   shlibpath_overrides_runpath=no
11403   hardcode_into_libs=yes
11404   ;;
11405
11406 irix5* | irix6* | nonstopux*)
11407   case $host_os in
11408     nonstopux*) version_type=nonstopux ;;
11409     *)
11410         if test yes = "$lt_cv_prog_gnu_ld"; then
11411                 version_type=linux # correct to gnu/linux during the next big refactor
11412         else
11413                 version_type=irix
11414         fi ;;
11415   esac
11416   need_lib_prefix=no
11417   need_version=no
11418   soname_spec='$libname$release$shared_ext$major'
11419   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11420   case $host_os in
11421   irix5* | nonstopux*)
11422     libsuff= shlibsuff=
11423     ;;
11424   *)
11425     case $LD in # libtool.m4 will add one of these switches to LD
11426     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11427       libsuff= shlibsuff= libmagic=32-bit;;
11428     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11429       libsuff=32 shlibsuff=N32 libmagic=N32;;
11430     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11431       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11432     *) libsuff= shlibsuff= libmagic=never-match;;
11433     esac
11434     ;;
11435   esac
11436   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11437   shlibpath_overrides_runpath=no
11438   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11439   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11440   hardcode_into_libs=yes
11441   ;;
11442
11443 # No shared lib support for Linux oldld, aout, or coff.
11444 linux*oldld* | linux*aout* | linux*coff*)
11445   dynamic_linker=no
11446   ;;
11447
11448 linux*android*)
11449   version_type=none # Android doesn't support versioned libraries.
11450   need_lib_prefix=no
11451   need_version=no
11452   library_names_spec='$libname$release$shared_ext'
11453   soname_spec='$libname$release$shared_ext'
11454   finish_cmds=
11455   shlibpath_var=LD_LIBRARY_PATH
11456   shlibpath_overrides_runpath=yes
11457
11458   # This implies no fast_install, which is unacceptable.
11459   # Some rework will be needed to allow for fast_install
11460   # before this can be enabled.
11461   hardcode_into_libs=yes
11462
11463   dynamic_linker='Android linker'
11464   # Don't embed -rpath directories since the linker doesn't support them.
11465   hardcode_libdir_flag_spec='-L$libdir'
11466   ;;
11467
11468 # This must be glibc/ELF.
11469 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11470   version_type=linux # correct to gnu/linux during the next big refactor
11471   need_lib_prefix=no
11472   need_version=no
11473   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11474   soname_spec='$libname$release$shared_ext$major'
11475   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11476   shlibpath_var=LD_LIBRARY_PATH
11477   shlibpath_overrides_runpath=no
11478
11479   # Some binutils ld are patched to set DT_RUNPATH
11480   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11481   $as_echo_n "(cached) " >&6
11482 else
11483   lt_cv_shlibpath_overrides_runpath=no
11484     save_LDFLAGS=$LDFLAGS
11485     save_libdir=$libdir
11486     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11487          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11488     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489 /* end confdefs.h.  */
11490
11491 int
11492 main ()
11493 {
11494
11495   ;
11496   return 0;
11497 }
11498 _ACEOF
11499 if ac_fn_c_try_link "$LINENO"; then :
11500   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11501   lt_cv_shlibpath_overrides_runpath=yes
11502 fi
11503 fi
11504 rm -f core conftest.err conftest.$ac_objext \
11505     conftest$ac_exeext conftest.$ac_ext
11506     LDFLAGS=$save_LDFLAGS
11507     libdir=$save_libdir
11508
11509 fi
11510
11511   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11512
11513   # This implies no fast_install, which is unacceptable.
11514   # Some rework will be needed to allow for fast_install
11515   # before this can be enabled.
11516   hardcode_into_libs=yes
11517
11518   # Ideally, we could use ldconfig to report *all* directores which are
11519   # searched for libraries, however this is still not possible.  Aside from not
11520   # being certain /sbin/ldconfig is available, command
11521   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11522   # even though it is searched at run-time.  Try to do the best guess by
11523   # appending ld.so.conf contents (and includes) to the search path.
11524   if test -f /etc/ld.so.conf; then
11525     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' ' '`
11526     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11527   fi
11528
11529   # We used to test for /lib/ld.so.1 and disable shared libraries on
11530   # powerpc, because MkLinux only supported shared libraries with the
11531   # GNU dynamic linker.  Since this was broken with cross compilers,
11532   # most powerpc-linux boxes support dynamic linking these days and
11533   # people can always --disable-shared, the test was removed, and we
11534   # assume the GNU/Linux dynamic linker is in use.
11535   dynamic_linker='GNU/Linux ld.so'
11536   ;;
11537
11538 netbsdelf*-gnu)
11539   version_type=linux
11540   need_lib_prefix=no
11541   need_version=no
11542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11543   soname_spec='${libname}${release}${shared_ext}$major'
11544   shlibpath_var=LD_LIBRARY_PATH
11545   shlibpath_overrides_runpath=no
11546   hardcode_into_libs=yes
11547   dynamic_linker='NetBSD ld.elf_so'
11548   ;;
11549
11550 netbsd*)
11551   version_type=sunos
11552   need_lib_prefix=no
11553   need_version=no
11554   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11555     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11556     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11557     dynamic_linker='NetBSD (a.out) ld.so'
11558   else
11559     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11560     soname_spec='$libname$release$shared_ext$major'
11561     dynamic_linker='NetBSD ld.elf_so'
11562   fi
11563   shlibpath_var=LD_LIBRARY_PATH
11564   shlibpath_overrides_runpath=yes
11565   hardcode_into_libs=yes
11566   ;;
11567
11568 newsos6)
11569   version_type=linux # correct to gnu/linux during the next big refactor
11570   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11571   shlibpath_var=LD_LIBRARY_PATH
11572   shlibpath_overrides_runpath=yes
11573   ;;
11574
11575 *nto* | *qnx*)
11576   version_type=qnx
11577   need_lib_prefix=no
11578   need_version=no
11579   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11580   soname_spec='$libname$release$shared_ext$major'
11581   shlibpath_var=LD_LIBRARY_PATH
11582   shlibpath_overrides_runpath=no
11583   hardcode_into_libs=yes
11584   dynamic_linker='ldqnx.so'
11585   ;;
11586
11587 openbsd* | bitrig*)
11588   version_type=sunos
11589   sys_lib_dlsearch_path_spec=/usr/lib
11590   need_lib_prefix=no
11591   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11592     need_version=no
11593   else
11594     need_version=yes
11595   fi
11596   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11597   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11598   shlibpath_var=LD_LIBRARY_PATH
11599   shlibpath_overrides_runpath=yes
11600   ;;
11601
11602 os2*)
11603   libname_spec='$name'
11604   version_type=windows
11605   shrext_cmds=.dll
11606   need_version=no
11607   need_lib_prefix=no
11608   # OS/2 can only load a DLL with a base name of 8 characters or less.
11609   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11610     v=$($ECHO $release$versuffix | tr -d .-);
11611     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11612     $ECHO $n$v`$shared_ext'
11613   library_names_spec='${libname}_dll.$libext'
11614   dynamic_linker='OS/2 ld.exe'
11615   shlibpath_var=BEGINLIBPATH
11616   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11617   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11618   postinstall_cmds='base_file=`basename \$file`~
11619     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11620     dldir=$destdir/`dirname \$dlpath`~
11621     test -d \$dldir || mkdir -p \$dldir~
11622     $install_prog $dir/$dlname \$dldir/$dlname~
11623     chmod a+x \$dldir/$dlname~
11624     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11625       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11626     fi'
11627   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11628     dlpath=$dir/\$dldll~
11629     $RM \$dlpath'
11630   ;;
11631
11632 osf3* | osf4* | osf5*)
11633   version_type=osf
11634   need_lib_prefix=no
11635   need_version=no
11636   soname_spec='$libname$release$shared_ext$major'
11637   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11638   shlibpath_var=LD_LIBRARY_PATH
11639   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11640   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11641   ;;
11642
11643 rdos*)
11644   dynamic_linker=no
11645   ;;
11646
11647 solaris*)
11648   version_type=linux # correct to gnu/linux during the next big refactor
11649   need_lib_prefix=no
11650   need_version=no
11651   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11652   soname_spec='$libname$release$shared_ext$major'
11653   shlibpath_var=LD_LIBRARY_PATH
11654   shlibpath_overrides_runpath=yes
11655   hardcode_into_libs=yes
11656   # ldd complains unless libraries are executable
11657   postinstall_cmds='chmod +x $lib'
11658   ;;
11659
11660 sunos4*)
11661   version_type=sunos
11662   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11663   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11664   shlibpath_var=LD_LIBRARY_PATH
11665   shlibpath_overrides_runpath=yes
11666   if test yes = "$with_gnu_ld"; then
11667     need_lib_prefix=no
11668   fi
11669   need_version=yes
11670   ;;
11671
11672 sysv4 | sysv4.3*)
11673   version_type=linux # correct to gnu/linux during the next big refactor
11674   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11675   soname_spec='$libname$release$shared_ext$major'
11676   shlibpath_var=LD_LIBRARY_PATH
11677   case $host_vendor in
11678     sni)
11679       shlibpath_overrides_runpath=no
11680       need_lib_prefix=no
11681       runpath_var=LD_RUN_PATH
11682       ;;
11683     siemens)
11684       need_lib_prefix=no
11685       ;;
11686     motorola)
11687       need_lib_prefix=no
11688       need_version=no
11689       shlibpath_overrides_runpath=no
11690       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11691       ;;
11692   esac
11693   ;;
11694
11695 sysv4*MP*)
11696   if test -d /usr/nec; then
11697     version_type=linux # correct to gnu/linux during the next big refactor
11698     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11699     soname_spec='$libname$shared_ext.$major'
11700     shlibpath_var=LD_LIBRARY_PATH
11701   fi
11702   ;;
11703
11704 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11705   version_type=sco
11706   need_lib_prefix=no
11707   need_version=no
11708   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11709   soname_spec='$libname$release$shared_ext$major'
11710   shlibpath_var=LD_LIBRARY_PATH
11711   shlibpath_overrides_runpath=yes
11712   hardcode_into_libs=yes
11713   if test yes = "$with_gnu_ld"; then
11714     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11715   else
11716     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11717     case $host_os in
11718       sco3.2v5*)
11719         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11720         ;;
11721     esac
11722   fi
11723   sys_lib_dlsearch_path_spec='/usr/lib'
11724   ;;
11725
11726 tpf*)
11727   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11728   version_type=linux # correct to gnu/linux during the next big refactor
11729   need_lib_prefix=no
11730   need_version=no
11731   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11732   shlibpath_var=LD_LIBRARY_PATH
11733   shlibpath_overrides_runpath=no
11734   hardcode_into_libs=yes
11735   ;;
11736
11737 uts4*)
11738   version_type=linux # correct to gnu/linux during the next big refactor
11739   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11740   soname_spec='$libname$release$shared_ext$major'
11741   shlibpath_var=LD_LIBRARY_PATH
11742   ;;
11743
11744 *)
11745   dynamic_linker=no
11746   ;;
11747 esac
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11749 $as_echo "$dynamic_linker" >&6; }
11750 test no = "$dynamic_linker" && can_build_shared=no
11751
11752 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11753 if test yes = "$GCC"; then
11754   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11755 fi
11756
11757 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11758   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11759 fi
11760
11761 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11762   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11763 fi
11764
11765 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11766 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11767
11768 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11769 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11770
11771 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11772 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11871 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11872 hardcode_action=
11873 if test -n "$hardcode_libdir_flag_spec" ||
11874    test -n "$runpath_var" ||
11875    test yes = "$hardcode_automatic"; then
11876
11877   # We can hardcode non-existent directories.
11878   if test no != "$hardcode_direct" &&
11879      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11880      # have to relink, otherwise we might link with an installed library
11881      # when we should be linking with a yet-to-be-installed one
11882      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11883      test no != "$hardcode_minus_L"; then
11884     # Linking always hardcodes the temporary library directory.
11885     hardcode_action=relink
11886   else
11887     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11888     hardcode_action=immediate
11889   fi
11890 else
11891   # We cannot hardcode anything, or else we can only hardcode existing
11892   # directories.
11893   hardcode_action=unsupported
11894 fi
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11896 $as_echo "$hardcode_action" >&6; }
11897
11898 if test relink = "$hardcode_action" ||
11899    test yes = "$inherit_rpath"; then
11900   # Fast installation is not supported
11901   enable_fast_install=no
11902 elif test yes = "$shlibpath_overrides_runpath" ||
11903      test no = "$enable_shared"; then
11904   # Fast installation is not necessary
11905   enable_fast_install=needless
11906 fi
11907
11908
11909
11910
11911
11912
11913   if test yes != "$enable_dlopen"; then
11914   enable_dlopen=unknown
11915   enable_dlopen_self=unknown
11916   enable_dlopen_self_static=unknown
11917 else
11918   lt_cv_dlopen=no
11919   lt_cv_dlopen_libs=
11920
11921   case $host_os in
11922   beos*)
11923     lt_cv_dlopen=load_add_on
11924     lt_cv_dlopen_libs=
11925     lt_cv_dlopen_self=yes
11926     ;;
11927
11928   mingw* | pw32* | cegcc*)
11929     lt_cv_dlopen=LoadLibrary
11930     lt_cv_dlopen_libs=
11931     ;;
11932
11933   cygwin*)
11934     lt_cv_dlopen=dlopen
11935     lt_cv_dlopen_libs=
11936     ;;
11937
11938   darwin*)
11939     # if libdl is installed we need to link against it
11940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11942 if ${ac_cv_lib_dl_dlopen+:} false; then :
11943   $as_echo_n "(cached) " >&6
11944 else
11945   ac_check_lib_save_LIBS=$LIBS
11946 LIBS="-ldl  $LIBS"
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h.  */
11949
11950 /* Override any GCC internal prototype to avoid an error.
11951    Use char because int might match the return type of a GCC
11952    builtin and then its argument prototype would still apply.  */
11953 #ifdef __cplusplus
11954 extern "C"
11955 #endif
11956 char dlopen ();
11957 int
11958 main ()
11959 {
11960 return dlopen ();
11961   ;
11962   return 0;
11963 }
11964 _ACEOF
11965 if ac_fn_c_try_link "$LINENO"; then :
11966   ac_cv_lib_dl_dlopen=yes
11967 else
11968   ac_cv_lib_dl_dlopen=no
11969 fi
11970 rm -f core conftest.err conftest.$ac_objext \
11971     conftest$ac_exeext conftest.$ac_ext
11972 LIBS=$ac_check_lib_save_LIBS
11973 fi
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11975 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11976 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11977   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11978 else
11979
11980     lt_cv_dlopen=dyld
11981     lt_cv_dlopen_libs=
11982     lt_cv_dlopen_self=yes
11983
11984 fi
11985
11986     ;;
11987
11988   tpf*)
11989     # Don't try to run any link tests for TPF.  We know it's impossible
11990     # because TPF is a cross-compiler, and we know how we open DSOs.
11991     lt_cv_dlopen=dlopen
11992     lt_cv_dlopen_libs=
11993     lt_cv_dlopen_self=no
11994     ;;
11995
11996   *)
11997     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11998 if test "x$ac_cv_func_shl_load" = xyes; then :
11999   lt_cv_dlopen=shl_load
12000 else
12001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12002 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12003 if ${ac_cv_lib_dld_shl_load+:} false; then :
12004   $as_echo_n "(cached) " >&6
12005 else
12006   ac_check_lib_save_LIBS=$LIBS
12007 LIBS="-ldld  $LIBS"
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h.  */
12010
12011 /* Override any GCC internal prototype to avoid an error.
12012    Use char because int might match the return type of a GCC
12013    builtin and then its argument prototype would still apply.  */
12014 #ifdef __cplusplus
12015 extern "C"
12016 #endif
12017 char shl_load ();
12018 int
12019 main ()
12020 {
12021 return shl_load ();
12022   ;
12023   return 0;
12024 }
12025 _ACEOF
12026 if ac_fn_c_try_link "$LINENO"; then :
12027   ac_cv_lib_dld_shl_load=yes
12028 else
12029   ac_cv_lib_dld_shl_load=no
12030 fi
12031 rm -f core conftest.err conftest.$ac_objext \
12032     conftest$ac_exeext conftest.$ac_ext
12033 LIBS=$ac_check_lib_save_LIBS
12034 fi
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12036 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12037 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12038   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12039 else
12040   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12041 if test "x$ac_cv_func_dlopen" = xyes; then :
12042   lt_cv_dlopen=dlopen
12043 else
12044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12045 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12046 if ${ac_cv_lib_dl_dlopen+:} false; then :
12047   $as_echo_n "(cached) " >&6
12048 else
12049   ac_check_lib_save_LIBS=$LIBS
12050 LIBS="-ldl  $LIBS"
12051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h.  */
12053
12054 /* Override any GCC internal prototype to avoid an error.
12055    Use char because int might match the return type of a GCC
12056    builtin and then its argument prototype would still apply.  */
12057 #ifdef __cplusplus
12058 extern "C"
12059 #endif
12060 char dlopen ();
12061 int
12062 main ()
12063 {
12064 return dlopen ();
12065   ;
12066   return 0;
12067 }
12068 _ACEOF
12069 if ac_fn_c_try_link "$LINENO"; then :
12070   ac_cv_lib_dl_dlopen=yes
12071 else
12072   ac_cv_lib_dl_dlopen=no
12073 fi
12074 rm -f core conftest.err conftest.$ac_objext \
12075     conftest$ac_exeext conftest.$ac_ext
12076 LIBS=$ac_check_lib_save_LIBS
12077 fi
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12079 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12080 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12081   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12082 else
12083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12084 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12085 if ${ac_cv_lib_svld_dlopen+:} false; then :
12086   $as_echo_n "(cached) " >&6
12087 else
12088   ac_check_lib_save_LIBS=$LIBS
12089 LIBS="-lsvld  $LIBS"
12090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12091 /* end confdefs.h.  */
12092
12093 /* Override any GCC internal prototype to avoid an error.
12094    Use char because int might match the return type of a GCC
12095    builtin and then its argument prototype would still apply.  */
12096 #ifdef __cplusplus
12097 extern "C"
12098 #endif
12099 char dlopen ();
12100 int
12101 main ()
12102 {
12103 return dlopen ();
12104   ;
12105   return 0;
12106 }
12107 _ACEOF
12108 if ac_fn_c_try_link "$LINENO"; then :
12109   ac_cv_lib_svld_dlopen=yes
12110 else
12111   ac_cv_lib_svld_dlopen=no
12112 fi
12113 rm -f core conftest.err conftest.$ac_objext \
12114     conftest$ac_exeext conftest.$ac_ext
12115 LIBS=$ac_check_lib_save_LIBS
12116 fi
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12118 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12119 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12120   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12121 else
12122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12123 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12124 if ${ac_cv_lib_dld_dld_link+:} false; then :
12125   $as_echo_n "(cached) " >&6
12126 else
12127   ac_check_lib_save_LIBS=$LIBS
12128 LIBS="-ldld  $LIBS"
12129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130 /* end confdefs.h.  */
12131
12132 /* Override any GCC internal prototype to avoid an error.
12133    Use char because int might match the return type of a GCC
12134    builtin and then its argument prototype would still apply.  */
12135 #ifdef __cplusplus
12136 extern "C"
12137 #endif
12138 char dld_link ();
12139 int
12140 main ()
12141 {
12142 return dld_link ();
12143   ;
12144   return 0;
12145 }
12146 _ACEOF
12147 if ac_fn_c_try_link "$LINENO"; then :
12148   ac_cv_lib_dld_dld_link=yes
12149 else
12150   ac_cv_lib_dld_dld_link=no
12151 fi
12152 rm -f core conftest.err conftest.$ac_objext \
12153     conftest$ac_exeext conftest.$ac_ext
12154 LIBS=$ac_check_lib_save_LIBS
12155 fi
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12157 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12158 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12159   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12160 fi
12161
12162
12163 fi
12164
12165
12166 fi
12167
12168
12169 fi
12170
12171
12172 fi
12173
12174
12175 fi
12176
12177     ;;
12178   esac
12179
12180   if test no = "$lt_cv_dlopen"; then
12181     enable_dlopen=no
12182   else
12183     enable_dlopen=yes
12184   fi
12185
12186   case $lt_cv_dlopen in
12187   dlopen)
12188     save_CPPFLAGS=$CPPFLAGS
12189     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12190
12191     save_LDFLAGS=$LDFLAGS
12192     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12193
12194     save_LIBS=$LIBS
12195     LIBS="$lt_cv_dlopen_libs $LIBS"
12196
12197     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12198 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12199 if ${lt_cv_dlopen_self+:} false; then :
12200   $as_echo_n "(cached) " >&6
12201 else
12202           if test yes = "$cross_compiling"; then :
12203   lt_cv_dlopen_self=cross
12204 else
12205   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12206   lt_status=$lt_dlunknown
12207   cat > conftest.$ac_ext <<_LT_EOF
12208 #line $LINENO "configure"
12209 #include "confdefs.h"
12210
12211 #if HAVE_DLFCN_H
12212 #include <dlfcn.h>
12213 #endif
12214
12215 #include <stdio.h>
12216
12217 #ifdef RTLD_GLOBAL
12218 #  define LT_DLGLOBAL           RTLD_GLOBAL
12219 #else
12220 #  ifdef DL_GLOBAL
12221 #    define LT_DLGLOBAL         DL_GLOBAL
12222 #  else
12223 #    define LT_DLGLOBAL         0
12224 #  endif
12225 #endif
12226
12227 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12228    find out it does not work in some platform. */
12229 #ifndef LT_DLLAZY_OR_NOW
12230 #  ifdef RTLD_LAZY
12231 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12232 #  else
12233 #    ifdef DL_LAZY
12234 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12235 #    else
12236 #      ifdef RTLD_NOW
12237 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12238 #      else
12239 #        ifdef DL_NOW
12240 #          define LT_DLLAZY_OR_NOW      DL_NOW
12241 #        else
12242 #          define LT_DLLAZY_OR_NOW      0
12243 #        endif
12244 #      endif
12245 #    endif
12246 #  endif
12247 #endif
12248
12249 /* When -fvisibility=hidden is used, assume the code has been annotated
12250    correspondingly for the symbols needed.  */
12251 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12252 int fnord () __attribute__((visibility("default")));
12253 #endif
12254
12255 int fnord () { return 42; }
12256 int main ()
12257 {
12258   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12259   int status = $lt_dlunknown;
12260
12261   if (self)
12262     {
12263       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12264       else
12265         {
12266           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12267           else puts (dlerror ());
12268         }
12269       /* dlclose (self); */
12270     }
12271   else
12272     puts (dlerror ());
12273
12274   return status;
12275 }
12276 _LT_EOF
12277   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12278   (eval $ac_link) 2>&5
12279   ac_status=$?
12280   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12281   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12282     (./conftest; exit; ) >&5 2>/dev/null
12283     lt_status=$?
12284     case x$lt_status in
12285       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12286       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12287       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12288     esac
12289   else :
12290     # compilation failed
12291     lt_cv_dlopen_self=no
12292   fi
12293 fi
12294 rm -fr conftest*
12295
12296
12297 fi
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12299 $as_echo "$lt_cv_dlopen_self" >&6; }
12300
12301     if test yes = "$lt_cv_dlopen_self"; then
12302       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12303       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12304 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12305 if ${lt_cv_dlopen_self_static+:} false; then :
12306   $as_echo_n "(cached) " >&6
12307 else
12308           if test yes = "$cross_compiling"; then :
12309   lt_cv_dlopen_self_static=cross
12310 else
12311   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12312   lt_status=$lt_dlunknown
12313   cat > conftest.$ac_ext <<_LT_EOF
12314 #line $LINENO "configure"
12315 #include "confdefs.h"
12316
12317 #if HAVE_DLFCN_H
12318 #include <dlfcn.h>
12319 #endif
12320
12321 #include <stdio.h>
12322
12323 #ifdef RTLD_GLOBAL
12324 #  define LT_DLGLOBAL           RTLD_GLOBAL
12325 #else
12326 #  ifdef DL_GLOBAL
12327 #    define LT_DLGLOBAL         DL_GLOBAL
12328 #  else
12329 #    define LT_DLGLOBAL         0
12330 #  endif
12331 #endif
12332
12333 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12334    find out it does not work in some platform. */
12335 #ifndef LT_DLLAZY_OR_NOW
12336 #  ifdef RTLD_LAZY
12337 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12338 #  else
12339 #    ifdef DL_LAZY
12340 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12341 #    else
12342 #      ifdef RTLD_NOW
12343 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12344 #      else
12345 #        ifdef DL_NOW
12346 #          define LT_DLLAZY_OR_NOW      DL_NOW
12347 #        else
12348 #          define LT_DLLAZY_OR_NOW      0
12349 #        endif
12350 #      endif
12351 #    endif
12352 #  endif
12353 #endif
12354
12355 /* When -fvisibility=hidden is used, assume the code has been annotated
12356    correspondingly for the symbols needed.  */
12357 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12358 int fnord () __attribute__((visibility("default")));
12359 #endif
12360
12361 int fnord () { return 42; }
12362 int main ()
12363 {
12364   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12365   int status = $lt_dlunknown;
12366
12367   if (self)
12368     {
12369       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12370       else
12371         {
12372           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12373           else puts (dlerror ());
12374         }
12375       /* dlclose (self); */
12376     }
12377   else
12378     puts (dlerror ());
12379
12380   return status;
12381 }
12382 _LT_EOF
12383   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12384   (eval $ac_link) 2>&5
12385   ac_status=$?
12386   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12387   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12388     (./conftest; exit; ) >&5 2>/dev/null
12389     lt_status=$?
12390     case x$lt_status in
12391       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12392       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12393       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12394     esac
12395   else :
12396     # compilation failed
12397     lt_cv_dlopen_self_static=no
12398   fi
12399 fi
12400 rm -fr conftest*
12401
12402
12403 fi
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12405 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12406     fi
12407
12408     CPPFLAGS=$save_CPPFLAGS
12409     LDFLAGS=$save_LDFLAGS
12410     LIBS=$save_LIBS
12411     ;;
12412   esac
12413
12414   case $lt_cv_dlopen_self in
12415   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12416   *) enable_dlopen_self=unknown ;;
12417   esac
12418
12419   case $lt_cv_dlopen_self_static in
12420   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12421   *) enable_dlopen_self_static=unknown ;;
12422   esac
12423 fi
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441 striplib=
12442 old_striplib=
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12444 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12445 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12446   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12447   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12449 $as_echo "yes" >&6; }
12450 else
12451 # FIXME - insert some real tests, host_os isn't really good enough
12452   case $host_os in
12453   darwin*)
12454     if test -n "$STRIP"; then
12455       striplib="$STRIP -x"
12456       old_striplib="$STRIP -S"
12457       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12458 $as_echo "yes" >&6; }
12459     else
12460       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12461 $as_echo "no" >&6; }
12462     fi
12463     ;;
12464   *)
12465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12466 $as_echo "no" >&6; }
12467     ;;
12468   esac
12469 fi
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482   # Report what library types will actually be built
12483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12484 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12486 $as_echo "$can_build_shared" >&6; }
12487
12488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12489 $as_echo_n "checking whether to build shared libraries... " >&6; }
12490   test no = "$can_build_shared" && enable_shared=no
12491
12492   # On AIX, shared libraries and static libraries use the same namespace, and
12493   # are all built from PIC.
12494   case $host_os in
12495   aix3*)
12496     test yes = "$enable_shared" && enable_static=no
12497     if test -n "$RANLIB"; then
12498       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12499       postinstall_cmds='$RANLIB $lib'
12500     fi
12501     ;;
12502
12503   aix[4-9]*)
12504     if test ia64 != "$host_cpu"; then
12505       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12506       yes,aix,yes) ;;                   # shared object as lib.so file only
12507       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12508       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12509       esac
12510     fi
12511     ;;
12512   esac
12513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12514 $as_echo "$enable_shared" >&6; }
12515
12516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12517 $as_echo_n "checking whether to build static libraries... " >&6; }
12518   # Make sure either enable_shared or enable_static is yes.
12519   test yes = "$enable_shared" || enable_static=yes
12520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12521 $as_echo "$enable_static" >&6; }
12522
12523
12524
12525
12526 fi
12527 ac_ext=c
12528 ac_cpp='$CPP $CPPFLAGS'
12529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12532
12533 CC=$lt_save_CC
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549         ac_config_commands="$ac_config_commands libtool"
12550
12551
12552
12553
12554 # Only expand once:
12555
12556
12557
12558
12559 GLIB_REQUIRED=2.38.0
12560 # Check whether --enable-glibtest was given.
12561 if test "${enable_glibtest+set}" = set; then :
12562   enableval=$enable_glibtest;
12563 else
12564   enable_glibtest=yes
12565 fi
12566
12567
12568   pkg_config_args=glib-2.0
12569   for module in . gobject gio
12570   do
12571       case "$module" in
12572          gmodule)
12573              pkg_config_args="$pkg_config_args gmodule-2.0"
12574          ;;
12575          gmodule-no-export)
12576              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
12577          ;;
12578          gobject)
12579              pkg_config_args="$pkg_config_args gobject-2.0"
12580          ;;
12581          gthread)
12582              pkg_config_args="$pkg_config_args gthread-2.0"
12583          ;;
12584          gio*)
12585              pkg_config_args="$pkg_config_args $module-2.0"
12586          ;;
12587       esac
12588   done
12589
12590
12591
12592
12593
12594
12595
12596
12597 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12598         if test -n "$ac_tool_prefix"; then
12599   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12600 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12602 $as_echo_n "checking for $ac_word... " >&6; }
12603 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12604   $as_echo_n "(cached) " >&6
12605 else
12606   case $PKG_CONFIG in
12607   [\\/]* | ?:[\\/]*)
12608   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12609   ;;
12610   *)
12611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612 for as_dir in $PATH
12613 do
12614   IFS=$as_save_IFS
12615   test -z "$as_dir" && as_dir=.
12616     for ac_exec_ext in '' $ac_executable_extensions; do
12617   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12618     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12620     break 2
12621   fi
12622 done
12623   done
12624 IFS=$as_save_IFS
12625
12626   ;;
12627 esac
12628 fi
12629 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12630 if test -n "$PKG_CONFIG"; then
12631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12632 $as_echo "$PKG_CONFIG" >&6; }
12633 else
12634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635 $as_echo "no" >&6; }
12636 fi
12637
12638
12639 fi
12640 if test -z "$ac_cv_path_PKG_CONFIG"; then
12641   ac_pt_PKG_CONFIG=$PKG_CONFIG
12642   # Extract the first word of "pkg-config", so it can be a program name with args.
12643 set dummy pkg-config; ac_word=$2
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12645 $as_echo_n "checking for $ac_word... " >&6; }
12646 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12647   $as_echo_n "(cached) " >&6
12648 else
12649   case $ac_pt_PKG_CONFIG in
12650   [\\/]* | ?:[\\/]*)
12651   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12652   ;;
12653   *)
12654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12655 for as_dir in $PATH
12656 do
12657   IFS=$as_save_IFS
12658   test -z "$as_dir" && as_dir=.
12659     for ac_exec_ext in '' $ac_executable_extensions; do
12660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12661     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12663     break 2
12664   fi
12665 done
12666   done
12667 IFS=$as_save_IFS
12668
12669   ;;
12670 esac
12671 fi
12672 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12673 if test -n "$ac_pt_PKG_CONFIG"; then
12674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12675 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12676 else
12677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678 $as_echo "no" >&6; }
12679 fi
12680
12681   if test "x$ac_pt_PKG_CONFIG" = x; then
12682     PKG_CONFIG=""
12683   else
12684     case $cross_compiling:$ac_tool_warned in
12685 yes:)
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12688 ac_tool_warned=yes ;;
12689 esac
12690     PKG_CONFIG=$ac_pt_PKG_CONFIG
12691   fi
12692 else
12693   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12694 fi
12695
12696 fi
12697 if test -n "$PKG_CONFIG"; then
12698         _pkg_min_version=0.16
12699         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12700 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12701         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12702                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12703 $as_echo "yes" >&6; }
12704         else
12705                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12706 $as_echo "no" >&6; }
12707                 PKG_CONFIG=""
12708         fi
12709 fi
12710
12711   no_glib=""
12712
12713   if test "x$PKG_CONFIG" = x ; then
12714     no_glib=yes
12715     PKG_CONFIG=no
12716   fi
12717
12718   min_glib_version=$GLIB_REQUIRED
12719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
12720 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
12721
12722   if test x$PKG_CONFIG != xno ; then
12723     ## don't try to run the test against uninstalled libtool libs
12724     if $PKG_CONFIG --uninstalled $pkg_config_args; then
12725           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
12726           enable_glibtest=no
12727     fi
12728
12729     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
12730           :
12731     else
12732           no_glib=yes
12733     fi
12734   fi
12735
12736   if test x"$no_glib" = x ; then
12737     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
12738     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
12739     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
12740     GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
12741
12742     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
12743     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
12744     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
12745            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12746     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
12747            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12748     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
12749            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12750     if test "x$enable_glibtest" = "xyes" ; then
12751       ac_save_CFLAGS="$CFLAGS"
12752       ac_save_LIBS="$LIBS"
12753       CFLAGS="$CFLAGS $GLIB_CFLAGS"
12754       LIBS="$GLIB_LIBS $LIBS"
12755       rm -f conf.glibtest
12756       if test "$cross_compiling" = yes; then :
12757   echo $ac_n "cross compiling; assumed OK... $ac_c"
12758 else
12759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h.  */
12761
12762 #include <glib.h>
12763 #include <stdio.h>
12764 #include <stdlib.h>
12765
12766 int
12767 main (void)
12768 {
12769   unsigned int major, minor, micro;
12770
12771   fclose (fopen ("conf.glibtest", "w"));
12772
12773   if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, &micro) != 3) {
12774      printf("%s, bad version string\n", "$min_glib_version");
12775      exit(1);
12776    }
12777
12778   if ((glib_major_version != $glib_config_major_version) ||
12779       (glib_minor_version != $glib_config_minor_version) ||
12780       (glib_micro_version != $glib_config_micro_version))
12781     {
12782       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
12783              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
12784              glib_major_version, glib_minor_version, glib_micro_version);
12785       printf ("*** was found! If pkg-config was correct, then it is best\n");
12786       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
12787       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12788       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12789       printf("*** required on your system.\n");
12790       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12791       printf("*** to point to the correct configuration files\n");
12792     }
12793   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
12794            (glib_minor_version != GLIB_MINOR_VERSION) ||
12795            (glib_micro_version != GLIB_MICRO_VERSION))
12796     {
12797       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
12798              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
12799       printf("*** library (version %d.%d.%d)\n",
12800              glib_major_version, glib_minor_version, glib_micro_version);
12801     }
12802   else
12803     {
12804       if ((glib_major_version > major) ||
12805         ((glib_major_version == major) && (glib_minor_version > minor)) ||
12806         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
12807       {
12808         return 0;
12809        }
12810      else
12811       {
12812         printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
12813                glib_major_version, glib_minor_version, glib_micro_version);
12814         printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
12815                major, minor, micro);
12816         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
12817         printf("***\n");
12818         printf("*** If you have already installed a sufficiently new version, this error\n");
12819         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12820         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12821         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
12822         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12823         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12824         printf("*** so that the correct libraries are found at run-time))\n");
12825       }
12826     }
12827   return 1;
12828 }
12829
12830 _ACEOF
12831 if ac_fn_c_try_run "$LINENO"; then :
12832
12833 else
12834   no_glib=yes
12835 fi
12836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12837   conftest.$ac_objext conftest.beam conftest.$ac_ext
12838 fi
12839
12840        CFLAGS="$ac_save_CFLAGS"
12841        LIBS="$ac_save_LIBS"
12842      fi
12843   fi
12844   if test "x$no_glib" = x ; then
12845      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
12846 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
12847      :
12848   else
12849      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850 $as_echo "no" >&6; }
12851      if test "$PKG_CONFIG" = "no" ; then
12852        echo "*** A new enough version of pkg-config was not found."
12853        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
12854      else
12855        if test -f conf.glibtest ; then
12856         :
12857        else
12858           echo "*** Could not run GLIB test program, checking why..."
12859           ac_save_CFLAGS="$CFLAGS"
12860           ac_save_LIBS="$LIBS"
12861           CFLAGS="$CFLAGS $GLIB_CFLAGS"
12862           LIBS="$LIBS $GLIB_LIBS"
12863           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12864 /* end confdefs.h.  */
12865
12866 #include <glib.h>
12867 #include <stdio.h>
12868
12869 int
12870 main ()
12871 {
12872  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
12873   ;
12874   return 0;
12875 }
12876 _ACEOF
12877 if ac_fn_c_try_link "$LINENO"; then :
12878    echo "*** The test program compiled, but did not run. This usually means"
12879           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
12880           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
12881           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12882           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12883           echo "*** is required on your system"
12884           echo "***"
12885           echo "*** If you have an old version installed, it is best to remove it, although"
12886           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12887 else
12888    echo "*** The test program failed to compile or link. See the file config.log for the"
12889           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
12890 fi
12891 rm -f core conftest.err conftest.$ac_objext \
12892     conftest$ac_exeext conftest.$ac_ext
12893           CFLAGS="$ac_save_CFLAGS"
12894           LIBS="$ac_save_LIBS"
12895        fi
12896      fi
12897      GLIB_CFLAGS=""
12898      GLIB_LIBS=""
12899      GLIB_GENMARSHAL=""
12900      GOBJECT_QUERY=""
12901      GLIB_MKENUMS=""
12902      GLIB_COMPILE_RESOURCES=""
12903      :
12904   fi
12905
12906
12907
12908
12909
12910
12911   rm -f conf.glibtest
12912
12913 if test "$GLIB_LIBS" = ""; then
12914    as_fn_error $? "GLIB $GLIB_REQUIRED or later is required to build libsoup" "$LINENO" 5
12915 fi
12916 GLIB_CFLAGS="$GLIB_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_38"
12917
12918 GLIB_MAKEFILE='$(top_srcdir)/Makefile.glib'
12919
12920
12921
12922   # Check whether --enable-installed-tests was given.
12923 if test "${enable_installed_tests+set}" = set; then :
12924   enableval=$enable_installed_tests; case ${enableval} in
12925                   yes) ENABLE_INSTALLED_TESTS="1"  ;;
12926                   no)  ENABLE_INSTALLED_TESTS="" ;;
12927                   *) as_fn_error $? "bad value ${enableval} for --enable-installed-tests" "$LINENO" 5 ;;
12928                  esac
12929 fi
12930
12931    if test "$ENABLE_INSTALLED_TESTS" = "1"; then
12932   ENABLE_INSTALLED_TESTS_TRUE=
12933   ENABLE_INSTALLED_TESTS_FALSE='#'
12934 else
12935   ENABLE_INSTALLED_TESTS_TRUE='#'
12936   ENABLE_INSTALLED_TESTS_FALSE=
12937 fi
12938
12939   # Check whether --enable-always-build-tests was given.
12940 if test "${enable_always_build_tests+set}" = set; then :
12941   enableval=$enable_always_build_tests; case ${enableval} in
12942                   yes) ENABLE_ALWAYS_BUILD_TESTS="1"  ;;
12943                   no)  ENABLE_ALWAYS_BUILD_TESTS="" ;;
12944                   *) as_fn_error $? "bad value ${enableval} for --enable-always-build-tests" "$LINENO" 5 ;;
12945                  esac
12946 fi
12947
12948    if test "$ENABLE_ALWAYS_BUILD_TESTS" = "1"; then
12949   ENABLE_ALWAYS_BUILD_TESTS_TRUE=
12950   ENABLE_ALWAYS_BUILD_TESTS_FALSE='#'
12951 else
12952   ENABLE_ALWAYS_BUILD_TESTS_TRUE='#'
12953   ENABLE_ALWAYS_BUILD_TESTS_FALSE=
12954 fi
12955
12956   if test "$ENABLE_INSTALLED_TESTS" = "1"; then
12957     installed_test_metadir=${datadir}/installed-tests/libsoup
12958
12959     installed_testdir=${libexecdir}/installed-tests/libsoup
12960
12961   fi
12962
12963
12964
12965 pkg_failed=no
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
12967 $as_echo_n "checking for XML... " >&6; }
12968
12969 if test -n "$XML_CFLAGS"; then
12970     pkg_cv_XML_CFLAGS="$XML_CFLAGS"
12971  elif test -n "$PKG_CONFIG"; then
12972     if test -n "$PKG_CONFIG" && \
12973     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
12974   ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
12975   ac_status=$?
12976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12977   test $ac_status = 0; }; then
12978   pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
12979                       test "x$?" != "x0" && pkg_failed=yes
12980 else
12981   pkg_failed=yes
12982 fi
12983  else
12984     pkg_failed=untried
12985 fi
12986 if test -n "$XML_LIBS"; then
12987     pkg_cv_XML_LIBS="$XML_LIBS"
12988  elif test -n "$PKG_CONFIG"; then
12989     if test -n "$PKG_CONFIG" && \
12990     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
12991   ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
12992   ac_status=$?
12993   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12994   test $ac_status = 0; }; then
12995   pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
12996                       test "x$?" != "x0" && pkg_failed=yes
12997 else
12998   pkg_failed=yes
12999 fi
13000  else
13001     pkg_failed=untried
13002 fi
13003
13004
13005
13006 if test $pkg_failed = yes; then
13007         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13008 $as_echo "no" >&6; }
13009
13010 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13011         _pkg_short_errors_supported=yes
13012 else
13013         _pkg_short_errors_supported=no
13014 fi
13015         if test $_pkg_short_errors_supported = yes; then
13016                 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
13017         else
13018                 XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
13019         fi
13020         # Put the nasty error message in config.log where it belongs
13021         echo "$XML_PKG_ERRORS" >&5
13022
13023         as_fn_error $? "Package requirements (libxml-2.0) were not met:
13024
13025 $XML_PKG_ERRORS
13026
13027 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13028 installed software in a non-standard prefix.
13029
13030 Alternatively, you may set the environment variables XML_CFLAGS
13031 and XML_LIBS to avoid the need to call pkg-config.
13032 See the pkg-config man page for more details." "$LINENO" 5
13033 elif test $pkg_failed = untried; then
13034         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13035 $as_echo "no" >&6; }
13036         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13038 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13039 is in your PATH or set the PKG_CONFIG environment variable to the full
13040 path to pkg-config.
13041
13042 Alternatively, you may set the environment variables XML_CFLAGS
13043 and XML_LIBS to avoid the need to call pkg-config.
13044 See the pkg-config man page for more details.
13045
13046 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13047 See \`config.log' for more details" "$LINENO" 5; }
13048 else
13049         XML_CFLAGS=$pkg_cv_XML_CFLAGS
13050         XML_LIBS=$pkg_cv_XML_LIBS
13051         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13052 $as_echo "yes" >&6; }
13053
13054 fi
13055
13056
13057
13058
13059 pkg_failed=no
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
13061 $as_echo_n "checking for SQLITE... " >&6; }
13062
13063 if test -n "$SQLITE_CFLAGS"; then
13064     pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
13065  elif test -n "$PKG_CONFIG"; then
13066     if test -n "$PKG_CONFIG" && \
13067     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
13068   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
13069   ac_status=$?
13070   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13071   test $ac_status = 0; }; then
13072   pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
13073                       test "x$?" != "x0" && pkg_failed=yes
13074 else
13075   pkg_failed=yes
13076 fi
13077  else
13078     pkg_failed=untried
13079 fi
13080 if test -n "$SQLITE_LIBS"; then
13081     pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
13082  elif test -n "$PKG_CONFIG"; then
13083     if test -n "$PKG_CONFIG" && \
13084     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
13085   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
13086   ac_status=$?
13087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13088   test $ac_status = 0; }; then
13089   pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
13090                       test "x$?" != "x0" && pkg_failed=yes
13091 else
13092   pkg_failed=yes
13093 fi
13094  else
13095     pkg_failed=untried
13096 fi
13097
13098
13099
13100 if test $pkg_failed = yes; then
13101         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13102 $as_echo "no" >&6; }
13103
13104 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13105         _pkg_short_errors_supported=yes
13106 else
13107         _pkg_short_errors_supported=no
13108 fi
13109         if test $_pkg_short_errors_supported = yes; then
13110                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
13111         else
13112                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
13113         fi
13114         # Put the nasty error message in config.log where it belongs
13115         echo "$SQLITE_PKG_ERRORS" >&5
13116
13117         as_fn_error $? "Package requirements (sqlite3) were not met:
13118
13119 $SQLITE_PKG_ERRORS
13120
13121 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13122 installed software in a non-standard prefix.
13123
13124 Alternatively, you may set the environment variables SQLITE_CFLAGS
13125 and SQLITE_LIBS to avoid the need to call pkg-config.
13126 See the pkg-config man page for more details." "$LINENO" 5
13127 elif test $pkg_failed = untried; then
13128         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129 $as_echo "no" >&6; }
13130         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13132 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13133 is in your PATH or set the PKG_CONFIG environment variable to the full
13134 path to pkg-config.
13135
13136 Alternatively, you may set the environment variables SQLITE_CFLAGS
13137 and SQLITE_LIBS to avoid the need to call pkg-config.
13138 See the pkg-config man page for more details.
13139
13140 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13141 See \`config.log' for more details" "$LINENO" 5; }
13142 else
13143         SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
13144         SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
13145         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13146 $as_echo "yes" >&6; }
13147
13148 fi
13149
13150
13151
13152
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32" >&5
13154 $as_echo_n "checking for Win32... " >&6; }
13155 case "$host" in
13156   *-*-mingw*)
13157     os_win32=yes
13158     os_linux=yes
13159     CFLAGS="$CFLAGS -D_REENTRANT"
13160     ;;
13161   *-*-linux*)
13162     os_win32=no
13163     os_linux=yes
13164     ;;
13165   *)
13166     os_win32=no
13167     os_linux=no
13168     ;;
13169 esac
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
13171 $as_echo "$os_win32" >&6; }
13172  if test $os_win32 = yes; then
13173   OS_WIN32_TRUE=
13174   OS_WIN32_FALSE='#'
13175 else
13176   OS_WIN32_TRUE='#'
13177   OS_WIN32_FALSE=
13178 fi
13179
13180  if test $os_linux = yes; then
13181   OS_LINUX_TRUE=
13182   OS_LINUX_FALSE='#'
13183 else
13184   OS_LINUX_TRUE='#'
13185   OS_LINUX_FALSE=
13186 fi
13187
13188
13189
13190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13191 $as_echo_n "checking whether NLS is requested... " >&6; }
13192     # Check whether --enable-nls was given.
13193 if test "${enable_nls+set}" = set; then :
13194   enableval=$enable_nls; USE_NLS=$enableval
13195 else
13196   USE_NLS=yes
13197 fi
13198
13199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13200 $as_echo "$USE_NLS" >&6; }
13201
13202
13203
13204
13205 case "$am__api_version" in
13206     1.01234)
13207         as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
13208     ;;
13209     *)
13210     ;;
13211 esac
13212
13213 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
13214 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
13215 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
13216 if test -n "0.35.0"; then
13217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
13218 $as_echo_n "checking for intltool >= 0.35.0... " >&6; }
13219     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
13220 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
13221     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
13222         as_fn_error $? "Your intltool is too old.  You need intltool 0.35.0 or later." "$LINENO" 5
13223 fi
13224
13225 # Extract the first word of "intltool-update", so it can be a program name with args.
13226 set dummy intltool-update; ac_word=$2
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13228 $as_echo_n "checking for $ac_word... " >&6; }
13229 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
13230   $as_echo_n "(cached) " >&6
13231 else
13232   case $INTLTOOL_UPDATE in
13233   [\\/]* | ?:[\\/]*)
13234   ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
13235   ;;
13236   *)
13237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13238 for as_dir in $PATH
13239 do
13240   IFS=$as_save_IFS
13241   test -z "$as_dir" && as_dir=.
13242     for ac_exec_ext in '' $ac_executable_extensions; do
13243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13244     ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
13245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13246     break 2
13247   fi
13248 done
13249   done
13250 IFS=$as_save_IFS
13251
13252   ;;
13253 esac
13254 fi
13255 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
13256 if test -n "$INTLTOOL_UPDATE"; then
13257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
13258 $as_echo "$INTLTOOL_UPDATE" >&6; }
13259 else
13260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261 $as_echo "no" >&6; }
13262 fi
13263
13264
13265 # Extract the first word of "intltool-merge", so it can be a program name with args.
13266 set dummy intltool-merge; ac_word=$2
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13268 $as_echo_n "checking for $ac_word... " >&6; }
13269 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
13270   $as_echo_n "(cached) " >&6
13271 else
13272   case $INTLTOOL_MERGE in
13273   [\\/]* | ?:[\\/]*)
13274   ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
13275   ;;
13276   *)
13277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13278 for as_dir in $PATH
13279 do
13280   IFS=$as_save_IFS
13281   test -z "$as_dir" && as_dir=.
13282     for ac_exec_ext in '' $ac_executable_extensions; do
13283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13284     ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
13285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13286     break 2
13287   fi
13288 done
13289   done
13290 IFS=$as_save_IFS
13291
13292   ;;
13293 esac
13294 fi
13295 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
13296 if test -n "$INTLTOOL_MERGE"; then
13297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
13298 $as_echo "$INTLTOOL_MERGE" >&6; }
13299 else
13300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13301 $as_echo "no" >&6; }
13302 fi
13303
13304
13305 # Extract the first word of "intltool-extract", so it can be a program name with args.
13306 set dummy intltool-extract; ac_word=$2
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13308 $as_echo_n "checking for $ac_word... " >&6; }
13309 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
13310   $as_echo_n "(cached) " >&6
13311 else
13312   case $INTLTOOL_EXTRACT in
13313   [\\/]* | ?:[\\/]*)
13314   ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
13315   ;;
13316   *)
13317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13318 for as_dir in $PATH
13319 do
13320   IFS=$as_save_IFS
13321   test -z "$as_dir" && as_dir=.
13322     for ac_exec_ext in '' $ac_executable_extensions; do
13323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13324     ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
13325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13326     break 2
13327   fi
13328 done
13329   done
13330 IFS=$as_save_IFS
13331
13332   ;;
13333 esac
13334 fi
13335 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
13336 if test -n "$INTLTOOL_EXTRACT"; then
13337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
13338 $as_echo "$INTLTOOL_EXTRACT" >&6; }
13339 else
13340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341 $as_echo "no" >&6; }
13342 fi
13343
13344
13345 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
13346     as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
13347 fi
13348
13349 if test -z "$AM_DEFAULT_VERBOSITY"; then
13350   AM_DEFAULT_VERBOSITY=1
13351 fi
13352
13353
13354 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
13355 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
13356 INTLTOOL__v_MERGE_0='@echo "  ITMRG " $@;'
13357
13358
13359
13360
13361 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
13362 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
13363 intltool__v_merge_options_0='-q'
13364
13365
13366
13367
13368   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 $< $@'
13369 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 $< $@'
13370      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 $< $@'
13371      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 $< $@'
13372       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 $< $@'
13373      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 $< $@'
13374    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 $< $@'
13375     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 $< $@'
13376 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 $< $@'
13377        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 $< $@'
13378       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 $< $@'
13379 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
13380       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 $< $@'
13381 else
13382       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'
13383 fi
13384       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 $< $@'
13385       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 $< $@'
13386     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 $< $@'
13387   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 $< $@'
13388     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 $< $@'
13389     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 $< $@'
13390    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 $< $@'
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488 # Check the gettext tools to make sure they are GNU
13489 # Extract the first word of "xgettext", so it can be a program name with args.
13490 set dummy xgettext; ac_word=$2
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13492 $as_echo_n "checking for $ac_word... " >&6; }
13493 if ${ac_cv_path_XGETTEXT+:} false; then :
13494   $as_echo_n "(cached) " >&6
13495 else
13496   case $XGETTEXT in
13497   [\\/]* | ?:[\\/]*)
13498   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13499   ;;
13500   *)
13501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13502 for as_dir in $PATH
13503 do
13504   IFS=$as_save_IFS
13505   test -z "$as_dir" && as_dir=.
13506     for ac_exec_ext in '' $ac_executable_extensions; do
13507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13508     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
13509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13510     break 2
13511   fi
13512 done
13513   done
13514 IFS=$as_save_IFS
13515
13516   ;;
13517 esac
13518 fi
13519 XGETTEXT=$ac_cv_path_XGETTEXT
13520 if test -n "$XGETTEXT"; then
13521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13522 $as_echo "$XGETTEXT" >&6; }
13523 else
13524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13525 $as_echo "no" >&6; }
13526 fi
13527
13528
13529 # Extract the first word of "msgmerge", so it can be a program name with args.
13530 set dummy msgmerge; ac_word=$2
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13532 $as_echo_n "checking for $ac_word... " >&6; }
13533 if ${ac_cv_path_MSGMERGE+:} false; then :
13534   $as_echo_n "(cached) " >&6
13535 else
13536   case $MSGMERGE in
13537   [\\/]* | ?:[\\/]*)
13538   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13539   ;;
13540   *)
13541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13542 for as_dir in $PATH
13543 do
13544   IFS=$as_save_IFS
13545   test -z "$as_dir" && as_dir=.
13546     for ac_exec_ext in '' $ac_executable_extensions; do
13547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13548     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
13549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13550     break 2
13551   fi
13552 done
13553   done
13554 IFS=$as_save_IFS
13555
13556   ;;
13557 esac
13558 fi
13559 MSGMERGE=$ac_cv_path_MSGMERGE
13560 if test -n "$MSGMERGE"; then
13561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13562 $as_echo "$MSGMERGE" >&6; }
13563 else
13564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13565 $as_echo "no" >&6; }
13566 fi
13567
13568
13569 # Extract the first word of "msgfmt", so it can be a program name with args.
13570 set dummy msgfmt; ac_word=$2
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13572 $as_echo_n "checking for $ac_word... " >&6; }
13573 if ${ac_cv_path_MSGFMT+:} false; then :
13574   $as_echo_n "(cached) " >&6
13575 else
13576   case $MSGFMT in
13577   [\\/]* | ?:[\\/]*)
13578   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13579   ;;
13580   *)
13581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13582 for as_dir in $PATH
13583 do
13584   IFS=$as_save_IFS
13585   test -z "$as_dir" && as_dir=.
13586     for ac_exec_ext in '' $ac_executable_extensions; do
13587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13588     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
13589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13590     break 2
13591   fi
13592 done
13593   done
13594 IFS=$as_save_IFS
13595
13596   ;;
13597 esac
13598 fi
13599 MSGFMT=$ac_cv_path_MSGFMT
13600 if test -n "$MSGFMT"; then
13601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13602 $as_echo "$MSGFMT" >&6; }
13603 else
13604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13605 $as_echo "no" >&6; }
13606 fi
13607
13608
13609 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13610 set dummy gmsgfmt; ac_word=$2
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13612 $as_echo_n "checking for $ac_word... " >&6; }
13613 if ${ac_cv_path_GMSGFMT+:} false; then :
13614   $as_echo_n "(cached) " >&6
13615 else
13616   case $GMSGFMT in
13617   [\\/]* | ?:[\\/]*)
13618   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13619   ;;
13620   *)
13621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13622 for as_dir in $PATH
13623 do
13624   IFS=$as_save_IFS
13625   test -z "$as_dir" && as_dir=.
13626     for ac_exec_ext in '' $ac_executable_extensions; do
13627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13628     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13630     break 2
13631   fi
13632 done
13633   done
13634 IFS=$as_save_IFS
13635
13636   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13637   ;;
13638 esac
13639 fi
13640 GMSGFMT=$ac_cv_path_GMSGFMT
13641 if test -n "$GMSGFMT"; then
13642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13643 $as_echo "$GMSGFMT" >&6; }
13644 else
13645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13646 $as_echo "no" >&6; }
13647 fi
13648
13649
13650 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
13651     as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
13652 fi
13653 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
13654 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
13655 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
13656 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
13657     as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
13658 fi
13659
13660 # Extract the first word of "perl", so it can be a program name with args.
13661 set dummy perl; ac_word=$2
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13663 $as_echo_n "checking for $ac_word... " >&6; }
13664 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
13665   $as_echo_n "(cached) " >&6
13666 else
13667   case $INTLTOOL_PERL in
13668   [\\/]* | ?:[\\/]*)
13669   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
13670   ;;
13671   *)
13672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13673 for as_dir in $PATH
13674 do
13675   IFS=$as_save_IFS
13676   test -z "$as_dir" && as_dir=.
13677     for ac_exec_ext in '' $ac_executable_extensions; do
13678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13679     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
13680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13681     break 2
13682   fi
13683 done
13684   done
13685 IFS=$as_save_IFS
13686
13687   ;;
13688 esac
13689 fi
13690 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
13691 if test -n "$INTLTOOL_PERL"; then
13692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
13693 $as_echo "$INTLTOOL_PERL" >&6; }
13694 else
13695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13696 $as_echo "no" >&6; }
13697 fi
13698
13699
13700 if test -z "$INTLTOOL_PERL"; then
13701    as_fn_error $? "perl not found" "$LINENO" 5
13702 fi
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
13704 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
13705 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
13706 if test $? -ne 0; then
13707    as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
13708 else
13709    IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
13710    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
13711 $as_echo "$IT_PERL_VERSION" >&6; }
13712 fi
13713 if test "x" != "xno-xml"; then
13714    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
13715 $as_echo_n "checking for XML::Parser... " >&6; }
13716    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
13717        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13718 $as_echo "ok" >&6; }
13719    else
13720        as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
13721    fi
13722 fi
13723
13724 # Substitute ALL_LINGUAS so we can use it in po/Makefile
13725
13726
13727
13728
13729
13730 GETTEXT_PACKAGE=libsoup
13731
13732
13733 cat >>confdefs.h <<_ACEOF
13734 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
13735 _ACEOF
13736
13737
13738 for ac_func in gmtime_r
13739 do :
13740   ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
13741 if test "x$ac_cv_func_gmtime_r" = xyes; then :
13742   cat >>confdefs.h <<_ACEOF
13743 #define HAVE_GMTIME_R 1
13744 _ACEOF
13745
13746 fi
13747 done
13748
13749
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build libsoup-gnome" >&5
13751 $as_echo_n "checking whether to build libsoup-gnome... " >&6; }
13752
13753 # Check whether --with-gnome was given.
13754 if test "${with_gnome+set}" = set; then :
13755   withval=$with_gnome; :
13756 else
13757   if test $os_win32 = yes; then with_gnome=no; else with_gnome=yes; fi
13758 fi
13759
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gnome" >&5
13761 $as_echo "$with_gnome" >&6; }
13762
13763  if test $with_gnome != no; then
13764   BUILD_LIBSOUP_GNOME_TRUE=
13765   BUILD_LIBSOUP_GNOME_FALSE='#'
13766 else
13767   BUILD_LIBSOUP_GNOME_TRUE='#'
13768   BUILD_LIBSOUP_GNOME_FALSE=
13769 fi
13770
13771
13772 if test $with_gnome != no; then
13773
13774 $as_echo "#define HAVE_GNOME 1" >>confdefs.h
13775
13776 fi
13777
13778
13779
13780 # gtkdocize greps for ^GTK_DOC_CHECK and parses it, so you need to have
13781 # it on it's own line.
13782
13783
13784
13785
13786   gtk_doc_requires="gtk-doc >= 1.20"
13787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
13788 $as_echo_n "checking for gtk-doc... " >&6; }
13789   if test -n "$PKG_CONFIG" && \
13790     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
13791   ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
13792   ac_status=$?
13793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13794   test $ac_status = 0; }; then
13795   have_gtk_doc=yes
13796 else
13797   have_gtk_doc=no
13798 fi
13799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
13800 $as_echo "$have_gtk_doc" >&6; }
13801
13802   if test "$have_gtk_doc" = "no"; then
13803       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13804   You will not be able to create source packages with 'make dist'
13805   because $gtk_doc_requires is not found." >&5
13806 $as_echo "$as_me: WARNING:
13807   You will not be able to create source packages with 'make dist'
13808   because $gtk_doc_requires is not found." >&2;}
13809   fi
13810
13811             # Extract the first word of "gtkdoc-check", so it can be a program name with args.
13812 set dummy gtkdoc-check; ac_word=$2
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13814 $as_echo_n "checking for $ac_word... " >&6; }
13815 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
13816   $as_echo_n "(cached) " >&6
13817 else
13818   if test -n "$GTKDOC_CHECK"; then
13819   ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
13820 else
13821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13822 for as_dir in $PATH
13823 do
13824   IFS=$as_save_IFS
13825   test -z "$as_dir" && as_dir=.
13826     for ac_exec_ext in '' $ac_executable_extensions; do
13827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13828     ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
13829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13830     break 2
13831   fi
13832 done
13833   done
13834 IFS=$as_save_IFS
13835
13836 fi
13837 fi
13838 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
13839 if test -n "$GTKDOC_CHECK"; then
13840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
13841 $as_echo "$GTKDOC_CHECK" >&6; }
13842 else
13843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13844 $as_echo "no" >&6; }
13845 fi
13846
13847
13848   # Extract the first word of "gtkdoc-check", so it can be a program name with args.
13849 set dummy gtkdoc-check; ac_word=$2
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13851 $as_echo_n "checking for $ac_word... " >&6; }
13852 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
13853   $as_echo_n "(cached) " >&6
13854 else
13855   case $GTKDOC_CHECK_PATH in
13856   [\\/]* | ?:[\\/]*)
13857   ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
13858   ;;
13859   *)
13860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13861 for as_dir in $PATH
13862 do
13863   IFS=$as_save_IFS
13864   test -z "$as_dir" && as_dir=.
13865     for ac_exec_ext in '' $ac_executable_extensions; do
13866   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13867     ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
13868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13869     break 2
13870   fi
13871 done
13872   done
13873 IFS=$as_save_IFS
13874
13875   ;;
13876 esac
13877 fi
13878 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
13879 if test -n "$GTKDOC_CHECK_PATH"; then
13880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
13881 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
13882 else
13883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13884 $as_echo "no" >&6; }
13885 fi
13886
13887
13888   for ac_prog in gtkdoc-rebase
13889 do
13890   # Extract the first word of "$ac_prog", so it can be a program name with args.
13891 set dummy $ac_prog; ac_word=$2
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13893 $as_echo_n "checking for $ac_word... " >&6; }
13894 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
13895   $as_echo_n "(cached) " >&6
13896 else
13897   case $GTKDOC_REBASE in
13898   [\\/]* | ?:[\\/]*)
13899   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
13900   ;;
13901   *)
13902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13903 for as_dir in $PATH
13904 do
13905   IFS=$as_save_IFS
13906   test -z "$as_dir" && as_dir=.
13907     for ac_exec_ext in '' $ac_executable_extensions; do
13908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13909     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
13910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13911     break 2
13912   fi
13913 done
13914   done
13915 IFS=$as_save_IFS
13916
13917   ;;
13918 esac
13919 fi
13920 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
13921 if test -n "$GTKDOC_REBASE"; then
13922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
13923 $as_echo "$GTKDOC_REBASE" >&6; }
13924 else
13925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13926 $as_echo "no" >&6; }
13927 fi
13928
13929
13930   test -n "$GTKDOC_REBASE" && break
13931 done
13932 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
13933
13934   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
13935 set dummy gtkdoc-mkpdf; ac_word=$2
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13937 $as_echo_n "checking for $ac_word... " >&6; }
13938 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
13939   $as_echo_n "(cached) " >&6
13940 else
13941   case $GTKDOC_MKPDF in
13942   [\\/]* | ?:[\\/]*)
13943   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
13944   ;;
13945   *)
13946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13947 for as_dir in $PATH
13948 do
13949   IFS=$as_save_IFS
13950   test -z "$as_dir" && as_dir=.
13951     for ac_exec_ext in '' $ac_executable_extensions; do
13952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13953     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
13954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13955     break 2
13956   fi
13957 done
13958   done
13959 IFS=$as_save_IFS
13960
13961   ;;
13962 esac
13963 fi
13964 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
13965 if test -n "$GTKDOC_MKPDF"; then
13966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
13967 $as_echo "$GTKDOC_MKPDF" >&6; }
13968 else
13969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13970 $as_echo "no" >&6; }
13971 fi
13972
13973
13974
13975
13976 # Check whether --with-html-dir was given.
13977 if test "${with_html_dir+set}" = set; then :
13978   withval=$with_html_dir;
13979 else
13980   with_html_dir='${datadir}/gtk-doc/html'
13981 fi
13982
13983   HTML_DIR="$with_html_dir"
13984
13985
13986     # Check whether --enable-gtk-doc was given.
13987 if test "${enable_gtk_doc+set}" = set; then :
13988   enableval=$enable_gtk_doc;
13989 else
13990   enable_gtk_doc=no
13991 fi
13992
13993
13994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
13995 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
13996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
13997 $as_echo "$enable_gtk_doc" >&6; }
13998
13999   if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
14000     as_fn_error $? "
14001   You must have $gtk_doc_requires installed to build documentation for
14002   $PACKAGE_NAME. Please install gtk-doc or disable building the
14003   documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
14004   fi
14005
14006     if test "x$PACKAGE_NAME" != "xglib"; then
14007
14008 pkg_failed=no
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
14010 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
14011
14012 if test -n "$GTKDOC_DEPS_CFLAGS"; then
14013     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
14014  elif test -n "$PKG_CONFIG"; then
14015     if test -n "$PKG_CONFIG" && \
14016     { { $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
14017   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
14018   ac_status=$?
14019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14020   test $ac_status = 0; }; then
14021   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
14022                       test "x$?" != "x0" && pkg_failed=yes
14023 else
14024   pkg_failed=yes
14025 fi
14026  else
14027     pkg_failed=untried
14028 fi
14029 if test -n "$GTKDOC_DEPS_LIBS"; then
14030     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
14031  elif test -n "$PKG_CONFIG"; then
14032     if test -n "$PKG_CONFIG" && \
14033     { { $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
14034   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
14035   ac_status=$?
14036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14037   test $ac_status = 0; }; then
14038   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
14039                       test "x$?" != "x0" && pkg_failed=yes
14040 else
14041   pkg_failed=yes
14042 fi
14043  else
14044     pkg_failed=untried
14045 fi
14046
14047
14048
14049 if test $pkg_failed = yes; then
14050         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14051 $as_echo "no" >&6; }
14052
14053 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14054         _pkg_short_errors_supported=yes
14055 else
14056         _pkg_short_errors_supported=no
14057 fi
14058         if test $_pkg_short_errors_supported = yes; then
14059                 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`
14060         else
14061                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
14062         fi
14063         # Put the nasty error message in config.log where it belongs
14064         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
14065
14066         :
14067 elif test $pkg_failed = untried; then
14068         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14069 $as_echo "no" >&6; }
14070         :
14071 else
14072         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
14073         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
14074         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14075 $as_echo "yes" >&6; }
14076
14077 fi
14078   fi
14079
14080     # Check whether --enable-gtk-doc-html was given.
14081 if test "${enable_gtk_doc_html+set}" = set; then :
14082   enableval=$enable_gtk_doc_html;
14083 else
14084   enable_gtk_doc_html=yes
14085 fi
14086
14087     # Check whether --enable-gtk-doc-pdf was given.
14088 if test "${enable_gtk_doc_pdf+set}" = set; then :
14089   enableval=$enable_gtk_doc_pdf;
14090 else
14091   enable_gtk_doc_pdf=no
14092 fi
14093
14094
14095   if test -z "$GTKDOC_MKPDF"; then
14096     enable_gtk_doc_pdf=no
14097   fi
14098
14099   if test -z "$AM_DEFAULT_VERBOSITY"; then
14100     AM_DEFAULT_VERBOSITY=1
14101   fi
14102
14103
14104    if test x$have_gtk_doc = xyes; then
14105   HAVE_GTK_DOC_TRUE=
14106   HAVE_GTK_DOC_FALSE='#'
14107 else
14108   HAVE_GTK_DOC_TRUE='#'
14109   HAVE_GTK_DOC_FALSE=
14110 fi
14111
14112    if test x$enable_gtk_doc = xyes; then
14113   ENABLE_GTK_DOC_TRUE=
14114   ENABLE_GTK_DOC_FALSE='#'
14115 else
14116   ENABLE_GTK_DOC_TRUE='#'
14117   ENABLE_GTK_DOC_FALSE=
14118 fi
14119
14120    if test x$enable_gtk_doc_html = xyes; then
14121   GTK_DOC_BUILD_HTML_TRUE=
14122   GTK_DOC_BUILD_HTML_FALSE='#'
14123 else
14124   GTK_DOC_BUILD_HTML_TRUE='#'
14125   GTK_DOC_BUILD_HTML_FALSE=
14126 fi
14127
14128    if test x$enable_gtk_doc_pdf = xyes; then
14129   GTK_DOC_BUILD_PDF_TRUE=
14130   GTK_DOC_BUILD_PDF_FALSE='#'
14131 else
14132   GTK_DOC_BUILD_PDF_TRUE='#'
14133   GTK_DOC_BUILD_PDF_FALSE=
14134 fi
14135
14136    if test -n "$LIBTOOL"; then
14137   GTK_DOC_USE_LIBTOOL_TRUE=
14138   GTK_DOC_USE_LIBTOOL_FALSE='#'
14139 else
14140   GTK_DOC_USE_LIBTOOL_TRUE='#'
14141   GTK_DOC_USE_LIBTOOL_FALSE=
14142 fi
14143
14144    if test -n "$GTKDOC_REBASE"; then
14145   GTK_DOC_USE_REBASE_TRUE=
14146   GTK_DOC_USE_REBASE_FALSE='#'
14147 else
14148   GTK_DOC_USE_REBASE_TRUE='#'
14149   GTK_DOC_USE_REBASE_FALSE=
14150 fi
14151
14152
14153
14154
14155
14156
14157
14158                 # Check whether --enable-introspection was given.
14159 if test "${enable_introspection+set}" = set; then :
14160   enableval=$enable_introspection;
14161 else
14162   enable_introspection=auto
14163 fi
14164
14165
14166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
14167 $as_echo_n "checking for gobject-introspection... " >&6; }
14168
14169         case $enable_introspection in #(
14170   no) :
14171             found_introspection="no (disabled, use --enable-introspection to enable)"
14172      ;; #(
14173       yes) :
14174             if test -n "$PKG_CONFIG" && \
14175     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
14176   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
14177   ac_status=$?
14178   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14179   test $ac_status = 0; }; then
14180   :
14181 else
14182   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
14183 fi
14184         if test -n "$PKG_CONFIG" && \
14185     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
14186   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
14187   ac_status=$?
14188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14189   test $ac_status = 0; }; then
14190   found_introspection=yes
14191 else
14192   as_fn_error $? "You need to have gobject-introspection >= 0.9.5 installed to build libsoup" "$LINENO" 5
14193 fi
14194      ;; #(
14195       auto) :
14196             if test -n "$PKG_CONFIG" && \
14197     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
14198   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
14199   ac_status=$?
14200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14201   test $ac_status = 0; }; then
14202   found_introspection=yes
14203 else
14204   found_introspection=no
14205 fi
14206      ;; #(
14207   *) :
14208                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
14209      ;;
14210 esac
14211     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
14212 $as_echo "$found_introspection" >&6; }
14213
14214     INTROSPECTION_SCANNER=
14215     INTROSPECTION_COMPILER=
14216     INTROSPECTION_GENERATE=
14217     INTROSPECTION_GIRDIR=
14218     INTROSPECTION_TYPELIBDIR=
14219     if test "x$found_introspection" = "xyes"; then
14220        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14221        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14222        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
14223        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
14224        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
14225        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
14226        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
14227        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
14228     fi
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238      if test "x$found_introspection" = "xyes"; then
14239   HAVE_INTROSPECTION_TRUE=
14240   HAVE_INTROSPECTION_FALSE='#'
14241 else
14242   HAVE_INTROSPECTION_TRUE='#'
14243   HAVE_INTROSPECTION_FALSE=
14244 fi
14245
14246
14247
14248
14249 if test "$found_introspection" != "yes" -a "$enable_vala" = ""; then
14250         enable_vala=no
14251 fi
14252 # Extract the first word of "valac", so it can be a program name with args.
14253 set dummy valac; ac_word=$2
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14255 $as_echo_n "checking for $ac_word... " >&6; }
14256 if ${ac_cv_path_VALAC+:} false; then :
14257   $as_echo_n "(cached) " >&6
14258 else
14259   case $VALAC in
14260   [\\/]* | ?:[\\/]*)
14261   ac_cv_path_VALAC="$VALAC" # Let the user override the test with a path.
14262   ;;
14263   *)
14264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14265 for as_dir in $PATH
14266 do
14267   IFS=$as_save_IFS
14268   test -z "$as_dir" && as_dir=.
14269     for ac_exec_ext in '' $ac_executable_extensions; do
14270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14271     ac_cv_path_VALAC="$as_dir/$ac_word$ac_exec_ext"
14272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14273     break 2
14274   fi
14275 done
14276   done
14277 IFS=$as_save_IFS
14278
14279   test -z "$ac_cv_path_VALAC" && ac_cv_path_VALAC="valac"
14280   ;;
14281 esac
14282 fi
14283 VALAC=$ac_cv_path_VALAC
14284 if test -n "$VALAC"; then
14285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALAC" >&5
14286 $as_echo "$VALAC" >&6; }
14287 else
14288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14289 $as_echo "no" >&6; }
14290 fi
14291
14292
14293    if test "$VALAC" != valac && test -n ""; then :
14294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $VALAC is at least version " >&5
14295 $as_echo_n "checking whether $VALAC is at least version ... " >&6; }
14296        am__vala_version=`$VALAC --version | sed 's/Vala  *//'`
14297        as_arg_v1=
14298 as_arg_v2="$am__vala_version"
14299 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
14300 case $? in #(
14301   1) :
14302     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14303 $as_echo "yes" >&6; } ;; #(
14304   0) :
14305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14306 $as_echo "yes" >&6; } ;; #(
14307   2) :
14308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309 $as_echo "no" >&6; }
14310           VALAC=valac ;; #(
14311   *) :
14312      ;;
14313 esac
14314 fi
14315     if test "$VALAC" = valac; then
14316       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no proper vala compiler found" >&5
14317 $as_echo "$as_me: WARNING: no proper vala compiler found" >&2;}
14318          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: you will not be able to compile vala source files" >&5
14319 $as_echo "$as_me: WARNING: you will not be able to compile vala source files" >&2;}
14320     else
14321       :
14322     fi
14323
14324
14325
14326
14327   # Check whether --enable-vala was given.
14328 if test "${enable_vala+set}" = set; then :
14329   enableval=$enable_vala;
14330 else
14331
14332       if  test "x" = "x"; then :
14333
14334           enable_vala=auto
14335
14336 else
14337
14338           enable_vala=
14339
14340 fi
14341
14342 fi
14343
14344         if  test "x$enable_vala" = "xyes" -o "x$enable_vala" = "xauto"; then :
14345
14346                         if  test "x" != "xyes" -a "x$found_introspection" != "xyes"; then :
14347
14348                                 as_fn_error $? "Vala bindings require GObject Introspection" "$LINENO" 5
14349
14350 fi
14351
14352 else
14353
14354                         if  test "x$enable_vala" != "no"; then :
14355
14356                                         vapigen_pkg_found=no
14357
14358 else
14359
14360                                 as_fn_error $? "Invalid argument passed to --enable-vala, should be one of [no/auto/yes]" "$LINENO" 5
14361
14362 fi
14363
14364 fi
14365   if  test "x" = "x"; then :
14366
14367       vapigen_pkg_name=vapigen
14368
14369 else
14370
14371       vapigen_pkg_name=vapigen-
14372
14373 fi
14374   if  test "x" = "x"; then :
14375
14376       vapigen_pkg="$vapigen_pkg_name"
14377
14378 else
14379
14380       vapigen_pkg="$vapigen_pkg_name >= "
14381
14382 fi
14383   if  test "x$enable_vala" = "xyes" -o "x$enable_vala" = "xauto"; then :
14384
14385                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vapigen $vapigen_pkg_name" >&5
14386 $as_echo_n "checking for vapigen $vapigen_pkg_name... " >&6; }
14387                 if test -n "$PKG_CONFIG" && \
14388     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" \$vapigen_pkg \""; } >&5
14389   ($PKG_CONFIG --exists --print-errors " $vapigen_pkg ") 2>&5
14390   ac_status=$?
14391   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14392   test $ac_status = 0; }; then
14393
14394                         vapigen_pkg_found=yes
14395
14396 else
14397
14398                         vapigen_pkg_found=no
14399                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14400 $as_echo "no" >&6; }
14401                         { $as_echo "$as_me:${as_lineno-$LINENO}: Searching for $vapigen_pkg_name program..." >&5
14402 $as_echo "$as_me: Searching for $vapigen_pkg_name program..." >&6;}
14403                         # Extract the first word of "$vapigen_pkg_name", so it can be a program name with args.
14404 set dummy $vapigen_pkg_name; ac_word=$2
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14406 $as_echo_n "checking for $ac_word... " >&6; }
14407 if ${ac_cv_path_VAPIGEN+:} false; then :
14408   $as_echo_n "(cached) " >&6
14409 else
14410   case $VAPIGEN in
14411   [\\/]* | ?:[\\/]*)
14412   ac_cv_path_VAPIGEN="$VAPIGEN" # Let the user override the test with a path.
14413   ;;
14414   *)
14415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14416 for as_dir in $PATH
14417 do
14418   IFS=$as_save_IFS
14419   test -z "$as_dir" && as_dir=.
14420     for ac_exec_ext in '' $ac_executable_extensions; do
14421   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14422     ac_cv_path_VAPIGEN="$as_dir/$ac_word$ac_exec_ext"
14423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14424     break 2
14425   fi
14426 done
14427   done
14428 IFS=$as_save_IFS
14429
14430   test -z "$ac_cv_path_VAPIGEN" && ac_cv_path_VAPIGEN="no"
14431   ;;
14432 esac
14433 fi
14434 VAPIGEN=$ac_cv_path_VAPIGEN
14435 if test -n "$VAPIGEN"; then
14436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VAPIGEN" >&5
14437 $as_echo "$VAPIGEN" >&6; }
14438 else
14439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14440 $as_echo "no" >&6; }
14441 fi
14442
14443
14444                         if test "x$VAPIGEN" = "xno"
14445                         then
14446                           check_prog=no
14447                         else
14448                           check_prog=yes
14449                         fi
14450
14451 fi
14452
14453                 case $vapigen_pkg_found in #(
14454   yes) :
14455
14456                       VAPIGEN=`$PKG_CONFIG --variable=vapigen vapigen`
14457                       VAPIGEN_MAKEFILE=`$PKG_CONFIG --variable=datadir vapigen`/vala/Makefile.vapigen
14458                       VAPIDIR=`$PKG_CONFIG --variable=vapidir vapigen`
14459                       if  test "x" = "x"; then :
14460
14461                           VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir vapigen`
14462
14463 else
14464
14465                           VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir_versioned vapigen`
14466
14467 fi
14468                      ;; #(
14469   no) :
14470
14471                     case $check_prog in #(
14472   no) :
14473
14474                         as_fn_error $? "Can't locate $vapigen_pkg program" "$LINENO" 5
14475                        ;; #(
14476   yes) :
14477
14478                         if  test "x" = "x"; then :
14479
14480                             vala_pkg_name=libvala
14481
14482 else
14483
14484                             vala_pkg_name=libvala-
14485
14486 fi
14487                         if  test "x" = "x"; then :
14488
14489                             vala_pkg="$vala_pkg_name"
14490
14491 else
14492
14493                             vala_pkg="$vala_pkg_name >= "
14494
14495 fi
14496                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $vala_pkg" >&5
14497 $as_echo_n "checking for $vala_pkg... " >&6; }
14498                         if test -n "$PKG_CONFIG" && \
14499     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$vala_pkg\""; } >&5
14500   ($PKG_CONFIG --exists --print-errors "$vala_pkg") 2>&5
14501   ac_status=$?
14502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14503   test $ac_status = 0; }; then
14504
14505                             VALA_DATADIR=`pkg-config $vala_pkg --variable=datadir`
14506                 VAPIDIR="$VALA_DATADIR/vala/vapi"
14507                 VAPIGEN_MAKEFILE="$VALA_DATADIR/vala/Makefile.vapigen"
14508                 if  test "x" = "x"; then :
14509
14510                                                       VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir vapigen`
14511
14512 else
14513
14514                                                       VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir_versioned vapigen`
14515
14516 fi
14517                 vapigen_pkg_found=yes
14518
14519 else
14520
14521                             case $enable_vala in #(
14522   yes) :
14523
14524                                 as_fn_error $? "$vala_pkg not found" "$LINENO" 5
14525                                ;; #(
14526   auto) :
14527
14528                                 vapigen_pkg_found=no
14529                                ;; #(
14530   *) :
14531      ;;
14532 esac
14533
14534 fi
14535                       ;; #(
14536   *) :
14537      ;;
14538 esac
14539                    ;; #(
14540   *) :
14541      ;;
14542 esac
14543
14544                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vapigen_pkg_found" >&5
14545 $as_echo "$vapigen_pkg_found" >&6; }
14546
14547
14548
14549 fi
14550
14551
14552
14553
14554
14555          if test "x$vapigen_pkg_found" = "xyes"; then
14556   ENABLE_VAPIGEN_TRUE=
14557   ENABLE_VAPIGEN_FALSE='#'
14558 else
14559   ENABLE_VAPIGEN_TRUE='#'
14560   ENABLE_VAPIGEN_FALSE=
14561 fi
14562
14563
14564
14565
14566
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-networking (glib TLS implementation)" >&5
14568 $as_echo_n "checking for glib-networking (glib TLS implementation)... " >&6; }
14569 save_CFLAGS="$CFLAGS"
14570 save_LIBS="$LIBS"
14571 CFLAGS="$CFLAGS $GLIB_CFLAGS"
14572 LIBS="$LIBS $GLIB_LIBS"
14573 if test "$cross_compiling" = yes; then :
14574   have_glib_networking="unknown (cross-compiling)"
14575 else
14576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14577 /* end confdefs.h.  */
14578 #include <gio/gio.h>
14579 int
14580 main ()
14581 {
14582 return !g_tls_backend_supports_tls (g_tls_backend_get_default ());
14583   ;
14584   return 0;
14585 }
14586 _ACEOF
14587 if ac_fn_c_try_run "$LINENO"; then :
14588   have_glib_networking=yes
14589 else
14590   have_glib_networking=no
14591 fi
14592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14593   conftest.$ac_objext conftest.beam conftest.$ac_ext
14594 fi
14595
14596 CFLAGS="$save_CFLAGS"
14597 LIBS="$save_LIBS"
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glib_networking" >&5
14599 $as_echo "$have_glib_networking" >&6; }
14600
14601 # Check whether --enable-tls-check was given.
14602 if test "${enable_tls_check+set}" = set; then :
14603   enableval=$enable_tls_check;
14604 fi
14605
14606 if test "$enable_tls_check" != "no" -a "$have_glib_networking" = "no"; then
14607         as_fn_error $? "libsoup requires glib-networking for TLS support.
14608
14609 If you are building a package, you can pass --disable-tls-check to
14610 allow building libsoup anyway (since glib-networking is not actually
14611 required at compile time), but you should be sure to add a runtime
14612 dependency on it." "$LINENO" 5
14613 fi
14614
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for programs needed for regression tests" >&5
14616 $as_echo "$as_me: checking for programs needed for regression tests" >&6;}
14617
14618
14619 # Check whether --with-apache-httpd was given.
14620 if test "${with_apache_httpd+set}" = set; then :
14621   withval=$with_apache_httpd; APACHE_HTTPD="$withval"
14622 else
14623   for ac_prog in httpd2 httpd apache2 apache
14624 do
14625   # Extract the first word of "$ac_prog", so it can be a program name with args.
14626 set dummy $ac_prog; ac_word=$2
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14628 $as_echo_n "checking for $ac_word... " >&6; }
14629 if ${ac_cv_path_APACHE_HTTPD+:} false; then :
14630   $as_echo_n "(cached) " >&6
14631 else
14632   case $APACHE_HTTPD in
14633   [\\/]* | ?:[\\/]*)
14634   ac_cv_path_APACHE_HTTPD="$APACHE_HTTPD" # Let the user override the test with a path.
14635   ;;
14636   *)
14637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14638 as_dummy="${PATH}:/usr/sbin"
14639 for as_dir in $as_dummy
14640 do
14641   IFS=$as_save_IFS
14642   test -z "$as_dir" && as_dir=.
14643     for ac_exec_ext in '' $ac_executable_extensions; do
14644   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14645     ac_cv_path_APACHE_HTTPD="$as_dir/$ac_word$ac_exec_ext"
14646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14647     break 2
14648   fi
14649 done
14650   done
14651 IFS=$as_save_IFS
14652
14653   ;;
14654 esac
14655 fi
14656 APACHE_HTTPD=$ac_cv_path_APACHE_HTTPD
14657 if test -n "$APACHE_HTTPD"; then
14658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APACHE_HTTPD" >&5
14659 $as_echo "$APACHE_HTTPD" >&6; }
14660 else
14661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14662 $as_echo "no" >&6; }
14663 fi
14664
14665
14666   test -n "$APACHE_HTTPD" && break
14667 done
14668 test -n "$APACHE_HTTPD" || APACHE_HTTPD="no"
14669
14670 fi
14671
14672 if test "$APACHE_HTTPD" != "no"; then
14673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking Apache version" >&5
14674 $as_echo_n "checking Apache version... " >&6; }
14675     apache_version=`$APACHE_HTTPD -v 2>/dev/null | sed -ne 's/Server version: Apache\///p'`
14676     case $apache_version in
14677     2.4.*)
14678         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apache_version (ok)" >&5
14679 $as_echo "$apache_version (ok)" >&6; }
14680         ;;
14681     *)
14682         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apache_version (ignoring)" >&5
14683 $as_echo "$apache_version (ignoring)" >&6; }
14684         APACHE_HTTPD="no"
14685         ;;
14686     esac
14687 fi
14688
14689
14690 cat >>confdefs.h <<_ACEOF
14691 #define APACHE_HTTPD "$APACHE_HTTPD"
14692 _ACEOF
14693
14694
14695 if test "$APACHE_HTTPD" != "no"; then
14696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache module directory" >&5
14697 $as_echo_n "checking for Apache module directory... " >&6; }
14698
14699 # Check whether --with-apache-module-dir was given.
14700 if test "${with_apache_module_dir+set}" = set; then :
14701   withval=$with_apache_module_dir; apache_module_dirs="$withval"
14702 else
14703   apache_prefix=`dirname \`dirname $APACHE_HTTPD\``
14704                 mpm=`$APACHE_HTTPD -V -C "ServerName localhost" | sed -ne 's/^Server MPM: */-/p' | tr 'A-Z' 'a-z'`
14705                 # This only works with bash, but should fail harmlessly in sh
14706                 apache_module_dirs=`echo $apache_prefix/lib{64,}/{apache,apache2,http,http2,httpd}{$mpm,}{/modules,}`
14707 fi
14708
14709     for dir in $apache_module_dirs; do
14710         if test -f $dir/mod_auth_digest.so; then
14711             APACHE_MODULE_DIR="$dir"
14712         fi
14713         if test -f $dir/mod_ssl.so; then
14714             APACHE_SSL_MODULE_DIR="$dir"
14715             IF_HAVE_APACHE_SSL=""
14716         fi
14717         if test -f $dir/libphp7.so; then
14718             APACHE_PHP_MODULE_DIR="$dir"
14719         fi
14720     done
14721     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APACHE_MODULE_DIR" >&5
14722 $as_echo "$APACHE_MODULE_DIR" >&6; }
14723
14724
14725
14726 fi
14727
14728 if test "$APACHE_HTTPD" != "no" -a -n "$APACHE_MODULE_DIR" -a -n "$APACHE_SSL_MODULE_DIR"; then
14729
14730 $as_echo "#define HAVE_APACHE 1" >>confdefs.h
14731
14732     have_apache=1
14733 else
14734     have_apache=0
14735 fi
14736  if test "$have_apache" = 1; then
14737   HAVE_APACHE_TRUE=
14738   HAVE_APACHE_FALSE='#'
14739 else
14740   HAVE_APACHE_TRUE='#'
14741   HAVE_APACHE_FALSE=
14742 fi
14743
14744
14745 if test "$have_apache" = 1; then
14746     for ac_prog in php
14747 do
14748   # Extract the first word of "$ac_prog", so it can be a program name with args.
14749 set dummy $ac_prog; ac_word=$2
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14751 $as_echo_n "checking for $ac_word... " >&6; }
14752 if ${ac_cv_prog_PHP+:} false; then :
14753   $as_echo_n "(cached) " >&6
14754 else
14755   if test -n "$PHP"; then
14756   ac_cv_prog_PHP="$PHP" # Let the user override the test.
14757 else
14758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14759 for as_dir in $PATH
14760 do
14761   IFS=$as_save_IFS
14762   test -z "$as_dir" && as_dir=.
14763     for ac_exec_ext in '' $ac_executable_extensions; do
14764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14765     ac_cv_prog_PHP="$ac_prog"
14766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14767     break 2
14768   fi
14769 done
14770   done
14771 IFS=$as_save_IFS
14772
14773 fi
14774 fi
14775 PHP=$ac_cv_prog_PHP
14776 if test -n "$PHP"; then
14777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
14778 $as_echo "$PHP" >&6; }
14779 else
14780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14781 $as_echo "no" >&6; }
14782 fi
14783
14784
14785   test -n "$PHP" && break
14786 done
14787
14788
14789     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache PHP module" >&5
14790 $as_echo_n "checking for Apache PHP module... " >&6; }
14791     if test -d "$APACHE_PHP_MODULE_DIR"; then
14792         have_php="yes"
14793         IF_HAVE_PHP=""
14794     else
14795         have_php="no"
14796         IF_HAVE_PHP="#"
14797     fi
14798     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_php" >&5
14799 $as_echo "$have_php" >&6; }
14800
14801
14802     if test "$have_php" = yes; then
14803         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for php-xmlrpc" >&5
14804 $as_echo_n "checking for php-xmlrpc... " >&6; }
14805         if $PHP --rf xmlrpc_server_create | grep -q "does not exist"; then
14806             have_php_xmlrpc=no
14807         else
14808             have_php_xmlrpc=yes
14809
14810 $as_echo "#define HAVE_PHP_XMLRPC 1" >>confdefs.h
14811
14812         fi
14813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_php_xmlrpc" >&5
14814 $as_echo "$have_php_xmlrpc" >&6; }
14815     fi
14816
14817     if test -f "$APACHE_MODULE_DIR/mod_unixd.so"; then
14818         IF_HAVE_MOD_UNIXD=""
14819     else
14820         IF_HAVE_MOD_UNIXD="#"
14821     fi
14822
14823 fi
14824
14825 # Extract the first word of "curl", so it can be a program name with args.
14826 set dummy curl; ac_word=$2
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14828 $as_echo_n "checking for $ac_word... " >&6; }
14829 if ${ac_cv_path_CURL+:} false; then :
14830   $as_echo_n "(cached) " >&6
14831 else
14832   case $CURL in
14833   [\\/]* | ?:[\\/]*)
14834   ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
14835   ;;
14836   *)
14837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14838 for as_dir in $PATH
14839 do
14840   IFS=$as_save_IFS
14841   test -z "$as_dir" && as_dir=.
14842     for ac_exec_ext in '' $ac_executable_extensions; do
14843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14844     ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
14845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14846     break 2
14847   fi
14848 done
14849   done
14850 IFS=$as_save_IFS
14851
14852   test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="no"
14853   ;;
14854 esac
14855 fi
14856 CURL=$ac_cv_path_CURL
14857 if test -n "$CURL"; then
14858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
14859 $as_echo "$CURL" >&6; }
14860 else
14861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14862 $as_echo "no" >&6; }
14863 fi
14864
14865
14866 if test "$CURL" != no; then
14867
14868 $as_echo "#define HAVE_CURL 1" >>confdefs.h
14869
14870 fi
14871
14872
14873 # Check whether --with-ntlm-auth was given.
14874 if test "${with_ntlm_auth+set}" = set; then :
14875   withval=$with_ntlm_auth; ntlm_auth="$withval"
14876 else
14877   if test $os_win32 = yes; then ntlm_auth="no"; else ntlm_auth="/usr/bin/ntlm_auth"; fi
14878 fi
14879
14880 if test "$ntlm_auth" != "no"; then
14881
14882 $as_echo "#define USE_NTLM_AUTH 1" >>confdefs.h
14883
14884     if test "$ntlm_auth" = "yes"; then
14885                 ntlm_auth="/usr/bin/ntlm_auth"
14886     fi
14887 fi
14888
14889
14890 cat >>confdefs.h <<_ACEOF
14891 #define NTLM_AUTH "$ntlm_auth"
14892 _ACEOF
14893
14894
14895
14896
14897
14898         # allow to override gcov location
14899
14900 # Check whether --with-gcov was given.
14901 if test "${with_gcov+set}" = set; then :
14902   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
14903 else
14904   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
14905 fi
14906
14907
14908         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
14909 $as_echo_n "checking whether to build with code coverage support... " >&6; }
14910         # Check whether --enable-code-coverage was given.
14911 if test "${enable_code_coverage+set}" = set; then :
14912   enableval=$enable_code_coverage;
14913 else
14914   enable_code_coverage=no
14915 fi
14916
14917
14918          if test x$enable_code_coverage = xyes; then
14919   CODE_COVERAGE_ENABLED_TRUE=
14920   CODE_COVERAGE_ENABLED_FALSE='#'
14921 else
14922   CODE_COVERAGE_ENABLED_TRUE='#'
14923   CODE_COVERAGE_ENABLED_FALSE=
14924 fi
14925
14926         CODE_COVERAGE_ENABLED=$enable_code_coverage
14927
14928         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
14929 $as_echo "$enable_code_coverage" >&6; }
14930
14931         if  test "$enable_code_coverage" = "yes" ; then :
14932
14933                 # check for gcov
14934                 if test -n "$ac_tool_prefix"; then
14935   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
14936 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14938 $as_echo_n "checking for $ac_word... " >&6; }
14939 if ${ac_cv_prog_GCOV+:} false; then :
14940   $as_echo_n "(cached) " >&6
14941 else
14942   if test -n "$GCOV"; then
14943   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
14944 else
14945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14946 for as_dir in $PATH
14947 do
14948   IFS=$as_save_IFS
14949   test -z "$as_dir" && as_dir=.
14950     for ac_exec_ext in '' $ac_executable_extensions; do
14951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14952     ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
14953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14954     break 2
14955   fi
14956 done
14957   done
14958 IFS=$as_save_IFS
14959
14960 fi
14961 fi
14962 GCOV=$ac_cv_prog_GCOV
14963 if test -n "$GCOV"; then
14964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
14965 $as_echo "$GCOV" >&6; }
14966 else
14967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14968 $as_echo "no" >&6; }
14969 fi
14970
14971
14972 fi
14973 if test -z "$ac_cv_prog_GCOV"; then
14974   ac_ct_GCOV=$GCOV
14975   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
14976 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14978 $as_echo_n "checking for $ac_word... " >&6; }
14979 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
14980   $as_echo_n "(cached) " >&6
14981 else
14982   if test -n "$ac_ct_GCOV"; then
14983   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
14984 else
14985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14986 for as_dir in $PATH
14987 do
14988   IFS=$as_save_IFS
14989   test -z "$as_dir" && as_dir=.
14990     for ac_exec_ext in '' $ac_executable_extensions; do
14991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14992     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
14993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14994     break 2
14995   fi
14996 done
14997   done
14998 IFS=$as_save_IFS
14999
15000 fi
15001 fi
15002 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
15003 if test -n "$ac_ct_GCOV"; then
15004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
15005 $as_echo "$ac_ct_GCOV" >&6; }
15006 else
15007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15008 $as_echo "no" >&6; }
15009 fi
15010
15011   if test "x$ac_ct_GCOV" = x; then
15012     GCOV=":"
15013   else
15014     case $cross_compiling:$ac_tool_warned in
15015 yes:)
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15018 ac_tool_warned=yes ;;
15019 esac
15020     GCOV=$ac_ct_GCOV
15021   fi
15022 else
15023   GCOV="$ac_cv_prog_GCOV"
15024 fi
15025
15026                 if test "X$GCOV" = "X:"; then :
15027   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
15028 fi
15029
15030
15031                                 if  test "$GCC" = "no" ; then :
15032
15033                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
15034
15035 fi
15036
15037                 # List of supported lcov versions.
15038                 lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11 1.12"
15039
15040                 # Extract the first word of "lcov", so it can be a program name with args.
15041 set dummy lcov; ac_word=$2
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15043 $as_echo_n "checking for $ac_word... " >&6; }
15044 if ${ac_cv_prog_LCOV+:} false; then :
15045   $as_echo_n "(cached) " >&6
15046 else
15047   if test -n "$LCOV"; then
15048   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
15049 else
15050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15051 for as_dir in $PATH
15052 do
15053   IFS=$as_save_IFS
15054   test -z "$as_dir" && as_dir=.
15055     for ac_exec_ext in '' $ac_executable_extensions; do
15056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15057     ac_cv_prog_LCOV="lcov"
15058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15059     break 2
15060   fi
15061 done
15062   done
15063 IFS=$as_save_IFS
15064
15065 fi
15066 fi
15067 LCOV=$ac_cv_prog_LCOV
15068 if test -n "$LCOV"; then
15069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
15070 $as_echo "$LCOV" >&6; }
15071 else
15072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15073 $as_echo "no" >&6; }
15074 fi
15075
15076
15077                 # Extract the first word of "genhtml", so it can be a program name with args.
15078 set dummy genhtml; ac_word=$2
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15080 $as_echo_n "checking for $ac_word... " >&6; }
15081 if ${ac_cv_prog_GENHTML+:} false; then :
15082   $as_echo_n "(cached) " >&6
15083 else
15084   if test -n "$GENHTML"; then
15085   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
15086 else
15087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15088 for as_dir in $PATH
15089 do
15090   IFS=$as_save_IFS
15091   test -z "$as_dir" && as_dir=.
15092     for ac_exec_ext in '' $ac_executable_extensions; do
15093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15094     ac_cv_prog_GENHTML="genhtml"
15095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15096     break 2
15097   fi
15098 done
15099   done
15100 IFS=$as_save_IFS
15101
15102 fi
15103 fi
15104 GENHTML=$ac_cv_prog_GENHTML
15105 if test -n "$GENHTML"; then
15106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
15107 $as_echo "$GENHTML" >&6; }
15108 else
15109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15110 $as_echo "no" >&6; }
15111 fi
15112
15113
15114
15115                 if  test "$LCOV" ; then :
15116
15117                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
15118 $as_echo_n "checking for lcov version... " >&6; }
15119 if ${ax_cv_lcov_version+:} false; then :
15120   $as_echo_n "(cached) " >&6
15121 else
15122
15123                                 ax_cv_lcov_version=invalid
15124                                 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
15125                                 for lcov_check_version in $lcov_version_list; do
15126                                         if test "$lcov_version" = "$lcov_check_version"; then
15127                                                 ax_cv_lcov_version="$lcov_check_version (ok)"
15128                                         fi
15129                                 done
15130
15131 fi
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lcov_version" >&5
15133 $as_echo "$ax_cv_lcov_version" >&6; }
15134
15135 else
15136
15137                         lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
15138                         as_fn_error $? "$lcov_msg" "$LINENO" 5
15139
15140 fi
15141
15142                 case $ax_cv_lcov_version in
15143                         ""|invalid)
15144                                 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
15145                                 as_fn_error $? "$lcov_msg" "$LINENO" 5
15146                                 LCOV="exit 0;"
15147                         ;;
15148                 esac
15149
15150                 if  test -z "$GENHTML" ; then :
15151
15152                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
15153
15154 fi
15155
15156                                 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
15157                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
15158                 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
15159                 CODE_COVERAGE_LDFLAGS="-lgcov"
15160
15161
15162
15163
15164
15165
15166 fi
15167
15168 CODE_COVERAGE_RULES='
15169 # Code coverage
15170 #
15171 # Optional:
15172 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
15173 #    Multiple directories may be specified, separated by whitespace.
15174 #    (Default: $(top_builddir))
15175 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
15176 #    by lcov for code coverage. (Default:
15177 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
15178 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
15179 #    reports to be created. (Default:
15180 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
15181 #  - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
15182 #    set to 0 to disable it and leave empty to stay with the default.
15183 #    (Default: empty)
15184 #  - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
15185 #    instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
15186 #  - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
15187 #    instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
15188 #  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
15189 #  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
15190 #    collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
15191 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
15192 #    instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
15193 #  - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
15194 #    lcov instance. (Default: empty)
15195 #  - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
15196 #    instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
15197 #  - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
15198 #    genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
15199 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
15200 #    instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
15201 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
15202 #
15203 # The generated report will be titled using the $(PACKAGE_NAME) and
15204 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
15205 # use the git-version-gen script, available online.
15206
15207 # Optional variables
15208 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
15209 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
15210 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
15211 CODE_COVERAGE_BRANCH_COVERAGE ?=
15212 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
15213 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
15214 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
15215 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
15216 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
15217 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
15218 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
15219 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
15220 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
15221 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
15222 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
15223 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULTS)
15224 CODE_COVERAGE_IGNORE_PATTERN ?=
15225
15226 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
15227 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
15228 code_coverage_v_lcov_cap_0 = @echo "  LCOV   --capture"\
15229  $(CODE_COVERAGE_OUTPUT_FILE);
15230 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
15231 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
15232 code_coverage_v_lcov_ign_0 = @echo "  LCOV   --remove /tmp/*"\
15233  $(CODE_COVERAGE_IGNORE_PATTERN);
15234 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
15235 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
15236 code_coverage_v_genhtml_0 = @echo "  GEN   " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
15237 code_coverage_quiet = $(code_coverage_quiet_$(V))
15238 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
15239 code_coverage_quiet_0 = --quiet
15240
15241 # sanitizes the test-name: replaces with underscores: dashes and dots
15242 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
15243
15244 # Use recursive makes in order to ignore errors during check
15245 check-code-coverage:
15246 ifeq ($(CODE_COVERAGE_ENABLED),yes)
15247         -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
15248         $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
15249 else
15250         @echo "Need to reconfigure with --enable-code-coverage"
15251 endif
15252
15253 # Capture code coverage data
15254 code-coverage-capture: code-coverage-capture-hook
15255 ifeq ($(CODE_COVERAGE_ENABLED),yes)
15256         $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
15257         $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
15258         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
15259         $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
15260         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
15261 else
15262         @echo "Need to reconfigure with --enable-code-coverage"
15263 endif
15264
15265 # Hook rule executed before code-coverage-capture, overridable by the user
15266 code-coverage-capture-hook:
15267
15268 ifeq ($(CODE_COVERAGE_ENABLED),yes)
15269 clean: code-coverage-clean
15270 distclean: code-coverage-clean
15271 code-coverage-clean:
15272         -$(LCOV) --directory $(top_builddir) -z
15273         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
15274         -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
15275 endif
15276
15277 GITIGNOREFILES ?=
15278 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
15279
15280 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
15281 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
15282
15283 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
15284 '
15285
15286
15287
15288
15289
15290
15291 # Check whether --with-gssapi was given.
15292 if test "${with_gssapi+set}" = set; then :
15293   withval=$with_gssapi;
15294 fi
15295
15296
15297 if test "$with_gssapi" != "no"; then
15298
15299 # Check whether --with-krb5-config was given.
15300 if test "${with_krb5_config+set}" = set; then :
15301   withval=$with_krb5_config; KRB5_CONFIG="$withval"
15302 else
15303   for ac_prog in krb5-config
15304 do
15305   # Extract the first word of "$ac_prog", so it can be a program name with args.
15306 set dummy $ac_prog; ac_word=$2
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15308 $as_echo_n "checking for $ac_word... " >&6; }
15309 if ${ac_cv_path_KRB5_CONFIG+:} false; then :
15310   $as_echo_n "(cached) " >&6
15311 else
15312   case $KRB5_CONFIG in
15313   [\\/]* | ?:[\\/]*)
15314   ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
15315   ;;
15316   *)
15317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15318 as_dummy="${PATH}:/usr/kerberos/bin"
15319 for as_dir in $as_dummy
15320 do
15321   IFS=$as_save_IFS
15322   test -z "$as_dir" && as_dir=.
15323     for ac_exec_ext in '' $ac_executable_extensions; do
15324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15325     ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15327     break 2
15328   fi
15329 done
15330   done
15331 IFS=$as_save_IFS
15332
15333   ;;
15334 esac
15335 fi
15336 KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
15337 if test -n "$KRB5_CONFIG"; then
15338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
15339 $as_echo "$KRB5_CONFIG" >&6; }
15340 else
15341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15342 $as_echo "no" >&6; }
15343 fi
15344
15345
15346   test -n "$KRB5_CONFIG" && break
15347 done
15348 test -n "$KRB5_CONFIG" || KRB5_CONFIG="no"
15349
15350 fi
15351
15352
15353     if test "$KRB5_CONFIG" != "no"; then
15354         KRB5_LIBS="`${KRB5_CONFIG} --libs gssapi`"
15355         KRB5_CFLAGS="`${KRB5_CONFIG} --cflags gssapi`"
15356
15357
15358         if test "$KRB5_CONFIG" != none; then
15359
15360 $as_echo "#define LIBSOUP_HAVE_GSSAPI 1" >>confdefs.h
15361
15362         fi
15363     else
15364         if test "$with_gssapi" = "yes"; then
15365             as_fn_error $? "GSSAPI support requested but failed to found krb5-config. Try to set KRB5_CONFIG." "$LINENO" 5
15366         fi
15367     fi
15368 fi
15369
15370
15371 # Check whether --enable-more-warnings was given.
15372 if test "${enable_more_warnings+set}" = set; then :
15373   enableval=$enable_more_warnings; set_more_warnings=no
15374 fi
15375
15376
15377 if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
15378         CFLAGS="$CFLAGS \
15379                 -Wall -Wstrict-prototypes -Werror=missing-prototypes \
15380                 -Werror=implicit-function-declaration \
15381                 -Werror=pointer-arith -Werror=init-self -Werror=format=2 \
15382                 -Wno-format-zero-length \
15383                 -Werror=missing-include-dirs -Werror=aggregate-return \
15384                 -Werror=declaration-after-statement"
15385 fi
15386
15387 ##################################################
15388 # Visibility handling
15389 ##################################################
15390
15391 SOUP_HIDDEN_VISIBILITY_CFLAGS=""
15392 case "$host" in
15393     *-*-mingw*)
15394
15395 $as_echo "#define _SOUP_EXTERN __attribute__((visibility(\"default\"))) __declspec(dllexport) extern" >>confdefs.h
15396
15397         SOUP_HIDDEN_VISIBILITY_CFLAGS="-fvisibility=hidden"
15398         ;;
15399     *)
15400                 SAVED_CFLAGS="${CFLAGS}"
15401         CFLAGS="-fvisibility=hidden"
15402         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5
15403 $as_echo_n "checking for -fvisibility=hidden compiler flag... " >&6; }
15404         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15405 /* end confdefs.h.  */
15406
15407 int
15408 main ()
15409 {
15410 return 0
15411   ;
15412   return 0;
15413 }
15414 _ACEOF
15415 if ac_fn_c_try_compile "$LINENO"; then :
15416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15417 $as_echo "yes" >&6; }
15418                        enable_fvisibility_hidden=yes
15419 else
15420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15421 $as_echo "no" >&6; }
15422                        enable_fvisibility_hidden=no
15423 fi
15424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15425         CFLAGS="${SAVED_CFLAGS}"
15426
15427         if test "${enable_fvisibility_hidden}" = "yes"; then :
15428
15429
15430 $as_echo "#define _SOUP_EXTERN __attribute__((visibility(\"default\"))) extern" >>confdefs.h
15431
15432             SOUP_HIDDEN_VISIBILITY_CFLAGS="-fvisibility=hidden"
15433
15434 fi
15435         ;;
15436 esac
15437
15438
15439  if test x$MSVC_BASE_TOOLSET = x; then
15440   MSVC_BASE_NO_TOOLSET_SET_TRUE=
15441   MSVC_BASE_NO_TOOLSET_SET_FALSE='#'
15442 else
15443   MSVC_BASE_NO_TOOLSET_SET_TRUE='#'
15444   MSVC_BASE_NO_TOOLSET_SET_FALSE=
15445 fi
15446
15447  if test x$MSVC_TOOLSET = x; then
15448   MSVC_NO_TOOLSET_SET_TRUE=
15449   MSVC_NO_TOOLSET_SET_FALSE='#'
15450 else
15451   MSVC_NO_TOOLSET_SET_TRUE='#'
15452   MSVC_NO_TOOLSET_SET_FALSE=
15453 fi
15454
15455
15456
15457
15458 ac_config_headers="$ac_config_headers config.h"
15459
15460 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 tests/httpd.conf examples/Makefile docs/Makefile docs/reference/Makefile libsoup/soup-version.h config.h.win32 win32/Makefile win32/vs9/Makefile win32/vs9/soup-version-paths.vsprops win32/vs10/Makefile win32/vs10/soup-version-paths.props win32/vs11/Makefile win32/vs12/Makefile win32/vs14/Makefile win32/vs15/Makefile"
15461
15462 cat >confcache <<\_ACEOF
15463 # This file is a shell script that caches the results of configure
15464 # tests run on this system so they can be shared between configure
15465 # scripts and configure runs, see configure's option --config-cache.
15466 # It is not useful on other systems.  If it contains results you don't
15467 # want to keep, you may remove or edit it.
15468 #
15469 # config.status only pays attention to the cache file if you give it
15470 # the --recheck option to rerun configure.
15471 #
15472 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15473 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15474 # following values.
15475
15476 _ACEOF
15477
15478 # The following way of writing the cache mishandles newlines in values,
15479 # but we know of no workaround that is simple, portable, and efficient.
15480 # So, we kill variables containing newlines.
15481 # Ultrix sh set writes to stderr and can't be redirected directly,
15482 # and sets the high bit in the cache file unless we assign to the vars.
15483 (
15484   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15485     eval ac_val=\$$ac_var
15486     case $ac_val in #(
15487     *${as_nl}*)
15488       case $ac_var in #(
15489       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15490 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15491       esac
15492       case $ac_var in #(
15493       _ | IFS | as_nl) ;; #(
15494       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15495       *) { eval $ac_var=; unset $ac_var;} ;;
15496       esac ;;
15497     esac
15498   done
15499
15500   (set) 2>&1 |
15501     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15502     *${as_nl}ac_space=\ *)
15503       # `set' does not quote correctly, so add quotes: double-quote
15504       # substitution turns \\\\ into \\, and sed turns \\ into \.
15505       sed -n \
15506         "s/'/'\\\\''/g;
15507           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15508       ;; #(
15509     *)
15510       # `set' quotes correctly as required by POSIX, so do not add quotes.
15511       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15512       ;;
15513     esac |
15514     sort
15515 ) |
15516   sed '
15517      /^ac_cv_env_/b end
15518      t clear
15519      :clear
15520      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15521      t end
15522      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15523      :end' >>confcache
15524 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15525   if test -w "$cache_file"; then
15526     if test "x$cache_file" != "x/dev/null"; then
15527       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15528 $as_echo "$as_me: updating cache $cache_file" >&6;}
15529       if test ! -f "$cache_file" || test -h "$cache_file"; then
15530         cat confcache >"$cache_file"
15531       else
15532         case $cache_file in #(
15533         */* | ?:*)
15534           mv -f confcache "$cache_file"$$ &&
15535           mv -f "$cache_file"$$ "$cache_file" ;; #(
15536         *)
15537           mv -f confcache "$cache_file" ;;
15538         esac
15539       fi
15540     fi
15541   else
15542     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15543 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15544   fi
15545 fi
15546 rm -f confcache
15547
15548 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15549 # Let make expand exec_prefix.
15550 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15551
15552 DEFS=-DHAVE_CONFIG_H
15553
15554 ac_libobjs=
15555 ac_ltlibobjs=
15556 U=
15557 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15558   # 1. Remove the extension, and $U if already installed.
15559   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15560   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15561   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15562   #    will be set to the directory where LIBOBJS objects are built.
15563   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15564   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15565 done
15566 LIBOBJS=$ac_libobjs
15567
15568 LTLIBOBJS=$ac_ltlibobjs
15569
15570
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15572 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15573    if test -n "$am_sleep_pid"; then
15574      # Hide warnings about reused PIDs.
15575      wait $am_sleep_pid 2>/dev/null
15576    fi
15577    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15578 $as_echo "done" >&6; }
15579  if test -n "$EXEEXT"; then
15580   am__EXEEXT_TRUE=
15581   am__EXEEXT_FALSE='#'
15582 else
15583   am__EXEEXT_TRUE='#'
15584   am__EXEEXT_FALSE=
15585 fi
15586
15587 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15588   as_fn_error $? "conditional \"AMDEP\" was never defined.
15589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15590 fi
15591 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15592   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15594 fi
15595 if test -z "${ENABLE_INSTALLED_TESTS_TRUE}" && test -z "${ENABLE_INSTALLED_TESTS_FALSE}"; then
15596   as_fn_error $? "conditional \"ENABLE_INSTALLED_TESTS\" was never defined.
15597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15598 fi
15599 if test -z "${ENABLE_ALWAYS_BUILD_TESTS_TRUE}" && test -z "${ENABLE_ALWAYS_BUILD_TESTS_FALSE}"; then
15600   as_fn_error $? "conditional \"ENABLE_ALWAYS_BUILD_TESTS\" was never defined.
15601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15602 fi
15603 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
15604   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
15605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15606 fi
15607 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
15608   as_fn_error $? "conditional \"OS_LINUX\" was never defined.
15609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15610 fi
15611
15612   ac_config_commands="$ac_config_commands po/stamp-it"
15613
15614
15615 if test -z "${BUILD_LIBSOUP_GNOME_TRUE}" && test -z "${BUILD_LIBSOUP_GNOME_FALSE}"; then
15616   as_fn_error $? "conditional \"BUILD_LIBSOUP_GNOME\" was never defined.
15617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15618 fi
15619 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
15620   as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
15621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15622 fi
15623 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
15624   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
15625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15626 fi
15627 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
15628   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
15629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15630 fi
15631 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
15632   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
15633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15634 fi
15635 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
15636   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
15637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15638 fi
15639 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
15640   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
15641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15642 fi
15643 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
15644   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
15645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15646 fi
15647 if test -z "${ENABLE_VAPIGEN_TRUE}" && test -z "${ENABLE_VAPIGEN_FALSE}"; then
15648   as_fn_error $? "conditional \"ENABLE_VAPIGEN\" was never defined.
15649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15650 fi
15651 if test -z "${HAVE_APACHE_TRUE}" && test -z "${HAVE_APACHE_FALSE}"; then
15652   as_fn_error $? "conditional \"HAVE_APACHE\" was never defined.
15653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15654 fi
15655 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
15656   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
15657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15658 fi
15659 if test -z "${MSVC_BASE_NO_TOOLSET_SET_TRUE}" && test -z "${MSVC_BASE_NO_TOOLSET_SET_FALSE}"; then
15660   as_fn_error $? "conditional \"MSVC_BASE_NO_TOOLSET_SET\" was never defined.
15661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15662 fi
15663 if test -z "${MSVC_NO_TOOLSET_SET_TRUE}" && test -z "${MSVC_NO_TOOLSET_SET_FALSE}"; then
15664   as_fn_error $? "conditional \"MSVC_NO_TOOLSET_SET\" was never defined.
15665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15666 fi
15667
15668 : "${CONFIG_STATUS=./config.status}"
15669 ac_write_fail=0
15670 ac_clean_files_save=$ac_clean_files
15671 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15673 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15674 as_write_fail=0
15675 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15676 #! $SHELL
15677 # Generated by $as_me.
15678 # Run this file to recreate the current configuration.
15679 # Compiler output produced by configure, useful for debugging
15680 # configure, is in config.log if it exists.
15681
15682 debug=false
15683 ac_cs_recheck=false
15684 ac_cs_silent=false
15685
15686 SHELL=\${CONFIG_SHELL-$SHELL}
15687 export SHELL
15688 _ASEOF
15689 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15690 ## -------------------- ##
15691 ## M4sh Initialization. ##
15692 ## -------------------- ##
15693
15694 # Be more Bourne compatible
15695 DUALCASE=1; export DUALCASE # for MKS sh
15696 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15697   emulate sh
15698   NULLCMD=:
15699   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15700   # is contrary to our usage.  Disable this feature.
15701   alias -g '${1+"$@"}'='"$@"'
15702   setopt NO_GLOB_SUBST
15703 else
15704   case `(set -o) 2>/dev/null` in #(
15705   *posix*) :
15706     set -o posix ;; #(
15707   *) :
15708      ;;
15709 esac
15710 fi
15711
15712
15713 as_nl='
15714 '
15715 export as_nl
15716 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15717 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15718 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15719 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15720 # Prefer a ksh shell builtin over an external printf program on Solaris,
15721 # but without wasting forks for bash or zsh.
15722 if test -z "$BASH_VERSION$ZSH_VERSION" \
15723     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15724   as_echo='print -r --'
15725   as_echo_n='print -rn --'
15726 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15727   as_echo='printf %s\n'
15728   as_echo_n='printf %s'
15729 else
15730   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15731     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15732     as_echo_n='/usr/ucb/echo -n'
15733   else
15734     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15735     as_echo_n_body='eval
15736       arg=$1;
15737       case $arg in #(
15738       *"$as_nl"*)
15739         expr "X$arg" : "X\\(.*\\)$as_nl";
15740         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15741       esac;
15742       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15743     '
15744     export as_echo_n_body
15745     as_echo_n='sh -c $as_echo_n_body as_echo'
15746   fi
15747   export as_echo_body
15748   as_echo='sh -c $as_echo_body as_echo'
15749 fi
15750
15751 # The user is always right.
15752 if test "${PATH_SEPARATOR+set}" != set; then
15753   PATH_SEPARATOR=:
15754   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15755     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15756       PATH_SEPARATOR=';'
15757   }
15758 fi
15759
15760
15761 # IFS
15762 # We need space, tab and new line, in precisely that order.  Quoting is
15763 # there to prevent editors from complaining about space-tab.
15764 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15765 # splitting by setting IFS to empty value.)
15766 IFS=" ""        $as_nl"
15767
15768 # Find who we are.  Look in the path if we contain no directory separator.
15769 as_myself=
15770 case $0 in #((
15771   *[\\/]* ) as_myself=$0 ;;
15772   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15773 for as_dir in $PATH
15774 do
15775   IFS=$as_save_IFS
15776   test -z "$as_dir" && as_dir=.
15777     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15778   done
15779 IFS=$as_save_IFS
15780
15781      ;;
15782 esac
15783 # We did not find ourselves, most probably we were run as `sh COMMAND'
15784 # in which case we are not to be found in the path.
15785 if test "x$as_myself" = x; then
15786   as_myself=$0
15787 fi
15788 if test ! -f "$as_myself"; then
15789   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15790   exit 1
15791 fi
15792
15793 # Unset variables that we do not need and which cause bugs (e.g. in
15794 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15795 # suppresses any "Segmentation fault" message there.  '((' could
15796 # trigger a bug in pdksh 5.2.14.
15797 for as_var in BASH_ENV ENV MAIL MAILPATH
15798 do eval test x\${$as_var+set} = xset \
15799   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15800 done
15801 PS1='$ '
15802 PS2='> '
15803 PS4='+ '
15804
15805 # NLS nuisances.
15806 LC_ALL=C
15807 export LC_ALL
15808 LANGUAGE=C
15809 export LANGUAGE
15810
15811 # CDPATH.
15812 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15813
15814
15815 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15816 # ----------------------------------------
15817 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15818 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15819 # script with STATUS, using 1 if that was 0.
15820 as_fn_error ()
15821 {
15822   as_status=$1; test $as_status -eq 0 && as_status=1
15823   if test "$4"; then
15824     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15825     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15826   fi
15827   $as_echo "$as_me: error: $2" >&2
15828   as_fn_exit $as_status
15829 } # as_fn_error
15830
15831
15832 # as_fn_set_status STATUS
15833 # -----------------------
15834 # Set $? to STATUS, without forking.
15835 as_fn_set_status ()
15836 {
15837   return $1
15838 } # as_fn_set_status
15839
15840 # as_fn_exit STATUS
15841 # -----------------
15842 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15843 as_fn_exit ()
15844 {
15845   set +e
15846   as_fn_set_status $1
15847   exit $1
15848 } # as_fn_exit
15849
15850 # as_fn_unset VAR
15851 # ---------------
15852 # Portably unset VAR.
15853 as_fn_unset ()
15854 {
15855   { eval $1=; unset $1;}
15856 }
15857 as_unset=as_fn_unset
15858 # as_fn_append VAR VALUE
15859 # ----------------------
15860 # Append the text in VALUE to the end of the definition contained in VAR. Take
15861 # advantage of any shell optimizations that allow amortized linear growth over
15862 # repeated appends, instead of the typical quadratic growth present in naive
15863 # implementations.
15864 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15865   eval 'as_fn_append ()
15866   {
15867     eval $1+=\$2
15868   }'
15869 else
15870   as_fn_append ()
15871   {
15872     eval $1=\$$1\$2
15873   }
15874 fi # as_fn_append
15875
15876 # as_fn_arith ARG...
15877 # ------------------
15878 # Perform arithmetic evaluation on the ARGs, and store the result in the
15879 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15880 # must be portable across $(()) and expr.
15881 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15882   eval 'as_fn_arith ()
15883   {
15884     as_val=$(( $* ))
15885   }'
15886 else
15887   as_fn_arith ()
15888   {
15889     as_val=`expr "$@" || test $? -eq 1`
15890   }
15891 fi # as_fn_arith
15892
15893
15894 if expr a : '\(a\)' >/dev/null 2>&1 &&
15895    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15896   as_expr=expr
15897 else
15898   as_expr=false
15899 fi
15900
15901 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15902   as_basename=basename
15903 else
15904   as_basename=false
15905 fi
15906
15907 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15908   as_dirname=dirname
15909 else
15910   as_dirname=false
15911 fi
15912
15913 as_me=`$as_basename -- "$0" ||
15914 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15915          X"$0" : 'X\(//\)$' \| \
15916          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15917 $as_echo X/"$0" |
15918     sed '/^.*\/\([^/][^/]*\)\/*$/{
15919             s//\1/
15920             q
15921           }
15922           /^X\/\(\/\/\)$/{
15923             s//\1/
15924             q
15925           }
15926           /^X\/\(\/\).*/{
15927             s//\1/
15928             q
15929           }
15930           s/.*/./; q'`
15931
15932 # Avoid depending upon Character Ranges.
15933 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15934 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15935 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15936 as_cr_digits='0123456789'
15937 as_cr_alnum=$as_cr_Letters$as_cr_digits
15938
15939 ECHO_C= ECHO_N= ECHO_T=
15940 case `echo -n x` in #(((((
15941 -n*)
15942   case `echo 'xy\c'` in
15943   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15944   xy)  ECHO_C='\c';;
15945   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15946        ECHO_T=' ';;
15947   esac;;
15948 *)
15949   ECHO_N='-n';;
15950 esac
15951
15952 rm -f conf$$ conf$$.exe conf$$.file
15953 if test -d conf$$.dir; then
15954   rm -f conf$$.dir/conf$$.file
15955 else
15956   rm -f conf$$.dir
15957   mkdir conf$$.dir 2>/dev/null
15958 fi
15959 if (echo >conf$$.file) 2>/dev/null; then
15960   if ln -s conf$$.file conf$$ 2>/dev/null; then
15961     as_ln_s='ln -s'
15962     # ... but there are two gotchas:
15963     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15964     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15965     # In both cases, we have to default to `cp -pR'.
15966     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15967       as_ln_s='cp -pR'
15968   elif ln conf$$.file conf$$ 2>/dev/null; then
15969     as_ln_s=ln
15970   else
15971     as_ln_s='cp -pR'
15972   fi
15973 else
15974   as_ln_s='cp -pR'
15975 fi
15976 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15977 rmdir conf$$.dir 2>/dev/null
15978
15979
15980 # as_fn_mkdir_p
15981 # -------------
15982 # Create "$as_dir" as a directory, including parents if necessary.
15983 as_fn_mkdir_p ()
15984 {
15985
15986   case $as_dir in #(
15987   -*) as_dir=./$as_dir;;
15988   esac
15989   test -d "$as_dir" || eval $as_mkdir_p || {
15990     as_dirs=
15991     while :; do
15992       case $as_dir in #(
15993       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15994       *) as_qdir=$as_dir;;
15995       esac
15996       as_dirs="'$as_qdir' $as_dirs"
15997       as_dir=`$as_dirname -- "$as_dir" ||
15998 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15999          X"$as_dir" : 'X\(//\)[^/]' \| \
16000          X"$as_dir" : 'X\(//\)$' \| \
16001          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16002 $as_echo X"$as_dir" |
16003     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16004             s//\1/
16005             q
16006           }
16007           /^X\(\/\/\)[^/].*/{
16008             s//\1/
16009             q
16010           }
16011           /^X\(\/\/\)$/{
16012             s//\1/
16013             q
16014           }
16015           /^X\(\/\).*/{
16016             s//\1/
16017             q
16018           }
16019           s/.*/./; q'`
16020       test -d "$as_dir" && break
16021     done
16022     test -z "$as_dirs" || eval "mkdir $as_dirs"
16023   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16024
16025
16026 } # as_fn_mkdir_p
16027 if mkdir -p . 2>/dev/null; then
16028   as_mkdir_p='mkdir -p "$as_dir"'
16029 else
16030   test -d ./-p && rmdir ./-p
16031   as_mkdir_p=false
16032 fi
16033
16034
16035 # as_fn_executable_p FILE
16036 # -----------------------
16037 # Test if FILE is an executable regular file.
16038 as_fn_executable_p ()
16039 {
16040   test -f "$1" && test -x "$1"
16041 } # as_fn_executable_p
16042 as_test_x='test -x'
16043 as_executable_p=as_fn_executable_p
16044
16045 # Sed expression to map a string onto a valid CPP name.
16046 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16047
16048 # Sed expression to map a string onto a valid variable name.
16049 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16050
16051
16052 exec 6>&1
16053 ## ----------------------------------- ##
16054 ## Main body of $CONFIG_STATUS script. ##
16055 ## ----------------------------------- ##
16056 _ASEOF
16057 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16058
16059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16060 # Save the log message, to keep $0 and so on meaningful, and to
16061 # report actual input values of CONFIG_FILES etc. instead of their
16062 # values after options handling.
16063 ac_log="
16064 This file was extended by libsoup $as_me 2.62.2, which was
16065 generated by GNU Autoconf 2.69.  Invocation command line was
16066
16067   CONFIG_FILES    = $CONFIG_FILES
16068   CONFIG_HEADERS  = $CONFIG_HEADERS
16069   CONFIG_LINKS    = $CONFIG_LINKS
16070   CONFIG_COMMANDS = $CONFIG_COMMANDS
16071   $ $0 $@
16072
16073 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16074 "
16075
16076 _ACEOF
16077
16078 case $ac_config_files in *"
16079 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16080 esac
16081
16082 case $ac_config_headers in *"
16083 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16084 esac
16085
16086
16087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16088 # Files that config.status was made for.
16089 config_files="$ac_config_files"
16090 config_headers="$ac_config_headers"
16091 config_commands="$ac_config_commands"
16092
16093 _ACEOF
16094
16095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16096 ac_cs_usage="\
16097 \`$as_me' instantiates files and other configuration actions
16098 from templates according to the current configuration.  Unless the files
16099 and actions are specified as TAGs, all are instantiated by default.
16100
16101 Usage: $0 [OPTION]... [TAG]...
16102
16103   -h, --help       print this help, then exit
16104   -V, --version    print version number and configuration settings, then exit
16105       --config     print configuration, then exit
16106   -q, --quiet, --silent
16107                    do not print progress messages
16108   -d, --debug      don't remove temporary files
16109       --recheck    update $as_me by reconfiguring in the same conditions
16110       --file=FILE[:TEMPLATE]
16111                    instantiate the configuration file FILE
16112       --header=FILE[:TEMPLATE]
16113                    instantiate the configuration header FILE
16114
16115 Configuration files:
16116 $config_files
16117
16118 Configuration headers:
16119 $config_headers
16120
16121 Configuration commands:
16122 $config_commands
16123
16124 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libsoup>."
16125
16126 _ACEOF
16127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16128 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16129 ac_cs_version="\\
16130 libsoup config.status 2.62.2
16131 configured by $0, generated by GNU Autoconf 2.69,
16132   with options \\"\$ac_cs_config\\"
16133
16134 Copyright (C) 2012 Free Software Foundation, Inc.
16135 This config.status script is free software; the Free Software Foundation
16136 gives unlimited permission to copy, distribute and modify it."
16137
16138 ac_pwd='$ac_pwd'
16139 srcdir='$srcdir'
16140 INSTALL='$INSTALL'
16141 MKDIR_P='$MKDIR_P'
16142 AWK='$AWK'
16143 test -n "\$AWK" || AWK=awk
16144 _ACEOF
16145
16146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16147 # The default lists apply if the user does not specify any file.
16148 ac_need_defaults=:
16149 while test $# != 0
16150 do
16151   case $1 in
16152   --*=?*)
16153     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16154     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16155     ac_shift=:
16156     ;;
16157   --*=)
16158     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16159     ac_optarg=
16160     ac_shift=:
16161     ;;
16162   *)
16163     ac_option=$1
16164     ac_optarg=$2
16165     ac_shift=shift
16166     ;;
16167   esac
16168
16169   case $ac_option in
16170   # Handling of the options.
16171   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16172     ac_cs_recheck=: ;;
16173   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16174     $as_echo "$ac_cs_version"; exit ;;
16175   --config | --confi | --conf | --con | --co | --c )
16176     $as_echo "$ac_cs_config"; exit ;;
16177   --debug | --debu | --deb | --de | --d | -d )
16178     debug=: ;;
16179   --file | --fil | --fi | --f )
16180     $ac_shift
16181     case $ac_optarg in
16182     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16183     '') as_fn_error $? "missing file argument" ;;
16184     esac
16185     as_fn_append CONFIG_FILES " '$ac_optarg'"
16186     ac_need_defaults=false;;
16187   --header | --heade | --head | --hea )
16188     $ac_shift
16189     case $ac_optarg in
16190     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16191     esac
16192     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16193     ac_need_defaults=false;;
16194   --he | --h)
16195     # Conflict between --help and --header
16196     as_fn_error $? "ambiguous option: \`$1'
16197 Try \`$0 --help' for more information.";;
16198   --help | --hel | -h )
16199     $as_echo "$ac_cs_usage"; exit ;;
16200   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16201   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16202     ac_cs_silent=: ;;
16203
16204   # This is an error.
16205   -*) as_fn_error $? "unrecognized option: \`$1'
16206 Try \`$0 --help' for more information." ;;
16207
16208   *) as_fn_append ac_config_targets " $1"
16209      ac_need_defaults=false ;;
16210
16211   esac
16212   shift
16213 done
16214
16215 ac_configure_extra_args=
16216
16217 if $ac_cs_silent; then
16218   exec 6>/dev/null
16219   ac_configure_extra_args="$ac_configure_extra_args --silent"
16220 fi
16221
16222 _ACEOF
16223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16224 if \$ac_cs_recheck; then
16225   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16226   shift
16227   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16228   CONFIG_SHELL='$SHELL'
16229   export CONFIG_SHELL
16230   exec "\$@"
16231 fi
16232
16233 _ACEOF
16234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16235 exec 5>>config.log
16236 {
16237   echo
16238   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16239 ## Running $as_me. ##
16240 _ASBOX
16241   $as_echo "$ac_log"
16242 } >&5
16243
16244 _ACEOF
16245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16246 #
16247 # INIT-COMMANDS
16248 #
16249 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16250
16251
16252 # The HP-UX ksh and POSIX shell print the target directory to stdout
16253 # if CDPATH is set.
16254 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16255
16256 sed_quote_subst='$sed_quote_subst'
16257 double_quote_subst='$double_quote_subst'
16258 delay_variable_subst='$delay_variable_subst'
16259 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16260 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16261 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16262 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16263 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16264 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16265 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16266 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16267 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16268 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16269 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16270 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16271 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16272 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16273 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16274 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16275 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16276 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16277 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16278 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16279 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16280 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16281 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16282 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16283 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16284 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16285 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16286 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16287 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16288 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16289 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16290 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16291 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16292 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16293 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16294 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16295 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16296 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16297 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16298 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16299 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16300 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16301 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16302 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16303 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16304 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16305 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16306 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16307 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16308 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16309 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16310 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16311 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16312 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16313 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16314 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16315 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16316 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16317 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16318 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"`'
16319 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16320 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16321 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16322 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16323 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16324 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16325 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16326 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16327 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16328 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16329 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16330 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16331 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16332 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16333 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16334 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16335 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16336 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16337 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16338 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16339 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16340 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16341 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16342 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16343 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16344 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16345 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16346 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16347 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16348 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16349 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16350 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16351 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16352 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16353 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16354 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16355 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16356 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16357 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16358 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16359 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16360 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16361 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16362 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16363 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16364 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16365 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16366 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16367 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16368 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16369 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16370 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16371 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16372 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16373 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16374 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16375 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16376 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16377 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16378 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16379 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16380 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16381 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16382 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16383 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16384 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16385 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16386 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16387 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16388 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16389 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16390 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16391 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16392 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16393 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16394 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16395
16396 LTCC='$LTCC'
16397 LTCFLAGS='$LTCFLAGS'
16398 compiler='$compiler_DEFAULT'
16399
16400 # A function that is used when there is no print builtin or printf.
16401 func_fallback_echo ()
16402 {
16403   eval 'cat <<_LTECHO_EOF
16404 \$1
16405 _LTECHO_EOF'
16406 }
16407
16408 # Quote evaled strings.
16409 for var in AS \
16410 DLLTOOL \
16411 OBJDUMP \
16412 SHELL \
16413 ECHO \
16414 PATH_SEPARATOR \
16415 SED \
16416 GREP \
16417 EGREP \
16418 FGREP \
16419 LD \
16420 NM \
16421 LN_S \
16422 lt_SP2NL \
16423 lt_NL2SP \
16424 reload_flag \
16425 deplibs_check_method \
16426 file_magic_cmd \
16427 file_magic_glob \
16428 want_nocaseglob \
16429 sharedlib_from_linklib_cmd \
16430 AR \
16431 AR_FLAGS \
16432 archiver_list_spec \
16433 STRIP \
16434 RANLIB \
16435 CC \
16436 CFLAGS \
16437 compiler \
16438 lt_cv_sys_global_symbol_pipe \
16439 lt_cv_sys_global_symbol_to_cdecl \
16440 lt_cv_sys_global_symbol_to_import \
16441 lt_cv_sys_global_symbol_to_c_name_address \
16442 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16443 lt_cv_nm_interface \
16444 nm_file_list_spec \
16445 lt_cv_truncate_bin \
16446 lt_prog_compiler_no_builtin_flag \
16447 lt_prog_compiler_pic \
16448 lt_prog_compiler_wl \
16449 lt_prog_compiler_static \
16450 lt_cv_prog_compiler_c_o \
16451 need_locks \
16452 MANIFEST_TOOL \
16453 DSYMUTIL \
16454 NMEDIT \
16455 LIPO \
16456 OTOOL \
16457 OTOOL64 \
16458 shrext_cmds \
16459 export_dynamic_flag_spec \
16460 whole_archive_flag_spec \
16461 compiler_needs_object \
16462 with_gnu_ld \
16463 allow_undefined_flag \
16464 no_undefined_flag \
16465 hardcode_libdir_flag_spec \
16466 hardcode_libdir_separator \
16467 exclude_expsyms \
16468 include_expsyms \
16469 file_list_spec \
16470 variables_saved_for_relink \
16471 libname_spec \
16472 library_names_spec \
16473 soname_spec \
16474 install_override_mode \
16475 finish_eval \
16476 old_striplib \
16477 striplib; do
16478     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16479     *[\\\\\\\`\\"\\\$]*)
16480       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16481       ;;
16482     *)
16483       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16484       ;;
16485     esac
16486 done
16487
16488 # Double-quote double-evaled strings.
16489 for var in reload_cmds \
16490 old_postinstall_cmds \
16491 old_postuninstall_cmds \
16492 old_archive_cmds \
16493 extract_expsyms_cmds \
16494 old_archive_from_new_cmds \
16495 old_archive_from_expsyms_cmds \
16496 archive_cmds \
16497 archive_expsym_cmds \
16498 module_cmds \
16499 module_expsym_cmds \
16500 export_symbols_cmds \
16501 prelink_cmds \
16502 postlink_cmds \
16503 postinstall_cmds \
16504 postuninstall_cmds \
16505 finish_cmds \
16506 sys_lib_search_path_spec \
16507 configure_time_dlsearch_path \
16508 configure_time_lt_sys_library_path; do
16509     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16510     *[\\\\\\\`\\"\\\$]*)
16511       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16512       ;;
16513     *)
16514       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16515       ;;
16516     esac
16517 done
16518
16519 ac_aux_dir='$ac_aux_dir'
16520
16521 # See if we are running on zsh, and set the options that allow our
16522 # commands through without removal of \ escapes INIT.
16523 if test -n "\${ZSH_VERSION+set}"; then
16524    setopt NO_GLOB_SUBST
16525 fi
16526
16527
16528     PACKAGE='$PACKAGE'
16529     VERSION='$VERSION'
16530     RM='$RM'
16531     ofile='$ofile'
16532
16533
16534
16535
16536 _ACEOF
16537
16538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16539
16540 # Handling of arguments.
16541 for ac_config_target in $ac_config_targets
16542 do
16543   case $ac_config_target in
16544     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16545     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16546     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16547     "libsoup-2.4.pc") CONFIG_FILES="$CONFIG_FILES libsoup-2.4.pc" ;;
16548     "libsoup-gnome-2.4.pc") CONFIG_FILES="$CONFIG_FILES libsoup-gnome-2.4.pc" ;;
16549     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16550     "libsoup-zip") CONFIG_FILES="$CONFIG_FILES libsoup-zip" ;;
16551     "libsoup/Makefile") CONFIG_FILES="$CONFIG_FILES libsoup/Makefile" ;;
16552     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16553     "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
16554     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16555     "tests/httpd.conf") CONFIG_FILES="$CONFIG_FILES tests/httpd.conf" ;;
16556     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
16557     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
16558     "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
16559     "libsoup/soup-version.h") CONFIG_FILES="$CONFIG_FILES libsoup/soup-version.h" ;;
16560     "config.h.win32") CONFIG_FILES="$CONFIG_FILES config.h.win32" ;;
16561     "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
16562     "win32/vs9/Makefile") CONFIG_FILES="$CONFIG_FILES win32/vs9/Makefile" ;;
16563     "win32/vs9/soup-version-paths.vsprops") CONFIG_FILES="$CONFIG_FILES win32/vs9/soup-version-paths.vsprops" ;;
16564     "win32/vs10/Makefile") CONFIG_FILES="$CONFIG_FILES win32/vs10/Makefile" ;;
16565     "win32/vs10/soup-version-paths.props") CONFIG_FILES="$CONFIG_FILES win32/vs10/soup-version-paths.props" ;;
16566     "win32/vs11/Makefile") CONFIG_FILES="$CONFIG_FILES win32/vs11/Makefile" ;;
16567     "win32/vs12/Makefile") CONFIG_FILES="$CONFIG_FILES win32/vs12/Makefile" ;;
16568     "win32/vs14/Makefile") CONFIG_FILES="$CONFIG_FILES win32/vs14/Makefile" ;;
16569     "win32/vs15/Makefile") CONFIG_FILES="$CONFIG_FILES win32/vs15/Makefile" ;;
16570     "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
16571
16572   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16573   esac
16574 done
16575
16576
16577 # If the user did not use the arguments to specify the items to instantiate,
16578 # then the envvar interface is used.  Set only those that are not.
16579 # We use the long form for the default assignment because of an extremely
16580 # bizarre bug on SunOS 4.1.3.
16581 if $ac_need_defaults; then
16582   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16583   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16584   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16585 fi
16586
16587 # Have a temporary directory for convenience.  Make it in the build tree
16588 # simply because there is no reason against having it here, and in addition,
16589 # creating and moving files from /tmp can sometimes cause problems.
16590 # Hook for its removal unless debugging.
16591 # Note that there is a small window in which the directory will not be cleaned:
16592 # after its creation but before its name has been assigned to `$tmp'.
16593 $debug ||
16594 {
16595   tmp= ac_tmp=
16596   trap 'exit_status=$?
16597   : "${ac_tmp:=$tmp}"
16598   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16599 ' 0
16600   trap 'as_fn_exit 1' 1 2 13 15
16601 }
16602 # Create a (secure) tmp directory for tmp files.
16603
16604 {
16605   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16606   test -d "$tmp"
16607 }  ||
16608 {
16609   tmp=./conf$$-$RANDOM
16610   (umask 077 && mkdir "$tmp")
16611 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16612 ac_tmp=$tmp
16613
16614 # Set up the scripts for CONFIG_FILES section.
16615 # No need to generate them if there are no CONFIG_FILES.
16616 # This happens for instance with `./config.status config.h'.
16617 if test -n "$CONFIG_FILES"; then
16618
16619
16620 ac_cr=`echo X | tr X '\015'`
16621 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16622 # But we know of no other shell where ac_cr would be empty at this
16623 # point, so we can use a bashism as a fallback.
16624 if test "x$ac_cr" = x; then
16625   eval ac_cr=\$\'\\r\'
16626 fi
16627 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16628 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16629   ac_cs_awk_cr='\\r'
16630 else
16631   ac_cs_awk_cr=$ac_cr
16632 fi
16633
16634 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16635 _ACEOF
16636
16637
16638 {
16639   echo "cat >conf$$subs.awk <<_ACEOF" &&
16640   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16641   echo "_ACEOF"
16642 } >conf$$subs.sh ||
16643   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16644 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16645 ac_delim='%!_!# '
16646 for ac_last_try in false false false false false :; do
16647   . ./conf$$subs.sh ||
16648     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16649
16650   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16651   if test $ac_delim_n = $ac_delim_num; then
16652     break
16653   elif $ac_last_try; then
16654     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16655   else
16656     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16657   fi
16658 done
16659 rm -f conf$$subs.sh
16660
16661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16662 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16663 _ACEOF
16664 sed -n '
16665 h
16666 s/^/S["/; s/!.*/"]=/
16667 p
16668 g
16669 s/^[^!]*!//
16670 :repl
16671 t repl
16672 s/'"$ac_delim"'$//
16673 t delim
16674 :nl
16675 h
16676 s/\(.\{148\}\)..*/\1/
16677 t more1
16678 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16679 p
16680 n
16681 b repl
16682 :more1
16683 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16684 p
16685 g
16686 s/.\{148\}//
16687 t nl
16688 :delim
16689 h
16690 s/\(.\{148\}\)..*/\1/
16691 t more2
16692 s/["\\]/\\&/g; s/^/"/; s/$/"/
16693 p
16694 b
16695 :more2
16696 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16697 p
16698 g
16699 s/.\{148\}//
16700 t delim
16701 ' <conf$$subs.awk | sed '
16702 /^[^""]/{
16703   N
16704   s/\n//
16705 }
16706 ' >>$CONFIG_STATUS || ac_write_fail=1
16707 rm -f conf$$subs.awk
16708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16709 _ACAWK
16710 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16711   for (key in S) S_is_set[key] = 1
16712   FS = "\a"
16713
16714 }
16715 {
16716   line = $ 0
16717   nfields = split(line, field, "@")
16718   substed = 0
16719   len = length(field[1])
16720   for (i = 2; i < nfields; i++) {
16721     key = field[i]
16722     keylen = length(key)
16723     if (S_is_set[key]) {
16724       value = S[key]
16725       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16726       len += length(value) + length(field[++i])
16727       substed = 1
16728     } else
16729       len += 1 + keylen
16730   }
16731
16732   print line
16733 }
16734
16735 _ACAWK
16736 _ACEOF
16737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16738 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16739   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16740 else
16741   cat
16742 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16743   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16744 _ACEOF
16745
16746 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16747 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16748 # trailing colons and then remove the whole line if VPATH becomes empty
16749 # (actually we leave an empty line to preserve line numbers).
16750 if test "x$srcdir" = x.; then
16751   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16752 h
16753 s///
16754 s/^/:/
16755 s/[      ]*$/:/
16756 s/:\$(srcdir):/:/g
16757 s/:\${srcdir}:/:/g
16758 s/:@srcdir@:/:/g
16759 s/^:*//
16760 s/:*$//
16761 x
16762 s/\(=[   ]*\).*/\1/
16763 G
16764 s/\n//
16765 s/^[^=]*=[       ]*$//
16766 }'
16767 fi
16768
16769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16770 fi # test -n "$CONFIG_FILES"
16771
16772 # Set up the scripts for CONFIG_HEADERS section.
16773 # No need to generate them if there are no CONFIG_HEADERS.
16774 # This happens for instance with `./config.status Makefile'.
16775 if test -n "$CONFIG_HEADERS"; then
16776 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16777 BEGIN {
16778 _ACEOF
16779
16780 # Transform confdefs.h into an awk script `defines.awk', embedded as
16781 # here-document in config.status, that substitutes the proper values into
16782 # config.h.in to produce config.h.
16783
16784 # Create a delimiter string that does not exist in confdefs.h, to ease
16785 # handling of long lines.
16786 ac_delim='%!_!# '
16787 for ac_last_try in false false :; do
16788   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16789   if test -z "$ac_tt"; then
16790     break
16791   elif $ac_last_try; then
16792     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16793   else
16794     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16795   fi
16796 done
16797
16798 # For the awk script, D is an array of macro values keyed by name,
16799 # likewise P contains macro parameters if any.  Preserve backslash
16800 # newline sequences.
16801
16802 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16803 sed -n '
16804 s/.\{148\}/&'"$ac_delim"'/g
16805 t rset
16806 :rset
16807 s/^[     ]*#[    ]*define[       ][      ]*/ /
16808 t def
16809 d
16810 :def
16811 s/\\$//
16812 t bsnl
16813 s/["\\]/\\&/g
16814 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16815 D["\1"]=" \3"/p
16816 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16817 d
16818 :bsnl
16819 s/["\\]/\\&/g
16820 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16821 D["\1"]=" \3\\\\\\n"\\/p
16822 t cont
16823 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16824 t cont
16825 d
16826 :cont
16827 n
16828 s/.\{148\}/&'"$ac_delim"'/g
16829 t clear
16830 :clear
16831 s/\\$//
16832 t bsnlc
16833 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16834 d
16835 :bsnlc
16836 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16837 b cont
16838 ' <confdefs.h | sed '
16839 s/'"$ac_delim"'/"\\\
16840 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16841
16842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16843   for (key in D) D_is_set[key] = 1
16844   FS = "\a"
16845 }
16846 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16847   line = \$ 0
16848   split(line, arg, " ")
16849   if (arg[1] == "#") {
16850     defundef = arg[2]
16851     mac1 = arg[3]
16852   } else {
16853     defundef = substr(arg[1], 2)
16854     mac1 = arg[2]
16855   }
16856   split(mac1, mac2, "(") #)
16857   macro = mac2[1]
16858   prefix = substr(line, 1, index(line, defundef) - 1)
16859   if (D_is_set[macro]) {
16860     # Preserve the white space surrounding the "#".
16861     print prefix "define", macro P[macro] D[macro]
16862     next
16863   } else {
16864     # Replace #undef with comments.  This is necessary, for example,
16865     # in the case of _POSIX_SOURCE, which is predefined and required
16866     # on some systems where configure will not decide to define it.
16867     if (defundef == "undef") {
16868       print "/*", prefix defundef, macro, "*/"
16869       next
16870     }
16871   }
16872 }
16873 { print }
16874 _ACAWK
16875 _ACEOF
16876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16877   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16878 fi # test -n "$CONFIG_HEADERS"
16879
16880
16881 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16882 shift
16883 for ac_tag
16884 do
16885   case $ac_tag in
16886   :[FHLC]) ac_mode=$ac_tag; continue;;
16887   esac
16888   case $ac_mode$ac_tag in
16889   :[FHL]*:*);;
16890   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16891   :[FH]-) ac_tag=-:-;;
16892   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16893   esac
16894   ac_save_IFS=$IFS
16895   IFS=:
16896   set x $ac_tag
16897   IFS=$ac_save_IFS
16898   shift
16899   ac_file=$1
16900   shift
16901
16902   case $ac_mode in
16903   :L) ac_source=$1;;
16904   :[FH])
16905     ac_file_inputs=
16906     for ac_f
16907     do
16908       case $ac_f in
16909       -) ac_f="$ac_tmp/stdin";;
16910       *) # Look for the file first in the build tree, then in the source tree
16911          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16912          # because $ac_f cannot contain `:'.
16913          test -f "$ac_f" ||
16914            case $ac_f in
16915            [\\/$]*) false;;
16916            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16917            esac ||
16918            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16919       esac
16920       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16921       as_fn_append ac_file_inputs " '$ac_f'"
16922     done
16923
16924     # Let's still pretend it is `configure' which instantiates (i.e., don't
16925     # use $as_me), people would be surprised to read:
16926     #    /* config.h.  Generated by config.status.  */
16927     configure_input='Generated from '`
16928           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16929         `' by configure.'
16930     if test x"$ac_file" != x-; then
16931       configure_input="$ac_file.  $configure_input"
16932       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16933 $as_echo "$as_me: creating $ac_file" >&6;}
16934     fi
16935     # Neutralize special characters interpreted by sed in replacement strings.
16936     case $configure_input in #(
16937     *\&* | *\|* | *\\* )
16938        ac_sed_conf_input=`$as_echo "$configure_input" |
16939        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16940     *) ac_sed_conf_input=$configure_input;;
16941     esac
16942
16943     case $ac_tag in
16944     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16945       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16946     esac
16947     ;;
16948   esac
16949
16950   ac_dir=`$as_dirname -- "$ac_file" ||
16951 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16952          X"$ac_file" : 'X\(//\)[^/]' \| \
16953          X"$ac_file" : 'X\(//\)$' \| \
16954          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16955 $as_echo X"$ac_file" |
16956     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16957             s//\1/
16958             q
16959           }
16960           /^X\(\/\/\)[^/].*/{
16961             s//\1/
16962             q
16963           }
16964           /^X\(\/\/\)$/{
16965             s//\1/
16966             q
16967           }
16968           /^X\(\/\).*/{
16969             s//\1/
16970             q
16971           }
16972           s/.*/./; q'`
16973   as_dir="$ac_dir"; as_fn_mkdir_p
16974   ac_builddir=.
16975
16976 case "$ac_dir" in
16977 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16978 *)
16979   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16980   # A ".." for each directory in $ac_dir_suffix.
16981   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16982   case $ac_top_builddir_sub in
16983   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16984   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16985   esac ;;
16986 esac
16987 ac_abs_top_builddir=$ac_pwd
16988 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16989 # for backward compatibility:
16990 ac_top_builddir=$ac_top_build_prefix
16991
16992 case $srcdir in
16993   .)  # We are building in place.
16994     ac_srcdir=.
16995     ac_top_srcdir=$ac_top_builddir_sub
16996     ac_abs_top_srcdir=$ac_pwd ;;
16997   [\\/]* | ?:[\\/]* )  # Absolute name.
16998     ac_srcdir=$srcdir$ac_dir_suffix;
16999     ac_top_srcdir=$srcdir
17000     ac_abs_top_srcdir=$srcdir ;;
17001   *) # Relative name.
17002     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17003     ac_top_srcdir=$ac_top_build_prefix$srcdir
17004     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17005 esac
17006 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17007
17008
17009   case $ac_mode in
17010   :F)
17011   #
17012   # CONFIG_FILE
17013   #
17014
17015   case $INSTALL in
17016   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17017   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17018   esac
17019   ac_MKDIR_P=$MKDIR_P
17020   case $MKDIR_P in
17021   [\\/$]* | ?:[\\/]* ) ;;
17022   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17023   esac
17024 _ACEOF
17025
17026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17027 # If the template does not know about datarootdir, expand it.
17028 # FIXME: This hack should be removed a few years after 2.60.
17029 ac_datarootdir_hack=; ac_datarootdir_seen=
17030 ac_sed_dataroot='
17031 /datarootdir/ {
17032   p
17033   q
17034 }
17035 /@datadir@/p
17036 /@docdir@/p
17037 /@infodir@/p
17038 /@localedir@/p
17039 /@mandir@/p'
17040 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17041 *datarootdir*) ac_datarootdir_seen=yes;;
17042 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17043   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17044 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17045 _ACEOF
17046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17047   ac_datarootdir_hack='
17048   s&@datadir@&$datadir&g
17049   s&@docdir@&$docdir&g
17050   s&@infodir@&$infodir&g
17051   s&@localedir@&$localedir&g
17052   s&@mandir@&$mandir&g
17053   s&\\\${datarootdir}&$datarootdir&g' ;;
17054 esac
17055 _ACEOF
17056
17057 # Neutralize VPATH when `$srcdir' = `.'.
17058 # Shell code in configure.ac might set extrasub.
17059 # FIXME: do we really want to maintain this feature?
17060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17061 ac_sed_extra="$ac_vpsub
17062 $extrasub
17063 _ACEOF
17064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17065 :t
17066 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17067 s|@configure_input@|$ac_sed_conf_input|;t t
17068 s&@top_builddir@&$ac_top_builddir_sub&;t t
17069 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17070 s&@srcdir@&$ac_srcdir&;t t
17071 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17072 s&@top_srcdir@&$ac_top_srcdir&;t t
17073 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17074 s&@builddir@&$ac_builddir&;t t
17075 s&@abs_builddir@&$ac_abs_builddir&;t t
17076 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17077 s&@INSTALL@&$ac_INSTALL&;t t
17078 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17079 $ac_datarootdir_hack
17080 "
17081 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17082   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17083
17084 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17085   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17086   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17087       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17088   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17089 which seems to be undefined.  Please make sure it is defined" >&5
17090 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17091 which seems to be undefined.  Please make sure it is defined" >&2;}
17092
17093   rm -f "$ac_tmp/stdin"
17094   case $ac_file in
17095   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17096   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17097   esac \
17098   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17099  ;;
17100   :H)
17101   #
17102   # CONFIG_HEADER
17103   #
17104   if test x"$ac_file" != x-; then
17105     {
17106       $as_echo "/* $configure_input  */" \
17107       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17108     } >"$ac_tmp/config.h" \
17109       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17110     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17111       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17112 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17113     else
17114       rm -f "$ac_file"
17115       mv "$ac_tmp/config.h" "$ac_file" \
17116         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17117     fi
17118   else
17119     $as_echo "/* $configure_input  */" \
17120       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17121       || as_fn_error $? "could not create -" "$LINENO" 5
17122   fi
17123 # Compute "$ac_file"'s index in $config_headers.
17124 _am_arg="$ac_file"
17125 _am_stamp_count=1
17126 for _am_header in $config_headers :; do
17127   case $_am_header in
17128     $_am_arg | $_am_arg:* )
17129       break ;;
17130     * )
17131       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17132   esac
17133 done
17134 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17135 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17136          X"$_am_arg" : 'X\(//\)[^/]' \| \
17137          X"$_am_arg" : 'X\(//\)$' \| \
17138          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17139 $as_echo X"$_am_arg" |
17140     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17141             s//\1/
17142             q
17143           }
17144           /^X\(\/\/\)[^/].*/{
17145             s//\1/
17146             q
17147           }
17148           /^X\(\/\/\)$/{
17149             s//\1/
17150             q
17151           }
17152           /^X\(\/\).*/{
17153             s//\1/
17154             q
17155           }
17156           s/.*/./; q'`/stamp-h$_am_stamp_count
17157  ;;
17158
17159   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17160 $as_echo "$as_me: executing $ac_file commands" >&6;}
17161  ;;
17162   esac
17163
17164
17165   case $ac_file$ac_mode in
17166     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17167   # Older Autoconf quotes --file arguments for eval, but not when files
17168   # are listed without --file.  Let's play safe and only enable the eval
17169   # if we detect the quoting.
17170   case $CONFIG_FILES in
17171   *\'*) eval set x "$CONFIG_FILES" ;;
17172   *)   set x $CONFIG_FILES ;;
17173   esac
17174   shift
17175   for mf
17176   do
17177     # Strip MF so we end up with the name of the file.
17178     mf=`echo "$mf" | sed -e 's/:.*$//'`
17179     # Check whether this is an Automake generated Makefile or not.
17180     # We used to match only the files named 'Makefile.in', but
17181     # some people rename them; so instead we look at the file content.
17182     # Grep'ing the first line is not enough: some people post-process
17183     # each Makefile.in and add a new line on top of each file to say so.
17184     # Grep'ing the whole file is not good either: AIX grep has a line
17185     # limit of 2048, but all sed's we know have understand at least 4000.
17186     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17187       dirpart=`$as_dirname -- "$mf" ||
17188 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17189          X"$mf" : 'X\(//\)[^/]' \| \
17190          X"$mf" : 'X\(//\)$' \| \
17191          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17192 $as_echo X"$mf" |
17193     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17194             s//\1/
17195             q
17196           }
17197           /^X\(\/\/\)[^/].*/{
17198             s//\1/
17199             q
17200           }
17201           /^X\(\/\/\)$/{
17202             s//\1/
17203             q
17204           }
17205           /^X\(\/\).*/{
17206             s//\1/
17207             q
17208           }
17209           s/.*/./; q'`
17210     else
17211       continue
17212     fi
17213     # Extract the definition of DEPDIR, am__include, and am__quote
17214     # from the Makefile without running 'make'.
17215     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17216     test -z "$DEPDIR" && continue
17217     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17218     test -z "$am__include" && continue
17219     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17220     # Find all dependency output files, they are included files with
17221     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17222     # simplest approach to changing $(DEPDIR) to its actual value in the
17223     # expansion.
17224     for file in `sed -n "
17225       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17226          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17227       # Make sure the directory exists.
17228       test -f "$dirpart/$file" && continue
17229       fdir=`$as_dirname -- "$file" ||
17230 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17231          X"$file" : 'X\(//\)[^/]' \| \
17232          X"$file" : 'X\(//\)$' \| \
17233          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17234 $as_echo X"$file" |
17235     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17236             s//\1/
17237             q
17238           }
17239           /^X\(\/\/\)[^/].*/{
17240             s//\1/
17241             q
17242           }
17243           /^X\(\/\/\)$/{
17244             s//\1/
17245             q
17246           }
17247           /^X\(\/\).*/{
17248             s//\1/
17249             q
17250           }
17251           s/.*/./; q'`
17252       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17253       # echo "creating $dirpart/$file"
17254       echo '# dummy' > "$dirpart/$file"
17255     done
17256   done
17257 }
17258  ;;
17259     "libtool":C)
17260
17261     # See if we are running on zsh, and set the options that allow our
17262     # commands through without removal of \ escapes.
17263     if test -n "${ZSH_VERSION+set}"; then
17264       setopt NO_GLOB_SUBST
17265     fi
17266
17267     cfgfile=${ofile}T
17268     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17269     $RM "$cfgfile"
17270
17271     cat <<_LT_EOF >> "$cfgfile"
17272 #! $SHELL
17273 # Generated automatically by $as_me ($PACKAGE) $VERSION
17274 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17275
17276 # Provide generalized library-building support services.
17277 # Written by Gordon Matzigkeit, 1996
17278
17279 # Copyright (C) 2014 Free Software Foundation, Inc.
17280 # This is free software; see the source for copying conditions.  There is NO
17281 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17282
17283 # GNU Libtool is free software; you can redistribute it and/or modify
17284 # it under the terms of the GNU General Public License as published by
17285 # the Free Software Foundation; either version 2 of of the License, or
17286 # (at your option) any later version.
17287 #
17288 # As a special exception to the GNU General Public License, if you
17289 # distribute this file as part of a program or library that is built
17290 # using GNU Libtool, you may include this file under the  same
17291 # distribution terms that you use for the rest of that program.
17292 #
17293 # GNU Libtool is distributed in the hope that it will be useful, but
17294 # WITHOUT ANY WARRANTY; without even the implied warranty of
17295 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17296 # GNU General Public License for more details.
17297 #
17298 # You should have received a copy of the GNU General Public License
17299 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17300
17301
17302 # The names of the tagged configurations supported by this script.
17303 available_tags=''
17304
17305 # Configured defaults for sys_lib_dlsearch_path munging.
17306 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17307
17308 # ### BEGIN LIBTOOL CONFIG
17309
17310 # Which release of libtool.m4 was used?
17311 macro_version=$macro_version
17312 macro_revision=$macro_revision
17313
17314 # Assembler program.
17315 AS=$lt_AS
17316
17317 # DLL creation program.
17318 DLLTOOL=$lt_DLLTOOL
17319
17320 # Object dumper program.
17321 OBJDUMP=$lt_OBJDUMP
17322
17323 # Whether or not to build shared libraries.
17324 build_libtool_libs=$enable_shared
17325
17326 # Whether or not to build static libraries.
17327 build_old_libs=$enable_static
17328
17329 # What type of objects to build.
17330 pic_mode=$pic_mode
17331
17332 # Whether or not to optimize for fast installation.
17333 fast_install=$enable_fast_install
17334
17335 # Shared archive member basename,for filename based shared library versioning on AIX.
17336 shared_archive_member_spec=$shared_archive_member_spec
17337
17338 # Shell to use when invoking shell scripts.
17339 SHELL=$lt_SHELL
17340
17341 # An echo program that protects backslashes.
17342 ECHO=$lt_ECHO
17343
17344 # The PATH separator for the build system.
17345 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17346
17347 # The host system.
17348 host_alias=$host_alias
17349 host=$host
17350 host_os=$host_os
17351
17352 # The build system.
17353 build_alias=$build_alias
17354 build=$build
17355 build_os=$build_os
17356
17357 # A sed program that does not truncate output.
17358 SED=$lt_SED
17359
17360 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17361 Xsed="\$SED -e 1s/^X//"
17362
17363 # A grep program that handles long lines.
17364 GREP=$lt_GREP
17365
17366 # An ERE matcher.
17367 EGREP=$lt_EGREP
17368
17369 # A literal string matcher.
17370 FGREP=$lt_FGREP
17371
17372 # A BSD- or MS-compatible name lister.
17373 NM=$lt_NM
17374
17375 # Whether we need soft or hard links.
17376 LN_S=$lt_LN_S
17377
17378 # What is the maximum length of a command?
17379 max_cmd_len=$max_cmd_len
17380
17381 # Object file suffix (normally "o").
17382 objext=$ac_objext
17383
17384 # Executable file suffix (normally "").
17385 exeext=$exeext
17386
17387 # whether the shell understands "unset".
17388 lt_unset=$lt_unset
17389
17390 # turn spaces into newlines.
17391 SP2NL=$lt_lt_SP2NL
17392
17393 # turn newlines into spaces.
17394 NL2SP=$lt_lt_NL2SP
17395
17396 # convert \$build file names to \$host format.
17397 to_host_file_cmd=$lt_cv_to_host_file_cmd
17398
17399 # convert \$build files to toolchain format.
17400 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17401
17402 # Method to check whether dependent libraries are shared objects.
17403 deplibs_check_method=$lt_deplibs_check_method
17404
17405 # Command to use when deplibs_check_method = "file_magic".
17406 file_magic_cmd=$lt_file_magic_cmd
17407
17408 # How to find potential files when deplibs_check_method = "file_magic".
17409 file_magic_glob=$lt_file_magic_glob
17410
17411 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17412 want_nocaseglob=$lt_want_nocaseglob
17413
17414 # Command to associate shared and link libraries.
17415 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17416
17417 # The archiver.
17418 AR=$lt_AR
17419
17420 # Flags to create an archive.
17421 AR_FLAGS=$lt_AR_FLAGS
17422
17423 # How to feed a file listing to the archiver.
17424 archiver_list_spec=$lt_archiver_list_spec
17425
17426 # A symbol stripping program.
17427 STRIP=$lt_STRIP
17428
17429 # Commands used to install an old-style archive.
17430 RANLIB=$lt_RANLIB
17431 old_postinstall_cmds=$lt_old_postinstall_cmds
17432 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17433
17434 # Whether to use a lock for old archive extraction.
17435 lock_old_archive_extraction=$lock_old_archive_extraction
17436
17437 # A C compiler.
17438 LTCC=$lt_CC
17439
17440 # LTCC compiler flags.
17441 LTCFLAGS=$lt_CFLAGS
17442
17443 # Take the output of nm and produce a listing of raw symbols and C names.
17444 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17445
17446 # Transform the output of nm in a proper C declaration.
17447 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17448
17449 # Transform the output of nm into a list of symbols to manually relocate.
17450 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17451
17452 # Transform the output of nm in a C name address pair.
17453 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17454
17455 # Transform the output of nm in a C name address pair when lib prefix is needed.
17456 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17457
17458 # The name lister interface.
17459 nm_interface=$lt_lt_cv_nm_interface
17460
17461 # Specify filename containing input files for \$NM.
17462 nm_file_list_spec=$lt_nm_file_list_spec
17463
17464 # The root where to search for dependent libraries,and where our libraries should be installed.
17465 lt_sysroot=$lt_sysroot
17466
17467 # Command to truncate a binary pipe.
17468 lt_truncate_bin=$lt_lt_cv_truncate_bin
17469
17470 # The name of the directory that contains temporary libtool files.
17471 objdir=$objdir
17472
17473 # Used to examine libraries when file_magic_cmd begins with "file".
17474 MAGIC_CMD=$MAGIC_CMD
17475
17476 # Must we lock files when doing compilation?
17477 need_locks=$lt_need_locks
17478
17479 # Manifest tool.
17480 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17481
17482 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17483 DSYMUTIL=$lt_DSYMUTIL
17484
17485 # Tool to change global to local symbols on Mac OS X.
17486 NMEDIT=$lt_NMEDIT
17487
17488 # Tool to manipulate fat objects and archives on Mac OS X.
17489 LIPO=$lt_LIPO
17490
17491 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17492 OTOOL=$lt_OTOOL
17493
17494 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17495 OTOOL64=$lt_OTOOL64
17496
17497 # Old archive suffix (normally "a").
17498 libext=$libext
17499
17500 # Shared library suffix (normally ".so").
17501 shrext_cmds=$lt_shrext_cmds
17502
17503 # The commands to extract the exported symbol list from a shared archive.
17504 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17505
17506 # Variables whose values should be saved in libtool wrapper scripts and
17507 # restored at link time.
17508 variables_saved_for_relink=$lt_variables_saved_for_relink
17509
17510 # Do we need the "lib" prefix for modules?
17511 need_lib_prefix=$need_lib_prefix
17512
17513 # Do we need a version for libraries?
17514 need_version=$need_version
17515
17516 # Library versioning type.
17517 version_type=$version_type
17518
17519 # Shared library runtime path variable.
17520 runpath_var=$runpath_var
17521
17522 # Shared library path variable.
17523 shlibpath_var=$shlibpath_var
17524
17525 # Is shlibpath searched before the hard-coded library search path?
17526 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17527
17528 # Format of library name prefix.
17529 libname_spec=$lt_libname_spec
17530
17531 # List of archive names.  First name is the real one, the rest are links.
17532 # The last name is the one that the linker finds with -lNAME
17533 library_names_spec=$lt_library_names_spec
17534
17535 # The coded name of the library, if different from the real name.
17536 soname_spec=$lt_soname_spec
17537
17538 # Permission mode override for installation of shared libraries.
17539 install_override_mode=$lt_install_override_mode
17540
17541 # Command to use after installation of a shared archive.
17542 postinstall_cmds=$lt_postinstall_cmds
17543
17544 # Command to use after uninstallation of a shared archive.
17545 postuninstall_cmds=$lt_postuninstall_cmds
17546
17547 # Commands used to finish a libtool library installation in a directory.
17548 finish_cmds=$lt_finish_cmds
17549
17550 # As "finish_cmds", except a single script fragment to be evaled but
17551 # not shown.
17552 finish_eval=$lt_finish_eval
17553
17554 # Whether we should hardcode library paths into libraries.
17555 hardcode_into_libs=$hardcode_into_libs
17556
17557 # Compile-time system search path for libraries.
17558 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17559
17560 # Detected run-time system search path for libraries.
17561 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17562
17563 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17564 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17565
17566 # Whether dlopen is supported.
17567 dlopen_support=$enable_dlopen
17568
17569 # Whether dlopen of programs is supported.
17570 dlopen_self=$enable_dlopen_self
17571
17572 # Whether dlopen of statically linked programs is supported.
17573 dlopen_self_static=$enable_dlopen_self_static
17574
17575 # Commands to strip libraries.
17576 old_striplib=$lt_old_striplib
17577 striplib=$lt_striplib
17578
17579
17580 # The linker used to build libraries.
17581 LD=$lt_LD
17582
17583 # How to create reloadable object files.
17584 reload_flag=$lt_reload_flag
17585 reload_cmds=$lt_reload_cmds
17586
17587 # Commands used to build an old-style archive.
17588 old_archive_cmds=$lt_old_archive_cmds
17589
17590 # A language specific compiler.
17591 CC=$lt_compiler
17592
17593 # Is the compiler the GNU compiler?
17594 with_gcc=$GCC
17595
17596 # Compiler flag to turn off builtin functions.
17597 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17598
17599 # Additional compiler flags for building library objects.
17600 pic_flag=$lt_lt_prog_compiler_pic
17601
17602 # How to pass a linker flag through the compiler.
17603 wl=$lt_lt_prog_compiler_wl
17604
17605 # Compiler flag to prevent dynamic linking.
17606 link_static_flag=$lt_lt_prog_compiler_static
17607
17608 # Does compiler simultaneously support -c and -o options?
17609 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17610
17611 # Whether or not to add -lc for building shared libraries.
17612 build_libtool_need_lc=$archive_cmds_need_lc
17613
17614 # Whether or not to disallow shared libs when runtime libs are static.
17615 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17616
17617 # Compiler flag to allow reflexive dlopens.
17618 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17619
17620 # Compiler flag to generate shared objects directly from archives.
17621 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17622
17623 # Whether the compiler copes with passing no objects directly.
17624 compiler_needs_object=$lt_compiler_needs_object
17625
17626 # Create an old-style archive from a shared archive.
17627 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17628
17629 # Create a temporary old-style archive to link instead of a shared archive.
17630 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17631
17632 # Commands used to build a shared archive.
17633 archive_cmds=$lt_archive_cmds
17634 archive_expsym_cmds=$lt_archive_expsym_cmds
17635
17636 # Commands used to build a loadable module if different from building
17637 # a shared archive.
17638 module_cmds=$lt_module_cmds
17639 module_expsym_cmds=$lt_module_expsym_cmds
17640
17641 # Whether we are building with GNU ld or not.
17642 with_gnu_ld=$lt_with_gnu_ld
17643
17644 # Flag that allows shared libraries with undefined symbols to be built.
17645 allow_undefined_flag=$lt_allow_undefined_flag
17646
17647 # Flag that enforces no undefined symbols.
17648 no_undefined_flag=$lt_no_undefined_flag
17649
17650 # Flag to hardcode \$libdir into a binary during linking.
17651 # This must work even if \$libdir does not exist
17652 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17653
17654 # Whether we need a single "-rpath" flag with a separated argument.
17655 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17656
17657 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17658 # DIR into the resulting binary.
17659 hardcode_direct=$hardcode_direct
17660
17661 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17662 # DIR into the resulting binary and the resulting library dependency is
17663 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17664 # library is relocated.
17665 hardcode_direct_absolute=$hardcode_direct_absolute
17666
17667 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17668 # into the resulting binary.
17669 hardcode_minus_L=$hardcode_minus_L
17670
17671 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17672 # into the resulting binary.
17673 hardcode_shlibpath_var=$hardcode_shlibpath_var
17674
17675 # Set to "yes" if building a shared library automatically hardcodes DIR
17676 # into the library and all subsequent libraries and executables linked
17677 # against it.
17678 hardcode_automatic=$hardcode_automatic
17679
17680 # Set to yes if linker adds runtime paths of dependent libraries
17681 # to runtime path list.
17682 inherit_rpath=$inherit_rpath
17683
17684 # Whether libtool must link a program against all its dependency libraries.
17685 link_all_deplibs=$link_all_deplibs
17686
17687 # Set to "yes" if exported symbols are required.
17688 always_export_symbols=$always_export_symbols
17689
17690 # The commands to list exported symbols.
17691 export_symbols_cmds=$lt_export_symbols_cmds
17692
17693 # Symbols that should not be listed in the preloaded symbols.
17694 exclude_expsyms=$lt_exclude_expsyms
17695
17696 # Symbols that must always be exported.
17697 include_expsyms=$lt_include_expsyms
17698
17699 # Commands necessary for linking programs (against libraries) with templates.
17700 prelink_cmds=$lt_prelink_cmds
17701
17702 # Commands necessary for finishing linking programs.
17703 postlink_cmds=$lt_postlink_cmds
17704
17705 # Specify filename containing input files.
17706 file_list_spec=$lt_file_list_spec
17707
17708 # How to hardcode a shared library path into an executable.
17709 hardcode_action=$hardcode_action
17710
17711 # ### END LIBTOOL CONFIG
17712
17713 _LT_EOF
17714
17715     cat <<'_LT_EOF' >> "$cfgfile"
17716
17717 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17718
17719 # func_munge_path_list VARIABLE PATH
17720 # -----------------------------------
17721 # VARIABLE is name of variable containing _space_ separated list of
17722 # directories to be munged by the contents of PATH, which is string
17723 # having a format:
17724 # "DIR[:DIR]:"
17725 #       string "DIR[ DIR]" will be prepended to VARIABLE
17726 # ":DIR[:DIR]"
17727 #       string "DIR[ DIR]" will be appended to VARIABLE
17728 # "DIRP[:DIRP]::[DIRA:]DIRA"
17729 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17730 #       "DIRA[ DIRA]" will be appended to VARIABLE
17731 # "DIR[:DIR]"
17732 #       VARIABLE will be replaced by "DIR[ DIR]"
17733 func_munge_path_list ()
17734 {
17735     case x$2 in
17736     x)
17737         ;;
17738     *:)
17739         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17740         ;;
17741     x:*)
17742         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17743         ;;
17744     *::*)
17745         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17746         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17747         ;;
17748     *)
17749         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17750         ;;
17751     esac
17752 }
17753
17754
17755 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
17756 func_cc_basename ()
17757 {
17758     for cc_temp in $*""; do
17759       case $cc_temp in
17760         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17761         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17762         \-*) ;;
17763         *) break;;
17764       esac
17765     done
17766     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17767 }
17768
17769
17770 # ### END FUNCTIONS SHARED WITH CONFIGURE
17771
17772 _LT_EOF
17773
17774   case $host_os in
17775   aix3*)
17776     cat <<\_LT_EOF >> "$cfgfile"
17777 # AIX sometimes has problems with the GCC collect2 program.  For some
17778 # reason, if we set the COLLECT_NAMES environment variable, the problems
17779 # vanish in a puff of smoke.
17780 if test set != "${COLLECT_NAMES+set}"; then
17781   COLLECT_NAMES=
17782   export COLLECT_NAMES
17783 fi
17784 _LT_EOF
17785     ;;
17786   esac
17787
17788
17789 ltmain=$ac_aux_dir/ltmain.sh
17790
17791
17792   # We use sed instead of cat because bash on DJGPP gets confused if
17793   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17794   # text mode, it properly converts lines to CR/LF.  This bash problem
17795   # is reportedly fixed, but why not run on old versions too?
17796   sed '$q' "$ltmain" >> "$cfgfile" \
17797      || (rm -f "$cfgfile"; exit 1)
17798
17799    mv -f "$cfgfile" "$ofile" ||
17800     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17801   chmod +x "$ofile"
17802
17803  ;;
17804     "po/stamp-it":C)
17805     if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
17806        as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
17807     fi
17808     rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
17809     >"po/stamp-it.tmp"
17810     sed '/^#/d
17811          s/^[[].*] *//
17812          /^[    ]*$/d
17813         '"s|^|  $ac_top_srcdir/|" \
17814       "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
17815
17816     sed '/^POTFILES =/,/[^\\]$/ {
17817                 /^POTFILES =/!d
17818                 r po/POTFILES
17819           }
17820          ' "po/Makefile.in" >"po/Makefile"
17821     rm -f "po/Makefile.tmp"
17822     mv "po/stamp-it.tmp" "po/stamp-it"
17823    ;;
17824
17825   esac
17826 done # for ac_tag
17827
17828
17829 as_fn_exit 0
17830 _ACEOF
17831 ac_clean_files=$ac_clean_files_save
17832
17833 test $ac_write_fail = 0 ||
17834   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17835
17836
17837 # configure is writing to config.log, and then calls config.status.
17838 # config.status does its own redirection, appending to config.log.
17839 # Unfortunately, on DOS this fails, as config.log is still kept open
17840 # by configure, so config.status won't be able to write to it; its
17841 # output is simply discarded.  So we exec the FD to /dev/null,
17842 # effectively closing config.log, so it can be properly (re)opened and
17843 # appended to by config.status.  When coming back to configure, we
17844 # need to make the FD available again.
17845 if test "$no_create" != yes; then
17846   ac_cs_success=:
17847   ac_config_status_args=
17848   test "$silent" = yes &&
17849     ac_config_status_args="$ac_config_status_args --quiet"
17850   exec 5>/dev/null
17851   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17852   exec 5>>config.log
17853   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17854   # would make configure fail if this is the last instruction.
17855   $ac_cs_success || as_fn_exit 1
17856 fi
17857 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17858   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17859 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17860 fi
17861