[CVE patch] CVE-2016-3977 in giflib version 5.1.2
[platform/upstream/giflib.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for giflib 5.1.2.
4 #
5 # Report bugs to <esr@thyrsus.com>.
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 esr@thyrsus.com
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='giflib'
592 PACKAGE_TARNAME='giflib'
593 PACKAGE_VERSION='5.1.2'
594 PACKAGE_STRING='giflib 5.1.2'
595 PACKAGE_BUGREPORT='esr@thyrsus.com'
596 PACKAGE_URL=''
597
598 ac_unique_file="lib/dgif_lib.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 SHLIBVERSION
640 BUILD_DOC_FALSE
641 BUILD_DOC_TRUE
642 have_xmlto
643 CPP
644 OTOOL64
645 OTOOL
646 LIPO
647 NMEDIT
648 DSYMUTIL
649 MANIFEST_TOOL
650 RANLIB
651 DLLTOOL
652 OBJDUMP
653 LN_S
654 NM
655 ac_ct_DUMPBIN
656 DUMPBIN
657 LD
658 FGREP
659 EGREP
660 GREP
661 SED
662 host_os
663 host_vendor
664 host_cpu
665 host
666 build_os
667 build_vendor
668 build_cpu
669 build
670 LIBTOOL
671 am__fastdepCC_FALSE
672 am__fastdepCC_TRUE
673 CCDEPMODE
674 am__nodep
675 AMDEPBACKSLASH
676 AMDEP_FALSE
677 AMDEP_TRUE
678 am__quote
679 am__include
680 DEPDIR
681 OBJEXT
682 EXEEXT
683 ac_ct_CC
684 CPPFLAGS
685 LDFLAGS
686 CFLAGS
687 CC
688 ac_ct_AR
689 AR
690 AM_BACKSLASH
691 AM_DEFAULT_VERBOSITY
692 AM_DEFAULT_V
693 AM_V
694 am__untar
695 am__tar
696 AMTAR
697 am__leading_dot
698 SET_MAKE
699 AWK
700 mkdir_p
701 MKDIR_P
702 INSTALL_STRIP_PROGRAM
703 STRIP
704 install_sh
705 MAKEINFO
706 AUTOHEADER
707 AUTOMAKE
708 AUTOCONF
709 ACLOCAL
710 VERSION
711 PACKAGE
712 CYGPATH_W
713 am__isrc
714 INSTALL_DATA
715 INSTALL_SCRIPT
716 INSTALL_PROGRAM
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 enable_silent_rules
759 enable_dependency_tracking
760 enable_shared
761 enable_static
762 with_pic
763 enable_fast_install
764 with_gnu_ld
765 with_sysroot
766 enable_libtool_lock
767 '
768       ac_precious_vars='build_alias
769 host_alias
770 target_alias
771 CC
772 CFLAGS
773 LDFLAGS
774 LIBS
775 CPPFLAGS
776 CPP'
777
778
779 # Initialize some variables set by options.
780 ac_init_help=
781 ac_init_version=false
782 ac_unrecognized_opts=
783 ac_unrecognized_sep=
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
786 cache_file=/dev/null
787 exec_prefix=NONE
788 no_create=
789 no_recursion=
790 prefix=NONE
791 program_prefix=NONE
792 program_suffix=NONE
793 program_transform_name=s,x,x,
794 silent=
795 site=
796 srcdir=
797 verbose=
798 x_includes=NONE
799 x_libraries=NONE
800
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir='${exec_prefix}/bin'
808 sbindir='${exec_prefix}/sbin'
809 libexecdir='${exec_prefix}/libexec'
810 datarootdir='${prefix}/share'
811 datadir='${datarootdir}'
812 sysconfdir='${prefix}/etc'
813 sharedstatedir='${prefix}/com'
814 localstatedir='${prefix}/var'
815 includedir='${prefix}/include'
816 oldincludedir='/usr/include'
817 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818 infodir='${datarootdir}/info'
819 htmldir='${docdir}'
820 dvidir='${docdir}'
821 pdfdir='${docdir}'
822 psdir='${docdir}'
823 libdir='${exec_prefix}/lib'
824 localedir='${datarootdir}/locale'
825 mandir='${datarootdir}/man'
826
827 ac_prev=
828 ac_dashdash=
829 for ac_option
830 do
831   # If the previous option needs an argument, assign it.
832   if test -n "$ac_prev"; then
833     eval $ac_prev=\$ac_option
834     ac_prev=
835     continue
836   fi
837
838   case $ac_option in
839   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840   *=)   ac_optarg= ;;
841   *)    ac_optarg=yes ;;
842   esac
843
844   # Accept the important Cygnus configure options, so we can diagnose typos.
845
846   case $ac_dashdash$ac_option in
847   --)
848     ac_dashdash=yes ;;
849
850   -bindir | --bindir | --bindi | --bind | --bin | --bi)
851     ac_prev=bindir ;;
852   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853     bindir=$ac_optarg ;;
854
855   -build | --build | --buil | --bui | --bu)
856     ac_prev=build_alias ;;
857   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858     build_alias=$ac_optarg ;;
859
860   -cache-file | --cache-file | --cache-fil | --cache-fi \
861   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862     ac_prev=cache_file ;;
863   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865     cache_file=$ac_optarg ;;
866
867   --config-cache | -C)
868     cache_file=config.cache ;;
869
870   -datadir | --datadir | --datadi | --datad)
871     ac_prev=datadir ;;
872   -datadir=* | --datadir=* | --datadi=* | --datad=*)
873     datadir=$ac_optarg ;;
874
875   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876   | --dataroo | --dataro | --datar)
877     ac_prev=datarootdir ;;
878   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880     datarootdir=$ac_optarg ;;
881
882   -disable-* | --disable-*)
883     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884     # Reject names that are not valid shell variable names.
885     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886       as_fn_error $? "invalid feature name: $ac_useropt"
887     ac_useropt_orig=$ac_useropt
888     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889     case $ac_user_opts in
890       *"
891 "enable_$ac_useropt"
892 "*) ;;
893       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894          ac_unrecognized_sep=', ';;
895     esac
896     eval enable_$ac_useropt=no ;;
897
898   -docdir | --docdir | --docdi | --doc | --do)
899     ac_prev=docdir ;;
900   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901     docdir=$ac_optarg ;;
902
903   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904     ac_prev=dvidir ;;
905   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906     dvidir=$ac_optarg ;;
907
908   -enable-* | --enable-*)
909     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910     # Reject names that are not valid shell variable names.
911     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912       as_fn_error $? "invalid feature name: $ac_useropt"
913     ac_useropt_orig=$ac_useropt
914     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915     case $ac_user_opts in
916       *"
917 "enable_$ac_useropt"
918 "*) ;;
919       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920          ac_unrecognized_sep=', ';;
921     esac
922     eval enable_$ac_useropt=\$ac_optarg ;;
923
924   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926   | --exec | --exe | --ex)
927     ac_prev=exec_prefix ;;
928   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930   | --exec=* | --exe=* | --ex=*)
931     exec_prefix=$ac_optarg ;;
932
933   -gas | --gas | --ga | --g)
934     # Obsolete; use --with-gas.
935     with_gas=yes ;;
936
937   -help | --help | --hel | --he | -h)
938     ac_init_help=long ;;
939   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940     ac_init_help=recursive ;;
941   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942     ac_init_help=short ;;
943
944   -host | --host | --hos | --ho)
945     ac_prev=host_alias ;;
946   -host=* | --host=* | --hos=* | --ho=*)
947     host_alias=$ac_optarg ;;
948
949   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950     ac_prev=htmldir ;;
951   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952   | --ht=*)
953     htmldir=$ac_optarg ;;
954
955   -includedir | --includedir | --includedi | --included | --include \
956   | --includ | --inclu | --incl | --inc)
957     ac_prev=includedir ;;
958   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959   | --includ=* | --inclu=* | --incl=* | --inc=*)
960     includedir=$ac_optarg ;;
961
962   -infodir | --infodir | --infodi | --infod | --info | --inf)
963     ac_prev=infodir ;;
964   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965     infodir=$ac_optarg ;;
966
967   -libdir | --libdir | --libdi | --libd)
968     ac_prev=libdir ;;
969   -libdir=* | --libdir=* | --libdi=* | --libd=*)
970     libdir=$ac_optarg ;;
971
972   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973   | --libexe | --libex | --libe)
974     ac_prev=libexecdir ;;
975   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976   | --libexe=* | --libex=* | --libe=*)
977     libexecdir=$ac_optarg ;;
978
979   -localedir | --localedir | --localedi | --localed | --locale)
980     ac_prev=localedir ;;
981   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982     localedir=$ac_optarg ;;
983
984   -localstatedir | --localstatedir | --localstatedi | --localstated \
985   | --localstate | --localstat | --localsta | --localst | --locals)
986     ac_prev=localstatedir ;;
987   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
988   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
989     localstatedir=$ac_optarg ;;
990
991   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992     ac_prev=mandir ;;
993   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994     mandir=$ac_optarg ;;
995
996   -nfp | --nfp | --nf)
997     # Obsolete; use --without-fp.
998     with_fp=no ;;
999
1000   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001   | --no-cr | --no-c | -n)
1002     no_create=yes ;;
1003
1004   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006     no_recursion=yes ;;
1007
1008   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010   | --oldin | --oldi | --old | --ol | --o)
1011     ac_prev=oldincludedir ;;
1012   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015     oldincludedir=$ac_optarg ;;
1016
1017   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018     ac_prev=prefix ;;
1019   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020     prefix=$ac_optarg ;;
1021
1022   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023   | --program-pre | --program-pr | --program-p)
1024     ac_prev=program_prefix ;;
1025   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027     program_prefix=$ac_optarg ;;
1028
1029   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030   | --program-suf | --program-su | --program-s)
1031     ac_prev=program_suffix ;;
1032   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034     program_suffix=$ac_optarg ;;
1035
1036   -program-transform-name | --program-transform-name \
1037   | --program-transform-nam | --program-transform-na \
1038   | --program-transform-n | --program-transform- \
1039   | --program-transform | --program-transfor \
1040   | --program-transfo | --program-transf \
1041   | --program-trans | --program-tran \
1042   | --progr-tra | --program-tr | --program-t)
1043     ac_prev=program_transform_name ;;
1044   -program-transform-name=* | --program-transform-name=* \
1045   | --program-transform-nam=* | --program-transform-na=* \
1046   | --program-transform-n=* | --program-transform-=* \
1047   | --program-transform=* | --program-transfor=* \
1048   | --program-transfo=* | --program-transf=* \
1049   | --program-trans=* | --program-tran=* \
1050   | --progr-tra=* | --program-tr=* | --program-t=*)
1051     program_transform_name=$ac_optarg ;;
1052
1053   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054     ac_prev=pdfdir ;;
1055   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056     pdfdir=$ac_optarg ;;
1057
1058   -psdir | --psdir | --psdi | --psd | --ps)
1059     ac_prev=psdir ;;
1060   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061     psdir=$ac_optarg ;;
1062
1063   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064   | -silent | --silent | --silen | --sile | --sil)
1065     silent=yes ;;
1066
1067   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068     ac_prev=sbindir ;;
1069   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070   | --sbi=* | --sb=*)
1071     sbindir=$ac_optarg ;;
1072
1073   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075   | --sharedst | --shareds | --shared | --share | --shar \
1076   | --sha | --sh)
1077     ac_prev=sharedstatedir ;;
1078   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081   | --sha=* | --sh=*)
1082     sharedstatedir=$ac_optarg ;;
1083
1084   -site | --site | --sit)
1085     ac_prev=site ;;
1086   -site=* | --site=* | --sit=*)
1087     site=$ac_optarg ;;
1088
1089   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090     ac_prev=srcdir ;;
1091   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092     srcdir=$ac_optarg ;;
1093
1094   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095   | --syscon | --sysco | --sysc | --sys | --sy)
1096     ac_prev=sysconfdir ;;
1097   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099     sysconfdir=$ac_optarg ;;
1100
1101   -target | --target | --targe | --targ | --tar | --ta | --t)
1102     ac_prev=target_alias ;;
1103   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104     target_alias=$ac_optarg ;;
1105
1106   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107     verbose=yes ;;
1108
1109   -version | --version | --versio | --versi | --vers | -V)
1110     ac_init_version=: ;;
1111
1112   -with-* | --with-*)
1113     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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 package 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 "with_$ac_useropt"
1122 "*) ;;
1123       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124          ac_unrecognized_sep=', ';;
1125     esac
1126     eval with_$ac_useropt=\$ac_optarg ;;
1127
1128   -without-* | --without-*)
1129     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130     # Reject names that are not valid shell variable names.
1131     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132       as_fn_error $? "invalid package name: $ac_useropt"
1133     ac_useropt_orig=$ac_useropt
1134     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135     case $ac_user_opts in
1136       *"
1137 "with_$ac_useropt"
1138 "*) ;;
1139       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140          ac_unrecognized_sep=', ';;
1141     esac
1142     eval with_$ac_useropt=no ;;
1143
1144   --x)
1145     # Obsolete; use --with-x.
1146     with_x=yes ;;
1147
1148   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149   | --x-incl | --x-inc | --x-in | --x-i)
1150     ac_prev=x_includes ;;
1151   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153     x_includes=$ac_optarg ;;
1154
1155   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157     ac_prev=x_libraries ;;
1158   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160     x_libraries=$ac_optarg ;;
1161
1162   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1163 Try \`$0 --help' for more information"
1164     ;;
1165
1166   *=*)
1167     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1168     # Reject names that are not valid shell variable names.
1169     case $ac_envvar in #(
1170       '' | [0-9]* | *[!_$as_cr_alnum]* )
1171       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1172     esac
1173     eval $ac_envvar=\$ac_optarg
1174     export $ac_envvar ;;
1175
1176   *)
1177     # FIXME: should be removed in autoconf 3.0.
1178     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1182     ;;
1183
1184   esac
1185 done
1186
1187 if test -n "$ac_prev"; then
1188   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189   as_fn_error $? "missing argument to $ac_option"
1190 fi
1191
1192 if test -n "$ac_unrecognized_opts"; then
1193   case $enable_option_checking in
1194     no) ;;
1195     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1196     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197   esac
1198 fi
1199
1200 # Check all directory arguments for consistency.
1201 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202                 datadir sysconfdir sharedstatedir localstatedir includedir \
1203                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204                 libdir localedir mandir
1205 do
1206   eval ac_val=\$$ac_var
1207   # Remove trailing slashes.
1208   case $ac_val in
1209     */ )
1210       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211       eval $ac_var=\$ac_val;;
1212   esac
1213   # Be sure to have absolute directory names.
1214   case $ac_val in
1215     [\\/$]* | ?:[\\/]* )  continue;;
1216     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217   esac
1218   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1219 done
1220
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1224 build=$build_alias
1225 host=$host_alias
1226 target=$target_alias
1227
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230   if test "x$build_alias" = x; then
1231     cross_compiling=maybe
1232   elif test "x$build_alias" != "x$host_alias"; then
1233     cross_compiling=yes
1234   fi
1235 fi
1236
1237 ac_tool_prefix=
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240 test "$silent" = yes && exec 6>/dev/null
1241
1242
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246   as_fn_error $? "working directory cannot be determined"
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248   as_fn_error $? "pwd does not report name of working directory"
1249
1250
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253   ac_srcdir_defaulted=yes
1254   # Try the directory containing this script, then the parent directory.
1255   ac_confdir=`$as_dirname -- "$as_myself" ||
1256 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257          X"$as_myself" : 'X\(//\)[^/]' \| \
1258          X"$as_myself" : 'X\(//\)$' \| \
1259          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260 $as_echo X"$as_myself" |
1261     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262             s//\1/
1263             q
1264           }
1265           /^X\(\/\/\)[^/].*/{
1266             s//\1/
1267             q
1268           }
1269           /^X\(\/\/\)$/{
1270             s//\1/
1271             q
1272           }
1273           /^X\(\/\).*/{
1274             s//\1/
1275             q
1276           }
1277           s/.*/./; q'`
1278   srcdir=$ac_confdir
1279   if test ! -r "$srcdir/$ac_unique_file"; then
1280     srcdir=..
1281   fi
1282 else
1283   ac_srcdir_defaulted=no
1284 fi
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1288 fi
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1292         pwd)`
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295   srcdir=.
1296 fi
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1300 case $srcdir in
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 esac
1303 for ac_var in $ac_precious_vars; do
1304   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305   eval ac_env_${ac_var}_value=\$${ac_var}
1306   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308 done
1309
1310 #
1311 # Report the --help message.
1312 #
1313 if test "$ac_init_help" = "long"; then
1314   # Omit some internal or obsolete options to make the list less imposing.
1315   # This message is too long to be a string in the A/UX 3.1 sh.
1316   cat <<_ACEOF
1317 \`configure' configures giflib 5.1.2 to adapt to many kinds of systems.
1318
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE.  See below for descriptions of some of the useful variables.
1323
1324 Defaults for the options are specified in brackets.
1325
1326 Configuration:
1327   -h, --help              display this help and exit
1328       --help=short        display options specific to this package
1329       --help=recursive    display the short help of all the included packages
1330   -V, --version           display version information and exit
1331   -q, --quiet, --silent   do not print \`checking ...' messages
1332       --cache-file=FILE   cache test results in FILE [disabled]
1333   -C, --config-cache      alias for \`--cache-file=config.cache'
1334   -n, --no-create         do not create output files
1335       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1336
1337 Installation directories:
1338   --prefix=PREFIX         install architecture-independent files in PREFIX
1339                           [$ac_default_prefix]
1340   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1341                           [PREFIX]
1342
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1347
1348 For better control, use the options below.
1349
1350 Fine tuning of the installation directories:
1351   --bindir=DIR            user executables [EPREFIX/bin]
1352   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1353   --libexecdir=DIR        program executables [EPREFIX/libexec]
1354   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1355   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1356   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1357   --libdir=DIR            object code libraries [EPREFIX/lib]
1358   --includedir=DIR        C header files [PREFIX/include]
1359   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1360   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1361   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1362   --infodir=DIR           info documentation [DATAROOTDIR/info]
1363   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1364   --mandir=DIR            man documentation [DATAROOTDIR/man]
1365   --docdir=DIR            documentation root [DATAROOTDIR/doc/giflib]
1366   --htmldir=DIR           html documentation [DOCDIR]
1367   --dvidir=DIR            dvi documentation [DOCDIR]
1368   --pdfdir=DIR            pdf documentation [DOCDIR]
1369   --psdir=DIR             ps documentation [DOCDIR]
1370 _ACEOF
1371
1372   cat <<\_ACEOF
1373
1374 Program names:
1375   --program-prefix=PREFIX            prepend PREFIX to installed program names
1376   --program-suffix=SUFFIX            append SUFFIX to installed program names
1377   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1378
1379 System types:
1380   --build=BUILD     configure for building on BUILD [guessed]
1381   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1382 _ACEOF
1383 fi
1384
1385 if test -n "$ac_init_help"; then
1386   case $ac_init_help in
1387      short | recursive ) echo "Configuration of giflib 5.1.2:";;
1388    esac
1389   cat <<\_ACEOF
1390
1391 Optional Features:
1392   --disable-option-checking  ignore unrecognized --enable/--with options
1393   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1394   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1395   --enable-silent-rules   less verbose build output (undo: "make V=1")
1396   --disable-silent-rules  verbose build output (undo: "make V=0")
1397   --enable-dependency-tracking
1398                           do not reject slow dependency extractors
1399   --disable-dependency-tracking
1400                           speeds up one-time build
1401   --enable-shared[=PKGS]  build shared libraries [default=yes]
1402   --enable-static[=PKGS]  build static libraries [default=yes]
1403   --enable-fast-install[=PKGS]
1404                           optimize for fast installation [default=yes]
1405   --disable-libtool-lock  avoid locking (might break parallel builds)
1406
1407 Optional Packages:
1408   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1409   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1410   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1411                           both]
1412   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1413   --with-sysroot=DIR Search for dependent libraries within DIR
1414                         (or the compiler's sysroot if not specified).
1415
1416 Some influential environment variables:
1417   CC          C compiler command
1418   CFLAGS      C compiler flags
1419   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1420               nonstandard directory <lib dir>
1421   LIBS        libraries to pass to the linker, e.g. -l<library>
1422   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1423               you have headers in a nonstandard directory <include dir>
1424   CPP         C preprocessor
1425
1426 Use these variables to override the choices made by `configure' or to help
1427 it to find libraries and programs with nonstandard names/locations.
1428
1429 Report bugs to <esr@thyrsus.com>.
1430 _ACEOF
1431 ac_status=$?
1432 fi
1433
1434 if test "$ac_init_help" = "recursive"; then
1435   # If there are subdirs, report their specific --help.
1436   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1437     test -d "$ac_dir" ||
1438       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1439       continue
1440     ac_builddir=.
1441
1442 case "$ac_dir" in
1443 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 *)
1445   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1446   # A ".." for each directory in $ac_dir_suffix.
1447   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1448   case $ac_top_builddir_sub in
1449   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1451   esac ;;
1452 esac
1453 ac_abs_top_builddir=$ac_pwd
1454 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1455 # for backward compatibility:
1456 ac_top_builddir=$ac_top_build_prefix
1457
1458 case $srcdir in
1459   .)  # We are building in place.
1460     ac_srcdir=.
1461     ac_top_srcdir=$ac_top_builddir_sub
1462     ac_abs_top_srcdir=$ac_pwd ;;
1463   [\\/]* | ?:[\\/]* )  # Absolute name.
1464     ac_srcdir=$srcdir$ac_dir_suffix;
1465     ac_top_srcdir=$srcdir
1466     ac_abs_top_srcdir=$srcdir ;;
1467   *) # Relative name.
1468     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1469     ac_top_srcdir=$ac_top_build_prefix$srcdir
1470     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1471 esac
1472 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1473
1474     cd "$ac_dir" || { ac_status=$?; continue; }
1475     # Check for guested configure.
1476     if test -f "$ac_srcdir/configure.gnu"; then
1477       echo &&
1478       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1479     elif test -f "$ac_srcdir/configure"; then
1480       echo &&
1481       $SHELL "$ac_srcdir/configure" --help=recursive
1482     else
1483       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1484     fi || ac_status=$?
1485     cd "$ac_pwd" || { ac_status=$?; break; }
1486   done
1487 fi
1488
1489 test -n "$ac_init_help" && exit $ac_status
1490 if $ac_init_version; then
1491   cat <<\_ACEOF
1492 giflib configure 5.1.2
1493 generated by GNU Autoconf 2.69
1494
1495 Copyright (C) 2012 Free Software Foundation, Inc.
1496 This configure script is free software; the Free Software Foundation
1497 gives unlimited permission to copy, distribute and modify it.
1498 _ACEOF
1499   exit
1500 fi
1501
1502 ## ------------------------ ##
1503 ## Autoconf initialization. ##
1504 ## ------------------------ ##
1505
1506 # ac_fn_c_try_compile LINENO
1507 # --------------------------
1508 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1509 ac_fn_c_try_compile ()
1510 {
1511   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512   rm -f conftest.$ac_objext
1513   if { { ac_try="$ac_compile"
1514 case "(($ac_try" in
1515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516   *) ac_try_echo=$ac_try;;
1517 esac
1518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519 $as_echo "$ac_try_echo"; } >&5
1520   (eval "$ac_compile") 2>conftest.err
1521   ac_status=$?
1522   if test -s conftest.err; then
1523     grep -v '^ *+' conftest.err >conftest.er1
1524     cat conftest.er1 >&5
1525     mv -f conftest.er1 conftest.err
1526   fi
1527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1528   test $ac_status = 0; } && {
1529          test -z "$ac_c_werror_flag" ||
1530          test ! -s conftest.err
1531        } && test -s conftest.$ac_objext; then :
1532   ac_retval=0
1533 else
1534   $as_echo "$as_me: failed program was:" >&5
1535 sed 's/^/| /' conftest.$ac_ext >&5
1536
1537         ac_retval=1
1538 fi
1539   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1540   as_fn_set_status $ac_retval
1541
1542 } # ac_fn_c_try_compile
1543
1544 # ac_fn_c_try_link LINENO
1545 # -----------------------
1546 # Try to link conftest.$ac_ext, and return whether this succeeded.
1547 ac_fn_c_try_link ()
1548 {
1549   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550   rm -f conftest.$ac_objext conftest$ac_exeext
1551   if { { ac_try="$ac_link"
1552 case "(($ac_try" in
1553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554   *) ac_try_echo=$ac_try;;
1555 esac
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558   (eval "$ac_link") 2>conftest.err
1559   ac_status=$?
1560   if test -s conftest.err; then
1561     grep -v '^ *+' conftest.err >conftest.er1
1562     cat conftest.er1 >&5
1563     mv -f conftest.er1 conftest.err
1564   fi
1565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566   test $ac_status = 0; } && {
1567          test -z "$ac_c_werror_flag" ||
1568          test ! -s conftest.err
1569        } && test -s conftest$ac_exeext && {
1570          test "$cross_compiling" = yes ||
1571          test -x conftest$ac_exeext
1572        }; then :
1573   ac_retval=0
1574 else
1575   $as_echo "$as_me: failed program was:" >&5
1576 sed 's/^/| /' conftest.$ac_ext >&5
1577
1578         ac_retval=1
1579 fi
1580   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1581   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1582   # interfere with the next link command; also delete a directory that is
1583   # left behind by Apple's compiler.  We do this before executing the actions.
1584   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1585   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586   as_fn_set_status $ac_retval
1587
1588 } # ac_fn_c_try_link
1589
1590 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1591 # -------------------------------------------------------
1592 # Tests whether HEADER exists and can be compiled using the include files in
1593 # INCLUDES, setting the cache variable VAR accordingly.
1594 ac_fn_c_check_header_compile ()
1595 {
1596   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1598 $as_echo_n "checking for $2... " >&6; }
1599 if eval \${$3+:} false; then :
1600   $as_echo_n "(cached) " >&6
1601 else
1602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603 /* end confdefs.h.  */
1604 $4
1605 #include <$2>
1606 _ACEOF
1607 if ac_fn_c_try_compile "$LINENO"; then :
1608   eval "$3=yes"
1609 else
1610   eval "$3=no"
1611 fi
1612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1613 fi
1614 eval ac_res=\$$3
1615                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1616 $as_echo "$ac_res" >&6; }
1617   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618
1619 } # ac_fn_c_check_header_compile
1620
1621 # ac_fn_c_try_cpp LINENO
1622 # ----------------------
1623 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_cpp ()
1625 {
1626   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627   if { { ac_try="$ac_cpp conftest.$ac_ext"
1628 case "(($ac_try" in
1629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630   *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1635   ac_status=$?
1636   if test -s conftest.err; then
1637     grep -v '^ *+' conftest.err >conftest.er1
1638     cat conftest.er1 >&5
1639     mv -f conftest.er1 conftest.err
1640   fi
1641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642   test $ac_status = 0; } > conftest.i && {
1643          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1644          test ! -s conftest.err
1645        }; then :
1646   ac_retval=0
1647 else
1648   $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1650
1651     ac_retval=1
1652 fi
1653   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654   as_fn_set_status $ac_retval
1655
1656 } # ac_fn_c_try_cpp
1657
1658 # ac_fn_c_try_run LINENO
1659 # ----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1661 # that executables *can* be run.
1662 ac_fn_c_try_run ()
1663 {
1664   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665   if { { ac_try="$ac_link"
1666 case "(($ac_try" in
1667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668   *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672   (eval "$ac_link") 2>&5
1673   ac_status=$?
1674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1676   { { case "(($ac_try" in
1677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678   *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682   (eval "$ac_try") 2>&5
1683   ac_status=$?
1684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685   test $ac_status = 0; }; }; then :
1686   ac_retval=0
1687 else
1688   $as_echo "$as_me: program exited with status $ac_status" >&5
1689        $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692        ac_retval=$ac_status
1693 fi
1694   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696   as_fn_set_status $ac_retval
1697
1698 } # ac_fn_c_try_run
1699
1700 # ac_fn_c_check_func LINENO FUNC VAR
1701 # ----------------------------------
1702 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1703 ac_fn_c_check_func ()
1704 {
1705   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \${$3+:} false; then :
1709   $as_echo_n "(cached) " >&6
1710 else
1711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712 /* end confdefs.h.  */
1713 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1715 #define $2 innocuous_$2
1716
1717 /* System header to define __stub macros and hopefully few prototypes,
1718     which can conflict with char $2 (); below.
1719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1720     <limits.h> exists even on freestanding compilers.  */
1721
1722 #ifdef __STDC__
1723 # include <limits.h>
1724 #else
1725 # include <assert.h>
1726 #endif
1727
1728 #undef $2
1729
1730 /* Override any GCC internal prototype to avoid an error.
1731    Use char because int might match the return type of a GCC
1732    builtin and then its argument prototype would still apply.  */
1733 #ifdef __cplusplus
1734 extern "C"
1735 #endif
1736 char $2 ();
1737 /* The GNU C library defines this for functions which it implements
1738     to always fail with ENOSYS.  Some functions are actually named
1739     something starting with __ and the normal name is an alias.  */
1740 #if defined __stub_$2 || defined __stub___$2
1741 choke me
1742 #endif
1743
1744 int
1745 main ()
1746 {
1747 return $2 ();
1748   ;
1749   return 0;
1750 }
1751 _ACEOF
1752 if ac_fn_c_try_link "$LINENO"; then :
1753   eval "$3=yes"
1754 else
1755   eval "$3=no"
1756 fi
1757 rm -f core conftest.err conftest.$ac_objext \
1758     conftest$ac_exeext conftest.$ac_ext
1759 fi
1760 eval ac_res=\$$3
1761                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764
1765 } # ac_fn_c_check_func
1766
1767 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1768 # -------------------------------------------------------
1769 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1770 # the include files in INCLUDES and setting the cache variable VAR
1771 # accordingly.
1772 ac_fn_c_check_header_mongrel ()
1773 {
1774   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775   if eval \${$3+:} false; then :
1776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777 $as_echo_n "checking for $2... " >&6; }
1778 if eval \${$3+:} false; then :
1779   $as_echo_n "(cached) " >&6
1780 fi
1781 eval ac_res=\$$3
1782                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783 $as_echo "$ac_res" >&6; }
1784 else
1785   # Is the header compilable?
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1787 $as_echo_n "checking $2 usability... " >&6; }
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h.  */
1790 $4
1791 #include <$2>
1792 _ACEOF
1793 if ac_fn_c_try_compile "$LINENO"; then :
1794   ac_header_compiler=yes
1795 else
1796   ac_header_compiler=no
1797 fi
1798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1800 $as_echo "$ac_header_compiler" >&6; }
1801
1802 # Is the header present?
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1804 $as_echo_n "checking $2 presence... " >&6; }
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h.  */
1807 #include <$2>
1808 _ACEOF
1809 if ac_fn_c_try_cpp "$LINENO"; then :
1810   ac_header_preproc=yes
1811 else
1812   ac_header_preproc=no
1813 fi
1814 rm -f conftest.err conftest.i conftest.$ac_ext
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1816 $as_echo "$ac_header_preproc" >&6; }
1817
1818 # So?  What about this header?
1819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1820   yes:no: )
1821     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1822 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1823     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1824 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1825     ;;
1826   no:yes:* )
1827     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1828 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1829     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1830 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1831     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1832 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1833     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1834 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1835     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1836 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1837 ( $as_echo "## ------------------------------ ##
1838 ## Report this to esr@thyrsus.com ##
1839 ## ------------------------------ ##"
1840      ) | sed "s/^/$as_me: WARNING:     /" >&2
1841     ;;
1842 esac
1843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if eval \${$3+:} false; then :
1846   $as_echo_n "(cached) " >&6
1847 else
1848   eval "$3=\$ac_header_compiler"
1849 fi
1850 eval ac_res=\$$3
1851                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852 $as_echo "$ac_res" >&6; }
1853 fi
1854   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855
1856 } # ac_fn_c_check_header_mongrel
1857 cat >config.log <<_ACEOF
1858 This file contains any messages produced by compilers while
1859 running configure, to aid debugging if configure makes a mistake.
1860
1861 It was created by giflib $as_me 5.1.2, which was
1862 generated by GNU Autoconf 2.69.  Invocation command line was
1863
1864   $ $0 $@
1865
1866 _ACEOF
1867 exec 5>>config.log
1868 {
1869 cat <<_ASUNAME
1870 ## --------- ##
1871 ## Platform. ##
1872 ## --------- ##
1873
1874 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1875 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1876 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1877 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1878 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1879
1880 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1881 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1882
1883 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1884 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1885 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1886 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1887 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1888 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1889 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1890
1891 _ASUNAME
1892
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1895 do
1896   IFS=$as_save_IFS
1897   test -z "$as_dir" && as_dir=.
1898     $as_echo "PATH: $as_dir"
1899   done
1900 IFS=$as_save_IFS
1901
1902 } >&5
1903
1904 cat >&5 <<_ACEOF
1905
1906
1907 ## ----------- ##
1908 ## Core tests. ##
1909 ## ----------- ##
1910
1911 _ACEOF
1912
1913
1914 # Keep a trace of the command line.
1915 # Strip out --no-create and --no-recursion so they do not pile up.
1916 # Strip out --silent because we don't want to record it for future runs.
1917 # Also quote any args containing shell meta-characters.
1918 # Make two passes to allow for proper duplicate-argument suppression.
1919 ac_configure_args=
1920 ac_configure_args0=
1921 ac_configure_args1=
1922 ac_must_keep_next=false
1923 for ac_pass in 1 2
1924 do
1925   for ac_arg
1926   do
1927     case $ac_arg in
1928     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1929     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1930     | -silent | --silent | --silen | --sile | --sil)
1931       continue ;;
1932     *\'*)
1933       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1934     esac
1935     case $ac_pass in
1936     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1937     2)
1938       as_fn_append ac_configure_args1 " '$ac_arg'"
1939       if test $ac_must_keep_next = true; then
1940         ac_must_keep_next=false # Got value, back to normal.
1941       else
1942         case $ac_arg in
1943           *=* | --config-cache | -C | -disable-* | --disable-* \
1944           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1945           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1946           | -with-* | --with-* | -without-* | --without-* | --x)
1947             case "$ac_configure_args0 " in
1948               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1949             esac
1950             ;;
1951           -* ) ac_must_keep_next=true ;;
1952         esac
1953       fi
1954       as_fn_append ac_configure_args " '$ac_arg'"
1955       ;;
1956     esac
1957   done
1958 done
1959 { ac_configure_args0=; unset ac_configure_args0;}
1960 { ac_configure_args1=; unset ac_configure_args1;}
1961
1962 # When interrupted or exit'd, cleanup temporary files, and complete
1963 # config.log.  We remove comments because anyway the quotes in there
1964 # would cause problems or look ugly.
1965 # WARNING: Use '\'' to represent an apostrophe within the trap.
1966 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1967 trap 'exit_status=$?
1968   # Save into config.log some information that might help in debugging.
1969   {
1970     echo
1971
1972     $as_echo "## ---------------- ##
1973 ## Cache variables. ##
1974 ## ---------------- ##"
1975     echo
1976     # The following way of writing the cache mishandles newlines in values,
1977 (
1978   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1979     eval ac_val=\$$ac_var
1980     case $ac_val in #(
1981     *${as_nl}*)
1982       case $ac_var in #(
1983       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1984 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1985       esac
1986       case $ac_var in #(
1987       _ | IFS | as_nl) ;; #(
1988       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1989       *) { eval $ac_var=; unset $ac_var;} ;;
1990       esac ;;
1991     esac
1992   done
1993   (set) 2>&1 |
1994     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1995     *${as_nl}ac_space=\ *)
1996       sed -n \
1997         "s/'\''/'\''\\\\'\'''\''/g;
1998           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1999       ;; #(
2000     *)
2001       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2002       ;;
2003     esac |
2004     sort
2005 )
2006     echo
2007
2008     $as_echo "## ----------------- ##
2009 ## Output variables. ##
2010 ## ----------------- ##"
2011     echo
2012     for ac_var in $ac_subst_vars
2013     do
2014       eval ac_val=\$$ac_var
2015       case $ac_val in
2016       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2017       esac
2018       $as_echo "$ac_var='\''$ac_val'\''"
2019     done | sort
2020     echo
2021
2022     if test -n "$ac_subst_files"; then
2023       $as_echo "## ------------------- ##
2024 ## File substitutions. ##
2025 ## ------------------- ##"
2026       echo
2027       for ac_var in $ac_subst_files
2028       do
2029         eval ac_val=\$$ac_var
2030         case $ac_val in
2031         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2032         esac
2033         $as_echo "$ac_var='\''$ac_val'\''"
2034       done | sort
2035       echo
2036     fi
2037
2038     if test -s confdefs.h; then
2039       $as_echo "## ----------- ##
2040 ## confdefs.h. ##
2041 ## ----------- ##"
2042       echo
2043       cat confdefs.h
2044       echo
2045     fi
2046     test "$ac_signal" != 0 &&
2047       $as_echo "$as_me: caught signal $ac_signal"
2048     $as_echo "$as_me: exit $exit_status"
2049   } >&5
2050   rm -f core *.core core.conftest.* &&
2051     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2052     exit $exit_status
2053 ' 0
2054 for ac_signal in 1 2 13 15; do
2055   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2056 done
2057 ac_signal=0
2058
2059 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2060 rm -f -r conftest* confdefs.h
2061
2062 $as_echo "/* confdefs.h */" > confdefs.h
2063
2064 # Predefined preprocessor variables.
2065
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_NAME "$PACKAGE_NAME"
2068 _ACEOF
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2072 _ACEOF
2073
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2076 _ACEOF
2077
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_STRING "$PACKAGE_STRING"
2080 _ACEOF
2081
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2084 _ACEOF
2085
2086 cat >>confdefs.h <<_ACEOF
2087 #define PACKAGE_URL "$PACKAGE_URL"
2088 _ACEOF
2089
2090
2091 # Let the site file select an alternate cache file if it wants to.
2092 # Prefer an explicitly selected file to automatically selected ones.
2093 ac_site_file1=NONE
2094 ac_site_file2=NONE
2095 if test -n "$CONFIG_SITE"; then
2096   # We do not want a PATH search for config.site.
2097   case $CONFIG_SITE in #((
2098     -*)  ac_site_file1=./$CONFIG_SITE;;
2099     */*) ac_site_file1=$CONFIG_SITE;;
2100     *)   ac_site_file1=./$CONFIG_SITE;;
2101   esac
2102 elif test "x$prefix" != xNONE; then
2103   ac_site_file1=$prefix/share/config.site
2104   ac_site_file2=$prefix/etc/config.site
2105 else
2106   ac_site_file1=$ac_default_prefix/share/config.site
2107   ac_site_file2=$ac_default_prefix/etc/config.site
2108 fi
2109 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2110 do
2111   test "x$ac_site_file" = xNONE && continue
2112   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2113     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2114 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2115     sed 's/^/| /' "$ac_site_file" >&5
2116     . "$ac_site_file" \
2117       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2119 as_fn_error $? "failed to load site script $ac_site_file
2120 See \`config.log' for more details" "$LINENO" 5; }
2121   fi
2122 done
2123
2124 if test -r "$cache_file"; then
2125   # Some versions of bash will fail to source /dev/null (special files
2126   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2127   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2128     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2129 $as_echo "$as_me: loading cache $cache_file" >&6;}
2130     case $cache_file in
2131       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2132       *)                      . "./$cache_file";;
2133     esac
2134   fi
2135 else
2136   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2137 $as_echo "$as_me: creating cache $cache_file" >&6;}
2138   >$cache_file
2139 fi
2140
2141 # Check that the precious variables saved in the cache have kept the same
2142 # value.
2143 ac_cache_corrupted=false
2144 for ac_var in $ac_precious_vars; do
2145   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2146   eval ac_new_set=\$ac_env_${ac_var}_set
2147   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2148   eval ac_new_val=\$ac_env_${ac_var}_value
2149   case $ac_old_set,$ac_new_set in
2150     set,)
2151       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2152 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2153       ac_cache_corrupted=: ;;
2154     ,set)
2155       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2156 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2157       ac_cache_corrupted=: ;;
2158     ,);;
2159     *)
2160       if test "x$ac_old_val" != "x$ac_new_val"; then
2161         # differences in whitespace do not lead to failure.
2162         ac_old_val_w=`echo x $ac_old_val`
2163         ac_new_val_w=`echo x $ac_new_val`
2164         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2165           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2166 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2167           ac_cache_corrupted=:
2168         else
2169           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2170 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2171           eval $ac_var=\$ac_old_val
2172         fi
2173         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2174 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2175         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2176 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2177       fi;;
2178   esac
2179   # Pass precious variables to config.status.
2180   if test "$ac_new_set" = set; then
2181     case $ac_new_val in
2182     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2183     *) ac_arg=$ac_var=$ac_new_val ;;
2184     esac
2185     case " $ac_configure_args " in
2186       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2187       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2188     esac
2189   fi
2190 done
2191 if $ac_cache_corrupted; then
2192   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2194   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2195 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2196   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2197 fi
2198 ## -------------------- ##
2199 ## Main body of script. ##
2200 ## -------------------- ##
2201
2202 ac_ext=c
2203 ac_cpp='$CPP $CPPFLAGS'
2204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2207
2208
2209
2210
2211 am__api_version='1.15'
2212
2213 ac_aux_dir=
2214 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2215   if test -f "$ac_dir/install-sh"; then
2216     ac_aux_dir=$ac_dir
2217     ac_install_sh="$ac_aux_dir/install-sh -c"
2218     break
2219   elif test -f "$ac_dir/install.sh"; then
2220     ac_aux_dir=$ac_dir
2221     ac_install_sh="$ac_aux_dir/install.sh -c"
2222     break
2223   elif test -f "$ac_dir/shtool"; then
2224     ac_aux_dir=$ac_dir
2225     ac_install_sh="$ac_aux_dir/shtool install -c"
2226     break
2227   fi
2228 done
2229 if test -z "$ac_aux_dir"; then
2230   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2231 fi
2232
2233 # These three variables are undocumented and unsupported,
2234 # and are intended to be withdrawn in a future Autoconf release.
2235 # They can cause serious problems if a builder's source tree is in a directory
2236 # whose full name contains unusual characters.
2237 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2238 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2239 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2240
2241
2242 # Find a good install program.  We prefer a C program (faster),
2243 # so one script is as good as another.  But avoid the broken or
2244 # incompatible versions:
2245 # SysV /etc/install, /usr/sbin/install
2246 # SunOS /usr/etc/install
2247 # IRIX /sbin/install
2248 # AIX /bin/install
2249 # AmigaOS /C/install, which installs bootblocks on floppy discs
2250 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2251 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2252 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2253 # OS/2's system install, which has a completely different semantic
2254 # ./install, which can be erroneously created by make from ./install.sh.
2255 # Reject install programs that cannot install multiple files.
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2257 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2258 if test -z "$INSTALL"; then
2259 if ${ac_cv_path_install+:} false; then :
2260   $as_echo_n "(cached) " >&6
2261 else
2262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 for as_dir in $PATH
2264 do
2265   IFS=$as_save_IFS
2266   test -z "$as_dir" && as_dir=.
2267     # Account for people who put trailing slashes in PATH elements.
2268 case $as_dir/ in #((
2269   ./ | .// | /[cC]/* | \
2270   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2271   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2272   /usr/ucb/* ) ;;
2273   *)
2274     # OSF1 and SCO ODT 3.0 have their own names for install.
2275     # Don't use installbsd from OSF since it installs stuff as root
2276     # by default.
2277     for ac_prog in ginstall scoinst install; do
2278       for ac_exec_ext in '' $ac_executable_extensions; do
2279         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2280           if test $ac_prog = install &&
2281             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2282             # AIX install.  It has an incompatible calling convention.
2283             :
2284           elif test $ac_prog = install &&
2285             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2286             # program-specific install script used by HP pwplus--don't use.
2287             :
2288           else
2289             rm -rf conftest.one conftest.two conftest.dir
2290             echo one > conftest.one
2291             echo two > conftest.two
2292             mkdir conftest.dir
2293             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2294               test -s conftest.one && test -s conftest.two &&
2295               test -s conftest.dir/conftest.one &&
2296               test -s conftest.dir/conftest.two
2297             then
2298               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2299               break 3
2300             fi
2301           fi
2302         fi
2303       done
2304     done
2305     ;;
2306 esac
2307
2308   done
2309 IFS=$as_save_IFS
2310
2311 rm -rf conftest.one conftest.two conftest.dir
2312
2313 fi
2314   if test "${ac_cv_path_install+set}" = set; then
2315     INSTALL=$ac_cv_path_install
2316   else
2317     # As a last resort, use the slow shell script.  Don't cache a
2318     # value for INSTALL within a source directory, because that will
2319     # break other packages using the cache if that directory is
2320     # removed, or if the value is a relative name.
2321     INSTALL=$ac_install_sh
2322   fi
2323 fi
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2325 $as_echo "$INSTALL" >&6; }
2326
2327 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2328 # It thinks the first close brace ends the variable substitution.
2329 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2330
2331 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2332
2333 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2334
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2336 $as_echo_n "checking whether build environment is sane... " >&6; }
2337 # Reject unsafe characters in $srcdir or the absolute working directory
2338 # name.  Accept space and tab only in the latter.
2339 am_lf='
2340 '
2341 case `pwd` in
2342   *[\\\"\#\$\&\'\`$am_lf]*)
2343     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2344 esac
2345 case $srcdir in
2346   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2347     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2348 esac
2349
2350 # Do 'set' in a subshell so we don't clobber the current shell's
2351 # arguments.  Must try -L first in case configure is actually a
2352 # symlink; some systems play weird games with the mod time of symlinks
2353 # (eg FreeBSD returns the mod time of the symlink's containing
2354 # directory).
2355 if (
2356    am_has_slept=no
2357    for am_try in 1 2; do
2358      echo "timestamp, slept: $am_has_slept" > conftest.file
2359      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2360      if test "$*" = "X"; then
2361         # -L didn't work.
2362         set X `ls -t "$srcdir/configure" conftest.file`
2363      fi
2364      if test "$*" != "X $srcdir/configure conftest.file" \
2365         && test "$*" != "X conftest.file $srcdir/configure"; then
2366
2367         # If neither matched, then we have a broken ls.  This can happen
2368         # if, for instance, CONFIG_SHELL is bash and it inherits a
2369         # broken ls alias from the environment.  This has actually
2370         # happened.  Such a system could not be considered "sane".
2371         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2372   alias in your environment" "$LINENO" 5
2373      fi
2374      if test "$2" = conftest.file || test $am_try -eq 2; then
2375        break
2376      fi
2377      # Just in case.
2378      sleep 1
2379      am_has_slept=yes
2380    done
2381    test "$2" = conftest.file
2382    )
2383 then
2384    # Ok.
2385    :
2386 else
2387    as_fn_error $? "newly created file is older than distributed files!
2388 Check your system clock" "$LINENO" 5
2389 fi
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2391 $as_echo "yes" >&6; }
2392 # If we didn't sleep, we still need to ensure time stamps of config.status and
2393 # generated files are strictly newer.
2394 am_sleep_pid=
2395 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2396   ( sleep 1 ) &
2397   am_sleep_pid=$!
2398 fi
2399
2400 rm -f conftest.file
2401
2402 test "$program_prefix" != NONE &&
2403   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2404 # Use a double $ so make ignores it.
2405 test "$program_suffix" != NONE &&
2406   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2407 # Double any \ or $.
2408 # By default was `s,x,x', remove it if useless.
2409 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2410 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2411
2412 # Expand $ac_aux_dir to an absolute path.
2413 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2414
2415 if test x"${MISSING+set}" != xset; then
2416   case $am_aux_dir in
2417   *\ * | *\     *)
2418     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2419   *)
2420     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2421   esac
2422 fi
2423 # Use eval to expand $SHELL
2424 if eval "$MISSING --is-lightweight"; then
2425   am_missing_run="$MISSING "
2426 else
2427   am_missing_run=
2428   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2429 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2430 fi
2431
2432 if test x"${install_sh+set}" != xset; then
2433   case $am_aux_dir in
2434   *\ * | *\     *)
2435     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2436   *)
2437     install_sh="\${SHELL} $am_aux_dir/install-sh"
2438   esac
2439 fi
2440
2441 # Installed binaries are usually stripped using 'strip' when the user
2442 # run "make install-strip".  However 'strip' might not be the right
2443 # tool to use in cross-compilation environments, therefore Automake
2444 # will honor the 'STRIP' environment variable to overrule this program.
2445 if test "$cross_compiling" != no; then
2446   if test -n "$ac_tool_prefix"; then
2447   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2448 set dummy ${ac_tool_prefix}strip; ac_word=$2
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2450 $as_echo_n "checking for $ac_word... " >&6; }
2451 if ${ac_cv_prog_STRIP+:} false; then :
2452   $as_echo_n "(cached) " >&6
2453 else
2454   if test -n "$STRIP"; then
2455   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2456 else
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 for as_dir in $PATH
2459 do
2460   IFS=$as_save_IFS
2461   test -z "$as_dir" && as_dir=.
2462     for ac_exec_ext in '' $ac_executable_extensions; do
2463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2464     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2466     break 2
2467   fi
2468 done
2469   done
2470 IFS=$as_save_IFS
2471
2472 fi
2473 fi
2474 STRIP=$ac_cv_prog_STRIP
2475 if test -n "$STRIP"; then
2476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2477 $as_echo "$STRIP" >&6; }
2478 else
2479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2480 $as_echo "no" >&6; }
2481 fi
2482
2483
2484 fi
2485 if test -z "$ac_cv_prog_STRIP"; then
2486   ac_ct_STRIP=$STRIP
2487   # Extract the first word of "strip", so it can be a program name with args.
2488 set dummy strip; ac_word=$2
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2490 $as_echo_n "checking for $ac_word... " >&6; }
2491 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2492   $as_echo_n "(cached) " >&6
2493 else
2494   if test -n "$ac_ct_STRIP"; then
2495   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2496 else
2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 for as_dir in $PATH
2499 do
2500   IFS=$as_save_IFS
2501   test -z "$as_dir" && as_dir=.
2502     for ac_exec_ext in '' $ac_executable_extensions; do
2503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2504     ac_cv_prog_ac_ct_STRIP="strip"
2505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2506     break 2
2507   fi
2508 done
2509   done
2510 IFS=$as_save_IFS
2511
2512 fi
2513 fi
2514 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2515 if test -n "$ac_ct_STRIP"; then
2516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2517 $as_echo "$ac_ct_STRIP" >&6; }
2518 else
2519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2520 $as_echo "no" >&6; }
2521 fi
2522
2523   if test "x$ac_ct_STRIP" = x; then
2524     STRIP=":"
2525   else
2526     case $cross_compiling:$ac_tool_warned in
2527 yes:)
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2530 ac_tool_warned=yes ;;
2531 esac
2532     STRIP=$ac_ct_STRIP
2533   fi
2534 else
2535   STRIP="$ac_cv_prog_STRIP"
2536 fi
2537
2538 fi
2539 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2540
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2542 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2543 if test -z "$MKDIR_P"; then
2544   if ${ac_cv_path_mkdir+:} false; then :
2545   $as_echo_n "(cached) " >&6
2546 else
2547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2549 do
2550   IFS=$as_save_IFS
2551   test -z "$as_dir" && as_dir=.
2552     for ac_prog in mkdir gmkdir; do
2553          for ac_exec_ext in '' $ac_executable_extensions; do
2554            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2555            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2556              'mkdir (GNU coreutils) '* | \
2557              'mkdir (coreutils) '* | \
2558              'mkdir (fileutils) '4.1*)
2559                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2560                break 3;;
2561            esac
2562          done
2563        done
2564   done
2565 IFS=$as_save_IFS
2566
2567 fi
2568
2569   test -d ./--version && rmdir ./--version
2570   if test "${ac_cv_path_mkdir+set}" = set; then
2571     MKDIR_P="$ac_cv_path_mkdir -p"
2572   else
2573     # As a last resort, use the slow shell script.  Don't cache a
2574     # value for MKDIR_P within a source directory, because that will
2575     # break other packages using the cache if that directory is
2576     # removed, or if the value is a relative name.
2577     MKDIR_P="$ac_install_sh -d"
2578   fi
2579 fi
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2581 $as_echo "$MKDIR_P" >&6; }
2582
2583 for ac_prog in gawk mawk nawk awk
2584 do
2585   # Extract the first word of "$ac_prog", so it can be a program name with args.
2586 set dummy $ac_prog; ac_word=$2
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2588 $as_echo_n "checking for $ac_word... " >&6; }
2589 if ${ac_cv_prog_AWK+:} false; then :
2590   $as_echo_n "(cached) " >&6
2591 else
2592   if test -n "$AWK"; then
2593   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2594 else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2597 do
2598   IFS=$as_save_IFS
2599   test -z "$as_dir" && as_dir=.
2600     for ac_exec_ext in '' $ac_executable_extensions; do
2601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2602     ac_cv_prog_AWK="$ac_prog"
2603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2604     break 2
2605   fi
2606 done
2607   done
2608 IFS=$as_save_IFS
2609
2610 fi
2611 fi
2612 AWK=$ac_cv_prog_AWK
2613 if test -n "$AWK"; then
2614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2615 $as_echo "$AWK" >&6; }
2616 else
2617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618 $as_echo "no" >&6; }
2619 fi
2620
2621
2622   test -n "$AWK" && break
2623 done
2624
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2626 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2627 set x ${MAKE-make}
2628 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2629 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2630   $as_echo_n "(cached) " >&6
2631 else
2632   cat >conftest.make <<\_ACEOF
2633 SHELL = /bin/sh
2634 all:
2635         @echo '@@@%%%=$(MAKE)=@@@%%%'
2636 _ACEOF
2637 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2638 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2639   *@@@%%%=?*=@@@%%%*)
2640     eval ac_cv_prog_make_${ac_make}_set=yes;;
2641   *)
2642     eval ac_cv_prog_make_${ac_make}_set=no;;
2643 esac
2644 rm -f conftest.make
2645 fi
2646 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2648 $as_echo "yes" >&6; }
2649   SET_MAKE=
2650 else
2651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652 $as_echo "no" >&6; }
2653   SET_MAKE="MAKE=${MAKE-make}"
2654 fi
2655
2656 rm -rf .tst 2>/dev/null
2657 mkdir .tst 2>/dev/null
2658 if test -d .tst; then
2659   am__leading_dot=.
2660 else
2661   am__leading_dot=_
2662 fi
2663 rmdir .tst 2>/dev/null
2664
2665 # Check whether --enable-silent-rules was given.
2666 if test "${enable_silent_rules+set}" = set; then :
2667   enableval=$enable_silent_rules;
2668 fi
2669
2670 case $enable_silent_rules in # (((
2671   yes) AM_DEFAULT_VERBOSITY=0;;
2672    no) AM_DEFAULT_VERBOSITY=1;;
2673     *) AM_DEFAULT_VERBOSITY=1;;
2674 esac
2675 am_make=${MAKE-make}
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2677 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2678 if ${am_cv_make_support_nested_variables+:} false; then :
2679   $as_echo_n "(cached) " >&6
2680 else
2681   if $as_echo 'TRUE=$(BAR$(V))
2682 BAR0=false
2683 BAR1=true
2684 V=1
2685 am__doit:
2686         @$(TRUE)
2687 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2688   am_cv_make_support_nested_variables=yes
2689 else
2690   am_cv_make_support_nested_variables=no
2691 fi
2692 fi
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2694 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2695 if test $am_cv_make_support_nested_variables = yes; then
2696     AM_V='$(V)'
2697   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2698 else
2699   AM_V=$AM_DEFAULT_VERBOSITY
2700   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2701 fi
2702 AM_BACKSLASH='\'
2703
2704 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2705   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2706   # is not polluted with repeated "-I."
2707   am__isrc=' -I$(srcdir)'
2708   # test to see if srcdir already configured
2709   if test -f $srcdir/config.status; then
2710     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2711   fi
2712 fi
2713
2714 # test whether we have cygpath
2715 if test -z "$CYGPATH_W"; then
2716   if (cygpath --version) >/dev/null 2>/dev/null; then
2717     CYGPATH_W='cygpath -w'
2718   else
2719     CYGPATH_W=echo
2720   fi
2721 fi
2722
2723
2724 # Define the identity of the package.
2725  PACKAGE='giflib'
2726  VERSION='5.1.2'
2727
2728
2729 cat >>confdefs.h <<_ACEOF
2730 #define PACKAGE "$PACKAGE"
2731 _ACEOF
2732
2733
2734 cat >>confdefs.h <<_ACEOF
2735 #define VERSION "$VERSION"
2736 _ACEOF
2737
2738 # Some tools Automake needs.
2739
2740 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2741
2742
2743 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2744
2745
2746 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2747
2748
2749 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2750
2751
2752 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2753
2754 # For better backward compatibility.  To be removed once Automake 1.9.x
2755 # dies out for good.  For more background, see:
2756 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2757 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2758 mkdir_p='$(MKDIR_P)'
2759
2760 # We need awk for the "check" target (and possibly the TAP driver).  The
2761 # system "awk" is bad on some platforms.
2762 # Always define AMTAR for backward compatibility.  Yes, it's still used
2763 # in the wild :-(  We should find a proper way to deprecate it ...
2764 AMTAR='$${TAR-tar}'
2765
2766
2767 # We'll loop over all known methods to create a tar archive until one works.
2768 _am_tools='gnutar  pax cpio none'
2769
2770 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2771
2772
2773
2774
2775
2776
2777 # POSIX will say in a future version that running "rm -f" with no argument
2778 # is OK; and we want to be able to make that assumption in our Makefile
2779 # recipes.  So use an aggressive probe to check that the usage we want is
2780 # actually supported "in the wild" to an acceptable degree.
2781 # See automake bug#10828.
2782 # To make any issue more visible, cause the running configure to be aborted
2783 # by default if the 'rm' program in use doesn't match our expectations; the
2784 # user can still override this though.
2785 if rm -f && rm -fr && rm -rf; then : OK; else
2786   cat >&2 <<'END'
2787 Oops!
2788
2789 Your 'rm' program seems unable to run without file operands specified
2790 on the command line, even when the '-f' option is present.  This is contrary
2791 to the behaviour of most rm programs out there, and not conforming with
2792 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2793
2794 Please tell bug-automake@gnu.org about your system, including the value
2795 of your $PATH and any error possibly output before this message.  This
2796 can help us improve future automake versions.
2797
2798 END
2799   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2800     echo 'Configuration will proceed anyway, since you have set the' >&2
2801     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2802     echo >&2
2803   else
2804     cat >&2 <<'END'
2805 Aborting the configuration process, to ensure you take notice of the issue.
2806
2807 You can download and install GNU coreutils to get an 'rm' implementation
2808 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2809
2810 If you want to complete the configuration process using your problematic
2811 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2812 to "yes", and re-run configure.
2813
2814 END
2815     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2816   fi
2817 fi
2818
2819 # Check whether --enable-silent-rules was given.
2820 if test "${enable_silent_rules+set}" = set; then :
2821   enableval=$enable_silent_rules;
2822 fi
2823
2824 case $enable_silent_rules in # (((
2825   yes) AM_DEFAULT_VERBOSITY=0;;
2826    no) AM_DEFAULT_VERBOSITY=1;;
2827     *) AM_DEFAULT_VERBOSITY=0;;
2828 esac
2829 am_make=${MAKE-make}
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2831 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2832 if ${am_cv_make_support_nested_variables+:} false; then :
2833   $as_echo_n "(cached) " >&6
2834 else
2835   if $as_echo 'TRUE=$(BAR$(V))
2836 BAR0=false
2837 BAR1=true
2838 V=1
2839 am__doit:
2840         @$(TRUE)
2841 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2842   am_cv_make_support_nested_variables=yes
2843 else
2844   am_cv_make_support_nested_variables=no
2845 fi
2846 fi
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2848 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2849 if test $am_cv_make_support_nested_variables = yes; then
2850     AM_V='$(V)'
2851   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2852 else
2853   AM_V=$AM_DEFAULT_VERBOSITY
2854   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2855 fi
2856 AM_BACKSLASH='\'
2857
2858
2859 ac_config_headers="$ac_config_headers config.h"
2860
2861
2862 DEPDIR="${am__leading_dot}deps"
2863
2864 ac_config_commands="$ac_config_commands depfiles"
2865
2866
2867 am_make=${MAKE-make}
2868 cat > confinc << 'END'
2869 am__doit:
2870         @echo this is the am__doit target
2871 .PHONY: am__doit
2872 END
2873 # If we don't find an include directive, just comment out the code.
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2875 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2876 am__include="#"
2877 am__quote=
2878 _am_result=none
2879 # First try GNU make style include.
2880 echo "include confinc" > confmf
2881 # Ignore all kinds of additional output from 'make'.
2882 case `$am_make -s -f confmf 2> /dev/null` in #(
2883 *the\ am__doit\ target*)
2884   am__include=include
2885   am__quote=
2886   _am_result=GNU
2887   ;;
2888 esac
2889 # Now try BSD make style include.
2890 if test "$am__include" = "#"; then
2891    echo '.include "confinc"' > confmf
2892    case `$am_make -s -f confmf 2> /dev/null` in #(
2893    *the\ am__doit\ target*)
2894      am__include=.include
2895      am__quote="\""
2896      _am_result=BSD
2897      ;;
2898    esac
2899 fi
2900
2901
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2903 $as_echo "$_am_result" >&6; }
2904 rm -f confinc confmf
2905
2906 # Check whether --enable-dependency-tracking was given.
2907 if test "${enable_dependency_tracking+set}" = set; then :
2908   enableval=$enable_dependency_tracking;
2909 fi
2910
2911 if test "x$enable_dependency_tracking" != xno; then
2912   am_depcomp="$ac_aux_dir/depcomp"
2913   AMDEPBACKSLASH='\'
2914   am__nodep='_no'
2915 fi
2916  if test "x$enable_dependency_tracking" != xno; then
2917   AMDEP_TRUE=
2918   AMDEP_FALSE='#'
2919 else
2920   AMDEP_TRUE='#'
2921   AMDEP_FALSE=
2922 fi
2923
2924
2925 ac_ext=c
2926 ac_cpp='$CPP $CPPFLAGS'
2927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930 if test -n "$ac_tool_prefix"; then
2931   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2932 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if ${ac_cv_prog_CC+:} false; then :
2936   $as_echo_n "(cached) " >&6
2937 else
2938   if test -n "$CC"; then
2939   ac_cv_prog_CC="$CC" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944   IFS=$as_save_IFS
2945   test -z "$as_dir" && as_dir=.
2946     for ac_exec_ext in '' $ac_executable_extensions; do
2947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2948     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950     break 2
2951   fi
2952 done
2953   done
2954 IFS=$as_save_IFS
2955
2956 fi
2957 fi
2958 CC=$ac_cv_prog_CC
2959 if test -n "$CC"; then
2960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2961 $as_echo "$CC" >&6; }
2962 else
2963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2965 fi
2966
2967
2968 fi
2969 if test -z "$ac_cv_prog_CC"; then
2970   ac_ct_CC=$CC
2971   # Extract the first word of "gcc", so it can be a program name with args.
2972 set dummy gcc; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2976   $as_echo_n "(cached) " >&6
2977 else
2978   if test -n "$ac_ct_CC"; then
2979   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2980 else
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2983 do
2984   IFS=$as_save_IFS
2985   test -z "$as_dir" && as_dir=.
2986     for ac_exec_ext in '' $ac_executable_extensions; do
2987   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2988     ac_cv_prog_ac_ct_CC="gcc"
2989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990     break 2
2991   fi
2992 done
2993   done
2994 IFS=$as_save_IFS
2995
2996 fi
2997 fi
2998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2999 if test -n "$ac_ct_CC"; then
3000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3001 $as_echo "$ac_ct_CC" >&6; }
3002 else
3003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3005 fi
3006
3007   if test "x$ac_ct_CC" = x; then
3008     CC=""
3009   else
3010     case $cross_compiling:$ac_tool_warned in
3011 yes:)
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3014 ac_tool_warned=yes ;;
3015 esac
3016     CC=$ac_ct_CC
3017   fi
3018 else
3019   CC="$ac_cv_prog_CC"
3020 fi
3021
3022 if test -z "$CC"; then
3023           if test -n "$ac_tool_prefix"; then
3024     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3025 set dummy ${ac_tool_prefix}cc; ac_word=$2
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if ${ac_cv_prog_CC+:} false; then :
3029   $as_echo_n "(cached) " >&6
3030 else
3031   if test -n "$CC"; then
3032   ac_cv_prog_CC="$CC" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3036 do
3037   IFS=$as_save_IFS
3038   test -z "$as_dir" && as_dir=.
3039     for ac_exec_ext in '' $ac_executable_extensions; do
3040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041     ac_cv_prog_CC="${ac_tool_prefix}cc"
3042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043     break 2
3044   fi
3045 done
3046   done
3047 IFS=$as_save_IFS
3048
3049 fi
3050 fi
3051 CC=$ac_cv_prog_CC
3052 if test -n "$CC"; then
3053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3054 $as_echo "$CC" >&6; }
3055 else
3056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3058 fi
3059
3060
3061   fi
3062 fi
3063 if test -z "$CC"; then
3064   # Extract the first word of "cc", so it can be a program name with args.
3065 set dummy cc; ac_word=$2
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067 $as_echo_n "checking for $ac_word... " >&6; }
3068 if ${ac_cv_prog_CC+:} false; then :
3069   $as_echo_n "(cached) " >&6
3070 else
3071   if test -n "$CC"; then
3072   ac_cv_prog_CC="$CC" # Let the user override the test.
3073 else
3074   ac_prog_rejected=no
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078   IFS=$as_save_IFS
3079   test -z "$as_dir" && as_dir=.
3080     for ac_exec_ext in '' $ac_executable_extensions; do
3081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3083        ac_prog_rejected=yes
3084        continue
3085      fi
3086     ac_cv_prog_CC="cc"
3087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088     break 2
3089   fi
3090 done
3091   done
3092 IFS=$as_save_IFS
3093
3094 if test $ac_prog_rejected = yes; then
3095   # We found a bogon in the path, so make sure we never use it.
3096   set dummy $ac_cv_prog_CC
3097   shift
3098   if test $# != 0; then
3099     # We chose a different compiler from the bogus one.
3100     # However, it has the same basename, so the bogon will be chosen
3101     # first if we set CC to just the basename; use the full file name.
3102     shift
3103     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3104   fi
3105 fi
3106 fi
3107 fi
3108 CC=$ac_cv_prog_CC
3109 if test -n "$CC"; then
3110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111 $as_echo "$CC" >&6; }
3112 else
3113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117
3118 fi
3119 if test -z "$CC"; then
3120   if test -n "$ac_tool_prefix"; then
3121   for ac_prog in cl.exe
3122   do
3123     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if ${ac_cv_prog_CC+:} false; then :
3128   $as_echo_n "(cached) " >&6
3129 else
3130   if test -n "$CC"; then
3131   ac_cv_prog_CC="$CC" # Let the user override the test.
3132 else
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3135 do
3136   IFS=$as_save_IFS
3137   test -z "$as_dir" && as_dir=.
3138     for ac_exec_ext in '' $ac_executable_extensions; do
3139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142     break 2
3143   fi
3144 done
3145   done
3146 IFS=$as_save_IFS
3147
3148 fi
3149 fi
3150 CC=$ac_cv_prog_CC
3151 if test -n "$CC"; then
3152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3153 $as_echo "$CC" >&6; }
3154 else
3155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3157 fi
3158
3159
3160     test -n "$CC" && break
3161   done
3162 fi
3163 if test -z "$CC"; then
3164   ac_ct_CC=$CC
3165   for ac_prog in cl.exe
3166 do
3167   # Extract the first word of "$ac_prog", so it can be a program name with args.
3168 set dummy $ac_prog; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3172   $as_echo_n "(cached) " >&6
3173 else
3174   if test -n "$ac_ct_CC"; then
3175   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3176 else
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3179 do
3180   IFS=$as_save_IFS
3181   test -z "$as_dir" && as_dir=.
3182     for ac_exec_ext in '' $ac_executable_extensions; do
3183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184     ac_cv_prog_ac_ct_CC="$ac_prog"
3185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186     break 2
3187   fi
3188 done
3189   done
3190 IFS=$as_save_IFS
3191
3192 fi
3193 fi
3194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3195 if test -n "$ac_ct_CC"; then
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3197 $as_echo "$ac_ct_CC" >&6; }
3198 else
3199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3201 fi
3202
3203
3204   test -n "$ac_ct_CC" && break
3205 done
3206
3207   if test "x$ac_ct_CC" = x; then
3208     CC=""
3209   else
3210     case $cross_compiling:$ac_tool_warned in
3211 yes:)
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3214 ac_tool_warned=yes ;;
3215 esac
3216     CC=$ac_ct_CC
3217   fi
3218 fi
3219
3220 fi
3221
3222
3223 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225 as_fn_error $? "no acceptable C compiler found in \$PATH
3226 See \`config.log' for more details" "$LINENO" 5; }
3227
3228 # Provide some information about the compiler.
3229 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3230 set X $ac_compile
3231 ac_compiler=$2
3232 for ac_option in --version -v -V -qversion; do
3233   { { ac_try="$ac_compiler $ac_option >&5"
3234 case "(($ac_try" in
3235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236   *) ac_try_echo=$ac_try;;
3237 esac
3238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239 $as_echo "$ac_try_echo"; } >&5
3240   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3241   ac_status=$?
3242   if test -s conftest.err; then
3243     sed '10a\
3244 ... rest of stderr output deleted ...
3245          10q' conftest.err >conftest.er1
3246     cat conftest.er1 >&5
3247   fi
3248   rm -f conftest.er1 conftest.err
3249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250   test $ac_status = 0; }
3251 done
3252
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h.  */
3255
3256 int
3257 main ()
3258 {
3259
3260   ;
3261   return 0;
3262 }
3263 _ACEOF
3264 ac_clean_files_save=$ac_clean_files
3265 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3266 # Try to create an executable without -o first, disregard a.out.
3267 # It will help us diagnose broken compilers, and finding out an intuition
3268 # of exeext.
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3270 $as_echo_n "checking whether the C compiler works... " >&6; }
3271 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3272
3273 # The possible output files:
3274 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3275
3276 ac_rmfiles=
3277 for ac_file in $ac_files
3278 do
3279   case $ac_file in
3280     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3281     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3282   esac
3283 done
3284 rm -f $ac_rmfiles
3285
3286 if { { ac_try="$ac_link_default"
3287 case "(($ac_try" in
3288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289   *) ac_try_echo=$ac_try;;
3290 esac
3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292 $as_echo "$ac_try_echo"; } >&5
3293   (eval "$ac_link_default") 2>&5
3294   ac_status=$?
3295   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296   test $ac_status = 0; }; then :
3297   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3298 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3299 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3300 # so that the user can short-circuit this test for compilers unknown to
3301 # Autoconf.
3302 for ac_file in $ac_files ''
3303 do
3304   test -f "$ac_file" || continue
3305   case $ac_file in
3306     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3307         ;;
3308     [ab].out )
3309         # We found the default executable, but exeext='' is most
3310         # certainly right.
3311         break;;
3312     *.* )
3313         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3314         then :; else
3315            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3316         fi
3317         # We set ac_cv_exeext here because the later test for it is not
3318         # safe: cross compilers may not add the suffix if given an `-o'
3319         # argument, so we may need to know it at that point already.
3320         # Even if this section looks crufty: it has the advantage of
3321         # actually working.
3322         break;;
3323     * )
3324         break;;
3325   esac
3326 done
3327 test "$ac_cv_exeext" = no && ac_cv_exeext=
3328
3329 else
3330   ac_file=''
3331 fi
3332 if test -z "$ac_file"; then :
3333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3335 $as_echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3337
3338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340 as_fn_error 77 "C compiler cannot create executables
3341 See \`config.log' for more details" "$LINENO" 5; }
3342 else
3343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3344 $as_echo "yes" >&6; }
3345 fi
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3347 $as_echo_n "checking for C compiler default output file name... " >&6; }
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3349 $as_echo "$ac_file" >&6; }
3350 ac_exeext=$ac_cv_exeext
3351
3352 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3353 ac_clean_files=$ac_clean_files_save
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3355 $as_echo_n "checking for suffix of executables... " >&6; }
3356 if { { ac_try="$ac_link"
3357 case "(($ac_try" in
3358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359   *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363   (eval "$ac_link") 2>&5
3364   ac_status=$?
3365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366   test $ac_status = 0; }; then :
3367   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3368 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3369 # work properly (i.e., refer to `conftest.exe'), while it won't with
3370 # `rm'.
3371 for ac_file in conftest.exe conftest conftest.*; do
3372   test -f "$ac_file" || continue
3373   case $ac_file in
3374     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3375     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3376           break;;
3377     * ) break;;
3378   esac
3379 done
3380 else
3381   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3383 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3384 See \`config.log' for more details" "$LINENO" 5; }
3385 fi
3386 rm -f conftest conftest$ac_cv_exeext
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3388 $as_echo "$ac_cv_exeext" >&6; }
3389
3390 rm -f conftest.$ac_ext
3391 EXEEXT=$ac_cv_exeext
3392 ac_exeext=$EXEEXT
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h.  */
3395 #include <stdio.h>
3396 int
3397 main ()
3398 {
3399 FILE *f = fopen ("conftest.out", "w");
3400  return ferror (f) || fclose (f) != 0;
3401
3402   ;
3403   return 0;
3404 }
3405 _ACEOF
3406 ac_clean_files="$ac_clean_files conftest.out"
3407 # Check that the compiler produces executables we can run.  If not, either
3408 # the compiler is broken, or we cross compile.
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3410 $as_echo_n "checking whether we are cross compiling... " >&6; }
3411 if test "$cross_compiling" != yes; then
3412   { { ac_try="$ac_link"
3413 case "(($ac_try" in
3414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415   *) ac_try_echo=$ac_try;;
3416 esac
3417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3418 $as_echo "$ac_try_echo"; } >&5
3419   (eval "$ac_link") 2>&5
3420   ac_status=$?
3421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422   test $ac_status = 0; }
3423   if { ac_try='./conftest$ac_cv_exeext'
3424   { { case "(($ac_try" in
3425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426   *) ac_try_echo=$ac_try;;
3427 esac
3428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3429 $as_echo "$ac_try_echo"; } >&5
3430   (eval "$ac_try") 2>&5
3431   ac_status=$?
3432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3433   test $ac_status = 0; }; }; then
3434     cross_compiling=no
3435   else
3436     if test "$cross_compiling" = maybe; then
3437         cross_compiling=yes
3438     else
3439         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3441 as_fn_error $? "cannot run C compiled programs.
3442 If you meant to cross compile, use \`--host'.
3443 See \`config.log' for more details" "$LINENO" 5; }
3444     fi
3445   fi
3446 fi
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3448 $as_echo "$cross_compiling" >&6; }
3449
3450 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3451 ac_clean_files=$ac_clean_files_save
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3453 $as_echo_n "checking for suffix of object files... " >&6; }
3454 if ${ac_cv_objext+:} false; then :
3455   $as_echo_n "(cached) " >&6
3456 else
3457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h.  */
3459
3460 int
3461 main ()
3462 {
3463
3464   ;
3465   return 0;
3466 }
3467 _ACEOF
3468 rm -f conftest.o conftest.obj
3469 if { { ac_try="$ac_compile"
3470 case "(($ac_try" in
3471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472   *) ac_try_echo=$ac_try;;
3473 esac
3474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475 $as_echo "$ac_try_echo"; } >&5
3476   (eval "$ac_compile") 2>&5
3477   ac_status=$?
3478   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479   test $ac_status = 0; }; then :
3480   for ac_file in conftest.o conftest.obj conftest.*; do
3481   test -f "$ac_file" || continue;
3482   case $ac_file in
3483     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3484     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3485        break;;
3486   esac
3487 done
3488 else
3489   $as_echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3491
3492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3494 as_fn_error $? "cannot compute suffix of object files: cannot compile
3495 See \`config.log' for more details" "$LINENO" 5; }
3496 fi
3497 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3498 fi
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3500 $as_echo "$ac_cv_objext" >&6; }
3501 OBJEXT=$ac_cv_objext
3502 ac_objext=$OBJEXT
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3504 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3505 if ${ac_cv_c_compiler_gnu+:} false; then :
3506   $as_echo_n "(cached) " >&6
3507 else
3508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h.  */
3510
3511 int
3512 main ()
3513 {
3514 #ifndef __GNUC__
3515        choke me
3516 #endif
3517
3518   ;
3519   return 0;
3520 }
3521 _ACEOF
3522 if ac_fn_c_try_compile "$LINENO"; then :
3523   ac_compiler_gnu=yes
3524 else
3525   ac_compiler_gnu=no
3526 fi
3527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3529
3530 fi
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3532 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3533 if test $ac_compiler_gnu = yes; then
3534   GCC=yes
3535 else
3536   GCC=
3537 fi
3538 ac_test_CFLAGS=${CFLAGS+set}
3539 ac_save_CFLAGS=$CFLAGS
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3541 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3542 if ${ac_cv_prog_cc_g+:} false; then :
3543   $as_echo_n "(cached) " >&6
3544 else
3545   ac_save_c_werror_flag=$ac_c_werror_flag
3546    ac_c_werror_flag=yes
3547    ac_cv_prog_cc_g=no
3548    CFLAGS="-g"
3549    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h.  */
3551
3552 int
3553 main ()
3554 {
3555
3556   ;
3557   return 0;
3558 }
3559 _ACEOF
3560 if ac_fn_c_try_compile "$LINENO"; then :
3561   ac_cv_prog_cc_g=yes
3562 else
3563   CFLAGS=""
3564       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h.  */
3566
3567 int
3568 main ()
3569 {
3570
3571   ;
3572   return 0;
3573 }
3574 _ACEOF
3575 if ac_fn_c_try_compile "$LINENO"; then :
3576
3577 else
3578   ac_c_werror_flag=$ac_save_c_werror_flag
3579          CFLAGS="-g"
3580          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h.  */
3582
3583 int
3584 main ()
3585 {
3586
3587   ;
3588   return 0;
3589 }
3590 _ACEOF
3591 if ac_fn_c_try_compile "$LINENO"; then :
3592   ac_cv_prog_cc_g=yes
3593 fi
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 fi
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 fi
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599    ac_c_werror_flag=$ac_save_c_werror_flag
3600 fi
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3602 $as_echo "$ac_cv_prog_cc_g" >&6; }
3603 if test "$ac_test_CFLAGS" = set; then
3604   CFLAGS=$ac_save_CFLAGS
3605 elif test $ac_cv_prog_cc_g = yes; then
3606   if test "$GCC" = yes; then
3607     CFLAGS="-g -O2"
3608   else
3609     CFLAGS="-g"
3610   fi
3611 else
3612   if test "$GCC" = yes; then
3613     CFLAGS="-O2"
3614   else
3615     CFLAGS=
3616   fi
3617 fi
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3619 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3620 if ${ac_cv_prog_cc_c89+:} false; then :
3621   $as_echo_n "(cached) " >&6
3622 else
3623   ac_cv_prog_cc_c89=no
3624 ac_save_CC=$CC
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h.  */
3627 #include <stdarg.h>
3628 #include <stdio.h>
3629 struct stat;
3630 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3631 struct buf { int x; };
3632 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3633 static char *e (p, i)
3634      char **p;
3635      int i;
3636 {
3637   return p[i];
3638 }
3639 static char *f (char * (*g) (char **, int), char **p, ...)
3640 {
3641   char *s;
3642   va_list v;
3643   va_start (v,p);
3644   s = g (p, va_arg (v,int));
3645   va_end (v);
3646   return s;
3647 }
3648
3649 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3650    function prototypes and stuff, but not '\xHH' hex character constants.
3651    These don't provoke an error unfortunately, instead are silently treated
3652    as 'x'.  The following induces an error, until -std is added to get
3653    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3654    array size at least.  It's necessary to write '\x00'==0 to get something
3655    that's true only with -std.  */
3656 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3657
3658 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3659    inside strings and character constants.  */
3660 #define FOO(x) 'x'
3661 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3662
3663 int test (int i, double x);
3664 struct s1 {int (*f) (int a);};
3665 struct s2 {int (*f) (double a);};
3666 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3667 int argc;
3668 char **argv;
3669 int
3670 main ()
3671 {
3672 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3673   ;
3674   return 0;
3675 }
3676 _ACEOF
3677 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3678         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3679 do
3680   CC="$ac_save_CC $ac_arg"
3681   if ac_fn_c_try_compile "$LINENO"; then :
3682   ac_cv_prog_cc_c89=$ac_arg
3683 fi
3684 rm -f core conftest.err conftest.$ac_objext
3685   test "x$ac_cv_prog_cc_c89" != "xno" && break
3686 done
3687 rm -f conftest.$ac_ext
3688 CC=$ac_save_CC
3689
3690 fi
3691 # AC_CACHE_VAL
3692 case "x$ac_cv_prog_cc_c89" in
3693   x)
3694     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3695 $as_echo "none needed" >&6; } ;;
3696   xno)
3697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3698 $as_echo "unsupported" >&6; } ;;
3699   *)
3700     CC="$CC $ac_cv_prog_cc_c89"
3701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3702 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3703 esac
3704 if test "x$ac_cv_prog_cc_c89" != xno; then :
3705
3706 fi
3707
3708 ac_ext=c
3709 ac_cpp='$CPP $CPPFLAGS'
3710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713
3714 ac_ext=c
3715 ac_cpp='$CPP $CPPFLAGS'
3716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3720 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3721 if ${am_cv_prog_cc_c_o+:} false; then :
3722   $as_echo_n "(cached) " >&6
3723 else
3724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h.  */
3726
3727 int
3728 main ()
3729 {
3730
3731   ;
3732   return 0;
3733 }
3734 _ACEOF
3735   # Make sure it works both with $CC and with simple cc.
3736   # Following AC_PROG_CC_C_O, we do the test twice because some
3737   # compilers refuse to overwrite an existing .o file with -o,
3738   # though they will create one.
3739   am_cv_prog_cc_c_o=yes
3740   for am_i in 1 2; do
3741     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3742    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3743    ac_status=$?
3744    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745    (exit $ac_status); } \
3746          && test -f conftest2.$ac_objext; then
3747       : OK
3748     else
3749       am_cv_prog_cc_c_o=no
3750       break
3751     fi
3752   done
3753   rm -f core conftest*
3754   unset am_i
3755 fi
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3757 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3758 if test "$am_cv_prog_cc_c_o" != yes; then
3759    # Losing compiler, so override with the script.
3760    # FIXME: It is wrong to rewrite CC.
3761    # But if we don't then we get into trouble of one sort or another.
3762    # A longer-term fix would be to have automake use am__CC in this case,
3763    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3764    CC="$am_aux_dir/compile $CC"
3765 fi
3766 ac_ext=c
3767 ac_cpp='$CPP $CPPFLAGS'
3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771
3772
3773 depcc="$CC"   am_compiler_list=
3774
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3776 $as_echo_n "checking dependency style of $depcc... " >&6; }
3777 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3778   $as_echo_n "(cached) " >&6
3779 else
3780   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3781   # We make a subdir and do the tests there.  Otherwise we can end up
3782   # making bogus files that we don't know about and never remove.  For
3783   # instance it was reported that on HP-UX the gcc test will end up
3784   # making a dummy file named 'D' -- because '-MD' means "put the output
3785   # in D".
3786   rm -rf conftest.dir
3787   mkdir conftest.dir
3788   # Copy depcomp to subdir because otherwise we won't find it if we're
3789   # using a relative directory.
3790   cp "$am_depcomp" conftest.dir
3791   cd conftest.dir
3792   # We will build objects and dependencies in a subdirectory because
3793   # it helps to detect inapplicable dependency modes.  For instance
3794   # both Tru64's cc and ICC support -MD to output dependencies as a
3795   # side effect of compilation, but ICC will put the dependencies in
3796   # the current directory while Tru64 will put them in the object
3797   # directory.
3798   mkdir sub
3799
3800   am_cv_CC_dependencies_compiler_type=none
3801   if test "$am_compiler_list" = ""; then
3802      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3803   fi
3804   am__universal=false
3805   case " $depcc " in #(
3806      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3807      esac
3808
3809   for depmode in $am_compiler_list; do
3810     # Setup a source with many dependencies, because some compilers
3811     # like to wrap large dependency lists on column 80 (with \), and
3812     # we should not choose a depcomp mode which is confused by this.
3813     #
3814     # We need to recreate these files for each test, as the compiler may
3815     # overwrite some of them when testing with obscure command lines.
3816     # This happens at least with the AIX C compiler.
3817     : > sub/conftest.c
3818     for i in 1 2 3 4 5 6; do
3819       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3820       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3821       # Solaris 10 /bin/sh.
3822       echo '/* dummy */' > sub/conftst$i.h
3823     done
3824     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3825
3826     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3827     # mode.  It turns out that the SunPro C++ compiler does not properly
3828     # handle '-M -o', and we need to detect this.  Also, some Intel
3829     # versions had trouble with output in subdirs.
3830     am__obj=sub/conftest.${OBJEXT-o}
3831     am__minus_obj="-o $am__obj"
3832     case $depmode in
3833     gcc)
3834       # This depmode causes a compiler race in universal mode.
3835       test "$am__universal" = false || continue
3836       ;;
3837     nosideeffect)
3838       # After this tag, mechanisms are not by side-effect, so they'll
3839       # only be used when explicitly requested.
3840       if test "x$enable_dependency_tracking" = xyes; then
3841         continue
3842       else
3843         break
3844       fi
3845       ;;
3846     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3847       # This compiler won't grok '-c -o', but also, the minuso test has
3848       # not run yet.  These depmodes are late enough in the game, and
3849       # so weak that their functioning should not be impacted.
3850       am__obj=conftest.${OBJEXT-o}
3851       am__minus_obj=
3852       ;;
3853     none) break ;;
3854     esac
3855     if depmode=$depmode \
3856        source=sub/conftest.c object=$am__obj \
3857        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3858        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3859          >/dev/null 2>conftest.err &&
3860        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3861        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3862        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3863        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3864       # icc doesn't choke on unknown options, it will just issue warnings
3865       # or remarks (even with -Werror).  So we grep stderr for any message
3866       # that says an option was ignored or not supported.
3867       # When given -MP, icc 7.0 and 7.1 complain thusly:
3868       #   icc: Command line warning: ignoring option '-M'; no argument required
3869       # The diagnosis changed in icc 8.0:
3870       #   icc: Command line remark: option '-MP' not supported
3871       if (grep 'ignoring option' conftest.err ||
3872           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3873         am_cv_CC_dependencies_compiler_type=$depmode
3874         break
3875       fi
3876     fi
3877   done
3878
3879   cd ..
3880   rm -rf conftest.dir
3881 else
3882   am_cv_CC_dependencies_compiler_type=none
3883 fi
3884
3885 fi
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3887 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3888 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3889
3890  if
3891   test "x$enable_dependency_tracking" != xno \
3892   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3893   am__fastdepCC_TRUE=
3894   am__fastdepCC_FALSE='#'
3895 else
3896   am__fastdepCC_TRUE='#'
3897   am__fastdepCC_FALSE=
3898 fi
3899
3900
3901
3902 if test -n "$ac_tool_prefix"; then
3903   for ac_prog in ar lib "link -lib"
3904   do
3905     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3906 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908 $as_echo_n "checking for $ac_word... " >&6; }
3909 if ${ac_cv_prog_AR+:} false; then :
3910   $as_echo_n "(cached) " >&6
3911 else
3912   if test -n "$AR"; then
3913   ac_cv_prog_AR="$AR" # Let the user override the test.
3914 else
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH
3917 do
3918   IFS=$as_save_IFS
3919   test -z "$as_dir" && as_dir=.
3920     for ac_exec_ext in '' $ac_executable_extensions; do
3921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3922     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3924     break 2
3925   fi
3926 done
3927   done
3928 IFS=$as_save_IFS
3929
3930 fi
3931 fi
3932 AR=$ac_cv_prog_AR
3933 if test -n "$AR"; then
3934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3935 $as_echo "$AR" >&6; }
3936 else
3937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3939 fi
3940
3941
3942     test -n "$AR" && break
3943   done
3944 fi
3945 if test -z "$AR"; then
3946   ac_ct_AR=$AR
3947   for ac_prog in ar lib "link -lib"
3948 do
3949   # Extract the first word of "$ac_prog", so it can be a program name with args.
3950 set dummy $ac_prog; ac_word=$2
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952 $as_echo_n "checking for $ac_word... " >&6; }
3953 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3954   $as_echo_n "(cached) " >&6
3955 else
3956   if test -n "$ac_ct_AR"; then
3957   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3958 else
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH
3961 do
3962   IFS=$as_save_IFS
3963   test -z "$as_dir" && as_dir=.
3964     for ac_exec_ext in '' $ac_executable_extensions; do
3965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966     ac_cv_prog_ac_ct_AR="$ac_prog"
3967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3968     break 2
3969   fi
3970 done
3971   done
3972 IFS=$as_save_IFS
3973
3974 fi
3975 fi
3976 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3977 if test -n "$ac_ct_AR"; then
3978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3979 $as_echo "$ac_ct_AR" >&6; }
3980 else
3981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982 $as_echo "no" >&6; }
3983 fi
3984
3985
3986   test -n "$ac_ct_AR" && break
3987 done
3988
3989   if test "x$ac_ct_AR" = x; then
3990     AR="false"
3991   else
3992     case $cross_compiling:$ac_tool_warned in
3993 yes:)
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3996 ac_tool_warned=yes ;;
3997 esac
3998     AR=$ac_ct_AR
3999   fi
4000 fi
4001
4002 : ${AR=ar}
4003
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4005 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4006 if ${am_cv_ar_interface+:} false; then :
4007   $as_echo_n "(cached) " >&6
4008 else
4009   ac_ext=c
4010 ac_cpp='$CPP $CPPFLAGS'
4011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4014
4015    am_cv_ar_interface=ar
4016    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h.  */
4018 int some_variable = 0;
4019 _ACEOF
4020 if ac_fn_c_try_compile "$LINENO"; then :
4021   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4022       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4023   (eval $am_ar_try) 2>&5
4024   ac_status=$?
4025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026   test $ac_status = 0; }
4027       if test "$ac_status" -eq 0; then
4028         am_cv_ar_interface=ar
4029       else
4030         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4031         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4032   (eval $am_ar_try) 2>&5
4033   ac_status=$?
4034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4035   test $ac_status = 0; }
4036         if test "$ac_status" -eq 0; then
4037           am_cv_ar_interface=lib
4038         else
4039           am_cv_ar_interface=unknown
4040         fi
4041       fi
4042       rm -f conftest.lib libconftest.a
4043
4044 fi
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046    ac_ext=c
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051
4052 fi
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4054 $as_echo "$am_cv_ar_interface" >&6; }
4055
4056 case $am_cv_ar_interface in
4057 ar)
4058   ;;
4059 lib)
4060   # Microsoft lib, so override with the ar-lib wrapper script.
4061   # FIXME: It is wrong to rewrite AR.
4062   # But if we don't then we get into trouble of one sort or another.
4063   # A longer-term fix would be to have automake use am__AR in this case,
4064   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4065   # similar.
4066   AR="$am_aux_dir/ar-lib $AR"
4067   ;;
4068 unknown)
4069   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4070   ;;
4071 esac
4072
4073 case `pwd` in
4074   *\ * | *\     *)
4075     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4076 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4077 esac
4078
4079
4080
4081 macro_version='2.4.2'
4082 macro_revision='1.3337'
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096 ltmain="$ac_aux_dir/ltmain.sh"
4097
4098 # Make sure we can run config.sub.
4099 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4100   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4101
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4103 $as_echo_n "checking build system type... " >&6; }
4104 if ${ac_cv_build+:} false; then :
4105   $as_echo_n "(cached) " >&6
4106 else
4107   ac_build_alias=$build_alias
4108 test "x$ac_build_alias" = x &&
4109   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4110 test "x$ac_build_alias" = x &&
4111   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4112 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4113   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4114
4115 fi
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4117 $as_echo "$ac_cv_build" >&6; }
4118 case $ac_cv_build in
4119 *-*-*) ;;
4120 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4121 esac
4122 build=$ac_cv_build
4123 ac_save_IFS=$IFS; IFS='-'
4124 set x $ac_cv_build
4125 shift
4126 build_cpu=$1
4127 build_vendor=$2
4128 shift; shift
4129 # Remember, the first character of IFS is used to create $*,
4130 # except with old shells:
4131 build_os=$*
4132 IFS=$ac_save_IFS
4133 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4134
4135
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4137 $as_echo_n "checking host system type... " >&6; }
4138 if ${ac_cv_host+:} false; then :
4139   $as_echo_n "(cached) " >&6
4140 else
4141   if test "x$host_alias" = x; then
4142   ac_cv_host=$ac_cv_build
4143 else
4144   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4145     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4146 fi
4147
4148 fi
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4150 $as_echo "$ac_cv_host" >&6; }
4151 case $ac_cv_host in
4152 *-*-*) ;;
4153 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4154 esac
4155 host=$ac_cv_host
4156 ac_save_IFS=$IFS; IFS='-'
4157 set x $ac_cv_host
4158 shift
4159 host_cpu=$1
4160 host_vendor=$2
4161 shift; shift
4162 # Remember, the first character of IFS is used to create $*,
4163 # except with old shells:
4164 host_os=$*
4165 IFS=$ac_save_IFS
4166 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4167
4168
4169 # Backslashify metacharacters that are still active within
4170 # double-quoted strings.
4171 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4172
4173 # Same as above, but do not quote variable references.
4174 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4175
4176 # Sed substitution to delay expansion of an escaped shell variable in a
4177 # double_quote_subst'ed string.
4178 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4179
4180 # Sed substitution to delay expansion of an escaped single quote.
4181 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4182
4183 # Sed substitution to avoid accidental globbing in evaled expressions
4184 no_glob_subst='s/\*/\\\*/g'
4185
4186 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4187 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4188 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4189
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4191 $as_echo_n "checking how to print strings... " >&6; }
4192 # Test print first, because it will be a builtin if present.
4193 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4194    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4195   ECHO='print -r --'
4196 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4197   ECHO='printf %s\n'
4198 else
4199   # Use this function as a fallback that always works.
4200   func_fallback_echo ()
4201   {
4202     eval 'cat <<_LTECHO_EOF
4203 $1
4204 _LTECHO_EOF'
4205   }
4206   ECHO='func_fallback_echo'
4207 fi
4208
4209 # func_echo_all arg...
4210 # Invoke $ECHO with all args, space-separated.
4211 func_echo_all ()
4212 {
4213     $ECHO ""
4214 }
4215
4216 case "$ECHO" in
4217   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4218 $as_echo "printf" >&6; } ;;
4219   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4220 $as_echo "print -r" >&6; } ;;
4221   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4222 $as_echo "cat" >&6; } ;;
4223 esac
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4239 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4240 if ${ac_cv_path_SED+:} false; then :
4241   $as_echo_n "(cached) " >&6
4242 else
4243             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4244      for ac_i in 1 2 3 4 5 6 7; do
4245        ac_script="$ac_script$as_nl$ac_script"
4246      done
4247      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4248      { ac_script=; unset ac_script;}
4249      if test -z "$SED"; then
4250   ac_path_SED_found=false
4251   # Loop through the user's path and test for each of PROGNAME-LIST
4252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255   IFS=$as_save_IFS
4256   test -z "$as_dir" && as_dir=.
4257     for ac_prog in sed gsed; do
4258     for ac_exec_ext in '' $ac_executable_extensions; do
4259       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4260       as_fn_executable_p "$ac_path_SED" || continue
4261 # Check for GNU ac_path_SED and select it if it is found.
4262   # Check for GNU $ac_path_SED
4263 case `"$ac_path_SED" --version 2>&1` in
4264 *GNU*)
4265   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4266 *)
4267   ac_count=0
4268   $as_echo_n 0123456789 >"conftest.in"
4269   while :
4270   do
4271     cat "conftest.in" "conftest.in" >"conftest.tmp"
4272     mv "conftest.tmp" "conftest.in"
4273     cp "conftest.in" "conftest.nl"
4274     $as_echo '' >> "conftest.nl"
4275     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4276     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4277     as_fn_arith $ac_count + 1 && ac_count=$as_val
4278     if test $ac_count -gt ${ac_path_SED_max-0}; then
4279       # Best one so far, save it but keep looking for a better one
4280       ac_cv_path_SED="$ac_path_SED"
4281       ac_path_SED_max=$ac_count
4282     fi
4283     # 10*(2^10) chars as input seems more than enough
4284     test $ac_count -gt 10 && break
4285   done
4286   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4287 esac
4288
4289       $ac_path_SED_found && break 3
4290     done
4291   done
4292   done
4293 IFS=$as_save_IFS
4294   if test -z "$ac_cv_path_SED"; then
4295     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4296   fi
4297 else
4298   ac_cv_path_SED=$SED
4299 fi
4300
4301 fi
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4303 $as_echo "$ac_cv_path_SED" >&6; }
4304  SED="$ac_cv_path_SED"
4305   rm -f conftest.sed
4306
4307 test -z "$SED" && SED=sed
4308 Xsed="$SED -e 1s/^X//"
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4321 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4322 if ${ac_cv_path_GREP+:} false; then :
4323   $as_echo_n "(cached) " >&6
4324 else
4325   if test -z "$GREP"; then
4326   ac_path_GREP_found=false
4327   # Loop through the user's path and test for each of PROGNAME-LIST
4328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4330 do
4331   IFS=$as_save_IFS
4332   test -z "$as_dir" && as_dir=.
4333     for ac_prog in grep ggrep; do
4334     for ac_exec_ext in '' $ac_executable_extensions; do
4335       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4336       as_fn_executable_p "$ac_path_GREP" || continue
4337 # Check for GNU ac_path_GREP and select it if it is found.
4338   # Check for GNU $ac_path_GREP
4339 case `"$ac_path_GREP" --version 2>&1` in
4340 *GNU*)
4341   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4342 *)
4343   ac_count=0
4344   $as_echo_n 0123456789 >"conftest.in"
4345   while :
4346   do
4347     cat "conftest.in" "conftest.in" >"conftest.tmp"
4348     mv "conftest.tmp" "conftest.in"
4349     cp "conftest.in" "conftest.nl"
4350     $as_echo 'GREP' >> "conftest.nl"
4351     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4352     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4353     as_fn_arith $ac_count + 1 && ac_count=$as_val
4354     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4355       # Best one so far, save it but keep looking for a better one
4356       ac_cv_path_GREP="$ac_path_GREP"
4357       ac_path_GREP_max=$ac_count
4358     fi
4359     # 10*(2^10) chars as input seems more than enough
4360     test $ac_count -gt 10 && break
4361   done
4362   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4363 esac
4364
4365       $ac_path_GREP_found && break 3
4366     done
4367   done
4368   done
4369 IFS=$as_save_IFS
4370   if test -z "$ac_cv_path_GREP"; then
4371     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4372   fi
4373 else
4374   ac_cv_path_GREP=$GREP
4375 fi
4376
4377 fi
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4379 $as_echo "$ac_cv_path_GREP" >&6; }
4380  GREP="$ac_cv_path_GREP"
4381
4382
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4384 $as_echo_n "checking for egrep... " >&6; }
4385 if ${ac_cv_path_EGREP+:} false; then :
4386   $as_echo_n "(cached) " >&6
4387 else
4388   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4389    then ac_cv_path_EGREP="$GREP -E"
4390    else
4391      if test -z "$EGREP"; then
4392   ac_path_EGREP_found=false
4393   # Loop through the user's path and test for each of PROGNAME-LIST
4394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4396 do
4397   IFS=$as_save_IFS
4398   test -z "$as_dir" && as_dir=.
4399     for ac_prog in egrep; do
4400     for ac_exec_ext in '' $ac_executable_extensions; do
4401       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4402       as_fn_executable_p "$ac_path_EGREP" || continue
4403 # Check for GNU ac_path_EGREP and select it if it is found.
4404   # Check for GNU $ac_path_EGREP
4405 case `"$ac_path_EGREP" --version 2>&1` in
4406 *GNU*)
4407   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4408 *)
4409   ac_count=0
4410   $as_echo_n 0123456789 >"conftest.in"
4411   while :
4412   do
4413     cat "conftest.in" "conftest.in" >"conftest.tmp"
4414     mv "conftest.tmp" "conftest.in"
4415     cp "conftest.in" "conftest.nl"
4416     $as_echo 'EGREP' >> "conftest.nl"
4417     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4418     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4419     as_fn_arith $ac_count + 1 && ac_count=$as_val
4420     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4421       # Best one so far, save it but keep looking for a better one
4422       ac_cv_path_EGREP="$ac_path_EGREP"
4423       ac_path_EGREP_max=$ac_count
4424     fi
4425     # 10*(2^10) chars as input seems more than enough
4426     test $ac_count -gt 10 && break
4427   done
4428   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4429 esac
4430
4431       $ac_path_EGREP_found && break 3
4432     done
4433   done
4434   done
4435 IFS=$as_save_IFS
4436   if test -z "$ac_cv_path_EGREP"; then
4437     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4438   fi
4439 else
4440   ac_cv_path_EGREP=$EGREP
4441 fi
4442
4443    fi
4444 fi
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4446 $as_echo "$ac_cv_path_EGREP" >&6; }
4447  EGREP="$ac_cv_path_EGREP"
4448
4449
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4451 $as_echo_n "checking for fgrep... " >&6; }
4452 if ${ac_cv_path_FGREP+:} false; then :
4453   $as_echo_n "(cached) " >&6
4454 else
4455   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4456    then ac_cv_path_FGREP="$GREP -F"
4457    else
4458      if test -z "$FGREP"; then
4459   ac_path_FGREP_found=false
4460   # Loop through the user's path and test for each of PROGNAME-LIST
4461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4463 do
4464   IFS=$as_save_IFS
4465   test -z "$as_dir" && as_dir=.
4466     for ac_prog in fgrep; do
4467     for ac_exec_ext in '' $ac_executable_extensions; do
4468       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4469       as_fn_executable_p "$ac_path_FGREP" || continue
4470 # Check for GNU ac_path_FGREP and select it if it is found.
4471   # Check for GNU $ac_path_FGREP
4472 case `"$ac_path_FGREP" --version 2>&1` in
4473 *GNU*)
4474   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4475 *)
4476   ac_count=0
4477   $as_echo_n 0123456789 >"conftest.in"
4478   while :
4479   do
4480     cat "conftest.in" "conftest.in" >"conftest.tmp"
4481     mv "conftest.tmp" "conftest.in"
4482     cp "conftest.in" "conftest.nl"
4483     $as_echo 'FGREP' >> "conftest.nl"
4484     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4485     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4486     as_fn_arith $ac_count + 1 && ac_count=$as_val
4487     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4488       # Best one so far, save it but keep looking for a better one
4489       ac_cv_path_FGREP="$ac_path_FGREP"
4490       ac_path_FGREP_max=$ac_count
4491     fi
4492     # 10*(2^10) chars as input seems more than enough
4493     test $ac_count -gt 10 && break
4494   done
4495   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4496 esac
4497
4498       $ac_path_FGREP_found && break 3
4499     done
4500   done
4501   done
4502 IFS=$as_save_IFS
4503   if test -z "$ac_cv_path_FGREP"; then
4504     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4505   fi
4506 else
4507   ac_cv_path_FGREP=$FGREP
4508 fi
4509
4510    fi
4511 fi
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4513 $as_echo "$ac_cv_path_FGREP" >&6; }
4514  FGREP="$ac_cv_path_FGREP"
4515
4516
4517 test -z "$GREP" && GREP=grep
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537 # Check whether --with-gnu-ld was given.
4538 if test "${with_gnu_ld+set}" = set; then :
4539   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4540 else
4541   with_gnu_ld=no
4542 fi
4543
4544 ac_prog=ld
4545 if test "$GCC" = yes; then
4546   # Check if gcc -print-prog-name=ld gives a path.
4547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4548 $as_echo_n "checking for ld used by $CC... " >&6; }
4549   case $host in
4550   *-*-mingw*)
4551     # gcc leaves a trailing carriage return which upsets mingw
4552     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4553   *)
4554     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4555   esac
4556   case $ac_prog in
4557     # Accept absolute paths.
4558     [\\/]* | ?:[\\/]*)
4559       re_direlt='/[^/][^/]*/\.\./'
4560       # Canonicalize the pathname of ld
4561       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4562       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4563         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4564       done
4565       test -z "$LD" && LD="$ac_prog"
4566       ;;
4567   "")
4568     # If it fails, then pretend we aren't using GCC.
4569     ac_prog=ld
4570     ;;
4571   *)
4572     # If it is relative, then search for the first ld in PATH.
4573     with_gnu_ld=unknown
4574     ;;
4575   esac
4576 elif test "$with_gnu_ld" = yes; then
4577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4578 $as_echo_n "checking for GNU ld... " >&6; }
4579 else
4580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4581 $as_echo_n "checking for non-GNU ld... " >&6; }
4582 fi
4583 if ${lt_cv_path_LD+:} false; then :
4584   $as_echo_n "(cached) " >&6
4585 else
4586   if test -z "$LD"; then
4587   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4588   for ac_dir in $PATH; do
4589     IFS="$lt_save_ifs"
4590     test -z "$ac_dir" && ac_dir=.
4591     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4592       lt_cv_path_LD="$ac_dir/$ac_prog"
4593       # Check to see if the program is GNU ld.  I'd rather use --version,
4594       # but apparently some variants of GNU ld only accept -v.
4595       # Break only if it was the GNU/non-GNU ld that we prefer.
4596       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4597       *GNU* | *'with BFD'*)
4598         test "$with_gnu_ld" != no && break
4599         ;;
4600       *)
4601         test "$with_gnu_ld" != yes && break
4602         ;;
4603       esac
4604     fi
4605   done
4606   IFS="$lt_save_ifs"
4607 else
4608   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4609 fi
4610 fi
4611
4612 LD="$lt_cv_path_LD"
4613 if test -n "$LD"; then
4614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4615 $as_echo "$LD" >&6; }
4616 else
4617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618 $as_echo "no" >&6; }
4619 fi
4620 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4622 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4623 if ${lt_cv_prog_gnu_ld+:} false; then :
4624   $as_echo_n "(cached) " >&6
4625 else
4626   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4627 case `$LD -v 2>&1 </dev/null` in
4628 *GNU* | *'with BFD'*)
4629   lt_cv_prog_gnu_ld=yes
4630   ;;
4631 *)
4632   lt_cv_prog_gnu_ld=no
4633   ;;
4634 esac
4635 fi
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4637 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4638 with_gnu_ld=$lt_cv_prog_gnu_ld
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4649 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4650 if ${lt_cv_path_NM+:} false; then :
4651   $as_echo_n "(cached) " >&6
4652 else
4653   if test -n "$NM"; then
4654   # Let the user override the test.
4655   lt_cv_path_NM="$NM"
4656 else
4657   lt_nm_to_check="${ac_tool_prefix}nm"
4658   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4659     lt_nm_to_check="$lt_nm_to_check nm"
4660   fi
4661   for lt_tmp_nm in $lt_nm_to_check; do
4662     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4663     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4664       IFS="$lt_save_ifs"
4665       test -z "$ac_dir" && ac_dir=.
4666       tmp_nm="$ac_dir/$lt_tmp_nm"
4667       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4668         # Check to see if the nm accepts a BSD-compat flag.
4669         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4670         #   nm: unknown option "B" ignored
4671         # Tru64's nm complains that /dev/null is an invalid object file
4672         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4673         */dev/null* | *'Invalid file or object type'*)
4674           lt_cv_path_NM="$tmp_nm -B"
4675           break
4676           ;;
4677         *)
4678           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4679           */dev/null*)
4680             lt_cv_path_NM="$tmp_nm -p"
4681             break
4682             ;;
4683           *)
4684             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4685             continue # so that we can try to find one that supports BSD flags
4686             ;;
4687           esac
4688           ;;
4689         esac
4690       fi
4691     done
4692     IFS="$lt_save_ifs"
4693   done
4694   : ${lt_cv_path_NM=no}
4695 fi
4696 fi
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4698 $as_echo "$lt_cv_path_NM" >&6; }
4699 if test "$lt_cv_path_NM" != "no"; then
4700   NM="$lt_cv_path_NM"
4701 else
4702   # Didn't find any BSD compatible name lister, look for dumpbin.
4703   if test -n "$DUMPBIN"; then :
4704     # Let the user override the test.
4705   else
4706     if test -n "$ac_tool_prefix"; then
4707   for ac_prog in dumpbin "link -dump"
4708   do
4709     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4712 $as_echo_n "checking for $ac_word... " >&6; }
4713 if ${ac_cv_prog_DUMPBIN+:} false; then :
4714   $as_echo_n "(cached) " >&6
4715 else
4716   if test -n "$DUMPBIN"; then
4717   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4718 else
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH
4721 do
4722   IFS=$as_save_IFS
4723   test -z "$as_dir" && as_dir=.
4724     for ac_exec_ext in '' $ac_executable_extensions; do
4725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4726     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4728     break 2
4729   fi
4730 done
4731   done
4732 IFS=$as_save_IFS
4733
4734 fi
4735 fi
4736 DUMPBIN=$ac_cv_prog_DUMPBIN
4737 if test -n "$DUMPBIN"; then
4738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4739 $as_echo "$DUMPBIN" >&6; }
4740 else
4741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4743 fi
4744
4745
4746     test -n "$DUMPBIN" && break
4747   done
4748 fi
4749 if test -z "$DUMPBIN"; then
4750   ac_ct_DUMPBIN=$DUMPBIN
4751   for ac_prog in dumpbin "link -dump"
4752 do
4753   # Extract the first word of "$ac_prog", so it can be a program name with args.
4754 set dummy $ac_prog; ac_word=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4758   $as_echo_n "(cached) " >&6
4759 else
4760   if test -n "$ac_ct_DUMPBIN"; then
4761   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4762 else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4765 do
4766   IFS=$as_save_IFS
4767   test -z "$as_dir" && as_dir=.
4768     for ac_exec_ext in '' $ac_executable_extensions; do
4769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772     break 2
4773   fi
4774 done
4775   done
4776 IFS=$as_save_IFS
4777
4778 fi
4779 fi
4780 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4781 if test -n "$ac_ct_DUMPBIN"; then
4782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4783 $as_echo "$ac_ct_DUMPBIN" >&6; }
4784 else
4785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4787 fi
4788
4789
4790   test -n "$ac_ct_DUMPBIN" && break
4791 done
4792
4793   if test "x$ac_ct_DUMPBIN" = x; then
4794     DUMPBIN=":"
4795   else
4796     case $cross_compiling:$ac_tool_warned in
4797 yes:)
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4800 ac_tool_warned=yes ;;
4801 esac
4802     DUMPBIN=$ac_ct_DUMPBIN
4803   fi
4804 fi
4805
4806     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4807     *COFF*)
4808       DUMPBIN="$DUMPBIN -symbols"
4809       ;;
4810     *)
4811       DUMPBIN=:
4812       ;;
4813     esac
4814   fi
4815
4816   if test "$DUMPBIN" != ":"; then
4817     NM="$DUMPBIN"
4818   fi
4819 fi
4820 test -z "$NM" && NM=nm
4821
4822
4823
4824
4825
4826
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4828 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4829 if ${lt_cv_nm_interface+:} false; then :
4830   $as_echo_n "(cached) " >&6
4831 else
4832   lt_cv_nm_interface="BSD nm"
4833   echo "int some_variable = 0;" > conftest.$ac_ext
4834   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4835   (eval "$ac_compile" 2>conftest.err)
4836   cat conftest.err >&5
4837   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4838   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4839   cat conftest.err >&5
4840   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4841   cat conftest.out >&5
4842   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4843     lt_cv_nm_interface="MS dumpbin"
4844   fi
4845   rm -f conftest*
4846 fi
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4848 $as_echo "$lt_cv_nm_interface" >&6; }
4849
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4851 $as_echo_n "checking whether ln -s works... " >&6; }
4852 LN_S=$as_ln_s
4853 if test "$LN_S" = "ln -s"; then
4854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4855 $as_echo "yes" >&6; }
4856 else
4857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4858 $as_echo "no, using $LN_S" >&6; }
4859 fi
4860
4861 # find the maximum length of command line arguments
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4863 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4864 if ${lt_cv_sys_max_cmd_len+:} false; then :
4865   $as_echo_n "(cached) " >&6
4866 else
4867     i=0
4868   teststring="ABCD"
4869
4870   case $build_os in
4871   msdosdjgpp*)
4872     # On DJGPP, this test can blow up pretty badly due to problems in libc
4873     # (any single argument exceeding 2000 bytes causes a buffer overrun
4874     # during glob expansion).  Even if it were fixed, the result of this
4875     # check would be larger than it should be.
4876     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4877     ;;
4878
4879   gnu*)
4880     # Under GNU Hurd, this test is not required because there is
4881     # no limit to the length of command line arguments.
4882     # Libtool will interpret -1 as no limit whatsoever
4883     lt_cv_sys_max_cmd_len=-1;
4884     ;;
4885
4886   cygwin* | mingw* | cegcc*)
4887     # On Win9x/ME, this test blows up -- it succeeds, but takes
4888     # about 5 minutes as the teststring grows exponentially.
4889     # Worse, since 9x/ME are not pre-emptively multitasking,
4890     # you end up with a "frozen" computer, even though with patience
4891     # the test eventually succeeds (with a max line length of 256k).
4892     # Instead, let's just punt: use the minimum linelength reported by
4893     # all of the supported platforms: 8192 (on NT/2K/XP).
4894     lt_cv_sys_max_cmd_len=8192;
4895     ;;
4896
4897   mint*)
4898     # On MiNT this can take a long time and run out of memory.
4899     lt_cv_sys_max_cmd_len=8192;
4900     ;;
4901
4902   amigaos*)
4903     # On AmigaOS with pdksh, this test takes hours, literally.
4904     # So we just punt and use a minimum line length of 8192.
4905     lt_cv_sys_max_cmd_len=8192;
4906     ;;
4907
4908   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4909     # This has been around since 386BSD, at least.  Likely further.
4910     if test -x /sbin/sysctl; then
4911       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4912     elif test -x /usr/sbin/sysctl; then
4913       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4914     else
4915       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4916     fi
4917     # And add a safety zone
4918     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4919     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4920     ;;
4921
4922   interix*)
4923     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4924     lt_cv_sys_max_cmd_len=196608
4925     ;;
4926
4927   os2*)
4928     # The test takes a long time on OS/2.
4929     lt_cv_sys_max_cmd_len=8192
4930     ;;
4931
4932   osf*)
4933     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4934     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4935     # nice to cause kernel panics so lets avoid the loop below.
4936     # First set a reasonable default.
4937     lt_cv_sys_max_cmd_len=16384
4938     #
4939     if test -x /sbin/sysconfig; then
4940       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4941         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4942       esac
4943     fi
4944     ;;
4945   sco3.2v5*)
4946     lt_cv_sys_max_cmd_len=102400
4947     ;;
4948   sysv5* | sco5v6* | sysv4.2uw2*)
4949     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4950     if test -n "$kargmax"; then
4951       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4952     else
4953       lt_cv_sys_max_cmd_len=32768
4954     fi
4955     ;;
4956   *)
4957     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4958     if test -n "$lt_cv_sys_max_cmd_len" && \
4959         test undefined != "$lt_cv_sys_max_cmd_len"; then
4960       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4961       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4962     else
4963       # Make teststring a little bigger before we do anything with it.
4964       # a 1K string should be a reasonable start.
4965       for i in 1 2 3 4 5 6 7 8 ; do
4966         teststring=$teststring$teststring
4967       done
4968       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4969       # If test is not a shell built-in, we'll probably end up computing a
4970       # maximum length that is only half of the actual maximum length, but
4971       # we can't tell.
4972       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4973                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4974               test $i != 17 # 1/2 MB should be enough
4975       do
4976         i=`expr $i + 1`
4977         teststring=$teststring$teststring
4978       done
4979       # Only check the string length outside the loop.
4980       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4981       teststring=
4982       # Add a significant safety factor because C++ compilers can tack on
4983       # massive amounts of additional arguments before passing them to the
4984       # linker.  It appears as though 1/2 is a usable value.
4985       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4986     fi
4987     ;;
4988   esac
4989
4990 fi
4991
4992 if test -n $lt_cv_sys_max_cmd_len ; then
4993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4994 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4995 else
4996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4997 $as_echo "none" >&6; }
4998 fi
4999 max_cmd_len=$lt_cv_sys_max_cmd_len
5000
5001
5002
5003
5004
5005
5006 : ${CP="cp -f"}
5007 : ${MV="mv -f"}
5008 : ${RM="rm -f"}
5009
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5011 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5012 # Try some XSI features
5013 xsi_shell=no
5014 ( _lt_dummy="a/b/c"
5015   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5016       = c,a/b,b/c, \
5017     && eval 'test $(( 1 + 1 )) -eq 2 \
5018     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5019   && xsi_shell=yes
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5021 $as_echo "$xsi_shell" >&6; }
5022
5023
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5025 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5026 lt_shell_append=no
5027 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5028     >/dev/null 2>&1 \
5029   && lt_shell_append=yes
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5031 $as_echo "$lt_shell_append" >&6; }
5032
5033
5034 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5035   lt_unset=unset
5036 else
5037   lt_unset=false
5038 fi
5039
5040
5041
5042
5043
5044 # test EBCDIC or ASCII
5045 case `echo X|tr X '\101'` in
5046  A) # ASCII based system
5047     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5048   lt_SP2NL='tr \040 \012'
5049   lt_NL2SP='tr \015\012 \040\040'
5050   ;;
5051  *) # EBCDIC based system
5052   lt_SP2NL='tr \100 \n'
5053   lt_NL2SP='tr \r\n \100\100'
5054   ;;
5055 esac
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5066 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5067 if ${lt_cv_to_host_file_cmd+:} false; then :
5068   $as_echo_n "(cached) " >&6
5069 else
5070   case $host in
5071   *-*-mingw* )
5072     case $build in
5073       *-*-mingw* ) # actually msys
5074         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5075         ;;
5076       *-*-cygwin* )
5077         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5078         ;;
5079       * ) # otherwise, assume *nix
5080         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5081         ;;
5082     esac
5083     ;;
5084   *-*-cygwin* )
5085     case $build in
5086       *-*-mingw* ) # actually msys
5087         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5088         ;;
5089       *-*-cygwin* )
5090         lt_cv_to_host_file_cmd=func_convert_file_noop
5091         ;;
5092       * ) # otherwise, assume *nix
5093         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5094         ;;
5095     esac
5096     ;;
5097   * ) # unhandled hosts (and "normal" native builds)
5098     lt_cv_to_host_file_cmd=func_convert_file_noop
5099     ;;
5100 esac
5101
5102 fi
5103
5104 to_host_file_cmd=$lt_cv_to_host_file_cmd
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5106 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5107
5108
5109
5110
5111
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5113 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5114 if ${lt_cv_to_tool_file_cmd+:} false; then :
5115   $as_echo_n "(cached) " >&6
5116 else
5117   #assume ordinary cross tools, or native build.
5118 lt_cv_to_tool_file_cmd=func_convert_file_noop
5119 case $host in
5120   *-*-mingw* )
5121     case $build in
5122       *-*-mingw* ) # actually msys
5123         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5124         ;;
5125     esac
5126     ;;
5127 esac
5128
5129 fi
5130
5131 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5133 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5134
5135
5136
5137
5138
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5140 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5141 if ${lt_cv_ld_reload_flag+:} false; then :
5142   $as_echo_n "(cached) " >&6
5143 else
5144   lt_cv_ld_reload_flag='-r'
5145 fi
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5147 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5148 reload_flag=$lt_cv_ld_reload_flag
5149 case $reload_flag in
5150 "" | " "*) ;;
5151 *) reload_flag=" $reload_flag" ;;
5152 esac
5153 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5154 case $host_os in
5155   cygwin* | mingw* | pw32* | cegcc*)
5156     if test "$GCC" != yes; then
5157       reload_cmds=false
5158     fi
5159     ;;
5160   darwin*)
5161     if test "$GCC" = yes; then
5162       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5163     else
5164       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5165     fi
5166     ;;
5167 esac
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177 if test -n "$ac_tool_prefix"; then
5178   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5179 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_prog_OBJDUMP+:} false; then :
5183   $as_echo_n "(cached) " >&6
5184 else
5185   if test -n "$OBJDUMP"; then
5186   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5190 do
5191   IFS=$as_save_IFS
5192   test -z "$as_dir" && as_dir=.
5193     for ac_exec_ext in '' $ac_executable_extensions; do
5194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197     break 2
5198   fi
5199 done
5200   done
5201 IFS=$as_save_IFS
5202
5203 fi
5204 fi
5205 OBJDUMP=$ac_cv_prog_OBJDUMP
5206 if test -n "$OBJDUMP"; then
5207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5208 $as_echo "$OBJDUMP" >&6; }
5209 else
5210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5212 fi
5213
5214
5215 fi
5216 if test -z "$ac_cv_prog_OBJDUMP"; then
5217   ac_ct_OBJDUMP=$OBJDUMP
5218   # Extract the first word of "objdump", so it can be a program name with args.
5219 set dummy objdump; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5223   $as_echo_n "(cached) " >&6
5224 else
5225   if test -n "$ac_ct_OBJDUMP"; then
5226   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5230 do
5231   IFS=$as_save_IFS
5232   test -z "$as_dir" && as_dir=.
5233     for ac_exec_ext in '' $ac_executable_extensions; do
5234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237     break 2
5238   fi
5239 done
5240   done
5241 IFS=$as_save_IFS
5242
5243 fi
5244 fi
5245 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5246 if test -n "$ac_ct_OBJDUMP"; then
5247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5248 $as_echo "$ac_ct_OBJDUMP" >&6; }
5249 else
5250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5252 fi
5253
5254   if test "x$ac_ct_OBJDUMP" = x; then
5255     OBJDUMP="false"
5256   else
5257     case $cross_compiling:$ac_tool_warned in
5258 yes:)
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5261 ac_tool_warned=yes ;;
5262 esac
5263     OBJDUMP=$ac_ct_OBJDUMP
5264   fi
5265 else
5266   OBJDUMP="$ac_cv_prog_OBJDUMP"
5267 fi
5268
5269 test -z "$OBJDUMP" && OBJDUMP=objdump
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5280 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5281 if ${lt_cv_deplibs_check_method+:} false; then :
5282   $as_echo_n "(cached) " >&6
5283 else
5284   lt_cv_file_magic_cmd='$MAGIC_CMD'
5285 lt_cv_file_magic_test_file=
5286 lt_cv_deplibs_check_method='unknown'
5287 # Need to set the preceding variable on all platforms that support
5288 # interlibrary dependencies.
5289 # 'none' -- dependencies not supported.
5290 # `unknown' -- same as none, but documents that we really don't know.
5291 # 'pass_all' -- all dependencies passed with no checks.
5292 # 'test_compile' -- check by making test program.
5293 # 'file_magic [[regex]]' -- check by looking for files in library path
5294 # which responds to the $file_magic_cmd with a given extended regex.
5295 # If you have `file' or equivalent on your system and you're not sure
5296 # whether `pass_all' will *always* work, you probably want this one.
5297
5298 case $host_os in
5299 aix[4-9]*)
5300   lt_cv_deplibs_check_method=pass_all
5301   ;;
5302
5303 beos*)
5304   lt_cv_deplibs_check_method=pass_all
5305   ;;
5306
5307 bsdi[45]*)
5308   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5309   lt_cv_file_magic_cmd='/usr/bin/file -L'
5310   lt_cv_file_magic_test_file=/shlib/libc.so
5311   ;;
5312
5313 cygwin*)
5314   # func_win32_libid is a shell function defined in ltmain.sh
5315   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5316   lt_cv_file_magic_cmd='func_win32_libid'
5317   ;;
5318
5319 mingw* | pw32*)
5320   # Base MSYS/MinGW do not provide the 'file' command needed by
5321   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5322   # unless we find 'file', for example because we are cross-compiling.
5323   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5324   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5325     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5326     lt_cv_file_magic_cmd='func_win32_libid'
5327   else
5328     # Keep this pattern in sync with the one in func_win32_libid.
5329     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5330     lt_cv_file_magic_cmd='$OBJDUMP -f'
5331   fi
5332   ;;
5333
5334 cegcc*)
5335   # use the weaker test based on 'objdump'. See mingw*.
5336   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5337   lt_cv_file_magic_cmd='$OBJDUMP -f'
5338   ;;
5339
5340 darwin* | rhapsody*)
5341   lt_cv_deplibs_check_method=pass_all
5342   ;;
5343
5344 freebsd* | dragonfly*)
5345   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5346     case $host_cpu in
5347     i*86 )
5348       # Not sure whether the presence of OpenBSD here was a mistake.
5349       # Let's accept both of them until this is cleared up.
5350       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5351       lt_cv_file_magic_cmd=/usr/bin/file
5352       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5353       ;;
5354     esac
5355   else
5356     lt_cv_deplibs_check_method=pass_all
5357   fi
5358   ;;
5359
5360 haiku*)
5361   lt_cv_deplibs_check_method=pass_all
5362   ;;
5363
5364 hpux10.20* | hpux11*)
5365   lt_cv_file_magic_cmd=/usr/bin/file
5366   case $host_cpu in
5367   ia64*)
5368     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5369     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5370     ;;
5371   hppa*64*)
5372     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]'
5373     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5374     ;;
5375   *)
5376     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5377     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5378     ;;
5379   esac
5380   ;;
5381
5382 interix[3-9]*)
5383   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5384   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5385   ;;
5386
5387 irix5* | irix6* | nonstopux*)
5388   case $LD in
5389   *-32|*"-32 ") libmagic=32-bit;;
5390   *-n32|*"-n32 ") libmagic=N32;;
5391   *-64|*"-64 ") libmagic=64-bit;;
5392   *) libmagic=never-match;;
5393   esac
5394   lt_cv_deplibs_check_method=pass_all
5395   ;;
5396
5397 # This must be glibc/ELF.
5398 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5399   lt_cv_deplibs_check_method=pass_all
5400   ;;
5401
5402 netbsd* | netbsdelf*-gnu)
5403   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5404     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5405   else
5406     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5407   fi
5408   ;;
5409
5410 newos6*)
5411   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5412   lt_cv_file_magic_cmd=/usr/bin/file
5413   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5414   ;;
5415
5416 *nto* | *qnx*)
5417   lt_cv_deplibs_check_method=pass_all
5418   ;;
5419
5420 openbsd*)
5421   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5422     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5423   else
5424     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5425   fi
5426   ;;
5427
5428 osf3* | osf4* | osf5*)
5429   lt_cv_deplibs_check_method=pass_all
5430   ;;
5431
5432 rdos*)
5433   lt_cv_deplibs_check_method=pass_all
5434   ;;
5435
5436 solaris*)
5437   lt_cv_deplibs_check_method=pass_all
5438   ;;
5439
5440 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5441   lt_cv_deplibs_check_method=pass_all
5442   ;;
5443
5444 sysv4 | sysv4.3*)
5445   case $host_vendor in
5446   motorola)
5447     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]'
5448     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5449     ;;
5450   ncr)
5451     lt_cv_deplibs_check_method=pass_all
5452     ;;
5453   sequent)
5454     lt_cv_file_magic_cmd='/bin/file'
5455     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5456     ;;
5457   sni)
5458     lt_cv_file_magic_cmd='/bin/file'
5459     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5460     lt_cv_file_magic_test_file=/lib/libc.so
5461     ;;
5462   siemens)
5463     lt_cv_deplibs_check_method=pass_all
5464     ;;
5465   pc)
5466     lt_cv_deplibs_check_method=pass_all
5467     ;;
5468   esac
5469   ;;
5470
5471 tpf*)
5472   lt_cv_deplibs_check_method=pass_all
5473   ;;
5474 esac
5475
5476 fi
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5478 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5479
5480 file_magic_glob=
5481 want_nocaseglob=no
5482 if test "$build" = "$host"; then
5483   case $host_os in
5484   mingw* | pw32*)
5485     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5486       want_nocaseglob=yes
5487     else
5488       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5489     fi
5490     ;;
5491   esac
5492 fi
5493
5494 file_magic_cmd=$lt_cv_file_magic_cmd
5495 deplibs_check_method=$lt_cv_deplibs_check_method
5496 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519 if test -n "$ac_tool_prefix"; then
5520   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5521 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 $as_echo_n "checking for $ac_word... " >&6; }
5524 if ${ac_cv_prog_DLLTOOL+:} false; then :
5525   $as_echo_n "(cached) " >&6
5526 else
5527   if test -n "$DLLTOOL"; then
5528   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5529 else
5530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531 for as_dir in $PATH
5532 do
5533   IFS=$as_save_IFS
5534   test -z "$as_dir" && as_dir=.
5535     for ac_exec_ext in '' $ac_executable_extensions; do
5536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5537     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5539     break 2
5540   fi
5541 done
5542   done
5543 IFS=$as_save_IFS
5544
5545 fi
5546 fi
5547 DLLTOOL=$ac_cv_prog_DLLTOOL
5548 if test -n "$DLLTOOL"; then
5549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5550 $as_echo "$DLLTOOL" >&6; }
5551 else
5552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553 $as_echo "no" >&6; }
5554 fi
5555
5556
5557 fi
5558 if test -z "$ac_cv_prog_DLLTOOL"; then
5559   ac_ct_DLLTOOL=$DLLTOOL
5560   # Extract the first word of "dlltool", so it can be a program name with args.
5561 set dummy dlltool; ac_word=$2
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5565   $as_echo_n "(cached) " >&6
5566 else
5567   if test -n "$ac_ct_DLLTOOL"; then
5568   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5569 else
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 for as_dir in $PATH
5572 do
5573   IFS=$as_save_IFS
5574   test -z "$as_dir" && as_dir=.
5575     for ac_exec_ext in '' $ac_executable_extensions; do
5576   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5577     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579     break 2
5580   fi
5581 done
5582   done
5583 IFS=$as_save_IFS
5584
5585 fi
5586 fi
5587 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5588 if test -n "$ac_ct_DLLTOOL"; then
5589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5590 $as_echo "$ac_ct_DLLTOOL" >&6; }
5591 else
5592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593 $as_echo "no" >&6; }
5594 fi
5595
5596   if test "x$ac_ct_DLLTOOL" = x; then
5597     DLLTOOL="false"
5598   else
5599     case $cross_compiling:$ac_tool_warned in
5600 yes:)
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5603 ac_tool_warned=yes ;;
5604 esac
5605     DLLTOOL=$ac_ct_DLLTOOL
5606   fi
5607 else
5608   DLLTOOL="$ac_cv_prog_DLLTOOL"
5609 fi
5610
5611 test -z "$DLLTOOL" && DLLTOOL=dlltool
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5623 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5624 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5625   $as_echo_n "(cached) " >&6
5626 else
5627   lt_cv_sharedlib_from_linklib_cmd='unknown'
5628
5629 case $host_os in
5630 cygwin* | mingw* | pw32* | cegcc*)
5631   # two different shell functions defined in ltmain.sh
5632   # decide which to use based on capabilities of $DLLTOOL
5633   case `$DLLTOOL --help 2>&1` in
5634   *--identify-strict*)
5635     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5636     ;;
5637   *)
5638     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5639     ;;
5640   esac
5641   ;;
5642 *)
5643   # fallback: assume linklib IS sharedlib
5644   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5645   ;;
5646 esac
5647
5648 fi
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5650 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5651 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5652 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5653
5654
5655
5656
5657
5658
5659
5660 if test -n "$ac_tool_prefix"; then
5661   for ac_prog in ar
5662   do
5663     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5664 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if ${ac_cv_prog_AR+:} false; then :
5668   $as_echo_n "(cached) " >&6
5669 else
5670   if test -n "$AR"; then
5671   ac_cv_prog_AR="$AR" # Let the user override the test.
5672 else
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5675 do
5676   IFS=$as_save_IFS
5677   test -z "$as_dir" && as_dir=.
5678     for ac_exec_ext in '' $ac_executable_extensions; do
5679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682     break 2
5683   fi
5684 done
5685   done
5686 IFS=$as_save_IFS
5687
5688 fi
5689 fi
5690 AR=$ac_cv_prog_AR
5691 if test -n "$AR"; then
5692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5693 $as_echo "$AR" >&6; }
5694 else
5695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5697 fi
5698
5699
5700     test -n "$AR" && break
5701   done
5702 fi
5703 if test -z "$AR"; then
5704   ac_ct_AR=$AR
5705   for ac_prog in ar
5706 do
5707   # Extract the first word of "$ac_prog", so it can be a program name with args.
5708 set dummy $ac_prog; ac_word=$2
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710 $as_echo_n "checking for $ac_word... " >&6; }
5711 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5712   $as_echo_n "(cached) " >&6
5713 else
5714   if test -n "$ac_ct_AR"; then
5715   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5716 else
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH
5719 do
5720   IFS=$as_save_IFS
5721   test -z "$as_dir" && as_dir=.
5722     for ac_exec_ext in '' $ac_executable_extensions; do
5723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5724     ac_cv_prog_ac_ct_AR="$ac_prog"
5725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5726     break 2
5727   fi
5728 done
5729   done
5730 IFS=$as_save_IFS
5731
5732 fi
5733 fi
5734 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5735 if test -n "$ac_ct_AR"; then
5736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5737 $as_echo "$ac_ct_AR" >&6; }
5738 else
5739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 $as_echo "no" >&6; }
5741 fi
5742
5743
5744   test -n "$ac_ct_AR" && break
5745 done
5746
5747   if test "x$ac_ct_AR" = x; then
5748     AR="false"
5749   else
5750     case $cross_compiling:$ac_tool_warned in
5751 yes:)
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5754 ac_tool_warned=yes ;;
5755 esac
5756     AR=$ac_ct_AR
5757   fi
5758 fi
5759
5760 : ${AR=ar}
5761 : ${AR_FLAGS=cru}
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5774 $as_echo_n "checking for archiver @FILE support... " >&6; }
5775 if ${lt_cv_ar_at_file+:} false; then :
5776   $as_echo_n "(cached) " >&6
5777 else
5778   lt_cv_ar_at_file=no
5779    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h.  */
5781
5782 int
5783 main ()
5784 {
5785
5786   ;
5787   return 0;
5788 }
5789 _ACEOF
5790 if ac_fn_c_try_compile "$LINENO"; then :
5791   echo conftest.$ac_objext > conftest.lst
5792       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5793       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5794   (eval $lt_ar_try) 2>&5
5795   ac_status=$?
5796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5797   test $ac_status = 0; }
5798       if test "$ac_status" -eq 0; then
5799         # Ensure the archiver fails upon bogus file names.
5800         rm -f conftest.$ac_objext libconftest.a
5801         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5802   (eval $lt_ar_try) 2>&5
5803   ac_status=$?
5804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5805   test $ac_status = 0; }
5806         if test "$ac_status" -ne 0; then
5807           lt_cv_ar_at_file=@
5808         fi
5809       fi
5810       rm -f conftest.* libconftest.a
5811
5812 fi
5813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5814
5815 fi
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5817 $as_echo "$lt_cv_ar_at_file" >&6; }
5818
5819 if test "x$lt_cv_ar_at_file" = xno; then
5820   archiver_list_spec=
5821 else
5822   archiver_list_spec=$lt_cv_ar_at_file
5823 fi
5824
5825
5826
5827
5828
5829
5830
5831 if test -n "$ac_tool_prefix"; then
5832   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5833 set dummy ${ac_tool_prefix}strip; ac_word=$2
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5835 $as_echo_n "checking for $ac_word... " >&6; }
5836 if ${ac_cv_prog_STRIP+:} false; then :
5837   $as_echo_n "(cached) " >&6
5838 else
5839   if test -n "$STRIP"; then
5840   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5841 else
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5844 do
5845   IFS=$as_save_IFS
5846   test -z "$as_dir" && as_dir=.
5847     for ac_exec_ext in '' $ac_executable_extensions; do
5848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851     break 2
5852   fi
5853 done
5854   done
5855 IFS=$as_save_IFS
5856
5857 fi
5858 fi
5859 STRIP=$ac_cv_prog_STRIP
5860 if test -n "$STRIP"; then
5861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5862 $as_echo "$STRIP" >&6; }
5863 else
5864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 $as_echo "no" >&6; }
5866 fi
5867
5868
5869 fi
5870 if test -z "$ac_cv_prog_STRIP"; then
5871   ac_ct_STRIP=$STRIP
5872   # Extract the first word of "strip", so it can be a program name with args.
5873 set dummy strip; ac_word=$2
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875 $as_echo_n "checking for $ac_word... " >&6; }
5876 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5877   $as_echo_n "(cached) " >&6
5878 else
5879   if test -n "$ac_ct_STRIP"; then
5880   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5884 do
5885   IFS=$as_save_IFS
5886   test -z "$as_dir" && as_dir=.
5887     for ac_exec_ext in '' $ac_executable_extensions; do
5888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889     ac_cv_prog_ac_ct_STRIP="strip"
5890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891     break 2
5892   fi
5893 done
5894   done
5895 IFS=$as_save_IFS
5896
5897 fi
5898 fi
5899 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5900 if test -n "$ac_ct_STRIP"; then
5901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5902 $as_echo "$ac_ct_STRIP" >&6; }
5903 else
5904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5906 fi
5907
5908   if test "x$ac_ct_STRIP" = x; then
5909     STRIP=":"
5910   else
5911     case $cross_compiling:$ac_tool_warned in
5912 yes:)
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5915 ac_tool_warned=yes ;;
5916 esac
5917     STRIP=$ac_ct_STRIP
5918   fi
5919 else
5920   STRIP="$ac_cv_prog_STRIP"
5921 fi
5922
5923 test -z "$STRIP" && STRIP=:
5924
5925
5926
5927
5928
5929
5930 if test -n "$ac_tool_prefix"; then
5931   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5932 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934 $as_echo_n "checking for $ac_word... " >&6; }
5935 if ${ac_cv_prog_RANLIB+:} false; then :
5936   $as_echo_n "(cached) " >&6
5937 else
5938   if test -n "$RANLIB"; then
5939   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5940 else
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5943 do
5944   IFS=$as_save_IFS
5945   test -z "$as_dir" && as_dir=.
5946     for ac_exec_ext in '' $ac_executable_extensions; do
5947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5950     break 2
5951   fi
5952 done
5953   done
5954 IFS=$as_save_IFS
5955
5956 fi
5957 fi
5958 RANLIB=$ac_cv_prog_RANLIB
5959 if test -n "$RANLIB"; then
5960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5961 $as_echo "$RANLIB" >&6; }
5962 else
5963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5964 $as_echo "no" >&6; }
5965 fi
5966
5967
5968 fi
5969 if test -z "$ac_cv_prog_RANLIB"; then
5970   ac_ct_RANLIB=$RANLIB
5971   # Extract the first word of "ranlib", so it can be a program name with args.
5972 set dummy ranlib; ac_word=$2
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5974 $as_echo_n "checking for $ac_word... " >&6; }
5975 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5976   $as_echo_n "(cached) " >&6
5977 else
5978   if test -n "$ac_ct_RANLIB"; then
5979   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5980 else
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 for as_dir in $PATH
5983 do
5984   IFS=$as_save_IFS
5985   test -z "$as_dir" && as_dir=.
5986     for ac_exec_ext in '' $ac_executable_extensions; do
5987   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988     ac_cv_prog_ac_ct_RANLIB="ranlib"
5989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5990     break 2
5991   fi
5992 done
5993   done
5994 IFS=$as_save_IFS
5995
5996 fi
5997 fi
5998 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5999 if test -n "$ac_ct_RANLIB"; then
6000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6001 $as_echo "$ac_ct_RANLIB" >&6; }
6002 else
6003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6004 $as_echo "no" >&6; }
6005 fi
6006
6007   if test "x$ac_ct_RANLIB" = x; then
6008     RANLIB=":"
6009   else
6010     case $cross_compiling:$ac_tool_warned in
6011 yes:)
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6014 ac_tool_warned=yes ;;
6015 esac
6016     RANLIB=$ac_ct_RANLIB
6017   fi
6018 else
6019   RANLIB="$ac_cv_prog_RANLIB"
6020 fi
6021
6022 test -z "$RANLIB" && RANLIB=:
6023
6024
6025
6026
6027
6028
6029 # Determine commands to create old-style static archives.
6030 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6031 old_postinstall_cmds='chmod 644 $oldlib'
6032 old_postuninstall_cmds=
6033
6034 if test -n "$RANLIB"; then
6035   case $host_os in
6036   openbsd*)
6037     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6038     ;;
6039   *)
6040     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6041     ;;
6042   esac
6043   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6044 fi
6045
6046 case $host_os in
6047   darwin*)
6048     lock_old_archive_extraction=yes ;;
6049   *)
6050     lock_old_archive_extraction=no ;;
6051 esac
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091 # If no C compiler was specified, use CC.
6092 LTCC=${LTCC-"$CC"}
6093
6094 # If no C compiler flags were specified, use CFLAGS.
6095 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6096
6097 # Allow CC to be a program name with arguments.
6098 compiler=$CC
6099
6100
6101 # Check for command to grab the raw symbol name followed by C symbol from nm.
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6103 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6104 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6105   $as_echo_n "(cached) " >&6
6106 else
6107
6108 # These are sane defaults that work on at least a few old systems.
6109 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6110
6111 # Character class describing NM global symbol codes.
6112 symcode='[BCDEGRST]'
6113
6114 # Regexp to match symbols that can be accessed directly from C.
6115 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6116
6117 # Define system-specific variables.
6118 case $host_os in
6119 aix*)
6120   symcode='[BCDT]'
6121   ;;
6122 cygwin* | mingw* | pw32* | cegcc*)
6123   symcode='[ABCDGISTW]'
6124   ;;
6125 hpux*)
6126   if test "$host_cpu" = ia64; then
6127     symcode='[ABCDEGRST]'
6128   fi
6129   ;;
6130 irix* | nonstopux*)
6131   symcode='[BCDEGRST]'
6132   ;;
6133 osf*)
6134   symcode='[BCDEGQRST]'
6135   ;;
6136 solaris*)
6137   symcode='[BDRT]'
6138   ;;
6139 sco3.2v5*)
6140   symcode='[DT]'
6141   ;;
6142 sysv4.2uw2*)
6143   symcode='[DT]'
6144   ;;
6145 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6146   symcode='[ABDT]'
6147   ;;
6148 sysv4)
6149   symcode='[DFNSTU]'
6150   ;;
6151 esac
6152
6153 # If we're using GNU nm, then use its standard symbol codes.
6154 case `$NM -V 2>&1` in
6155 *GNU* | *'with BFD'*)
6156   symcode='[ABCDGIRSTW]' ;;
6157 esac
6158
6159 # Transform an extracted symbol line into a proper C declaration.
6160 # Some systems (esp. on ia64) link data and code symbols differently,
6161 # so use this general approach.
6162 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6163
6164 # Transform an extracted symbol line into symbol name and symbol address
6165 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6166 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6167
6168 # Handle CRLF in mingw tool chain
6169 opt_cr=
6170 case $build_os in
6171 mingw*)
6172   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6173   ;;
6174 esac
6175
6176 # Try without a prefix underscore, then with it.
6177 for ac_symprfx in "" "_"; do
6178
6179   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6180   symxfrm="\\1 $ac_symprfx\\2 \\2"
6181
6182   # Write the raw and C identifiers.
6183   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6184     # Fake it for dumpbin and say T for any non-static function
6185     # and D for any global variable.
6186     # Also find C++ and __fastcall symbols from MSVC++,
6187     # which start with @ or ?.
6188     lt_cv_sys_global_symbol_pipe="$AWK '"\
6189 "     {last_section=section; section=\$ 3};"\
6190 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6191 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6192 "     \$ 0!~/External *\|/{next};"\
6193 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6194 "     {if(hide[section]) next};"\
6195 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6196 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6197 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6198 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6199 "     ' prfx=^$ac_symprfx"
6200   else
6201     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6202   fi
6203   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6204
6205   # Check to see that the pipe works correctly.
6206   pipe_works=no
6207
6208   rm -f conftest*
6209   cat > conftest.$ac_ext <<_LT_EOF
6210 #ifdef __cplusplus
6211 extern "C" {
6212 #endif
6213 char nm_test_var;
6214 void nm_test_func(void);
6215 void nm_test_func(void){}
6216 #ifdef __cplusplus
6217 }
6218 #endif
6219 int main(){nm_test_var='a';nm_test_func();return(0);}
6220 _LT_EOF
6221
6222   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6223   (eval $ac_compile) 2>&5
6224   ac_status=$?
6225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6226   test $ac_status = 0; }; then
6227     # Now try to grab the symbols.
6228     nlist=conftest.nm
6229     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6230   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6231   ac_status=$?
6232   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6233   test $ac_status = 0; } && test -s "$nlist"; then
6234       # Try sorting and uniquifying the output.
6235       if sort "$nlist" | uniq > "$nlist"T; then
6236         mv -f "$nlist"T "$nlist"
6237       else
6238         rm -f "$nlist"T
6239       fi
6240
6241       # Make sure that we snagged all the symbols we need.
6242       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6243         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6244           cat <<_LT_EOF > conftest.$ac_ext
6245 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6246 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6247 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6248    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6249 # define LT_DLSYM_CONST
6250 #elif defined(__osf__)
6251 /* This system does not cope well with relocations in const data.  */
6252 # define LT_DLSYM_CONST
6253 #else
6254 # define LT_DLSYM_CONST const
6255 #endif
6256
6257 #ifdef __cplusplus
6258 extern "C" {
6259 #endif
6260
6261 _LT_EOF
6262           # Now generate the symbol file.
6263           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6264
6265           cat <<_LT_EOF >> conftest.$ac_ext
6266
6267 /* The mapping between symbol names and symbols.  */
6268 LT_DLSYM_CONST struct {
6269   const char *name;
6270   void       *address;
6271 }
6272 lt__PROGRAM__LTX_preloaded_symbols[] =
6273 {
6274   { "@PROGRAM@", (void *) 0 },
6275 _LT_EOF
6276           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6277           cat <<\_LT_EOF >> conftest.$ac_ext
6278   {0, (void *) 0}
6279 };
6280
6281 /* This works around a problem in FreeBSD linker */
6282 #ifdef FREEBSD_WORKAROUND
6283 static const void *lt_preloaded_setup() {
6284   return lt__PROGRAM__LTX_preloaded_symbols;
6285 }
6286 #endif
6287
6288 #ifdef __cplusplus
6289 }
6290 #endif
6291 _LT_EOF
6292           # Now try linking the two files.
6293           mv conftest.$ac_objext conftstm.$ac_objext
6294           lt_globsym_save_LIBS=$LIBS
6295           lt_globsym_save_CFLAGS=$CFLAGS
6296           LIBS="conftstm.$ac_objext"
6297           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6298           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6299   (eval $ac_link) 2>&5
6300   ac_status=$?
6301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6302   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6303             pipe_works=yes
6304           fi
6305           LIBS=$lt_globsym_save_LIBS
6306           CFLAGS=$lt_globsym_save_CFLAGS
6307         else
6308           echo "cannot find nm_test_func in $nlist" >&5
6309         fi
6310       else
6311         echo "cannot find nm_test_var in $nlist" >&5
6312       fi
6313     else
6314       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6315     fi
6316   else
6317     echo "$progname: failed program was:" >&5
6318     cat conftest.$ac_ext >&5
6319   fi
6320   rm -rf conftest* conftst*
6321
6322   # Do not use the global_symbol_pipe unless it works.
6323   if test "$pipe_works" = yes; then
6324     break
6325   else
6326     lt_cv_sys_global_symbol_pipe=
6327   fi
6328 done
6329
6330 fi
6331
6332 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6333   lt_cv_sys_global_symbol_to_cdecl=
6334 fi
6335 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6337 $as_echo "failed" >&6; }
6338 else
6339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6340 $as_echo "ok" >&6; }
6341 fi
6342
6343 # Response file support.
6344 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6345   nm_file_list_spec='@'
6346 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6347   nm_file_list_spec='@'
6348 fi
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6377 $as_echo_n "checking for sysroot... " >&6; }
6378
6379 # Check whether --with-sysroot was given.
6380 if test "${with_sysroot+set}" = set; then :
6381   withval=$with_sysroot;
6382 else
6383   with_sysroot=no
6384 fi
6385
6386
6387 lt_sysroot=
6388 case ${with_sysroot} in #(
6389  yes)
6390    if test "$GCC" = yes; then
6391      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6392    fi
6393    ;; #(
6394  /*)
6395    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6396    ;; #(
6397  no|'')
6398    ;; #(
6399  *)
6400    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6401 $as_echo "${with_sysroot}" >&6; }
6402    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6403    ;;
6404 esac
6405
6406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6407 $as_echo "${lt_sysroot:-no}" >&6; }
6408
6409
6410
6411
6412
6413 # Check whether --enable-libtool-lock was given.
6414 if test "${enable_libtool_lock+set}" = set; then :
6415   enableval=$enable_libtool_lock;
6416 fi
6417
6418 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6419
6420 # Some flags need to be propagated to the compiler or linker for good
6421 # libtool support.
6422 case $host in
6423 ia64-*-hpux*)
6424   # Find out which ABI we are using.
6425   echo 'int i;' > conftest.$ac_ext
6426   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6427   (eval $ac_compile) 2>&5
6428   ac_status=$?
6429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6430   test $ac_status = 0; }; then
6431     case `/usr/bin/file conftest.$ac_objext` in
6432       *ELF-32*)
6433         HPUX_IA64_MODE="32"
6434         ;;
6435       *ELF-64*)
6436         HPUX_IA64_MODE="64"
6437         ;;
6438     esac
6439   fi
6440   rm -rf conftest*
6441   ;;
6442 *-*-irix6*)
6443   # Find out which ABI we are using.
6444   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6445   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6446   (eval $ac_compile) 2>&5
6447   ac_status=$?
6448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6449   test $ac_status = 0; }; then
6450     if test "$lt_cv_prog_gnu_ld" = yes; then
6451       case `/usr/bin/file conftest.$ac_objext` in
6452         *32-bit*)
6453           LD="${LD-ld} -melf32bsmip"
6454           ;;
6455         *N32*)
6456           LD="${LD-ld} -melf32bmipn32"
6457           ;;
6458         *64-bit*)
6459           LD="${LD-ld} -melf64bmip"
6460         ;;
6461       esac
6462     else
6463       case `/usr/bin/file conftest.$ac_objext` in
6464         *32-bit*)
6465           LD="${LD-ld} -32"
6466           ;;
6467         *N32*)
6468           LD="${LD-ld} -n32"
6469           ;;
6470         *64-bit*)
6471           LD="${LD-ld} -64"
6472           ;;
6473       esac
6474     fi
6475   fi
6476   rm -rf conftest*
6477   ;;
6478
6479 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6480 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6481   # Find out which ABI we are using.
6482   echo 'int i;' > conftest.$ac_ext
6483   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6484   (eval $ac_compile) 2>&5
6485   ac_status=$?
6486   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6487   test $ac_status = 0; }; then
6488     case `/usr/bin/file conftest.o` in
6489       *32-bit*)
6490         case $host in
6491           x86_64-*kfreebsd*-gnu)
6492             LD="${LD-ld} -m elf_i386_fbsd"
6493             ;;
6494           x86_64-*linux*)
6495             case `/usr/bin/file conftest.o` in
6496               *x86-64*)
6497                 LD="${LD-ld} -m elf32_x86_64"
6498                 ;;
6499               *)
6500                 LD="${LD-ld} -m elf_i386"
6501                 ;;
6502             esac
6503             ;;
6504           ppc64-*linux*|powerpc64-*linux*)
6505             LD="${LD-ld} -m elf32ppclinux"
6506             ;;
6507           s390x-*linux*)
6508             LD="${LD-ld} -m elf_s390"
6509             ;;
6510           sparc64-*linux*)
6511             LD="${LD-ld} -m elf32_sparc"
6512             ;;
6513         esac
6514         ;;
6515       *64-bit*)
6516         case $host in
6517           x86_64-*kfreebsd*-gnu)
6518             LD="${LD-ld} -m elf_x86_64_fbsd"
6519             ;;
6520           x86_64-*linux*)
6521             LD="${LD-ld} -m elf_x86_64"
6522             ;;
6523           ppc*-*linux*|powerpc*-*linux*)
6524             LD="${LD-ld} -m elf64ppc"
6525             ;;
6526           s390*-*linux*|s390*-*tpf*)
6527             LD="${LD-ld} -m elf64_s390"
6528             ;;
6529           sparc*-*linux*)
6530             LD="${LD-ld} -m elf64_sparc"
6531             ;;
6532         esac
6533         ;;
6534     esac
6535   fi
6536   rm -rf conftest*
6537   ;;
6538
6539 *-*-sco3.2v5*)
6540   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6541   SAVE_CFLAGS="$CFLAGS"
6542   CFLAGS="$CFLAGS -belf"
6543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6544 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6545 if ${lt_cv_cc_needs_belf+:} false; then :
6546   $as_echo_n "(cached) " >&6
6547 else
6548   ac_ext=c
6549 ac_cpp='$CPP $CPPFLAGS'
6550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6553
6554      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h.  */
6556
6557 int
6558 main ()
6559 {
6560
6561   ;
6562   return 0;
6563 }
6564 _ACEOF
6565 if ac_fn_c_try_link "$LINENO"; then :
6566   lt_cv_cc_needs_belf=yes
6567 else
6568   lt_cv_cc_needs_belf=no
6569 fi
6570 rm -f core conftest.err conftest.$ac_objext \
6571     conftest$ac_exeext conftest.$ac_ext
6572      ac_ext=c
6573 ac_cpp='$CPP $CPPFLAGS'
6574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6577
6578 fi
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6580 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6581   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6582     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6583     CFLAGS="$SAVE_CFLAGS"
6584   fi
6585   ;;
6586 *-*solaris*)
6587   # Find out which ABI we are using.
6588   echo 'int i;' > conftest.$ac_ext
6589   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6590   (eval $ac_compile) 2>&5
6591   ac_status=$?
6592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6593   test $ac_status = 0; }; then
6594     case `/usr/bin/file conftest.o` in
6595     *64-bit*)
6596       case $lt_cv_prog_gnu_ld in
6597       yes*)
6598         case $host in
6599         i?86-*-solaris*)
6600           LD="${LD-ld} -m elf_x86_64"
6601           ;;
6602         sparc*-*-solaris*)
6603           LD="${LD-ld} -m elf64_sparc"
6604           ;;
6605         esac
6606         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6607         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6608           LD="${LD-ld}_sol2"
6609         fi
6610         ;;
6611       *)
6612         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6613           LD="${LD-ld} -64"
6614         fi
6615         ;;
6616       esac
6617       ;;
6618     esac
6619   fi
6620   rm -rf conftest*
6621   ;;
6622 esac
6623
6624 need_locks="$enable_libtool_lock"
6625
6626 if test -n "$ac_tool_prefix"; then
6627   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6628 set dummy ${ac_tool_prefix}mt; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6632   $as_echo_n "(cached) " >&6
6633 else
6634   if test -n "$MANIFEST_TOOL"; then
6635   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640   IFS=$as_save_IFS
6641   test -z "$as_dir" && as_dir=.
6642     for ac_exec_ext in '' $ac_executable_extensions; do
6643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6644     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646     break 2
6647   fi
6648 done
6649   done
6650 IFS=$as_save_IFS
6651
6652 fi
6653 fi
6654 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6655 if test -n "$MANIFEST_TOOL"; then
6656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6657 $as_echo "$MANIFEST_TOOL" >&6; }
6658 else
6659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6661 fi
6662
6663
6664 fi
6665 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6666   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6667   # Extract the first word of "mt", so it can be a program name with args.
6668 set dummy mt; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6672   $as_echo_n "(cached) " >&6
6673 else
6674   if test -n "$ac_ct_MANIFEST_TOOL"; then
6675   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6676 else
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6679 do
6680   IFS=$as_save_IFS
6681   test -z "$as_dir" && as_dir=.
6682     for ac_exec_ext in '' $ac_executable_extensions; do
6683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6684     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686     break 2
6687   fi
6688 done
6689   done
6690 IFS=$as_save_IFS
6691
6692 fi
6693 fi
6694 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6695 if test -n "$ac_ct_MANIFEST_TOOL"; then
6696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6697 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6698 else
6699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6701 fi
6702
6703   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6704     MANIFEST_TOOL=":"
6705   else
6706     case $cross_compiling:$ac_tool_warned in
6707 yes:)
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710 ac_tool_warned=yes ;;
6711 esac
6712     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6713   fi
6714 else
6715   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6716 fi
6717
6718 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6720 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6721 if ${lt_cv_path_mainfest_tool+:} false; then :
6722   $as_echo_n "(cached) " >&6
6723 else
6724   lt_cv_path_mainfest_tool=no
6725   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6726   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6727   cat conftest.err >&5
6728   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6729     lt_cv_path_mainfest_tool=yes
6730   fi
6731   rm -f conftest*
6732 fi
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6734 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6735 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6736   MANIFEST_TOOL=:
6737 fi
6738
6739
6740
6741
6742
6743
6744   case $host_os in
6745     rhapsody* | darwin*)
6746     if test -n "$ac_tool_prefix"; then
6747   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6748 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750 $as_echo_n "checking for $ac_word... " >&6; }
6751 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6752   $as_echo_n "(cached) " >&6
6753 else
6754   if test -n "$DSYMUTIL"; then
6755   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6756 else
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760   IFS=$as_save_IFS
6761   test -z "$as_dir" && as_dir=.
6762     for ac_exec_ext in '' $ac_executable_extensions; do
6763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6764     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6766     break 2
6767   fi
6768 done
6769   done
6770 IFS=$as_save_IFS
6771
6772 fi
6773 fi
6774 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6775 if test -n "$DSYMUTIL"; then
6776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6777 $as_echo "$DSYMUTIL" >&6; }
6778 else
6779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780 $as_echo "no" >&6; }
6781 fi
6782
6783
6784 fi
6785 if test -z "$ac_cv_prog_DSYMUTIL"; then
6786   ac_ct_DSYMUTIL=$DSYMUTIL
6787   # Extract the first word of "dsymutil", so it can be a program name with args.
6788 set dummy dsymutil; ac_word=$2
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790 $as_echo_n "checking for $ac_word... " >&6; }
6791 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6792   $as_echo_n "(cached) " >&6
6793 else
6794   if test -n "$ac_ct_DSYMUTIL"; then
6795   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6796 else
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6799 do
6800   IFS=$as_save_IFS
6801   test -z "$as_dir" && as_dir=.
6802     for ac_exec_ext in '' $ac_executable_extensions; do
6803   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6804     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806     break 2
6807   fi
6808 done
6809   done
6810 IFS=$as_save_IFS
6811
6812 fi
6813 fi
6814 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6815 if test -n "$ac_ct_DSYMUTIL"; then
6816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6817 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6818 else
6819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820 $as_echo "no" >&6; }
6821 fi
6822
6823   if test "x$ac_ct_DSYMUTIL" = x; then
6824     DSYMUTIL=":"
6825   else
6826     case $cross_compiling:$ac_tool_warned in
6827 yes:)
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6830 ac_tool_warned=yes ;;
6831 esac
6832     DSYMUTIL=$ac_ct_DSYMUTIL
6833   fi
6834 else
6835   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6836 fi
6837
6838     if test -n "$ac_tool_prefix"; then
6839   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6840 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842 $as_echo_n "checking for $ac_word... " >&6; }
6843 if ${ac_cv_prog_NMEDIT+:} false; then :
6844   $as_echo_n "(cached) " >&6
6845 else
6846   if test -n "$NMEDIT"; then
6847   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6848 else
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 for as_dir in $PATH
6851 do
6852   IFS=$as_save_IFS
6853   test -z "$as_dir" && as_dir=.
6854     for ac_exec_ext in '' $ac_executable_extensions; do
6855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6856     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858     break 2
6859   fi
6860 done
6861   done
6862 IFS=$as_save_IFS
6863
6864 fi
6865 fi
6866 NMEDIT=$ac_cv_prog_NMEDIT
6867 if test -n "$NMEDIT"; then
6868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6869 $as_echo "$NMEDIT" >&6; }
6870 else
6871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 $as_echo "no" >&6; }
6873 fi
6874
6875
6876 fi
6877 if test -z "$ac_cv_prog_NMEDIT"; then
6878   ac_ct_NMEDIT=$NMEDIT
6879   # Extract the first word of "nmedit", so it can be a program name with args.
6880 set dummy nmedit; ac_word=$2
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6884   $as_echo_n "(cached) " >&6
6885 else
6886   if test -n "$ac_ct_NMEDIT"; then
6887   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6888 else
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6891 do
6892   IFS=$as_save_IFS
6893   test -z "$as_dir" && as_dir=.
6894     for ac_exec_ext in '' $ac_executable_extensions; do
6895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6896     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898     break 2
6899   fi
6900 done
6901   done
6902 IFS=$as_save_IFS
6903
6904 fi
6905 fi
6906 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6907 if test -n "$ac_ct_NMEDIT"; then
6908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6909 $as_echo "$ac_ct_NMEDIT" >&6; }
6910 else
6911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6913 fi
6914
6915   if test "x$ac_ct_NMEDIT" = x; then
6916     NMEDIT=":"
6917   else
6918     case $cross_compiling:$ac_tool_warned in
6919 yes:)
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6922 ac_tool_warned=yes ;;
6923 esac
6924     NMEDIT=$ac_ct_NMEDIT
6925   fi
6926 else
6927   NMEDIT="$ac_cv_prog_NMEDIT"
6928 fi
6929
6930     if test -n "$ac_tool_prefix"; then
6931   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6932 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934 $as_echo_n "checking for $ac_word... " >&6; }
6935 if ${ac_cv_prog_LIPO+:} false; then :
6936   $as_echo_n "(cached) " >&6
6937 else
6938   if test -n "$LIPO"; then
6939   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6940 else
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944   IFS=$as_save_IFS
6945   test -z "$as_dir" && as_dir=.
6946     for ac_exec_ext in '' $ac_executable_extensions; do
6947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6948     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950     break 2
6951   fi
6952 done
6953   done
6954 IFS=$as_save_IFS
6955
6956 fi
6957 fi
6958 LIPO=$ac_cv_prog_LIPO
6959 if test -n "$LIPO"; then
6960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6961 $as_echo "$LIPO" >&6; }
6962 else
6963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 $as_echo "no" >&6; }
6965 fi
6966
6967
6968 fi
6969 if test -z "$ac_cv_prog_LIPO"; then
6970   ac_ct_LIPO=$LIPO
6971   # Extract the first word of "lipo", so it can be a program name with args.
6972 set dummy lipo; ac_word=$2
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974 $as_echo_n "checking for $ac_word... " >&6; }
6975 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6976   $as_echo_n "(cached) " >&6
6977 else
6978   if test -n "$ac_ct_LIPO"; then
6979   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6980 else
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 for as_dir in $PATH
6983 do
6984   IFS=$as_save_IFS
6985   test -z "$as_dir" && as_dir=.
6986     for ac_exec_ext in '' $ac_executable_extensions; do
6987   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6988     ac_cv_prog_ac_ct_LIPO="lipo"
6989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6990     break 2
6991   fi
6992 done
6993   done
6994 IFS=$as_save_IFS
6995
6996 fi
6997 fi
6998 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6999 if test -n "$ac_ct_LIPO"; then
7000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7001 $as_echo "$ac_ct_LIPO" >&6; }
7002 else
7003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004 $as_echo "no" >&6; }
7005 fi
7006
7007   if test "x$ac_ct_LIPO" = x; then
7008     LIPO=":"
7009   else
7010     case $cross_compiling:$ac_tool_warned in
7011 yes:)
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7014 ac_tool_warned=yes ;;
7015 esac
7016     LIPO=$ac_ct_LIPO
7017   fi
7018 else
7019   LIPO="$ac_cv_prog_LIPO"
7020 fi
7021
7022     if test -n "$ac_tool_prefix"; then
7023   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7024 set dummy ${ac_tool_prefix}otool; ac_word=$2
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7026 $as_echo_n "checking for $ac_word... " >&6; }
7027 if ${ac_cv_prog_OTOOL+:} false; then :
7028   $as_echo_n "(cached) " >&6
7029 else
7030   if test -n "$OTOOL"; then
7031   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7032 else
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 for as_dir in $PATH
7035 do
7036   IFS=$as_save_IFS
7037   test -z "$as_dir" && as_dir=.
7038     for ac_exec_ext in '' $ac_executable_extensions; do
7039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7040     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7042     break 2
7043   fi
7044 done
7045   done
7046 IFS=$as_save_IFS
7047
7048 fi
7049 fi
7050 OTOOL=$ac_cv_prog_OTOOL
7051 if test -n "$OTOOL"; then
7052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7053 $as_echo "$OTOOL" >&6; }
7054 else
7055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056 $as_echo "no" >&6; }
7057 fi
7058
7059
7060 fi
7061 if test -z "$ac_cv_prog_OTOOL"; then
7062   ac_ct_OTOOL=$OTOOL
7063   # Extract the first word of "otool", so it can be a program name with args.
7064 set dummy otool; ac_word=$2
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066 $as_echo_n "checking for $ac_word... " >&6; }
7067 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7068   $as_echo_n "(cached) " >&6
7069 else
7070   if test -n "$ac_ct_OTOOL"; then
7071   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076   IFS=$as_save_IFS
7077   test -z "$as_dir" && as_dir=.
7078     for ac_exec_ext in '' $ac_executable_extensions; do
7079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7080     ac_cv_prog_ac_ct_OTOOL="otool"
7081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082     break 2
7083   fi
7084 done
7085   done
7086 IFS=$as_save_IFS
7087
7088 fi
7089 fi
7090 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7091 if test -n "$ac_ct_OTOOL"; then
7092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7093 $as_echo "$ac_ct_OTOOL" >&6; }
7094 else
7095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 $as_echo "no" >&6; }
7097 fi
7098
7099   if test "x$ac_ct_OTOOL" = x; then
7100     OTOOL=":"
7101   else
7102     case $cross_compiling:$ac_tool_warned in
7103 yes:)
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7106 ac_tool_warned=yes ;;
7107 esac
7108     OTOOL=$ac_ct_OTOOL
7109   fi
7110 else
7111   OTOOL="$ac_cv_prog_OTOOL"
7112 fi
7113
7114     if test -n "$ac_tool_prefix"; then
7115   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7116 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7118 $as_echo_n "checking for $ac_word... " >&6; }
7119 if ${ac_cv_prog_OTOOL64+:} false; then :
7120   $as_echo_n "(cached) " >&6
7121 else
7122   if test -n "$OTOOL64"; then
7123   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7124 else
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 for as_dir in $PATH
7127 do
7128   IFS=$as_save_IFS
7129   test -z "$as_dir" && as_dir=.
7130     for ac_exec_ext in '' $ac_executable_extensions; do
7131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7132     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7134     break 2
7135   fi
7136 done
7137   done
7138 IFS=$as_save_IFS
7139
7140 fi
7141 fi
7142 OTOOL64=$ac_cv_prog_OTOOL64
7143 if test -n "$OTOOL64"; then
7144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7145 $as_echo "$OTOOL64" >&6; }
7146 else
7147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7148 $as_echo "no" >&6; }
7149 fi
7150
7151
7152 fi
7153 if test -z "$ac_cv_prog_OTOOL64"; then
7154   ac_ct_OTOOL64=$OTOOL64
7155   # Extract the first word of "otool64", so it can be a program name with args.
7156 set dummy otool64; ac_word=$2
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7158 $as_echo_n "checking for $ac_word... " >&6; }
7159 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7160   $as_echo_n "(cached) " >&6
7161 else
7162   if test -n "$ac_ct_OTOOL64"; then
7163   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7164 else
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 for as_dir in $PATH
7167 do
7168   IFS=$as_save_IFS
7169   test -z "$as_dir" && as_dir=.
7170     for ac_exec_ext in '' $ac_executable_extensions; do
7171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7172     ac_cv_prog_ac_ct_OTOOL64="otool64"
7173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7174     break 2
7175   fi
7176 done
7177   done
7178 IFS=$as_save_IFS
7179
7180 fi
7181 fi
7182 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7183 if test -n "$ac_ct_OTOOL64"; then
7184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7185 $as_echo "$ac_ct_OTOOL64" >&6; }
7186 else
7187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188 $as_echo "no" >&6; }
7189 fi
7190
7191   if test "x$ac_ct_OTOOL64" = x; then
7192     OTOOL64=":"
7193   else
7194     case $cross_compiling:$ac_tool_warned in
7195 yes:)
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7198 ac_tool_warned=yes ;;
7199 esac
7200     OTOOL64=$ac_ct_OTOOL64
7201   fi
7202 else
7203   OTOOL64="$ac_cv_prog_OTOOL64"
7204 fi
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7233 $as_echo_n "checking for -single_module linker flag... " >&6; }
7234 if ${lt_cv_apple_cc_single_mod+:} false; then :
7235   $as_echo_n "(cached) " >&6
7236 else
7237   lt_cv_apple_cc_single_mod=no
7238       if test -z "${LT_MULTI_MODULE}"; then
7239         # By default we will add the -single_module flag. You can override
7240         # by either setting the environment variable LT_MULTI_MODULE
7241         # non-empty at configure time, or by adding -multi_module to the
7242         # link flags.
7243         rm -rf libconftest.dylib*
7244         echo "int foo(void){return 1;}" > conftest.c
7245         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7246 -dynamiclib -Wl,-single_module conftest.c" >&5
7247         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7248           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7249         _lt_result=$?
7250         # If there is a non-empty error log, and "single_module"
7251         # appears in it, assume the flag caused a linker warning
7252         if test -s conftest.err && $GREP single_module conftest.err; then
7253           cat conftest.err >&5
7254         # Otherwise, if the output was created with a 0 exit code from
7255         # the compiler, it worked.
7256         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7257           lt_cv_apple_cc_single_mod=yes
7258         else
7259           cat conftest.err >&5
7260         fi
7261         rm -rf libconftest.dylib*
7262         rm -f conftest.*
7263       fi
7264 fi
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7266 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7267
7268     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7269 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7270 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7271   $as_echo_n "(cached) " >&6
7272 else
7273   lt_cv_ld_exported_symbols_list=no
7274       save_LDFLAGS=$LDFLAGS
7275       echo "_main" > conftest.sym
7276       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7277       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h.  */
7279
7280 int
7281 main ()
7282 {
7283
7284   ;
7285   return 0;
7286 }
7287 _ACEOF
7288 if ac_fn_c_try_link "$LINENO"; then :
7289   lt_cv_ld_exported_symbols_list=yes
7290 else
7291   lt_cv_ld_exported_symbols_list=no
7292 fi
7293 rm -f core conftest.err conftest.$ac_objext \
7294     conftest$ac_exeext conftest.$ac_ext
7295         LDFLAGS="$save_LDFLAGS"
7296
7297 fi
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7299 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7300
7301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7302 $as_echo_n "checking for -force_load linker flag... " >&6; }
7303 if ${lt_cv_ld_force_load+:} false; then :
7304   $as_echo_n "(cached) " >&6
7305 else
7306   lt_cv_ld_force_load=no
7307       cat > conftest.c << _LT_EOF
7308 int forced_loaded() { return 2;}
7309 _LT_EOF
7310       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7311       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7312       echo "$AR cru libconftest.a conftest.o" >&5
7313       $AR cru libconftest.a conftest.o 2>&5
7314       echo "$RANLIB libconftest.a" >&5
7315       $RANLIB libconftest.a 2>&5
7316       cat > conftest.c << _LT_EOF
7317 int main() { return 0;}
7318 _LT_EOF
7319       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7320       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7321       _lt_result=$?
7322       if test -s conftest.err && $GREP force_load conftest.err; then
7323         cat conftest.err >&5
7324       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7325         lt_cv_ld_force_load=yes
7326       else
7327         cat conftest.err >&5
7328       fi
7329         rm -f conftest.err libconftest.a conftest conftest.c
7330         rm -rf conftest.dSYM
7331
7332 fi
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7334 $as_echo "$lt_cv_ld_force_load" >&6; }
7335     case $host_os in
7336     rhapsody* | darwin1.[012])
7337       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7338     darwin1.*)
7339       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7340     darwin*) # darwin 5.x on
7341       # if running on 10.5 or later, the deployment target defaults
7342       # to the OS version, if on x86, and 10.4, the deployment
7343       # target defaults to 10.4. Don't you love it?
7344       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7345         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7346           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7347         10.[012]*)
7348           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7349         10.*)
7350           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7351       esac
7352     ;;
7353   esac
7354     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7355       _lt_dar_single_mod='$single_module'
7356     fi
7357     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7358       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7359     else
7360       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7361     fi
7362     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7363       _lt_dsymutil='~$DSYMUTIL $lib || :'
7364     else
7365       _lt_dsymutil=
7366     fi
7367     ;;
7368   esac
7369
7370 ac_ext=c
7371 ac_cpp='$CPP $CPPFLAGS'
7372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7376 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7377 # On Suns, sometimes $CPP names a directory.
7378 if test -n "$CPP" && test -d "$CPP"; then
7379   CPP=
7380 fi
7381 if test -z "$CPP"; then
7382   if ${ac_cv_prog_CPP+:} false; then :
7383   $as_echo_n "(cached) " >&6
7384 else
7385       # Double quotes because CPP needs to be expanded
7386     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7387     do
7388       ac_preproc_ok=false
7389 for ac_c_preproc_warn_flag in '' yes
7390 do
7391   # Use a header file that comes with gcc, so configuring glibc
7392   # with a fresh cross-compiler works.
7393   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7394   # <limits.h> exists even on freestanding compilers.
7395   # On the NeXT, cc -E runs the code through the compiler's parser,
7396   # not just through cpp. "Syntax error" is here to catch this case.
7397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398 /* end confdefs.h.  */
7399 #ifdef __STDC__
7400 # include <limits.h>
7401 #else
7402 # include <assert.h>
7403 #endif
7404                      Syntax error
7405 _ACEOF
7406 if ac_fn_c_try_cpp "$LINENO"; then :
7407
7408 else
7409   # Broken: fails on valid input.
7410 continue
7411 fi
7412 rm -f conftest.err conftest.i conftest.$ac_ext
7413
7414   # OK, works on sane cases.  Now check whether nonexistent headers
7415   # can be detected and how.
7416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h.  */
7418 #include <ac_nonexistent.h>
7419 _ACEOF
7420 if ac_fn_c_try_cpp "$LINENO"; then :
7421   # Broken: success on invalid input.
7422 continue
7423 else
7424   # Passes both tests.
7425 ac_preproc_ok=:
7426 break
7427 fi
7428 rm -f conftest.err conftest.i conftest.$ac_ext
7429
7430 done
7431 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7432 rm -f conftest.i conftest.err conftest.$ac_ext
7433 if $ac_preproc_ok; then :
7434   break
7435 fi
7436
7437     done
7438     ac_cv_prog_CPP=$CPP
7439
7440 fi
7441   CPP=$ac_cv_prog_CPP
7442 else
7443   ac_cv_prog_CPP=$CPP
7444 fi
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7446 $as_echo "$CPP" >&6; }
7447 ac_preproc_ok=false
7448 for ac_c_preproc_warn_flag in '' yes
7449 do
7450   # Use a header file that comes with gcc, so configuring glibc
7451   # with a fresh cross-compiler works.
7452   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7453   # <limits.h> exists even on freestanding compilers.
7454   # On the NeXT, cc -E runs the code through the compiler's parser,
7455   # not just through cpp. "Syntax error" is here to catch this case.
7456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h.  */
7458 #ifdef __STDC__
7459 # include <limits.h>
7460 #else
7461 # include <assert.h>
7462 #endif
7463                      Syntax error
7464 _ACEOF
7465 if ac_fn_c_try_cpp "$LINENO"; then :
7466
7467 else
7468   # Broken: fails on valid input.
7469 continue
7470 fi
7471 rm -f conftest.err conftest.i conftest.$ac_ext
7472
7473   # OK, works on sane cases.  Now check whether nonexistent headers
7474   # can be detected and how.
7475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h.  */
7477 #include <ac_nonexistent.h>
7478 _ACEOF
7479 if ac_fn_c_try_cpp "$LINENO"; then :
7480   # Broken: success on invalid input.
7481 continue
7482 else
7483   # Passes both tests.
7484 ac_preproc_ok=:
7485 break
7486 fi
7487 rm -f conftest.err conftest.i conftest.$ac_ext
7488
7489 done
7490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7491 rm -f conftest.i conftest.err conftest.$ac_ext
7492 if $ac_preproc_ok; then :
7493
7494 else
7495   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7497 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7498 See \`config.log' for more details" "$LINENO" 5; }
7499 fi
7500
7501 ac_ext=c
7502 ac_cpp='$CPP $CPPFLAGS'
7503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7506
7507
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7509 $as_echo_n "checking for ANSI C header files... " >&6; }
7510 if ${ac_cv_header_stdc+:} false; then :
7511   $as_echo_n "(cached) " >&6
7512 else
7513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514 /* end confdefs.h.  */
7515 #include <stdlib.h>
7516 #include <stdarg.h>
7517 #include <string.h>
7518 #include <float.h>
7519
7520 int
7521 main ()
7522 {
7523
7524   ;
7525   return 0;
7526 }
7527 _ACEOF
7528 if ac_fn_c_try_compile "$LINENO"; then :
7529   ac_cv_header_stdc=yes
7530 else
7531   ac_cv_header_stdc=no
7532 fi
7533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7534
7535 if test $ac_cv_header_stdc = yes; then
7536   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h.  */
7539 #include <string.h>
7540
7541 _ACEOF
7542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7543   $EGREP "memchr" >/dev/null 2>&1; then :
7544
7545 else
7546   ac_cv_header_stdc=no
7547 fi
7548 rm -f conftest*
7549
7550 fi
7551
7552 if test $ac_cv_header_stdc = yes; then
7553   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h.  */
7556 #include <stdlib.h>
7557
7558 _ACEOF
7559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7560   $EGREP "free" >/dev/null 2>&1; then :
7561
7562 else
7563   ac_cv_header_stdc=no
7564 fi
7565 rm -f conftest*
7566
7567 fi
7568
7569 if test $ac_cv_header_stdc = yes; then
7570   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7571   if test "$cross_compiling" = yes; then :
7572   :
7573 else
7574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h.  */
7576 #include <ctype.h>
7577 #include <stdlib.h>
7578 #if ((' ' & 0x0FF) == 0x020)
7579 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7580 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7581 #else
7582 # define ISLOWER(c) \
7583                    (('a' <= (c) && (c) <= 'i') \
7584                      || ('j' <= (c) && (c) <= 'r') \
7585                      || ('s' <= (c) && (c) <= 'z'))
7586 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7587 #endif
7588
7589 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7590 int
7591 main ()
7592 {
7593   int i;
7594   for (i = 0; i < 256; i++)
7595     if (XOR (islower (i), ISLOWER (i))
7596         || toupper (i) != TOUPPER (i))
7597       return 2;
7598   return 0;
7599 }
7600 _ACEOF
7601 if ac_fn_c_try_run "$LINENO"; then :
7602
7603 else
7604   ac_cv_header_stdc=no
7605 fi
7606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7607   conftest.$ac_objext conftest.beam conftest.$ac_ext
7608 fi
7609
7610 fi
7611 fi
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7613 $as_echo "$ac_cv_header_stdc" >&6; }
7614 if test $ac_cv_header_stdc = yes; then
7615
7616 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7617
7618 fi
7619
7620 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7621 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7622                   inttypes.h stdint.h unistd.h
7623 do :
7624   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7625 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7626 "
7627 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7628   cat >>confdefs.h <<_ACEOF
7629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7630 _ACEOF
7631
7632 fi
7633
7634 done
7635
7636
7637 for ac_header in dlfcn.h
7638 do :
7639   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7640 "
7641 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7642   cat >>confdefs.h <<_ACEOF
7643 #define HAVE_DLFCN_H 1
7644 _ACEOF
7645
7646 fi
7647
7648 done
7649
7650
7651
7652
7653
7654 # Set options
7655
7656
7657
7658         enable_dlopen=no
7659
7660
7661   enable_win32_dll=no
7662
7663
7664             # Check whether --enable-shared was given.
7665 if test "${enable_shared+set}" = set; then :
7666   enableval=$enable_shared; p=${PACKAGE-default}
7667     case $enableval in
7668     yes) enable_shared=yes ;;
7669     no) enable_shared=no ;;
7670     *)
7671       enable_shared=no
7672       # Look at the argument we got.  We use all the common list separators.
7673       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7674       for pkg in $enableval; do
7675         IFS="$lt_save_ifs"
7676         if test "X$pkg" = "X$p"; then
7677           enable_shared=yes
7678         fi
7679       done
7680       IFS="$lt_save_ifs"
7681       ;;
7682     esac
7683 else
7684   enable_shared=yes
7685 fi
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695   # Check whether --enable-static was given.
7696 if test "${enable_static+set}" = set; then :
7697   enableval=$enable_static; p=${PACKAGE-default}
7698     case $enableval in
7699     yes) enable_static=yes ;;
7700     no) enable_static=no ;;
7701     *)
7702      enable_static=no
7703       # Look at the argument we got.  We use all the common list separators.
7704       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7705       for pkg in $enableval; do
7706         IFS="$lt_save_ifs"
7707         if test "X$pkg" = "X$p"; then
7708           enable_static=yes
7709         fi
7710       done
7711       IFS="$lt_save_ifs"
7712       ;;
7713     esac
7714 else
7715   enable_static=yes
7716 fi
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727 # Check whether --with-pic was given.
7728 if test "${with_pic+set}" = set; then :
7729   withval=$with_pic; lt_p=${PACKAGE-default}
7730     case $withval in
7731     yes|no) pic_mode=$withval ;;
7732     *)
7733       pic_mode=default
7734       # Look at the argument we got.  We use all the common list separators.
7735       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7736       for lt_pkg in $withval; do
7737         IFS="$lt_save_ifs"
7738         if test "X$lt_pkg" = "X$lt_p"; then
7739           pic_mode=yes
7740         fi
7741       done
7742       IFS="$lt_save_ifs"
7743       ;;
7744     esac
7745 else
7746   pic_mode=default
7747 fi
7748
7749
7750 test -z "$pic_mode" && pic_mode=default
7751
7752
7753
7754
7755
7756
7757
7758   # Check whether --enable-fast-install was given.
7759 if test "${enable_fast_install+set}" = set; then :
7760   enableval=$enable_fast_install; p=${PACKAGE-default}
7761     case $enableval in
7762     yes) enable_fast_install=yes ;;
7763     no) enable_fast_install=no ;;
7764     *)
7765       enable_fast_install=no
7766       # Look at the argument we got.  We use all the common list separators.
7767       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7768       for pkg in $enableval; do
7769         IFS="$lt_save_ifs"
7770         if test "X$pkg" = "X$p"; then
7771           enable_fast_install=yes
7772         fi
7773       done
7774       IFS="$lt_save_ifs"
7775       ;;
7776     esac
7777 else
7778   enable_fast_install=yes
7779 fi
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791 # This can be used to rebuild libtool when needed
7792 LIBTOOL_DEPS="$ltmain"
7793
7794 # Always use our own libtool.
7795 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826 test -z "$LN_S" && LN_S="ln -s"
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841 if test -n "${ZSH_VERSION+set}" ; then
7842    setopt NO_GLOB_SUBST
7843 fi
7844
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7846 $as_echo_n "checking for objdir... " >&6; }
7847 if ${lt_cv_objdir+:} false; then :
7848   $as_echo_n "(cached) " >&6
7849 else
7850   rm -f .libs 2>/dev/null
7851 mkdir .libs 2>/dev/null
7852 if test -d .libs; then
7853   lt_cv_objdir=.libs
7854 else
7855   # MS-DOS does not allow filenames that begin with a dot.
7856   lt_cv_objdir=_libs
7857 fi
7858 rmdir .libs 2>/dev/null
7859 fi
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7861 $as_echo "$lt_cv_objdir" >&6; }
7862 objdir=$lt_cv_objdir
7863
7864
7865
7866
7867
7868 cat >>confdefs.h <<_ACEOF
7869 #define LT_OBJDIR "$lt_cv_objdir/"
7870 _ACEOF
7871
7872
7873
7874
7875 case $host_os in
7876 aix3*)
7877   # AIX sometimes has problems with the GCC collect2 program.  For some
7878   # reason, if we set the COLLECT_NAMES environment variable, the problems
7879   # vanish in a puff of smoke.
7880   if test "X${COLLECT_NAMES+set}" != Xset; then
7881     COLLECT_NAMES=
7882     export COLLECT_NAMES
7883   fi
7884   ;;
7885 esac
7886
7887 # Global variables:
7888 ofile=libtool
7889 can_build_shared=yes
7890
7891 # All known linkers require a `.a' archive for static linking (except MSVC,
7892 # which needs '.lib').
7893 libext=a
7894
7895 with_gnu_ld="$lt_cv_prog_gnu_ld"
7896
7897 old_CC="$CC"
7898 old_CFLAGS="$CFLAGS"
7899
7900 # Set sane defaults for various variables
7901 test -z "$CC" && CC=cc
7902 test -z "$LTCC" && LTCC=$CC
7903 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7904 test -z "$LD" && LD=ld
7905 test -z "$ac_objext" && ac_objext=o
7906
7907 for cc_temp in $compiler""; do
7908   case $cc_temp in
7909     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7910     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7911     \-*) ;;
7912     *) break;;
7913   esac
7914 done
7915 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7916
7917
7918 # Only perform the check for file, if the check method requires it
7919 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7920 case $deplibs_check_method in
7921 file_magic*)
7922   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7924 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7925 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7926   $as_echo_n "(cached) " >&6
7927 else
7928   case $MAGIC_CMD in
7929 [\\/*] |  ?:[\\/]*)
7930   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7931   ;;
7932 *)
7933   lt_save_MAGIC_CMD="$MAGIC_CMD"
7934   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7935   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7936   for ac_dir in $ac_dummy; do
7937     IFS="$lt_save_ifs"
7938     test -z "$ac_dir" && ac_dir=.
7939     if test -f $ac_dir/${ac_tool_prefix}file; then
7940       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7941       if test -n "$file_magic_test_file"; then
7942         case $deplibs_check_method in
7943         "file_magic "*)
7944           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7945           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7946           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7947             $EGREP "$file_magic_regex" > /dev/null; then
7948             :
7949           else
7950             cat <<_LT_EOF 1>&2
7951
7952 *** Warning: the command libtool uses to detect shared libraries,
7953 *** $file_magic_cmd, produces output that libtool cannot recognize.
7954 *** The result is that libtool may fail to recognize shared libraries
7955 *** as such.  This will affect the creation of libtool libraries that
7956 *** depend on shared libraries, but programs linked with such libtool
7957 *** libraries will work regardless of this problem.  Nevertheless, you
7958 *** may want to report the problem to your system manager and/or to
7959 *** bug-libtool@gnu.org
7960
7961 _LT_EOF
7962           fi ;;
7963         esac
7964       fi
7965       break
7966     fi
7967   done
7968   IFS="$lt_save_ifs"
7969   MAGIC_CMD="$lt_save_MAGIC_CMD"
7970   ;;
7971 esac
7972 fi
7973
7974 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7975 if test -n "$MAGIC_CMD"; then
7976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7977 $as_echo "$MAGIC_CMD" >&6; }
7978 else
7979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980 $as_echo "no" >&6; }
7981 fi
7982
7983
7984
7985
7986
7987 if test -z "$lt_cv_path_MAGIC_CMD"; then
7988   if test -n "$ac_tool_prefix"; then
7989     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7990 $as_echo_n "checking for file... " >&6; }
7991 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7992   $as_echo_n "(cached) " >&6
7993 else
7994   case $MAGIC_CMD in
7995 [\\/*] |  ?:[\\/]*)
7996   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7997   ;;
7998 *)
7999   lt_save_MAGIC_CMD="$MAGIC_CMD"
8000   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8001   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8002   for ac_dir in $ac_dummy; do
8003     IFS="$lt_save_ifs"
8004     test -z "$ac_dir" && ac_dir=.
8005     if test -f $ac_dir/file; then
8006       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8007       if test -n "$file_magic_test_file"; then
8008         case $deplibs_check_method in
8009         "file_magic "*)
8010           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8011           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8012           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8013             $EGREP "$file_magic_regex" > /dev/null; then
8014             :
8015           else
8016             cat <<_LT_EOF 1>&2
8017
8018 *** Warning: the command libtool uses to detect shared libraries,
8019 *** $file_magic_cmd, produces output that libtool cannot recognize.
8020 *** The result is that libtool may fail to recognize shared libraries
8021 *** as such.  This will affect the creation of libtool libraries that
8022 *** depend on shared libraries, but programs linked with such libtool
8023 *** libraries will work regardless of this problem.  Nevertheless, you
8024 *** may want to report the problem to your system manager and/or to
8025 *** bug-libtool@gnu.org
8026
8027 _LT_EOF
8028           fi ;;
8029         esac
8030       fi
8031       break
8032     fi
8033   done
8034   IFS="$lt_save_ifs"
8035   MAGIC_CMD="$lt_save_MAGIC_CMD"
8036   ;;
8037 esac
8038 fi
8039
8040 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8041 if test -n "$MAGIC_CMD"; then
8042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8043 $as_echo "$MAGIC_CMD" >&6; }
8044 else
8045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8047 fi
8048
8049
8050   else
8051     MAGIC_CMD=:
8052   fi
8053 fi
8054
8055   fi
8056   ;;
8057 esac
8058
8059 # Use C for the default configuration in the libtool script
8060
8061 lt_save_CC="$CC"
8062 ac_ext=c
8063 ac_cpp='$CPP $CPPFLAGS'
8064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8067
8068
8069 # Source file extension for C test sources.
8070 ac_ext=c
8071
8072 # Object file extension for compiled C test sources.
8073 objext=o
8074 objext=$objext
8075
8076 # Code to be used in simple compile tests
8077 lt_simple_compile_test_code="int some_variable = 0;"
8078
8079 # Code to be used in simple link tests
8080 lt_simple_link_test_code='int main(){return(0);}'
8081
8082
8083
8084
8085
8086
8087
8088 # If no C compiler was specified, use CC.
8089 LTCC=${LTCC-"$CC"}
8090
8091 # If no C compiler flags were specified, use CFLAGS.
8092 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8093
8094 # Allow CC to be a program name with arguments.
8095 compiler=$CC
8096
8097 # Save the default compiler, since it gets overwritten when the other
8098 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8099 compiler_DEFAULT=$CC
8100
8101 # save warnings/boilerplate of simple test code
8102 ac_outfile=conftest.$ac_objext
8103 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8104 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8105 _lt_compiler_boilerplate=`cat conftest.err`
8106 $RM conftest*
8107
8108 ac_outfile=conftest.$ac_objext
8109 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8110 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8111 _lt_linker_boilerplate=`cat conftest.err`
8112 $RM -r conftest*
8113
8114
8115 ## CAVEAT EMPTOR:
8116 ## There is no encapsulation within the following macros, do not change
8117 ## the running order or otherwise move them around unless you know exactly
8118 ## what you are doing...
8119 if test -n "$compiler"; then
8120
8121 lt_prog_compiler_no_builtin_flag=
8122
8123 if test "$GCC" = yes; then
8124   case $cc_basename in
8125   nvcc*)
8126     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8127   *)
8128     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8129   esac
8130
8131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8132 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8133 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8134   $as_echo_n "(cached) " >&6
8135 else
8136   lt_cv_prog_compiler_rtti_exceptions=no
8137    ac_outfile=conftest.$ac_objext
8138    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8139    lt_compiler_flag="-fno-rtti -fno-exceptions"
8140    # Insert the option either (1) after the last *FLAGS variable, or
8141    # (2) before a word containing "conftest.", or (3) at the end.
8142    # Note that $ac_compile itself does not contain backslashes and begins
8143    # with a dollar sign (not a hyphen), so the echo should work correctly.
8144    # The option is referenced via a variable to avoid confusing sed.
8145    lt_compile=`echo "$ac_compile" | $SED \
8146    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8147    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8148    -e 's:$: $lt_compiler_flag:'`
8149    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8150    (eval "$lt_compile" 2>conftest.err)
8151    ac_status=$?
8152    cat conftest.err >&5
8153    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154    if (exit $ac_status) && test -s "$ac_outfile"; then
8155      # The compiler can only warn and ignore the option if not recognized
8156      # So say no if there are warnings other than the usual output.
8157      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8158      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8159      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8160        lt_cv_prog_compiler_rtti_exceptions=yes
8161      fi
8162    fi
8163    $RM conftest*
8164
8165 fi
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8167 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8168
8169 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8170     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8171 else
8172     :
8173 fi
8174
8175 fi
8176
8177
8178
8179
8180
8181
8182   lt_prog_compiler_wl=
8183 lt_prog_compiler_pic=
8184 lt_prog_compiler_static=
8185
8186
8187   if test "$GCC" = yes; then
8188     lt_prog_compiler_wl='-Wl,'
8189     lt_prog_compiler_static='-static'
8190
8191     case $host_os in
8192       aix*)
8193       # All AIX code is PIC.
8194       if test "$host_cpu" = ia64; then
8195         # AIX 5 now supports IA64 processor
8196         lt_prog_compiler_static='-Bstatic'
8197       fi
8198       ;;
8199
8200     amigaos*)
8201       case $host_cpu in
8202       powerpc)
8203             # see comment about AmigaOS4 .so support
8204             lt_prog_compiler_pic='-fPIC'
8205         ;;
8206       m68k)
8207             # FIXME: we need at least 68020 code to build shared libraries, but
8208             # adding the `-m68020' flag to GCC prevents building anything better,
8209             # like `-m68040'.
8210             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8211         ;;
8212       esac
8213       ;;
8214
8215     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8216       # PIC is the default for these OSes.
8217       ;;
8218
8219     mingw* | cygwin* | pw32* | os2* | cegcc*)
8220       # This hack is so that the source file can tell whether it is being
8221       # built for inclusion in a dll (and should export symbols for example).
8222       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8223       # (--disable-auto-import) libraries
8224       lt_prog_compiler_pic='-DDLL_EXPORT'
8225       ;;
8226
8227     darwin* | rhapsody*)
8228       # PIC is the default on this platform
8229       # Common symbols not allowed in MH_DYLIB files
8230       lt_prog_compiler_pic='-fno-common'
8231       ;;
8232
8233     haiku*)
8234       # PIC is the default for Haiku.
8235       # The "-static" flag exists, but is broken.
8236       lt_prog_compiler_static=
8237       ;;
8238
8239     hpux*)
8240       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8241       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8242       # sets the default TLS model and affects inlining.
8243       case $host_cpu in
8244       hppa*64*)
8245         # +Z the default
8246         ;;
8247       *)
8248         lt_prog_compiler_pic='-fPIC'
8249         ;;
8250       esac
8251       ;;
8252
8253     interix[3-9]*)
8254       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8255       # Instead, we relocate shared libraries at runtime.
8256       ;;
8257
8258     msdosdjgpp*)
8259       # Just because we use GCC doesn't mean we suddenly get shared libraries
8260       # on systems that don't support them.
8261       lt_prog_compiler_can_build_shared=no
8262       enable_shared=no
8263       ;;
8264
8265     *nto* | *qnx*)
8266       # QNX uses GNU C++, but need to define -shared option too, otherwise
8267       # it will coredump.
8268       lt_prog_compiler_pic='-fPIC -shared'
8269       ;;
8270
8271     sysv4*MP*)
8272       if test -d /usr/nec; then
8273         lt_prog_compiler_pic=-Kconform_pic
8274       fi
8275       ;;
8276
8277     *)
8278       lt_prog_compiler_pic='-fPIC'
8279       ;;
8280     esac
8281
8282     case $cc_basename in
8283     nvcc*) # Cuda Compiler Driver 2.2
8284       lt_prog_compiler_wl='-Xlinker '
8285       if test -n "$lt_prog_compiler_pic"; then
8286         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8287       fi
8288       ;;
8289     esac
8290   else
8291     # PORTME Check for flag to pass linker flags through the system compiler.
8292     case $host_os in
8293     aix*)
8294       lt_prog_compiler_wl='-Wl,'
8295       if test "$host_cpu" = ia64; then
8296         # AIX 5 now supports IA64 processor
8297         lt_prog_compiler_static='-Bstatic'
8298       else
8299         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8300       fi
8301       ;;
8302
8303     mingw* | cygwin* | pw32* | os2* | cegcc*)
8304       # This hack is so that the source file can tell whether it is being
8305       # built for inclusion in a dll (and should export symbols for example).
8306       lt_prog_compiler_pic='-DDLL_EXPORT'
8307       ;;
8308
8309     hpux9* | hpux10* | hpux11*)
8310       lt_prog_compiler_wl='-Wl,'
8311       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8312       # not for PA HP-UX.
8313       case $host_cpu in
8314       hppa*64*|ia64*)
8315         # +Z the default
8316         ;;
8317       *)
8318         lt_prog_compiler_pic='+Z'
8319         ;;
8320       esac
8321       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8322       lt_prog_compiler_static='${wl}-a ${wl}archive'
8323       ;;
8324
8325     irix5* | irix6* | nonstopux*)
8326       lt_prog_compiler_wl='-Wl,'
8327       # PIC (with -KPIC) is the default.
8328       lt_prog_compiler_static='-non_shared'
8329       ;;
8330
8331     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8332       case $cc_basename in
8333       # old Intel for x86_64 which still supported -KPIC.
8334       ecc*)
8335         lt_prog_compiler_wl='-Wl,'
8336         lt_prog_compiler_pic='-KPIC'
8337         lt_prog_compiler_static='-static'
8338         ;;
8339       # icc used to be incompatible with GCC.
8340       # ICC 10 doesn't accept -KPIC any more.
8341       icc* | ifort*)
8342         lt_prog_compiler_wl='-Wl,'
8343         lt_prog_compiler_pic='-fPIC'
8344         lt_prog_compiler_static='-static'
8345         ;;
8346       # Lahey Fortran 8.1.
8347       lf95*)
8348         lt_prog_compiler_wl='-Wl,'
8349         lt_prog_compiler_pic='--shared'
8350         lt_prog_compiler_static='--static'
8351         ;;
8352       nagfor*)
8353         # NAG Fortran compiler
8354         lt_prog_compiler_wl='-Wl,-Wl,,'
8355         lt_prog_compiler_pic='-PIC'
8356         lt_prog_compiler_static='-Bstatic'
8357         ;;
8358       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8359         # Portland Group compilers (*not* the Pentium gcc compiler,
8360         # which looks to be a dead project)
8361         lt_prog_compiler_wl='-Wl,'
8362         lt_prog_compiler_pic='-fpic'
8363         lt_prog_compiler_static='-Bstatic'
8364         ;;
8365       ccc*)
8366         lt_prog_compiler_wl='-Wl,'
8367         # All Alpha code is PIC.
8368         lt_prog_compiler_static='-non_shared'
8369         ;;
8370       xl* | bgxl* | bgf* | mpixl*)
8371         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8372         lt_prog_compiler_wl='-Wl,'
8373         lt_prog_compiler_pic='-qpic'
8374         lt_prog_compiler_static='-qstaticlink'
8375         ;;
8376       *)
8377         case `$CC -V 2>&1 | sed 5q` in
8378         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8379           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8380           lt_prog_compiler_pic='-KPIC'
8381           lt_prog_compiler_static='-Bstatic'
8382           lt_prog_compiler_wl=''
8383           ;;
8384         *Sun\ F* | *Sun*Fortran*)
8385           lt_prog_compiler_pic='-KPIC'
8386           lt_prog_compiler_static='-Bstatic'
8387           lt_prog_compiler_wl='-Qoption ld '
8388           ;;
8389         *Sun\ C*)
8390           # Sun C 5.9
8391           lt_prog_compiler_pic='-KPIC'
8392           lt_prog_compiler_static='-Bstatic'
8393           lt_prog_compiler_wl='-Wl,'
8394           ;;
8395         *Intel*\ [CF]*Compiler*)
8396           lt_prog_compiler_wl='-Wl,'
8397           lt_prog_compiler_pic='-fPIC'
8398           lt_prog_compiler_static='-static'
8399           ;;
8400         *Portland\ Group*)
8401           lt_prog_compiler_wl='-Wl,'
8402           lt_prog_compiler_pic='-fpic'
8403           lt_prog_compiler_static='-Bstatic'
8404           ;;
8405         esac
8406         ;;
8407       esac
8408       ;;
8409
8410     newsos6)
8411       lt_prog_compiler_pic='-KPIC'
8412       lt_prog_compiler_static='-Bstatic'
8413       ;;
8414
8415     *nto* | *qnx*)
8416       # QNX uses GNU C++, but need to define -shared option too, otherwise
8417       # it will coredump.
8418       lt_prog_compiler_pic='-fPIC -shared'
8419       ;;
8420
8421     osf3* | osf4* | osf5*)
8422       lt_prog_compiler_wl='-Wl,'
8423       # All OSF/1 code is PIC.
8424       lt_prog_compiler_static='-non_shared'
8425       ;;
8426
8427     rdos*)
8428       lt_prog_compiler_static='-non_shared'
8429       ;;
8430
8431     solaris*)
8432       lt_prog_compiler_pic='-KPIC'
8433       lt_prog_compiler_static='-Bstatic'
8434       case $cc_basename in
8435       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8436         lt_prog_compiler_wl='-Qoption ld ';;
8437       *)
8438         lt_prog_compiler_wl='-Wl,';;
8439       esac
8440       ;;
8441
8442     sunos4*)
8443       lt_prog_compiler_wl='-Qoption ld '
8444       lt_prog_compiler_pic='-PIC'
8445       lt_prog_compiler_static='-Bstatic'
8446       ;;
8447
8448     sysv4 | sysv4.2uw2* | sysv4.3*)
8449       lt_prog_compiler_wl='-Wl,'
8450       lt_prog_compiler_pic='-KPIC'
8451       lt_prog_compiler_static='-Bstatic'
8452       ;;
8453
8454     sysv4*MP*)
8455       if test -d /usr/nec ;then
8456         lt_prog_compiler_pic='-Kconform_pic'
8457         lt_prog_compiler_static='-Bstatic'
8458       fi
8459       ;;
8460
8461     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8462       lt_prog_compiler_wl='-Wl,'
8463       lt_prog_compiler_pic='-KPIC'
8464       lt_prog_compiler_static='-Bstatic'
8465       ;;
8466
8467     unicos*)
8468       lt_prog_compiler_wl='-Wl,'
8469       lt_prog_compiler_can_build_shared=no
8470       ;;
8471
8472     uts4*)
8473       lt_prog_compiler_pic='-pic'
8474       lt_prog_compiler_static='-Bstatic'
8475       ;;
8476
8477     *)
8478       lt_prog_compiler_can_build_shared=no
8479       ;;
8480     esac
8481   fi
8482
8483 case $host_os in
8484   # For platforms which do not support PIC, -DPIC is meaningless:
8485   *djgpp*)
8486     lt_prog_compiler_pic=
8487     ;;
8488   *)
8489     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8490     ;;
8491 esac
8492
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8494 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8495 if ${lt_cv_prog_compiler_pic+:} false; then :
8496   $as_echo_n "(cached) " >&6
8497 else
8498   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8499 fi
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8501 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8502 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8503
8504 #
8505 # Check to make sure the PIC flag actually works.
8506 #
8507 if test -n "$lt_prog_compiler_pic"; then
8508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8509 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8510 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8511   $as_echo_n "(cached) " >&6
8512 else
8513   lt_cv_prog_compiler_pic_works=no
8514    ac_outfile=conftest.$ac_objext
8515    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8516    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8517    # Insert the option either (1) after the last *FLAGS variable, or
8518    # (2) before a word containing "conftest.", or (3) at the end.
8519    # Note that $ac_compile itself does not contain backslashes and begins
8520    # with a dollar sign (not a hyphen), so the echo should work correctly.
8521    # The option is referenced via a variable to avoid confusing sed.
8522    lt_compile=`echo "$ac_compile" | $SED \
8523    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8524    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8525    -e 's:$: $lt_compiler_flag:'`
8526    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8527    (eval "$lt_compile" 2>conftest.err)
8528    ac_status=$?
8529    cat conftest.err >&5
8530    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531    if (exit $ac_status) && test -s "$ac_outfile"; then
8532      # The compiler can only warn and ignore the option if not recognized
8533      # So say no if there are warnings other than the usual output.
8534      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8535      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8536      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8537        lt_cv_prog_compiler_pic_works=yes
8538      fi
8539    fi
8540    $RM conftest*
8541
8542 fi
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8544 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8545
8546 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8547     case $lt_prog_compiler_pic in
8548      "" | " "*) ;;
8549      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8550      esac
8551 else
8552     lt_prog_compiler_pic=
8553      lt_prog_compiler_can_build_shared=no
8554 fi
8555
8556 fi
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568 #
8569 # Check to make sure the static flag actually works.
8570 #
8571 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8573 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8574 if ${lt_cv_prog_compiler_static_works+:} false; then :
8575   $as_echo_n "(cached) " >&6
8576 else
8577   lt_cv_prog_compiler_static_works=no
8578    save_LDFLAGS="$LDFLAGS"
8579    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8580    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8581    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8582      # The linker can only warn and ignore the option if not recognized
8583      # So say no if there are warnings
8584      if test -s conftest.err; then
8585        # Append any errors to the config.log.
8586        cat conftest.err 1>&5
8587        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8588        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8589        if diff conftest.exp conftest.er2 >/dev/null; then
8590          lt_cv_prog_compiler_static_works=yes
8591        fi
8592      else
8593        lt_cv_prog_compiler_static_works=yes
8594      fi
8595    fi
8596    $RM -r conftest*
8597    LDFLAGS="$save_LDFLAGS"
8598
8599 fi
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8601 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8602
8603 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8604     :
8605 else
8606     lt_prog_compiler_static=
8607 fi
8608
8609
8610
8611
8612
8613
8614
8615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8616 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8617 if ${lt_cv_prog_compiler_c_o+:} false; then :
8618   $as_echo_n "(cached) " >&6
8619 else
8620   lt_cv_prog_compiler_c_o=no
8621    $RM -r conftest 2>/dev/null
8622    mkdir conftest
8623    cd conftest
8624    mkdir out
8625    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8626
8627    lt_compiler_flag="-o out/conftest2.$ac_objext"
8628    # Insert the option either (1) after the last *FLAGS variable, or
8629    # (2) before a word containing "conftest.", or (3) at the end.
8630    # Note that $ac_compile itself does not contain backslashes and begins
8631    # with a dollar sign (not a hyphen), so the echo should work correctly.
8632    lt_compile=`echo "$ac_compile" | $SED \
8633    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8634    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8635    -e 's:$: $lt_compiler_flag:'`
8636    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8637    (eval "$lt_compile" 2>out/conftest.err)
8638    ac_status=$?
8639    cat out/conftest.err >&5
8640    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8642    then
8643      # The compiler can only warn and ignore the option if not recognized
8644      # So say no if there are warnings
8645      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8646      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8647      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8648        lt_cv_prog_compiler_c_o=yes
8649      fi
8650    fi
8651    chmod u+w . 2>&5
8652    $RM conftest*
8653    # SGI C++ compiler will create directory out/ii_files/ for
8654    # template instantiation
8655    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8656    $RM out/* && rmdir out
8657    cd ..
8658    $RM -r conftest
8659    $RM conftest*
8660
8661 fi
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8663 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8664
8665
8666
8667
8668
8669
8670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8671 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8672 if ${lt_cv_prog_compiler_c_o+:} false; then :
8673   $as_echo_n "(cached) " >&6
8674 else
8675   lt_cv_prog_compiler_c_o=no
8676    $RM -r conftest 2>/dev/null
8677    mkdir conftest
8678    cd conftest
8679    mkdir out
8680    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8681
8682    lt_compiler_flag="-o out/conftest2.$ac_objext"
8683    # Insert the option either (1) after the last *FLAGS variable, or
8684    # (2) before a word containing "conftest.", or (3) at the end.
8685    # Note that $ac_compile itself does not contain backslashes and begins
8686    # with a dollar sign (not a hyphen), so the echo should work correctly.
8687    lt_compile=`echo "$ac_compile" | $SED \
8688    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8689    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8690    -e 's:$: $lt_compiler_flag:'`
8691    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8692    (eval "$lt_compile" 2>out/conftest.err)
8693    ac_status=$?
8694    cat out/conftest.err >&5
8695    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8697    then
8698      # The compiler can only warn and ignore the option if not recognized
8699      # So say no if there are warnings
8700      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8701      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8702      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8703        lt_cv_prog_compiler_c_o=yes
8704      fi
8705    fi
8706    chmod u+w . 2>&5
8707    $RM conftest*
8708    # SGI C++ compiler will create directory out/ii_files/ for
8709    # template instantiation
8710    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8711    $RM out/* && rmdir out
8712    cd ..
8713    $RM -r conftest
8714    $RM conftest*
8715
8716 fi
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8718 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8719
8720
8721
8722
8723 hard_links="nottested"
8724 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8725   # do not overwrite the value of need_locks provided by the user
8726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8727 $as_echo_n "checking if we can lock with hard links... " >&6; }
8728   hard_links=yes
8729   $RM conftest*
8730   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8731   touch conftest.a
8732   ln conftest.a conftest.b 2>&5 || hard_links=no
8733   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8735 $as_echo "$hard_links" >&6; }
8736   if test "$hard_links" = no; then
8737     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8738 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8739     need_locks=warn
8740   fi
8741 else
8742   need_locks=no
8743 fi
8744
8745
8746
8747
8748
8749
8750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8751 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8752
8753   runpath_var=
8754   allow_undefined_flag=
8755   always_export_symbols=no
8756   archive_cmds=
8757   archive_expsym_cmds=
8758   compiler_needs_object=no
8759   enable_shared_with_static_runtimes=no
8760   export_dynamic_flag_spec=
8761   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8762   hardcode_automatic=no
8763   hardcode_direct=no
8764   hardcode_direct_absolute=no
8765   hardcode_libdir_flag_spec=
8766   hardcode_libdir_separator=
8767   hardcode_minus_L=no
8768   hardcode_shlibpath_var=unsupported
8769   inherit_rpath=no
8770   link_all_deplibs=unknown
8771   module_cmds=
8772   module_expsym_cmds=
8773   old_archive_from_new_cmds=
8774   old_archive_from_expsyms_cmds=
8775   thread_safe_flag_spec=
8776   whole_archive_flag_spec=
8777   # include_expsyms should be a list of space-separated symbols to be *always*
8778   # included in the symbol list
8779   include_expsyms=
8780   # exclude_expsyms can be an extended regexp of symbols to exclude
8781   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8782   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8783   # as well as any symbol that contains `d'.
8784   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8785   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8786   # platforms (ab)use it in PIC code, but their linkers get confused if
8787   # the symbol is explicitly referenced.  Since portable code cannot
8788   # rely on this symbol name, it's probably fine to never include it in
8789   # preloaded symbol tables.
8790   # Exclude shared library initialization/finalization symbols.
8791   extract_expsyms_cmds=
8792
8793   case $host_os in
8794   cygwin* | mingw* | pw32* | cegcc*)
8795     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8796     # When not using gcc, we currently assume that we are using
8797     # Microsoft Visual C++.
8798     if test "$GCC" != yes; then
8799       with_gnu_ld=no
8800     fi
8801     ;;
8802   interix*)
8803     # we just hope/assume this is gcc and not c89 (= MSVC++)
8804     with_gnu_ld=yes
8805     ;;
8806   openbsd*)
8807     with_gnu_ld=no
8808     ;;
8809   linux* | k*bsd*-gnu | gnu*)
8810     link_all_deplibs=no
8811     ;;
8812   esac
8813
8814   ld_shlibs=yes
8815
8816   # On some targets, GNU ld is compatible enough with the native linker
8817   # that we're better off using the native interface for both.
8818   lt_use_gnu_ld_interface=no
8819   if test "$with_gnu_ld" = yes; then
8820     case $host_os in
8821       aix*)
8822         # The AIX port of GNU ld has always aspired to compatibility
8823         # with the native linker.  However, as the warning in the GNU ld
8824         # block says, versions before 2.19.5* couldn't really create working
8825         # shared libraries, regardless of the interface used.
8826         case `$LD -v 2>&1` in
8827           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8828           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8829           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8830           *)
8831             lt_use_gnu_ld_interface=yes
8832             ;;
8833         esac
8834         ;;
8835       *)
8836         lt_use_gnu_ld_interface=yes
8837         ;;
8838     esac
8839   fi
8840
8841   if test "$lt_use_gnu_ld_interface" = yes; then
8842     # If archive_cmds runs LD, not CC, wlarc should be empty
8843     wlarc='${wl}'
8844
8845     # Set some defaults for GNU ld with shared library support. These
8846     # are reset later if shared libraries are not supported. Putting them
8847     # here allows them to be overridden if necessary.
8848     runpath_var=LD_RUN_PATH
8849     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8850     export_dynamic_flag_spec='${wl}--export-dynamic'
8851     # ancient GNU ld didn't support --whole-archive et. al.
8852     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8853       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8854     else
8855       whole_archive_flag_spec=
8856     fi
8857     supports_anon_versioning=no
8858     case `$LD -v 2>&1` in
8859       *GNU\ gold*) supports_anon_versioning=yes ;;
8860       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8861       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8862       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8863       *\ 2.11.*) ;; # other 2.11 versions
8864       *) supports_anon_versioning=yes ;;
8865     esac
8866
8867     # See if GNU ld supports shared libraries.
8868     case $host_os in
8869     aix[3-9]*)
8870       # On AIX/PPC, the GNU linker is very broken
8871       if test "$host_cpu" != ia64; then
8872         ld_shlibs=no
8873         cat <<_LT_EOF 1>&2
8874
8875 *** Warning: the GNU linker, at least up to release 2.19, is reported
8876 *** to be unable to reliably create shared libraries on AIX.
8877 *** Therefore, libtool is disabling shared libraries support.  If you
8878 *** really care for shared libraries, you may want to install binutils
8879 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8880 *** You will then need to restart the configuration process.
8881
8882 _LT_EOF
8883       fi
8884       ;;
8885
8886     amigaos*)
8887       case $host_cpu in
8888       powerpc)
8889             # see comment about AmigaOS4 .so support
8890             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8891             archive_expsym_cmds=''
8892         ;;
8893       m68k)
8894             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)'
8895             hardcode_libdir_flag_spec='-L$libdir'
8896             hardcode_minus_L=yes
8897         ;;
8898       esac
8899       ;;
8900
8901     beos*)
8902       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8903         allow_undefined_flag=unsupported
8904         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8905         # support --undefined.  This deserves some investigation.  FIXME
8906         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8907       else
8908         ld_shlibs=no
8909       fi
8910       ;;
8911
8912     cygwin* | mingw* | pw32* | cegcc*)
8913       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8914       # as there is no search path for DLLs.
8915       hardcode_libdir_flag_spec='-L$libdir'
8916       export_dynamic_flag_spec='${wl}--export-all-symbols'
8917       allow_undefined_flag=unsupported
8918       always_export_symbols=no
8919       enable_shared_with_static_runtimes=yes
8920       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'
8921       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8922
8923       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8924         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8925         # If the export-symbols file already is a .def file (1st line
8926         # is EXPORTS), use it as is; otherwise, prepend...
8927         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8928           cp $export_symbols $output_objdir/$soname.def;
8929         else
8930           echo EXPORTS > $output_objdir/$soname.def;
8931           cat $export_symbols >> $output_objdir/$soname.def;
8932         fi~
8933         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8934       else
8935         ld_shlibs=no
8936       fi
8937       ;;
8938
8939     haiku*)
8940       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8941       link_all_deplibs=yes
8942       ;;
8943
8944     interix[3-9]*)
8945       hardcode_direct=no
8946       hardcode_shlibpath_var=no
8947       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8948       export_dynamic_flag_spec='${wl}-E'
8949       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8950       # Instead, shared libraries are loaded at an image base (0x10000000 by
8951       # default) and relocated if they conflict, which is a slow very memory
8952       # consuming and fragmenting process.  To avoid this, we pick a random,
8953       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8954       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8955       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8956       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'
8957       ;;
8958
8959     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8960       tmp_diet=no
8961       if test "$host_os" = linux-dietlibc; then
8962         case $cc_basename in
8963           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8964         esac
8965       fi
8966       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8967          && test "$tmp_diet" = no
8968       then
8969         tmp_addflag=' $pic_flag'
8970         tmp_sharedflag='-shared'
8971         case $cc_basename,$host_cpu in
8972         pgcc*)                          # Portland Group C compiler
8973           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'
8974           tmp_addflag=' $pic_flag'
8975           ;;
8976         pgf77* | pgf90* | pgf95* | pgfortran*)
8977                                         # Portland Group f77 and f90 compilers
8978           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'
8979           tmp_addflag=' $pic_flag -Mnomain' ;;
8980         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8981           tmp_addflag=' -i_dynamic' ;;
8982         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8983           tmp_addflag=' -i_dynamic -nofor_main' ;;
8984         ifc* | ifort*)                  # Intel Fortran compiler
8985           tmp_addflag=' -nofor_main' ;;
8986         lf95*)                          # Lahey Fortran 8.1
8987           whole_archive_flag_spec=
8988           tmp_sharedflag='--shared' ;;
8989         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8990           tmp_sharedflag='-qmkshrobj'
8991           tmp_addflag= ;;
8992         nvcc*)  # Cuda Compiler Driver 2.2
8993           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'
8994           compiler_needs_object=yes
8995           ;;
8996         esac
8997         case `$CC -V 2>&1 | sed 5q` in
8998         *Sun\ C*)                       # Sun C 5.9
8999           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'
9000           compiler_needs_object=yes
9001           tmp_sharedflag='-G' ;;
9002         *Sun\ F*)                       # Sun Fortran 8.3
9003           tmp_sharedflag='-G' ;;
9004         esac
9005         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9006
9007         if test "x$supports_anon_versioning" = xyes; then
9008           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9009             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9010             echo "local: *; };" >> $output_objdir/$libname.ver~
9011             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9012         fi
9013
9014         case $cc_basename in
9015         xlf* | bgf* | bgxlf* | mpixlf*)
9016           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9017           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9018           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9019           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9020           if test "x$supports_anon_versioning" = xyes; then
9021             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9022               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9023               echo "local: *; };" >> $output_objdir/$libname.ver~
9024               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9025           fi
9026           ;;
9027         esac
9028       else
9029         ld_shlibs=no
9030       fi
9031       ;;
9032
9033     netbsd* | netbsdelf*-gnu)
9034       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9035         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9036         wlarc=
9037       else
9038         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9039         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9040       fi
9041       ;;
9042
9043     solaris*)
9044       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9045         ld_shlibs=no
9046         cat <<_LT_EOF 1>&2
9047
9048 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9049 *** create shared libraries on Solaris systems.  Therefore, libtool
9050 *** is disabling shared libraries support.  We urge you to upgrade GNU
9051 *** binutils to release 2.9.1 or newer.  Another option is to modify
9052 *** your PATH or compiler configuration so that the native linker is
9053 *** used, and then restart.
9054
9055 _LT_EOF
9056       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9057         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9058         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9059       else
9060         ld_shlibs=no
9061       fi
9062       ;;
9063
9064     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9065       case `$LD -v 2>&1` in
9066         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9067         ld_shlibs=no
9068         cat <<_LT_EOF 1>&2
9069
9070 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9071 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9072 *** is disabling shared libraries support.  We urge you to upgrade GNU
9073 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9074 *** your PATH or compiler configuration so that the native linker is
9075 *** used, and then restart.
9076
9077 _LT_EOF
9078         ;;
9079         *)
9080           # For security reasons, it is highly recommended that you always
9081           # use absolute paths for naming shared libraries, and exclude the
9082           # DT_RUNPATH tag from executables and libraries.  But doing so
9083           # requires that you compile everything twice, which is a pain.
9084           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9085             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9086             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9087             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9088           else
9089             ld_shlibs=no
9090           fi
9091         ;;
9092       esac
9093       ;;
9094
9095     sunos4*)
9096       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9097       wlarc=
9098       hardcode_direct=yes
9099       hardcode_shlibpath_var=no
9100       ;;
9101
9102     *)
9103       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9104         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9105         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9106       else
9107         ld_shlibs=no
9108       fi
9109       ;;
9110     esac
9111
9112     if test "$ld_shlibs" = no; then
9113       runpath_var=
9114       hardcode_libdir_flag_spec=
9115       export_dynamic_flag_spec=
9116       whole_archive_flag_spec=
9117     fi
9118   else
9119     # PORTME fill in a description of your system's linker (not GNU ld)
9120     case $host_os in
9121     aix3*)
9122       allow_undefined_flag=unsupported
9123       always_export_symbols=yes
9124       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'
9125       # Note: this linker hardcodes the directories in LIBPATH if there
9126       # are no directories specified by -L.
9127       hardcode_minus_L=yes
9128       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9129         # Neither direct hardcoding nor static linking is supported with a
9130         # broken collect2.
9131         hardcode_direct=unsupported
9132       fi
9133       ;;
9134
9135     aix[4-9]*)
9136       if test "$host_cpu" = ia64; then
9137         # On IA64, the linker does run time linking by default, so we don't
9138         # have to do anything special.
9139         aix_use_runtimelinking=no
9140         exp_sym_flag='-Bexport'
9141         no_entry_flag=""
9142       else
9143         # If we're using GNU nm, then we don't want the "-C" option.
9144         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9145         # Also, AIX nm treats weak defined symbols like other global
9146         # defined symbols, whereas GNU nm marks them as "W".
9147         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9148           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9149         else
9150           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9151         fi
9152         aix_use_runtimelinking=no
9153
9154         # Test if we are trying to use run time linking or normal
9155         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9156         # need to do runtime linking.
9157         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9158           for ld_flag in $LDFLAGS; do
9159           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9160             aix_use_runtimelinking=yes
9161             break
9162           fi
9163           done
9164           ;;
9165         esac
9166
9167         exp_sym_flag='-bexport'
9168         no_entry_flag='-bnoentry'
9169       fi
9170
9171       # When large executables or shared objects are built, AIX ld can
9172       # have problems creating the table of contents.  If linking a library
9173       # or program results in "error TOC overflow" add -mminimal-toc to
9174       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9175       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9176
9177       archive_cmds=''
9178       hardcode_direct=yes
9179       hardcode_direct_absolute=yes
9180       hardcode_libdir_separator=':'
9181       link_all_deplibs=yes
9182       file_list_spec='${wl}-f,'
9183
9184       if test "$GCC" = yes; then
9185         case $host_os in aix4.[012]|aix4.[012].*)
9186         # We only want to do this on AIX 4.2 and lower, the check
9187         # below for broken collect2 doesn't work under 4.3+
9188           collect2name=`${CC} -print-prog-name=collect2`
9189           if test -f "$collect2name" &&
9190            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9191           then
9192           # We have reworked collect2
9193           :
9194           else
9195           # We have old collect2
9196           hardcode_direct=unsupported
9197           # It fails to find uninstalled libraries when the uninstalled
9198           # path is not listed in the libpath.  Setting hardcode_minus_L
9199           # to unsupported forces relinking
9200           hardcode_minus_L=yes
9201           hardcode_libdir_flag_spec='-L$libdir'
9202           hardcode_libdir_separator=
9203           fi
9204           ;;
9205         esac
9206         shared_flag='-shared'
9207         if test "$aix_use_runtimelinking" = yes; then
9208           shared_flag="$shared_flag "'${wl}-G'
9209         fi
9210         link_all_deplibs=no
9211       else
9212         # not using gcc
9213         if test "$host_cpu" = ia64; then
9214         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9215         # chokes on -Wl,-G. The following line is correct:
9216           shared_flag='-G'
9217         else
9218           if test "$aix_use_runtimelinking" = yes; then
9219             shared_flag='${wl}-G'
9220           else
9221             shared_flag='${wl}-bM:SRE'
9222           fi
9223         fi
9224       fi
9225
9226       export_dynamic_flag_spec='${wl}-bexpall'
9227       # It seems that -bexpall does not export symbols beginning with
9228       # underscore (_), so it is better to generate a list of symbols to export.
9229       always_export_symbols=yes
9230       if test "$aix_use_runtimelinking" = yes; then
9231         # Warning - without using the other runtime loading flags (-brtl),
9232         # -berok will link without error, but may produce a broken library.
9233         allow_undefined_flag='-berok'
9234         # Determine the default libpath from the value encoded in an
9235         # empty executable.
9236         if test "${lt_cv_aix_libpath+set}" = set; then
9237   aix_libpath=$lt_cv_aix_libpath
9238 else
9239   if ${lt_cv_aix_libpath_+:} false; then :
9240   $as_echo_n "(cached) " >&6
9241 else
9242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243 /* end confdefs.h.  */
9244
9245 int
9246 main ()
9247 {
9248
9249   ;
9250   return 0;
9251 }
9252 _ACEOF
9253 if ac_fn_c_try_link "$LINENO"; then :
9254
9255   lt_aix_libpath_sed='
9256       /Import File Strings/,/^$/ {
9257           /^0/ {
9258               s/^0  *\([^ ]*\) *$/\1/
9259               p
9260           }
9261       }'
9262   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9263   # Check for a 64-bit object if we didn't find anything.
9264   if test -z "$lt_cv_aix_libpath_"; then
9265     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9266   fi
9267 fi
9268 rm -f core conftest.err conftest.$ac_objext \
9269     conftest$ac_exeext conftest.$ac_ext
9270   if test -z "$lt_cv_aix_libpath_"; then
9271     lt_cv_aix_libpath_="/usr/lib:/lib"
9272   fi
9273
9274 fi
9275
9276   aix_libpath=$lt_cv_aix_libpath_
9277 fi
9278
9279         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9280         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9281       else
9282         if test "$host_cpu" = ia64; then
9283           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9284           allow_undefined_flag="-z nodefs"
9285           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"
9286         else
9287          # Determine the default libpath from the value encoded in an
9288          # empty executable.
9289          if test "${lt_cv_aix_libpath+set}" = set; then
9290   aix_libpath=$lt_cv_aix_libpath
9291 else
9292   if ${lt_cv_aix_libpath_+:} false; then :
9293   $as_echo_n "(cached) " >&6
9294 else
9295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h.  */
9297
9298 int
9299 main ()
9300 {
9301
9302   ;
9303   return 0;
9304 }
9305 _ACEOF
9306 if ac_fn_c_try_link "$LINENO"; then :
9307
9308   lt_aix_libpath_sed='
9309       /Import File Strings/,/^$/ {
9310           /^0/ {
9311               s/^0  *\([^ ]*\) *$/\1/
9312               p
9313           }
9314       }'
9315   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9316   # Check for a 64-bit object if we didn't find anything.
9317   if test -z "$lt_cv_aix_libpath_"; then
9318     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9319   fi
9320 fi
9321 rm -f core conftest.err conftest.$ac_objext \
9322     conftest$ac_exeext conftest.$ac_ext
9323   if test -z "$lt_cv_aix_libpath_"; then
9324     lt_cv_aix_libpath_="/usr/lib:/lib"
9325   fi
9326
9327 fi
9328
9329   aix_libpath=$lt_cv_aix_libpath_
9330 fi
9331
9332          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9333           # Warning - without using the other run time loading flags,
9334           # -berok will link without error, but may produce a broken library.
9335           no_undefined_flag=' ${wl}-bernotok'
9336           allow_undefined_flag=' ${wl}-berok'
9337           if test "$with_gnu_ld" = yes; then
9338             # We only use this code for GNU lds that support --whole-archive.
9339             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9340           else
9341             # Exported symbols can be pulled into shared objects from archives
9342             whole_archive_flag_spec='$convenience'
9343           fi
9344           archive_cmds_need_lc=yes
9345           # This is similar to how AIX traditionally builds its shared libraries.
9346           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9347         fi
9348       fi
9349       ;;
9350
9351     amigaos*)
9352       case $host_cpu in
9353       powerpc)
9354             # see comment about AmigaOS4 .so support
9355             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9356             archive_expsym_cmds=''
9357         ;;
9358       m68k)
9359             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)'
9360             hardcode_libdir_flag_spec='-L$libdir'
9361             hardcode_minus_L=yes
9362         ;;
9363       esac
9364       ;;
9365
9366     bsdi[45]*)
9367       export_dynamic_flag_spec=-rdynamic
9368       ;;
9369
9370     cygwin* | mingw* | pw32* | cegcc*)
9371       # When not using gcc, we currently assume that we are using
9372       # Microsoft Visual C++.
9373       # hardcode_libdir_flag_spec is actually meaningless, as there is
9374       # no search path for DLLs.
9375       case $cc_basename in
9376       cl*)
9377         # Native MSVC
9378         hardcode_libdir_flag_spec=' '
9379         allow_undefined_flag=unsupported
9380         always_export_symbols=yes
9381         file_list_spec='@'
9382         # Tell ltmain to make .lib files, not .a files.
9383         libext=lib
9384         # Tell ltmain to make .dll files, not .so files.
9385         shrext_cmds=".dll"
9386         # FIXME: Setting linknames here is a bad hack.
9387         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9388         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9389             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9390           else
9391             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9392           fi~
9393           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9394           linknames='
9395         # The linker will not automatically build a static lib if we build a DLL.
9396         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9397         enable_shared_with_static_runtimes=yes
9398         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9399         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9400         # Don't use ranlib
9401         old_postinstall_cmds='chmod 644 $oldlib'
9402         postlink_cmds='lt_outputfile="@OUTPUT@"~
9403           lt_tool_outputfile="@TOOL_OUTPUT@"~
9404           case $lt_outputfile in
9405             *.exe|*.EXE) ;;
9406             *)
9407               lt_outputfile="$lt_outputfile.exe"
9408               lt_tool_outputfile="$lt_tool_outputfile.exe"
9409               ;;
9410           esac~
9411           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9412             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9413             $RM "$lt_outputfile.manifest";
9414           fi'
9415         ;;
9416       *)
9417         # Assume MSVC wrapper
9418         hardcode_libdir_flag_spec=' '
9419         allow_undefined_flag=unsupported
9420         # Tell ltmain to make .lib files, not .a files.
9421         libext=lib
9422         # Tell ltmain to make .dll files, not .so files.
9423         shrext_cmds=".dll"
9424         # FIXME: Setting linknames here is a bad hack.
9425         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9426         # The linker will automatically build a .lib file if we build a DLL.
9427         old_archive_from_new_cmds='true'
9428         # FIXME: Should let the user specify the lib program.
9429         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9430         enable_shared_with_static_runtimes=yes
9431         ;;
9432       esac
9433       ;;
9434
9435     darwin* | rhapsody*)
9436
9437
9438   archive_cmds_need_lc=no
9439   hardcode_direct=no
9440   hardcode_automatic=yes
9441   hardcode_shlibpath_var=unsupported
9442   if test "$lt_cv_ld_force_load" = "yes"; then
9443     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\"`'
9444
9445   else
9446     whole_archive_flag_spec=''
9447   fi
9448   link_all_deplibs=yes
9449   allow_undefined_flag="$_lt_dar_allow_undefined"
9450   case $cc_basename in
9451      ifort*) _lt_dar_can_shared=yes ;;
9452      *) _lt_dar_can_shared=$GCC ;;
9453   esac
9454   if test "$_lt_dar_can_shared" = "yes"; then
9455     output_verbose_link_cmd=func_echo_all
9456     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9457     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9458     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}"
9459     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}"
9460
9461   else
9462   ld_shlibs=no
9463   fi
9464
9465       ;;
9466
9467     dgux*)
9468       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9469       hardcode_libdir_flag_spec='-L$libdir'
9470       hardcode_shlibpath_var=no
9471       ;;
9472
9473     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9474     # support.  Future versions do this automatically, but an explicit c++rt0.o
9475     # does not break anything, and helps significantly (at the cost of a little
9476     # extra space).
9477     freebsd2.2*)
9478       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9479       hardcode_libdir_flag_spec='-R$libdir'
9480       hardcode_direct=yes
9481       hardcode_shlibpath_var=no
9482       ;;
9483
9484     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9485     freebsd2.*)
9486       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9487       hardcode_direct=yes
9488       hardcode_minus_L=yes
9489       hardcode_shlibpath_var=no
9490       ;;
9491
9492     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9493     freebsd* | dragonfly*)
9494       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9495       hardcode_libdir_flag_spec='-R$libdir'
9496       hardcode_direct=yes
9497       hardcode_shlibpath_var=no
9498       ;;
9499
9500     hpux9*)
9501       if test "$GCC" = yes; then
9502         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9503       else
9504         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9505       fi
9506       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9507       hardcode_libdir_separator=:
9508       hardcode_direct=yes
9509
9510       # hardcode_minus_L: Not really in the search PATH,
9511       # but as the default location of the library.
9512       hardcode_minus_L=yes
9513       export_dynamic_flag_spec='${wl}-E'
9514       ;;
9515
9516     hpux10*)
9517       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9518         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9519       else
9520         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9521       fi
9522       if test "$with_gnu_ld" = no; then
9523         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9524         hardcode_libdir_separator=:
9525         hardcode_direct=yes
9526         hardcode_direct_absolute=yes
9527         export_dynamic_flag_spec='${wl}-E'
9528         # hardcode_minus_L: Not really in the search PATH,
9529         # but as the default location of the library.
9530         hardcode_minus_L=yes
9531       fi
9532       ;;
9533
9534     hpux11*)
9535       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9536         case $host_cpu in
9537         hppa*64*)
9538           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9539           ;;
9540         ia64*)
9541           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9542           ;;
9543         *)
9544           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9545           ;;
9546         esac
9547       else
9548         case $host_cpu in
9549         hppa*64*)
9550           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9551           ;;
9552         ia64*)
9553           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9554           ;;
9555         *)
9556
9557           # Older versions of the 11.00 compiler do not understand -b yet
9558           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9559           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9560 $as_echo_n "checking if $CC understands -b... " >&6; }
9561 if ${lt_cv_prog_compiler__b+:} false; then :
9562   $as_echo_n "(cached) " >&6
9563 else
9564   lt_cv_prog_compiler__b=no
9565    save_LDFLAGS="$LDFLAGS"
9566    LDFLAGS="$LDFLAGS -b"
9567    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9568    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9569      # The linker can only warn and ignore the option if not recognized
9570      # So say no if there are warnings
9571      if test -s conftest.err; then
9572        # Append any errors to the config.log.
9573        cat conftest.err 1>&5
9574        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9575        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9576        if diff conftest.exp conftest.er2 >/dev/null; then
9577          lt_cv_prog_compiler__b=yes
9578        fi
9579      else
9580        lt_cv_prog_compiler__b=yes
9581      fi
9582    fi
9583    $RM -r conftest*
9584    LDFLAGS="$save_LDFLAGS"
9585
9586 fi
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9588 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9589
9590 if test x"$lt_cv_prog_compiler__b" = xyes; then
9591     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9592 else
9593     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9594 fi
9595
9596           ;;
9597         esac
9598       fi
9599       if test "$with_gnu_ld" = no; then
9600         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9601         hardcode_libdir_separator=:
9602
9603         case $host_cpu in
9604         hppa*64*|ia64*)
9605           hardcode_direct=no
9606           hardcode_shlibpath_var=no
9607           ;;
9608         *)
9609           hardcode_direct=yes
9610           hardcode_direct_absolute=yes
9611           export_dynamic_flag_spec='${wl}-E'
9612
9613           # hardcode_minus_L: Not really in the search PATH,
9614           # but as the default location of the library.
9615           hardcode_minus_L=yes
9616           ;;
9617         esac
9618       fi
9619       ;;
9620
9621     irix5* | irix6* | nonstopux*)
9622       if test "$GCC" = yes; then
9623         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'
9624         # Try to use the -exported_symbol ld option, if it does not
9625         # work, assume that -exports_file does not work either and
9626         # implicitly export all symbols.
9627         # This should be the same for all languages, so no per-tag cache variable.
9628         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9629 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9630 if ${lt_cv_irix_exported_symbol+:} false; then :
9631   $as_echo_n "(cached) " >&6
9632 else
9633   save_LDFLAGS="$LDFLAGS"
9634            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9635            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h.  */
9637 int foo (void) { return 0; }
9638 _ACEOF
9639 if ac_fn_c_try_link "$LINENO"; then :
9640   lt_cv_irix_exported_symbol=yes
9641 else
9642   lt_cv_irix_exported_symbol=no
9643 fi
9644 rm -f core conftest.err conftest.$ac_objext \
9645     conftest$ac_exeext conftest.$ac_ext
9646            LDFLAGS="$save_LDFLAGS"
9647 fi
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9649 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9650         if test "$lt_cv_irix_exported_symbol" = yes; then
9651           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'
9652         fi
9653       else
9654         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'
9655         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'
9656       fi
9657       archive_cmds_need_lc='no'
9658       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9659       hardcode_libdir_separator=:
9660       inherit_rpath=yes
9661       link_all_deplibs=yes
9662       ;;
9663
9664     netbsd* | netbsdelf*-gnu)
9665       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9666         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9667       else
9668         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9669       fi
9670       hardcode_libdir_flag_spec='-R$libdir'
9671       hardcode_direct=yes
9672       hardcode_shlibpath_var=no
9673       ;;
9674
9675     newsos6)
9676       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9677       hardcode_direct=yes
9678       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9679       hardcode_libdir_separator=:
9680       hardcode_shlibpath_var=no
9681       ;;
9682
9683     *nto* | *qnx*)
9684       ;;
9685
9686     openbsd*)
9687       if test -f /usr/libexec/ld.so; then
9688         hardcode_direct=yes
9689         hardcode_shlibpath_var=no
9690         hardcode_direct_absolute=yes
9691         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9692           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9693           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9694           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9695           export_dynamic_flag_spec='${wl}-E'
9696         else
9697           case $host_os in
9698            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9699              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9700              hardcode_libdir_flag_spec='-R$libdir'
9701              ;;
9702            *)
9703              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9704              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9705              ;;
9706           esac
9707         fi
9708       else
9709         ld_shlibs=no
9710       fi
9711       ;;
9712
9713     os2*)
9714       hardcode_libdir_flag_spec='-L$libdir'
9715       hardcode_minus_L=yes
9716       allow_undefined_flag=unsupported
9717       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9718       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9719       ;;
9720
9721     osf3*)
9722       if test "$GCC" = yes; then
9723         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9724         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'
9725       else
9726         allow_undefined_flag=' -expect_unresolved \*'
9727         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'
9728       fi
9729       archive_cmds_need_lc='no'
9730       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9731       hardcode_libdir_separator=:
9732       ;;
9733
9734     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9735       if test "$GCC" = yes; then
9736         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9737         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'
9738         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9739       else
9740         allow_undefined_flag=' -expect_unresolved \*'
9741         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'
9742         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~
9743         $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'
9744
9745         # Both c and cxx compiler support -rpath directly
9746         hardcode_libdir_flag_spec='-rpath $libdir'
9747       fi
9748       archive_cmds_need_lc='no'
9749       hardcode_libdir_separator=:
9750       ;;
9751
9752     solaris*)
9753       no_undefined_flag=' -z defs'
9754       if test "$GCC" = yes; then
9755         wlarc='${wl}'
9756         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9757         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9758           $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'
9759       else
9760         case `$CC -V 2>&1` in
9761         *"Compilers 5.0"*)
9762           wlarc=''
9763           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9764           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9765           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9766           ;;
9767         *)
9768           wlarc='${wl}'
9769           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9770           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9771           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9772           ;;
9773         esac
9774       fi
9775       hardcode_libdir_flag_spec='-R$libdir'
9776       hardcode_shlibpath_var=no
9777       case $host_os in
9778       solaris2.[0-5] | solaris2.[0-5].*) ;;
9779       *)
9780         # The compiler driver will combine and reorder linker options,
9781         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9782         # but is careful enough not to reorder.
9783         # Supported since Solaris 2.6 (maybe 2.5.1?)
9784         if test "$GCC" = yes; then
9785           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9786         else
9787           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9788         fi
9789         ;;
9790       esac
9791       link_all_deplibs=yes
9792       ;;
9793
9794     sunos4*)
9795       if test "x$host_vendor" = xsequent; then
9796         # Use $CC to link under sequent, because it throws in some extra .o
9797         # files that make .init and .fini sections work.
9798         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9799       else
9800         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9801       fi
9802       hardcode_libdir_flag_spec='-L$libdir'
9803       hardcode_direct=yes
9804       hardcode_minus_L=yes
9805       hardcode_shlibpath_var=no
9806       ;;
9807
9808     sysv4)
9809       case $host_vendor in
9810         sni)
9811           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9812           hardcode_direct=yes # is this really true???
9813         ;;
9814         siemens)
9815           ## LD is ld it makes a PLAMLIB
9816           ## CC just makes a GrossModule.
9817           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9818           reload_cmds='$CC -r -o $output$reload_objs'
9819           hardcode_direct=no
9820         ;;
9821         motorola)
9822           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9823           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9824         ;;
9825       esac
9826       runpath_var='LD_RUN_PATH'
9827       hardcode_shlibpath_var=no
9828       ;;
9829
9830     sysv4.3*)
9831       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9832       hardcode_shlibpath_var=no
9833       export_dynamic_flag_spec='-Bexport'
9834       ;;
9835
9836     sysv4*MP*)
9837       if test -d /usr/nec; then
9838         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9839         hardcode_shlibpath_var=no
9840         runpath_var=LD_RUN_PATH
9841         hardcode_runpath_var=yes
9842         ld_shlibs=yes
9843       fi
9844       ;;
9845
9846     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9847       no_undefined_flag='${wl}-z,text'
9848       archive_cmds_need_lc=no
9849       hardcode_shlibpath_var=no
9850       runpath_var='LD_RUN_PATH'
9851
9852       if test "$GCC" = yes; then
9853         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9854         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9855       else
9856         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9857         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9858       fi
9859       ;;
9860
9861     sysv5* | sco3.2v5* | sco5v6*)
9862       # Note: We can NOT use -z defs as we might desire, because we do not
9863       # link with -lc, and that would cause any symbols used from libc to
9864       # always be unresolved, which means just about no library would
9865       # ever link correctly.  If we're not using GNU ld we use -z text
9866       # though, which does catch some bad symbols but isn't as heavy-handed
9867       # as -z defs.
9868       no_undefined_flag='${wl}-z,text'
9869       allow_undefined_flag='${wl}-z,nodefs'
9870       archive_cmds_need_lc=no
9871       hardcode_shlibpath_var=no
9872       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9873       hardcode_libdir_separator=':'
9874       link_all_deplibs=yes
9875       export_dynamic_flag_spec='${wl}-Bexport'
9876       runpath_var='LD_RUN_PATH'
9877
9878       if test "$GCC" = yes; then
9879         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9880         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9881       else
9882         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9883         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9884       fi
9885       ;;
9886
9887     uts4*)
9888       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9889       hardcode_libdir_flag_spec='-L$libdir'
9890       hardcode_shlibpath_var=no
9891       ;;
9892
9893     *)
9894       ld_shlibs=no
9895       ;;
9896     esac
9897
9898     if test x$host_vendor = xsni; then
9899       case $host in
9900       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9901         export_dynamic_flag_spec='${wl}-Blargedynsym'
9902         ;;
9903       esac
9904     fi
9905   fi
9906
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9908 $as_echo "$ld_shlibs" >&6; }
9909 test "$ld_shlibs" = no && can_build_shared=no
9910
9911 with_gnu_ld=$with_gnu_ld
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927 #
9928 # Do we need to explicitly link libc?
9929 #
9930 case "x$archive_cmds_need_lc" in
9931 x|xyes)
9932   # Assume -lc should be added
9933   archive_cmds_need_lc=yes
9934
9935   if test "$enable_shared" = yes && test "$GCC" = yes; then
9936     case $archive_cmds in
9937     *'~'*)
9938       # FIXME: we may have to deal with multi-command sequences.
9939       ;;
9940     '$CC '*)
9941       # Test whether the compiler implicitly links with -lc since on some
9942       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9943       # to ld, don't add -lc before -lgcc.
9944       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9945 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9946 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9947   $as_echo_n "(cached) " >&6
9948 else
9949   $RM conftest*
9950         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9951
9952         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9953   (eval $ac_compile) 2>&5
9954   ac_status=$?
9955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9956   test $ac_status = 0; } 2>conftest.err; then
9957           soname=conftest
9958           lib=conftest
9959           libobjs=conftest.$ac_objext
9960           deplibs=
9961           wl=$lt_prog_compiler_wl
9962           pic_flag=$lt_prog_compiler_pic
9963           compiler_flags=-v
9964           linker_flags=-v
9965           verstring=
9966           output_objdir=.
9967           libname=conftest
9968           lt_save_allow_undefined_flag=$allow_undefined_flag
9969           allow_undefined_flag=
9970           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9971   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9972   ac_status=$?
9973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9974   test $ac_status = 0; }
9975           then
9976             lt_cv_archive_cmds_need_lc=no
9977           else
9978             lt_cv_archive_cmds_need_lc=yes
9979           fi
9980           allow_undefined_flag=$lt_save_allow_undefined_flag
9981         else
9982           cat conftest.err 1>&5
9983         fi
9984         $RM conftest*
9985
9986 fi
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9988 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9989       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9990       ;;
9991     esac
9992   fi
9993   ;;
9994 esac
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10148 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10149
10150 if test "$GCC" = yes; then
10151   case $host_os in
10152     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10153     *) lt_awk_arg="/^libraries:/" ;;
10154   esac
10155   case $host_os in
10156     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10157     *) lt_sed_strip_eq="s,=/,/,g" ;;
10158   esac
10159   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10160   case $lt_search_path_spec in
10161   *\;*)
10162     # if the path contains ";" then we assume it to be the separator
10163     # otherwise default to the standard path separator (i.e. ":") - it is
10164     # assumed that no part of a normal pathname contains ";" but that should
10165     # okay in the real world where ";" in dirpaths is itself problematic.
10166     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10167     ;;
10168   *)
10169     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10170     ;;
10171   esac
10172   # Ok, now we have the path, separated by spaces, we can step through it
10173   # and add multilib dir if necessary.
10174   lt_tmp_lt_search_path_spec=
10175   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10176   for lt_sys_path in $lt_search_path_spec; do
10177     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10178       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10179     else
10180       test -d "$lt_sys_path" && \
10181         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10182     fi
10183   done
10184   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10185 BEGIN {RS=" "; FS="/|\n";} {
10186   lt_foo="";
10187   lt_count=0;
10188   for (lt_i = NF; lt_i > 0; lt_i--) {
10189     if ($lt_i != "" && $lt_i != ".") {
10190       if ($lt_i == "..") {
10191         lt_count++;
10192       } else {
10193         if (lt_count == 0) {
10194           lt_foo="/" $lt_i lt_foo;
10195         } else {
10196           lt_count--;
10197         }
10198       }
10199     }
10200   }
10201   if (lt_foo != "") { lt_freq[lt_foo]++; }
10202   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10203 }'`
10204   # AWK program above erroneously prepends '/' to C:/dos/paths
10205   # for these hosts.
10206   case $host_os in
10207     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10208       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10209   esac
10210   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10211 else
10212   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10213 fi
10214 library_names_spec=
10215 libname_spec='lib$name'
10216 soname_spec=
10217 shrext_cmds=".so"
10218 postinstall_cmds=
10219 postuninstall_cmds=
10220 finish_cmds=
10221 finish_eval=
10222 shlibpath_var=
10223 shlibpath_overrides_runpath=unknown
10224 version_type=none
10225 dynamic_linker="$host_os ld.so"
10226 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10227 need_lib_prefix=unknown
10228 hardcode_into_libs=no
10229
10230 # when you set need_version to no, make sure it does not cause -set_version
10231 # flags to be left without arguments
10232 need_version=unknown
10233
10234 case $host_os in
10235 aix3*)
10236   version_type=linux # correct to gnu/linux during the next big refactor
10237   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10238   shlibpath_var=LIBPATH
10239
10240   # AIX 3 has no versioning support, so we append a major version to the name.
10241   soname_spec='${libname}${release}${shared_ext}$major'
10242   ;;
10243
10244 aix[4-9]*)
10245   version_type=linux # correct to gnu/linux during the next big refactor
10246   need_lib_prefix=no
10247   need_version=no
10248   hardcode_into_libs=yes
10249   if test "$host_cpu" = ia64; then
10250     # AIX 5 supports IA64
10251     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10252     shlibpath_var=LD_LIBRARY_PATH
10253   else
10254     # With GCC up to 2.95.x, collect2 would create an import file
10255     # for dependence libraries.  The import file would start with
10256     # the line `#! .'.  This would cause the generated library to
10257     # depend on `.', always an invalid library.  This was fixed in
10258     # development snapshots of GCC prior to 3.0.
10259     case $host_os in
10260       aix4 | aix4.[01] | aix4.[01].*)
10261       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10262            echo ' yes '
10263            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10264         :
10265       else
10266         can_build_shared=no
10267       fi
10268       ;;
10269     esac
10270     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10271     # soname into executable. Probably we can add versioning support to
10272     # collect2, so additional links can be useful in future.
10273     if test "$aix_use_runtimelinking" = yes; then
10274       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10275       # instead of lib<name>.a to let people know that these are not
10276       # typical AIX shared libraries.
10277       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10278     else
10279       # We preserve .a as extension for shared libraries through AIX4.2
10280       # and later when we are not doing run time linking.
10281       library_names_spec='${libname}${release}.a $libname.a'
10282       soname_spec='${libname}${release}${shared_ext}$major'
10283     fi
10284     shlibpath_var=LIBPATH
10285   fi
10286   ;;
10287
10288 amigaos*)
10289   case $host_cpu in
10290   powerpc)
10291     # Since July 2007 AmigaOS4 officially supports .so libraries.
10292     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10293     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10294     ;;
10295   m68k)
10296     library_names_spec='$libname.ixlibrary $libname.a'
10297     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10298     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10299     ;;
10300   esac
10301   ;;
10302
10303 beos*)
10304   library_names_spec='${libname}${shared_ext}'
10305   dynamic_linker="$host_os ld.so"
10306   shlibpath_var=LIBRARY_PATH
10307   ;;
10308
10309 bsdi[45]*)
10310   version_type=linux # correct to gnu/linux during the next big refactor
10311   need_version=no
10312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10313   soname_spec='${libname}${release}${shared_ext}$major'
10314   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10315   shlibpath_var=LD_LIBRARY_PATH
10316   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10317   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10318   # the default ld.so.conf also contains /usr/contrib/lib and
10319   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10320   # libtool to hard-code these into programs
10321   ;;
10322
10323 cygwin* | mingw* | pw32* | cegcc*)
10324   version_type=windows
10325   shrext_cmds=".dll"
10326   need_version=no
10327   need_lib_prefix=no
10328
10329   case $GCC,$cc_basename in
10330   yes,*)
10331     # gcc
10332     library_names_spec='$libname.dll.a'
10333     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10334     postinstall_cmds='base_file=`basename \${file}`~
10335       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10336       dldir=$destdir/`dirname \$dlpath`~
10337       test -d \$dldir || mkdir -p \$dldir~
10338       $install_prog $dir/$dlname \$dldir/$dlname~
10339       chmod a+x \$dldir/$dlname~
10340       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10341         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10342       fi'
10343     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10344       dlpath=$dir/\$dldll~
10345        $RM \$dlpath'
10346     shlibpath_overrides_runpath=yes
10347
10348     case $host_os in
10349     cygwin*)
10350       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10351       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10352
10353       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10354       ;;
10355     mingw* | cegcc*)
10356       # MinGW DLLs use traditional 'lib' prefix
10357       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10358       ;;
10359     pw32*)
10360       # pw32 DLLs use 'pw' prefix rather than 'lib'
10361       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10362       ;;
10363     esac
10364     dynamic_linker='Win32 ld.exe'
10365     ;;
10366
10367   *,cl*)
10368     # Native MSVC
10369     libname_spec='$name'
10370     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10371     library_names_spec='${libname}.dll.lib'
10372
10373     case $build_os in
10374     mingw*)
10375       sys_lib_search_path_spec=
10376       lt_save_ifs=$IFS
10377       IFS=';'
10378       for lt_path in $LIB
10379       do
10380         IFS=$lt_save_ifs
10381         # Let DOS variable expansion print the short 8.3 style file name.
10382         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10383         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10384       done
10385       IFS=$lt_save_ifs
10386       # Convert to MSYS style.
10387       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10388       ;;
10389     cygwin*)
10390       # Convert to unix form, then to dos form, then back to unix form
10391       # but this time dos style (no spaces!) so that the unix form looks
10392       # like /cygdrive/c/PROGRA~1:/cygdr...
10393       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10394       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10395       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10396       ;;
10397     *)
10398       sys_lib_search_path_spec="$LIB"
10399       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10400         # It is most probably a Windows format PATH.
10401         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10402       else
10403         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10404       fi
10405       # FIXME: find the short name or the path components, as spaces are
10406       # common. (e.g. "Program Files" -> "PROGRA~1")
10407       ;;
10408     esac
10409
10410     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10411     postinstall_cmds='base_file=`basename \${file}`~
10412       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10413       dldir=$destdir/`dirname \$dlpath`~
10414       test -d \$dldir || mkdir -p \$dldir~
10415       $install_prog $dir/$dlname \$dldir/$dlname'
10416     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10417       dlpath=$dir/\$dldll~
10418        $RM \$dlpath'
10419     shlibpath_overrides_runpath=yes
10420     dynamic_linker='Win32 link.exe'
10421     ;;
10422
10423   *)
10424     # Assume MSVC wrapper
10425     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10426     dynamic_linker='Win32 ld.exe'
10427     ;;
10428   esac
10429   # FIXME: first we should search . and the directory the executable is in
10430   shlibpath_var=PATH
10431   ;;
10432
10433 darwin* | rhapsody*)
10434   dynamic_linker="$host_os dyld"
10435   version_type=darwin
10436   need_lib_prefix=no
10437   need_version=no
10438   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10439   soname_spec='${libname}${release}${major}$shared_ext'
10440   shlibpath_overrides_runpath=yes
10441   shlibpath_var=DYLD_LIBRARY_PATH
10442   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10443
10444   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10445   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10446   ;;
10447
10448 dgux*)
10449   version_type=linux # correct to gnu/linux during the next big refactor
10450   need_lib_prefix=no
10451   need_version=no
10452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10453   soname_spec='${libname}${release}${shared_ext}$major'
10454   shlibpath_var=LD_LIBRARY_PATH
10455   ;;
10456
10457 freebsd* | dragonfly*)
10458   # DragonFly does not have aout.  When/if they implement a new
10459   # versioning mechanism, adjust this.
10460   if test -x /usr/bin/objformat; then
10461     objformat=`/usr/bin/objformat`
10462   else
10463     case $host_os in
10464     freebsd[23].*) objformat=aout ;;
10465     *) objformat=elf ;;
10466     esac
10467   fi
10468   version_type=freebsd-$objformat
10469   case $version_type in
10470     freebsd-elf*)
10471       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10472       need_version=no
10473       need_lib_prefix=no
10474       ;;
10475     freebsd-*)
10476       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10477       need_version=yes
10478       ;;
10479   esac
10480   shlibpath_var=LD_LIBRARY_PATH
10481   case $host_os in
10482   freebsd2.*)
10483     shlibpath_overrides_runpath=yes
10484     ;;
10485   freebsd3.[01]* | freebsdelf3.[01]*)
10486     shlibpath_overrides_runpath=yes
10487     hardcode_into_libs=yes
10488     ;;
10489   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10490   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10491     shlibpath_overrides_runpath=no
10492     hardcode_into_libs=yes
10493     ;;
10494   *) # from 4.6 on, and DragonFly
10495     shlibpath_overrides_runpath=yes
10496     hardcode_into_libs=yes
10497     ;;
10498   esac
10499   ;;
10500
10501 haiku*)
10502   version_type=linux # correct to gnu/linux during the next big refactor
10503   need_lib_prefix=no
10504   need_version=no
10505   dynamic_linker="$host_os runtime_loader"
10506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10507   soname_spec='${libname}${release}${shared_ext}$major'
10508   shlibpath_var=LIBRARY_PATH
10509   shlibpath_overrides_runpath=yes
10510   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10511   hardcode_into_libs=yes
10512   ;;
10513
10514 hpux9* | hpux10* | hpux11*)
10515   # Give a soname corresponding to the major version so that dld.sl refuses to
10516   # link against other versions.
10517   version_type=sunos
10518   need_lib_prefix=no
10519   need_version=no
10520   case $host_cpu in
10521   ia64*)
10522     shrext_cmds='.so'
10523     hardcode_into_libs=yes
10524     dynamic_linker="$host_os dld.so"
10525     shlibpath_var=LD_LIBRARY_PATH
10526     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10527     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528     soname_spec='${libname}${release}${shared_ext}$major'
10529     if test "X$HPUX_IA64_MODE" = X32; then
10530       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10531     else
10532       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10533     fi
10534     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10535     ;;
10536   hppa*64*)
10537     shrext_cmds='.sl'
10538     hardcode_into_libs=yes
10539     dynamic_linker="$host_os dld.sl"
10540     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10541     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10542     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10543     soname_spec='${libname}${release}${shared_ext}$major'
10544     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10545     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10546     ;;
10547   *)
10548     shrext_cmds='.sl'
10549     dynamic_linker="$host_os dld.sl"
10550     shlibpath_var=SHLIB_PATH
10551     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10552     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553     soname_spec='${libname}${release}${shared_ext}$major'
10554     ;;
10555   esac
10556   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10557   postinstall_cmds='chmod 555 $lib'
10558   # or fails outright, so override atomically:
10559   install_override_mode=555
10560   ;;
10561
10562 interix[3-9]*)
10563   version_type=linux # correct to gnu/linux during the next big refactor
10564   need_lib_prefix=no
10565   need_version=no
10566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10567   soname_spec='${libname}${release}${shared_ext}$major'
10568   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10569   shlibpath_var=LD_LIBRARY_PATH
10570   shlibpath_overrides_runpath=no
10571   hardcode_into_libs=yes
10572   ;;
10573
10574 irix5* | irix6* | nonstopux*)
10575   case $host_os in
10576     nonstopux*) version_type=nonstopux ;;
10577     *)
10578         if test "$lt_cv_prog_gnu_ld" = yes; then
10579                 version_type=linux # correct to gnu/linux during the next big refactor
10580         else
10581                 version_type=irix
10582         fi ;;
10583   esac
10584   need_lib_prefix=no
10585   need_version=no
10586   soname_spec='${libname}${release}${shared_ext}$major'
10587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10588   case $host_os in
10589   irix5* | nonstopux*)
10590     libsuff= shlibsuff=
10591     ;;
10592   *)
10593     case $LD in # libtool.m4 will add one of these switches to LD
10594     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10595       libsuff= shlibsuff= libmagic=32-bit;;
10596     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10597       libsuff=32 shlibsuff=N32 libmagic=N32;;
10598     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10599       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10600     *) libsuff= shlibsuff= libmagic=never-match;;
10601     esac
10602     ;;
10603   esac
10604   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10605   shlibpath_overrides_runpath=no
10606   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10607   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10608   hardcode_into_libs=yes
10609   ;;
10610
10611 # No shared lib support for Linux oldld, aout, or coff.
10612 linux*oldld* | linux*aout* | linux*coff*)
10613   dynamic_linker=no
10614   ;;
10615
10616 # This must be glibc/ELF.
10617 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10618   version_type=linux # correct to gnu/linux during the next big refactor
10619   need_lib_prefix=no
10620   need_version=no
10621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10622   soname_spec='${libname}${release}${shared_ext}$major'
10623   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10624   shlibpath_var=LD_LIBRARY_PATH
10625   shlibpath_overrides_runpath=no
10626
10627   # Some binutils ld are patched to set DT_RUNPATH
10628   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10629   $as_echo_n "(cached) " >&6
10630 else
10631   lt_cv_shlibpath_overrides_runpath=no
10632     save_LDFLAGS=$LDFLAGS
10633     save_libdir=$libdir
10634     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10635          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10636     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637 /* end confdefs.h.  */
10638
10639 int
10640 main ()
10641 {
10642
10643   ;
10644   return 0;
10645 }
10646 _ACEOF
10647 if ac_fn_c_try_link "$LINENO"; then :
10648   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10649   lt_cv_shlibpath_overrides_runpath=yes
10650 fi
10651 fi
10652 rm -f core conftest.err conftest.$ac_objext \
10653     conftest$ac_exeext conftest.$ac_ext
10654     LDFLAGS=$save_LDFLAGS
10655     libdir=$save_libdir
10656
10657 fi
10658
10659   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10660
10661   # This implies no fast_install, which is unacceptable.
10662   # Some rework will be needed to allow for fast_install
10663   # before this can be enabled.
10664   hardcode_into_libs=yes
10665
10666   # Append ld.so.conf contents to the search path
10667   if test -f /etc/ld.so.conf; then
10668     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' ' '`
10669     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10670   fi
10671
10672   # We used to test for /lib/ld.so.1 and disable shared libraries on
10673   # powerpc, because MkLinux only supported shared libraries with the
10674   # GNU dynamic linker.  Since this was broken with cross compilers,
10675   # most powerpc-linux boxes support dynamic linking these days and
10676   # people can always --disable-shared, the test was removed, and we
10677   # assume the GNU/Linux dynamic linker is in use.
10678   dynamic_linker='GNU/Linux ld.so'
10679   ;;
10680
10681 netbsdelf*-gnu)
10682   version_type=linux
10683   need_lib_prefix=no
10684   need_version=no
10685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10686   soname_spec='${libname}${release}${shared_ext}$major'
10687   shlibpath_var=LD_LIBRARY_PATH
10688   shlibpath_overrides_runpath=no
10689   hardcode_into_libs=yes
10690   dynamic_linker='NetBSD ld.elf_so'
10691   ;;
10692
10693 netbsd*)
10694   version_type=sunos
10695   need_lib_prefix=no
10696   need_version=no
10697   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10698     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10699     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10700     dynamic_linker='NetBSD (a.out) ld.so'
10701   else
10702     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10703     soname_spec='${libname}${release}${shared_ext}$major'
10704     dynamic_linker='NetBSD ld.elf_so'
10705   fi
10706   shlibpath_var=LD_LIBRARY_PATH
10707   shlibpath_overrides_runpath=yes
10708   hardcode_into_libs=yes
10709   ;;
10710
10711 newsos6)
10712   version_type=linux # correct to gnu/linux during the next big refactor
10713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714   shlibpath_var=LD_LIBRARY_PATH
10715   shlibpath_overrides_runpath=yes
10716   ;;
10717
10718 *nto* | *qnx*)
10719   version_type=qnx
10720   need_lib_prefix=no
10721   need_version=no
10722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10723   soname_spec='${libname}${release}${shared_ext}$major'
10724   shlibpath_var=LD_LIBRARY_PATH
10725   shlibpath_overrides_runpath=no
10726   hardcode_into_libs=yes
10727   dynamic_linker='ldqnx.so'
10728   ;;
10729
10730 openbsd*)
10731   version_type=sunos
10732   sys_lib_dlsearch_path_spec="/usr/lib"
10733   need_lib_prefix=no
10734   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10735   case $host_os in
10736     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10737     *)                          need_version=no  ;;
10738   esac
10739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10740   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10741   shlibpath_var=LD_LIBRARY_PATH
10742   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10743     case $host_os in
10744       openbsd2.[89] | openbsd2.[89].*)
10745         shlibpath_overrides_runpath=no
10746         ;;
10747       *)
10748         shlibpath_overrides_runpath=yes
10749         ;;
10750       esac
10751   else
10752     shlibpath_overrides_runpath=yes
10753   fi
10754   ;;
10755
10756 os2*)
10757   libname_spec='$name'
10758   shrext_cmds=".dll"
10759   need_lib_prefix=no
10760   library_names_spec='$libname${shared_ext} $libname.a'
10761   dynamic_linker='OS/2 ld.exe'
10762   shlibpath_var=LIBPATH
10763   ;;
10764
10765 osf3* | osf4* | osf5*)
10766   version_type=osf
10767   need_lib_prefix=no
10768   need_version=no
10769   soname_spec='${libname}${release}${shared_ext}$major'
10770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10771   shlibpath_var=LD_LIBRARY_PATH
10772   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10773   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10774   ;;
10775
10776 rdos*)
10777   dynamic_linker=no
10778   ;;
10779
10780 solaris*)
10781   version_type=linux # correct to gnu/linux during the next big refactor
10782   need_lib_prefix=no
10783   need_version=no
10784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10785   soname_spec='${libname}${release}${shared_ext}$major'
10786   shlibpath_var=LD_LIBRARY_PATH
10787   shlibpath_overrides_runpath=yes
10788   hardcode_into_libs=yes
10789   # ldd complains unless libraries are executable
10790   postinstall_cmds='chmod +x $lib'
10791   ;;
10792
10793 sunos4*)
10794   version_type=sunos
10795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10796   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10797   shlibpath_var=LD_LIBRARY_PATH
10798   shlibpath_overrides_runpath=yes
10799   if test "$with_gnu_ld" = yes; then
10800     need_lib_prefix=no
10801   fi
10802   need_version=yes
10803   ;;
10804
10805 sysv4 | sysv4.3*)
10806   version_type=linux # correct to gnu/linux during the next big refactor
10807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10808   soname_spec='${libname}${release}${shared_ext}$major'
10809   shlibpath_var=LD_LIBRARY_PATH
10810   case $host_vendor in
10811     sni)
10812       shlibpath_overrides_runpath=no
10813       need_lib_prefix=no
10814       runpath_var=LD_RUN_PATH
10815       ;;
10816     siemens)
10817       need_lib_prefix=no
10818       ;;
10819     motorola)
10820       need_lib_prefix=no
10821       need_version=no
10822       shlibpath_overrides_runpath=no
10823       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10824       ;;
10825   esac
10826   ;;
10827
10828 sysv4*MP*)
10829   if test -d /usr/nec ;then
10830     version_type=linux # correct to gnu/linux during the next big refactor
10831     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10832     soname_spec='$libname${shared_ext}.$major'
10833     shlibpath_var=LD_LIBRARY_PATH
10834   fi
10835   ;;
10836
10837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10838   version_type=freebsd-elf
10839   need_lib_prefix=no
10840   need_version=no
10841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10842   soname_spec='${libname}${release}${shared_ext}$major'
10843   shlibpath_var=LD_LIBRARY_PATH
10844   shlibpath_overrides_runpath=yes
10845   hardcode_into_libs=yes
10846   if test "$with_gnu_ld" = yes; then
10847     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10848   else
10849     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10850     case $host_os in
10851       sco3.2v5*)
10852         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10853         ;;
10854     esac
10855   fi
10856   sys_lib_dlsearch_path_spec='/usr/lib'
10857   ;;
10858
10859 tpf*)
10860   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10861   version_type=linux # correct to gnu/linux during the next big refactor
10862   need_lib_prefix=no
10863   need_version=no
10864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10865   shlibpath_var=LD_LIBRARY_PATH
10866   shlibpath_overrides_runpath=no
10867   hardcode_into_libs=yes
10868   ;;
10869
10870 uts4*)
10871   version_type=linux # correct to gnu/linux during the next big refactor
10872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10873   soname_spec='${libname}${release}${shared_ext}$major'
10874   shlibpath_var=LD_LIBRARY_PATH
10875   ;;
10876
10877 *)
10878   dynamic_linker=no
10879   ;;
10880 esac
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10882 $as_echo "$dynamic_linker" >&6; }
10883 test "$dynamic_linker" = no && can_build_shared=no
10884
10885 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10886 if test "$GCC" = yes; then
10887   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10888 fi
10889
10890 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10891   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10892 fi
10893 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10894   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10895 fi
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10989 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10990 hardcode_action=
10991 if test -n "$hardcode_libdir_flag_spec" ||
10992    test -n "$runpath_var" ||
10993    test "X$hardcode_automatic" = "Xyes" ; then
10994
10995   # We can hardcode non-existent directories.
10996   if test "$hardcode_direct" != no &&
10997      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10998      # have to relink, otherwise we might link with an installed library
10999      # when we should be linking with a yet-to-be-installed one
11000      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11001      test "$hardcode_minus_L" != no; then
11002     # Linking always hardcodes the temporary library directory.
11003     hardcode_action=relink
11004   else
11005     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11006     hardcode_action=immediate
11007   fi
11008 else
11009   # We cannot hardcode anything, or else we can only hardcode existing
11010   # directories.
11011   hardcode_action=unsupported
11012 fi
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11014 $as_echo "$hardcode_action" >&6; }
11015
11016 if test "$hardcode_action" = relink ||
11017    test "$inherit_rpath" = yes; then
11018   # Fast installation is not supported
11019   enable_fast_install=no
11020 elif test "$shlibpath_overrides_runpath" = yes ||
11021      test "$enable_shared" = no; then
11022   # Fast installation is not necessary
11023   enable_fast_install=needless
11024 fi
11025
11026
11027
11028
11029
11030
11031   if test "x$enable_dlopen" != xyes; then
11032   enable_dlopen=unknown
11033   enable_dlopen_self=unknown
11034   enable_dlopen_self_static=unknown
11035 else
11036   lt_cv_dlopen=no
11037   lt_cv_dlopen_libs=
11038
11039   case $host_os in
11040   beos*)
11041     lt_cv_dlopen="load_add_on"
11042     lt_cv_dlopen_libs=
11043     lt_cv_dlopen_self=yes
11044     ;;
11045
11046   mingw* | pw32* | cegcc*)
11047     lt_cv_dlopen="LoadLibrary"
11048     lt_cv_dlopen_libs=
11049     ;;
11050
11051   cygwin*)
11052     lt_cv_dlopen="dlopen"
11053     lt_cv_dlopen_libs=
11054     ;;
11055
11056   darwin*)
11057   # if libdl is installed we need to link against it
11058     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11059 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11060 if ${ac_cv_lib_dl_dlopen+:} false; then :
11061   $as_echo_n "(cached) " >&6
11062 else
11063   ac_check_lib_save_LIBS=$LIBS
11064 LIBS="-ldl  $LIBS"
11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h.  */
11067
11068 /* Override any GCC internal prototype to avoid an error.
11069    Use char because int might match the return type of a GCC
11070    builtin and then its argument prototype would still apply.  */
11071 #ifdef __cplusplus
11072 extern "C"
11073 #endif
11074 char dlopen ();
11075 int
11076 main ()
11077 {
11078 return dlopen ();
11079   ;
11080   return 0;
11081 }
11082 _ACEOF
11083 if ac_fn_c_try_link "$LINENO"; then :
11084   ac_cv_lib_dl_dlopen=yes
11085 else
11086   ac_cv_lib_dl_dlopen=no
11087 fi
11088 rm -f core conftest.err conftest.$ac_objext \
11089     conftest$ac_exeext conftest.$ac_ext
11090 LIBS=$ac_check_lib_save_LIBS
11091 fi
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11093 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11094 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11095   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11096 else
11097
11098     lt_cv_dlopen="dyld"
11099     lt_cv_dlopen_libs=
11100     lt_cv_dlopen_self=yes
11101
11102 fi
11103
11104     ;;
11105
11106   *)
11107     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11108 if test "x$ac_cv_func_shl_load" = xyes; then :
11109   lt_cv_dlopen="shl_load"
11110 else
11111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11112 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11113 if ${ac_cv_lib_dld_shl_load+:} false; then :
11114   $as_echo_n "(cached) " >&6
11115 else
11116   ac_check_lib_save_LIBS=$LIBS
11117 LIBS="-ldld  $LIBS"
11118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11119 /* end confdefs.h.  */
11120
11121 /* Override any GCC internal prototype to avoid an error.
11122    Use char because int might match the return type of a GCC
11123    builtin and then its argument prototype would still apply.  */
11124 #ifdef __cplusplus
11125 extern "C"
11126 #endif
11127 char shl_load ();
11128 int
11129 main ()
11130 {
11131 return shl_load ();
11132   ;
11133   return 0;
11134 }
11135 _ACEOF
11136 if ac_fn_c_try_link "$LINENO"; then :
11137   ac_cv_lib_dld_shl_load=yes
11138 else
11139   ac_cv_lib_dld_shl_load=no
11140 fi
11141 rm -f core conftest.err conftest.$ac_objext \
11142     conftest$ac_exeext conftest.$ac_ext
11143 LIBS=$ac_check_lib_save_LIBS
11144 fi
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11146 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11147 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11148   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11149 else
11150   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11151 if test "x$ac_cv_func_dlopen" = xyes; then :
11152   lt_cv_dlopen="dlopen"
11153 else
11154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11155 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11156 if ${ac_cv_lib_dl_dlopen+:} false; then :
11157   $as_echo_n "(cached) " >&6
11158 else
11159   ac_check_lib_save_LIBS=$LIBS
11160 LIBS="-ldl  $LIBS"
11161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11162 /* end confdefs.h.  */
11163
11164 /* Override any GCC internal prototype to avoid an error.
11165    Use char because int might match the return type of a GCC
11166    builtin and then its argument prototype would still apply.  */
11167 #ifdef __cplusplus
11168 extern "C"
11169 #endif
11170 char dlopen ();
11171 int
11172 main ()
11173 {
11174 return dlopen ();
11175   ;
11176   return 0;
11177 }
11178 _ACEOF
11179 if ac_fn_c_try_link "$LINENO"; then :
11180   ac_cv_lib_dl_dlopen=yes
11181 else
11182   ac_cv_lib_dl_dlopen=no
11183 fi
11184 rm -f core conftest.err conftest.$ac_objext \
11185     conftest$ac_exeext conftest.$ac_ext
11186 LIBS=$ac_check_lib_save_LIBS
11187 fi
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11189 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11190 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11191   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11192 else
11193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11194 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11195 if ${ac_cv_lib_svld_dlopen+:} false; then :
11196   $as_echo_n "(cached) " >&6
11197 else
11198   ac_check_lib_save_LIBS=$LIBS
11199 LIBS="-lsvld  $LIBS"
11200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11201 /* end confdefs.h.  */
11202
11203 /* Override any GCC internal prototype to avoid an error.
11204    Use char because int might match the return type of a GCC
11205    builtin and then its argument prototype would still apply.  */
11206 #ifdef __cplusplus
11207 extern "C"
11208 #endif
11209 char dlopen ();
11210 int
11211 main ()
11212 {
11213 return dlopen ();
11214   ;
11215   return 0;
11216 }
11217 _ACEOF
11218 if ac_fn_c_try_link "$LINENO"; then :
11219   ac_cv_lib_svld_dlopen=yes
11220 else
11221   ac_cv_lib_svld_dlopen=no
11222 fi
11223 rm -f core conftest.err conftest.$ac_objext \
11224     conftest$ac_exeext conftest.$ac_ext
11225 LIBS=$ac_check_lib_save_LIBS
11226 fi
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11228 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11229 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11230   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11231 else
11232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11233 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11234 if ${ac_cv_lib_dld_dld_link+:} false; then :
11235   $as_echo_n "(cached) " >&6
11236 else
11237   ac_check_lib_save_LIBS=$LIBS
11238 LIBS="-ldld  $LIBS"
11239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h.  */
11241
11242 /* Override any GCC internal prototype to avoid an error.
11243    Use char because int might match the return type of a GCC
11244    builtin and then its argument prototype would still apply.  */
11245 #ifdef __cplusplus
11246 extern "C"
11247 #endif
11248 char dld_link ();
11249 int
11250 main ()
11251 {
11252 return dld_link ();
11253   ;
11254   return 0;
11255 }
11256 _ACEOF
11257 if ac_fn_c_try_link "$LINENO"; then :
11258   ac_cv_lib_dld_dld_link=yes
11259 else
11260   ac_cv_lib_dld_dld_link=no
11261 fi
11262 rm -f core conftest.err conftest.$ac_objext \
11263     conftest$ac_exeext conftest.$ac_ext
11264 LIBS=$ac_check_lib_save_LIBS
11265 fi
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11267 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11268 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11269   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11270 fi
11271
11272
11273 fi
11274
11275
11276 fi
11277
11278
11279 fi
11280
11281
11282 fi
11283
11284
11285 fi
11286
11287     ;;
11288   esac
11289
11290   if test "x$lt_cv_dlopen" != xno; then
11291     enable_dlopen=yes
11292   else
11293     enable_dlopen=no
11294   fi
11295
11296   case $lt_cv_dlopen in
11297   dlopen)
11298     save_CPPFLAGS="$CPPFLAGS"
11299     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11300
11301     save_LDFLAGS="$LDFLAGS"
11302     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11303
11304     save_LIBS="$LIBS"
11305     LIBS="$lt_cv_dlopen_libs $LIBS"
11306
11307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11308 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11309 if ${lt_cv_dlopen_self+:} false; then :
11310   $as_echo_n "(cached) " >&6
11311 else
11312           if test "$cross_compiling" = yes; then :
11313   lt_cv_dlopen_self=cross
11314 else
11315   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11316   lt_status=$lt_dlunknown
11317   cat > conftest.$ac_ext <<_LT_EOF
11318 #line $LINENO "configure"
11319 #include "confdefs.h"
11320
11321 #if HAVE_DLFCN_H
11322 #include <dlfcn.h>
11323 #endif
11324
11325 #include <stdio.h>
11326
11327 #ifdef RTLD_GLOBAL
11328 #  define LT_DLGLOBAL           RTLD_GLOBAL
11329 #else
11330 #  ifdef DL_GLOBAL
11331 #    define LT_DLGLOBAL         DL_GLOBAL
11332 #  else
11333 #    define LT_DLGLOBAL         0
11334 #  endif
11335 #endif
11336
11337 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11338    find out it does not work in some platform. */
11339 #ifndef LT_DLLAZY_OR_NOW
11340 #  ifdef RTLD_LAZY
11341 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11342 #  else
11343 #    ifdef DL_LAZY
11344 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11345 #    else
11346 #      ifdef RTLD_NOW
11347 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11348 #      else
11349 #        ifdef DL_NOW
11350 #          define LT_DLLAZY_OR_NOW      DL_NOW
11351 #        else
11352 #          define LT_DLLAZY_OR_NOW      0
11353 #        endif
11354 #      endif
11355 #    endif
11356 #  endif
11357 #endif
11358
11359 /* When -fvisbility=hidden is used, assume the code has been annotated
11360    correspondingly for the symbols needed.  */
11361 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11362 int fnord () __attribute__((visibility("default")));
11363 #endif
11364
11365 int fnord () { return 42; }
11366 int main ()
11367 {
11368   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11369   int status = $lt_dlunknown;
11370
11371   if (self)
11372     {
11373       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11374       else
11375         {
11376           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11377           else puts (dlerror ());
11378         }
11379       /* dlclose (self); */
11380     }
11381   else
11382     puts (dlerror ());
11383
11384   return status;
11385 }
11386 _LT_EOF
11387   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11388   (eval $ac_link) 2>&5
11389   ac_status=$?
11390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11391   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11392     (./conftest; exit; ) >&5 2>/dev/null
11393     lt_status=$?
11394     case x$lt_status in
11395       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11396       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11397       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11398     esac
11399   else :
11400     # compilation failed
11401     lt_cv_dlopen_self=no
11402   fi
11403 fi
11404 rm -fr conftest*
11405
11406
11407 fi
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11409 $as_echo "$lt_cv_dlopen_self" >&6; }
11410
11411     if test "x$lt_cv_dlopen_self" = xyes; then
11412       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11413       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11414 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11415 if ${lt_cv_dlopen_self_static+:} false; then :
11416   $as_echo_n "(cached) " >&6
11417 else
11418           if test "$cross_compiling" = yes; then :
11419   lt_cv_dlopen_self_static=cross
11420 else
11421   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11422   lt_status=$lt_dlunknown
11423   cat > conftest.$ac_ext <<_LT_EOF
11424 #line $LINENO "configure"
11425 #include "confdefs.h"
11426
11427 #if HAVE_DLFCN_H
11428 #include <dlfcn.h>
11429 #endif
11430
11431 #include <stdio.h>
11432
11433 #ifdef RTLD_GLOBAL
11434 #  define LT_DLGLOBAL           RTLD_GLOBAL
11435 #else
11436 #  ifdef DL_GLOBAL
11437 #    define LT_DLGLOBAL         DL_GLOBAL
11438 #  else
11439 #    define LT_DLGLOBAL         0
11440 #  endif
11441 #endif
11442
11443 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11444    find out it does not work in some platform. */
11445 #ifndef LT_DLLAZY_OR_NOW
11446 #  ifdef RTLD_LAZY
11447 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11448 #  else
11449 #    ifdef DL_LAZY
11450 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11451 #    else
11452 #      ifdef RTLD_NOW
11453 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11454 #      else
11455 #        ifdef DL_NOW
11456 #          define LT_DLLAZY_OR_NOW      DL_NOW
11457 #        else
11458 #          define LT_DLLAZY_OR_NOW      0
11459 #        endif
11460 #      endif
11461 #    endif
11462 #  endif
11463 #endif
11464
11465 /* When -fvisbility=hidden is used, assume the code has been annotated
11466    correspondingly for the symbols needed.  */
11467 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11468 int fnord () __attribute__((visibility("default")));
11469 #endif
11470
11471 int fnord () { return 42; }
11472 int main ()
11473 {
11474   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11475   int status = $lt_dlunknown;
11476
11477   if (self)
11478     {
11479       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11480       else
11481         {
11482           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11483           else puts (dlerror ());
11484         }
11485       /* dlclose (self); */
11486     }
11487   else
11488     puts (dlerror ());
11489
11490   return status;
11491 }
11492 _LT_EOF
11493   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11494   (eval $ac_link) 2>&5
11495   ac_status=$?
11496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11497   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11498     (./conftest; exit; ) >&5 2>/dev/null
11499     lt_status=$?
11500     case x$lt_status in
11501       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11502       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11503       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11504     esac
11505   else :
11506     # compilation failed
11507     lt_cv_dlopen_self_static=no
11508   fi
11509 fi
11510 rm -fr conftest*
11511
11512
11513 fi
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11515 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11516     fi
11517
11518     CPPFLAGS="$save_CPPFLAGS"
11519     LDFLAGS="$save_LDFLAGS"
11520     LIBS="$save_LIBS"
11521     ;;
11522   esac
11523
11524   case $lt_cv_dlopen_self in
11525   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11526   *) enable_dlopen_self=unknown ;;
11527   esac
11528
11529   case $lt_cv_dlopen_self_static in
11530   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11531   *) enable_dlopen_self_static=unknown ;;
11532   esac
11533 fi
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551 striplib=
11552 old_striplib=
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11554 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11555 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11556   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11557   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11559 $as_echo "yes" >&6; }
11560 else
11561 # FIXME - insert some real tests, host_os isn't really good enough
11562   case $host_os in
11563   darwin*)
11564     if test -n "$STRIP" ; then
11565       striplib="$STRIP -x"
11566       old_striplib="$STRIP -S"
11567       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11568 $as_echo "yes" >&6; }
11569     else
11570       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11571 $as_echo "no" >&6; }
11572     fi
11573     ;;
11574   *)
11575     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11576 $as_echo "no" >&6; }
11577     ;;
11578   esac
11579 fi
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592   # Report which library types will actually be built
11593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11594 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11596 $as_echo "$can_build_shared" >&6; }
11597
11598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11599 $as_echo_n "checking whether to build shared libraries... " >&6; }
11600   test "$can_build_shared" = "no" && enable_shared=no
11601
11602   # On AIX, shared libraries and static libraries use the same namespace, and
11603   # are all built from PIC.
11604   case $host_os in
11605   aix3*)
11606     test "$enable_shared" = yes && enable_static=no
11607     if test -n "$RANLIB"; then
11608       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11609       postinstall_cmds='$RANLIB $lib'
11610     fi
11611     ;;
11612
11613   aix[4-9]*)
11614     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11615       test "$enable_shared" = yes && enable_static=no
11616     fi
11617     ;;
11618   esac
11619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11620 $as_echo "$enable_shared" >&6; }
11621
11622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11623 $as_echo_n "checking whether to build static libraries... " >&6; }
11624   # Make sure either enable_shared or enable_static is yes.
11625   test "$enable_shared" = yes || enable_static=yes
11626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11627 $as_echo "$enable_static" >&6; }
11628
11629
11630
11631
11632 fi
11633 ac_ext=c
11634 ac_cpp='$CPP $CPPFLAGS'
11635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11638
11639 CC="$lt_save_CC"
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655         ac_config_commands="$ac_config_commands libtool"
11656
11657
11658
11659
11660 # Only expand once:
11661
11662
11663 ac_ext=c
11664 ac_cpp='$CPP $CPPFLAGS'
11665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11668 if test -n "$ac_tool_prefix"; then
11669   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11670 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11672 $as_echo_n "checking for $ac_word... " >&6; }
11673 if ${ac_cv_prog_CC+:} false; then :
11674   $as_echo_n "(cached) " >&6
11675 else
11676   if test -n "$CC"; then
11677   ac_cv_prog_CC="$CC" # Let the user override the test.
11678 else
11679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11680 for as_dir in $PATH
11681 do
11682   IFS=$as_save_IFS
11683   test -z "$as_dir" && as_dir=.
11684     for ac_exec_ext in '' $ac_executable_extensions; do
11685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11686     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11688     break 2
11689   fi
11690 done
11691   done
11692 IFS=$as_save_IFS
11693
11694 fi
11695 fi
11696 CC=$ac_cv_prog_CC
11697 if test -n "$CC"; then
11698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11699 $as_echo "$CC" >&6; }
11700 else
11701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11702 $as_echo "no" >&6; }
11703 fi
11704
11705
11706 fi
11707 if test -z "$ac_cv_prog_CC"; then
11708   ac_ct_CC=$CC
11709   # Extract the first word of "gcc", so it can be a program name with args.
11710 set dummy gcc; ac_word=$2
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11712 $as_echo_n "checking for $ac_word... " >&6; }
11713 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11714   $as_echo_n "(cached) " >&6
11715 else
11716   if test -n "$ac_ct_CC"; then
11717   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11718 else
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11721 do
11722   IFS=$as_save_IFS
11723   test -z "$as_dir" && as_dir=.
11724     for ac_exec_ext in '' $ac_executable_extensions; do
11725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11726     ac_cv_prog_ac_ct_CC="gcc"
11727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11728     break 2
11729   fi
11730 done
11731   done
11732 IFS=$as_save_IFS
11733
11734 fi
11735 fi
11736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11737 if test -n "$ac_ct_CC"; then
11738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11739 $as_echo "$ac_ct_CC" >&6; }
11740 else
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 $as_echo "no" >&6; }
11743 fi
11744
11745   if test "x$ac_ct_CC" = x; then
11746     CC=""
11747   else
11748     case $cross_compiling:$ac_tool_warned in
11749 yes:)
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11752 ac_tool_warned=yes ;;
11753 esac
11754     CC=$ac_ct_CC
11755   fi
11756 else
11757   CC="$ac_cv_prog_CC"
11758 fi
11759
11760 if test -z "$CC"; then
11761           if test -n "$ac_tool_prefix"; then
11762     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11763 set dummy ${ac_tool_prefix}cc; ac_word=$2
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11765 $as_echo_n "checking for $ac_word... " >&6; }
11766 if ${ac_cv_prog_CC+:} false; then :
11767   $as_echo_n "(cached) " >&6
11768 else
11769   if test -n "$CC"; then
11770   ac_cv_prog_CC="$CC" # Let the user override the test.
11771 else
11772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11773 for as_dir in $PATH
11774 do
11775   IFS=$as_save_IFS
11776   test -z "$as_dir" && as_dir=.
11777     for ac_exec_ext in '' $ac_executable_extensions; do
11778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11779     ac_cv_prog_CC="${ac_tool_prefix}cc"
11780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11781     break 2
11782   fi
11783 done
11784   done
11785 IFS=$as_save_IFS
11786
11787 fi
11788 fi
11789 CC=$ac_cv_prog_CC
11790 if test -n "$CC"; then
11791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11792 $as_echo "$CC" >&6; }
11793 else
11794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11795 $as_echo "no" >&6; }
11796 fi
11797
11798
11799   fi
11800 fi
11801 if test -z "$CC"; then
11802   # Extract the first word of "cc", so it can be a program name with args.
11803 set dummy cc; ac_word=$2
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11805 $as_echo_n "checking for $ac_word... " >&6; }
11806 if ${ac_cv_prog_CC+:} false; then :
11807   $as_echo_n "(cached) " >&6
11808 else
11809   if test -n "$CC"; then
11810   ac_cv_prog_CC="$CC" # Let the user override the test.
11811 else
11812   ac_prog_rejected=no
11813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11814 for as_dir in $PATH
11815 do
11816   IFS=$as_save_IFS
11817   test -z "$as_dir" && as_dir=.
11818     for ac_exec_ext in '' $ac_executable_extensions; do
11819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11820     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11821        ac_prog_rejected=yes
11822        continue
11823      fi
11824     ac_cv_prog_CC="cc"
11825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11826     break 2
11827   fi
11828 done
11829   done
11830 IFS=$as_save_IFS
11831
11832 if test $ac_prog_rejected = yes; then
11833   # We found a bogon in the path, so make sure we never use it.
11834   set dummy $ac_cv_prog_CC
11835   shift
11836   if test $# != 0; then
11837     # We chose a different compiler from the bogus one.
11838     # However, it has the same basename, so the bogon will be chosen
11839     # first if we set CC to just the basename; use the full file name.
11840     shift
11841     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11842   fi
11843 fi
11844 fi
11845 fi
11846 CC=$ac_cv_prog_CC
11847 if test -n "$CC"; then
11848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11849 $as_echo "$CC" >&6; }
11850 else
11851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11852 $as_echo "no" >&6; }
11853 fi
11854
11855
11856 fi
11857 if test -z "$CC"; then
11858   if test -n "$ac_tool_prefix"; then
11859   for ac_prog in cl.exe
11860   do
11861     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11862 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11864 $as_echo_n "checking for $ac_word... " >&6; }
11865 if ${ac_cv_prog_CC+:} false; then :
11866   $as_echo_n "(cached) " >&6
11867 else
11868   if test -n "$CC"; then
11869   ac_cv_prog_CC="$CC" # Let the user override the test.
11870 else
11871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872 for as_dir in $PATH
11873 do
11874   IFS=$as_save_IFS
11875   test -z "$as_dir" && as_dir=.
11876     for ac_exec_ext in '' $ac_executable_extensions; do
11877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11878     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11880     break 2
11881   fi
11882 done
11883   done
11884 IFS=$as_save_IFS
11885
11886 fi
11887 fi
11888 CC=$ac_cv_prog_CC
11889 if test -n "$CC"; then
11890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11891 $as_echo "$CC" >&6; }
11892 else
11893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11894 $as_echo "no" >&6; }
11895 fi
11896
11897
11898     test -n "$CC" && break
11899   done
11900 fi
11901 if test -z "$CC"; then
11902   ac_ct_CC=$CC
11903   for ac_prog in cl.exe
11904 do
11905   # Extract the first word of "$ac_prog", so it can be a program name with args.
11906 set dummy $ac_prog; ac_word=$2
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 $as_echo_n "checking for $ac_word... " >&6; }
11909 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11910   $as_echo_n "(cached) " >&6
11911 else
11912   if test -n "$ac_ct_CC"; then
11913   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11914 else
11915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916 for as_dir in $PATH
11917 do
11918   IFS=$as_save_IFS
11919   test -z "$as_dir" && as_dir=.
11920     for ac_exec_ext in '' $ac_executable_extensions; do
11921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11922     ac_cv_prog_ac_ct_CC="$ac_prog"
11923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11924     break 2
11925   fi
11926 done
11927   done
11928 IFS=$as_save_IFS
11929
11930 fi
11931 fi
11932 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11933 if test -n "$ac_ct_CC"; then
11934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11935 $as_echo "$ac_ct_CC" >&6; }
11936 else
11937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938 $as_echo "no" >&6; }
11939 fi
11940
11941
11942   test -n "$ac_ct_CC" && break
11943 done
11944
11945   if test "x$ac_ct_CC" = x; then
11946     CC=""
11947   else
11948     case $cross_compiling:$ac_tool_warned in
11949 yes:)
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11952 ac_tool_warned=yes ;;
11953 esac
11954     CC=$ac_ct_CC
11955   fi
11956 fi
11957
11958 fi
11959
11960
11961 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11963 as_fn_error $? "no acceptable C compiler found in \$PATH
11964 See \`config.log' for more details" "$LINENO" 5; }
11965
11966 # Provide some information about the compiler.
11967 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11968 set X $ac_compile
11969 ac_compiler=$2
11970 for ac_option in --version -v -V -qversion; do
11971   { { ac_try="$ac_compiler $ac_option >&5"
11972 case "(($ac_try" in
11973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974   *) ac_try_echo=$ac_try;;
11975 esac
11976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11977 $as_echo "$ac_try_echo"; } >&5
11978   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11979   ac_status=$?
11980   if test -s conftest.err; then
11981     sed '10a\
11982 ... rest of stderr output deleted ...
11983          10q' conftest.err >conftest.er1
11984     cat conftest.er1 >&5
11985   fi
11986   rm -f conftest.er1 conftest.err
11987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11988   test $ac_status = 0; }
11989 done
11990
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11992 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11993 if ${ac_cv_c_compiler_gnu+:} false; then :
11994   $as_echo_n "(cached) " >&6
11995 else
11996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h.  */
11998
11999 int
12000 main ()
12001 {
12002 #ifndef __GNUC__
12003        choke me
12004 #endif
12005
12006   ;
12007   return 0;
12008 }
12009 _ACEOF
12010 if ac_fn_c_try_compile "$LINENO"; then :
12011   ac_compiler_gnu=yes
12012 else
12013   ac_compiler_gnu=no
12014 fi
12015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12016 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12017
12018 fi
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12020 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12021 if test $ac_compiler_gnu = yes; then
12022   GCC=yes
12023 else
12024   GCC=
12025 fi
12026 ac_test_CFLAGS=${CFLAGS+set}
12027 ac_save_CFLAGS=$CFLAGS
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12029 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12030 if ${ac_cv_prog_cc_g+:} false; then :
12031   $as_echo_n "(cached) " >&6
12032 else
12033   ac_save_c_werror_flag=$ac_c_werror_flag
12034    ac_c_werror_flag=yes
12035    ac_cv_prog_cc_g=no
12036    CFLAGS="-g"
12037    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038 /* end confdefs.h.  */
12039
12040 int
12041 main ()
12042 {
12043
12044   ;
12045   return 0;
12046 }
12047 _ACEOF
12048 if ac_fn_c_try_compile "$LINENO"; then :
12049   ac_cv_prog_cc_g=yes
12050 else
12051   CFLAGS=""
12052       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12053 /* end confdefs.h.  */
12054
12055 int
12056 main ()
12057 {
12058
12059   ;
12060   return 0;
12061 }
12062 _ACEOF
12063 if ac_fn_c_try_compile "$LINENO"; then :
12064
12065 else
12066   ac_c_werror_flag=$ac_save_c_werror_flag
12067          CFLAGS="-g"
12068          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h.  */
12070
12071 int
12072 main ()
12073 {
12074
12075   ;
12076   return 0;
12077 }
12078 _ACEOF
12079 if ac_fn_c_try_compile "$LINENO"; then :
12080   ac_cv_prog_cc_g=yes
12081 fi
12082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12083 fi
12084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12085 fi
12086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12087    ac_c_werror_flag=$ac_save_c_werror_flag
12088 fi
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12090 $as_echo "$ac_cv_prog_cc_g" >&6; }
12091 if test "$ac_test_CFLAGS" = set; then
12092   CFLAGS=$ac_save_CFLAGS
12093 elif test $ac_cv_prog_cc_g = yes; then
12094   if test "$GCC" = yes; then
12095     CFLAGS="-g -O2"
12096   else
12097     CFLAGS="-g"
12098   fi
12099 else
12100   if test "$GCC" = yes; then
12101     CFLAGS="-O2"
12102   else
12103     CFLAGS=
12104   fi
12105 fi
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12107 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12108 if ${ac_cv_prog_cc_c89+:} false; then :
12109   $as_echo_n "(cached) " >&6
12110 else
12111   ac_cv_prog_cc_c89=no
12112 ac_save_CC=$CC
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h.  */
12115 #include <stdarg.h>
12116 #include <stdio.h>
12117 struct stat;
12118 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12119 struct buf { int x; };
12120 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12121 static char *e (p, i)
12122      char **p;
12123      int i;
12124 {
12125   return p[i];
12126 }
12127 static char *f (char * (*g) (char **, int), char **p, ...)
12128 {
12129   char *s;
12130   va_list v;
12131   va_start (v,p);
12132   s = g (p, va_arg (v,int));
12133   va_end (v);
12134   return s;
12135 }
12136
12137 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12138    function prototypes and stuff, but not '\xHH' hex character constants.
12139    These don't provoke an error unfortunately, instead are silently treated
12140    as 'x'.  The following induces an error, until -std is added to get
12141    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12142    array size at least.  It's necessary to write '\x00'==0 to get something
12143    that's true only with -std.  */
12144 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12145
12146 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12147    inside strings and character constants.  */
12148 #define FOO(x) 'x'
12149 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12150
12151 int test (int i, double x);
12152 struct s1 {int (*f) (int a);};
12153 struct s2 {int (*f) (double a);};
12154 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12155 int argc;
12156 char **argv;
12157 int
12158 main ()
12159 {
12160 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12161   ;
12162   return 0;
12163 }
12164 _ACEOF
12165 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12166         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12167 do
12168   CC="$ac_save_CC $ac_arg"
12169   if ac_fn_c_try_compile "$LINENO"; then :
12170   ac_cv_prog_cc_c89=$ac_arg
12171 fi
12172 rm -f core conftest.err conftest.$ac_objext
12173   test "x$ac_cv_prog_cc_c89" != "xno" && break
12174 done
12175 rm -f conftest.$ac_ext
12176 CC=$ac_save_CC
12177
12178 fi
12179 # AC_CACHE_VAL
12180 case "x$ac_cv_prog_cc_c89" in
12181   x)
12182     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12183 $as_echo "none needed" >&6; } ;;
12184   xno)
12185     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12186 $as_echo "unsupported" >&6; } ;;
12187   *)
12188     CC="$CC $ac_cv_prog_cc_c89"
12189     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12190 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12191 esac
12192 if test "x$ac_cv_prog_cc_c89" != xno; then :
12193
12194 fi
12195
12196 ac_ext=c
12197 ac_cpp='$CPP $CPPFLAGS'
12198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12201
12202 ac_ext=c
12203 ac_cpp='$CPP $CPPFLAGS'
12204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12208 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12209 if ${am_cv_prog_cc_c_o+:} false; then :
12210   $as_echo_n "(cached) " >&6
12211 else
12212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h.  */
12214
12215 int
12216 main ()
12217 {
12218
12219   ;
12220   return 0;
12221 }
12222 _ACEOF
12223   # Make sure it works both with $CC and with simple cc.
12224   # Following AC_PROG_CC_C_O, we do the test twice because some
12225   # compilers refuse to overwrite an existing .o file with -o,
12226   # though they will create one.
12227   am_cv_prog_cc_c_o=yes
12228   for am_i in 1 2; do
12229     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12230    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12231    ac_status=$?
12232    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233    (exit $ac_status); } \
12234          && test -f conftest2.$ac_objext; then
12235       : OK
12236     else
12237       am_cv_prog_cc_c_o=no
12238       break
12239     fi
12240   done
12241   rm -f core conftest*
12242   unset am_i
12243 fi
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12245 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12246 if test "$am_cv_prog_cc_c_o" != yes; then
12247    # Losing compiler, so override with the script.
12248    # FIXME: It is wrong to rewrite CC.
12249    # But if we don't then we get into trouble of one sort or another.
12250    # A longer-term fix would be to have automake use am__CC in this case,
12251    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12252    CC="$am_aux_dir/compile $CC"
12253 fi
12254 ac_ext=c
12255 ac_cpp='$CPP $CPPFLAGS'
12256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12259
12260
12261 depcc="$CC"   am_compiler_list=
12262
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12264 $as_echo_n "checking dependency style of $depcc... " >&6; }
12265 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12266   $as_echo_n "(cached) " >&6
12267 else
12268   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12269   # We make a subdir and do the tests there.  Otherwise we can end up
12270   # making bogus files that we don't know about and never remove.  For
12271   # instance it was reported that on HP-UX the gcc test will end up
12272   # making a dummy file named 'D' -- because '-MD' means "put the output
12273   # in D".
12274   rm -rf conftest.dir
12275   mkdir conftest.dir
12276   # Copy depcomp to subdir because otherwise we won't find it if we're
12277   # using a relative directory.
12278   cp "$am_depcomp" conftest.dir
12279   cd conftest.dir
12280   # We will build objects and dependencies in a subdirectory because
12281   # it helps to detect inapplicable dependency modes.  For instance
12282   # both Tru64's cc and ICC support -MD to output dependencies as a
12283   # side effect of compilation, but ICC will put the dependencies in
12284   # the current directory while Tru64 will put them in the object
12285   # directory.
12286   mkdir sub
12287
12288   am_cv_CC_dependencies_compiler_type=none
12289   if test "$am_compiler_list" = ""; then
12290      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12291   fi
12292   am__universal=false
12293   case " $depcc " in #(
12294      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12295      esac
12296
12297   for depmode in $am_compiler_list; do
12298     # Setup a source with many dependencies, because some compilers
12299     # like to wrap large dependency lists on column 80 (with \), and
12300     # we should not choose a depcomp mode which is confused by this.
12301     #
12302     # We need to recreate these files for each test, as the compiler may
12303     # overwrite some of them when testing with obscure command lines.
12304     # This happens at least with the AIX C compiler.
12305     : > sub/conftest.c
12306     for i in 1 2 3 4 5 6; do
12307       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12308       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12309       # Solaris 10 /bin/sh.
12310       echo '/* dummy */' > sub/conftst$i.h
12311     done
12312     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12313
12314     # We check with '-c' and '-o' for the sake of the "dashmstdout"
12315     # mode.  It turns out that the SunPro C++ compiler does not properly
12316     # handle '-M -o', and we need to detect this.  Also, some Intel
12317     # versions had trouble with output in subdirs.
12318     am__obj=sub/conftest.${OBJEXT-o}
12319     am__minus_obj="-o $am__obj"
12320     case $depmode in
12321     gcc)
12322       # This depmode causes a compiler race in universal mode.
12323       test "$am__universal" = false || continue
12324       ;;
12325     nosideeffect)
12326       # After this tag, mechanisms are not by side-effect, so they'll
12327       # only be used when explicitly requested.
12328       if test "x$enable_dependency_tracking" = xyes; then
12329         continue
12330       else
12331         break
12332       fi
12333       ;;
12334     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12335       # This compiler won't grok '-c -o', but also, the minuso test has
12336       # not run yet.  These depmodes are late enough in the game, and
12337       # so weak that their functioning should not be impacted.
12338       am__obj=conftest.${OBJEXT-o}
12339       am__minus_obj=
12340       ;;
12341     none) break ;;
12342     esac
12343     if depmode=$depmode \
12344        source=sub/conftest.c object=$am__obj \
12345        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12346        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12347          >/dev/null 2>conftest.err &&
12348        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12349        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12350        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12351        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12352       # icc doesn't choke on unknown options, it will just issue warnings
12353       # or remarks (even with -Werror).  So we grep stderr for any message
12354       # that says an option was ignored or not supported.
12355       # When given -MP, icc 7.0 and 7.1 complain thusly:
12356       #   icc: Command line warning: ignoring option '-M'; no argument required
12357       # The diagnosis changed in icc 8.0:
12358       #   icc: Command line remark: option '-MP' not supported
12359       if (grep 'ignoring option' conftest.err ||
12360           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12361         am_cv_CC_dependencies_compiler_type=$depmode
12362         break
12363       fi
12364     fi
12365   done
12366
12367   cd ..
12368   rm -rf conftest.dir
12369 else
12370   am_cv_CC_dependencies_compiler_type=none
12371 fi
12372
12373 fi
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12375 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12376 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12377
12378  if
12379   test "x$enable_dependency_tracking" != xno \
12380   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12381   am__fastdepCC_TRUE=
12382   am__fastdepCC_FALSE='#'
12383 else
12384   am__fastdepCC_TRUE='#'
12385   am__fastdepCC_FALSE=
12386 fi
12387
12388
12389 ac_ext=c
12390 ac_cpp='$CPP $CPPFLAGS'
12391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12395 $as_echo_n "checking how to run the C preprocessor... " >&6; }
12396 # On Suns, sometimes $CPP names a directory.
12397 if test -n "$CPP" && test -d "$CPP"; then
12398   CPP=
12399 fi
12400 if test -z "$CPP"; then
12401   if ${ac_cv_prog_CPP+:} false; then :
12402   $as_echo_n "(cached) " >&6
12403 else
12404       # Double quotes because CPP needs to be expanded
12405     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12406     do
12407       ac_preproc_ok=false
12408 for ac_c_preproc_warn_flag in '' yes
12409 do
12410   # Use a header file that comes with gcc, so configuring glibc
12411   # with a fresh cross-compiler works.
12412   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12413   # <limits.h> exists even on freestanding compilers.
12414   # On the NeXT, cc -E runs the code through the compiler's parser,
12415   # not just through cpp. "Syntax error" is here to catch this case.
12416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h.  */
12418 #ifdef __STDC__
12419 # include <limits.h>
12420 #else
12421 # include <assert.h>
12422 #endif
12423                      Syntax error
12424 _ACEOF
12425 if ac_fn_c_try_cpp "$LINENO"; then :
12426
12427 else
12428   # Broken: fails on valid input.
12429 continue
12430 fi
12431 rm -f conftest.err conftest.i conftest.$ac_ext
12432
12433   # OK, works on sane cases.  Now check whether nonexistent headers
12434   # can be detected and how.
12435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12436 /* end confdefs.h.  */
12437 #include <ac_nonexistent.h>
12438 _ACEOF
12439 if ac_fn_c_try_cpp "$LINENO"; then :
12440   # Broken: success on invalid input.
12441 continue
12442 else
12443   # Passes both tests.
12444 ac_preproc_ok=:
12445 break
12446 fi
12447 rm -f conftest.err conftest.i conftest.$ac_ext
12448
12449 done
12450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12451 rm -f conftest.i conftest.err conftest.$ac_ext
12452 if $ac_preproc_ok; then :
12453   break
12454 fi
12455
12456     done
12457     ac_cv_prog_CPP=$CPP
12458
12459 fi
12460   CPP=$ac_cv_prog_CPP
12461 else
12462   ac_cv_prog_CPP=$CPP
12463 fi
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12465 $as_echo "$CPP" >&6; }
12466 ac_preproc_ok=false
12467 for ac_c_preproc_warn_flag in '' yes
12468 do
12469   # Use a header file that comes with gcc, so configuring glibc
12470   # with a fresh cross-compiler works.
12471   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12472   # <limits.h> exists even on freestanding compilers.
12473   # On the NeXT, cc -E runs the code through the compiler's parser,
12474   # not just through cpp. "Syntax error" is here to catch this case.
12475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h.  */
12477 #ifdef __STDC__
12478 # include <limits.h>
12479 #else
12480 # include <assert.h>
12481 #endif
12482                      Syntax error
12483 _ACEOF
12484 if ac_fn_c_try_cpp "$LINENO"; then :
12485
12486 else
12487   # Broken: fails on valid input.
12488 continue
12489 fi
12490 rm -f conftest.err conftest.i conftest.$ac_ext
12491
12492   # OK, works on sane cases.  Now check whether nonexistent headers
12493   # can be detected and how.
12494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495 /* end confdefs.h.  */
12496 #include <ac_nonexistent.h>
12497 _ACEOF
12498 if ac_fn_c_try_cpp "$LINENO"; then :
12499   # Broken: success on invalid input.
12500 continue
12501 else
12502   # Passes both tests.
12503 ac_preproc_ok=:
12504 break
12505 fi
12506 rm -f conftest.err conftest.i conftest.$ac_ext
12507
12508 done
12509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12510 rm -f conftest.i conftest.err conftest.$ac_ext
12511 if $ac_preproc_ok; then :
12512
12513 else
12514   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12516 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
12517 See \`config.log' for more details" "$LINENO" 5; }
12518 fi
12519
12520 ac_ext=c
12521 ac_cpp='$CPP $CPPFLAGS'
12522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12525
12526
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12528 $as_echo_n "checking whether ln -s works... " >&6; }
12529 LN_S=$as_ln_s
12530 if test "$LN_S" = "ln -s"; then
12531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12532 $as_echo "yes" >&6; }
12533 else
12534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12535 $as_echo "no, using $LN_S" >&6; }
12536 fi
12537
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12539 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12540 set x ${MAKE-make}
12541 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12542 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12543   $as_echo_n "(cached) " >&6
12544 else
12545   cat >conftest.make <<\_ACEOF
12546 SHELL = /bin/sh
12547 all:
12548         @echo '@@@%%%=$(MAKE)=@@@%%%'
12549 _ACEOF
12550 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12551 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12552   *@@@%%%=?*=@@@%%%*)
12553     eval ac_cv_prog_make_${ac_make}_set=yes;;
12554   *)
12555     eval ac_cv_prog_make_${ac_make}_set=no;;
12556 esac
12557 rm -f conftest.make
12558 fi
12559 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12561 $as_echo "yes" >&6; }
12562   SET_MAKE=
12563 else
12564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12565 $as_echo "no" >&6; }
12566   SET_MAKE="MAKE=${MAKE-make}"
12567 fi
12568
12569
12570
12571 # Extract the first word of "xmlto", so it can be a program name with args.
12572 set dummy xmlto; ac_word=$2
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12574 $as_echo_n "checking for $ac_word... " >&6; }
12575 if ${ac_cv_prog_have_xmlto+:} false; then :
12576   $as_echo_n "(cached) " >&6
12577 else
12578   if test -n "$have_xmlto"; then
12579   ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test.
12580 else
12581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12582 for as_dir in $PATH
12583 do
12584   IFS=$as_save_IFS
12585   test -z "$as_dir" && as_dir=.
12586     for ac_exec_ext in '' $ac_executable_extensions; do
12587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12588     ac_cv_prog_have_xmlto=""yes""
12589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12590     break 2
12591   fi
12592 done
12593   done
12594 IFS=$as_save_IFS
12595
12596   test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto=""no""
12597 fi
12598 fi
12599 have_xmlto=$ac_cv_prog_have_xmlto
12600 if test -n "$have_xmlto"; then
12601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xmlto" >&5
12602 $as_echo "$have_xmlto" >&6; }
12603 else
12604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605 $as_echo "no" >&6; }
12606 fi
12607
12608
12609  if test "x${have_xmlto}" = "xyes"; then
12610   BUILD_DOC_TRUE=
12611   BUILD_DOC_FALSE='#'
12612 else
12613   BUILD_DOC_TRUE='#'
12614   BUILD_DOC_FALSE=
12615 fi
12616
12617
12618 SHLIBVERSION=7:0:0
12619
12620
12621 if test "x$GCC" = "xyes" ; then
12622   CFLAGS="$CFLAGS -Wall"
12623 fi
12624
12625 for ac_header in limits.h
12626 do :
12627   ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
12628 if test "x$ac_cv_header_limits_h" = xyes; then :
12629   cat >>confdefs.h <<_ACEOF
12630 #define HAVE_LIMITS_H 1
12631 _ACEOF
12632
12633 else
12634   as_fn_error $? "giflib needs limits.h to compile" "$LINENO" 5
12635 fi
12636
12637 done
12638
12639 for ac_header in fcntl.h
12640 do :
12641   ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
12642 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12643   cat >>confdefs.h <<_ACEOF
12644 #define HAVE_FCNTL_H 1
12645 _ACEOF
12646
12647 else
12648   as_fn_error $? "giflib needs fcntl.h to compile" "$LINENO" 5
12649 fi
12650
12651 done
12652
12653 for ac_header in stdint.h
12654 do :
12655   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
12656 if test "x$ac_cv_header_stdint_h" = xyes; then :
12657   cat >>confdefs.h <<_ACEOF
12658 #define HAVE_STDINT_H 1
12659 _ACEOF
12660
12661 else
12662   as_fn_error $? "giflib needs stdint.h to compile" "$LINENO" 5
12663 fi
12664
12665 done
12666
12667 for ac_header in stdarg.h
12668 do :
12669   ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
12670 if test "x$ac_cv_header_stdarg_h" = xyes; then :
12671   cat >>confdefs.h <<_ACEOF
12672 #define HAVE_STDARG_H 1
12673 _ACEOF
12674
12675 else
12676   as_fn_error $? "giflib needs stdarg.h to compile" "$LINENO" 5
12677 fi
12678
12679 done
12680
12681
12682 ac_config_files="$ac_config_files util/Makefile lib/Makefile Makefile doc/Makefile pic/Makefile"
12683
12684 cat >confcache <<\_ACEOF
12685 # This file is a shell script that caches the results of configure
12686 # tests run on this system so they can be shared between configure
12687 # scripts and configure runs, see configure's option --config-cache.
12688 # It is not useful on other systems.  If it contains results you don't
12689 # want to keep, you may remove or edit it.
12690 #
12691 # config.status only pays attention to the cache file if you give it
12692 # the --recheck option to rerun configure.
12693 #
12694 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12695 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12696 # following values.
12697
12698 _ACEOF
12699
12700 # The following way of writing the cache mishandles newlines in values,
12701 # but we know of no workaround that is simple, portable, and efficient.
12702 # So, we kill variables containing newlines.
12703 # Ultrix sh set writes to stderr and can't be redirected directly,
12704 # and sets the high bit in the cache file unless we assign to the vars.
12705 (
12706   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12707     eval ac_val=\$$ac_var
12708     case $ac_val in #(
12709     *${as_nl}*)
12710       case $ac_var in #(
12711       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12712 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12713       esac
12714       case $ac_var in #(
12715       _ | IFS | as_nl) ;; #(
12716       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12717       *) { eval $ac_var=; unset $ac_var;} ;;
12718       esac ;;
12719     esac
12720   done
12721
12722   (set) 2>&1 |
12723     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12724     *${as_nl}ac_space=\ *)
12725       # `set' does not quote correctly, so add quotes: double-quote
12726       # substitution turns \\\\ into \\, and sed turns \\ into \.
12727       sed -n \
12728         "s/'/'\\\\''/g;
12729           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12730       ;; #(
12731     *)
12732       # `set' quotes correctly as required by POSIX, so do not add quotes.
12733       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12734       ;;
12735     esac |
12736     sort
12737 ) |
12738   sed '
12739      /^ac_cv_env_/b end
12740      t clear
12741      :clear
12742      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12743      t end
12744      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12745      :end' >>confcache
12746 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12747   if test -w "$cache_file"; then
12748     if test "x$cache_file" != "x/dev/null"; then
12749       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12750 $as_echo "$as_me: updating cache $cache_file" >&6;}
12751       if test ! -f "$cache_file" || test -h "$cache_file"; then
12752         cat confcache >"$cache_file"
12753       else
12754         case $cache_file in #(
12755         */* | ?:*)
12756           mv -f confcache "$cache_file"$$ &&
12757           mv -f "$cache_file"$$ "$cache_file" ;; #(
12758         *)
12759           mv -f confcache "$cache_file" ;;
12760         esac
12761       fi
12762     fi
12763   else
12764     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12765 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12766   fi
12767 fi
12768 rm -f confcache
12769
12770 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12771 # Let make expand exec_prefix.
12772 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12773
12774 DEFS=-DHAVE_CONFIG_H
12775
12776 ac_libobjs=
12777 ac_ltlibobjs=
12778 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12779   # 1. Remove the extension, and $U if already installed.
12780   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12781   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12782   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12783   #    will be set to the directory where LIBOBJS objects are built.
12784   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12785   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12786 done
12787 LIBOBJS=$ac_libobjs
12788
12789 LTLIBOBJS=$ac_ltlibobjs
12790
12791
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12793 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12794    if test -n "$am_sleep_pid"; then
12795      # Hide warnings about reused PIDs.
12796      wait $am_sleep_pid 2>/dev/null
12797    fi
12798    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12799 $as_echo "done" >&6; }
12800  if test -n "$EXEEXT"; then
12801   am__EXEEXT_TRUE=
12802   am__EXEEXT_FALSE='#'
12803 else
12804   am__EXEEXT_TRUE='#'
12805   am__EXEEXT_FALSE=
12806 fi
12807
12808 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12809   as_fn_error $? "conditional \"AMDEP\" was never defined.
12810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12811 fi
12812 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12813   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12815 fi
12816 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12817   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12819 fi
12820 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
12821   as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
12822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12823 fi
12824
12825 : "${CONFIG_STATUS=./config.status}"
12826 ac_write_fail=0
12827 ac_clean_files_save=$ac_clean_files
12828 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12830 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12831 as_write_fail=0
12832 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12833 #! $SHELL
12834 # Generated by $as_me.
12835 # Run this file to recreate the current configuration.
12836 # Compiler output produced by configure, useful for debugging
12837 # configure, is in config.log if it exists.
12838
12839 debug=false
12840 ac_cs_recheck=false
12841 ac_cs_silent=false
12842
12843 SHELL=\${CONFIG_SHELL-$SHELL}
12844 export SHELL
12845 _ASEOF
12846 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12847 ## -------------------- ##
12848 ## M4sh Initialization. ##
12849 ## -------------------- ##
12850
12851 # Be more Bourne compatible
12852 DUALCASE=1; export DUALCASE # for MKS sh
12853 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12854   emulate sh
12855   NULLCMD=:
12856   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12857   # is contrary to our usage.  Disable this feature.
12858   alias -g '${1+"$@"}'='"$@"'
12859   setopt NO_GLOB_SUBST
12860 else
12861   case `(set -o) 2>/dev/null` in #(
12862   *posix*) :
12863     set -o posix ;; #(
12864   *) :
12865      ;;
12866 esac
12867 fi
12868
12869
12870 as_nl='
12871 '
12872 export as_nl
12873 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12874 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12875 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12876 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12877 # Prefer a ksh shell builtin over an external printf program on Solaris,
12878 # but without wasting forks for bash or zsh.
12879 if test -z "$BASH_VERSION$ZSH_VERSION" \
12880     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12881   as_echo='print -r --'
12882   as_echo_n='print -rn --'
12883 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12884   as_echo='printf %s\n'
12885   as_echo_n='printf %s'
12886 else
12887   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12888     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12889     as_echo_n='/usr/ucb/echo -n'
12890   else
12891     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12892     as_echo_n_body='eval
12893       arg=$1;
12894       case $arg in #(
12895       *"$as_nl"*)
12896         expr "X$arg" : "X\\(.*\\)$as_nl";
12897         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12898       esac;
12899       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12900     '
12901     export as_echo_n_body
12902     as_echo_n='sh -c $as_echo_n_body as_echo'
12903   fi
12904   export as_echo_body
12905   as_echo='sh -c $as_echo_body as_echo'
12906 fi
12907
12908 # The user is always right.
12909 if test "${PATH_SEPARATOR+set}" != set; then
12910   PATH_SEPARATOR=:
12911   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12912     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12913       PATH_SEPARATOR=';'
12914   }
12915 fi
12916
12917
12918 # IFS
12919 # We need space, tab and new line, in precisely that order.  Quoting is
12920 # there to prevent editors from complaining about space-tab.
12921 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12922 # splitting by setting IFS to empty value.)
12923 IFS=" ""        $as_nl"
12924
12925 # Find who we are.  Look in the path if we contain no directory separator.
12926 as_myself=
12927 case $0 in #((
12928   *[\\/]* ) as_myself=$0 ;;
12929   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12930 for as_dir in $PATH
12931 do
12932   IFS=$as_save_IFS
12933   test -z "$as_dir" && as_dir=.
12934     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12935   done
12936 IFS=$as_save_IFS
12937
12938      ;;
12939 esac
12940 # We did not find ourselves, most probably we were run as `sh COMMAND'
12941 # in which case we are not to be found in the path.
12942 if test "x$as_myself" = x; then
12943   as_myself=$0
12944 fi
12945 if test ! -f "$as_myself"; then
12946   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12947   exit 1
12948 fi
12949
12950 # Unset variables that we do not need and which cause bugs (e.g. in
12951 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12952 # suppresses any "Segmentation fault" message there.  '((' could
12953 # trigger a bug in pdksh 5.2.14.
12954 for as_var in BASH_ENV ENV MAIL MAILPATH
12955 do eval test x\${$as_var+set} = xset \
12956   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12957 done
12958 PS1='$ '
12959 PS2='> '
12960 PS4='+ '
12961
12962 # NLS nuisances.
12963 LC_ALL=C
12964 export LC_ALL
12965 LANGUAGE=C
12966 export LANGUAGE
12967
12968 # CDPATH.
12969 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12970
12971
12972 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12973 # ----------------------------------------
12974 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12975 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12976 # script with STATUS, using 1 if that was 0.
12977 as_fn_error ()
12978 {
12979   as_status=$1; test $as_status -eq 0 && as_status=1
12980   if test "$4"; then
12981     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12982     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12983   fi
12984   $as_echo "$as_me: error: $2" >&2
12985   as_fn_exit $as_status
12986 } # as_fn_error
12987
12988
12989 # as_fn_set_status STATUS
12990 # -----------------------
12991 # Set $? to STATUS, without forking.
12992 as_fn_set_status ()
12993 {
12994   return $1
12995 } # as_fn_set_status
12996
12997 # as_fn_exit STATUS
12998 # -----------------
12999 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13000 as_fn_exit ()
13001 {
13002   set +e
13003   as_fn_set_status $1
13004   exit $1
13005 } # as_fn_exit
13006
13007 # as_fn_unset VAR
13008 # ---------------
13009 # Portably unset VAR.
13010 as_fn_unset ()
13011 {
13012   { eval $1=; unset $1;}
13013 }
13014 as_unset=as_fn_unset
13015 # as_fn_append VAR VALUE
13016 # ----------------------
13017 # Append the text in VALUE to the end of the definition contained in VAR. Take
13018 # advantage of any shell optimizations that allow amortized linear growth over
13019 # repeated appends, instead of the typical quadratic growth present in naive
13020 # implementations.
13021 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13022   eval 'as_fn_append ()
13023   {
13024     eval $1+=\$2
13025   }'
13026 else
13027   as_fn_append ()
13028   {
13029     eval $1=\$$1\$2
13030   }
13031 fi # as_fn_append
13032
13033 # as_fn_arith ARG...
13034 # ------------------
13035 # Perform arithmetic evaluation on the ARGs, and store the result in the
13036 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13037 # must be portable across $(()) and expr.
13038 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13039   eval 'as_fn_arith ()
13040   {
13041     as_val=$(( $* ))
13042   }'
13043 else
13044   as_fn_arith ()
13045   {
13046     as_val=`expr "$@" || test $? -eq 1`
13047   }
13048 fi # as_fn_arith
13049
13050
13051 if expr a : '\(a\)' >/dev/null 2>&1 &&
13052    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13053   as_expr=expr
13054 else
13055   as_expr=false
13056 fi
13057
13058 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13059   as_basename=basename
13060 else
13061   as_basename=false
13062 fi
13063
13064 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13065   as_dirname=dirname
13066 else
13067   as_dirname=false
13068 fi
13069
13070 as_me=`$as_basename -- "$0" ||
13071 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13072          X"$0" : 'X\(//\)$' \| \
13073          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13074 $as_echo X/"$0" |
13075     sed '/^.*\/\([^/][^/]*\)\/*$/{
13076             s//\1/
13077             q
13078           }
13079           /^X\/\(\/\/\)$/{
13080             s//\1/
13081             q
13082           }
13083           /^X\/\(\/\).*/{
13084             s//\1/
13085             q
13086           }
13087           s/.*/./; q'`
13088
13089 # Avoid depending upon Character Ranges.
13090 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13091 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13092 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13093 as_cr_digits='0123456789'
13094 as_cr_alnum=$as_cr_Letters$as_cr_digits
13095
13096 ECHO_C= ECHO_N= ECHO_T=
13097 case `echo -n x` in #(((((
13098 -n*)
13099   case `echo 'xy\c'` in
13100   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13101   xy)  ECHO_C='\c';;
13102   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13103        ECHO_T=' ';;
13104   esac;;
13105 *)
13106   ECHO_N='-n';;
13107 esac
13108
13109 rm -f conf$$ conf$$.exe conf$$.file
13110 if test -d conf$$.dir; then
13111   rm -f conf$$.dir/conf$$.file
13112 else
13113   rm -f conf$$.dir
13114   mkdir conf$$.dir 2>/dev/null
13115 fi
13116 if (echo >conf$$.file) 2>/dev/null; then
13117   if ln -s conf$$.file conf$$ 2>/dev/null; then
13118     as_ln_s='ln -s'
13119     # ... but there are two gotchas:
13120     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13121     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13122     # In both cases, we have to default to `cp -pR'.
13123     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13124       as_ln_s='cp -pR'
13125   elif ln conf$$.file conf$$ 2>/dev/null; then
13126     as_ln_s=ln
13127   else
13128     as_ln_s='cp -pR'
13129   fi
13130 else
13131   as_ln_s='cp -pR'
13132 fi
13133 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13134 rmdir conf$$.dir 2>/dev/null
13135
13136
13137 # as_fn_mkdir_p
13138 # -------------
13139 # Create "$as_dir" as a directory, including parents if necessary.
13140 as_fn_mkdir_p ()
13141 {
13142
13143   case $as_dir in #(
13144   -*) as_dir=./$as_dir;;
13145   esac
13146   test -d "$as_dir" || eval $as_mkdir_p || {
13147     as_dirs=
13148     while :; do
13149       case $as_dir in #(
13150       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13151       *) as_qdir=$as_dir;;
13152       esac
13153       as_dirs="'$as_qdir' $as_dirs"
13154       as_dir=`$as_dirname -- "$as_dir" ||
13155 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13156          X"$as_dir" : 'X\(//\)[^/]' \| \
13157          X"$as_dir" : 'X\(//\)$' \| \
13158          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13159 $as_echo X"$as_dir" |
13160     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13161             s//\1/
13162             q
13163           }
13164           /^X\(\/\/\)[^/].*/{
13165             s//\1/
13166             q
13167           }
13168           /^X\(\/\/\)$/{
13169             s//\1/
13170             q
13171           }
13172           /^X\(\/\).*/{
13173             s//\1/
13174             q
13175           }
13176           s/.*/./; q'`
13177       test -d "$as_dir" && break
13178     done
13179     test -z "$as_dirs" || eval "mkdir $as_dirs"
13180   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13181
13182
13183 } # as_fn_mkdir_p
13184 if mkdir -p . 2>/dev/null; then
13185   as_mkdir_p='mkdir -p "$as_dir"'
13186 else
13187   test -d ./-p && rmdir ./-p
13188   as_mkdir_p=false
13189 fi
13190
13191
13192 # as_fn_executable_p FILE
13193 # -----------------------
13194 # Test if FILE is an executable regular file.
13195 as_fn_executable_p ()
13196 {
13197   test -f "$1" && test -x "$1"
13198 } # as_fn_executable_p
13199 as_test_x='test -x'
13200 as_executable_p=as_fn_executable_p
13201
13202 # Sed expression to map a string onto a valid CPP name.
13203 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13204
13205 # Sed expression to map a string onto a valid variable name.
13206 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13207
13208
13209 exec 6>&1
13210 ## ----------------------------------- ##
13211 ## Main body of $CONFIG_STATUS script. ##
13212 ## ----------------------------------- ##
13213 _ASEOF
13214 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13215
13216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13217 # Save the log message, to keep $0 and so on meaningful, and to
13218 # report actual input values of CONFIG_FILES etc. instead of their
13219 # values after options handling.
13220 ac_log="
13221 This file was extended by giflib $as_me 5.1.2, which was
13222 generated by GNU Autoconf 2.69.  Invocation command line was
13223
13224   CONFIG_FILES    = $CONFIG_FILES
13225   CONFIG_HEADERS  = $CONFIG_HEADERS
13226   CONFIG_LINKS    = $CONFIG_LINKS
13227   CONFIG_COMMANDS = $CONFIG_COMMANDS
13228   $ $0 $@
13229
13230 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13231 "
13232
13233 _ACEOF
13234
13235 case $ac_config_files in *"
13236 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13237 esac
13238
13239 case $ac_config_headers in *"
13240 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13241 esac
13242
13243
13244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13245 # Files that config.status was made for.
13246 config_files="$ac_config_files"
13247 config_headers="$ac_config_headers"
13248 config_commands="$ac_config_commands"
13249
13250 _ACEOF
13251
13252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13253 ac_cs_usage="\
13254 \`$as_me' instantiates files and other configuration actions
13255 from templates according to the current configuration.  Unless the files
13256 and actions are specified as TAGs, all are instantiated by default.
13257
13258 Usage: $0 [OPTION]... [TAG]...
13259
13260   -h, --help       print this help, then exit
13261   -V, --version    print version number and configuration settings, then exit
13262       --config     print configuration, then exit
13263   -q, --quiet, --silent
13264                    do not print progress messages
13265   -d, --debug      don't remove temporary files
13266       --recheck    update $as_me by reconfiguring in the same conditions
13267       --file=FILE[:TEMPLATE]
13268                    instantiate the configuration file FILE
13269       --header=FILE[:TEMPLATE]
13270                    instantiate the configuration header FILE
13271
13272 Configuration files:
13273 $config_files
13274
13275 Configuration headers:
13276 $config_headers
13277
13278 Configuration commands:
13279 $config_commands
13280
13281 Report bugs to <esr@thyrsus.com>."
13282
13283 _ACEOF
13284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13285 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13286 ac_cs_version="\\
13287 giflib config.status 5.1.2
13288 configured by $0, generated by GNU Autoconf 2.69,
13289   with options \\"\$ac_cs_config\\"
13290
13291 Copyright (C) 2012 Free Software Foundation, Inc.
13292 This config.status script is free software; the Free Software Foundation
13293 gives unlimited permission to copy, distribute and modify it."
13294
13295 ac_pwd='$ac_pwd'
13296 srcdir='$srcdir'
13297 INSTALL='$INSTALL'
13298 MKDIR_P='$MKDIR_P'
13299 AWK='$AWK'
13300 test -n "\$AWK" || AWK=awk
13301 _ACEOF
13302
13303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13304 # The default lists apply if the user does not specify any file.
13305 ac_need_defaults=:
13306 while test $# != 0
13307 do
13308   case $1 in
13309   --*=?*)
13310     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13311     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13312     ac_shift=:
13313     ;;
13314   --*=)
13315     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13316     ac_optarg=
13317     ac_shift=:
13318     ;;
13319   *)
13320     ac_option=$1
13321     ac_optarg=$2
13322     ac_shift=shift
13323     ;;
13324   esac
13325
13326   case $ac_option in
13327   # Handling of the options.
13328   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13329     ac_cs_recheck=: ;;
13330   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13331     $as_echo "$ac_cs_version"; exit ;;
13332   --config | --confi | --conf | --con | --co | --c )
13333     $as_echo "$ac_cs_config"; exit ;;
13334   --debug | --debu | --deb | --de | --d | -d )
13335     debug=: ;;
13336   --file | --fil | --fi | --f )
13337     $ac_shift
13338     case $ac_optarg in
13339     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13340     '') as_fn_error $? "missing file argument" ;;
13341     esac
13342     as_fn_append CONFIG_FILES " '$ac_optarg'"
13343     ac_need_defaults=false;;
13344   --header | --heade | --head | --hea )
13345     $ac_shift
13346     case $ac_optarg in
13347     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13348     esac
13349     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13350     ac_need_defaults=false;;
13351   --he | --h)
13352     # Conflict between --help and --header
13353     as_fn_error $? "ambiguous option: \`$1'
13354 Try \`$0 --help' for more information.";;
13355   --help | --hel | -h )
13356     $as_echo "$ac_cs_usage"; exit ;;
13357   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13358   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13359     ac_cs_silent=: ;;
13360
13361   # This is an error.
13362   -*) as_fn_error $? "unrecognized option: \`$1'
13363 Try \`$0 --help' for more information." ;;
13364
13365   *) as_fn_append ac_config_targets " $1"
13366      ac_need_defaults=false ;;
13367
13368   esac
13369   shift
13370 done
13371
13372 ac_configure_extra_args=
13373
13374 if $ac_cs_silent; then
13375   exec 6>/dev/null
13376   ac_configure_extra_args="$ac_configure_extra_args --silent"
13377 fi
13378
13379 _ACEOF
13380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13381 if \$ac_cs_recheck; then
13382   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13383   shift
13384   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13385   CONFIG_SHELL='$SHELL'
13386   export CONFIG_SHELL
13387   exec "\$@"
13388 fi
13389
13390 _ACEOF
13391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13392 exec 5>>config.log
13393 {
13394   echo
13395   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13396 ## Running $as_me. ##
13397 _ASBOX
13398   $as_echo "$ac_log"
13399 } >&5
13400
13401 _ACEOF
13402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13403 #
13404 # INIT-COMMANDS
13405 #
13406 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13407
13408
13409 # The HP-UX ksh and POSIX shell print the target directory to stdout
13410 # if CDPATH is set.
13411 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13412
13413 sed_quote_subst='$sed_quote_subst'
13414 double_quote_subst='$double_quote_subst'
13415 delay_variable_subst='$delay_variable_subst'
13416 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13417 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13418 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13419 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13420 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13421 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13422 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13423 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13424 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13425 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13426 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13427 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13428 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13429 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13430 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13431 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13432 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13433 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13434 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13435 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13436 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13437 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13438 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13439 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13440 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13441 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13442 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13443 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13444 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13445 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13446 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13447 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13448 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13449 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13450 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13451 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13452 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13453 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13454 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13455 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13456 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13457 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13458 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13459 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13460 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13461 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13462 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13463 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13464 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13465 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13466 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13467 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13468 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13469 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13470 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13471 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13472 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"`'
13473 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13474 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13475 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13476 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13477 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13478 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13479 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13480 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13481 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13482 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13483 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13484 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13485 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13486 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13487 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13488 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13489 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13490 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13491 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13492 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13493 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13494 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13495 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13496 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13497 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13498 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13499 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13500 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13501 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13502 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13503 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13504 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13505 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13506 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13507 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13508 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13509 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13510 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13511 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13512 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13513 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13514 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13515 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13516 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13517 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13518 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13519 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13520 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13521 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13522 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13523 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13524 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13525 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13526 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13527 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13528 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13529 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13530 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13531 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13532 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13533 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13534 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13535 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13536 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13537 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13538 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13539 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13540 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13541 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13542 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13543 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13544 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13545 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13546
13547 LTCC='$LTCC'
13548 LTCFLAGS='$LTCFLAGS'
13549 compiler='$compiler_DEFAULT'
13550
13551 # A function that is used when there is no print builtin or printf.
13552 func_fallback_echo ()
13553 {
13554   eval 'cat <<_LTECHO_EOF
13555 \$1
13556 _LTECHO_EOF'
13557 }
13558
13559 # Quote evaled strings.
13560 for var in SHELL \
13561 ECHO \
13562 PATH_SEPARATOR \
13563 SED \
13564 GREP \
13565 EGREP \
13566 FGREP \
13567 LD \
13568 NM \
13569 LN_S \
13570 lt_SP2NL \
13571 lt_NL2SP \
13572 reload_flag \
13573 OBJDUMP \
13574 deplibs_check_method \
13575 file_magic_cmd \
13576 file_magic_glob \
13577 want_nocaseglob \
13578 DLLTOOL \
13579 sharedlib_from_linklib_cmd \
13580 AR \
13581 AR_FLAGS \
13582 archiver_list_spec \
13583 STRIP \
13584 RANLIB \
13585 CC \
13586 CFLAGS \
13587 compiler \
13588 lt_cv_sys_global_symbol_pipe \
13589 lt_cv_sys_global_symbol_to_cdecl \
13590 lt_cv_sys_global_symbol_to_c_name_address \
13591 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13592 nm_file_list_spec \
13593 lt_prog_compiler_no_builtin_flag \
13594 lt_prog_compiler_pic \
13595 lt_prog_compiler_wl \
13596 lt_prog_compiler_static \
13597 lt_cv_prog_compiler_c_o \
13598 need_locks \
13599 MANIFEST_TOOL \
13600 DSYMUTIL \
13601 NMEDIT \
13602 LIPO \
13603 OTOOL \
13604 OTOOL64 \
13605 shrext_cmds \
13606 export_dynamic_flag_spec \
13607 whole_archive_flag_spec \
13608 compiler_needs_object \
13609 with_gnu_ld \
13610 allow_undefined_flag \
13611 no_undefined_flag \
13612 hardcode_libdir_flag_spec \
13613 hardcode_libdir_separator \
13614 exclude_expsyms \
13615 include_expsyms \
13616 file_list_spec \
13617 variables_saved_for_relink \
13618 libname_spec \
13619 library_names_spec \
13620 soname_spec \
13621 install_override_mode \
13622 finish_eval \
13623 old_striplib \
13624 striplib; do
13625     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13626     *[\\\\\\\`\\"\\\$]*)
13627       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13628       ;;
13629     *)
13630       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13631       ;;
13632     esac
13633 done
13634
13635 # Double-quote double-evaled strings.
13636 for var in reload_cmds \
13637 old_postinstall_cmds \
13638 old_postuninstall_cmds \
13639 old_archive_cmds \
13640 extract_expsyms_cmds \
13641 old_archive_from_new_cmds \
13642 old_archive_from_expsyms_cmds \
13643 archive_cmds \
13644 archive_expsym_cmds \
13645 module_cmds \
13646 module_expsym_cmds \
13647 export_symbols_cmds \
13648 prelink_cmds \
13649 postlink_cmds \
13650 postinstall_cmds \
13651 postuninstall_cmds \
13652 finish_cmds \
13653 sys_lib_search_path_spec \
13654 sys_lib_dlsearch_path_spec; do
13655     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13656     *[\\\\\\\`\\"\\\$]*)
13657       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13658       ;;
13659     *)
13660       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13661       ;;
13662     esac
13663 done
13664
13665 ac_aux_dir='$ac_aux_dir'
13666 xsi_shell='$xsi_shell'
13667 lt_shell_append='$lt_shell_append'
13668
13669 # See if we are running on zsh, and set the options which allow our
13670 # commands through without removal of \ escapes INIT.
13671 if test -n "\${ZSH_VERSION+set}" ; then
13672    setopt NO_GLOB_SUBST
13673 fi
13674
13675
13676     PACKAGE='$PACKAGE'
13677     VERSION='$VERSION'
13678     TIMESTAMP='$TIMESTAMP'
13679     RM='$RM'
13680     ofile='$ofile'
13681
13682
13683
13684
13685 _ACEOF
13686
13687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13688
13689 # Handling of arguments.
13690 for ac_config_target in $ac_config_targets
13691 do
13692   case $ac_config_target in
13693     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13694     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13695     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13696     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
13697     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13698     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13699     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13700     "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
13701
13702   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13703   esac
13704 done
13705
13706
13707 # If the user did not use the arguments to specify the items to instantiate,
13708 # then the envvar interface is used.  Set only those that are not.
13709 # We use the long form for the default assignment because of an extremely
13710 # bizarre bug on SunOS 4.1.3.
13711 if $ac_need_defaults; then
13712   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13713   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13714   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13715 fi
13716
13717 # Have a temporary directory for convenience.  Make it in the build tree
13718 # simply because there is no reason against having it here, and in addition,
13719 # creating and moving files from /tmp can sometimes cause problems.
13720 # Hook for its removal unless debugging.
13721 # Note that there is a small window in which the directory will not be cleaned:
13722 # after its creation but before its name has been assigned to `$tmp'.
13723 $debug ||
13724 {
13725   tmp= ac_tmp=
13726   trap 'exit_status=$?
13727   : "${ac_tmp:=$tmp}"
13728   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13729 ' 0
13730   trap 'as_fn_exit 1' 1 2 13 15
13731 }
13732 # Create a (secure) tmp directory for tmp files.
13733
13734 {
13735   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13736   test -d "$tmp"
13737 }  ||
13738 {
13739   tmp=./conf$$-$RANDOM
13740   (umask 077 && mkdir "$tmp")
13741 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13742 ac_tmp=$tmp
13743
13744 # Set up the scripts for CONFIG_FILES section.
13745 # No need to generate them if there are no CONFIG_FILES.
13746 # This happens for instance with `./config.status config.h'.
13747 if test -n "$CONFIG_FILES"; then
13748
13749
13750 ac_cr=`echo X | tr X '\015'`
13751 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13752 # But we know of no other shell where ac_cr would be empty at this
13753 # point, so we can use a bashism as a fallback.
13754 if test "x$ac_cr" = x; then
13755   eval ac_cr=\$\'\\r\'
13756 fi
13757 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13758 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13759   ac_cs_awk_cr='\\r'
13760 else
13761   ac_cs_awk_cr=$ac_cr
13762 fi
13763
13764 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13765 _ACEOF
13766
13767
13768 {
13769   echo "cat >conf$$subs.awk <<_ACEOF" &&
13770   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13771   echo "_ACEOF"
13772 } >conf$$subs.sh ||
13773   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13774 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13775 ac_delim='%!_!# '
13776 for ac_last_try in false false false false false :; do
13777   . ./conf$$subs.sh ||
13778     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13779
13780   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13781   if test $ac_delim_n = $ac_delim_num; then
13782     break
13783   elif $ac_last_try; then
13784     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13785   else
13786     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13787   fi
13788 done
13789 rm -f conf$$subs.sh
13790
13791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13792 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13793 _ACEOF
13794 sed -n '
13795 h
13796 s/^/S["/; s/!.*/"]=/
13797 p
13798 g
13799 s/^[^!]*!//
13800 :repl
13801 t repl
13802 s/'"$ac_delim"'$//
13803 t delim
13804 :nl
13805 h
13806 s/\(.\{148\}\)..*/\1/
13807 t more1
13808 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13809 p
13810 n
13811 b repl
13812 :more1
13813 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13814 p
13815 g
13816 s/.\{148\}//
13817 t nl
13818 :delim
13819 h
13820 s/\(.\{148\}\)..*/\1/
13821 t more2
13822 s/["\\]/\\&/g; s/^/"/; s/$/"/
13823 p
13824 b
13825 :more2
13826 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13827 p
13828 g
13829 s/.\{148\}//
13830 t delim
13831 ' <conf$$subs.awk | sed '
13832 /^[^""]/{
13833   N
13834   s/\n//
13835 }
13836 ' >>$CONFIG_STATUS || ac_write_fail=1
13837 rm -f conf$$subs.awk
13838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13839 _ACAWK
13840 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13841   for (key in S) S_is_set[key] = 1
13842   FS = "\a"
13843
13844 }
13845 {
13846   line = $ 0
13847   nfields = split(line, field, "@")
13848   substed = 0
13849   len = length(field[1])
13850   for (i = 2; i < nfields; i++) {
13851     key = field[i]
13852     keylen = length(key)
13853     if (S_is_set[key]) {
13854       value = S[key]
13855       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13856       len += length(value) + length(field[++i])
13857       substed = 1
13858     } else
13859       len += 1 + keylen
13860   }
13861
13862   print line
13863 }
13864
13865 _ACAWK
13866 _ACEOF
13867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13868 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13869   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13870 else
13871   cat
13872 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13873   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13874 _ACEOF
13875
13876 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13877 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13878 # trailing colons and then remove the whole line if VPATH becomes empty
13879 # (actually we leave an empty line to preserve line numbers).
13880 if test "x$srcdir" = x.; then
13881   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13882 h
13883 s///
13884 s/^/:/
13885 s/[      ]*$/:/
13886 s/:\$(srcdir):/:/g
13887 s/:\${srcdir}:/:/g
13888 s/:@srcdir@:/:/g
13889 s/^:*//
13890 s/:*$//
13891 x
13892 s/\(=[   ]*\).*/\1/
13893 G
13894 s/\n//
13895 s/^[^=]*=[       ]*$//
13896 }'
13897 fi
13898
13899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13900 fi # test -n "$CONFIG_FILES"
13901
13902 # Set up the scripts for CONFIG_HEADERS section.
13903 # No need to generate them if there are no CONFIG_HEADERS.
13904 # This happens for instance with `./config.status Makefile'.
13905 if test -n "$CONFIG_HEADERS"; then
13906 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13907 BEGIN {
13908 _ACEOF
13909
13910 # Transform confdefs.h into an awk script `defines.awk', embedded as
13911 # here-document in config.status, that substitutes the proper values into
13912 # config.h.in to produce config.h.
13913
13914 # Create a delimiter string that does not exist in confdefs.h, to ease
13915 # handling of long lines.
13916 ac_delim='%!_!# '
13917 for ac_last_try in false false :; do
13918   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13919   if test -z "$ac_tt"; then
13920     break
13921   elif $ac_last_try; then
13922     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13923   else
13924     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13925   fi
13926 done
13927
13928 # For the awk script, D is an array of macro values keyed by name,
13929 # likewise P contains macro parameters if any.  Preserve backslash
13930 # newline sequences.
13931
13932 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13933 sed -n '
13934 s/.\{148\}/&'"$ac_delim"'/g
13935 t rset
13936 :rset
13937 s/^[     ]*#[    ]*define[       ][      ]*/ /
13938 t def
13939 d
13940 :def
13941 s/\\$//
13942 t bsnl
13943 s/["\\]/\\&/g
13944 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13945 D["\1"]=" \3"/p
13946 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13947 d
13948 :bsnl
13949 s/["\\]/\\&/g
13950 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13951 D["\1"]=" \3\\\\\\n"\\/p
13952 t cont
13953 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13954 t cont
13955 d
13956 :cont
13957 n
13958 s/.\{148\}/&'"$ac_delim"'/g
13959 t clear
13960 :clear
13961 s/\\$//
13962 t bsnlc
13963 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13964 d
13965 :bsnlc
13966 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13967 b cont
13968 ' <confdefs.h | sed '
13969 s/'"$ac_delim"'/"\\\
13970 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13971
13972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13973   for (key in D) D_is_set[key] = 1
13974   FS = "\a"
13975 }
13976 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13977   line = \$ 0
13978   split(line, arg, " ")
13979   if (arg[1] == "#") {
13980     defundef = arg[2]
13981     mac1 = arg[3]
13982   } else {
13983     defundef = substr(arg[1], 2)
13984     mac1 = arg[2]
13985   }
13986   split(mac1, mac2, "(") #)
13987   macro = mac2[1]
13988   prefix = substr(line, 1, index(line, defundef) - 1)
13989   if (D_is_set[macro]) {
13990     # Preserve the white space surrounding the "#".
13991     print prefix "define", macro P[macro] D[macro]
13992     next
13993   } else {
13994     # Replace #undef with comments.  This is necessary, for example,
13995     # in the case of _POSIX_SOURCE, which is predefined and required
13996     # on some systems where configure will not decide to define it.
13997     if (defundef == "undef") {
13998       print "/*", prefix defundef, macro, "*/"
13999       next
14000     }
14001   }
14002 }
14003 { print }
14004 _ACAWK
14005 _ACEOF
14006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14007   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14008 fi # test -n "$CONFIG_HEADERS"
14009
14010
14011 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14012 shift
14013 for ac_tag
14014 do
14015   case $ac_tag in
14016   :[FHLC]) ac_mode=$ac_tag; continue;;
14017   esac
14018   case $ac_mode$ac_tag in
14019   :[FHL]*:*);;
14020   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14021   :[FH]-) ac_tag=-:-;;
14022   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14023   esac
14024   ac_save_IFS=$IFS
14025   IFS=:
14026   set x $ac_tag
14027   IFS=$ac_save_IFS
14028   shift
14029   ac_file=$1
14030   shift
14031
14032   case $ac_mode in
14033   :L) ac_source=$1;;
14034   :[FH])
14035     ac_file_inputs=
14036     for ac_f
14037     do
14038       case $ac_f in
14039       -) ac_f="$ac_tmp/stdin";;
14040       *) # Look for the file first in the build tree, then in the source tree
14041          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14042          # because $ac_f cannot contain `:'.
14043          test -f "$ac_f" ||
14044            case $ac_f in
14045            [\\/$]*) false;;
14046            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14047            esac ||
14048            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14049       esac
14050       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14051       as_fn_append ac_file_inputs " '$ac_f'"
14052     done
14053
14054     # Let's still pretend it is `configure' which instantiates (i.e., don't
14055     # use $as_me), people would be surprised to read:
14056     #    /* config.h.  Generated by config.status.  */
14057     configure_input='Generated from '`
14058           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14059         `' by configure.'
14060     if test x"$ac_file" != x-; then
14061       configure_input="$ac_file.  $configure_input"
14062       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14063 $as_echo "$as_me: creating $ac_file" >&6;}
14064     fi
14065     # Neutralize special characters interpreted by sed in replacement strings.
14066     case $configure_input in #(
14067     *\&* | *\|* | *\\* )
14068        ac_sed_conf_input=`$as_echo "$configure_input" |
14069        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14070     *) ac_sed_conf_input=$configure_input;;
14071     esac
14072
14073     case $ac_tag in
14074     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14075       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14076     esac
14077     ;;
14078   esac
14079
14080   ac_dir=`$as_dirname -- "$ac_file" ||
14081 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14082          X"$ac_file" : 'X\(//\)[^/]' \| \
14083          X"$ac_file" : 'X\(//\)$' \| \
14084          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14085 $as_echo X"$ac_file" |
14086     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14087             s//\1/
14088             q
14089           }
14090           /^X\(\/\/\)[^/].*/{
14091             s//\1/
14092             q
14093           }
14094           /^X\(\/\/\)$/{
14095             s//\1/
14096             q
14097           }
14098           /^X\(\/\).*/{
14099             s//\1/
14100             q
14101           }
14102           s/.*/./; q'`
14103   as_dir="$ac_dir"; as_fn_mkdir_p
14104   ac_builddir=.
14105
14106 case "$ac_dir" in
14107 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14108 *)
14109   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14110   # A ".." for each directory in $ac_dir_suffix.
14111   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14112   case $ac_top_builddir_sub in
14113   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14114   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14115   esac ;;
14116 esac
14117 ac_abs_top_builddir=$ac_pwd
14118 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14119 # for backward compatibility:
14120 ac_top_builddir=$ac_top_build_prefix
14121
14122 case $srcdir in
14123   .)  # We are building in place.
14124     ac_srcdir=.
14125     ac_top_srcdir=$ac_top_builddir_sub
14126     ac_abs_top_srcdir=$ac_pwd ;;
14127   [\\/]* | ?:[\\/]* )  # Absolute name.
14128     ac_srcdir=$srcdir$ac_dir_suffix;
14129     ac_top_srcdir=$srcdir
14130     ac_abs_top_srcdir=$srcdir ;;
14131   *) # Relative name.
14132     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14133     ac_top_srcdir=$ac_top_build_prefix$srcdir
14134     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14135 esac
14136 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14137
14138
14139   case $ac_mode in
14140   :F)
14141   #
14142   # CONFIG_FILE
14143   #
14144
14145   case $INSTALL in
14146   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14147   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14148   esac
14149   ac_MKDIR_P=$MKDIR_P
14150   case $MKDIR_P in
14151   [\\/$]* | ?:[\\/]* ) ;;
14152   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14153   esac
14154 _ACEOF
14155
14156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14157 # If the template does not know about datarootdir, expand it.
14158 # FIXME: This hack should be removed a few years after 2.60.
14159 ac_datarootdir_hack=; ac_datarootdir_seen=
14160 ac_sed_dataroot='
14161 /datarootdir/ {
14162   p
14163   q
14164 }
14165 /@datadir@/p
14166 /@docdir@/p
14167 /@infodir@/p
14168 /@localedir@/p
14169 /@mandir@/p'
14170 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14171 *datarootdir*) ac_datarootdir_seen=yes;;
14172 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14173   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14174 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14175 _ACEOF
14176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14177   ac_datarootdir_hack='
14178   s&@datadir@&$datadir&g
14179   s&@docdir@&$docdir&g
14180   s&@infodir@&$infodir&g
14181   s&@localedir@&$localedir&g
14182   s&@mandir@&$mandir&g
14183   s&\\\${datarootdir}&$datarootdir&g' ;;
14184 esac
14185 _ACEOF
14186
14187 # Neutralize VPATH when `$srcdir' = `.'.
14188 # Shell code in configure.ac might set extrasub.
14189 # FIXME: do we really want to maintain this feature?
14190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14191 ac_sed_extra="$ac_vpsub
14192 $extrasub
14193 _ACEOF
14194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14195 :t
14196 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14197 s|@configure_input@|$ac_sed_conf_input|;t t
14198 s&@top_builddir@&$ac_top_builddir_sub&;t t
14199 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14200 s&@srcdir@&$ac_srcdir&;t t
14201 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14202 s&@top_srcdir@&$ac_top_srcdir&;t t
14203 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14204 s&@builddir@&$ac_builddir&;t t
14205 s&@abs_builddir@&$ac_abs_builddir&;t t
14206 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14207 s&@INSTALL@&$ac_INSTALL&;t t
14208 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14209 $ac_datarootdir_hack
14210 "
14211 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14212   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14213
14214 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14215   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14216   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14217       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14218   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14219 which seems to be undefined.  Please make sure it is defined" >&5
14220 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14221 which seems to be undefined.  Please make sure it is defined" >&2;}
14222
14223   rm -f "$ac_tmp/stdin"
14224   case $ac_file in
14225   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14226   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14227   esac \
14228   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14229  ;;
14230   :H)
14231   #
14232   # CONFIG_HEADER
14233   #
14234   if test x"$ac_file" != x-; then
14235     {
14236       $as_echo "/* $configure_input  */" \
14237       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14238     } >"$ac_tmp/config.h" \
14239       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14240     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14241       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14242 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14243     else
14244       rm -f "$ac_file"
14245       mv "$ac_tmp/config.h" "$ac_file" \
14246         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14247     fi
14248   else
14249     $as_echo "/* $configure_input  */" \
14250       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14251       || as_fn_error $? "could not create -" "$LINENO" 5
14252   fi
14253 # Compute "$ac_file"'s index in $config_headers.
14254 _am_arg="$ac_file"
14255 _am_stamp_count=1
14256 for _am_header in $config_headers :; do
14257   case $_am_header in
14258     $_am_arg | $_am_arg:* )
14259       break ;;
14260     * )
14261       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14262   esac
14263 done
14264 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14265 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14266          X"$_am_arg" : 'X\(//\)[^/]' \| \
14267          X"$_am_arg" : 'X\(//\)$' \| \
14268          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14269 $as_echo X"$_am_arg" |
14270     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14271             s//\1/
14272             q
14273           }
14274           /^X\(\/\/\)[^/].*/{
14275             s//\1/
14276             q
14277           }
14278           /^X\(\/\/\)$/{
14279             s//\1/
14280             q
14281           }
14282           /^X\(\/\).*/{
14283             s//\1/
14284             q
14285           }
14286           s/.*/./; q'`/stamp-h$_am_stamp_count
14287  ;;
14288
14289   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14290 $as_echo "$as_me: executing $ac_file commands" >&6;}
14291  ;;
14292   esac
14293
14294
14295   case $ac_file$ac_mode in
14296     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14297   # Older Autoconf quotes --file arguments for eval, but not when files
14298   # are listed without --file.  Let's play safe and only enable the eval
14299   # if we detect the quoting.
14300   case $CONFIG_FILES in
14301   *\'*) eval set x "$CONFIG_FILES" ;;
14302   *)   set x $CONFIG_FILES ;;
14303   esac
14304   shift
14305   for mf
14306   do
14307     # Strip MF so we end up with the name of the file.
14308     mf=`echo "$mf" | sed -e 's/:.*$//'`
14309     # Check whether this is an Automake generated Makefile or not.
14310     # We used to match only the files named 'Makefile.in', but
14311     # some people rename them; so instead we look at the file content.
14312     # Grep'ing the first line is not enough: some people post-process
14313     # each Makefile.in and add a new line on top of each file to say so.
14314     # Grep'ing the whole file is not good either: AIX grep has a line
14315     # limit of 2048, but all sed's we know have understand at least 4000.
14316     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14317       dirpart=`$as_dirname -- "$mf" ||
14318 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14319          X"$mf" : 'X\(//\)[^/]' \| \
14320          X"$mf" : 'X\(//\)$' \| \
14321          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14322 $as_echo X"$mf" |
14323     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14324             s//\1/
14325             q
14326           }
14327           /^X\(\/\/\)[^/].*/{
14328             s//\1/
14329             q
14330           }
14331           /^X\(\/\/\)$/{
14332             s//\1/
14333             q
14334           }
14335           /^X\(\/\).*/{
14336             s//\1/
14337             q
14338           }
14339           s/.*/./; q'`
14340     else
14341       continue
14342     fi
14343     # Extract the definition of DEPDIR, am__include, and am__quote
14344     # from the Makefile without running 'make'.
14345     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14346     test -z "$DEPDIR" && continue
14347     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14348     test -z "$am__include" && continue
14349     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14350     # Find all dependency output files, they are included files with
14351     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14352     # simplest approach to changing $(DEPDIR) to its actual value in the
14353     # expansion.
14354     for file in `sed -n "
14355       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14356          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14357       # Make sure the directory exists.
14358       test -f "$dirpart/$file" && continue
14359       fdir=`$as_dirname -- "$file" ||
14360 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14361          X"$file" : 'X\(//\)[^/]' \| \
14362          X"$file" : 'X\(//\)$' \| \
14363          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14364 $as_echo X"$file" |
14365     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14366             s//\1/
14367             q
14368           }
14369           /^X\(\/\/\)[^/].*/{
14370             s//\1/
14371             q
14372           }
14373           /^X\(\/\/\)$/{
14374             s//\1/
14375             q
14376           }
14377           /^X\(\/\).*/{
14378             s//\1/
14379             q
14380           }
14381           s/.*/./; q'`
14382       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14383       # echo "creating $dirpart/$file"
14384       echo '# dummy' > "$dirpart/$file"
14385     done
14386   done
14387 }
14388  ;;
14389     "libtool":C)
14390
14391     # See if we are running on zsh, and set the options which allow our
14392     # commands through without removal of \ escapes.
14393     if test -n "${ZSH_VERSION+set}" ; then
14394       setopt NO_GLOB_SUBST
14395     fi
14396
14397     cfgfile="${ofile}T"
14398     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14399     $RM "$cfgfile"
14400
14401     cat <<_LT_EOF >> "$cfgfile"
14402 #! $SHELL
14403
14404 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14405 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14406 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14407 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14408 #
14409 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14410 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14411 #                 Foundation, Inc.
14412 #   Written by Gordon Matzigkeit, 1996
14413 #
14414 #   This file is part of GNU Libtool.
14415 #
14416 # GNU Libtool is free software; you can redistribute it and/or
14417 # modify it under the terms of the GNU General Public License as
14418 # published by the Free Software Foundation; either version 2 of
14419 # the License, or (at your option) any later version.
14420 #
14421 # As a special exception to the GNU General Public License,
14422 # if you distribute this file as part of a program or library that
14423 # is built using GNU Libtool, you may include this file under the
14424 # same distribution terms that you use for the rest of that program.
14425 #
14426 # GNU Libtool is distributed in the hope that it will be useful,
14427 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14428 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14429 # GNU General Public License for more details.
14430 #
14431 # You should have received a copy of the GNU General Public License
14432 # along with GNU Libtool; see the file COPYING.  If not, a copy
14433 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14434 # obtained by writing to the Free Software Foundation, Inc.,
14435 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14436
14437
14438 # The names of the tagged configurations supported by this script.
14439 available_tags=""
14440
14441 # ### BEGIN LIBTOOL CONFIG
14442
14443 # Which release of libtool.m4 was used?
14444 macro_version=$macro_version
14445 macro_revision=$macro_revision
14446
14447 # Whether or not to build shared libraries.
14448 build_libtool_libs=$enable_shared
14449
14450 # Whether or not to build static libraries.
14451 build_old_libs=$enable_static
14452
14453 # What type of objects to build.
14454 pic_mode=$pic_mode
14455
14456 # Whether or not to optimize for fast installation.
14457 fast_install=$enable_fast_install
14458
14459 # Shell to use when invoking shell scripts.
14460 SHELL=$lt_SHELL
14461
14462 # An echo program that protects backslashes.
14463 ECHO=$lt_ECHO
14464
14465 # The PATH separator for the build system.
14466 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14467
14468 # The host system.
14469 host_alias=$host_alias
14470 host=$host
14471 host_os=$host_os
14472
14473 # The build system.
14474 build_alias=$build_alias
14475 build=$build
14476 build_os=$build_os
14477
14478 # A sed program that does not truncate output.
14479 SED=$lt_SED
14480
14481 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14482 Xsed="\$SED -e 1s/^X//"
14483
14484 # A grep program that handles long lines.
14485 GREP=$lt_GREP
14486
14487 # An ERE matcher.
14488 EGREP=$lt_EGREP
14489
14490 # A literal string matcher.
14491 FGREP=$lt_FGREP
14492
14493 # A BSD- or MS-compatible name lister.
14494 NM=$lt_NM
14495
14496 # Whether we need soft or hard links.
14497 LN_S=$lt_LN_S
14498
14499 # What is the maximum length of a command?
14500 max_cmd_len=$max_cmd_len
14501
14502 # Object file suffix (normally "o").
14503 objext=$ac_objext
14504
14505 # Executable file suffix (normally "").
14506 exeext=$exeext
14507
14508 # whether the shell understands "unset".
14509 lt_unset=$lt_unset
14510
14511 # turn spaces into newlines.
14512 SP2NL=$lt_lt_SP2NL
14513
14514 # turn newlines into spaces.
14515 NL2SP=$lt_lt_NL2SP
14516
14517 # convert \$build file names to \$host format.
14518 to_host_file_cmd=$lt_cv_to_host_file_cmd
14519
14520 # convert \$build files to toolchain format.
14521 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14522
14523 # An object symbol dumper.
14524 OBJDUMP=$lt_OBJDUMP
14525
14526 # Method to check whether dependent libraries are shared objects.
14527 deplibs_check_method=$lt_deplibs_check_method
14528
14529 # Command to use when deplibs_check_method = "file_magic".
14530 file_magic_cmd=$lt_file_magic_cmd
14531
14532 # How to find potential files when deplibs_check_method = "file_magic".
14533 file_magic_glob=$lt_file_magic_glob
14534
14535 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14536 want_nocaseglob=$lt_want_nocaseglob
14537
14538 # DLL creation program.
14539 DLLTOOL=$lt_DLLTOOL
14540
14541 # Command to associate shared and link libraries.
14542 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14543
14544 # The archiver.
14545 AR=$lt_AR
14546
14547 # Flags to create an archive.
14548 AR_FLAGS=$lt_AR_FLAGS
14549
14550 # How to feed a file listing to the archiver.
14551 archiver_list_spec=$lt_archiver_list_spec
14552
14553 # A symbol stripping program.
14554 STRIP=$lt_STRIP
14555
14556 # Commands used to install an old-style archive.
14557 RANLIB=$lt_RANLIB
14558 old_postinstall_cmds=$lt_old_postinstall_cmds
14559 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14560
14561 # Whether to use a lock for old archive extraction.
14562 lock_old_archive_extraction=$lock_old_archive_extraction
14563
14564 # A C compiler.
14565 LTCC=$lt_CC
14566
14567 # LTCC compiler flags.
14568 LTCFLAGS=$lt_CFLAGS
14569
14570 # Take the output of nm and produce a listing of raw symbols and C names.
14571 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14572
14573 # Transform the output of nm in a proper C declaration.
14574 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14575
14576 # Transform the output of nm in a C name address pair.
14577 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14578
14579 # Transform the output of nm in a C name address pair when lib prefix is needed.
14580 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14581
14582 # Specify filename containing input files for \$NM.
14583 nm_file_list_spec=$lt_nm_file_list_spec
14584
14585 # The root where to search for dependent libraries,and in which our libraries should be installed.
14586 lt_sysroot=$lt_sysroot
14587
14588 # The name of the directory that contains temporary libtool files.
14589 objdir=$objdir
14590
14591 # Used to examine libraries when file_magic_cmd begins with "file".
14592 MAGIC_CMD=$MAGIC_CMD
14593
14594 # Must we lock files when doing compilation?
14595 need_locks=$lt_need_locks
14596
14597 # Manifest tool.
14598 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14599
14600 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14601 DSYMUTIL=$lt_DSYMUTIL
14602
14603 # Tool to change global to local symbols on Mac OS X.
14604 NMEDIT=$lt_NMEDIT
14605
14606 # Tool to manipulate fat objects and archives on Mac OS X.
14607 LIPO=$lt_LIPO
14608
14609 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14610 OTOOL=$lt_OTOOL
14611
14612 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14613 OTOOL64=$lt_OTOOL64
14614
14615 # Old archive suffix (normally "a").
14616 libext=$libext
14617
14618 # Shared library suffix (normally ".so").
14619 shrext_cmds=$lt_shrext_cmds
14620
14621 # The commands to extract the exported symbol list from a shared archive.
14622 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14623
14624 # Variables whose values should be saved in libtool wrapper scripts and
14625 # restored at link time.
14626 variables_saved_for_relink=$lt_variables_saved_for_relink
14627
14628 # Do we need the "lib" prefix for modules?
14629 need_lib_prefix=$need_lib_prefix
14630
14631 # Do we need a version for libraries?
14632 need_version=$need_version
14633
14634 # Library versioning type.
14635 version_type=$version_type
14636
14637 # Shared library runtime path variable.
14638 runpath_var=$runpath_var
14639
14640 # Shared library path variable.
14641 shlibpath_var=$shlibpath_var
14642
14643 # Is shlibpath searched before the hard-coded library search path?
14644 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14645
14646 # Format of library name prefix.
14647 libname_spec=$lt_libname_spec
14648
14649 # List of archive names.  First name is the real one, the rest are links.
14650 # The last name is the one that the linker finds with -lNAME
14651 library_names_spec=$lt_library_names_spec
14652
14653 # The coded name of the library, if different from the real name.
14654 soname_spec=$lt_soname_spec
14655
14656 # Permission mode override for installation of shared libraries.
14657 install_override_mode=$lt_install_override_mode
14658
14659 # Command to use after installation of a shared archive.
14660 postinstall_cmds=$lt_postinstall_cmds
14661
14662 # Command to use after uninstallation of a shared archive.
14663 postuninstall_cmds=$lt_postuninstall_cmds
14664
14665 # Commands used to finish a libtool library installation in a directory.
14666 finish_cmds=$lt_finish_cmds
14667
14668 # As "finish_cmds", except a single script fragment to be evaled but
14669 # not shown.
14670 finish_eval=$lt_finish_eval
14671
14672 # Whether we should hardcode library paths into libraries.
14673 hardcode_into_libs=$hardcode_into_libs
14674
14675 # Compile-time system search path for libraries.
14676 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14677
14678 # Run-time system search path for libraries.
14679 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14680
14681 # Whether dlopen is supported.
14682 dlopen_support=$enable_dlopen
14683
14684 # Whether dlopen of programs is supported.
14685 dlopen_self=$enable_dlopen_self
14686
14687 # Whether dlopen of statically linked programs is supported.
14688 dlopen_self_static=$enable_dlopen_self_static
14689
14690 # Commands to strip libraries.
14691 old_striplib=$lt_old_striplib
14692 striplib=$lt_striplib
14693
14694
14695 # The linker used to build libraries.
14696 LD=$lt_LD
14697
14698 # How to create reloadable object files.
14699 reload_flag=$lt_reload_flag
14700 reload_cmds=$lt_reload_cmds
14701
14702 # Commands used to build an old-style archive.
14703 old_archive_cmds=$lt_old_archive_cmds
14704
14705 # A language specific compiler.
14706 CC=$lt_compiler
14707
14708 # Is the compiler the GNU compiler?
14709 with_gcc=$GCC
14710
14711 # Compiler flag to turn off builtin functions.
14712 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14713
14714 # Additional compiler flags for building library objects.
14715 pic_flag=$lt_lt_prog_compiler_pic
14716
14717 # How to pass a linker flag through the compiler.
14718 wl=$lt_lt_prog_compiler_wl
14719
14720 # Compiler flag to prevent dynamic linking.
14721 link_static_flag=$lt_lt_prog_compiler_static
14722
14723 # Does compiler simultaneously support -c and -o options?
14724 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14725
14726 # Whether or not to add -lc for building shared libraries.
14727 build_libtool_need_lc=$archive_cmds_need_lc
14728
14729 # Whether or not to disallow shared libs when runtime libs are static.
14730 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14731
14732 # Compiler flag to allow reflexive dlopens.
14733 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14734
14735 # Compiler flag to generate shared objects directly from archives.
14736 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14737
14738 # Whether the compiler copes with passing no objects directly.
14739 compiler_needs_object=$lt_compiler_needs_object
14740
14741 # Create an old-style archive from a shared archive.
14742 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14743
14744 # Create a temporary old-style archive to link instead of a shared archive.
14745 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14746
14747 # Commands used to build a shared archive.
14748 archive_cmds=$lt_archive_cmds
14749 archive_expsym_cmds=$lt_archive_expsym_cmds
14750
14751 # Commands used to build a loadable module if different from building
14752 # a shared archive.
14753 module_cmds=$lt_module_cmds
14754 module_expsym_cmds=$lt_module_expsym_cmds
14755
14756 # Whether we are building with GNU ld or not.
14757 with_gnu_ld=$lt_with_gnu_ld
14758
14759 # Flag that allows shared libraries with undefined symbols to be built.
14760 allow_undefined_flag=$lt_allow_undefined_flag
14761
14762 # Flag that enforces no undefined symbols.
14763 no_undefined_flag=$lt_no_undefined_flag
14764
14765 # Flag to hardcode \$libdir into a binary during linking.
14766 # This must work even if \$libdir does not exist
14767 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14768
14769 # Whether we need a single "-rpath" flag with a separated argument.
14770 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14771
14772 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14773 # DIR into the resulting binary.
14774 hardcode_direct=$hardcode_direct
14775
14776 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14777 # DIR into the resulting binary and the resulting library dependency is
14778 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14779 # library is relocated.
14780 hardcode_direct_absolute=$hardcode_direct_absolute
14781
14782 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14783 # into the resulting binary.
14784 hardcode_minus_L=$hardcode_minus_L
14785
14786 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14787 # into the resulting binary.
14788 hardcode_shlibpath_var=$hardcode_shlibpath_var
14789
14790 # Set to "yes" if building a shared library automatically hardcodes DIR
14791 # into the library and all subsequent libraries and executables linked
14792 # against it.
14793 hardcode_automatic=$hardcode_automatic
14794
14795 # Set to yes if linker adds runtime paths of dependent libraries
14796 # to runtime path list.
14797 inherit_rpath=$inherit_rpath
14798
14799 # Whether libtool must link a program against all its dependency libraries.
14800 link_all_deplibs=$link_all_deplibs
14801
14802 # Set to "yes" if exported symbols are required.
14803 always_export_symbols=$always_export_symbols
14804
14805 # The commands to list exported symbols.
14806 export_symbols_cmds=$lt_export_symbols_cmds
14807
14808 # Symbols that should not be listed in the preloaded symbols.
14809 exclude_expsyms=$lt_exclude_expsyms
14810
14811 # Symbols that must always be exported.
14812 include_expsyms=$lt_include_expsyms
14813
14814 # Commands necessary for linking programs (against libraries) with templates.
14815 prelink_cmds=$lt_prelink_cmds
14816
14817 # Commands necessary for finishing linking programs.
14818 postlink_cmds=$lt_postlink_cmds
14819
14820 # Specify filename containing input files.
14821 file_list_spec=$lt_file_list_spec
14822
14823 # How to hardcode a shared library path into an executable.
14824 hardcode_action=$hardcode_action
14825
14826 # ### END LIBTOOL CONFIG
14827
14828 _LT_EOF
14829
14830   case $host_os in
14831   aix3*)
14832     cat <<\_LT_EOF >> "$cfgfile"
14833 # AIX sometimes has problems with the GCC collect2 program.  For some
14834 # reason, if we set the COLLECT_NAMES environment variable, the problems
14835 # vanish in a puff of smoke.
14836 if test "X${COLLECT_NAMES+set}" != Xset; then
14837   COLLECT_NAMES=
14838   export COLLECT_NAMES
14839 fi
14840 _LT_EOF
14841     ;;
14842   esac
14843
14844
14845 ltmain="$ac_aux_dir/ltmain.sh"
14846
14847
14848   # We use sed instead of cat because bash on DJGPP gets confused if
14849   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14850   # text mode, it properly converts lines to CR/LF.  This bash problem
14851   # is reportedly fixed, but why not run on old versions too?
14852   sed '$q' "$ltmain" >> "$cfgfile" \
14853      || (rm -f "$cfgfile"; exit 1)
14854
14855   if test x"$xsi_shell" = xyes; then
14856   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14857 func_dirname ()\
14858 {\
14859 \    case ${1} in\
14860 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14861 \      *  ) func_dirname_result="${3}" ;;\
14862 \    esac\
14863 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14864   && mv -f "$cfgfile.tmp" "$cfgfile" \
14865     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14866 test 0 -eq $? || _lt_function_replace_fail=:
14867
14868
14869   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14870 func_basename ()\
14871 {\
14872 \    func_basename_result="${1##*/}"\
14873 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14874   && mv -f "$cfgfile.tmp" "$cfgfile" \
14875     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14876 test 0 -eq $? || _lt_function_replace_fail=:
14877
14878
14879   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14880 func_dirname_and_basename ()\
14881 {\
14882 \    case ${1} in\
14883 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14884 \      *  ) func_dirname_result="${3}" ;;\
14885 \    esac\
14886 \    func_basename_result="${1##*/}"\
14887 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14888   && mv -f "$cfgfile.tmp" "$cfgfile" \
14889     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14890 test 0 -eq $? || _lt_function_replace_fail=:
14891
14892
14893   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14894 func_stripname ()\
14895 {\
14896 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14897 \    # positional parameters, so assign one to ordinary parameter first.\
14898 \    func_stripname_result=${3}\
14899 \    func_stripname_result=${func_stripname_result#"${1}"}\
14900 \    func_stripname_result=${func_stripname_result%"${2}"}\
14901 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14902   && mv -f "$cfgfile.tmp" "$cfgfile" \
14903     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14904 test 0 -eq $? || _lt_function_replace_fail=:
14905
14906
14907   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14908 func_split_long_opt ()\
14909 {\
14910 \    func_split_long_opt_name=${1%%=*}\
14911 \    func_split_long_opt_arg=${1#*=}\
14912 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14913   && mv -f "$cfgfile.tmp" "$cfgfile" \
14914     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14915 test 0 -eq $? || _lt_function_replace_fail=:
14916
14917
14918   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14919 func_split_short_opt ()\
14920 {\
14921 \    func_split_short_opt_arg=${1#??}\
14922 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14923 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14924   && mv -f "$cfgfile.tmp" "$cfgfile" \
14925     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14926 test 0 -eq $? || _lt_function_replace_fail=:
14927
14928
14929   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14930 func_lo2o ()\
14931 {\
14932 \    case ${1} in\
14933 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14934 \      *)    func_lo2o_result=${1} ;;\
14935 \    esac\
14936 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14937   && mv -f "$cfgfile.tmp" "$cfgfile" \
14938     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14939 test 0 -eq $? || _lt_function_replace_fail=:
14940
14941
14942   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14943 func_xform ()\
14944 {\
14945     func_xform_result=${1%.*}.lo\
14946 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14947   && mv -f "$cfgfile.tmp" "$cfgfile" \
14948     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14949 test 0 -eq $? || _lt_function_replace_fail=:
14950
14951
14952   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14953 func_arith ()\
14954 {\
14955     func_arith_result=$(( $* ))\
14956 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14957   && mv -f "$cfgfile.tmp" "$cfgfile" \
14958     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14959 test 0 -eq $? || _lt_function_replace_fail=:
14960
14961
14962   sed -e '/^func_len ()$/,/^} # func_len /c\
14963 func_len ()\
14964 {\
14965     func_len_result=${#1}\
14966 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14967   && mv -f "$cfgfile.tmp" "$cfgfile" \
14968     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14969 test 0 -eq $? || _lt_function_replace_fail=:
14970
14971 fi
14972
14973 if test x"$lt_shell_append" = xyes; then
14974   sed -e '/^func_append ()$/,/^} # func_append /c\
14975 func_append ()\
14976 {\
14977     eval "${1}+=\\${2}"\
14978 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14979   && mv -f "$cfgfile.tmp" "$cfgfile" \
14980     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14981 test 0 -eq $? || _lt_function_replace_fail=:
14982
14983
14984   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14985 func_append_quoted ()\
14986 {\
14987 \    func_quote_for_eval "${2}"\
14988 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14989 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14990   && mv -f "$cfgfile.tmp" "$cfgfile" \
14991     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14992 test 0 -eq $? || _lt_function_replace_fail=:
14993
14994
14995   # Save a `func_append' function call where possible by direct use of '+='
14996   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14997     && mv -f "$cfgfile.tmp" "$cfgfile" \
14998       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14999   test 0 -eq $? || _lt_function_replace_fail=:
15000 else
15001   # Save a `func_append' function call even when '+=' is not available
15002   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15003     && mv -f "$cfgfile.tmp" "$cfgfile" \
15004       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15005   test 0 -eq $? || _lt_function_replace_fail=:
15006 fi
15007
15008 if test x"$_lt_function_replace_fail" = x":"; then
15009   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15010 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15011 fi
15012
15013
15014    mv -f "$cfgfile" "$ofile" ||
15015     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15016   chmod +x "$ofile"
15017
15018  ;;
15019
15020   esac
15021 done # for ac_tag
15022
15023
15024 as_fn_exit 0
15025 _ACEOF
15026 ac_clean_files=$ac_clean_files_save
15027
15028 test $ac_write_fail = 0 ||
15029   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15030
15031
15032 # configure is writing to config.log, and then calls config.status.
15033 # config.status does its own redirection, appending to config.log.
15034 # Unfortunately, on DOS this fails, as config.log is still kept open
15035 # by configure, so config.status won't be able to write to it; its
15036 # output is simply discarded.  So we exec the FD to /dev/null,
15037 # effectively closing config.log, so it can be properly (re)opened and
15038 # appended to by config.status.  When coming back to configure, we
15039 # need to make the FD available again.
15040 if test "$no_create" != yes; then
15041   ac_cs_success=:
15042   ac_config_status_args=
15043   test "$silent" = yes &&
15044     ac_config_status_args="$ac_config_status_args --quiet"
15045   exec 5>/dev/null
15046   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15047   exec 5>>config.log
15048   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15049   # would make configure fail if this is the last instruction.
15050   $ac_cs_success || as_fn_exit 1
15051 fi
15052 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15053   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15054 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15055 fi
15056