Imported Upstream version 0.2.12
[platform/upstream/libdatrie.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libdatrie 0.2.12.
4 #
5 # Report bugs to <theppitak@gmail.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
278 $0: theppitak@gmail.com about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do 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='libdatrie'
592 PACKAGE_TARNAME='libdatrie'
593 PACKAGE_VERSION='0.2.12'
594 PACKAGE_STRING='libdatrie 0.2.12'
595 PACKAGE_BUGREPORT='theppitak@gmail.com'
596 PACKAGE_URL=''
597
598 ac_unique_file="datrie/trie.h"
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 ENABLE_DOXYGEN_DOC_FALSE
640 ENABLE_DOXYGEN_DOC_TRUE
641 htmldocdir
642 DOXYGEN
643 ICONV_LIBS
644 LD_HAS_VERSION_SCRIPT_FALSE
645 LD_HAS_VERSION_SCRIPT_TRUE
646 CPP
647 LT_SYS_LIBRARY_PATH
648 OTOOL64
649 OTOOL
650 LIPO
651 NMEDIT
652 DSYMUTIL
653 MANIFEST_TOOL
654 RANLIB
655 ac_ct_AR
656 AR
657 NM
658 ac_ct_DUMPBIN
659 DUMPBIN
660 LD
661 FGREP
662 EGREP
663 GREP
664 SED
665 LIBTOOL
666 OBJDUMP
667 DLLTOOL
668 AS
669 host_os
670 host_vendor
671 host_cpu
672 host
673 build_os
674 build_vendor
675 build_cpu
676 build
677 LN_S
678 am__fastdepCC_FALSE
679 am__fastdepCC_TRUE
680 CCDEPMODE
681 am__nodep
682 AMDEPBACKSLASH
683 AMDEP_FALSE
684 AMDEP_TRUE
685 am__quote
686 am__include
687 DEPDIR
688 OBJEXT
689 EXEEXT
690 ac_ct_CC
691 CPPFLAGS
692 LDFLAGS
693 CFLAGS
694 CC
695 LT_AGE
696 LT_REVISION
697 LT_CURRENT
698 AM_BACKSLASH
699 AM_DEFAULT_VERBOSITY
700 AM_DEFAULT_V
701 AM_V
702 am__untar
703 am__tar
704 AMTAR
705 am__leading_dot
706 SET_MAKE
707 AWK
708 mkdir_p
709 MKDIR_P
710 INSTALL_STRIP_PROGRAM
711 STRIP
712 install_sh
713 MAKEINFO
714 AUTOHEADER
715 AUTOMAKE
716 AUTOCONF
717 ACLOCAL
718 VERSION
719 PACKAGE
720 CYGPATH_W
721 am__isrc
722 INSTALL_DATA
723 INSTALL_SCRIPT
724 INSTALL_PROGRAM
725 target_alias
726 host_alias
727 build_alias
728 LIBS
729 ECHO_T
730 ECHO_N
731 ECHO_C
732 DEFS
733 mandir
734 localedir
735 libdir
736 psdir
737 pdfdir
738 dvidir
739 htmldir
740 infodir
741 docdir
742 oldincludedir
743 includedir
744 runstatedir
745 localstatedir
746 sharedstatedir
747 sysconfdir
748 datadir
749 datarootdir
750 libexecdir
751 sbindir
752 bindir
753 program_transform_name
754 prefix
755 exec_prefix
756 PACKAGE_URL
757 PACKAGE_BUGREPORT
758 PACKAGE_STRING
759 PACKAGE_VERSION
760 PACKAGE_TARNAME
761 PACKAGE_NAME
762 PATH_SEPARATOR
763 SHELL'
764 ac_subst_files=''
765 ac_user_opts='
766 enable_option_checking
767 enable_silent_rules
768 enable_dependency_tracking
769 enable_shared
770 enable_static
771 with_pic
772 enable_fast_install
773 with_aix_soname
774 with_gnu_ld
775 with_sysroot
776 enable_libtool_lock
777 enable_doxygen_doc
778 with_html_docdir
779 '
780       ac_precious_vars='build_alias
781 host_alias
782 target_alias
783 CC
784 CFLAGS
785 LDFLAGS
786 LIBS
787 CPPFLAGS
788 LT_SYS_LIBRARY_PATH
789 CPP'
790
791
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 ac_unrecognized_opts=
796 ac_unrecognized_sep=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
813
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 runstatedir='${localstatedir}/run'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
840
841 ac_prev=
842 ac_dashdash=
843 for ac_option
844 do
845   # If the previous option needs an argument, assign it.
846   if test -n "$ac_prev"; then
847     eval $ac_prev=\$ac_option
848     ac_prev=
849     continue
850   fi
851
852   case $ac_option in
853   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854   *=)   ac_optarg= ;;
855   *)    ac_optarg=yes ;;
856   esac
857
858   # Accept the important Cygnus configure options, so we can diagnose typos.
859
860   case $ac_dashdash$ac_option in
861   --)
862     ac_dashdash=yes ;;
863
864   -bindir | --bindir | --bindi | --bind | --bin | --bi)
865     ac_prev=bindir ;;
866   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867     bindir=$ac_optarg ;;
868
869   -build | --build | --buil | --bui | --bu)
870     ac_prev=build_alias ;;
871   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872     build_alias=$ac_optarg ;;
873
874   -cache-file | --cache-file | --cache-fil | --cache-fi \
875   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876     ac_prev=cache_file ;;
877   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879     cache_file=$ac_optarg ;;
880
881   --config-cache | -C)
882     cache_file=config.cache ;;
883
884   -datadir | --datadir | --datadi | --datad)
885     ac_prev=datadir ;;
886   -datadir=* | --datadir=* | --datadi=* | --datad=*)
887     datadir=$ac_optarg ;;
888
889   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890   | --dataroo | --dataro | --datar)
891     ac_prev=datarootdir ;;
892   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894     datarootdir=$ac_optarg ;;
895
896   -disable-* | --disable-*)
897     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898     # Reject names that are not valid shell variable names.
899     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900       as_fn_error $? "invalid feature name: $ac_useropt"
901     ac_useropt_orig=$ac_useropt
902     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903     case $ac_user_opts in
904       *"
905 "enable_$ac_useropt"
906 "*) ;;
907       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908          ac_unrecognized_sep=', ';;
909     esac
910     eval enable_$ac_useropt=no ;;
911
912   -docdir | --docdir | --docdi | --doc | --do)
913     ac_prev=docdir ;;
914   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915     docdir=$ac_optarg ;;
916
917   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918     ac_prev=dvidir ;;
919   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920     dvidir=$ac_optarg ;;
921
922   -enable-* | --enable-*)
923     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924     # Reject names that are not valid shell variable names.
925     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926       as_fn_error $? "invalid feature name: $ac_useropt"
927     ac_useropt_orig=$ac_useropt
928     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929     case $ac_user_opts in
930       *"
931 "enable_$ac_useropt"
932 "*) ;;
933       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934          ac_unrecognized_sep=', ';;
935     esac
936     eval enable_$ac_useropt=\$ac_optarg ;;
937
938   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940   | --exec | --exe | --ex)
941     ac_prev=exec_prefix ;;
942   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944   | --exec=* | --exe=* | --ex=*)
945     exec_prefix=$ac_optarg ;;
946
947   -gas | --gas | --ga | --g)
948     # Obsolete; use --with-gas.
949     with_gas=yes ;;
950
951   -help | --help | --hel | --he | -h)
952     ac_init_help=long ;;
953   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954     ac_init_help=recursive ;;
955   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956     ac_init_help=short ;;
957
958   -host | --host | --hos | --ho)
959     ac_prev=host_alias ;;
960   -host=* | --host=* | --hos=* | --ho=*)
961     host_alias=$ac_optarg ;;
962
963   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964     ac_prev=htmldir ;;
965   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966   | --ht=*)
967     htmldir=$ac_optarg ;;
968
969   -includedir | --includedir | --includedi | --included | --include \
970   | --includ | --inclu | --incl | --inc)
971     ac_prev=includedir ;;
972   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973   | --includ=* | --inclu=* | --incl=* | --inc=*)
974     includedir=$ac_optarg ;;
975
976   -infodir | --infodir | --infodi | --infod | --info | --inf)
977     ac_prev=infodir ;;
978   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979     infodir=$ac_optarg ;;
980
981   -libdir | --libdir | --libdi | --libd)
982     ac_prev=libdir ;;
983   -libdir=* | --libdir=* | --libdi=* | --libd=*)
984     libdir=$ac_optarg ;;
985
986   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987   | --libexe | --libex | --libe)
988     ac_prev=libexecdir ;;
989   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990   | --libexe=* | --libex=* | --libe=*)
991     libexecdir=$ac_optarg ;;
992
993   -localedir | --localedir | --localedi | --localed | --locale)
994     ac_prev=localedir ;;
995   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996     localedir=$ac_optarg ;;
997
998   -localstatedir | --localstatedir | --localstatedi | --localstated \
999   | --localstate | --localstat | --localsta | --localst | --locals)
1000     ac_prev=localstatedir ;;
1001   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003     localstatedir=$ac_optarg ;;
1004
1005   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006     ac_prev=mandir ;;
1007   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008     mandir=$ac_optarg ;;
1009
1010   -nfp | --nfp | --nf)
1011     # Obsolete; use --without-fp.
1012     with_fp=no ;;
1013
1014   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015   | --no-cr | --no-c | -n)
1016     no_create=yes ;;
1017
1018   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020     no_recursion=yes ;;
1021
1022   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024   | --oldin | --oldi | --old | --ol | --o)
1025     ac_prev=oldincludedir ;;
1026   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029     oldincludedir=$ac_optarg ;;
1030
1031   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032     ac_prev=prefix ;;
1033   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034     prefix=$ac_optarg ;;
1035
1036   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037   | --program-pre | --program-pr | --program-p)
1038     ac_prev=program_prefix ;;
1039   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041     program_prefix=$ac_optarg ;;
1042
1043   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044   | --program-suf | --program-su | --program-s)
1045     ac_prev=program_suffix ;;
1046   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048     program_suffix=$ac_optarg ;;
1049
1050   -program-transform-name | --program-transform-name \
1051   | --program-transform-nam | --program-transform-na \
1052   | --program-transform-n | --program-transform- \
1053   | --program-transform | --program-transfor \
1054   | --program-transfo | --program-transf \
1055   | --program-trans | --program-tran \
1056   | --progr-tra | --program-tr | --program-t)
1057     ac_prev=program_transform_name ;;
1058   -program-transform-name=* | --program-transform-name=* \
1059   | --program-transform-nam=* | --program-transform-na=* \
1060   | --program-transform-n=* | --program-transform-=* \
1061   | --program-transform=* | --program-transfor=* \
1062   | --program-transfo=* | --program-transf=* \
1063   | --program-trans=* | --program-tran=* \
1064   | --progr-tra=* | --program-tr=* | --program-t=*)
1065     program_transform_name=$ac_optarg ;;
1066
1067   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068     ac_prev=pdfdir ;;
1069   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070     pdfdir=$ac_optarg ;;
1071
1072   -psdir | --psdir | --psdi | --psd | --ps)
1073     ac_prev=psdir ;;
1074   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075     psdir=$ac_optarg ;;
1076
1077   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078   | -silent | --silent | --silen | --sile | --sil)
1079     silent=yes ;;
1080
1081   -runstatedir | --runstatedir | --runstatedi | --runstated \
1082   | --runstate | --runstat | --runsta | --runst | --runs \
1083   | --run | --ru | --r)
1084     ac_prev=runstatedir ;;
1085   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1086   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1087   | --run=* | --ru=* | --r=*)
1088     runstatedir=$ac_optarg ;;
1089
1090   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091     ac_prev=sbindir ;;
1092   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093   | --sbi=* | --sb=*)
1094     sbindir=$ac_optarg ;;
1095
1096   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098   | --sharedst | --shareds | --shared | --share | --shar \
1099   | --sha | --sh)
1100     ac_prev=sharedstatedir ;;
1101   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104   | --sha=* | --sh=*)
1105     sharedstatedir=$ac_optarg ;;
1106
1107   -site | --site | --sit)
1108     ac_prev=site ;;
1109   -site=* | --site=* | --sit=*)
1110     site=$ac_optarg ;;
1111
1112   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113     ac_prev=srcdir ;;
1114   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115     srcdir=$ac_optarg ;;
1116
1117   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118   | --syscon | --sysco | --sysc | --sys | --sy)
1119     ac_prev=sysconfdir ;;
1120   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122     sysconfdir=$ac_optarg ;;
1123
1124   -target | --target | --targe | --targ | --tar | --ta | --t)
1125     ac_prev=target_alias ;;
1126   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127     target_alias=$ac_optarg ;;
1128
1129   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130     verbose=yes ;;
1131
1132   -version | --version | --versio | --versi | --vers | -V)
1133     ac_init_version=: ;;
1134
1135   -with-* | --with-*)
1136     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137     # Reject names that are not valid shell variable names.
1138     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139       as_fn_error $? "invalid package name: $ac_useropt"
1140     ac_useropt_orig=$ac_useropt
1141     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142     case $ac_user_opts in
1143       *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147          ac_unrecognized_sep=', ';;
1148     esac
1149     eval with_$ac_useropt=\$ac_optarg ;;
1150
1151   -without-* | --without-*)
1152     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153     # Reject names that are not valid shell variable names.
1154     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155       as_fn_error $? "invalid package name: $ac_useropt"
1156     ac_useropt_orig=$ac_useropt
1157     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158     case $ac_user_opts in
1159       *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163          ac_unrecognized_sep=', ';;
1164     esac
1165     eval with_$ac_useropt=no ;;
1166
1167   --x)
1168     # Obsolete; use --with-x.
1169     with_x=yes ;;
1170
1171   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172   | --x-incl | --x-inc | --x-in | --x-i)
1173     ac_prev=x_includes ;;
1174   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176     x_includes=$ac_optarg ;;
1177
1178   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180     ac_prev=x_libraries ;;
1181   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183     x_libraries=$ac_optarg ;;
1184
1185   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1186 Try \`$0 --help' for more information"
1187     ;;
1188
1189   *=*)
1190     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191     # Reject names that are not valid shell variable names.
1192     case $ac_envvar in #(
1193       '' | [0-9]* | *[!_$as_cr_alnum]* )
1194       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1195     esac
1196     eval $ac_envvar=\$ac_optarg
1197     export $ac_envvar ;;
1198
1199   *)
1200     # FIXME: should be removed in autoconf 3.0.
1201     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1205     ;;
1206
1207   esac
1208 done
1209
1210 if test -n "$ac_prev"; then
1211   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212   as_fn_error $? "missing argument to $ac_option"
1213 fi
1214
1215 if test -n "$ac_unrecognized_opts"; then
1216   case $enable_option_checking in
1217     no) ;;
1218     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220   esac
1221 fi
1222
1223 # Check all directory arguments for consistency.
1224 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225                 datadir sysconfdir sharedstatedir localstatedir includedir \
1226                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227                 libdir localedir mandir runstatedir
1228 do
1229   eval ac_val=\$$ac_var
1230   # Remove trailing slashes.
1231   case $ac_val in
1232     */ )
1233       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234       eval $ac_var=\$ac_val;;
1235   esac
1236   # Be sure to have absolute directory names.
1237   case $ac_val in
1238     [\\/$]* | ?:[\\/]* )  continue;;
1239     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240   esac
1241   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242 done
1243
1244 # There might be people who depend on the old broken behavior: `$host'
1245 # used to hold the argument of --host etc.
1246 # FIXME: To remove some day.
1247 build=$build_alias
1248 host=$host_alias
1249 target=$target_alias
1250
1251 # FIXME: To remove some day.
1252 if test "x$host_alias" != x; then
1253   if test "x$build_alias" = x; then
1254     cross_compiling=maybe
1255   elif test "x$build_alias" != "x$host_alias"; then
1256     cross_compiling=yes
1257   fi
1258 fi
1259
1260 ac_tool_prefix=
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263 test "$silent" = yes && exec 6>/dev/null
1264
1265
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269   as_fn_error $? "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271   as_fn_error $? "pwd does not report name of working directory"
1272
1273
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276   ac_srcdir_defaulted=yes
1277   # Try the directory containing this script, then the parent directory.
1278   ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280          X"$as_myself" : 'X\(//\)[^/]' \| \
1281          X"$as_myself" : 'X\(//\)$' \| \
1282          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 $as_echo X"$as_myself" |
1284     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285             s//\1/
1286             q
1287           }
1288           /^X\(\/\/\)[^/].*/{
1289             s//\1/
1290             q
1291           }
1292           /^X\(\/\/\)$/{
1293             s//\1/
1294             q
1295           }
1296           /^X\(\/\).*/{
1297             s//\1/
1298             q
1299           }
1300           s/.*/./; q'`
1301   srcdir=$ac_confdir
1302   if test ! -r "$srcdir/$ac_unique_file"; then
1303     srcdir=..
1304   fi
1305 else
1306   ac_srcdir_defaulted=no
1307 fi
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311 fi
1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313 ac_abs_confdir=`(
1314         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315         pwd)`
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318   srcdir=.
1319 fi
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1323 case $srcdir in
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 esac
1326 for ac_var in $ac_precious_vars; do
1327   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328   eval ac_env_${ac_var}_value=\$${ac_var}
1329   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 done
1332
1333 #
1334 # Report the --help message.
1335 #
1336 if test "$ac_init_help" = "long"; then
1337   # Omit some internal or obsolete options to make the list less imposing.
1338   # This message is too long to be a string in the A/UX 3.1 sh.
1339   cat <<_ACEOF
1340 \`configure' configures libdatrie 0.2.12 to adapt to many kinds of systems.
1341
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE.  See below for descriptions of some of the useful variables.
1346
1347 Defaults for the options are specified in brackets.
1348
1349 Configuration:
1350   -h, --help              display this help and exit
1351       --help=short        display options specific to this package
1352       --help=recursive    display the short help of all the included packages
1353   -V, --version           display version information and exit
1354   -q, --quiet, --silent   do not print \`checking ...' messages
1355       --cache-file=FILE   cache test results in FILE [disabled]
1356   -C, --config-cache      alias for \`--cache-file=config.cache'
1357   -n, --no-create         do not create output files
1358       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1359
1360 Installation directories:
1361   --prefix=PREFIX         install architecture-independent files in PREFIX
1362                           [$ac_default_prefix]
1363   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1364                           [PREFIX]
1365
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1370
1371 For better control, use the options below.
1372
1373 Fine tuning of the installation directories:
1374   --bindir=DIR            user executables [EPREFIX/bin]
1375   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1376   --libexecdir=DIR        program executables [EPREFIX/libexec]
1377   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1378   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1379   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1380   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1381   --libdir=DIR            object code libraries [EPREFIX/lib]
1382   --includedir=DIR        C header files [PREFIX/include]
1383   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1384   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1385   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1386   --infodir=DIR           info documentation [DATAROOTDIR/info]
1387   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1388   --mandir=DIR            man documentation [DATAROOTDIR/man]
1389   --docdir=DIR            documentation root [DATAROOTDIR/doc/libdatrie]
1390   --htmldir=DIR           html documentation [DOCDIR]
1391   --dvidir=DIR            dvi documentation [DOCDIR]
1392   --pdfdir=DIR            pdf documentation [DOCDIR]
1393   --psdir=DIR             ps documentation [DOCDIR]
1394 _ACEOF
1395
1396   cat <<\_ACEOF
1397
1398 Program names:
1399   --program-prefix=PREFIX            prepend PREFIX to installed program names
1400   --program-suffix=SUFFIX            append SUFFIX to installed program names
1401   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1402
1403 System types:
1404   --build=BUILD     configure for building on BUILD [guessed]
1405   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1406 _ACEOF
1407 fi
1408
1409 if test -n "$ac_init_help"; then
1410   case $ac_init_help in
1411      short | recursive ) echo "Configuration of libdatrie 0.2.12:";;
1412    esac
1413   cat <<\_ACEOF
1414
1415 Optional Features:
1416   --disable-option-checking  ignore unrecognized --enable/--with options
1417   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1418   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1419   --enable-silent-rules   less verbose build output (undo: "make V=1")
1420   --disable-silent-rules  verbose build output (undo: "make V=0")
1421   --enable-dependency-tracking
1422                           do not reject slow dependency extractors
1423   --disable-dependency-tracking
1424                           speeds up one-time build
1425   --enable-shared[=PKGS]  build shared libraries [default=yes]
1426   --enable-static[=PKGS]  build static libraries [default=yes]
1427   --enable-fast-install[=PKGS]
1428                           optimize for fast installation [default=yes]
1429   --disable-libtool-lock  avoid locking (might break parallel builds)
1430   --disable-doxygen-doc   disable document generation with doxygen
1431
1432 Optional Packages:
1433   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1434   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1435   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1436                           both]
1437   --with-aix-soname=aix|svr4|both
1438                           shared library versioning (aka "SONAME") variant to
1439                           provide on AIX, [default=aix].
1440   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1441   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1442                           compiler's sysroot if not specified).
1443   --with-html-docdir=DIR  where to install the doxyten-generated HTML doc
1444                           [PREFIX/share/doc/datrie/html]
1445
1446 Some influential environment variables:
1447   CC          C compiler command
1448   CFLAGS      C compiler flags
1449   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1450               nonstandard directory <lib dir>
1451   LIBS        libraries to pass to the linker, e.g. -l<library>
1452   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453               you have headers in a nonstandard directory <include dir>
1454   LT_SYS_LIBRARY_PATH
1455               User-defined run-time library search path.
1456   CPP         C preprocessor
1457
1458 Use these variables to override the choices made by `configure' or to help
1459 it to find libraries and programs with nonstandard names/locations.
1460
1461 Report bugs to <theppitak@gmail.com>.
1462 _ACEOF
1463 ac_status=$?
1464 fi
1465
1466 if test "$ac_init_help" = "recursive"; then
1467   # If there are subdirs, report their specific --help.
1468   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469     test -d "$ac_dir" ||
1470       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1471       continue
1472     ac_builddir=.
1473
1474 case "$ac_dir" in
1475 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *)
1477   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1478   # A ".." for each directory in $ac_dir_suffix.
1479   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1480   case $ac_top_builddir_sub in
1481   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483   esac ;;
1484 esac
1485 ac_abs_top_builddir=$ac_pwd
1486 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1487 # for backward compatibility:
1488 ac_top_builddir=$ac_top_build_prefix
1489
1490 case $srcdir in
1491   .)  # We are building in place.
1492     ac_srcdir=.
1493     ac_top_srcdir=$ac_top_builddir_sub
1494     ac_abs_top_srcdir=$ac_pwd ;;
1495   [\\/]* | ?:[\\/]* )  # Absolute name.
1496     ac_srcdir=$srcdir$ac_dir_suffix;
1497     ac_top_srcdir=$srcdir
1498     ac_abs_top_srcdir=$srcdir ;;
1499   *) # Relative name.
1500     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501     ac_top_srcdir=$ac_top_build_prefix$srcdir
1502     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503 esac
1504 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505
1506     cd "$ac_dir" || { ac_status=$?; continue; }
1507     # Check for guested configure.
1508     if test -f "$ac_srcdir/configure.gnu"; then
1509       echo &&
1510       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511     elif test -f "$ac_srcdir/configure"; then
1512       echo &&
1513       $SHELL "$ac_srcdir/configure" --help=recursive
1514     else
1515       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516     fi || ac_status=$?
1517     cd "$ac_pwd" || { ac_status=$?; break; }
1518   done
1519 fi
1520
1521 test -n "$ac_init_help" && exit $ac_status
1522 if $ac_init_version; then
1523   cat <<\_ACEOF
1524 libdatrie configure 0.2.12
1525 generated by GNU Autoconf 2.69
1526
1527 Copyright (C) 2012 Free Software Foundation, Inc.
1528 This configure script is free software; the Free Software Foundation
1529 gives unlimited permission to copy, distribute and modify it.
1530 _ACEOF
1531   exit
1532 fi
1533
1534 ## ------------------------ ##
1535 ## Autoconf initialization. ##
1536 ## ------------------------ ##
1537
1538 # ac_fn_c_try_compile LINENO
1539 # --------------------------
1540 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_c_try_compile ()
1542 {
1543   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544   rm -f conftest.$ac_objext
1545   if { { ac_try="$ac_compile"
1546 case "(($ac_try" in
1547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548   *) ac_try_echo=$ac_try;;
1549 esac
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552   (eval "$ac_compile") 2>conftest.err
1553   ac_status=$?
1554   if test -s conftest.err; then
1555     grep -v '^ *+' conftest.err >conftest.er1
1556     cat conftest.er1 >&5
1557     mv -f conftest.er1 conftest.err
1558   fi
1559   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560   test $ac_status = 0; } && {
1561          test -z "$ac_c_werror_flag" ||
1562          test ! -s conftest.err
1563        } && test -s conftest.$ac_objext; then :
1564   ac_retval=0
1565 else
1566   $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1568
1569         ac_retval=1
1570 fi
1571   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572   as_fn_set_status $ac_retval
1573
1574 } # ac_fn_c_try_compile
1575
1576 # ac_fn_c_try_link LINENO
1577 # -----------------------
1578 # Try to link conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_link ()
1580 {
1581   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582   rm -f conftest.$ac_objext conftest$ac_exeext
1583   if { { ac_try="$ac_link"
1584 case "(($ac_try" in
1585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586   *) ac_try_echo=$ac_try;;
1587 esac
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590   (eval "$ac_link") 2>conftest.err
1591   ac_status=$?
1592   if test -s conftest.err; then
1593     grep -v '^ *+' conftest.err >conftest.er1
1594     cat conftest.er1 >&5
1595     mv -f conftest.er1 conftest.err
1596   fi
1597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598   test $ac_status = 0; } && {
1599          test -z "$ac_c_werror_flag" ||
1600          test ! -s conftest.err
1601        } && test -s conftest$ac_exeext && {
1602          test "$cross_compiling" = yes ||
1603          test -x conftest$ac_exeext
1604        }; then :
1605   ac_retval=0
1606 else
1607   $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1609
1610         ac_retval=1
1611 fi
1612   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1613   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1614   # interfere with the next link command; also delete a directory that is
1615   # left behind by Apple's compiler.  We do this before executing the actions.
1616   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1617   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618   as_fn_set_status $ac_retval
1619
1620 } # ac_fn_c_try_link
1621
1622 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1623 # -------------------------------------------------------
1624 # Tests whether HEADER exists and can be compiled using the include files in
1625 # INCLUDES, setting the cache variable VAR accordingly.
1626 ac_fn_c_check_header_compile ()
1627 {
1628   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630 $as_echo_n "checking for $2... " >&6; }
1631 if eval \${$3+:} false; then :
1632   $as_echo_n "(cached) " >&6
1633 else
1634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h.  */
1636 $4
1637 #include <$2>
1638 _ACEOF
1639 if ac_fn_c_try_compile "$LINENO"; then :
1640   eval "$3=yes"
1641 else
1642   eval "$3=no"
1643 fi
1644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1645 fi
1646 eval ac_res=\$$3
1647                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 $as_echo "$ac_res" >&6; }
1649   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650
1651 } # ac_fn_c_check_header_compile
1652
1653 # ac_fn_c_try_cpp LINENO
1654 # ----------------------
1655 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1656 ac_fn_c_try_cpp ()
1657 {
1658   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659   if { { ac_try="$ac_cpp conftest.$ac_ext"
1660 case "(($ac_try" in
1661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662   *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1667   ac_status=$?
1668   if test -s conftest.err; then
1669     grep -v '^ *+' conftest.err >conftest.er1
1670     cat conftest.er1 >&5
1671     mv -f conftest.er1 conftest.err
1672   fi
1673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674   test $ac_status = 0; } > conftest.i && {
1675          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1676          test ! -s conftest.err
1677        }; then :
1678   ac_retval=0
1679 else
1680   $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683     ac_retval=1
1684 fi
1685   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686   as_fn_set_status $ac_retval
1687
1688 } # ac_fn_c_try_cpp
1689
1690 # ac_fn_c_try_run LINENO
1691 # ----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693 # that executables *can* be run.
1694 ac_fn_c_try_run ()
1695 {
1696   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697   if { { ac_try="$ac_link"
1698 case "(($ac_try" in
1699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700   *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704   (eval "$ac_link") 2>&5
1705   ac_status=$?
1706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1708   { { case "(($ac_try" in
1709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710   *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714   (eval "$ac_try") 2>&5
1715   ac_status=$?
1716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717   test $ac_status = 0; }; }; then :
1718   ac_retval=0
1719 else
1720   $as_echo "$as_me: program exited with status $ac_status" >&5
1721        $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1723
1724        ac_retval=$ac_status
1725 fi
1726   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728   as_fn_set_status $ac_retval
1729
1730 } # ac_fn_c_try_run
1731
1732 # ac_fn_c_check_func LINENO FUNC VAR
1733 # ----------------------------------
1734 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1735 ac_fn_c_check_func ()
1736 {
1737   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741   $as_echo_n "(cached) " >&6
1742 else
1743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h.  */
1745 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1746    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1747 #define $2 innocuous_$2
1748
1749 /* System header to define __stub macros and hopefully few prototypes,
1750     which can conflict with char $2 (); below.
1751     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1752     <limits.h> exists even on freestanding compilers.  */
1753
1754 #ifdef __STDC__
1755 # include <limits.h>
1756 #else
1757 # include <assert.h>
1758 #endif
1759
1760 #undef $2
1761
1762 /* Override any GCC internal prototype to avoid an error.
1763    Use char because int might match the return type of a GCC
1764    builtin and then its argument prototype would still apply.  */
1765 #ifdef __cplusplus
1766 extern "C"
1767 #endif
1768 char $2 ();
1769 /* The GNU C library defines this for functions which it implements
1770     to always fail with ENOSYS.  Some functions are actually named
1771     something starting with __ and the normal name is an alias.  */
1772 #if defined __stub_$2 || defined __stub___$2
1773 choke me
1774 #endif
1775
1776 int
1777 main ()
1778 {
1779 return $2 ();
1780   ;
1781   return 0;
1782 }
1783 _ACEOF
1784 if ac_fn_c_try_link "$LINENO"; then :
1785   eval "$3=yes"
1786 else
1787   eval "$3=no"
1788 fi
1789 rm -f core conftest.err conftest.$ac_objext \
1790     conftest$ac_exeext conftest.$ac_ext
1791 fi
1792 eval ac_res=\$$3
1793                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
1797 } # ac_fn_c_check_func
1798
1799 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1800 # -------------------------------------------------------
1801 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1802 # the include files in INCLUDES and setting the cache variable VAR
1803 # accordingly.
1804 ac_fn_c_check_header_mongrel ()
1805 {
1806   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807   if eval \${$3+:} false; then :
1808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if eval \${$3+:} false; then :
1811   $as_echo_n "(cached) " >&6
1812 fi
1813 eval ac_res=\$$3
1814                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1816 else
1817   # Is the header compilable?
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1819 $as_echo_n "checking $2 usability... " >&6; }
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h.  */
1822 $4
1823 #include <$2>
1824 _ACEOF
1825 if ac_fn_c_try_compile "$LINENO"; then :
1826   ac_header_compiler=yes
1827 else
1828   ac_header_compiler=no
1829 fi
1830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1832 $as_echo "$ac_header_compiler" >&6; }
1833
1834 # Is the header present?
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1836 $as_echo_n "checking $2 presence... " >&6; }
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h.  */
1839 #include <$2>
1840 _ACEOF
1841 if ac_fn_c_try_cpp "$LINENO"; then :
1842   ac_header_preproc=yes
1843 else
1844   ac_header_preproc=no
1845 fi
1846 rm -f conftest.err conftest.i conftest.$ac_ext
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1848 $as_echo "$ac_header_preproc" >&6; }
1849
1850 # So?  What about this header?
1851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1852   yes:no: )
1853     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1854 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1855     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1856 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1857     ;;
1858   no:yes:* )
1859     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1860 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1861     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1862 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1863     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1864 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1865     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1866 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1867     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1868 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869 ( $as_echo "## ---------------------------------- ##
1870 ## Report this to theppitak@gmail.com ##
1871 ## ---------------------------------- ##"
1872      ) | sed "s/^/$as_me: WARNING:     /" >&2
1873     ;;
1874 esac
1875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if eval \${$3+:} false; then :
1878   $as_echo_n "(cached) " >&6
1879 else
1880   eval "$3=\$ac_header_compiler"
1881 fi
1882 eval ac_res=\$$3
1883                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884 $as_echo "$ac_res" >&6; }
1885 fi
1886   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887
1888 } # ac_fn_c_check_header_mongrel
1889
1890 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1891 # -------------------------------------------
1892 # Tests whether TYPE exists after having included INCLUDES, setting cache
1893 # variable VAR accordingly.
1894 ac_fn_c_check_type ()
1895 {
1896   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if eval \${$3+:} false; then :
1900   $as_echo_n "(cached) " >&6
1901 else
1902   eval "$3=no"
1903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h.  */
1905 $4
1906 int
1907 main ()
1908 {
1909 if (sizeof ($2))
1910          return 0;
1911   ;
1912   return 0;
1913 }
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h.  */
1918 $4
1919 int
1920 main ()
1921 {
1922 if (sizeof (($2)))
1923             return 0;
1924   ;
1925   return 0;
1926 }
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"; then :
1929
1930 else
1931   eval "$3=yes"
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 fi
1937 eval ac_res=\$$3
1938                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942 } # ac_fn_c_check_type
1943 cat >config.log <<_ACEOF
1944 This file contains any messages produced by compilers while
1945 running configure, to aid debugging if configure makes a mistake.
1946
1947 It was created by libdatrie $as_me 0.2.12, which was
1948 generated by GNU Autoconf 2.69.  Invocation command line was
1949
1950   $ $0 $@
1951
1952 _ACEOF
1953 exec 5>>config.log
1954 {
1955 cat <<_ASUNAME
1956 ## --------- ##
1957 ## Platform. ##
1958 ## --------- ##
1959
1960 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1961 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1962 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1963 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1964 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1965
1966 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1967 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1968
1969 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1970 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1971 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1972 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1973 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1974 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1975 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1976
1977 _ASUNAME
1978
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 for as_dir in $PATH
1981 do
1982   IFS=$as_save_IFS
1983   test -z "$as_dir" && as_dir=.
1984     $as_echo "PATH: $as_dir"
1985   done
1986 IFS=$as_save_IFS
1987
1988 } >&5
1989
1990 cat >&5 <<_ACEOF
1991
1992
1993 ## ----------- ##
1994 ## Core tests. ##
1995 ## ----------- ##
1996
1997 _ACEOF
1998
1999
2000 # Keep a trace of the command line.
2001 # Strip out --no-create and --no-recursion so they do not pile up.
2002 # Strip out --silent because we don't want to record it for future runs.
2003 # Also quote any args containing shell meta-characters.
2004 # Make two passes to allow for proper duplicate-argument suppression.
2005 ac_configure_args=
2006 ac_configure_args0=
2007 ac_configure_args1=
2008 ac_must_keep_next=false
2009 for ac_pass in 1 2
2010 do
2011   for ac_arg
2012   do
2013     case $ac_arg in
2014     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2015     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2016     | -silent | --silent | --silen | --sile | --sil)
2017       continue ;;
2018     *\'*)
2019       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2020     esac
2021     case $ac_pass in
2022     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2023     2)
2024       as_fn_append ac_configure_args1 " '$ac_arg'"
2025       if test $ac_must_keep_next = true; then
2026         ac_must_keep_next=false # Got value, back to normal.
2027       else
2028         case $ac_arg in
2029           *=* | --config-cache | -C | -disable-* | --disable-* \
2030           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2031           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2032           | -with-* | --with-* | -without-* | --without-* | --x)
2033             case "$ac_configure_args0 " in
2034               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2035             esac
2036             ;;
2037           -* ) ac_must_keep_next=true ;;
2038         esac
2039       fi
2040       as_fn_append ac_configure_args " '$ac_arg'"
2041       ;;
2042     esac
2043   done
2044 done
2045 { ac_configure_args0=; unset ac_configure_args0;}
2046 { ac_configure_args1=; unset ac_configure_args1;}
2047
2048 # When interrupted or exit'd, cleanup temporary files, and complete
2049 # config.log.  We remove comments because anyway the quotes in there
2050 # would cause problems or look ugly.
2051 # WARNING: Use '\'' to represent an apostrophe within the trap.
2052 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2053 trap 'exit_status=$?
2054   # Save into config.log some information that might help in debugging.
2055   {
2056     echo
2057
2058     $as_echo "## ---------------- ##
2059 ## Cache variables. ##
2060 ## ---------------- ##"
2061     echo
2062     # The following way of writing the cache mishandles newlines in values,
2063 (
2064   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2065     eval ac_val=\$$ac_var
2066     case $ac_val in #(
2067     *${as_nl}*)
2068       case $ac_var in #(
2069       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2070 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2071       esac
2072       case $ac_var in #(
2073       _ | IFS | as_nl) ;; #(
2074       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2075       *) { eval $ac_var=; unset $ac_var;} ;;
2076       esac ;;
2077     esac
2078   done
2079   (set) 2>&1 |
2080     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2081     *${as_nl}ac_space=\ *)
2082       sed -n \
2083         "s/'\''/'\''\\\\'\'''\''/g;
2084           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2085       ;; #(
2086     *)
2087       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2088       ;;
2089     esac |
2090     sort
2091 )
2092     echo
2093
2094     $as_echo "## ----------------- ##
2095 ## Output variables. ##
2096 ## ----------------- ##"
2097     echo
2098     for ac_var in $ac_subst_vars
2099     do
2100       eval ac_val=\$$ac_var
2101       case $ac_val in
2102       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2103       esac
2104       $as_echo "$ac_var='\''$ac_val'\''"
2105     done | sort
2106     echo
2107
2108     if test -n "$ac_subst_files"; then
2109       $as_echo "## ------------------- ##
2110 ## File substitutions. ##
2111 ## ------------------- ##"
2112       echo
2113       for ac_var in $ac_subst_files
2114       do
2115         eval ac_val=\$$ac_var
2116         case $ac_val in
2117         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2118         esac
2119         $as_echo "$ac_var='\''$ac_val'\''"
2120       done | sort
2121       echo
2122     fi
2123
2124     if test -s confdefs.h; then
2125       $as_echo "## ----------- ##
2126 ## confdefs.h. ##
2127 ## ----------- ##"
2128       echo
2129       cat confdefs.h
2130       echo
2131     fi
2132     test "$ac_signal" != 0 &&
2133       $as_echo "$as_me: caught signal $ac_signal"
2134     $as_echo "$as_me: exit $exit_status"
2135   } >&5
2136   rm -f core *.core core.conftest.* &&
2137     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2138     exit $exit_status
2139 ' 0
2140 for ac_signal in 1 2 13 15; do
2141   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2142 done
2143 ac_signal=0
2144
2145 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2146 rm -f -r conftest* confdefs.h
2147
2148 $as_echo "/* confdefs.h */" > confdefs.h
2149
2150 # Predefined preprocessor variables.
2151
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_NAME "$PACKAGE_NAME"
2154 _ACEOF
2155
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2158 _ACEOF
2159
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2162 _ACEOF
2163
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_STRING "$PACKAGE_STRING"
2166 _ACEOF
2167
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2170 _ACEOF
2171
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_URL "$PACKAGE_URL"
2174 _ACEOF
2175
2176
2177 # Let the site file select an alternate cache file if it wants to.
2178 # Prefer an explicitly selected file to automatically selected ones.
2179 ac_site_file1=NONE
2180 ac_site_file2=NONE
2181 if test -n "$CONFIG_SITE"; then
2182   # We do not want a PATH search for config.site.
2183   case $CONFIG_SITE in #((
2184     -*)  ac_site_file1=./$CONFIG_SITE;;
2185     */*) ac_site_file1=$CONFIG_SITE;;
2186     *)   ac_site_file1=./$CONFIG_SITE;;
2187   esac
2188 elif test "x$prefix" != xNONE; then
2189   ac_site_file1=$prefix/share/config.site
2190   ac_site_file2=$prefix/etc/config.site
2191 else
2192   ac_site_file1=$ac_default_prefix/share/config.site
2193   ac_site_file2=$ac_default_prefix/etc/config.site
2194 fi
2195 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2196 do
2197   test "x$ac_site_file" = xNONE && continue
2198   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2199     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2200 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2201     sed 's/^/| /' "$ac_site_file" >&5
2202     . "$ac_site_file" \
2203       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2205 as_fn_error $? "failed to load site script $ac_site_file
2206 See \`config.log' for more details" "$LINENO" 5; }
2207   fi
2208 done
2209
2210 if test -r "$cache_file"; then
2211   # Some versions of bash will fail to source /dev/null (special files
2212   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2213   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2214     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2215 $as_echo "$as_me: loading cache $cache_file" >&6;}
2216     case $cache_file in
2217       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2218       *)                      . "./$cache_file";;
2219     esac
2220   fi
2221 else
2222   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2223 $as_echo "$as_me: creating cache $cache_file" >&6;}
2224   >$cache_file
2225 fi
2226
2227 # Check that the precious variables saved in the cache have kept the same
2228 # value.
2229 ac_cache_corrupted=false
2230 for ac_var in $ac_precious_vars; do
2231   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2232   eval ac_new_set=\$ac_env_${ac_var}_set
2233   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2234   eval ac_new_val=\$ac_env_${ac_var}_value
2235   case $ac_old_set,$ac_new_set in
2236     set,)
2237       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2238 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2239       ac_cache_corrupted=: ;;
2240     ,set)
2241       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2242 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2243       ac_cache_corrupted=: ;;
2244     ,);;
2245     *)
2246       if test "x$ac_old_val" != "x$ac_new_val"; then
2247         # differences in whitespace do not lead to failure.
2248         ac_old_val_w=`echo x $ac_old_val`
2249         ac_new_val_w=`echo x $ac_new_val`
2250         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2251           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2252 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2253           ac_cache_corrupted=:
2254         else
2255           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2256 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2257           eval $ac_var=\$ac_old_val
2258         fi
2259         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2260 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2261         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2262 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2263       fi;;
2264   esac
2265   # Pass precious variables to config.status.
2266   if test "$ac_new_set" = set; then
2267     case $ac_new_val in
2268     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2269     *) ac_arg=$ac_var=$ac_new_val ;;
2270     esac
2271     case " $ac_configure_args " in
2272       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2273       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2274     esac
2275   fi
2276 done
2277 if $ac_cache_corrupted; then
2278   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2280   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2281 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2282   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2283 fi
2284 ## -------------------- ##
2285 ## Main body of script. ##
2286 ## -------------------- ##
2287
2288 ac_ext=c
2289 ac_cpp='$CPP $CPPFLAGS'
2290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2293
2294
2295
2296 ac_config_headers="$ac_config_headers config.h"
2297
2298 ac_aux_dir=
2299 for ac_dir in build-aux "$srcdir"/build-aux; do
2300   if test -f "$ac_dir/install-sh"; then
2301     ac_aux_dir=$ac_dir
2302     ac_install_sh="$ac_aux_dir/install-sh -c"
2303     break
2304   elif test -f "$ac_dir/install.sh"; then
2305     ac_aux_dir=$ac_dir
2306     ac_install_sh="$ac_aux_dir/install.sh -c"
2307     break
2308   elif test -f "$ac_dir/shtool"; then
2309     ac_aux_dir=$ac_dir
2310     ac_install_sh="$ac_aux_dir/shtool install -c"
2311     break
2312   fi
2313 done
2314 if test -z "$ac_aux_dir"; then
2315   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2316 fi
2317
2318 # These three variables are undocumented and unsupported,
2319 # and are intended to be withdrawn in a future Autoconf release.
2320 # They can cause serious problems if a builder's source tree is in a directory
2321 # whose full name contains unusual characters.
2322 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2323 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2324 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2325
2326
2327
2328
2329 am__api_version='1.15'
2330
2331 # Find a good install program.  We prefer a C program (faster),
2332 # so one script is as good as another.  But avoid the broken or
2333 # incompatible versions:
2334 # SysV /etc/install, /usr/sbin/install
2335 # SunOS /usr/etc/install
2336 # IRIX /sbin/install
2337 # AIX /bin/install
2338 # AmigaOS /C/install, which installs bootblocks on floppy discs
2339 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2340 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2341 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2342 # OS/2's system install, which has a completely different semantic
2343 # ./install, which can be erroneously created by make from ./install.sh.
2344 # Reject install programs that cannot install multiple files.
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2346 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2347 if test -z "$INSTALL"; then
2348 if ${ac_cv_path_install+:} false; then :
2349   $as_echo_n "(cached) " >&6
2350 else
2351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 for as_dir in $PATH
2353 do
2354   IFS=$as_save_IFS
2355   test -z "$as_dir" && as_dir=.
2356     # Account for people who put trailing slashes in PATH elements.
2357 case $as_dir/ in #((
2358   ./ | .// | /[cC]/* | \
2359   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2360   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2361   /usr/ucb/* ) ;;
2362   *)
2363     # OSF1 and SCO ODT 3.0 have their own names for install.
2364     # Don't use installbsd from OSF since it installs stuff as root
2365     # by default.
2366     for ac_prog in ginstall scoinst install; do
2367       for ac_exec_ext in '' $ac_executable_extensions; do
2368         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2369           if test $ac_prog = install &&
2370             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2371             # AIX install.  It has an incompatible calling convention.
2372             :
2373           elif test $ac_prog = install &&
2374             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2375             # program-specific install script used by HP pwplus--don't use.
2376             :
2377           else
2378             rm -rf conftest.one conftest.two conftest.dir
2379             echo one > conftest.one
2380             echo two > conftest.two
2381             mkdir conftest.dir
2382             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2383               test -s conftest.one && test -s conftest.two &&
2384               test -s conftest.dir/conftest.one &&
2385               test -s conftest.dir/conftest.two
2386             then
2387               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2388               break 3
2389             fi
2390           fi
2391         fi
2392       done
2393     done
2394     ;;
2395 esac
2396
2397   done
2398 IFS=$as_save_IFS
2399
2400 rm -rf conftest.one conftest.two conftest.dir
2401
2402 fi
2403   if test "${ac_cv_path_install+set}" = set; then
2404     INSTALL=$ac_cv_path_install
2405   else
2406     # As a last resort, use the slow shell script.  Don't cache a
2407     # value for INSTALL within a source directory, because that will
2408     # break other packages using the cache if that directory is
2409     # removed, or if the value is a relative name.
2410     INSTALL=$ac_install_sh
2411   fi
2412 fi
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2414 $as_echo "$INSTALL" >&6; }
2415
2416 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2417 # It thinks the first close brace ends the variable substitution.
2418 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2419
2420 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2421
2422 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2423
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2425 $as_echo_n "checking whether build environment is sane... " >&6; }
2426 # Reject unsafe characters in $srcdir or the absolute working directory
2427 # name.  Accept space and tab only in the latter.
2428 am_lf='
2429 '
2430 case `pwd` in
2431   *[\\\"\#\$\&\'\`$am_lf]*)
2432     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2433 esac
2434 case $srcdir in
2435   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2436     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2437 esac
2438
2439 # Do 'set' in a subshell so we don't clobber the current shell's
2440 # arguments.  Must try -L first in case configure is actually a
2441 # symlink; some systems play weird games with the mod time of symlinks
2442 # (eg FreeBSD returns the mod time of the symlink's containing
2443 # directory).
2444 if (
2445    am_has_slept=no
2446    for am_try in 1 2; do
2447      echo "timestamp, slept: $am_has_slept" > conftest.file
2448      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2449      if test "$*" = "X"; then
2450         # -L didn't work.
2451         set X `ls -t "$srcdir/configure" conftest.file`
2452      fi
2453      if test "$*" != "X $srcdir/configure conftest.file" \
2454         && test "$*" != "X conftest.file $srcdir/configure"; then
2455
2456         # If neither matched, then we have a broken ls.  This can happen
2457         # if, for instance, CONFIG_SHELL is bash and it inherits a
2458         # broken ls alias from the environment.  This has actually
2459         # happened.  Such a system could not be considered "sane".
2460         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2461   alias in your environment" "$LINENO" 5
2462      fi
2463      if test "$2" = conftest.file || test $am_try -eq 2; then
2464        break
2465      fi
2466      # Just in case.
2467      sleep 1
2468      am_has_slept=yes
2469    done
2470    test "$2" = conftest.file
2471    )
2472 then
2473    # Ok.
2474    :
2475 else
2476    as_fn_error $? "newly created file is older than distributed files!
2477 Check your system clock" "$LINENO" 5
2478 fi
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2480 $as_echo "yes" >&6; }
2481 # If we didn't sleep, we still need to ensure time stamps of config.status and
2482 # generated files are strictly newer.
2483 am_sleep_pid=
2484 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2485   ( sleep 1 ) &
2486   am_sleep_pid=$!
2487 fi
2488
2489 rm -f conftest.file
2490
2491 test "$program_prefix" != NONE &&
2492   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2493 # Use a double $ so make ignores it.
2494 test "$program_suffix" != NONE &&
2495   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2496 # Double any \ or $.
2497 # By default was `s,x,x', remove it if useless.
2498 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2499 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2500
2501 # Expand $ac_aux_dir to an absolute path.
2502 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2503
2504 if test x"${MISSING+set}" != xset; then
2505   case $am_aux_dir in
2506   *\ * | *\     *)
2507     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2508   *)
2509     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2510   esac
2511 fi
2512 # Use eval to expand $SHELL
2513 if eval "$MISSING --is-lightweight"; then
2514   am_missing_run="$MISSING "
2515 else
2516   am_missing_run=
2517   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2518 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2519 fi
2520
2521 if test x"${install_sh+set}" != xset; then
2522   case $am_aux_dir in
2523   *\ * | *\     *)
2524     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2525   *)
2526     install_sh="\${SHELL} $am_aux_dir/install-sh"
2527   esac
2528 fi
2529
2530 # Installed binaries are usually stripped using 'strip' when the user
2531 # run "make install-strip".  However 'strip' might not be the right
2532 # tool to use in cross-compilation environments, therefore Automake
2533 # will honor the 'STRIP' environment variable to overrule this program.
2534 if test "$cross_compiling" != no; then
2535   if test -n "$ac_tool_prefix"; then
2536   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2537 set dummy ${ac_tool_prefix}strip; ac_word=$2
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if ${ac_cv_prog_STRIP+:} false; then :
2541   $as_echo_n "(cached) " >&6
2542 else
2543   if test -n "$STRIP"; then
2544   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549   IFS=$as_save_IFS
2550   test -z "$as_dir" && as_dir=.
2551     for ac_exec_ext in '' $ac_executable_extensions; do
2552   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2555     break 2
2556   fi
2557 done
2558   done
2559 IFS=$as_save_IFS
2560
2561 fi
2562 fi
2563 STRIP=$ac_cv_prog_STRIP
2564 if test -n "$STRIP"; then
2565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2566 $as_echo "$STRIP" >&6; }
2567 else
2568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 $as_echo "no" >&6; }
2570 fi
2571
2572
2573 fi
2574 if test -z "$ac_cv_prog_STRIP"; then
2575   ac_ct_STRIP=$STRIP
2576   # Extract the first word of "strip", so it can be a program name with args.
2577 set dummy strip; ac_word=$2
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579 $as_echo_n "checking for $ac_word... " >&6; }
2580 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2581   $as_echo_n "(cached) " >&6
2582 else
2583   if test -n "$ac_ct_STRIP"; then
2584   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2588 do
2589   IFS=$as_save_IFS
2590   test -z "$as_dir" && as_dir=.
2591     for ac_exec_ext in '' $ac_executable_extensions; do
2592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593     ac_cv_prog_ac_ct_STRIP="strip"
2594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595     break 2
2596   fi
2597 done
2598   done
2599 IFS=$as_save_IFS
2600
2601 fi
2602 fi
2603 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2604 if test -n "$ac_ct_STRIP"; then
2605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2606 $as_echo "$ac_ct_STRIP" >&6; }
2607 else
2608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609 $as_echo "no" >&6; }
2610 fi
2611
2612   if test "x$ac_ct_STRIP" = x; then
2613     STRIP=":"
2614   else
2615     case $cross_compiling:$ac_tool_warned in
2616 yes:)
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2619 ac_tool_warned=yes ;;
2620 esac
2621     STRIP=$ac_ct_STRIP
2622   fi
2623 else
2624   STRIP="$ac_cv_prog_STRIP"
2625 fi
2626
2627 fi
2628 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2629
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2631 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2632 if test -z "$MKDIR_P"; then
2633   if ${ac_cv_path_mkdir+:} false; then :
2634   $as_echo_n "(cached) " >&6
2635 else
2636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2638 do
2639   IFS=$as_save_IFS
2640   test -z "$as_dir" && as_dir=.
2641     for ac_prog in mkdir gmkdir; do
2642          for ac_exec_ext in '' $ac_executable_extensions; do
2643            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2644            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2645              'mkdir (GNU coreutils) '* | \
2646              'mkdir (coreutils) '* | \
2647              'mkdir (fileutils) '4.1*)
2648                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2649                break 3;;
2650            esac
2651          done
2652        done
2653   done
2654 IFS=$as_save_IFS
2655
2656 fi
2657
2658   test -d ./--version && rmdir ./--version
2659   if test "${ac_cv_path_mkdir+set}" = set; then
2660     MKDIR_P="$ac_cv_path_mkdir -p"
2661   else
2662     # As a last resort, use the slow shell script.  Don't cache a
2663     # value for MKDIR_P within a source directory, because that will
2664     # break other packages using the cache if that directory is
2665     # removed, or if the value is a relative name.
2666     MKDIR_P="$ac_install_sh -d"
2667   fi
2668 fi
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2670 $as_echo "$MKDIR_P" >&6; }
2671
2672 for ac_prog in gawk mawk nawk awk
2673 do
2674   # Extract the first word of "$ac_prog", so it can be a program name with args.
2675 set dummy $ac_prog; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if ${ac_cv_prog_AWK+:} false; then :
2679   $as_echo_n "(cached) " >&6
2680 else
2681   if test -n "$AWK"; then
2682   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687   IFS=$as_save_IFS
2688   test -z "$as_dir" && as_dir=.
2689     for ac_exec_ext in '' $ac_executable_extensions; do
2690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691     ac_cv_prog_AWK="$ac_prog"
2692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693     break 2
2694   fi
2695 done
2696   done
2697 IFS=$as_save_IFS
2698
2699 fi
2700 fi
2701 AWK=$ac_cv_prog_AWK
2702 if test -n "$AWK"; then
2703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2704 $as_echo "$AWK" >&6; }
2705 else
2706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2708 fi
2709
2710
2711   test -n "$AWK" && break
2712 done
2713
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2715 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2716 set x ${MAKE-make}
2717 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2718 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2719   $as_echo_n "(cached) " >&6
2720 else
2721   cat >conftest.make <<\_ACEOF
2722 SHELL = /bin/sh
2723 all:
2724         @echo '@@@%%%=$(MAKE)=@@@%%%'
2725 _ACEOF
2726 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2727 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2728   *@@@%%%=?*=@@@%%%*)
2729     eval ac_cv_prog_make_${ac_make}_set=yes;;
2730   *)
2731     eval ac_cv_prog_make_${ac_make}_set=no;;
2732 esac
2733 rm -f conftest.make
2734 fi
2735 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2737 $as_echo "yes" >&6; }
2738   SET_MAKE=
2739 else
2740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2742   SET_MAKE="MAKE=${MAKE-make}"
2743 fi
2744
2745 rm -rf .tst 2>/dev/null
2746 mkdir .tst 2>/dev/null
2747 if test -d .tst; then
2748   am__leading_dot=.
2749 else
2750   am__leading_dot=_
2751 fi
2752 rmdir .tst 2>/dev/null
2753
2754 # Check whether --enable-silent-rules was given.
2755 if test "${enable_silent_rules+set}" = set; then :
2756   enableval=$enable_silent_rules;
2757 fi
2758
2759 case $enable_silent_rules in # (((
2760   yes) AM_DEFAULT_VERBOSITY=0;;
2761    no) AM_DEFAULT_VERBOSITY=1;;
2762     *) AM_DEFAULT_VERBOSITY=1;;
2763 esac
2764 am_make=${MAKE-make}
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2766 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2767 if ${am_cv_make_support_nested_variables+:} false; then :
2768   $as_echo_n "(cached) " >&6
2769 else
2770   if $as_echo 'TRUE=$(BAR$(V))
2771 BAR0=false
2772 BAR1=true
2773 V=1
2774 am__doit:
2775         @$(TRUE)
2776 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2777   am_cv_make_support_nested_variables=yes
2778 else
2779   am_cv_make_support_nested_variables=no
2780 fi
2781 fi
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2783 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2784 if test $am_cv_make_support_nested_variables = yes; then
2785     AM_V='$(V)'
2786   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2787 else
2788   AM_V=$AM_DEFAULT_VERBOSITY
2789   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2790 fi
2791 AM_BACKSLASH='\'
2792
2793 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2794   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2795   # is not polluted with repeated "-I."
2796   am__isrc=' -I$(srcdir)'
2797   # test to see if srcdir already configured
2798   if test -f $srcdir/config.status; then
2799     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2800   fi
2801 fi
2802
2803 # test whether we have cygpath
2804 if test -z "$CYGPATH_W"; then
2805   if (cygpath --version) >/dev/null 2>/dev/null; then
2806     CYGPATH_W='cygpath -w'
2807   else
2808     CYGPATH_W=echo
2809   fi
2810 fi
2811
2812
2813 # Define the identity of the package.
2814  PACKAGE='libdatrie'
2815  VERSION='0.2.12'
2816
2817
2818 cat >>confdefs.h <<_ACEOF
2819 #define PACKAGE "$PACKAGE"
2820 _ACEOF
2821
2822
2823 cat >>confdefs.h <<_ACEOF
2824 #define VERSION "$VERSION"
2825 _ACEOF
2826
2827 # Some tools Automake needs.
2828
2829 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2830
2831
2832 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2833
2834
2835 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2836
2837
2838 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2839
2840
2841 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2842
2843 # For better backward compatibility.  To be removed once Automake 1.9.x
2844 # dies out for good.  For more background, see:
2845 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2846 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2847 mkdir_p='$(MKDIR_P)'
2848
2849 # We need awk for the "check" target (and possibly the TAP driver).  The
2850 # system "awk" is bad on some platforms.
2851 # Always define AMTAR for backward compatibility.  Yes, it's still used
2852 # in the wild :-(  We should find a proper way to deprecate it ...
2853 AMTAR='$${TAR-tar}'
2854
2855
2856 # We'll loop over all known methods to create a tar archive until one works.
2857 _am_tools='gnutar  pax cpio none'
2858
2859 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2860
2861
2862
2863
2864
2865
2866 # POSIX will say in a future version that running "rm -f" with no argument
2867 # is OK; and we want to be able to make that assumption in our Makefile
2868 # recipes.  So use an aggressive probe to check that the usage we want is
2869 # actually supported "in the wild" to an acceptable degree.
2870 # See automake bug#10828.
2871 # To make any issue more visible, cause the running configure to be aborted
2872 # by default if the 'rm' program in use doesn't match our expectations; the
2873 # user can still override this though.
2874 if rm -f && rm -fr && rm -rf; then : OK; else
2875   cat >&2 <<'END'
2876 Oops!
2877
2878 Your 'rm' program seems unable to run without file operands specified
2879 on the command line, even when the '-f' option is present.  This is contrary
2880 to the behaviour of most rm programs out there, and not conforming with
2881 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2882
2883 Please tell bug-automake@gnu.org about your system, including the value
2884 of your $PATH and any error possibly output before this message.  This
2885 can help us improve future automake versions.
2886
2887 END
2888   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2889     echo 'Configuration will proceed anyway, since you have set the' >&2
2890     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2891     echo >&2
2892   else
2893     cat >&2 <<'END'
2894 Aborting the configuration process, to ensure you take notice of the issue.
2895
2896 You can download and install GNU coreutils to get an 'rm' implementation
2897 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2898
2899 If you want to complete the configuration process using your problematic
2900 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2901 to "yes", and re-run configure.
2902
2903 END
2904     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2905   fi
2906 fi
2907
2908
2909 # Library versioning
2910 # Library code modified:                    REVISION++
2911 # Interfaces added:              CURRENT++  REVISION=0  AGE++
2912 # Interfaces changed/removed:    CURRENT++  REVISION=0  AGE=0
2913 LT_CURRENT=4
2914 LT_REVISION=5
2915 LT_AGE=3
2916
2917
2918
2919
2920 DOXYGEN_REQ_VER=1.8.8
2921
2922 # Checks for programs.
2923 ac_ext=c
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928 if test -n "$ac_tool_prefix"; then
2929   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2930 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if ${ac_cv_prog_CC+:} false; then :
2934   $as_echo_n "(cached) " >&6
2935 else
2936   if test -n "$CC"; then
2937   ac_cv_prog_CC="$CC" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942   IFS=$as_save_IFS
2943   test -z "$as_dir" && as_dir=.
2944     for ac_exec_ext in '' $ac_executable_extensions; do
2945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948     break 2
2949   fi
2950 done
2951   done
2952 IFS=$as_save_IFS
2953
2954 fi
2955 fi
2956 CC=$ac_cv_prog_CC
2957 if test -n "$CC"; then
2958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959 $as_echo "$CC" >&6; }
2960 else
2961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2963 fi
2964
2965
2966 fi
2967 if test -z "$ac_cv_prog_CC"; then
2968   ac_ct_CC=$CC
2969   # Extract the first word of "gcc", so it can be a program name with args.
2970 set dummy gcc; ac_word=$2
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2974   $as_echo_n "(cached) " >&6
2975 else
2976   if test -n "$ac_ct_CC"; then
2977   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982   IFS=$as_save_IFS
2983   test -z "$as_dir" && as_dir=.
2984     for ac_exec_ext in '' $ac_executable_extensions; do
2985   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2986     ac_cv_prog_ac_ct_CC="gcc"
2987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988     break 2
2989   fi
2990 done
2991   done
2992 IFS=$as_save_IFS
2993
2994 fi
2995 fi
2996 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2997 if test -n "$ac_ct_CC"; then
2998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2999 $as_echo "$ac_ct_CC" >&6; }
3000 else
3001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002 $as_echo "no" >&6; }
3003 fi
3004
3005   if test "x$ac_ct_CC" = x; then
3006     CC=""
3007   else
3008     case $cross_compiling:$ac_tool_warned in
3009 yes:)
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3012 ac_tool_warned=yes ;;
3013 esac
3014     CC=$ac_ct_CC
3015   fi
3016 else
3017   CC="$ac_cv_prog_CC"
3018 fi
3019
3020 if test -z "$CC"; then
3021           if test -n "$ac_tool_prefix"; then
3022     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3023 set dummy ${ac_tool_prefix}cc; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if ${ac_cv_prog_CC+:} false; then :
3027   $as_echo_n "(cached) " >&6
3028 else
3029   if test -n "$CC"; then
3030   ac_cv_prog_CC="$CC" # Let the user override the test.
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3034 do
3035   IFS=$as_save_IFS
3036   test -z "$as_dir" && as_dir=.
3037     for ac_exec_ext in '' $ac_executable_extensions; do
3038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039     ac_cv_prog_CC="${ac_tool_prefix}cc"
3040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041     break 2
3042   fi
3043 done
3044   done
3045 IFS=$as_save_IFS
3046
3047 fi
3048 fi
3049 CC=$ac_cv_prog_CC
3050 if test -n "$CC"; then
3051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3052 $as_echo "$CC" >&6; }
3053 else
3054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3056 fi
3057
3058
3059   fi
3060 fi
3061 if test -z "$CC"; then
3062   # Extract the first word of "cc", so it can be a program name with args.
3063 set dummy cc; ac_word=$2
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065 $as_echo_n "checking for $ac_word... " >&6; }
3066 if ${ac_cv_prog_CC+:} false; then :
3067   $as_echo_n "(cached) " >&6
3068 else
3069   if test -n "$CC"; then
3070   ac_cv_prog_CC="$CC" # Let the user override the test.
3071 else
3072   ac_prog_rejected=no
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3075 do
3076   IFS=$as_save_IFS
3077   test -z "$as_dir" && as_dir=.
3078     for ac_exec_ext in '' $ac_executable_extensions; do
3079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3081        ac_prog_rejected=yes
3082        continue
3083      fi
3084     ac_cv_prog_CC="cc"
3085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086     break 2
3087   fi
3088 done
3089   done
3090 IFS=$as_save_IFS
3091
3092 if test $ac_prog_rejected = yes; then
3093   # We found a bogon in the path, so make sure we never use it.
3094   set dummy $ac_cv_prog_CC
3095   shift
3096   if test $# != 0; then
3097     # We chose a different compiler from the bogus one.
3098     # However, it has the same basename, so the bogon will be chosen
3099     # first if we set CC to just the basename; use the full file name.
3100     shift
3101     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3102   fi
3103 fi
3104 fi
3105 fi
3106 CC=$ac_cv_prog_CC
3107 if test -n "$CC"; then
3108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109 $as_echo "$CC" >&6; }
3110 else
3111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3113 fi
3114
3115
3116 fi
3117 if test -z "$CC"; then
3118   if test -n "$ac_tool_prefix"; then
3119   for ac_prog in cl.exe
3120   do
3121     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if ${ac_cv_prog_CC+:} false; then :
3126   $as_echo_n "(cached) " >&6
3127 else
3128   if test -n "$CC"; then
3129   ac_cv_prog_CC="$CC" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134   IFS=$as_save_IFS
3135   test -z "$as_dir" && as_dir=.
3136     for ac_exec_ext in '' $ac_executable_extensions; do
3137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140     break 2
3141   fi
3142 done
3143   done
3144 IFS=$as_save_IFS
3145
3146 fi
3147 fi
3148 CC=$ac_cv_prog_CC
3149 if test -n "$CC"; then
3150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151 $as_echo "$CC" >&6; }
3152 else
3153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3155 fi
3156
3157
3158     test -n "$CC" && break
3159   done
3160 fi
3161 if test -z "$CC"; then
3162   ac_ct_CC=$CC
3163   for ac_prog in cl.exe
3164 do
3165   # Extract the first word of "$ac_prog", so it can be a program name with args.
3166 set dummy $ac_prog; ac_word=$2
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 $as_echo_n "checking for $ac_word... " >&6; }
3169 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3170   $as_echo_n "(cached) " >&6
3171 else
3172   if test -n "$ac_ct_CC"; then
3173   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3174 else
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3177 do
3178   IFS=$as_save_IFS
3179   test -z "$as_dir" && as_dir=.
3180     for ac_exec_ext in '' $ac_executable_extensions; do
3181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182     ac_cv_prog_ac_ct_CC="$ac_prog"
3183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184     break 2
3185   fi
3186 done
3187   done
3188 IFS=$as_save_IFS
3189
3190 fi
3191 fi
3192 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3193 if test -n "$ac_ct_CC"; then
3194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3195 $as_echo "$ac_ct_CC" >&6; }
3196 else
3197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3199 fi
3200
3201
3202   test -n "$ac_ct_CC" && break
3203 done
3204
3205   if test "x$ac_ct_CC" = x; then
3206     CC=""
3207   else
3208     case $cross_compiling:$ac_tool_warned in
3209 yes:)
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3212 ac_tool_warned=yes ;;
3213 esac
3214     CC=$ac_ct_CC
3215   fi
3216 fi
3217
3218 fi
3219
3220
3221 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3223 as_fn_error $? "no acceptable C compiler found in \$PATH
3224 See \`config.log' for more details" "$LINENO" 5; }
3225
3226 # Provide some information about the compiler.
3227 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3228 set X $ac_compile
3229 ac_compiler=$2
3230 for ac_option in --version -v -V -qversion; do
3231   { { ac_try="$ac_compiler $ac_option >&5"
3232 case "(($ac_try" in
3233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234   *) ac_try_echo=$ac_try;;
3235 esac
3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 $as_echo "$ac_try_echo"; } >&5
3238   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3239   ac_status=$?
3240   if test -s conftest.err; then
3241     sed '10a\
3242 ... rest of stderr output deleted ...
3243          10q' conftest.err >conftest.er1
3244     cat conftest.er1 >&5
3245   fi
3246   rm -f conftest.er1 conftest.err
3247   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248   test $ac_status = 0; }
3249 done
3250
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h.  */
3253
3254 int
3255 main ()
3256 {
3257
3258   ;
3259   return 0;
3260 }
3261 _ACEOF
3262 ac_clean_files_save=$ac_clean_files
3263 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3264 # Try to create an executable without -o first, disregard a.out.
3265 # It will help us diagnose broken compilers, and finding out an intuition
3266 # of exeext.
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3268 $as_echo_n "checking whether the C compiler works... " >&6; }
3269 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3270
3271 # The possible output files:
3272 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3273
3274 ac_rmfiles=
3275 for ac_file in $ac_files
3276 do
3277   case $ac_file in
3278     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3279     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3280   esac
3281 done
3282 rm -f $ac_rmfiles
3283
3284 if { { ac_try="$ac_link_default"
3285 case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291   (eval "$ac_link_default") 2>&5
3292   ac_status=$?
3293   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294   test $ac_status = 0; }; then :
3295   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3296 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3297 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3298 # so that the user can short-circuit this test for compilers unknown to
3299 # Autoconf.
3300 for ac_file in $ac_files ''
3301 do
3302   test -f "$ac_file" || continue
3303   case $ac_file in
3304     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3305         ;;
3306     [ab].out )
3307         # We found the default executable, but exeext='' is most
3308         # certainly right.
3309         break;;
3310     *.* )
3311         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3312         then :; else
3313            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314         fi
3315         # We set ac_cv_exeext here because the later test for it is not
3316         # safe: cross compilers may not add the suffix if given an `-o'
3317         # argument, so we may need to know it at that point already.
3318         # Even if this section looks crufty: it has the advantage of
3319         # actually working.
3320         break;;
3321     * )
3322         break;;
3323   esac
3324 done
3325 test "$ac_cv_exeext" = no && ac_cv_exeext=
3326
3327 else
3328   ac_file=''
3329 fi
3330 if test -z "$ac_file"; then :
3331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 $as_echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3335
3336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338 as_fn_error 77 "C compiler cannot create executables
3339 See \`config.log' for more details" "$LINENO" 5; }
3340 else
3341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3342 $as_echo "yes" >&6; }
3343 fi
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3345 $as_echo_n "checking for C compiler default output file name... " >&6; }
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3347 $as_echo "$ac_file" >&6; }
3348 ac_exeext=$ac_cv_exeext
3349
3350 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3351 ac_clean_files=$ac_clean_files_save
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3353 $as_echo_n "checking for suffix of executables... " >&6; }
3354 if { { ac_try="$ac_link"
3355 case "(($ac_try" in
3356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357   *) ac_try_echo=$ac_try;;
3358 esac
3359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3360 $as_echo "$ac_try_echo"; } >&5
3361   (eval "$ac_link") 2>&5
3362   ac_status=$?
3363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3364   test $ac_status = 0; }; then :
3365   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3366 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3367 # work properly (i.e., refer to `conftest.exe'), while it won't with
3368 # `rm'.
3369 for ac_file in conftest.exe conftest conftest.*; do
3370   test -f "$ac_file" || continue
3371   case $ac_file in
3372     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3373     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3374           break;;
3375     * ) break;;
3376   esac
3377 done
3378 else
3379   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3382 See \`config.log' for more details" "$LINENO" 5; }
3383 fi
3384 rm -f conftest conftest$ac_cv_exeext
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3386 $as_echo "$ac_cv_exeext" >&6; }
3387
3388 rm -f conftest.$ac_ext
3389 EXEEXT=$ac_cv_exeext
3390 ac_exeext=$EXEEXT
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392 /* end confdefs.h.  */
3393 #include <stdio.h>
3394 int
3395 main ()
3396 {
3397 FILE *f = fopen ("conftest.out", "w");
3398  return ferror (f) || fclose (f) != 0;
3399
3400   ;
3401   return 0;
3402 }
3403 _ACEOF
3404 ac_clean_files="$ac_clean_files conftest.out"
3405 # Check that the compiler produces executables we can run.  If not, either
3406 # the compiler is broken, or we cross compile.
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3408 $as_echo_n "checking whether we are cross compiling... " >&6; }
3409 if test "$cross_compiling" != yes; then
3410   { { ac_try="$ac_link"
3411 case "(($ac_try" in
3412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413   *) ac_try_echo=$ac_try;;
3414 esac
3415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416 $as_echo "$ac_try_echo"; } >&5
3417   (eval "$ac_link") 2>&5
3418   ac_status=$?
3419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420   test $ac_status = 0; }
3421   if { ac_try='./conftest$ac_cv_exeext'
3422   { { case "(($ac_try" in
3423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424   *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428   (eval "$ac_try") 2>&5
3429   ac_status=$?
3430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431   test $ac_status = 0; }; }; then
3432     cross_compiling=no
3433   else
3434     if test "$cross_compiling" = maybe; then
3435         cross_compiling=yes
3436     else
3437         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3439 as_fn_error $? "cannot run C compiled programs.
3440 If you meant to cross compile, use \`--host'.
3441 See \`config.log' for more details" "$LINENO" 5; }
3442     fi
3443   fi
3444 fi
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3446 $as_echo "$cross_compiling" >&6; }
3447
3448 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3449 ac_clean_files=$ac_clean_files_save
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3451 $as_echo_n "checking for suffix of object files... " >&6; }
3452 if ${ac_cv_objext+:} false; then :
3453   $as_echo_n "(cached) " >&6
3454 else
3455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h.  */
3457
3458 int
3459 main ()
3460 {
3461
3462   ;
3463   return 0;
3464 }
3465 _ACEOF
3466 rm -f conftest.o conftest.obj
3467 if { { ac_try="$ac_compile"
3468 case "(($ac_try" in
3469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470   *) ac_try_echo=$ac_try;;
3471 esac
3472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473 $as_echo "$ac_try_echo"; } >&5
3474   (eval "$ac_compile") 2>&5
3475   ac_status=$?
3476   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477   test $ac_status = 0; }; then :
3478   for ac_file in conftest.o conftest.obj conftest.*; do
3479   test -f "$ac_file" || continue;
3480   case $ac_file in
3481     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3482     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3483        break;;
3484   esac
3485 done
3486 else
3487   $as_echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3489
3490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3492 as_fn_error $? "cannot compute suffix of object files: cannot compile
3493 See \`config.log' for more details" "$LINENO" 5; }
3494 fi
3495 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3496 fi
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3498 $as_echo "$ac_cv_objext" >&6; }
3499 OBJEXT=$ac_cv_objext
3500 ac_objext=$OBJEXT
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3502 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3503 if ${ac_cv_c_compiler_gnu+:} false; then :
3504   $as_echo_n "(cached) " >&6
3505 else
3506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h.  */
3508
3509 int
3510 main ()
3511 {
3512 #ifndef __GNUC__
3513        choke me
3514 #endif
3515
3516   ;
3517   return 0;
3518 }
3519 _ACEOF
3520 if ac_fn_c_try_compile "$LINENO"; then :
3521   ac_compiler_gnu=yes
3522 else
3523   ac_compiler_gnu=no
3524 fi
3525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3526 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3527
3528 fi
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3530 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3531 if test $ac_compiler_gnu = yes; then
3532   GCC=yes
3533 else
3534   GCC=
3535 fi
3536 ac_test_CFLAGS=${CFLAGS+set}
3537 ac_save_CFLAGS=$CFLAGS
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3539 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3540 if ${ac_cv_prog_cc_g+:} false; then :
3541   $as_echo_n "(cached) " >&6
3542 else
3543   ac_save_c_werror_flag=$ac_c_werror_flag
3544    ac_c_werror_flag=yes
3545    ac_cv_prog_cc_g=no
3546    CFLAGS="-g"
3547    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548 /* end confdefs.h.  */
3549
3550 int
3551 main ()
3552 {
3553
3554   ;
3555   return 0;
3556 }
3557 _ACEOF
3558 if ac_fn_c_try_compile "$LINENO"; then :
3559   ac_cv_prog_cc_g=yes
3560 else
3561   CFLAGS=""
3562       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h.  */
3564
3565 int
3566 main ()
3567 {
3568
3569   ;
3570   return 0;
3571 }
3572 _ACEOF
3573 if ac_fn_c_try_compile "$LINENO"; then :
3574
3575 else
3576   ac_c_werror_flag=$ac_save_c_werror_flag
3577          CFLAGS="-g"
3578          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h.  */
3580
3581 int
3582 main ()
3583 {
3584
3585   ;
3586   return 0;
3587 }
3588 _ACEOF
3589 if ac_fn_c_try_compile "$LINENO"; then :
3590   ac_cv_prog_cc_g=yes
3591 fi
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_c_werror_flag=$ac_save_c_werror_flag
3598 fi
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3600 $as_echo "$ac_cv_prog_cc_g" >&6; }
3601 if test "$ac_test_CFLAGS" = set; then
3602   CFLAGS=$ac_save_CFLAGS
3603 elif test $ac_cv_prog_cc_g = yes; then
3604   if test "$GCC" = yes; then
3605     CFLAGS="-g -O2"
3606   else
3607     CFLAGS="-g"
3608   fi
3609 else
3610   if test "$GCC" = yes; then
3611     CFLAGS="-O2"
3612   else
3613     CFLAGS=
3614   fi
3615 fi
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3617 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3618 if ${ac_cv_prog_cc_c89+:} false; then :
3619   $as_echo_n "(cached) " >&6
3620 else
3621   ac_cv_prog_cc_c89=no
3622 ac_save_CC=$CC
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h.  */
3625 #include <stdarg.h>
3626 #include <stdio.h>
3627 struct stat;
3628 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3629 struct buf { int x; };
3630 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3631 static char *e (p, i)
3632      char **p;
3633      int i;
3634 {
3635   return p[i];
3636 }
3637 static char *f (char * (*g) (char **, int), char **p, ...)
3638 {
3639   char *s;
3640   va_list v;
3641   va_start (v,p);
3642   s = g (p, va_arg (v,int));
3643   va_end (v);
3644   return s;
3645 }
3646
3647 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3648    function prototypes and stuff, but not '\xHH' hex character constants.
3649    These don't provoke an error unfortunately, instead are silently treated
3650    as 'x'.  The following induces an error, until -std is added to get
3651    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3652    array size at least.  It's necessary to write '\x00'==0 to get something
3653    that's true only with -std.  */
3654 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3655
3656 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3657    inside strings and character constants.  */
3658 #define FOO(x) 'x'
3659 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3660
3661 int test (int i, double x);
3662 struct s1 {int (*f) (int a);};
3663 struct s2 {int (*f) (double a);};
3664 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3665 int argc;
3666 char **argv;
3667 int
3668 main ()
3669 {
3670 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3671   ;
3672   return 0;
3673 }
3674 _ACEOF
3675 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3676         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3677 do
3678   CC="$ac_save_CC $ac_arg"
3679   if ac_fn_c_try_compile "$LINENO"; then :
3680   ac_cv_prog_cc_c89=$ac_arg
3681 fi
3682 rm -f core conftest.err conftest.$ac_objext
3683   test "x$ac_cv_prog_cc_c89" != "xno" && break
3684 done
3685 rm -f conftest.$ac_ext
3686 CC=$ac_save_CC
3687
3688 fi
3689 # AC_CACHE_VAL
3690 case "x$ac_cv_prog_cc_c89" in
3691   x)
3692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3693 $as_echo "none needed" >&6; } ;;
3694   xno)
3695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3696 $as_echo "unsupported" >&6; } ;;
3697   *)
3698     CC="$CC $ac_cv_prog_cc_c89"
3699     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3700 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3701 esac
3702 if test "x$ac_cv_prog_cc_c89" != xno; then :
3703
3704 fi
3705
3706 ac_ext=c
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711
3712 ac_ext=c
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3718 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3719 if ${am_cv_prog_cc_c_o+:} false; then :
3720   $as_echo_n "(cached) " >&6
3721 else
3722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h.  */
3724
3725 int
3726 main ()
3727 {
3728
3729   ;
3730   return 0;
3731 }
3732 _ACEOF
3733   # Make sure it works both with $CC and with simple cc.
3734   # Following AC_PROG_CC_C_O, we do the test twice because some
3735   # compilers refuse to overwrite an existing .o file with -o,
3736   # though they will create one.
3737   am_cv_prog_cc_c_o=yes
3738   for am_i in 1 2; do
3739     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3740    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3741    ac_status=$?
3742    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743    (exit $ac_status); } \
3744          && test -f conftest2.$ac_objext; then
3745       : OK
3746     else
3747       am_cv_prog_cc_c_o=no
3748       break
3749     fi
3750   done
3751   rm -f core conftest*
3752   unset am_i
3753 fi
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3755 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3756 if test "$am_cv_prog_cc_c_o" != yes; then
3757    # Losing compiler, so override with the script.
3758    # FIXME: It is wrong to rewrite CC.
3759    # But if we don't then we get into trouble of one sort or another.
3760    # A longer-term fix would be to have automake use am__CC in this case,
3761    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3762    CC="$am_aux_dir/compile $CC"
3763 fi
3764 ac_ext=c
3765 ac_cpp='$CPP $CPPFLAGS'
3766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769
3770 DEPDIR="${am__leading_dot}deps"
3771
3772 ac_config_commands="$ac_config_commands depfiles"
3773
3774
3775 am_make=${MAKE-make}
3776 cat > confinc << 'END'
3777 am__doit:
3778         @echo this is the am__doit target
3779 .PHONY: am__doit
3780 END
3781 # If we don't find an include directive, just comment out the code.
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3783 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3784 am__include="#"
3785 am__quote=
3786 _am_result=none
3787 # First try GNU make style include.
3788 echo "include confinc" > confmf
3789 # Ignore all kinds of additional output from 'make'.
3790 case `$am_make -s -f confmf 2> /dev/null` in #(
3791 *the\ am__doit\ target*)
3792   am__include=include
3793   am__quote=
3794   _am_result=GNU
3795   ;;
3796 esac
3797 # Now try BSD make style include.
3798 if test "$am__include" = "#"; then
3799    echo '.include "confinc"' > confmf
3800    case `$am_make -s -f confmf 2> /dev/null` in #(
3801    *the\ am__doit\ target*)
3802      am__include=.include
3803      am__quote="\""
3804      _am_result=BSD
3805      ;;
3806    esac
3807 fi
3808
3809
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3811 $as_echo "$_am_result" >&6; }
3812 rm -f confinc confmf
3813
3814 # Check whether --enable-dependency-tracking was given.
3815 if test "${enable_dependency_tracking+set}" = set; then :
3816   enableval=$enable_dependency_tracking;
3817 fi
3818
3819 if test "x$enable_dependency_tracking" != xno; then
3820   am_depcomp="$ac_aux_dir/depcomp"
3821   AMDEPBACKSLASH='\'
3822   am__nodep='_no'
3823 fi
3824  if test "x$enable_dependency_tracking" != xno; then
3825   AMDEP_TRUE=
3826   AMDEP_FALSE='#'
3827 else
3828   AMDEP_TRUE='#'
3829   AMDEP_FALSE=
3830 fi
3831
3832
3833
3834 depcc="$CC"   am_compiler_list=
3835
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3837 $as_echo_n "checking dependency style of $depcc... " >&6; }
3838 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3839   $as_echo_n "(cached) " >&6
3840 else
3841   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3842   # We make a subdir and do the tests there.  Otherwise we can end up
3843   # making bogus files that we don't know about and never remove.  For
3844   # instance it was reported that on HP-UX the gcc test will end up
3845   # making a dummy file named 'D' -- because '-MD' means "put the output
3846   # in D".
3847   rm -rf conftest.dir
3848   mkdir conftest.dir
3849   # Copy depcomp to subdir because otherwise we won't find it if we're
3850   # using a relative directory.
3851   cp "$am_depcomp" conftest.dir
3852   cd conftest.dir
3853   # We will build objects and dependencies in a subdirectory because
3854   # it helps to detect inapplicable dependency modes.  For instance
3855   # both Tru64's cc and ICC support -MD to output dependencies as a
3856   # side effect of compilation, but ICC will put the dependencies in
3857   # the current directory while Tru64 will put them in the object
3858   # directory.
3859   mkdir sub
3860
3861   am_cv_CC_dependencies_compiler_type=none
3862   if test "$am_compiler_list" = ""; then
3863      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3864   fi
3865   am__universal=false
3866   case " $depcc " in #(
3867      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3868      esac
3869
3870   for depmode in $am_compiler_list; do
3871     # Setup a source with many dependencies, because some compilers
3872     # like to wrap large dependency lists on column 80 (with \), and
3873     # we should not choose a depcomp mode which is confused by this.
3874     #
3875     # We need to recreate these files for each test, as the compiler may
3876     # overwrite some of them when testing with obscure command lines.
3877     # This happens at least with the AIX C compiler.
3878     : > sub/conftest.c
3879     for i in 1 2 3 4 5 6; do
3880       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3881       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3882       # Solaris 10 /bin/sh.
3883       echo '/* dummy */' > sub/conftst$i.h
3884     done
3885     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3886
3887     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3888     # mode.  It turns out that the SunPro C++ compiler does not properly
3889     # handle '-M -o', and we need to detect this.  Also, some Intel
3890     # versions had trouble with output in subdirs.
3891     am__obj=sub/conftest.${OBJEXT-o}
3892     am__minus_obj="-o $am__obj"
3893     case $depmode in
3894     gcc)
3895       # This depmode causes a compiler race in universal mode.
3896       test "$am__universal" = false || continue
3897       ;;
3898     nosideeffect)
3899       # After this tag, mechanisms are not by side-effect, so they'll
3900       # only be used when explicitly requested.
3901       if test "x$enable_dependency_tracking" = xyes; then
3902         continue
3903       else
3904         break
3905       fi
3906       ;;
3907     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3908       # This compiler won't grok '-c -o', but also, the minuso test has
3909       # not run yet.  These depmodes are late enough in the game, and
3910       # so weak that their functioning should not be impacted.
3911       am__obj=conftest.${OBJEXT-o}
3912       am__minus_obj=
3913       ;;
3914     none) break ;;
3915     esac
3916     if depmode=$depmode \
3917        source=sub/conftest.c object=$am__obj \
3918        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3919        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3920          >/dev/null 2>conftest.err &&
3921        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3922        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3923        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3924        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3925       # icc doesn't choke on unknown options, it will just issue warnings
3926       # or remarks (even with -Werror).  So we grep stderr for any message
3927       # that says an option was ignored or not supported.
3928       # When given -MP, icc 7.0 and 7.1 complain thusly:
3929       #   icc: Command line warning: ignoring option '-M'; no argument required
3930       # The diagnosis changed in icc 8.0:
3931       #   icc: Command line remark: option '-MP' not supported
3932       if (grep 'ignoring option' conftest.err ||
3933           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3934         am_cv_CC_dependencies_compiler_type=$depmode
3935         break
3936       fi
3937     fi
3938   done
3939
3940   cd ..
3941   rm -rf conftest.dir
3942 else
3943   am_cv_CC_dependencies_compiler_type=none
3944 fi
3945
3946 fi
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3948 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3949 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3950
3951  if
3952   test "x$enable_dependency_tracking" != xno \
3953   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3954   am__fastdepCC_TRUE=
3955   am__fastdepCC_FALSE='#'
3956 else
3957   am__fastdepCC_TRUE='#'
3958   am__fastdepCC_FALSE=
3959 fi
3960
3961
3962
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3964 $as_echo_n "checking whether ln -s works... " >&6; }
3965 LN_S=$as_ln_s
3966 if test "$LN_S" = "ln -s"; then
3967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3968 $as_echo "yes" >&6; }
3969 else
3970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3971 $as_echo "no, using $LN_S" >&6; }
3972 fi
3973
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3975 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3976 set x ${MAKE-make}
3977 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3978 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3979   $as_echo_n "(cached) " >&6
3980 else
3981   cat >conftest.make <<\_ACEOF
3982 SHELL = /bin/sh
3983 all:
3984         @echo '@@@%%%=$(MAKE)=@@@%%%'
3985 _ACEOF
3986 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3987 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3988   *@@@%%%=?*=@@@%%%*)
3989     eval ac_cv_prog_make_${ac_make}_set=yes;;
3990   *)
3991     eval ac_cv_prog_make_${ac_make}_set=no;;
3992 esac
3993 rm -f conftest.make
3994 fi
3995 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3997 $as_echo "yes" >&6; }
3998   SET_MAKE=
3999 else
4000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001 $as_echo "no" >&6; }
4002   SET_MAKE="MAKE=${MAKE-make}"
4003 fi
4004
4005 # Make sure we can run config.sub.
4006 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4007   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4008
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4010 $as_echo_n "checking build system type... " >&6; }
4011 if ${ac_cv_build+:} false; then :
4012   $as_echo_n "(cached) " >&6
4013 else
4014   ac_build_alias=$build_alias
4015 test "x$ac_build_alias" = x &&
4016   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4017 test "x$ac_build_alias" = x &&
4018   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4019 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4020   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4021
4022 fi
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4024 $as_echo "$ac_cv_build" >&6; }
4025 case $ac_cv_build in
4026 *-*-*) ;;
4027 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4028 esac
4029 build=$ac_cv_build
4030 ac_save_IFS=$IFS; IFS='-'
4031 set x $ac_cv_build
4032 shift
4033 build_cpu=$1
4034 build_vendor=$2
4035 shift; shift
4036 # Remember, the first character of IFS is used to create $*,
4037 # except with old shells:
4038 build_os=$*
4039 IFS=$ac_save_IFS
4040 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4041
4042
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4044 $as_echo_n "checking host system type... " >&6; }
4045 if ${ac_cv_host+:} false; then :
4046   $as_echo_n "(cached) " >&6
4047 else
4048   if test "x$host_alias" = x; then
4049   ac_cv_host=$ac_cv_build
4050 else
4051   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4052     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4053 fi
4054
4055 fi
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4057 $as_echo "$ac_cv_host" >&6; }
4058 case $ac_cv_host in
4059 *-*-*) ;;
4060 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4061 esac
4062 host=$ac_cv_host
4063 ac_save_IFS=$IFS; IFS='-'
4064 set x $ac_cv_host
4065 shift
4066 host_cpu=$1
4067 host_vendor=$2
4068 shift; shift
4069 # Remember, the first character of IFS is used to create $*,
4070 # except with old shells:
4071 host_os=$*
4072 IFS=$ac_save_IFS
4073 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4074
4075
4076 enable_win32_dll=yes
4077
4078 case $host in
4079 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4080   if test -n "$ac_tool_prefix"; then
4081   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4082 set dummy ${ac_tool_prefix}as; ac_word=$2
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4084 $as_echo_n "checking for $ac_word... " >&6; }
4085 if ${ac_cv_prog_AS+:} false; then :
4086   $as_echo_n "(cached) " >&6
4087 else
4088   if test -n "$AS"; then
4089   ac_cv_prog_AS="$AS" # Let the user override the test.
4090 else
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH
4093 do
4094   IFS=$as_save_IFS
4095   test -z "$as_dir" && as_dir=.
4096     for ac_exec_ext in '' $ac_executable_extensions; do
4097   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098     ac_cv_prog_AS="${ac_tool_prefix}as"
4099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4100     break 2
4101   fi
4102 done
4103   done
4104 IFS=$as_save_IFS
4105
4106 fi
4107 fi
4108 AS=$ac_cv_prog_AS
4109 if test -n "$AS"; then
4110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4111 $as_echo "$AS" >&6; }
4112 else
4113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 $as_echo "no" >&6; }
4115 fi
4116
4117
4118 fi
4119 if test -z "$ac_cv_prog_AS"; then
4120   ac_ct_AS=$AS
4121   # Extract the first word of "as", so it can be a program name with args.
4122 set dummy as; ac_word=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4126   $as_echo_n "(cached) " >&6
4127 else
4128   if test -n "$ac_ct_AS"; then
4129   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4130 else
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4133 do
4134   IFS=$as_save_IFS
4135   test -z "$as_dir" && as_dir=.
4136     for ac_exec_ext in '' $ac_executable_extensions; do
4137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138     ac_cv_prog_ac_ct_AS="as"
4139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4140     break 2
4141   fi
4142 done
4143   done
4144 IFS=$as_save_IFS
4145
4146 fi
4147 fi
4148 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4149 if test -n "$ac_ct_AS"; then
4150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4151 $as_echo "$ac_ct_AS" >&6; }
4152 else
4153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4155 fi
4156
4157   if test "x$ac_ct_AS" = x; then
4158     AS="false"
4159   else
4160     case $cross_compiling:$ac_tool_warned in
4161 yes:)
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4164 ac_tool_warned=yes ;;
4165 esac
4166     AS=$ac_ct_AS
4167   fi
4168 else
4169   AS="$ac_cv_prog_AS"
4170 fi
4171
4172   if test -n "$ac_tool_prefix"; then
4173   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4174 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4176 $as_echo_n "checking for $ac_word... " >&6; }
4177 if ${ac_cv_prog_DLLTOOL+:} false; then :
4178   $as_echo_n "(cached) " >&6
4179 else
4180   if test -n "$DLLTOOL"; then
4181   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4182 else
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH
4185 do
4186   IFS=$as_save_IFS
4187   test -z "$as_dir" && as_dir=.
4188     for ac_exec_ext in '' $ac_executable_extensions; do
4189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4190     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192     break 2
4193   fi
4194 done
4195   done
4196 IFS=$as_save_IFS
4197
4198 fi
4199 fi
4200 DLLTOOL=$ac_cv_prog_DLLTOOL
4201 if test -n "$DLLTOOL"; then
4202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4203 $as_echo "$DLLTOOL" >&6; }
4204 else
4205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206 $as_echo "no" >&6; }
4207 fi
4208
4209
4210 fi
4211 if test -z "$ac_cv_prog_DLLTOOL"; then
4212   ac_ct_DLLTOOL=$DLLTOOL
4213   # Extract the first word of "dlltool", so it can be a program name with args.
4214 set dummy dlltool; ac_word=$2
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216 $as_echo_n "checking for $ac_word... " >&6; }
4217 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4218   $as_echo_n "(cached) " >&6
4219 else
4220   if test -n "$ac_ct_DLLTOOL"; then
4221   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4222 else
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH
4225 do
4226   IFS=$as_save_IFS
4227   test -z "$as_dir" && as_dir=.
4228     for ac_exec_ext in '' $ac_executable_extensions; do
4229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4230     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4232     break 2
4233   fi
4234 done
4235   done
4236 IFS=$as_save_IFS
4237
4238 fi
4239 fi
4240 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4241 if test -n "$ac_ct_DLLTOOL"; then
4242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4243 $as_echo "$ac_ct_DLLTOOL" >&6; }
4244 else
4245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246 $as_echo "no" >&6; }
4247 fi
4248
4249   if test "x$ac_ct_DLLTOOL" = x; then
4250     DLLTOOL="false"
4251   else
4252     case $cross_compiling:$ac_tool_warned in
4253 yes:)
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4256 ac_tool_warned=yes ;;
4257 esac
4258     DLLTOOL=$ac_ct_DLLTOOL
4259   fi
4260 else
4261   DLLTOOL="$ac_cv_prog_DLLTOOL"
4262 fi
4263
4264   if test -n "$ac_tool_prefix"; then
4265   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4266 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if ${ac_cv_prog_OBJDUMP+:} false; then :
4270   $as_echo_n "(cached) " >&6
4271 else
4272   if test -n "$OBJDUMP"; then
4273   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4277 do
4278   IFS=$as_save_IFS
4279   test -z "$as_dir" && as_dir=.
4280     for ac_exec_ext in '' $ac_executable_extensions; do
4281   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4282     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284     break 2
4285   fi
4286 done
4287   done
4288 IFS=$as_save_IFS
4289
4290 fi
4291 fi
4292 OBJDUMP=$ac_cv_prog_OBJDUMP
4293 if test -n "$OBJDUMP"; then
4294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4295 $as_echo "$OBJDUMP" >&6; }
4296 else
4297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4299 fi
4300
4301
4302 fi
4303 if test -z "$ac_cv_prog_OBJDUMP"; then
4304   ac_ct_OBJDUMP=$OBJDUMP
4305   # Extract the first word of "objdump", so it can be a program name with args.
4306 set dummy objdump; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4310   $as_echo_n "(cached) " >&6
4311 else
4312   if test -n "$ac_ct_OBJDUMP"; then
4313   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4317 do
4318   IFS=$as_save_IFS
4319   test -z "$as_dir" && as_dir=.
4320     for ac_exec_ext in '' $ac_executable_extensions; do
4321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324     break 2
4325   fi
4326 done
4327   done
4328 IFS=$as_save_IFS
4329
4330 fi
4331 fi
4332 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4333 if test -n "$ac_ct_OBJDUMP"; then
4334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4335 $as_echo "$ac_ct_OBJDUMP" >&6; }
4336 else
4337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4339 fi
4340
4341   if test "x$ac_ct_OBJDUMP" = x; then
4342     OBJDUMP="false"
4343   else
4344     case $cross_compiling:$ac_tool_warned in
4345 yes:)
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4348 ac_tool_warned=yes ;;
4349 esac
4350     OBJDUMP=$ac_ct_OBJDUMP
4351   fi
4352 else
4353   OBJDUMP="$ac_cv_prog_OBJDUMP"
4354 fi
4355
4356   ;;
4357 esac
4358
4359 test -z "$AS" && AS=as
4360
4361
4362
4363
4364
4365 test -z "$DLLTOOL" && DLLTOOL=dlltool
4366
4367
4368
4369
4370
4371 test -z "$OBJDUMP" && OBJDUMP=objdump
4372
4373
4374
4375
4376
4377
4378
4379 case `pwd` in
4380   *\ * | *\     *)
4381     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4382 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4383 esac
4384
4385
4386
4387 macro_version='2.4.6'
4388 macro_revision='2.4.6'
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402 ltmain=$ac_aux_dir/ltmain.sh
4403
4404 # Backslashify metacharacters that are still active within
4405 # double-quoted strings.
4406 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4407
4408 # Same as above, but do not quote variable references.
4409 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4410
4411 # Sed substitution to delay expansion of an escaped shell variable in a
4412 # double_quote_subst'ed string.
4413 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4414
4415 # Sed substitution to delay expansion of an escaped single quote.
4416 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4417
4418 # Sed substitution to avoid accidental globbing in evaled expressions
4419 no_glob_subst='s/\*/\\\*/g'
4420
4421 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4422 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4423 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4424
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4426 $as_echo_n "checking how to print strings... " >&6; }
4427 # Test print first, because it will be a builtin if present.
4428 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4429    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4430   ECHO='print -r --'
4431 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4432   ECHO='printf %s\n'
4433 else
4434   # Use this function as a fallback that always works.
4435   func_fallback_echo ()
4436   {
4437     eval 'cat <<_LTECHO_EOF
4438 $1
4439 _LTECHO_EOF'
4440   }
4441   ECHO='func_fallback_echo'
4442 fi
4443
4444 # func_echo_all arg...
4445 # Invoke $ECHO with all args, space-separated.
4446 func_echo_all ()
4447 {
4448     $ECHO ""
4449 }
4450
4451 case $ECHO in
4452   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4453 $as_echo "printf" >&6; } ;;
4454   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4455 $as_echo "print -r" >&6; } ;;
4456   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4457 $as_echo "cat" >&6; } ;;
4458 esac
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4474 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4475 if ${ac_cv_path_SED+:} false; then :
4476   $as_echo_n "(cached) " >&6
4477 else
4478             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4479      for ac_i in 1 2 3 4 5 6 7; do
4480        ac_script="$ac_script$as_nl$ac_script"
4481      done
4482      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4483      { ac_script=; unset ac_script;}
4484      if test -z "$SED"; then
4485   ac_path_SED_found=false
4486   # Loop through the user's path and test for each of PROGNAME-LIST
4487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 for as_dir in $PATH
4489 do
4490   IFS=$as_save_IFS
4491   test -z "$as_dir" && as_dir=.
4492     for ac_prog in sed gsed; do
4493     for ac_exec_ext in '' $ac_executable_extensions; do
4494       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4495       as_fn_executable_p "$ac_path_SED" || continue
4496 # Check for GNU ac_path_SED and select it if it is found.
4497   # Check for GNU $ac_path_SED
4498 case `"$ac_path_SED" --version 2>&1` in
4499 *GNU*)
4500   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4501 *)
4502   ac_count=0
4503   $as_echo_n 0123456789 >"conftest.in"
4504   while :
4505   do
4506     cat "conftest.in" "conftest.in" >"conftest.tmp"
4507     mv "conftest.tmp" "conftest.in"
4508     cp "conftest.in" "conftest.nl"
4509     $as_echo '' >> "conftest.nl"
4510     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4511     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4512     as_fn_arith $ac_count + 1 && ac_count=$as_val
4513     if test $ac_count -gt ${ac_path_SED_max-0}; then
4514       # Best one so far, save it but keep looking for a better one
4515       ac_cv_path_SED="$ac_path_SED"
4516       ac_path_SED_max=$ac_count
4517     fi
4518     # 10*(2^10) chars as input seems more than enough
4519     test $ac_count -gt 10 && break
4520   done
4521   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4522 esac
4523
4524       $ac_path_SED_found && break 3
4525     done
4526   done
4527   done
4528 IFS=$as_save_IFS
4529   if test -z "$ac_cv_path_SED"; then
4530     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4531   fi
4532 else
4533   ac_cv_path_SED=$SED
4534 fi
4535
4536 fi
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4538 $as_echo "$ac_cv_path_SED" >&6; }
4539  SED="$ac_cv_path_SED"
4540   rm -f conftest.sed
4541
4542 test -z "$SED" && SED=sed
4543 Xsed="$SED -e 1s/^X//"
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4556 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4557 if ${ac_cv_path_GREP+:} false; then :
4558   $as_echo_n "(cached) " >&6
4559 else
4560   if test -z "$GREP"; then
4561   ac_path_GREP_found=false
4562   # Loop through the user's path and test for each of PROGNAME-LIST
4563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4565 do
4566   IFS=$as_save_IFS
4567   test -z "$as_dir" && as_dir=.
4568     for ac_prog in grep ggrep; do
4569     for ac_exec_ext in '' $ac_executable_extensions; do
4570       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4571       as_fn_executable_p "$ac_path_GREP" || continue
4572 # Check for GNU ac_path_GREP and select it if it is found.
4573   # Check for GNU $ac_path_GREP
4574 case `"$ac_path_GREP" --version 2>&1` in
4575 *GNU*)
4576   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4577 *)
4578   ac_count=0
4579   $as_echo_n 0123456789 >"conftest.in"
4580   while :
4581   do
4582     cat "conftest.in" "conftest.in" >"conftest.tmp"
4583     mv "conftest.tmp" "conftest.in"
4584     cp "conftest.in" "conftest.nl"
4585     $as_echo 'GREP' >> "conftest.nl"
4586     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588     as_fn_arith $ac_count + 1 && ac_count=$as_val
4589     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4590       # Best one so far, save it but keep looking for a better one
4591       ac_cv_path_GREP="$ac_path_GREP"
4592       ac_path_GREP_max=$ac_count
4593     fi
4594     # 10*(2^10) chars as input seems more than enough
4595     test $ac_count -gt 10 && break
4596   done
4597   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4598 esac
4599
4600       $ac_path_GREP_found && break 3
4601     done
4602   done
4603   done
4604 IFS=$as_save_IFS
4605   if test -z "$ac_cv_path_GREP"; then
4606     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4607   fi
4608 else
4609   ac_cv_path_GREP=$GREP
4610 fi
4611
4612 fi
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4614 $as_echo "$ac_cv_path_GREP" >&6; }
4615  GREP="$ac_cv_path_GREP"
4616
4617
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4619 $as_echo_n "checking for egrep... " >&6; }
4620 if ${ac_cv_path_EGREP+:} false; then :
4621   $as_echo_n "(cached) " >&6
4622 else
4623   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4624    then ac_cv_path_EGREP="$GREP -E"
4625    else
4626      if test -z "$EGREP"; then
4627   ac_path_EGREP_found=false
4628   # Loop through the user's path and test for each of PROGNAME-LIST
4629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4631 do
4632   IFS=$as_save_IFS
4633   test -z "$as_dir" && as_dir=.
4634     for ac_prog in egrep; do
4635     for ac_exec_ext in '' $ac_executable_extensions; do
4636       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4637       as_fn_executable_p "$ac_path_EGREP" || continue
4638 # Check for GNU ac_path_EGREP and select it if it is found.
4639   # Check for GNU $ac_path_EGREP
4640 case `"$ac_path_EGREP" --version 2>&1` in
4641 *GNU*)
4642   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4643 *)
4644   ac_count=0
4645   $as_echo_n 0123456789 >"conftest.in"
4646   while :
4647   do
4648     cat "conftest.in" "conftest.in" >"conftest.tmp"
4649     mv "conftest.tmp" "conftest.in"
4650     cp "conftest.in" "conftest.nl"
4651     $as_echo 'EGREP' >> "conftest.nl"
4652     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4653     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4654     as_fn_arith $ac_count + 1 && ac_count=$as_val
4655     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4656       # Best one so far, save it but keep looking for a better one
4657       ac_cv_path_EGREP="$ac_path_EGREP"
4658       ac_path_EGREP_max=$ac_count
4659     fi
4660     # 10*(2^10) chars as input seems more than enough
4661     test $ac_count -gt 10 && break
4662   done
4663   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4664 esac
4665
4666       $ac_path_EGREP_found && break 3
4667     done
4668   done
4669   done
4670 IFS=$as_save_IFS
4671   if test -z "$ac_cv_path_EGREP"; then
4672     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4673   fi
4674 else
4675   ac_cv_path_EGREP=$EGREP
4676 fi
4677
4678    fi
4679 fi
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4681 $as_echo "$ac_cv_path_EGREP" >&6; }
4682  EGREP="$ac_cv_path_EGREP"
4683
4684
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4686 $as_echo_n "checking for fgrep... " >&6; }
4687 if ${ac_cv_path_FGREP+:} false; then :
4688   $as_echo_n "(cached) " >&6
4689 else
4690   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4691    then ac_cv_path_FGREP="$GREP -F"
4692    else
4693      if test -z "$FGREP"; then
4694   ac_path_FGREP_found=false
4695   # Loop through the user's path and test for each of PROGNAME-LIST
4696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4698 do
4699   IFS=$as_save_IFS
4700   test -z "$as_dir" && as_dir=.
4701     for ac_prog in fgrep; do
4702     for ac_exec_ext in '' $ac_executable_extensions; do
4703       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4704       as_fn_executable_p "$ac_path_FGREP" || continue
4705 # Check for GNU ac_path_FGREP and select it if it is found.
4706   # Check for GNU $ac_path_FGREP
4707 case `"$ac_path_FGREP" --version 2>&1` in
4708 *GNU*)
4709   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4710 *)
4711   ac_count=0
4712   $as_echo_n 0123456789 >"conftest.in"
4713   while :
4714   do
4715     cat "conftest.in" "conftest.in" >"conftest.tmp"
4716     mv "conftest.tmp" "conftest.in"
4717     cp "conftest.in" "conftest.nl"
4718     $as_echo 'FGREP' >> "conftest.nl"
4719     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4720     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4721     as_fn_arith $ac_count + 1 && ac_count=$as_val
4722     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4723       # Best one so far, save it but keep looking for a better one
4724       ac_cv_path_FGREP="$ac_path_FGREP"
4725       ac_path_FGREP_max=$ac_count
4726     fi
4727     # 10*(2^10) chars as input seems more than enough
4728     test $ac_count -gt 10 && break
4729   done
4730   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4731 esac
4732
4733       $ac_path_FGREP_found && break 3
4734     done
4735   done
4736   done
4737 IFS=$as_save_IFS
4738   if test -z "$ac_cv_path_FGREP"; then
4739     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4740   fi
4741 else
4742   ac_cv_path_FGREP=$FGREP
4743 fi
4744
4745    fi
4746 fi
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4748 $as_echo "$ac_cv_path_FGREP" >&6; }
4749  FGREP="$ac_cv_path_FGREP"
4750
4751
4752 test -z "$GREP" && GREP=grep
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772 # Check whether --with-gnu-ld was given.
4773 if test "${with_gnu_ld+set}" = set; then :
4774   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4775 else
4776   with_gnu_ld=no
4777 fi
4778
4779 ac_prog=ld
4780 if test yes = "$GCC"; then
4781   # Check if gcc -print-prog-name=ld gives a path.
4782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4783 $as_echo_n "checking for ld used by $CC... " >&6; }
4784   case $host in
4785   *-*-mingw*)
4786     # gcc leaves a trailing carriage return, which upsets mingw
4787     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4788   *)
4789     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4790   esac
4791   case $ac_prog in
4792     # Accept absolute paths.
4793     [\\/]* | ?:[\\/]*)
4794       re_direlt='/[^/][^/]*/\.\./'
4795       # Canonicalize the pathname of ld
4796       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4797       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4798         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4799       done
4800       test -z "$LD" && LD=$ac_prog
4801       ;;
4802   "")
4803     # If it fails, then pretend we aren't using GCC.
4804     ac_prog=ld
4805     ;;
4806   *)
4807     # If it is relative, then search for the first ld in PATH.
4808     with_gnu_ld=unknown
4809     ;;
4810   esac
4811 elif test yes = "$with_gnu_ld"; then
4812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4813 $as_echo_n "checking for GNU ld... " >&6; }
4814 else
4815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4816 $as_echo_n "checking for non-GNU ld... " >&6; }
4817 fi
4818 if ${lt_cv_path_LD+:} false; then :
4819   $as_echo_n "(cached) " >&6
4820 else
4821   if test -z "$LD"; then
4822   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4823   for ac_dir in $PATH; do
4824     IFS=$lt_save_ifs
4825     test -z "$ac_dir" && ac_dir=.
4826     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4827       lt_cv_path_LD=$ac_dir/$ac_prog
4828       # Check to see if the program is GNU ld.  I'd rather use --version,
4829       # but apparently some variants of GNU ld only accept -v.
4830       # Break only if it was the GNU/non-GNU ld that we prefer.
4831       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4832       *GNU* | *'with BFD'*)
4833         test no != "$with_gnu_ld" && break
4834         ;;
4835       *)
4836         test yes != "$with_gnu_ld" && break
4837         ;;
4838       esac
4839     fi
4840   done
4841   IFS=$lt_save_ifs
4842 else
4843   lt_cv_path_LD=$LD # Let the user override the test with a path.
4844 fi
4845 fi
4846
4847 LD=$lt_cv_path_LD
4848 if test -n "$LD"; then
4849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4850 $as_echo "$LD" >&6; }
4851 else
4852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4854 fi
4855 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4857 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4858 if ${lt_cv_prog_gnu_ld+:} false; then :
4859   $as_echo_n "(cached) " >&6
4860 else
4861   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4862 case `$LD -v 2>&1 </dev/null` in
4863 *GNU* | *'with BFD'*)
4864   lt_cv_prog_gnu_ld=yes
4865   ;;
4866 *)
4867   lt_cv_prog_gnu_ld=no
4868   ;;
4869 esac
4870 fi
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4872 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4873 with_gnu_ld=$lt_cv_prog_gnu_ld
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4884 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4885 if ${lt_cv_path_NM+:} false; then :
4886   $as_echo_n "(cached) " >&6
4887 else
4888   if test -n "$NM"; then
4889   # Let the user override the test.
4890   lt_cv_path_NM=$NM
4891 else
4892   lt_nm_to_check=${ac_tool_prefix}nm
4893   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4894     lt_nm_to_check="$lt_nm_to_check nm"
4895   fi
4896   for lt_tmp_nm in $lt_nm_to_check; do
4897     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4898     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4899       IFS=$lt_save_ifs
4900       test -z "$ac_dir" && ac_dir=.
4901       tmp_nm=$ac_dir/$lt_tmp_nm
4902       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4903         # Check to see if the nm accepts a BSD-compat flag.
4904         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4905         #   nm: unknown option "B" ignored
4906         # Tru64's nm complains that /dev/null is an invalid object file
4907         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4908         case $build_os in
4909         mingw*) lt_bad_file=conftest.nm/nofile ;;
4910         *) lt_bad_file=/dev/null ;;
4911         esac
4912         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4913         *$lt_bad_file* | *'Invalid file or object type'*)
4914           lt_cv_path_NM="$tmp_nm -B"
4915           break 2
4916           ;;
4917         *)
4918           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4919           */dev/null*)
4920             lt_cv_path_NM="$tmp_nm -p"
4921             break 2
4922             ;;
4923           *)
4924             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4925             continue # so that we can try to find one that supports BSD flags
4926             ;;
4927           esac
4928           ;;
4929         esac
4930       fi
4931     done
4932     IFS=$lt_save_ifs
4933   done
4934   : ${lt_cv_path_NM=no}
4935 fi
4936 fi
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4938 $as_echo "$lt_cv_path_NM" >&6; }
4939 if test no != "$lt_cv_path_NM"; then
4940   NM=$lt_cv_path_NM
4941 else
4942   # Didn't find any BSD compatible name lister, look for dumpbin.
4943   if test -n "$DUMPBIN"; then :
4944     # Let the user override the test.
4945   else
4946     if test -n "$ac_tool_prefix"; then
4947   for ac_prog in dumpbin "link -dump"
4948   do
4949     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4950 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952 $as_echo_n "checking for $ac_word... " >&6; }
4953 if ${ac_cv_prog_DUMPBIN+:} false; then :
4954   $as_echo_n "(cached) " >&6
4955 else
4956   if test -n "$DUMPBIN"; then
4957   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4958 else
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 for as_dir in $PATH
4961 do
4962   IFS=$as_save_IFS
4963   test -z "$as_dir" && as_dir=.
4964     for ac_exec_ext in '' $ac_executable_extensions; do
4965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4966     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968     break 2
4969   fi
4970 done
4971   done
4972 IFS=$as_save_IFS
4973
4974 fi
4975 fi
4976 DUMPBIN=$ac_cv_prog_DUMPBIN
4977 if test -n "$DUMPBIN"; then
4978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4979 $as_echo "$DUMPBIN" >&6; }
4980 else
4981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4983 fi
4984
4985
4986     test -n "$DUMPBIN" && break
4987   done
4988 fi
4989 if test -z "$DUMPBIN"; then
4990   ac_ct_DUMPBIN=$DUMPBIN
4991   for ac_prog in dumpbin "link -dump"
4992 do
4993   # Extract the first word of "$ac_prog", so it can be a program name with args.
4994 set dummy $ac_prog; ac_word=$2
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996 $as_echo_n "checking for $ac_word... " >&6; }
4997 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4998   $as_echo_n "(cached) " >&6
4999 else
5000   if test -n "$ac_ct_DUMPBIN"; then
5001   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5002 else
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH
5005 do
5006   IFS=$as_save_IFS
5007   test -z "$as_dir" && as_dir=.
5008     for ac_exec_ext in '' $ac_executable_extensions; do
5009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5010     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5012     break 2
5013   fi
5014 done
5015   done
5016 IFS=$as_save_IFS
5017
5018 fi
5019 fi
5020 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5021 if test -n "$ac_ct_DUMPBIN"; then
5022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5023 $as_echo "$ac_ct_DUMPBIN" >&6; }
5024 else
5025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5026 $as_echo "no" >&6; }
5027 fi
5028
5029
5030   test -n "$ac_ct_DUMPBIN" && break
5031 done
5032
5033   if test "x$ac_ct_DUMPBIN" = x; then
5034     DUMPBIN=":"
5035   else
5036     case $cross_compiling:$ac_tool_warned in
5037 yes:)
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5040 ac_tool_warned=yes ;;
5041 esac
5042     DUMPBIN=$ac_ct_DUMPBIN
5043   fi
5044 fi
5045
5046     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5047     *COFF*)
5048       DUMPBIN="$DUMPBIN -symbols -headers"
5049       ;;
5050     *)
5051       DUMPBIN=:
5052       ;;
5053     esac
5054   fi
5055
5056   if test : != "$DUMPBIN"; then
5057     NM=$DUMPBIN
5058   fi
5059 fi
5060 test -z "$NM" && NM=nm
5061
5062
5063
5064
5065
5066
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5068 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5069 if ${lt_cv_nm_interface+:} false; then :
5070   $as_echo_n "(cached) " >&6
5071 else
5072   lt_cv_nm_interface="BSD nm"
5073   echo "int some_variable = 0;" > conftest.$ac_ext
5074   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5075   (eval "$ac_compile" 2>conftest.err)
5076   cat conftest.err >&5
5077   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5078   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5079   cat conftest.err >&5
5080   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5081   cat conftest.out >&5
5082   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5083     lt_cv_nm_interface="MS dumpbin"
5084   fi
5085   rm -f conftest*
5086 fi
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5088 $as_echo "$lt_cv_nm_interface" >&6; }
5089
5090 # find the maximum length of command line arguments
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5092 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5093 if ${lt_cv_sys_max_cmd_len+:} false; then :
5094   $as_echo_n "(cached) " >&6
5095 else
5096     i=0
5097   teststring=ABCD
5098
5099   case $build_os in
5100   msdosdjgpp*)
5101     # On DJGPP, this test can blow up pretty badly due to problems in libc
5102     # (any single argument exceeding 2000 bytes causes a buffer overrun
5103     # during glob expansion).  Even if it were fixed, the result of this
5104     # check would be larger than it should be.
5105     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5106     ;;
5107
5108   gnu*)
5109     # Under GNU Hurd, this test is not required because there is
5110     # no limit to the length of command line arguments.
5111     # Libtool will interpret -1 as no limit whatsoever
5112     lt_cv_sys_max_cmd_len=-1;
5113     ;;
5114
5115   cygwin* | mingw* | cegcc*)
5116     # On Win9x/ME, this test blows up -- it succeeds, but takes
5117     # about 5 minutes as the teststring grows exponentially.
5118     # Worse, since 9x/ME are not pre-emptively multitasking,
5119     # you end up with a "frozen" computer, even though with patience
5120     # the test eventually succeeds (with a max line length of 256k).
5121     # Instead, let's just punt: use the minimum linelength reported by
5122     # all of the supported platforms: 8192 (on NT/2K/XP).
5123     lt_cv_sys_max_cmd_len=8192;
5124     ;;
5125
5126   mint*)
5127     # On MiNT this can take a long time and run out of memory.
5128     lt_cv_sys_max_cmd_len=8192;
5129     ;;
5130
5131   amigaos*)
5132     # On AmigaOS with pdksh, this test takes hours, literally.
5133     # So we just punt and use a minimum line length of 8192.
5134     lt_cv_sys_max_cmd_len=8192;
5135     ;;
5136
5137   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5138     # This has been around since 386BSD, at least.  Likely further.
5139     if test -x /sbin/sysctl; then
5140       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5141     elif test -x /usr/sbin/sysctl; then
5142       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5143     else
5144       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5145     fi
5146     # And add a safety zone
5147     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5148     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5149     ;;
5150
5151   interix*)
5152     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5153     lt_cv_sys_max_cmd_len=196608
5154     ;;
5155
5156   os2*)
5157     # The test takes a long time on OS/2.
5158     lt_cv_sys_max_cmd_len=8192
5159     ;;
5160
5161   osf*)
5162     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5163     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5164     # nice to cause kernel panics so lets avoid the loop below.
5165     # First set a reasonable default.
5166     lt_cv_sys_max_cmd_len=16384
5167     #
5168     if test -x /sbin/sysconfig; then
5169       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5170         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5171       esac
5172     fi
5173     ;;
5174   sco3.2v5*)
5175     lt_cv_sys_max_cmd_len=102400
5176     ;;
5177   sysv5* | sco5v6* | sysv4.2uw2*)
5178     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5179     if test -n "$kargmax"; then
5180       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5181     else
5182       lt_cv_sys_max_cmd_len=32768
5183     fi
5184     ;;
5185   *)
5186     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5187     if test -n "$lt_cv_sys_max_cmd_len" && \
5188        test undefined != "$lt_cv_sys_max_cmd_len"; then
5189       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5190       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5191     else
5192       # Make teststring a little bigger before we do anything with it.
5193       # a 1K string should be a reasonable start.
5194       for i in 1 2 3 4 5 6 7 8; do
5195         teststring=$teststring$teststring
5196       done
5197       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5198       # If test is not a shell built-in, we'll probably end up computing a
5199       # maximum length that is only half of the actual maximum length, but
5200       # we can't tell.
5201       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5202                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5203               test 17 != "$i" # 1/2 MB should be enough
5204       do
5205         i=`expr $i + 1`
5206         teststring=$teststring$teststring
5207       done
5208       # Only check the string length outside the loop.
5209       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5210       teststring=
5211       # Add a significant safety factor because C++ compilers can tack on
5212       # massive amounts of additional arguments before passing them to the
5213       # linker.  It appears as though 1/2 is a usable value.
5214       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5215     fi
5216     ;;
5217   esac
5218
5219 fi
5220
5221 if test -n "$lt_cv_sys_max_cmd_len"; then
5222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5223 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5224 else
5225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5226 $as_echo "none" >&6; }
5227 fi
5228 max_cmd_len=$lt_cv_sys_max_cmd_len
5229
5230
5231
5232
5233
5234
5235 : ${CP="cp -f"}
5236 : ${MV="mv -f"}
5237 : ${RM="rm -f"}
5238
5239 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5240   lt_unset=unset
5241 else
5242   lt_unset=false
5243 fi
5244
5245
5246
5247
5248
5249 # test EBCDIC or ASCII
5250 case `echo X|tr X '\101'` in
5251  A) # ASCII based system
5252     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5253   lt_SP2NL='tr \040 \012'
5254   lt_NL2SP='tr \015\012 \040\040'
5255   ;;
5256  *) # EBCDIC based system
5257   lt_SP2NL='tr \100 \n'
5258   lt_NL2SP='tr \r\n \100\100'
5259   ;;
5260 esac
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5271 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5272 if ${lt_cv_to_host_file_cmd+:} false; then :
5273   $as_echo_n "(cached) " >&6
5274 else
5275   case $host in
5276   *-*-mingw* )
5277     case $build in
5278       *-*-mingw* ) # actually msys
5279         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5280         ;;
5281       *-*-cygwin* )
5282         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5283         ;;
5284       * ) # otherwise, assume *nix
5285         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5286         ;;
5287     esac
5288     ;;
5289   *-*-cygwin* )
5290     case $build in
5291       *-*-mingw* ) # actually msys
5292         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5293         ;;
5294       *-*-cygwin* )
5295         lt_cv_to_host_file_cmd=func_convert_file_noop
5296         ;;
5297       * ) # otherwise, assume *nix
5298         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5299         ;;
5300     esac
5301     ;;
5302   * ) # unhandled hosts (and "normal" native builds)
5303     lt_cv_to_host_file_cmd=func_convert_file_noop
5304     ;;
5305 esac
5306
5307 fi
5308
5309 to_host_file_cmd=$lt_cv_to_host_file_cmd
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5311 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5312
5313
5314
5315
5316
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5318 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5319 if ${lt_cv_to_tool_file_cmd+:} false; then :
5320   $as_echo_n "(cached) " >&6
5321 else
5322   #assume ordinary cross tools, or native build.
5323 lt_cv_to_tool_file_cmd=func_convert_file_noop
5324 case $host in
5325   *-*-mingw* )
5326     case $build in
5327       *-*-mingw* ) # actually msys
5328         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5329         ;;
5330     esac
5331     ;;
5332 esac
5333
5334 fi
5335
5336 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5338 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5339
5340
5341
5342
5343
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5345 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5346 if ${lt_cv_ld_reload_flag+:} false; then :
5347   $as_echo_n "(cached) " >&6
5348 else
5349   lt_cv_ld_reload_flag='-r'
5350 fi
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5352 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5353 reload_flag=$lt_cv_ld_reload_flag
5354 case $reload_flag in
5355 "" | " "*) ;;
5356 *) reload_flag=" $reload_flag" ;;
5357 esac
5358 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5359 case $host_os in
5360   cygwin* | mingw* | pw32* | cegcc*)
5361     if test yes != "$GCC"; then
5362       reload_cmds=false
5363     fi
5364     ;;
5365   darwin*)
5366     if test yes = "$GCC"; then
5367       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5368     else
5369       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5370     fi
5371     ;;
5372 esac
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382 if test -n "$ac_tool_prefix"; then
5383   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5384 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if ${ac_cv_prog_OBJDUMP+:} false; then :
5388   $as_echo_n "(cached) " >&6
5389 else
5390   if test -n "$OBJDUMP"; then
5391   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5392 else
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5395 do
5396   IFS=$as_save_IFS
5397   test -z "$as_dir" && as_dir=.
5398     for ac_exec_ext in '' $ac_executable_extensions; do
5399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402     break 2
5403   fi
5404 done
5405   done
5406 IFS=$as_save_IFS
5407
5408 fi
5409 fi
5410 OBJDUMP=$ac_cv_prog_OBJDUMP
5411 if test -n "$OBJDUMP"; then
5412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5413 $as_echo "$OBJDUMP" >&6; }
5414 else
5415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5417 fi
5418
5419
5420 fi
5421 if test -z "$ac_cv_prog_OBJDUMP"; then
5422   ac_ct_OBJDUMP=$OBJDUMP
5423   # Extract the first word of "objdump", so it can be a program name with args.
5424 set dummy objdump; ac_word=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5428   $as_echo_n "(cached) " >&6
5429 else
5430   if test -n "$ac_ct_OBJDUMP"; then
5431   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5432 else
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH
5435 do
5436   IFS=$as_save_IFS
5437   test -z "$as_dir" && as_dir=.
5438     for ac_exec_ext in '' $ac_executable_extensions; do
5439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5442     break 2
5443   fi
5444 done
5445   done
5446 IFS=$as_save_IFS
5447
5448 fi
5449 fi
5450 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5451 if test -n "$ac_ct_OBJDUMP"; then
5452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5453 $as_echo "$ac_ct_OBJDUMP" >&6; }
5454 else
5455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5457 fi
5458
5459   if test "x$ac_ct_OBJDUMP" = x; then
5460     OBJDUMP="false"
5461   else
5462     case $cross_compiling:$ac_tool_warned in
5463 yes:)
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5466 ac_tool_warned=yes ;;
5467 esac
5468     OBJDUMP=$ac_ct_OBJDUMP
5469   fi
5470 else
5471   OBJDUMP="$ac_cv_prog_OBJDUMP"
5472 fi
5473
5474 test -z "$OBJDUMP" && OBJDUMP=objdump
5475
5476
5477
5478
5479
5480
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5482 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5483 if ${lt_cv_deplibs_check_method+:} false; then :
5484   $as_echo_n "(cached) " >&6
5485 else
5486   lt_cv_file_magic_cmd='$MAGIC_CMD'
5487 lt_cv_file_magic_test_file=
5488 lt_cv_deplibs_check_method='unknown'
5489 # Need to set the preceding variable on all platforms that support
5490 # interlibrary dependencies.
5491 # 'none' -- dependencies not supported.
5492 # 'unknown' -- same as none, but documents that we really don't know.
5493 # 'pass_all' -- all dependencies passed with no checks.
5494 # 'test_compile' -- check by making test program.
5495 # 'file_magic [[regex]]' -- check by looking for files in library path
5496 # that responds to the $file_magic_cmd with a given extended regex.
5497 # If you have 'file' or equivalent on your system and you're not sure
5498 # whether 'pass_all' will *always* work, you probably want this one.
5499
5500 case $host_os in
5501 aix[4-9]*)
5502   lt_cv_deplibs_check_method=pass_all
5503   ;;
5504
5505 beos*)
5506   lt_cv_deplibs_check_method=pass_all
5507   ;;
5508
5509 bsdi[45]*)
5510   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5511   lt_cv_file_magic_cmd='/usr/bin/file -L'
5512   lt_cv_file_magic_test_file=/shlib/libc.so
5513   ;;
5514
5515 cygwin*)
5516   # func_win32_libid is a shell function defined in ltmain.sh
5517   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5518   lt_cv_file_magic_cmd='func_win32_libid'
5519   ;;
5520
5521 mingw* | pw32*)
5522   # Base MSYS/MinGW do not provide the 'file' command needed by
5523   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5524   # unless we find 'file', for example because we are cross-compiling.
5525   if ( file / ) >/dev/null 2>&1; then
5526     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5527     lt_cv_file_magic_cmd='func_win32_libid'
5528   else
5529     # Keep this pattern in sync with the one in func_win32_libid.
5530     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5531     lt_cv_file_magic_cmd='$OBJDUMP -f'
5532   fi
5533   ;;
5534
5535 cegcc*)
5536   # use the weaker test based on 'objdump'. See mingw*.
5537   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5538   lt_cv_file_magic_cmd='$OBJDUMP -f'
5539   ;;
5540
5541 darwin* | rhapsody*)
5542   lt_cv_deplibs_check_method=pass_all
5543   ;;
5544
5545 freebsd* | dragonfly*)
5546   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5547     case $host_cpu in
5548     i*86 )
5549       # Not sure whether the presence of OpenBSD here was a mistake.
5550       # Let's accept both of them until this is cleared up.
5551       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5552       lt_cv_file_magic_cmd=/usr/bin/file
5553       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5554       ;;
5555     esac
5556   else
5557     lt_cv_deplibs_check_method=pass_all
5558   fi
5559   ;;
5560
5561 haiku*)
5562   lt_cv_deplibs_check_method=pass_all
5563   ;;
5564
5565 hpux10.20* | hpux11*)
5566   lt_cv_file_magic_cmd=/usr/bin/file
5567   case $host_cpu in
5568   ia64*)
5569     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5570     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5571     ;;
5572   hppa*64*)
5573     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]'
5574     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5575     ;;
5576   *)
5577     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5578     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5579     ;;
5580   esac
5581   ;;
5582
5583 interix[3-9]*)
5584   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5585   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5586   ;;
5587
5588 irix5* | irix6* | nonstopux*)
5589   case $LD in
5590   *-32|*"-32 ") libmagic=32-bit;;
5591   *-n32|*"-n32 ") libmagic=N32;;
5592   *-64|*"-64 ") libmagic=64-bit;;
5593   *) libmagic=never-match;;
5594   esac
5595   lt_cv_deplibs_check_method=pass_all
5596   ;;
5597
5598 # This must be glibc/ELF.
5599 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5600   lt_cv_deplibs_check_method=pass_all
5601   ;;
5602
5603 netbsd* | netbsdelf*-gnu)
5604   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5605     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5606   else
5607     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5608   fi
5609   ;;
5610
5611 newos6*)
5612   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5613   lt_cv_file_magic_cmd=/usr/bin/file
5614   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5615   ;;
5616
5617 *nto* | *qnx*)
5618   lt_cv_deplibs_check_method=pass_all
5619   ;;
5620
5621 openbsd* | bitrig*)
5622   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5623     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5624   else
5625     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5626   fi
5627   ;;
5628
5629 osf3* | osf4* | osf5*)
5630   lt_cv_deplibs_check_method=pass_all
5631   ;;
5632
5633 rdos*)
5634   lt_cv_deplibs_check_method=pass_all
5635   ;;
5636
5637 solaris*)
5638   lt_cv_deplibs_check_method=pass_all
5639   ;;
5640
5641 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5642   lt_cv_deplibs_check_method=pass_all
5643   ;;
5644
5645 sysv4 | sysv4.3*)
5646   case $host_vendor in
5647   motorola)
5648     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]'
5649     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5650     ;;
5651   ncr)
5652     lt_cv_deplibs_check_method=pass_all
5653     ;;
5654   sequent)
5655     lt_cv_file_magic_cmd='/bin/file'
5656     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5657     ;;
5658   sni)
5659     lt_cv_file_magic_cmd='/bin/file'
5660     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5661     lt_cv_file_magic_test_file=/lib/libc.so
5662     ;;
5663   siemens)
5664     lt_cv_deplibs_check_method=pass_all
5665     ;;
5666   pc)
5667     lt_cv_deplibs_check_method=pass_all
5668     ;;
5669   esac
5670   ;;
5671
5672 tpf*)
5673   lt_cv_deplibs_check_method=pass_all
5674   ;;
5675 os2*)
5676   lt_cv_deplibs_check_method=pass_all
5677   ;;
5678 esac
5679
5680 fi
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5682 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5683
5684 file_magic_glob=
5685 want_nocaseglob=no
5686 if test "$build" = "$host"; then
5687   case $host_os in
5688   mingw* | pw32*)
5689     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5690       want_nocaseglob=yes
5691     else
5692       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5693     fi
5694     ;;
5695   esac
5696 fi
5697
5698 file_magic_cmd=$lt_cv_file_magic_cmd
5699 deplibs_check_method=$lt_cv_deplibs_check_method
5700 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723 if test -n "$ac_tool_prefix"; then
5724   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5725 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if ${ac_cv_prog_DLLTOOL+:} false; then :
5729   $as_echo_n "(cached) " >&6
5730 else
5731   if test -n "$DLLTOOL"; then
5732   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5736 do
5737   IFS=$as_save_IFS
5738   test -z "$as_dir" && as_dir=.
5739     for ac_exec_ext in '' $ac_executable_extensions; do
5740   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743     break 2
5744   fi
5745 done
5746   done
5747 IFS=$as_save_IFS
5748
5749 fi
5750 fi
5751 DLLTOOL=$ac_cv_prog_DLLTOOL
5752 if test -n "$DLLTOOL"; then
5753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5754 $as_echo "$DLLTOOL" >&6; }
5755 else
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5758 fi
5759
5760
5761 fi
5762 if test -z "$ac_cv_prog_DLLTOOL"; then
5763   ac_ct_DLLTOOL=$DLLTOOL
5764   # Extract the first word of "dlltool", so it can be a program name with args.
5765 set dummy dlltool; ac_word=$2
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767 $as_echo_n "checking for $ac_word... " >&6; }
5768 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5769   $as_echo_n "(cached) " >&6
5770 else
5771   if test -n "$ac_ct_DLLTOOL"; then
5772   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5773 else
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5776 do
5777   IFS=$as_save_IFS
5778   test -z "$as_dir" && as_dir=.
5779     for ac_exec_ext in '' $ac_executable_extensions; do
5780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783     break 2
5784   fi
5785 done
5786   done
5787 IFS=$as_save_IFS
5788
5789 fi
5790 fi
5791 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5792 if test -n "$ac_ct_DLLTOOL"; then
5793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5794 $as_echo "$ac_ct_DLLTOOL" >&6; }
5795 else
5796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 $as_echo "no" >&6; }
5798 fi
5799
5800   if test "x$ac_ct_DLLTOOL" = x; then
5801     DLLTOOL="false"
5802   else
5803     case $cross_compiling:$ac_tool_warned in
5804 yes:)
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5807 ac_tool_warned=yes ;;
5808 esac
5809     DLLTOOL=$ac_ct_DLLTOOL
5810   fi
5811 else
5812   DLLTOOL="$ac_cv_prog_DLLTOOL"
5813 fi
5814
5815 test -z "$DLLTOOL" && DLLTOOL=dlltool
5816
5817
5818
5819
5820
5821
5822
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5824 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5825 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5826   $as_echo_n "(cached) " >&6
5827 else
5828   lt_cv_sharedlib_from_linklib_cmd='unknown'
5829
5830 case $host_os in
5831 cygwin* | mingw* | pw32* | cegcc*)
5832   # two different shell functions defined in ltmain.sh;
5833   # decide which one to use based on capabilities of $DLLTOOL
5834   case `$DLLTOOL --help 2>&1` in
5835   *--identify-strict*)
5836     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5837     ;;
5838   *)
5839     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5840     ;;
5841   esac
5842   ;;
5843 *)
5844   # fallback: assume linklib IS sharedlib
5845   lt_cv_sharedlib_from_linklib_cmd=$ECHO
5846   ;;
5847 esac
5848
5849 fi
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5851 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5852 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5853 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5854
5855
5856
5857
5858
5859
5860
5861
5862 if test -n "$ac_tool_prefix"; then
5863   for ac_prog in ar
5864   do
5865     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5866 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868 $as_echo_n "checking for $ac_word... " >&6; }
5869 if ${ac_cv_prog_AR+:} false; then :
5870   $as_echo_n "(cached) " >&6
5871 else
5872   if test -n "$AR"; then
5873   ac_cv_prog_AR="$AR" # Let the user override the test.
5874 else
5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 for as_dir in $PATH
5877 do
5878   IFS=$as_save_IFS
5879   test -z "$as_dir" && as_dir=.
5880     for ac_exec_ext in '' $ac_executable_extensions; do
5881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5882     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5884     break 2
5885   fi
5886 done
5887   done
5888 IFS=$as_save_IFS
5889
5890 fi
5891 fi
5892 AR=$ac_cv_prog_AR
5893 if test -n "$AR"; then
5894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5895 $as_echo "$AR" >&6; }
5896 else
5897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898 $as_echo "no" >&6; }
5899 fi
5900
5901
5902     test -n "$AR" && break
5903   done
5904 fi
5905 if test -z "$AR"; then
5906   ac_ct_AR=$AR
5907   for ac_prog in ar
5908 do
5909   # Extract the first word of "$ac_prog", so it can be a program name with args.
5910 set dummy $ac_prog; ac_word=$2
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5912 $as_echo_n "checking for $ac_word... " >&6; }
5913 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5914   $as_echo_n "(cached) " >&6
5915 else
5916   if test -n "$ac_ct_AR"; then
5917   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5918 else
5919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 for as_dir in $PATH
5921 do
5922   IFS=$as_save_IFS
5923   test -z "$as_dir" && as_dir=.
5924     for ac_exec_ext in '' $ac_executable_extensions; do
5925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5926     ac_cv_prog_ac_ct_AR="$ac_prog"
5927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5928     break 2
5929   fi
5930 done
5931   done
5932 IFS=$as_save_IFS
5933
5934 fi
5935 fi
5936 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5937 if test -n "$ac_ct_AR"; then
5938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5939 $as_echo "$ac_ct_AR" >&6; }
5940 else
5941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }
5943 fi
5944
5945
5946   test -n "$ac_ct_AR" && break
5947 done
5948
5949   if test "x$ac_ct_AR" = x; then
5950     AR="false"
5951   else
5952     case $cross_compiling:$ac_tool_warned in
5953 yes:)
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5956 ac_tool_warned=yes ;;
5957 esac
5958     AR=$ac_ct_AR
5959   fi
5960 fi
5961
5962 : ${AR=ar}
5963 : ${AR_FLAGS=cru}
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5976 $as_echo_n "checking for archiver @FILE support... " >&6; }
5977 if ${lt_cv_ar_at_file+:} false; then :
5978   $as_echo_n "(cached) " >&6
5979 else
5980   lt_cv_ar_at_file=no
5981    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h.  */
5983
5984 int
5985 main ()
5986 {
5987
5988   ;
5989   return 0;
5990 }
5991 _ACEOF
5992 if ac_fn_c_try_compile "$LINENO"; then :
5993   echo conftest.$ac_objext > conftest.lst
5994       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5995       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5996   (eval $lt_ar_try) 2>&5
5997   ac_status=$?
5998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999   test $ac_status = 0; }
6000       if test 0 -eq "$ac_status"; then
6001         # Ensure the archiver fails upon bogus file names.
6002         rm -f conftest.$ac_objext libconftest.a
6003         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6004   (eval $lt_ar_try) 2>&5
6005   ac_status=$?
6006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6007   test $ac_status = 0; }
6008         if test 0 -ne "$ac_status"; then
6009           lt_cv_ar_at_file=@
6010         fi
6011       fi
6012       rm -f conftest.* libconftest.a
6013
6014 fi
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016
6017 fi
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6019 $as_echo "$lt_cv_ar_at_file" >&6; }
6020
6021 if test no = "$lt_cv_ar_at_file"; then
6022   archiver_list_spec=
6023 else
6024   archiver_list_spec=$lt_cv_ar_at_file
6025 fi
6026
6027
6028
6029
6030
6031
6032
6033 if test -n "$ac_tool_prefix"; then
6034   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6035 set dummy ${ac_tool_prefix}strip; ac_word=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if ${ac_cv_prog_STRIP+:} false; then :
6039   $as_echo_n "(cached) " >&6
6040 else
6041   if test -n "$STRIP"; then
6042   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6043 else
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6046 do
6047   IFS=$as_save_IFS
6048   test -z "$as_dir" && as_dir=.
6049     for ac_exec_ext in '' $ac_executable_extensions; do
6050   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6051     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053     break 2
6054   fi
6055 done
6056   done
6057 IFS=$as_save_IFS
6058
6059 fi
6060 fi
6061 STRIP=$ac_cv_prog_STRIP
6062 if test -n "$STRIP"; then
6063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6064 $as_echo "$STRIP" >&6; }
6065 else
6066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6068 fi
6069
6070
6071 fi
6072 if test -z "$ac_cv_prog_STRIP"; then
6073   ac_ct_STRIP=$STRIP
6074   # Extract the first word of "strip", so it can be a program name with args.
6075 set dummy strip; ac_word=$2
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 $as_echo_n "checking for $ac_word... " >&6; }
6078 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6079   $as_echo_n "(cached) " >&6
6080 else
6081   if test -n "$ac_ct_STRIP"; then
6082   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6083 else
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 for as_dir in $PATH
6086 do
6087   IFS=$as_save_IFS
6088   test -z "$as_dir" && as_dir=.
6089     for ac_exec_ext in '' $ac_executable_extensions; do
6090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6091     ac_cv_prog_ac_ct_STRIP="strip"
6092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6093     break 2
6094   fi
6095 done
6096   done
6097 IFS=$as_save_IFS
6098
6099 fi
6100 fi
6101 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6102 if test -n "$ac_ct_STRIP"; then
6103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6104 $as_echo "$ac_ct_STRIP" >&6; }
6105 else
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6108 fi
6109
6110   if test "x$ac_ct_STRIP" = x; then
6111     STRIP=":"
6112   else
6113     case $cross_compiling:$ac_tool_warned in
6114 yes:)
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6117 ac_tool_warned=yes ;;
6118 esac
6119     STRIP=$ac_ct_STRIP
6120   fi
6121 else
6122   STRIP="$ac_cv_prog_STRIP"
6123 fi
6124
6125 test -z "$STRIP" && STRIP=:
6126
6127
6128
6129
6130
6131
6132 if test -n "$ac_tool_prefix"; then
6133   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6134 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136 $as_echo_n "checking for $ac_word... " >&6; }
6137 if ${ac_cv_prog_RANLIB+:} false; then :
6138   $as_echo_n "(cached) " >&6
6139 else
6140   if test -n "$RANLIB"; then
6141   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6142 else
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $PATH
6145 do
6146   IFS=$as_save_IFS
6147   test -z "$as_dir" && as_dir=.
6148     for ac_exec_ext in '' $ac_executable_extensions; do
6149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6150     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6152     break 2
6153   fi
6154 done
6155   done
6156 IFS=$as_save_IFS
6157
6158 fi
6159 fi
6160 RANLIB=$ac_cv_prog_RANLIB
6161 if test -n "$RANLIB"; then
6162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6163 $as_echo "$RANLIB" >&6; }
6164 else
6165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166 $as_echo "no" >&6; }
6167 fi
6168
6169
6170 fi
6171 if test -z "$ac_cv_prog_RANLIB"; then
6172   ac_ct_RANLIB=$RANLIB
6173   # Extract the first word of "ranlib", so it can be a program name with args.
6174 set dummy ranlib; ac_word=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6178   $as_echo_n "(cached) " >&6
6179 else
6180   if test -n "$ac_ct_RANLIB"; then
6181   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6182 else
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH
6185 do
6186   IFS=$as_save_IFS
6187   test -z "$as_dir" && as_dir=.
6188     for ac_exec_ext in '' $ac_executable_extensions; do
6189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190     ac_cv_prog_ac_ct_RANLIB="ranlib"
6191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192     break 2
6193   fi
6194 done
6195   done
6196 IFS=$as_save_IFS
6197
6198 fi
6199 fi
6200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6201 if test -n "$ac_ct_RANLIB"; then
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6203 $as_echo "$ac_ct_RANLIB" >&6; }
6204 else
6205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6207 fi
6208
6209   if test "x$ac_ct_RANLIB" = x; then
6210     RANLIB=":"
6211   else
6212     case $cross_compiling:$ac_tool_warned in
6213 yes:)
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6216 ac_tool_warned=yes ;;
6217 esac
6218     RANLIB=$ac_ct_RANLIB
6219   fi
6220 else
6221   RANLIB="$ac_cv_prog_RANLIB"
6222 fi
6223
6224 test -z "$RANLIB" && RANLIB=:
6225
6226
6227
6228
6229
6230
6231 # Determine commands to create old-style static archives.
6232 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6233 old_postinstall_cmds='chmod 644 $oldlib'
6234 old_postuninstall_cmds=
6235
6236 if test -n "$RANLIB"; then
6237   case $host_os in
6238   bitrig* | openbsd*)
6239     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6240     ;;
6241   *)
6242     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6243     ;;
6244   esac
6245   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6246 fi
6247
6248 case $host_os in
6249   darwin*)
6250     lock_old_archive_extraction=yes ;;
6251   *)
6252     lock_old_archive_extraction=no ;;
6253 esac
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293 # If no C compiler was specified, use CC.
6294 LTCC=${LTCC-"$CC"}
6295
6296 # If no C compiler flags were specified, use CFLAGS.
6297 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6298
6299 # Allow CC to be a program name with arguments.
6300 compiler=$CC
6301
6302
6303 # Check for command to grab the raw symbol name followed by C symbol from nm.
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6305 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6306 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6307   $as_echo_n "(cached) " >&6
6308 else
6309
6310 # These are sane defaults that work on at least a few old systems.
6311 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6312
6313 # Character class describing NM global symbol codes.
6314 symcode='[BCDEGRST]'
6315
6316 # Regexp to match symbols that can be accessed directly from C.
6317 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6318
6319 # Define system-specific variables.
6320 case $host_os in
6321 aix*)
6322   symcode='[BCDT]'
6323   ;;
6324 cygwin* | mingw* | pw32* | cegcc*)
6325   symcode='[ABCDGISTW]'
6326   ;;
6327 hpux*)
6328   if test ia64 = "$host_cpu"; then
6329     symcode='[ABCDEGRST]'
6330   fi
6331   ;;
6332 irix* | nonstopux*)
6333   symcode='[BCDEGRST]'
6334   ;;
6335 osf*)
6336   symcode='[BCDEGQRST]'
6337   ;;
6338 solaris*)
6339   symcode='[BDRT]'
6340   ;;
6341 sco3.2v5*)
6342   symcode='[DT]'
6343   ;;
6344 sysv4.2uw2*)
6345   symcode='[DT]'
6346   ;;
6347 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6348   symcode='[ABDT]'
6349   ;;
6350 sysv4)
6351   symcode='[DFNSTU]'
6352   ;;
6353 esac
6354
6355 # If we're using GNU nm, then use its standard symbol codes.
6356 case `$NM -V 2>&1` in
6357 *GNU* | *'with BFD'*)
6358   symcode='[ABCDGIRSTW]' ;;
6359 esac
6360
6361 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6362   # Gets list of data symbols to import.
6363   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6364   # Adjust the below global symbol transforms to fixup imported variables.
6365   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6366   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6367   lt_c_name_lib_hook="\
6368   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6369   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6370 else
6371   # Disable hooks by default.
6372   lt_cv_sys_global_symbol_to_import=
6373   lt_cdecl_hook=
6374   lt_c_name_hook=
6375   lt_c_name_lib_hook=
6376 fi
6377
6378 # Transform an extracted symbol line into a proper C declaration.
6379 # Some systems (esp. on ia64) link data and code symbols differently,
6380 # so use this general approach.
6381 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6382 $lt_cdecl_hook\
6383 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6384 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6385
6386 # Transform an extracted symbol line into symbol name and symbol address
6387 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6388 $lt_c_name_hook\
6389 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6390 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6391
6392 # Transform an extracted symbol line into symbol name with lib prefix and
6393 # symbol address.
6394 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6395 $lt_c_name_lib_hook\
6396 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6397 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6398 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6399
6400 # Handle CRLF in mingw tool chain
6401 opt_cr=
6402 case $build_os in
6403 mingw*)
6404   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6405   ;;
6406 esac
6407
6408 # Try without a prefix underscore, then with it.
6409 for ac_symprfx in "" "_"; do
6410
6411   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6412   symxfrm="\\1 $ac_symprfx\\2 \\2"
6413
6414   # Write the raw and C identifiers.
6415   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6416     # Fake it for dumpbin and say T for any non-static function,
6417     # D for any global variable and I for any imported variable.
6418     # Also find C++ and __fastcall symbols from MSVC++,
6419     # which start with @ or ?.
6420     lt_cv_sys_global_symbol_pipe="$AWK '"\
6421 "     {last_section=section; section=\$ 3};"\
6422 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6423 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6424 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6425 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6426 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6427 "     \$ 0!~/External *\|/{next};"\
6428 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6429 "     {if(hide[section]) next};"\
6430 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6431 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6432 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6433 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6434 "     ' prfx=^$ac_symprfx"
6435   else
6436     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6437   fi
6438   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6439
6440   # Check to see that the pipe works correctly.
6441   pipe_works=no
6442
6443   rm -f conftest*
6444   cat > conftest.$ac_ext <<_LT_EOF
6445 #ifdef __cplusplus
6446 extern "C" {
6447 #endif
6448 char nm_test_var;
6449 void nm_test_func(void);
6450 void nm_test_func(void){}
6451 #ifdef __cplusplus
6452 }
6453 #endif
6454 int main(){nm_test_var='a';nm_test_func();return(0);}
6455 _LT_EOF
6456
6457   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6458   (eval $ac_compile) 2>&5
6459   ac_status=$?
6460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6461   test $ac_status = 0; }; then
6462     # Now try to grab the symbols.
6463     nlist=conftest.nm
6464     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6465   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6466   ac_status=$?
6467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468   test $ac_status = 0; } && test -s "$nlist"; then
6469       # Try sorting and uniquifying the output.
6470       if sort "$nlist" | uniq > "$nlist"T; then
6471         mv -f "$nlist"T "$nlist"
6472       else
6473         rm -f "$nlist"T
6474       fi
6475
6476       # Make sure that we snagged all the symbols we need.
6477       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6478         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6479           cat <<_LT_EOF > conftest.$ac_ext
6480 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6481 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6482 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6483    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6484 # define LT_DLSYM_CONST
6485 #elif defined __osf__
6486 /* This system does not cope well with relocations in const data.  */
6487 # define LT_DLSYM_CONST
6488 #else
6489 # define LT_DLSYM_CONST const
6490 #endif
6491
6492 #ifdef __cplusplus
6493 extern "C" {
6494 #endif
6495
6496 _LT_EOF
6497           # Now generate the symbol file.
6498           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6499
6500           cat <<_LT_EOF >> conftest.$ac_ext
6501
6502 /* The mapping between symbol names and symbols.  */
6503 LT_DLSYM_CONST struct {
6504   const char *name;
6505   void       *address;
6506 }
6507 lt__PROGRAM__LTX_preloaded_symbols[] =
6508 {
6509   { "@PROGRAM@", (void *) 0 },
6510 _LT_EOF
6511           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6512           cat <<\_LT_EOF >> conftest.$ac_ext
6513   {0, (void *) 0}
6514 };
6515
6516 /* This works around a problem in FreeBSD linker */
6517 #ifdef FREEBSD_WORKAROUND
6518 static const void *lt_preloaded_setup() {
6519   return lt__PROGRAM__LTX_preloaded_symbols;
6520 }
6521 #endif
6522
6523 #ifdef __cplusplus
6524 }
6525 #endif
6526 _LT_EOF
6527           # Now try linking the two files.
6528           mv conftest.$ac_objext conftstm.$ac_objext
6529           lt_globsym_save_LIBS=$LIBS
6530           lt_globsym_save_CFLAGS=$CFLAGS
6531           LIBS=conftstm.$ac_objext
6532           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6533           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6534   (eval $ac_link) 2>&5
6535   ac_status=$?
6536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6537   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6538             pipe_works=yes
6539           fi
6540           LIBS=$lt_globsym_save_LIBS
6541           CFLAGS=$lt_globsym_save_CFLAGS
6542         else
6543           echo "cannot find nm_test_func in $nlist" >&5
6544         fi
6545       else
6546         echo "cannot find nm_test_var in $nlist" >&5
6547       fi
6548     else
6549       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6550     fi
6551   else
6552     echo "$progname: failed program was:" >&5
6553     cat conftest.$ac_ext >&5
6554   fi
6555   rm -rf conftest* conftst*
6556
6557   # Do not use the global_symbol_pipe unless it works.
6558   if test yes = "$pipe_works"; then
6559     break
6560   else
6561     lt_cv_sys_global_symbol_pipe=
6562   fi
6563 done
6564
6565 fi
6566
6567 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6568   lt_cv_sys_global_symbol_to_cdecl=
6569 fi
6570 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6572 $as_echo "failed" >&6; }
6573 else
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6575 $as_echo "ok" >&6; }
6576 fi
6577
6578 # Response file support.
6579 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6580   nm_file_list_spec='@'
6581 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6582   nm_file_list_spec='@'
6583 fi
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6622 $as_echo_n "checking for sysroot... " >&6; }
6623
6624 # Check whether --with-sysroot was given.
6625 if test "${with_sysroot+set}" = set; then :
6626   withval=$with_sysroot;
6627 else
6628   with_sysroot=no
6629 fi
6630
6631
6632 lt_sysroot=
6633 case $with_sysroot in #(
6634  yes)
6635    if test yes = "$GCC"; then
6636      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6637    fi
6638    ;; #(
6639  /*)
6640    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6641    ;; #(
6642  no|'')
6643    ;; #(
6644  *)
6645    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6646 $as_echo "$with_sysroot" >&6; }
6647    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6648    ;;
6649 esac
6650
6651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6652 $as_echo "${lt_sysroot:-no}" >&6; }
6653
6654
6655
6656
6657
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6659 $as_echo_n "checking for a working dd... " >&6; }
6660 if ${ac_cv_path_lt_DD+:} false; then :
6661   $as_echo_n "(cached) " >&6
6662 else
6663   printf 0123456789abcdef0123456789abcdef >conftest.i
6664 cat conftest.i conftest.i >conftest2.i
6665 : ${lt_DD:=$DD}
6666 if test -z "$lt_DD"; then
6667   ac_path_lt_DD_found=false
6668   # Loop through the user's path and test for each of PROGNAME-LIST
6669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 for as_dir in $PATH
6671 do
6672   IFS=$as_save_IFS
6673   test -z "$as_dir" && as_dir=.
6674     for ac_prog in dd; do
6675     for ac_exec_ext in '' $ac_executable_extensions; do
6676       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6677       as_fn_executable_p "$ac_path_lt_DD" || continue
6678 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6679   cmp -s conftest.i conftest.out \
6680   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6681 fi
6682       $ac_path_lt_DD_found && break 3
6683     done
6684   done
6685   done
6686 IFS=$as_save_IFS
6687   if test -z "$ac_cv_path_lt_DD"; then
6688     :
6689   fi
6690 else
6691   ac_cv_path_lt_DD=$lt_DD
6692 fi
6693
6694 rm -f conftest.i conftest2.i conftest.out
6695 fi
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6697 $as_echo "$ac_cv_path_lt_DD" >&6; }
6698
6699
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6701 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6702 if ${lt_cv_truncate_bin+:} false; then :
6703   $as_echo_n "(cached) " >&6
6704 else
6705   printf 0123456789abcdef0123456789abcdef >conftest.i
6706 cat conftest.i conftest.i >conftest2.i
6707 lt_cv_truncate_bin=
6708 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6709   cmp -s conftest.i conftest.out \
6710   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6711 fi
6712 rm -f conftest.i conftest2.i conftest.out
6713 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6714 fi
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6716 $as_echo "$lt_cv_truncate_bin" >&6; }
6717
6718
6719
6720
6721
6722
6723
6724 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6725 func_cc_basename ()
6726 {
6727     for cc_temp in $*""; do
6728       case $cc_temp in
6729         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6730         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6731         \-*) ;;
6732         *) break;;
6733       esac
6734     done
6735     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6736 }
6737
6738 # Check whether --enable-libtool-lock was given.
6739 if test "${enable_libtool_lock+set}" = set; then :
6740   enableval=$enable_libtool_lock;
6741 fi
6742
6743 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6744
6745 # Some flags need to be propagated to the compiler or linker for good
6746 # libtool support.
6747 case $host in
6748 ia64-*-hpux*)
6749   # Find out what ABI is being produced by ac_compile, and set mode
6750   # options accordingly.
6751   echo 'int i;' > conftest.$ac_ext
6752   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6753   (eval $ac_compile) 2>&5
6754   ac_status=$?
6755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6756   test $ac_status = 0; }; then
6757     case `/usr/bin/file conftest.$ac_objext` in
6758       *ELF-32*)
6759         HPUX_IA64_MODE=32
6760         ;;
6761       *ELF-64*)
6762         HPUX_IA64_MODE=64
6763         ;;
6764     esac
6765   fi
6766   rm -rf conftest*
6767   ;;
6768 *-*-irix6*)
6769   # Find out what ABI is being produced by ac_compile, and set linker
6770   # options accordingly.
6771   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6772   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6773   (eval $ac_compile) 2>&5
6774   ac_status=$?
6775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6776   test $ac_status = 0; }; then
6777     if test yes = "$lt_cv_prog_gnu_ld"; then
6778       case `/usr/bin/file conftest.$ac_objext` in
6779         *32-bit*)
6780           LD="${LD-ld} -melf32bsmip"
6781           ;;
6782         *N32*)
6783           LD="${LD-ld} -melf32bmipn32"
6784           ;;
6785         *64-bit*)
6786           LD="${LD-ld} -melf64bmip"
6787         ;;
6788       esac
6789     else
6790       case `/usr/bin/file conftest.$ac_objext` in
6791         *32-bit*)
6792           LD="${LD-ld} -32"
6793           ;;
6794         *N32*)
6795           LD="${LD-ld} -n32"
6796           ;;
6797         *64-bit*)
6798           LD="${LD-ld} -64"
6799           ;;
6800       esac
6801     fi
6802   fi
6803   rm -rf conftest*
6804   ;;
6805
6806 mips64*-*linux*)
6807   # Find out what ABI is being produced by ac_compile, and set linker
6808   # options accordingly.
6809   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6810   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6811   (eval $ac_compile) 2>&5
6812   ac_status=$?
6813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6814   test $ac_status = 0; }; then
6815     emul=elf
6816     case `/usr/bin/file conftest.$ac_objext` in
6817       *32-bit*)
6818         emul="${emul}32"
6819         ;;
6820       *64-bit*)
6821         emul="${emul}64"
6822         ;;
6823     esac
6824     case `/usr/bin/file conftest.$ac_objext` in
6825       *MSB*)
6826         emul="${emul}btsmip"
6827         ;;
6828       *LSB*)
6829         emul="${emul}ltsmip"
6830         ;;
6831     esac
6832     case `/usr/bin/file conftest.$ac_objext` in
6833       *N32*)
6834         emul="${emul}n32"
6835         ;;
6836     esac
6837     LD="${LD-ld} -m $emul"
6838   fi
6839   rm -rf conftest*
6840   ;;
6841
6842 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6843 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6844   # Find out what ABI is being produced by ac_compile, and set linker
6845   # options accordingly.  Note that the listed cases only cover the
6846   # situations where additional linker options are needed (such as when
6847   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6848   # vice versa); the common cases where no linker options are needed do
6849   # not appear in the list.
6850   echo 'int i;' > conftest.$ac_ext
6851   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6852   (eval $ac_compile) 2>&5
6853   ac_status=$?
6854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855   test $ac_status = 0; }; then
6856     case `/usr/bin/file conftest.o` in
6857       *32-bit*)
6858         case $host in
6859           x86_64-*kfreebsd*-gnu)
6860             LD="${LD-ld} -m elf_i386_fbsd"
6861             ;;
6862           x86_64-*linux*)
6863             case `/usr/bin/file conftest.o` in
6864               *x86-64*)
6865                 LD="${LD-ld} -m elf32_x86_64"
6866                 ;;
6867               *)
6868                 LD="${LD-ld} -m elf_i386"
6869                 ;;
6870             esac
6871             ;;
6872           powerpc64le-*linux*)
6873             LD="${LD-ld} -m elf32lppclinux"
6874             ;;
6875           powerpc64-*linux*)
6876             LD="${LD-ld} -m elf32ppclinux"
6877             ;;
6878           s390x-*linux*)
6879             LD="${LD-ld} -m elf_s390"
6880             ;;
6881           sparc64-*linux*)
6882             LD="${LD-ld} -m elf32_sparc"
6883             ;;
6884         esac
6885         ;;
6886       *64-bit*)
6887         case $host in
6888           x86_64-*kfreebsd*-gnu)
6889             LD="${LD-ld} -m elf_x86_64_fbsd"
6890             ;;
6891           x86_64-*linux*)
6892             LD="${LD-ld} -m elf_x86_64"
6893             ;;
6894           powerpcle-*linux*)
6895             LD="${LD-ld} -m elf64lppc"
6896             ;;
6897           powerpc-*linux*)
6898             LD="${LD-ld} -m elf64ppc"
6899             ;;
6900           s390*-*linux*|s390*-*tpf*)
6901             LD="${LD-ld} -m elf64_s390"
6902             ;;
6903           sparc*-*linux*)
6904             LD="${LD-ld} -m elf64_sparc"
6905             ;;
6906         esac
6907         ;;
6908     esac
6909   fi
6910   rm -rf conftest*
6911   ;;
6912
6913 *-*-sco3.2v5*)
6914   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6915   SAVE_CFLAGS=$CFLAGS
6916   CFLAGS="$CFLAGS -belf"
6917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6918 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6919 if ${lt_cv_cc_needs_belf+:} false; then :
6920   $as_echo_n "(cached) " >&6
6921 else
6922   ac_ext=c
6923 ac_cpp='$CPP $CPPFLAGS'
6924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6927
6928      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h.  */
6930
6931 int
6932 main ()
6933 {
6934
6935   ;
6936   return 0;
6937 }
6938 _ACEOF
6939 if ac_fn_c_try_link "$LINENO"; then :
6940   lt_cv_cc_needs_belf=yes
6941 else
6942   lt_cv_cc_needs_belf=no
6943 fi
6944 rm -f core conftest.err conftest.$ac_objext \
6945     conftest$ac_exeext conftest.$ac_ext
6946      ac_ext=c
6947 ac_cpp='$CPP $CPPFLAGS'
6948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6951
6952 fi
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6954 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6955   if test yes != "$lt_cv_cc_needs_belf"; then
6956     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6957     CFLAGS=$SAVE_CFLAGS
6958   fi
6959   ;;
6960 *-*solaris*)
6961   # Find out what ABI is being produced by ac_compile, and set linker
6962   # options accordingly.
6963   echo 'int i;' > conftest.$ac_ext
6964   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6965   (eval $ac_compile) 2>&5
6966   ac_status=$?
6967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6968   test $ac_status = 0; }; then
6969     case `/usr/bin/file conftest.o` in
6970     *64-bit*)
6971       case $lt_cv_prog_gnu_ld in
6972       yes*)
6973         case $host in
6974         i?86-*-solaris*|x86_64-*-solaris*)
6975           LD="${LD-ld} -m elf_x86_64"
6976           ;;
6977         sparc*-*-solaris*)
6978           LD="${LD-ld} -m elf64_sparc"
6979           ;;
6980         esac
6981         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6982         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6983           LD=${LD-ld}_sol2
6984         fi
6985         ;;
6986       *)
6987         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6988           LD="${LD-ld} -64"
6989         fi
6990         ;;
6991       esac
6992       ;;
6993     esac
6994   fi
6995   rm -rf conftest*
6996   ;;
6997 esac
6998
6999 need_locks=$enable_libtool_lock
7000
7001 if test -n "$ac_tool_prefix"; then
7002   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7003 set dummy ${ac_tool_prefix}mt; ac_word=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7007   $as_echo_n "(cached) " >&6
7008 else
7009   if test -n "$MANIFEST_TOOL"; then
7010   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7011 else
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7014 do
7015   IFS=$as_save_IFS
7016   test -z "$as_dir" && as_dir=.
7017     for ac_exec_ext in '' $ac_executable_extensions; do
7018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7019     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021     break 2
7022   fi
7023 done
7024   done
7025 IFS=$as_save_IFS
7026
7027 fi
7028 fi
7029 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7030 if test -n "$MANIFEST_TOOL"; then
7031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7032 $as_echo "$MANIFEST_TOOL" >&6; }
7033 else
7034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035 $as_echo "no" >&6; }
7036 fi
7037
7038
7039 fi
7040 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7041   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7042   # Extract the first word of "mt", so it can be a program name with args.
7043 set dummy mt; ac_word=$2
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045 $as_echo_n "checking for $ac_word... " >&6; }
7046 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7047   $as_echo_n "(cached) " >&6
7048 else
7049   if test -n "$ac_ct_MANIFEST_TOOL"; then
7050   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7051 else
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH
7054 do
7055   IFS=$as_save_IFS
7056   test -z "$as_dir" && as_dir=.
7057     for ac_exec_ext in '' $ac_executable_extensions; do
7058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7059     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061     break 2
7062   fi
7063 done
7064   done
7065 IFS=$as_save_IFS
7066
7067 fi
7068 fi
7069 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7070 if test -n "$ac_ct_MANIFEST_TOOL"; then
7071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7072 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7073 else
7074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075 $as_echo "no" >&6; }
7076 fi
7077
7078   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7079     MANIFEST_TOOL=":"
7080   else
7081     case $cross_compiling:$ac_tool_warned in
7082 yes:)
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7085 ac_tool_warned=yes ;;
7086 esac
7087     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7088   fi
7089 else
7090   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7091 fi
7092
7093 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7095 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7096 if ${lt_cv_path_mainfest_tool+:} false; then :
7097   $as_echo_n "(cached) " >&6
7098 else
7099   lt_cv_path_mainfest_tool=no
7100   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7101   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7102   cat conftest.err >&5
7103   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7104     lt_cv_path_mainfest_tool=yes
7105   fi
7106   rm -f conftest*
7107 fi
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7109 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7110 if test yes != "$lt_cv_path_mainfest_tool"; then
7111   MANIFEST_TOOL=:
7112 fi
7113
7114
7115
7116
7117
7118
7119   case $host_os in
7120     rhapsody* | darwin*)
7121     if test -n "$ac_tool_prefix"; then
7122   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7123 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7127   $as_echo_n "(cached) " >&6
7128 else
7129   if test -n "$DSYMUTIL"; then
7130   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7131 else
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7134 do
7135   IFS=$as_save_IFS
7136   test -z "$as_dir" && as_dir=.
7137     for ac_exec_ext in '' $ac_executable_extensions; do
7138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7139     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141     break 2
7142   fi
7143 done
7144   done
7145 IFS=$as_save_IFS
7146
7147 fi
7148 fi
7149 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7150 if test -n "$DSYMUTIL"; then
7151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7152 $as_echo "$DSYMUTIL" >&6; }
7153 else
7154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7156 fi
7157
7158
7159 fi
7160 if test -z "$ac_cv_prog_DSYMUTIL"; then
7161   ac_ct_DSYMUTIL=$DSYMUTIL
7162   # Extract the first word of "dsymutil", so it can be a program name with args.
7163 set dummy dsymutil; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7167   $as_echo_n "(cached) " >&6
7168 else
7169   if test -n "$ac_ct_DSYMUTIL"; then
7170   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7171 else
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175   IFS=$as_save_IFS
7176   test -z "$as_dir" && as_dir=.
7177     for ac_exec_ext in '' $ac_executable_extensions; do
7178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181     break 2
7182   fi
7183 done
7184   done
7185 IFS=$as_save_IFS
7186
7187 fi
7188 fi
7189 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7190 if test -n "$ac_ct_DSYMUTIL"; then
7191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7192 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7193 else
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7196 fi
7197
7198   if test "x$ac_ct_DSYMUTIL" = x; then
7199     DSYMUTIL=":"
7200   else
7201     case $cross_compiling:$ac_tool_warned in
7202 yes:)
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7205 ac_tool_warned=yes ;;
7206 esac
7207     DSYMUTIL=$ac_ct_DSYMUTIL
7208   fi
7209 else
7210   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7211 fi
7212
7213     if test -n "$ac_tool_prefix"; then
7214   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7215 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7217 $as_echo_n "checking for $ac_word... " >&6; }
7218 if ${ac_cv_prog_NMEDIT+:} false; then :
7219   $as_echo_n "(cached) " >&6
7220 else
7221   if test -n "$NMEDIT"; then
7222   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7223 else
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 for as_dir in $PATH
7226 do
7227   IFS=$as_save_IFS
7228   test -z "$as_dir" && as_dir=.
7229     for ac_exec_ext in '' $ac_executable_extensions; do
7230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7231     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7233     break 2
7234   fi
7235 done
7236   done
7237 IFS=$as_save_IFS
7238
7239 fi
7240 fi
7241 NMEDIT=$ac_cv_prog_NMEDIT
7242 if test -n "$NMEDIT"; then
7243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7244 $as_echo "$NMEDIT" >&6; }
7245 else
7246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7247 $as_echo "no" >&6; }
7248 fi
7249
7250
7251 fi
7252 if test -z "$ac_cv_prog_NMEDIT"; then
7253   ac_ct_NMEDIT=$NMEDIT
7254   # Extract the first word of "nmedit", so it can be a program name with args.
7255 set dummy nmedit; ac_word=$2
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257 $as_echo_n "checking for $ac_word... " >&6; }
7258 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7259   $as_echo_n "(cached) " >&6
7260 else
7261   if test -n "$ac_ct_NMEDIT"; then
7262   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7263 else
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 for as_dir in $PATH
7266 do
7267   IFS=$as_save_IFS
7268   test -z "$as_dir" && as_dir=.
7269     for ac_exec_ext in '' $ac_executable_extensions; do
7270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7271     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7273     break 2
7274   fi
7275 done
7276   done
7277 IFS=$as_save_IFS
7278
7279 fi
7280 fi
7281 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7282 if test -n "$ac_ct_NMEDIT"; then
7283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7284 $as_echo "$ac_ct_NMEDIT" >&6; }
7285 else
7286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287 $as_echo "no" >&6; }
7288 fi
7289
7290   if test "x$ac_ct_NMEDIT" = x; then
7291     NMEDIT=":"
7292   else
7293     case $cross_compiling:$ac_tool_warned in
7294 yes:)
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7297 ac_tool_warned=yes ;;
7298 esac
7299     NMEDIT=$ac_ct_NMEDIT
7300   fi
7301 else
7302   NMEDIT="$ac_cv_prog_NMEDIT"
7303 fi
7304
7305     if test -n "$ac_tool_prefix"; then
7306   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7307 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309 $as_echo_n "checking for $ac_word... " >&6; }
7310 if ${ac_cv_prog_LIPO+:} false; then :
7311   $as_echo_n "(cached) " >&6
7312 else
7313   if test -n "$LIPO"; then
7314   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7315 else
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 for as_dir in $PATH
7318 do
7319   IFS=$as_save_IFS
7320   test -z "$as_dir" && as_dir=.
7321     for ac_exec_ext in '' $ac_executable_extensions; do
7322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325     break 2
7326   fi
7327 done
7328   done
7329 IFS=$as_save_IFS
7330
7331 fi
7332 fi
7333 LIPO=$ac_cv_prog_LIPO
7334 if test -n "$LIPO"; then
7335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7336 $as_echo "$LIPO" >&6; }
7337 else
7338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7340 fi
7341
7342
7343 fi
7344 if test -z "$ac_cv_prog_LIPO"; then
7345   ac_ct_LIPO=$LIPO
7346   # Extract the first word of "lipo", so it can be a program name with args.
7347 set dummy lipo; ac_word=$2
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 $as_echo_n "checking for $ac_word... " >&6; }
7350 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7351   $as_echo_n "(cached) " >&6
7352 else
7353   if test -n "$ac_ct_LIPO"; then
7354   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7355 else
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7358 do
7359   IFS=$as_save_IFS
7360   test -z "$as_dir" && as_dir=.
7361     for ac_exec_ext in '' $ac_executable_extensions; do
7362   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7363     ac_cv_prog_ac_ct_LIPO="lipo"
7364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365     break 2
7366   fi
7367 done
7368   done
7369 IFS=$as_save_IFS
7370
7371 fi
7372 fi
7373 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7374 if test -n "$ac_ct_LIPO"; then
7375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7376 $as_echo "$ac_ct_LIPO" >&6; }
7377 else
7378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379 $as_echo "no" >&6; }
7380 fi
7381
7382   if test "x$ac_ct_LIPO" = x; then
7383     LIPO=":"
7384   else
7385     case $cross_compiling:$ac_tool_warned in
7386 yes:)
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7389 ac_tool_warned=yes ;;
7390 esac
7391     LIPO=$ac_ct_LIPO
7392   fi
7393 else
7394   LIPO="$ac_cv_prog_LIPO"
7395 fi
7396
7397     if test -n "$ac_tool_prefix"; then
7398   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7399 set dummy ${ac_tool_prefix}otool; ac_word=$2
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7401 $as_echo_n "checking for $ac_word... " >&6; }
7402 if ${ac_cv_prog_OTOOL+:} false; then :
7403   $as_echo_n "(cached) " >&6
7404 else
7405   if test -n "$OTOOL"; then
7406   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7407 else
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409 for as_dir in $PATH
7410 do
7411   IFS=$as_save_IFS
7412   test -z "$as_dir" && as_dir=.
7413     for ac_exec_ext in '' $ac_executable_extensions; do
7414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7415     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417     break 2
7418   fi
7419 done
7420   done
7421 IFS=$as_save_IFS
7422
7423 fi
7424 fi
7425 OTOOL=$ac_cv_prog_OTOOL
7426 if test -n "$OTOOL"; then
7427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7428 $as_echo "$OTOOL" >&6; }
7429 else
7430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431 $as_echo "no" >&6; }
7432 fi
7433
7434
7435 fi
7436 if test -z "$ac_cv_prog_OTOOL"; then
7437   ac_ct_OTOOL=$OTOOL
7438   # Extract the first word of "otool", so it can be a program name with args.
7439 set dummy otool; ac_word=$2
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441 $as_echo_n "checking for $ac_word... " >&6; }
7442 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7443   $as_echo_n "(cached) " >&6
7444 else
7445   if test -n "$ac_ct_OTOOL"; then
7446   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7447 else
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 for as_dir in $PATH
7450 do
7451   IFS=$as_save_IFS
7452   test -z "$as_dir" && as_dir=.
7453     for ac_exec_ext in '' $ac_executable_extensions; do
7454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455     ac_cv_prog_ac_ct_OTOOL="otool"
7456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457     break 2
7458   fi
7459 done
7460   done
7461 IFS=$as_save_IFS
7462
7463 fi
7464 fi
7465 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7466 if test -n "$ac_ct_OTOOL"; then
7467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7468 $as_echo "$ac_ct_OTOOL" >&6; }
7469 else
7470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471 $as_echo "no" >&6; }
7472 fi
7473
7474   if test "x$ac_ct_OTOOL" = x; then
7475     OTOOL=":"
7476   else
7477     case $cross_compiling:$ac_tool_warned in
7478 yes:)
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7481 ac_tool_warned=yes ;;
7482 esac
7483     OTOOL=$ac_ct_OTOOL
7484   fi
7485 else
7486   OTOOL="$ac_cv_prog_OTOOL"
7487 fi
7488
7489     if test -n "$ac_tool_prefix"; then
7490   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7491 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 $as_echo_n "checking for $ac_word... " >&6; }
7494 if ${ac_cv_prog_OTOOL64+:} false; then :
7495   $as_echo_n "(cached) " >&6
7496 else
7497   if test -n "$OTOOL64"; then
7498   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7499 else
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503   IFS=$as_save_IFS
7504   test -z "$as_dir" && as_dir=.
7505     for ac_exec_ext in '' $ac_executable_extensions; do
7506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7507     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509     break 2
7510   fi
7511 done
7512   done
7513 IFS=$as_save_IFS
7514
7515 fi
7516 fi
7517 OTOOL64=$ac_cv_prog_OTOOL64
7518 if test -n "$OTOOL64"; then
7519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7520 $as_echo "$OTOOL64" >&6; }
7521 else
7522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 $as_echo "no" >&6; }
7524 fi
7525
7526
7527 fi
7528 if test -z "$ac_cv_prog_OTOOL64"; then
7529   ac_ct_OTOOL64=$OTOOL64
7530   # Extract the first word of "otool64", so it can be a program name with args.
7531 set dummy otool64; ac_word=$2
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7533 $as_echo_n "checking for $ac_word... " >&6; }
7534 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7535   $as_echo_n "(cached) " >&6
7536 else
7537   if test -n "$ac_ct_OTOOL64"; then
7538   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7539 else
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 for as_dir in $PATH
7542 do
7543   IFS=$as_save_IFS
7544   test -z "$as_dir" && as_dir=.
7545     for ac_exec_ext in '' $ac_executable_extensions; do
7546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7547     ac_cv_prog_ac_ct_OTOOL64="otool64"
7548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549     break 2
7550   fi
7551 done
7552   done
7553 IFS=$as_save_IFS
7554
7555 fi
7556 fi
7557 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7558 if test -n "$ac_ct_OTOOL64"; then
7559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7560 $as_echo "$ac_ct_OTOOL64" >&6; }
7561 else
7562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563 $as_echo "no" >&6; }
7564 fi
7565
7566   if test "x$ac_ct_OTOOL64" = x; then
7567     OTOOL64=":"
7568   else
7569     case $cross_compiling:$ac_tool_warned in
7570 yes:)
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7573 ac_tool_warned=yes ;;
7574 esac
7575     OTOOL64=$ac_ct_OTOOL64
7576   fi
7577 else
7578   OTOOL64="$ac_cv_prog_OTOOL64"
7579 fi
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7608 $as_echo_n "checking for -single_module linker flag... " >&6; }
7609 if ${lt_cv_apple_cc_single_mod+:} false; then :
7610   $as_echo_n "(cached) " >&6
7611 else
7612   lt_cv_apple_cc_single_mod=no
7613       if test -z "$LT_MULTI_MODULE"; then
7614         # By default we will add the -single_module flag. You can override
7615         # by either setting the environment variable LT_MULTI_MODULE
7616         # non-empty at configure time, or by adding -multi_module to the
7617         # link flags.
7618         rm -rf libconftest.dylib*
7619         echo "int foo(void){return 1;}" > conftest.c
7620         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7621 -dynamiclib -Wl,-single_module conftest.c" >&5
7622         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7623           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7624         _lt_result=$?
7625         # If there is a non-empty error log, and "single_module"
7626         # appears in it, assume the flag caused a linker warning
7627         if test -s conftest.err && $GREP single_module conftest.err; then
7628           cat conftest.err >&5
7629         # Otherwise, if the output was created with a 0 exit code from
7630         # the compiler, it worked.
7631         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7632           lt_cv_apple_cc_single_mod=yes
7633         else
7634           cat conftest.err >&5
7635         fi
7636         rm -rf libconftest.dylib*
7637         rm -f conftest.*
7638       fi
7639 fi
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7641 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7642
7643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7644 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7645 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7646   $as_echo_n "(cached) " >&6
7647 else
7648   lt_cv_ld_exported_symbols_list=no
7649       save_LDFLAGS=$LDFLAGS
7650       echo "_main" > conftest.sym
7651       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7652       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653 /* end confdefs.h.  */
7654
7655 int
7656 main ()
7657 {
7658
7659   ;
7660   return 0;
7661 }
7662 _ACEOF
7663 if ac_fn_c_try_link "$LINENO"; then :
7664   lt_cv_ld_exported_symbols_list=yes
7665 else
7666   lt_cv_ld_exported_symbols_list=no
7667 fi
7668 rm -f core conftest.err conftest.$ac_objext \
7669     conftest$ac_exeext conftest.$ac_ext
7670         LDFLAGS=$save_LDFLAGS
7671
7672 fi
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7674 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7675
7676     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7677 $as_echo_n "checking for -force_load linker flag... " >&6; }
7678 if ${lt_cv_ld_force_load+:} false; then :
7679   $as_echo_n "(cached) " >&6
7680 else
7681   lt_cv_ld_force_load=no
7682       cat > conftest.c << _LT_EOF
7683 int forced_loaded() { return 2;}
7684 _LT_EOF
7685       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7686       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7687       echo "$AR cru libconftest.a conftest.o" >&5
7688       $AR cru libconftest.a conftest.o 2>&5
7689       echo "$RANLIB libconftest.a" >&5
7690       $RANLIB libconftest.a 2>&5
7691       cat > conftest.c << _LT_EOF
7692 int main() { return 0;}
7693 _LT_EOF
7694       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7695       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7696       _lt_result=$?
7697       if test -s conftest.err && $GREP force_load conftest.err; then
7698         cat conftest.err >&5
7699       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7700         lt_cv_ld_force_load=yes
7701       else
7702         cat conftest.err >&5
7703       fi
7704         rm -f conftest.err libconftest.a conftest conftest.c
7705         rm -rf conftest.dSYM
7706
7707 fi
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7709 $as_echo "$lt_cv_ld_force_load" >&6; }
7710     case $host_os in
7711     rhapsody* | darwin1.[012])
7712       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7713     darwin1.*)
7714       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7715     darwin*) # darwin 5.x on
7716       # if running on 10.5 or later, the deployment target defaults
7717       # to the OS version, if on x86, and 10.4, the deployment
7718       # target defaults to 10.4. Don't you love it?
7719       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7720         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7721           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7722         10.[012][,.]*)
7723           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7724         10.*)
7725           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7726       esac
7727     ;;
7728   esac
7729     if test yes = "$lt_cv_apple_cc_single_mod"; then
7730       _lt_dar_single_mod='$single_module'
7731     fi
7732     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7733       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7734     else
7735       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7736     fi
7737     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7738       _lt_dsymutil='~$DSYMUTIL $lib || :'
7739     else
7740       _lt_dsymutil=
7741     fi
7742     ;;
7743   esac
7744
7745 # func_munge_path_list VARIABLE PATH
7746 # -----------------------------------
7747 # VARIABLE is name of variable containing _space_ separated list of
7748 # directories to be munged by the contents of PATH, which is string
7749 # having a format:
7750 # "DIR[:DIR]:"
7751 #       string "DIR[ DIR]" will be prepended to VARIABLE
7752 # ":DIR[:DIR]"
7753 #       string "DIR[ DIR]" will be appended to VARIABLE
7754 # "DIRP[:DIRP]::[DIRA:]DIRA"
7755 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7756 #       "DIRA[ DIRA]" will be appended to VARIABLE
7757 # "DIR[:DIR]"
7758 #       VARIABLE will be replaced by "DIR[ DIR]"
7759 func_munge_path_list ()
7760 {
7761     case x$2 in
7762     x)
7763         ;;
7764     *:)
7765         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7766         ;;
7767     x:*)
7768         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7769         ;;
7770     *::*)
7771         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7772         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7773         ;;
7774     *)
7775         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7776         ;;
7777     esac
7778 }
7779
7780 ac_ext=c
7781 ac_cpp='$CPP $CPPFLAGS'
7782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7786 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7787 # On Suns, sometimes $CPP names a directory.
7788 if test -n "$CPP" && test -d "$CPP"; then
7789   CPP=
7790 fi
7791 if test -z "$CPP"; then
7792   if ${ac_cv_prog_CPP+:} false; then :
7793   $as_echo_n "(cached) " >&6
7794 else
7795       # Double quotes because CPP needs to be expanded
7796     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7797     do
7798       ac_preproc_ok=false
7799 for ac_c_preproc_warn_flag in '' yes
7800 do
7801   # Use a header file that comes with gcc, so configuring glibc
7802   # with a fresh cross-compiler works.
7803   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7804   # <limits.h> exists even on freestanding compilers.
7805   # On the NeXT, cc -E runs the code through the compiler's parser,
7806   # not just through cpp. "Syntax error" is here to catch this case.
7807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h.  */
7809 #ifdef __STDC__
7810 # include <limits.h>
7811 #else
7812 # include <assert.h>
7813 #endif
7814                      Syntax error
7815 _ACEOF
7816 if ac_fn_c_try_cpp "$LINENO"; then :
7817
7818 else
7819   # Broken: fails on valid input.
7820 continue
7821 fi
7822 rm -f conftest.err conftest.i conftest.$ac_ext
7823
7824   # OK, works on sane cases.  Now check whether nonexistent headers
7825   # can be detected and how.
7826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h.  */
7828 #include <ac_nonexistent.h>
7829 _ACEOF
7830 if ac_fn_c_try_cpp "$LINENO"; then :
7831   # Broken: success on invalid input.
7832 continue
7833 else
7834   # Passes both tests.
7835 ac_preproc_ok=:
7836 break
7837 fi
7838 rm -f conftest.err conftest.i conftest.$ac_ext
7839
7840 done
7841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7842 rm -f conftest.i conftest.err conftest.$ac_ext
7843 if $ac_preproc_ok; then :
7844   break
7845 fi
7846
7847     done
7848     ac_cv_prog_CPP=$CPP
7849
7850 fi
7851   CPP=$ac_cv_prog_CPP
7852 else
7853   ac_cv_prog_CPP=$CPP
7854 fi
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7856 $as_echo "$CPP" >&6; }
7857 ac_preproc_ok=false
7858 for ac_c_preproc_warn_flag in '' yes
7859 do
7860   # Use a header file that comes with gcc, so configuring glibc
7861   # with a fresh cross-compiler works.
7862   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7863   # <limits.h> exists even on freestanding compilers.
7864   # On the NeXT, cc -E runs the code through the compiler's parser,
7865   # not just through cpp. "Syntax error" is here to catch this case.
7866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h.  */
7868 #ifdef __STDC__
7869 # include <limits.h>
7870 #else
7871 # include <assert.h>
7872 #endif
7873                      Syntax error
7874 _ACEOF
7875 if ac_fn_c_try_cpp "$LINENO"; then :
7876
7877 else
7878   # Broken: fails on valid input.
7879 continue
7880 fi
7881 rm -f conftest.err conftest.i conftest.$ac_ext
7882
7883   # OK, works on sane cases.  Now check whether nonexistent headers
7884   # can be detected and how.
7885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h.  */
7887 #include <ac_nonexistent.h>
7888 _ACEOF
7889 if ac_fn_c_try_cpp "$LINENO"; then :
7890   # Broken: success on invalid input.
7891 continue
7892 else
7893   # Passes both tests.
7894 ac_preproc_ok=:
7895 break
7896 fi
7897 rm -f conftest.err conftest.i conftest.$ac_ext
7898
7899 done
7900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7901 rm -f conftest.i conftest.err conftest.$ac_ext
7902 if $ac_preproc_ok; then :
7903
7904 else
7905   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7907 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7908 See \`config.log' for more details" "$LINENO" 5; }
7909 fi
7910
7911 ac_ext=c
7912 ac_cpp='$CPP $CPPFLAGS'
7913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7916
7917
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7919 $as_echo_n "checking for ANSI C header files... " >&6; }
7920 if ${ac_cv_header_stdc+:} false; then :
7921   $as_echo_n "(cached) " >&6
7922 else
7923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h.  */
7925 #include <stdlib.h>
7926 #include <stdarg.h>
7927 #include <string.h>
7928 #include <float.h>
7929
7930 int
7931 main ()
7932 {
7933
7934   ;
7935   return 0;
7936 }
7937 _ACEOF
7938 if ac_fn_c_try_compile "$LINENO"; then :
7939   ac_cv_header_stdc=yes
7940 else
7941   ac_cv_header_stdc=no
7942 fi
7943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7944
7945 if test $ac_cv_header_stdc = yes; then
7946   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948 /* end confdefs.h.  */
7949 #include <string.h>
7950
7951 _ACEOF
7952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7953   $EGREP "memchr" >/dev/null 2>&1; then :
7954
7955 else
7956   ac_cv_header_stdc=no
7957 fi
7958 rm -f conftest*
7959
7960 fi
7961
7962 if test $ac_cv_header_stdc = yes; then
7963   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h.  */
7966 #include <stdlib.h>
7967
7968 _ACEOF
7969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7970   $EGREP "free" >/dev/null 2>&1; then :
7971
7972 else
7973   ac_cv_header_stdc=no
7974 fi
7975 rm -f conftest*
7976
7977 fi
7978
7979 if test $ac_cv_header_stdc = yes; then
7980   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7981   if test "$cross_compiling" = yes; then :
7982   :
7983 else
7984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h.  */
7986 #include <ctype.h>
7987 #include <stdlib.h>
7988 #if ((' ' & 0x0FF) == 0x020)
7989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7991 #else
7992 # define ISLOWER(c) \
7993                    (('a' <= (c) && (c) <= 'i') \
7994                      || ('j' <= (c) && (c) <= 'r') \
7995                      || ('s' <= (c) && (c) <= 'z'))
7996 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7997 #endif
7998
7999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8000 int
8001 main ()
8002 {
8003   int i;
8004   for (i = 0; i < 256; i++)
8005     if (XOR (islower (i), ISLOWER (i))
8006         || toupper (i) != TOUPPER (i))
8007       return 2;
8008   return 0;
8009 }
8010 _ACEOF
8011 if ac_fn_c_try_run "$LINENO"; then :
8012
8013 else
8014   ac_cv_header_stdc=no
8015 fi
8016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8017   conftest.$ac_objext conftest.beam conftest.$ac_ext
8018 fi
8019
8020 fi
8021 fi
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8023 $as_echo "$ac_cv_header_stdc" >&6; }
8024 if test $ac_cv_header_stdc = yes; then
8025
8026 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8027
8028 fi
8029
8030 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8031 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8032                   inttypes.h stdint.h unistd.h
8033 do :
8034   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8035 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8036 "
8037 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8038   cat >>confdefs.h <<_ACEOF
8039 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8040 _ACEOF
8041
8042 fi
8043
8044 done
8045
8046
8047 for ac_header in dlfcn.h
8048 do :
8049   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8050 "
8051 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8052   cat >>confdefs.h <<_ACEOF
8053 #define HAVE_DLFCN_H 1
8054 _ACEOF
8055
8056 fi
8057
8058 done
8059
8060
8061
8062
8063
8064 # Set options
8065
8066
8067
8068         enable_dlopen=no
8069
8070
8071
8072             # Check whether --enable-shared was given.
8073 if test "${enable_shared+set}" = set; then :
8074   enableval=$enable_shared; p=${PACKAGE-default}
8075     case $enableval in
8076     yes) enable_shared=yes ;;
8077     no) enable_shared=no ;;
8078     *)
8079       enable_shared=no
8080       # Look at the argument we got.  We use all the common list separators.
8081       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8082       for pkg in $enableval; do
8083         IFS=$lt_save_ifs
8084         if test "X$pkg" = "X$p"; then
8085           enable_shared=yes
8086         fi
8087       done
8088       IFS=$lt_save_ifs
8089       ;;
8090     esac
8091 else
8092   enable_shared=yes
8093 fi
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103   # Check whether --enable-static was given.
8104 if test "${enable_static+set}" = set; then :
8105   enableval=$enable_static; p=${PACKAGE-default}
8106     case $enableval in
8107     yes) enable_static=yes ;;
8108     no) enable_static=no ;;
8109     *)
8110      enable_static=no
8111       # Look at the argument we got.  We use all the common list separators.
8112       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8113       for pkg in $enableval; do
8114         IFS=$lt_save_ifs
8115         if test "X$pkg" = "X$p"; then
8116           enable_static=yes
8117         fi
8118       done
8119       IFS=$lt_save_ifs
8120       ;;
8121     esac
8122 else
8123   enable_static=yes
8124 fi
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135 # Check whether --with-pic was given.
8136 if test "${with_pic+set}" = set; then :
8137   withval=$with_pic; lt_p=${PACKAGE-default}
8138     case $withval in
8139     yes|no) pic_mode=$withval ;;
8140     *)
8141       pic_mode=default
8142       # Look at the argument we got.  We use all the common list separators.
8143       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8144       for lt_pkg in $withval; do
8145         IFS=$lt_save_ifs
8146         if test "X$lt_pkg" = "X$lt_p"; then
8147           pic_mode=yes
8148         fi
8149       done
8150       IFS=$lt_save_ifs
8151       ;;
8152     esac
8153 else
8154   pic_mode=default
8155 fi
8156
8157
8158
8159
8160
8161
8162
8163
8164   # Check whether --enable-fast-install was given.
8165 if test "${enable_fast_install+set}" = set; then :
8166   enableval=$enable_fast_install; p=${PACKAGE-default}
8167     case $enableval in
8168     yes) enable_fast_install=yes ;;
8169     no) enable_fast_install=no ;;
8170     *)
8171       enable_fast_install=no
8172       # Look at the argument we got.  We use all the common list separators.
8173       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8174       for pkg in $enableval; do
8175         IFS=$lt_save_ifs
8176         if test "X$pkg" = "X$p"; then
8177           enable_fast_install=yes
8178         fi
8179       done
8180       IFS=$lt_save_ifs
8181       ;;
8182     esac
8183 else
8184   enable_fast_install=yes
8185 fi
8186
8187
8188
8189
8190
8191
8192
8193
8194   shared_archive_member_spec=
8195 case $host,$enable_shared in
8196 power*-*-aix[5-9]*,yes)
8197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8198 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8199
8200 # Check whether --with-aix-soname was given.
8201 if test "${with_aix_soname+set}" = set; then :
8202   withval=$with_aix_soname; case $withval in
8203     aix|svr4|both)
8204       ;;
8205     *)
8206       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8207       ;;
8208     esac
8209     lt_cv_with_aix_soname=$with_aix_soname
8210 else
8211   if ${lt_cv_with_aix_soname+:} false; then :
8212   $as_echo_n "(cached) " >&6
8213 else
8214   lt_cv_with_aix_soname=aix
8215 fi
8216
8217     with_aix_soname=$lt_cv_with_aix_soname
8218 fi
8219
8220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8221 $as_echo "$with_aix_soname" >&6; }
8222   if test aix != "$with_aix_soname"; then
8223     # For the AIX way of multilib, we name the shared archive member
8224     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8225     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8226     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8227     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8228     if test 64 = "${OBJECT_MODE-32}"; then
8229       shared_archive_member_spec=shr_64
8230     else
8231       shared_archive_member_spec=shr
8232     fi
8233   fi
8234   ;;
8235 *)
8236   with_aix_soname=aix
8237   ;;
8238 esac
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249 # This can be used to rebuild libtool when needed
8250 LIBTOOL_DEPS=$ltmain
8251
8252 # Always use our own libtool.
8253 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284 test -z "$LN_S" && LN_S="ln -s"
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299 if test -n "${ZSH_VERSION+set}"; then
8300    setopt NO_GLOB_SUBST
8301 fi
8302
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8304 $as_echo_n "checking for objdir... " >&6; }
8305 if ${lt_cv_objdir+:} false; then :
8306   $as_echo_n "(cached) " >&6
8307 else
8308   rm -f .libs 2>/dev/null
8309 mkdir .libs 2>/dev/null
8310 if test -d .libs; then
8311   lt_cv_objdir=.libs
8312 else
8313   # MS-DOS does not allow filenames that begin with a dot.
8314   lt_cv_objdir=_libs
8315 fi
8316 rmdir .libs 2>/dev/null
8317 fi
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8319 $as_echo "$lt_cv_objdir" >&6; }
8320 objdir=$lt_cv_objdir
8321
8322
8323
8324
8325
8326 cat >>confdefs.h <<_ACEOF
8327 #define LT_OBJDIR "$lt_cv_objdir/"
8328 _ACEOF
8329
8330
8331
8332
8333 case $host_os in
8334 aix3*)
8335   # AIX sometimes has problems with the GCC collect2 program.  For some
8336   # reason, if we set the COLLECT_NAMES environment variable, the problems
8337   # vanish in a puff of smoke.
8338   if test set != "${COLLECT_NAMES+set}"; then
8339     COLLECT_NAMES=
8340     export COLLECT_NAMES
8341   fi
8342   ;;
8343 esac
8344
8345 # Global variables:
8346 ofile=libtool
8347 can_build_shared=yes
8348
8349 # All known linkers require a '.a' archive for static linking (except MSVC,
8350 # which needs '.lib').
8351 libext=a
8352
8353 with_gnu_ld=$lt_cv_prog_gnu_ld
8354
8355 old_CC=$CC
8356 old_CFLAGS=$CFLAGS
8357
8358 # Set sane defaults for various variables
8359 test -z "$CC" && CC=cc
8360 test -z "$LTCC" && LTCC=$CC
8361 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8362 test -z "$LD" && LD=ld
8363 test -z "$ac_objext" && ac_objext=o
8364
8365 func_cc_basename $compiler
8366 cc_basename=$func_cc_basename_result
8367
8368
8369 # Only perform the check for file, if the check method requires it
8370 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8371 case $deplibs_check_method in
8372 file_magic*)
8373   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8374     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8375 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8376 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8377   $as_echo_n "(cached) " >&6
8378 else
8379   case $MAGIC_CMD in
8380 [\\/*] |  ?:[\\/]*)
8381   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8382   ;;
8383 *)
8384   lt_save_MAGIC_CMD=$MAGIC_CMD
8385   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8386   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8387   for ac_dir in $ac_dummy; do
8388     IFS=$lt_save_ifs
8389     test -z "$ac_dir" && ac_dir=.
8390     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8391       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8392       if test -n "$file_magic_test_file"; then
8393         case $deplibs_check_method in
8394         "file_magic "*)
8395           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8396           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8397           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8398             $EGREP "$file_magic_regex" > /dev/null; then
8399             :
8400           else
8401             cat <<_LT_EOF 1>&2
8402
8403 *** Warning: the command libtool uses to detect shared libraries,
8404 *** $file_magic_cmd, produces output that libtool cannot recognize.
8405 *** The result is that libtool may fail to recognize shared libraries
8406 *** as such.  This will affect the creation of libtool libraries that
8407 *** depend on shared libraries, but programs linked with such libtool
8408 *** libraries will work regardless of this problem.  Nevertheless, you
8409 *** may want to report the problem to your system manager and/or to
8410 *** bug-libtool@gnu.org
8411
8412 _LT_EOF
8413           fi ;;
8414         esac
8415       fi
8416       break
8417     fi
8418   done
8419   IFS=$lt_save_ifs
8420   MAGIC_CMD=$lt_save_MAGIC_CMD
8421   ;;
8422 esac
8423 fi
8424
8425 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8426 if test -n "$MAGIC_CMD"; then
8427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8428 $as_echo "$MAGIC_CMD" >&6; }
8429 else
8430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8431 $as_echo "no" >&6; }
8432 fi
8433
8434
8435
8436
8437
8438 if test -z "$lt_cv_path_MAGIC_CMD"; then
8439   if test -n "$ac_tool_prefix"; then
8440     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8441 $as_echo_n "checking for file... " >&6; }
8442 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8443   $as_echo_n "(cached) " >&6
8444 else
8445   case $MAGIC_CMD in
8446 [\\/*] |  ?:[\\/]*)
8447   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8448   ;;
8449 *)
8450   lt_save_MAGIC_CMD=$MAGIC_CMD
8451   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8452   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8453   for ac_dir in $ac_dummy; do
8454     IFS=$lt_save_ifs
8455     test -z "$ac_dir" && ac_dir=.
8456     if test -f "$ac_dir/file"; then
8457       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8458       if test -n "$file_magic_test_file"; then
8459         case $deplibs_check_method in
8460         "file_magic "*)
8461           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8462           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8463           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8464             $EGREP "$file_magic_regex" > /dev/null; then
8465             :
8466           else
8467             cat <<_LT_EOF 1>&2
8468
8469 *** Warning: the command libtool uses to detect shared libraries,
8470 *** $file_magic_cmd, produces output that libtool cannot recognize.
8471 *** The result is that libtool may fail to recognize shared libraries
8472 *** as such.  This will affect the creation of libtool libraries that
8473 *** depend on shared libraries, but programs linked with such libtool
8474 *** libraries will work regardless of this problem.  Nevertheless, you
8475 *** may want to report the problem to your system manager and/or to
8476 *** bug-libtool@gnu.org
8477
8478 _LT_EOF
8479           fi ;;
8480         esac
8481       fi
8482       break
8483     fi
8484   done
8485   IFS=$lt_save_ifs
8486   MAGIC_CMD=$lt_save_MAGIC_CMD
8487   ;;
8488 esac
8489 fi
8490
8491 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8492 if test -n "$MAGIC_CMD"; then
8493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8494 $as_echo "$MAGIC_CMD" >&6; }
8495 else
8496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497 $as_echo "no" >&6; }
8498 fi
8499
8500
8501   else
8502     MAGIC_CMD=:
8503   fi
8504 fi
8505
8506   fi
8507   ;;
8508 esac
8509
8510 # Use C for the default configuration in the libtool script
8511
8512 lt_save_CC=$CC
8513 ac_ext=c
8514 ac_cpp='$CPP $CPPFLAGS'
8515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8518
8519
8520 # Source file extension for C test sources.
8521 ac_ext=c
8522
8523 # Object file extension for compiled C test sources.
8524 objext=o
8525 objext=$objext
8526
8527 # Code to be used in simple compile tests
8528 lt_simple_compile_test_code="int some_variable = 0;"
8529
8530 # Code to be used in simple link tests
8531 lt_simple_link_test_code='int main(){return(0);}'
8532
8533
8534
8535
8536
8537
8538
8539 # If no C compiler was specified, use CC.
8540 LTCC=${LTCC-"$CC"}
8541
8542 # If no C compiler flags were specified, use CFLAGS.
8543 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8544
8545 # Allow CC to be a program name with arguments.
8546 compiler=$CC
8547
8548 # Save the default compiler, since it gets overwritten when the other
8549 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8550 compiler_DEFAULT=$CC
8551
8552 # save warnings/boilerplate of simple test code
8553 ac_outfile=conftest.$ac_objext
8554 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8555 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8556 _lt_compiler_boilerplate=`cat conftest.err`
8557 $RM conftest*
8558
8559 ac_outfile=conftest.$ac_objext
8560 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8561 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8562 _lt_linker_boilerplate=`cat conftest.err`
8563 $RM -r conftest*
8564
8565
8566 ## CAVEAT EMPTOR:
8567 ## There is no encapsulation within the following macros, do not change
8568 ## the running order or otherwise move them around unless you know exactly
8569 ## what you are doing...
8570 if test -n "$compiler"; then
8571
8572 lt_prog_compiler_no_builtin_flag=
8573
8574 if test yes = "$GCC"; then
8575   case $cc_basename in
8576   nvcc*)
8577     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8578   *)
8579     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8580   esac
8581
8582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8583 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8584 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8585   $as_echo_n "(cached) " >&6
8586 else
8587   lt_cv_prog_compiler_rtti_exceptions=no
8588    ac_outfile=conftest.$ac_objext
8589    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8590    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8591    # Insert the option either (1) after the last *FLAGS variable, or
8592    # (2) before a word containing "conftest.", or (3) at the end.
8593    # Note that $ac_compile itself does not contain backslashes and begins
8594    # with a dollar sign (not a hyphen), so the echo should work correctly.
8595    # The option is referenced via a variable to avoid confusing sed.
8596    lt_compile=`echo "$ac_compile" | $SED \
8597    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8598    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8599    -e 's:$: $lt_compiler_flag:'`
8600    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8601    (eval "$lt_compile" 2>conftest.err)
8602    ac_status=$?
8603    cat conftest.err >&5
8604    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605    if (exit $ac_status) && test -s "$ac_outfile"; then
8606      # The compiler can only warn and ignore the option if not recognized
8607      # So say no if there are warnings other than the usual output.
8608      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8609      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8610      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8611        lt_cv_prog_compiler_rtti_exceptions=yes
8612      fi
8613    fi
8614    $RM conftest*
8615
8616 fi
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8618 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8619
8620 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8621     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8622 else
8623     :
8624 fi
8625
8626 fi
8627
8628
8629
8630
8631
8632
8633   lt_prog_compiler_wl=
8634 lt_prog_compiler_pic=
8635 lt_prog_compiler_static=
8636
8637
8638   if test yes = "$GCC"; then
8639     lt_prog_compiler_wl='-Wl,'
8640     lt_prog_compiler_static='-static'
8641
8642     case $host_os in
8643       aix*)
8644       # All AIX code is PIC.
8645       if test ia64 = "$host_cpu"; then
8646         # AIX 5 now supports IA64 processor
8647         lt_prog_compiler_static='-Bstatic'
8648       fi
8649       lt_prog_compiler_pic='-fPIC'
8650       ;;
8651
8652     amigaos*)
8653       case $host_cpu in
8654       powerpc)
8655             # see comment about AmigaOS4 .so support
8656             lt_prog_compiler_pic='-fPIC'
8657         ;;
8658       m68k)
8659             # FIXME: we need at least 68020 code to build shared libraries, but
8660             # adding the '-m68020' flag to GCC prevents building anything better,
8661             # like '-m68040'.
8662             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8663         ;;
8664       esac
8665       ;;
8666
8667     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8668       # PIC is the default for these OSes.
8669       ;;
8670
8671     mingw* | cygwin* | pw32* | os2* | cegcc*)
8672       # This hack is so that the source file can tell whether it is being
8673       # built for inclusion in a dll (and should export symbols for example).
8674       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8675       # (--disable-auto-import) libraries
8676       lt_prog_compiler_pic='-DDLL_EXPORT'
8677       case $host_os in
8678       os2*)
8679         lt_prog_compiler_static='$wl-static'
8680         ;;
8681       esac
8682       ;;
8683
8684     darwin* | rhapsody*)
8685       # PIC is the default on this platform
8686       # Common symbols not allowed in MH_DYLIB files
8687       lt_prog_compiler_pic='-fno-common'
8688       ;;
8689
8690     haiku*)
8691       # PIC is the default for Haiku.
8692       # The "-static" flag exists, but is broken.
8693       lt_prog_compiler_static=
8694       ;;
8695
8696     hpux*)
8697       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8698       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8699       # sets the default TLS model and affects inlining.
8700       case $host_cpu in
8701       hppa*64*)
8702         # +Z the default
8703         ;;
8704       *)
8705         lt_prog_compiler_pic='-fPIC'
8706         ;;
8707       esac
8708       ;;
8709
8710     interix[3-9]*)
8711       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8712       # Instead, we relocate shared libraries at runtime.
8713       ;;
8714
8715     msdosdjgpp*)
8716       # Just because we use GCC doesn't mean we suddenly get shared libraries
8717       # on systems that don't support them.
8718       lt_prog_compiler_can_build_shared=no
8719       enable_shared=no
8720       ;;
8721
8722     *nto* | *qnx*)
8723       # QNX uses GNU C++, but need to define -shared option too, otherwise
8724       # it will coredump.
8725       lt_prog_compiler_pic='-fPIC -shared'
8726       ;;
8727
8728     sysv4*MP*)
8729       if test -d /usr/nec; then
8730         lt_prog_compiler_pic=-Kconform_pic
8731       fi
8732       ;;
8733
8734     *)
8735       lt_prog_compiler_pic='-fPIC'
8736       ;;
8737     esac
8738
8739     case $cc_basename in
8740     nvcc*) # Cuda Compiler Driver 2.2
8741       lt_prog_compiler_wl='-Xlinker '
8742       if test -n "$lt_prog_compiler_pic"; then
8743         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8744       fi
8745       ;;
8746     esac
8747   else
8748     # PORTME Check for flag to pass linker flags through the system compiler.
8749     case $host_os in
8750     aix*)
8751       lt_prog_compiler_wl='-Wl,'
8752       if test ia64 = "$host_cpu"; then
8753         # AIX 5 now supports IA64 processor
8754         lt_prog_compiler_static='-Bstatic'
8755       else
8756         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8757       fi
8758       ;;
8759
8760     darwin* | rhapsody*)
8761       # PIC is the default on this platform
8762       # Common symbols not allowed in MH_DYLIB files
8763       lt_prog_compiler_pic='-fno-common'
8764       case $cc_basename in
8765       nagfor*)
8766         # NAG Fortran compiler
8767         lt_prog_compiler_wl='-Wl,-Wl,,'
8768         lt_prog_compiler_pic='-PIC'
8769         lt_prog_compiler_static='-Bstatic'
8770         ;;
8771       esac
8772       ;;
8773
8774     mingw* | cygwin* | pw32* | os2* | cegcc*)
8775       # This hack is so that the source file can tell whether it is being
8776       # built for inclusion in a dll (and should export symbols for example).
8777       lt_prog_compiler_pic='-DDLL_EXPORT'
8778       case $host_os in
8779       os2*)
8780         lt_prog_compiler_static='$wl-static'
8781         ;;
8782       esac
8783       ;;
8784
8785     hpux9* | hpux10* | hpux11*)
8786       lt_prog_compiler_wl='-Wl,'
8787       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8788       # not for PA HP-UX.
8789       case $host_cpu in
8790       hppa*64*|ia64*)
8791         # +Z the default
8792         ;;
8793       *)
8794         lt_prog_compiler_pic='+Z'
8795         ;;
8796       esac
8797       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8798       lt_prog_compiler_static='$wl-a ${wl}archive'
8799       ;;
8800
8801     irix5* | irix6* | nonstopux*)
8802       lt_prog_compiler_wl='-Wl,'
8803       # PIC (with -KPIC) is the default.
8804       lt_prog_compiler_static='-non_shared'
8805       ;;
8806
8807     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8808       case $cc_basename in
8809       # old Intel for x86_64, which still supported -KPIC.
8810       ecc*)
8811         lt_prog_compiler_wl='-Wl,'
8812         lt_prog_compiler_pic='-KPIC'
8813         lt_prog_compiler_static='-static'
8814         ;;
8815       # icc used to be incompatible with GCC.
8816       # ICC 10 doesn't accept -KPIC any more.
8817       icc* | ifort*)
8818         lt_prog_compiler_wl='-Wl,'
8819         lt_prog_compiler_pic='-fPIC'
8820         lt_prog_compiler_static='-static'
8821         ;;
8822       # Lahey Fortran 8.1.
8823       lf95*)
8824         lt_prog_compiler_wl='-Wl,'
8825         lt_prog_compiler_pic='--shared'
8826         lt_prog_compiler_static='--static'
8827         ;;
8828       nagfor*)
8829         # NAG Fortran compiler
8830         lt_prog_compiler_wl='-Wl,-Wl,,'
8831         lt_prog_compiler_pic='-PIC'
8832         lt_prog_compiler_static='-Bstatic'
8833         ;;
8834       tcc*)
8835         # Fabrice Bellard et al's Tiny C Compiler
8836         lt_prog_compiler_wl='-Wl,'
8837         lt_prog_compiler_pic='-fPIC'
8838         lt_prog_compiler_static='-static'
8839         ;;
8840       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8841         # Portland Group compilers (*not* the Pentium gcc compiler,
8842         # which looks to be a dead project)
8843         lt_prog_compiler_wl='-Wl,'
8844         lt_prog_compiler_pic='-fpic'
8845         lt_prog_compiler_static='-Bstatic'
8846         ;;
8847       ccc*)
8848         lt_prog_compiler_wl='-Wl,'
8849         # All Alpha code is PIC.
8850         lt_prog_compiler_static='-non_shared'
8851         ;;
8852       xl* | bgxl* | bgf* | mpixl*)
8853         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8854         lt_prog_compiler_wl='-Wl,'
8855         lt_prog_compiler_pic='-qpic'
8856         lt_prog_compiler_static='-qstaticlink'
8857         ;;
8858       *)
8859         case `$CC -V 2>&1 | sed 5q` in
8860         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8861           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8862           lt_prog_compiler_pic='-KPIC'
8863           lt_prog_compiler_static='-Bstatic'
8864           lt_prog_compiler_wl=''
8865           ;;
8866         *Sun\ F* | *Sun*Fortran*)
8867           lt_prog_compiler_pic='-KPIC'
8868           lt_prog_compiler_static='-Bstatic'
8869           lt_prog_compiler_wl='-Qoption ld '
8870           ;;
8871         *Sun\ C*)
8872           # Sun C 5.9
8873           lt_prog_compiler_pic='-KPIC'
8874           lt_prog_compiler_static='-Bstatic'
8875           lt_prog_compiler_wl='-Wl,'
8876           ;;
8877         *Intel*\ [CF]*Compiler*)
8878           lt_prog_compiler_wl='-Wl,'
8879           lt_prog_compiler_pic='-fPIC'
8880           lt_prog_compiler_static='-static'
8881           ;;
8882         *Portland\ Group*)
8883           lt_prog_compiler_wl='-Wl,'
8884           lt_prog_compiler_pic='-fpic'
8885           lt_prog_compiler_static='-Bstatic'
8886           ;;
8887         esac
8888         ;;
8889       esac
8890       ;;
8891
8892     newsos6)
8893       lt_prog_compiler_pic='-KPIC'
8894       lt_prog_compiler_static='-Bstatic'
8895       ;;
8896
8897     *nto* | *qnx*)
8898       # QNX uses GNU C++, but need to define -shared option too, otherwise
8899       # it will coredump.
8900       lt_prog_compiler_pic='-fPIC -shared'
8901       ;;
8902
8903     osf3* | osf4* | osf5*)
8904       lt_prog_compiler_wl='-Wl,'
8905       # All OSF/1 code is PIC.
8906       lt_prog_compiler_static='-non_shared'
8907       ;;
8908
8909     rdos*)
8910       lt_prog_compiler_static='-non_shared'
8911       ;;
8912
8913     solaris*)
8914       lt_prog_compiler_pic='-KPIC'
8915       lt_prog_compiler_static='-Bstatic'
8916       case $cc_basename in
8917       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8918         lt_prog_compiler_wl='-Qoption ld ';;
8919       *)
8920         lt_prog_compiler_wl='-Wl,';;
8921       esac
8922       ;;
8923
8924     sunos4*)
8925       lt_prog_compiler_wl='-Qoption ld '
8926       lt_prog_compiler_pic='-PIC'
8927       lt_prog_compiler_static='-Bstatic'
8928       ;;
8929
8930     sysv4 | sysv4.2uw2* | sysv4.3*)
8931       lt_prog_compiler_wl='-Wl,'
8932       lt_prog_compiler_pic='-KPIC'
8933       lt_prog_compiler_static='-Bstatic'
8934       ;;
8935
8936     sysv4*MP*)
8937       if test -d /usr/nec; then
8938         lt_prog_compiler_pic='-Kconform_pic'
8939         lt_prog_compiler_static='-Bstatic'
8940       fi
8941       ;;
8942
8943     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8944       lt_prog_compiler_wl='-Wl,'
8945       lt_prog_compiler_pic='-KPIC'
8946       lt_prog_compiler_static='-Bstatic'
8947       ;;
8948
8949     unicos*)
8950       lt_prog_compiler_wl='-Wl,'
8951       lt_prog_compiler_can_build_shared=no
8952       ;;
8953
8954     uts4*)
8955       lt_prog_compiler_pic='-pic'
8956       lt_prog_compiler_static='-Bstatic'
8957       ;;
8958
8959     *)
8960       lt_prog_compiler_can_build_shared=no
8961       ;;
8962     esac
8963   fi
8964
8965 case $host_os in
8966   # For platforms that do not support PIC, -DPIC is meaningless:
8967   *djgpp*)
8968     lt_prog_compiler_pic=
8969     ;;
8970   *)
8971     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8972     ;;
8973 esac
8974
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8976 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8977 if ${lt_cv_prog_compiler_pic+:} false; then :
8978   $as_echo_n "(cached) " >&6
8979 else
8980   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8981 fi
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8983 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8984 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8985
8986 #
8987 # Check to make sure the PIC flag actually works.
8988 #
8989 if test -n "$lt_prog_compiler_pic"; then
8990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8991 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8992 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8993   $as_echo_n "(cached) " >&6
8994 else
8995   lt_cv_prog_compiler_pic_works=no
8996    ac_outfile=conftest.$ac_objext
8997    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8998    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8999    # Insert the option either (1) after the last *FLAGS variable, or
9000    # (2) before a word containing "conftest.", or (3) at the end.
9001    # Note that $ac_compile itself does not contain backslashes and begins
9002    # with a dollar sign (not a hyphen), so the echo should work correctly.
9003    # The option is referenced via a variable to avoid confusing sed.
9004    lt_compile=`echo "$ac_compile" | $SED \
9005    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9006    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9007    -e 's:$: $lt_compiler_flag:'`
9008    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9009    (eval "$lt_compile" 2>conftest.err)
9010    ac_status=$?
9011    cat conftest.err >&5
9012    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013    if (exit $ac_status) && test -s "$ac_outfile"; then
9014      # The compiler can only warn and ignore the option if not recognized
9015      # So say no if there are warnings other than the usual output.
9016      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9017      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9018      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9019        lt_cv_prog_compiler_pic_works=yes
9020      fi
9021    fi
9022    $RM conftest*
9023
9024 fi
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9026 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9027
9028 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9029     case $lt_prog_compiler_pic in
9030      "" | " "*) ;;
9031      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9032      esac
9033 else
9034     lt_prog_compiler_pic=
9035      lt_prog_compiler_can_build_shared=no
9036 fi
9037
9038 fi
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050 #
9051 # Check to make sure the static flag actually works.
9052 #
9053 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9055 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9056 if ${lt_cv_prog_compiler_static_works+:} false; then :
9057   $as_echo_n "(cached) " >&6
9058 else
9059   lt_cv_prog_compiler_static_works=no
9060    save_LDFLAGS=$LDFLAGS
9061    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9062    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9063    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9064      # The linker can only warn and ignore the option if not recognized
9065      # So say no if there are warnings
9066      if test -s conftest.err; then
9067        # Append any errors to the config.log.
9068        cat conftest.err 1>&5
9069        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9070        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9071        if diff conftest.exp conftest.er2 >/dev/null; then
9072          lt_cv_prog_compiler_static_works=yes
9073        fi
9074      else
9075        lt_cv_prog_compiler_static_works=yes
9076      fi
9077    fi
9078    $RM -r conftest*
9079    LDFLAGS=$save_LDFLAGS
9080
9081 fi
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9083 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9084
9085 if test yes = "$lt_cv_prog_compiler_static_works"; then
9086     :
9087 else
9088     lt_prog_compiler_static=
9089 fi
9090
9091
9092
9093
9094
9095
9096
9097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9098 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9099 if ${lt_cv_prog_compiler_c_o+:} false; then :
9100   $as_echo_n "(cached) " >&6
9101 else
9102   lt_cv_prog_compiler_c_o=no
9103    $RM -r conftest 2>/dev/null
9104    mkdir conftest
9105    cd conftest
9106    mkdir out
9107    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9108
9109    lt_compiler_flag="-o out/conftest2.$ac_objext"
9110    # Insert the option either (1) after the last *FLAGS variable, or
9111    # (2) before a word containing "conftest.", or (3) at the end.
9112    # Note that $ac_compile itself does not contain backslashes and begins
9113    # with a dollar sign (not a hyphen), so the echo should work correctly.
9114    lt_compile=`echo "$ac_compile" | $SED \
9115    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9116    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9117    -e 's:$: $lt_compiler_flag:'`
9118    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9119    (eval "$lt_compile" 2>out/conftest.err)
9120    ac_status=$?
9121    cat out/conftest.err >&5
9122    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9124    then
9125      # The compiler can only warn and ignore the option if not recognized
9126      # So say no if there are warnings
9127      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9128      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9129      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9130        lt_cv_prog_compiler_c_o=yes
9131      fi
9132    fi
9133    chmod u+w . 2>&5
9134    $RM conftest*
9135    # SGI C++ compiler will create directory out/ii_files/ for
9136    # template instantiation
9137    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9138    $RM out/* && rmdir out
9139    cd ..
9140    $RM -r conftest
9141    $RM conftest*
9142
9143 fi
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9145 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9146
9147
9148
9149
9150
9151
9152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9153 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9154 if ${lt_cv_prog_compiler_c_o+:} false; then :
9155   $as_echo_n "(cached) " >&6
9156 else
9157   lt_cv_prog_compiler_c_o=no
9158    $RM -r conftest 2>/dev/null
9159    mkdir conftest
9160    cd conftest
9161    mkdir out
9162    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9163
9164    lt_compiler_flag="-o out/conftest2.$ac_objext"
9165    # Insert the option either (1) after the last *FLAGS variable, or
9166    # (2) before a word containing "conftest.", or (3) at the end.
9167    # Note that $ac_compile itself does not contain backslashes and begins
9168    # with a dollar sign (not a hyphen), so the echo should work correctly.
9169    lt_compile=`echo "$ac_compile" | $SED \
9170    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9171    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9172    -e 's:$: $lt_compiler_flag:'`
9173    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9174    (eval "$lt_compile" 2>out/conftest.err)
9175    ac_status=$?
9176    cat out/conftest.err >&5
9177    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9179    then
9180      # The compiler can only warn and ignore the option if not recognized
9181      # So say no if there are warnings
9182      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9183      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9184      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9185        lt_cv_prog_compiler_c_o=yes
9186      fi
9187    fi
9188    chmod u+w . 2>&5
9189    $RM conftest*
9190    # SGI C++ compiler will create directory out/ii_files/ for
9191    # template instantiation
9192    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9193    $RM out/* && rmdir out
9194    cd ..
9195    $RM -r conftest
9196    $RM conftest*
9197
9198 fi
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9200 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9201
9202
9203
9204
9205 hard_links=nottested
9206 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9207   # do not overwrite the value of need_locks provided by the user
9208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9209 $as_echo_n "checking if we can lock with hard links... " >&6; }
9210   hard_links=yes
9211   $RM conftest*
9212   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9213   touch conftest.a
9214   ln conftest.a conftest.b 2>&5 || hard_links=no
9215   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9217 $as_echo "$hard_links" >&6; }
9218   if test no = "$hard_links"; then
9219     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9220 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9221     need_locks=warn
9222   fi
9223 else
9224   need_locks=no
9225 fi
9226
9227
9228
9229
9230
9231
9232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9233 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9234
9235   runpath_var=
9236   allow_undefined_flag=
9237   always_export_symbols=no
9238   archive_cmds=
9239   archive_expsym_cmds=
9240   compiler_needs_object=no
9241   enable_shared_with_static_runtimes=no
9242   export_dynamic_flag_spec=
9243   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9244   hardcode_automatic=no
9245   hardcode_direct=no
9246   hardcode_direct_absolute=no
9247   hardcode_libdir_flag_spec=
9248   hardcode_libdir_separator=
9249   hardcode_minus_L=no
9250   hardcode_shlibpath_var=unsupported
9251   inherit_rpath=no
9252   link_all_deplibs=unknown
9253   module_cmds=
9254   module_expsym_cmds=
9255   old_archive_from_new_cmds=
9256   old_archive_from_expsyms_cmds=
9257   thread_safe_flag_spec=
9258   whole_archive_flag_spec=
9259   # include_expsyms should be a list of space-separated symbols to be *always*
9260   # included in the symbol list
9261   include_expsyms=
9262   # exclude_expsyms can be an extended regexp of symbols to exclude
9263   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9264   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9265   # as well as any symbol that contains 'd'.
9266   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9267   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9268   # platforms (ab)use it in PIC code, but their linkers get confused if
9269   # the symbol is explicitly referenced.  Since portable code cannot
9270   # rely on this symbol name, it's probably fine to never include it in
9271   # preloaded symbol tables.
9272   # Exclude shared library initialization/finalization symbols.
9273   extract_expsyms_cmds=
9274
9275   case $host_os in
9276   cygwin* | mingw* | pw32* | cegcc*)
9277     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9278     # When not using gcc, we currently assume that we are using
9279     # Microsoft Visual C++.
9280     if test yes != "$GCC"; then
9281       with_gnu_ld=no
9282     fi
9283     ;;
9284   interix*)
9285     # we just hope/assume this is gcc and not c89 (= MSVC++)
9286     with_gnu_ld=yes
9287     ;;
9288   openbsd* | bitrig*)
9289     with_gnu_ld=no
9290     ;;
9291   linux* | k*bsd*-gnu | gnu*)
9292     link_all_deplibs=no
9293     ;;
9294   esac
9295
9296   ld_shlibs=yes
9297
9298   # On some targets, GNU ld is compatible enough with the native linker
9299   # that we're better off using the native interface for both.
9300   lt_use_gnu_ld_interface=no
9301   if test yes = "$with_gnu_ld"; then
9302     case $host_os in
9303       aix*)
9304         # The AIX port of GNU ld has always aspired to compatibility
9305         # with the native linker.  However, as the warning in the GNU ld
9306         # block says, versions before 2.19.5* couldn't really create working
9307         # shared libraries, regardless of the interface used.
9308         case `$LD -v 2>&1` in
9309           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9310           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9311           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9312           *)
9313             lt_use_gnu_ld_interface=yes
9314             ;;
9315         esac
9316         ;;
9317       *)
9318         lt_use_gnu_ld_interface=yes
9319         ;;
9320     esac
9321   fi
9322
9323   if test yes = "$lt_use_gnu_ld_interface"; then
9324     # If archive_cmds runs LD, not CC, wlarc should be empty
9325     wlarc='$wl'
9326
9327     # Set some defaults for GNU ld with shared library support. These
9328     # are reset later if shared libraries are not supported. Putting them
9329     # here allows them to be overridden if necessary.
9330     runpath_var=LD_RUN_PATH
9331     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9332     export_dynamic_flag_spec='$wl--export-dynamic'
9333     # ancient GNU ld didn't support --whole-archive et. al.
9334     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9335       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9336     else
9337       whole_archive_flag_spec=
9338     fi
9339     supports_anon_versioning=no
9340     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9341       *GNU\ gold*) supports_anon_versioning=yes ;;
9342       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9343       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9344       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9345       *\ 2.11.*) ;; # other 2.11 versions
9346       *) supports_anon_versioning=yes ;;
9347     esac
9348
9349     # See if GNU ld supports shared libraries.
9350     case $host_os in
9351     aix[3-9]*)
9352       # On AIX/PPC, the GNU linker is very broken
9353       if test ia64 != "$host_cpu"; then
9354         ld_shlibs=no
9355         cat <<_LT_EOF 1>&2
9356
9357 *** Warning: the GNU linker, at least up to release 2.19, is reported
9358 *** to be unable to reliably create shared libraries on AIX.
9359 *** Therefore, libtool is disabling shared libraries support.  If you
9360 *** really care for shared libraries, you may want to install binutils
9361 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9362 *** You will then need to restart the configuration process.
9363
9364 _LT_EOF
9365       fi
9366       ;;
9367
9368     amigaos*)
9369       case $host_cpu in
9370       powerpc)
9371             # see comment about AmigaOS4 .so support
9372             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9373             archive_expsym_cmds=''
9374         ;;
9375       m68k)
9376             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)'
9377             hardcode_libdir_flag_spec='-L$libdir'
9378             hardcode_minus_L=yes
9379         ;;
9380       esac
9381       ;;
9382
9383     beos*)
9384       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9385         allow_undefined_flag=unsupported
9386         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9387         # support --undefined.  This deserves some investigation.  FIXME
9388         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9389       else
9390         ld_shlibs=no
9391       fi
9392       ;;
9393
9394     cygwin* | mingw* | pw32* | cegcc*)
9395       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9396       # as there is no search path for DLLs.
9397       hardcode_libdir_flag_spec='-L$libdir'
9398       export_dynamic_flag_spec='$wl--export-all-symbols'
9399       allow_undefined_flag=unsupported
9400       always_export_symbols=no
9401       enable_shared_with_static_runtimes=yes
9402       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'
9403       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9404
9405       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9406         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9407         # If the export-symbols file already is a .def file, use it as
9408         # is; otherwise, prepend EXPORTS...
9409         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9410           cp $export_symbols $output_objdir/$soname.def;
9411         else
9412           echo EXPORTS > $output_objdir/$soname.def;
9413           cat $export_symbols >> $output_objdir/$soname.def;
9414         fi~
9415         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9416       else
9417         ld_shlibs=no
9418       fi
9419       ;;
9420
9421     haiku*)
9422       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9423       link_all_deplibs=yes
9424       ;;
9425
9426     os2*)
9427       hardcode_libdir_flag_spec='-L$libdir'
9428       hardcode_minus_L=yes
9429       allow_undefined_flag=unsupported
9430       shrext_cmds=.dll
9431       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9432         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9433         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9434         $ECHO EXPORTS >> $output_objdir/$libname.def~
9435         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9436         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9437         emximp -o $lib $output_objdir/$libname.def'
9438       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9439         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9440         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9441         $ECHO EXPORTS >> $output_objdir/$libname.def~
9442         prefix_cmds="$SED"~
9443         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9444           prefix_cmds="$prefix_cmds -e 1d";
9445         fi~
9446         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9447         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9448         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9449         emximp -o $lib $output_objdir/$libname.def'
9450       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9451       enable_shared_with_static_runtimes=yes
9452       ;;
9453
9454     interix[3-9]*)
9455       hardcode_direct=no
9456       hardcode_shlibpath_var=no
9457       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9458       export_dynamic_flag_spec='$wl-E'
9459       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9460       # Instead, shared libraries are loaded at an image base (0x10000000 by
9461       # default) and relocated if they conflict, which is a slow very memory
9462       # consuming and fragmenting process.  To avoid this, we pick a random,
9463       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9464       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9465       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9466       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'
9467       ;;
9468
9469     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9470       tmp_diet=no
9471       if test linux-dietlibc = "$host_os"; then
9472         case $cc_basename in
9473           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9474         esac
9475       fi
9476       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9477          && test no = "$tmp_diet"
9478       then
9479         tmp_addflag=' $pic_flag'
9480         tmp_sharedflag='-shared'
9481         case $cc_basename,$host_cpu in
9482         pgcc*)                          # Portland Group C compiler
9483           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'
9484           tmp_addflag=' $pic_flag'
9485           ;;
9486         pgf77* | pgf90* | pgf95* | pgfortran*)
9487                                         # Portland Group f77 and f90 compilers
9488           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'
9489           tmp_addflag=' $pic_flag -Mnomain' ;;
9490         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9491           tmp_addflag=' -i_dynamic' ;;
9492         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9493           tmp_addflag=' -i_dynamic -nofor_main' ;;
9494         ifc* | ifort*)                  # Intel Fortran compiler
9495           tmp_addflag=' -nofor_main' ;;
9496         lf95*)                          # Lahey Fortran 8.1
9497           whole_archive_flag_spec=
9498           tmp_sharedflag='--shared' ;;
9499         nagfor*)                        # NAGFOR 5.3
9500           tmp_sharedflag='-Wl,-shared' ;;
9501         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9502           tmp_sharedflag='-qmkshrobj'
9503           tmp_addflag= ;;
9504         nvcc*)  # Cuda Compiler Driver 2.2
9505           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'
9506           compiler_needs_object=yes
9507           ;;
9508         esac
9509         case `$CC -V 2>&1 | sed 5q` in
9510         *Sun\ C*)                       # Sun C 5.9
9511           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'
9512           compiler_needs_object=yes
9513           tmp_sharedflag='-G' ;;
9514         *Sun\ F*)                       # Sun Fortran 8.3
9515           tmp_sharedflag='-G' ;;
9516         esac
9517         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9518
9519         if test yes = "$supports_anon_versioning"; then
9520           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9521             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9522             echo "local: *; };" >> $output_objdir/$libname.ver~
9523             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9524         fi
9525
9526         case $cc_basename in
9527         tcc*)
9528           export_dynamic_flag_spec='-rdynamic'
9529           ;;
9530         xlf* | bgf* | bgxlf* | mpixlf*)
9531           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9532           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9533           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9534           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9535           if test yes = "$supports_anon_versioning"; then
9536             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9537               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9538               echo "local: *; };" >> $output_objdir/$libname.ver~
9539               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9540           fi
9541           ;;
9542         esac
9543       else
9544         ld_shlibs=no
9545       fi
9546       ;;
9547
9548     netbsd* | netbsdelf*-gnu)
9549       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9550         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9551         wlarc=
9552       else
9553         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9554         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9555       fi
9556       ;;
9557
9558     solaris*)
9559       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9560         ld_shlibs=no
9561         cat <<_LT_EOF 1>&2
9562
9563 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9564 *** create shared libraries on Solaris systems.  Therefore, libtool
9565 *** is disabling shared libraries support.  We urge you to upgrade GNU
9566 *** binutils to release 2.9.1 or newer.  Another option is to modify
9567 *** your PATH or compiler configuration so that the native linker is
9568 *** used, and then restart.
9569
9570 _LT_EOF
9571       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9572         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9573         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9574       else
9575         ld_shlibs=no
9576       fi
9577       ;;
9578
9579     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9580       case `$LD -v 2>&1` in
9581         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9582         ld_shlibs=no
9583         cat <<_LT_EOF 1>&2
9584
9585 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9586 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9587 *** is disabling shared libraries support.  We urge you to upgrade GNU
9588 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9589 *** your PATH or compiler configuration so that the native linker is
9590 *** used, and then restart.
9591
9592 _LT_EOF
9593         ;;
9594         *)
9595           # For security reasons, it is highly recommended that you always
9596           # use absolute paths for naming shared libraries, and exclude the
9597           # DT_RUNPATH tag from executables and libraries.  But doing so
9598           # requires that you compile everything twice, which is a pain.
9599           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9600             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9601             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9602             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9603           else
9604             ld_shlibs=no
9605           fi
9606         ;;
9607       esac
9608       ;;
9609
9610     sunos4*)
9611       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9612       wlarc=
9613       hardcode_direct=yes
9614       hardcode_shlibpath_var=no
9615       ;;
9616
9617     *)
9618       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9619         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9620         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9621       else
9622         ld_shlibs=no
9623       fi
9624       ;;
9625     esac
9626
9627     if test no = "$ld_shlibs"; then
9628       runpath_var=
9629       hardcode_libdir_flag_spec=
9630       export_dynamic_flag_spec=
9631       whole_archive_flag_spec=
9632     fi
9633   else
9634     # PORTME fill in a description of your system's linker (not GNU ld)
9635     case $host_os in
9636     aix3*)
9637       allow_undefined_flag=unsupported
9638       always_export_symbols=yes
9639       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'
9640       # Note: this linker hardcodes the directories in LIBPATH if there
9641       # are no directories specified by -L.
9642       hardcode_minus_L=yes
9643       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9644         # Neither direct hardcoding nor static linking is supported with a
9645         # broken collect2.
9646         hardcode_direct=unsupported
9647       fi
9648       ;;
9649
9650     aix[4-9]*)
9651       if test ia64 = "$host_cpu"; then
9652         # On IA64, the linker does run time linking by default, so we don't
9653         # have to do anything special.
9654         aix_use_runtimelinking=no
9655         exp_sym_flag='-Bexport'
9656         no_entry_flag=
9657       else
9658         # If we're using GNU nm, then we don't want the "-C" option.
9659         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9660         # Without the "-l" option, or with the "-B" option, AIX nm treats
9661         # weak defined symbols like other global defined symbols, whereas
9662         # GNU nm marks them as "W".
9663         # While the 'weak' keyword is ignored in the Export File, we need
9664         # it in the Import File for the 'aix-soname' feature, so we have
9665         # to replace the "-B" option with "-P" for AIX nm.
9666         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9667           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9668         else
9669           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9670         fi
9671         aix_use_runtimelinking=no
9672
9673         # Test if we are trying to use run time linking or normal
9674         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9675         # have runtime linking enabled, and use it for executables.
9676         # For shared libraries, we enable/disable runtime linking
9677         # depending on the kind of the shared library created -
9678         # when "with_aix_soname,aix_use_runtimelinking" is:
9679         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9680         # "aix,yes"  lib.so          shared, rtl:yes, for executables
9681         #            lib.a           static archive
9682         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9683         #            lib.a(lib.so.V) shared, rtl:no,  for executables
9684         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9685         #            lib.a(lib.so.V) shared, rtl:no
9686         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9687         #            lib.a           static archive
9688         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9689           for ld_flag in $LDFLAGS; do
9690           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9691             aix_use_runtimelinking=yes
9692             break
9693           fi
9694           done
9695           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9696             # With aix-soname=svr4, we create the lib.so.V shared archives only,
9697             # so we don't have lib.a shared libs to link our executables.
9698             # We have to force runtime linking in this case.
9699             aix_use_runtimelinking=yes
9700             LDFLAGS="$LDFLAGS -Wl,-brtl"
9701           fi
9702           ;;
9703         esac
9704
9705         exp_sym_flag='-bexport'
9706         no_entry_flag='-bnoentry'
9707       fi
9708
9709       # When large executables or shared objects are built, AIX ld can
9710       # have problems creating the table of contents.  If linking a library
9711       # or program results in "error TOC overflow" add -mminimal-toc to
9712       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9713       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9714
9715       archive_cmds=''
9716       hardcode_direct=yes
9717       hardcode_direct_absolute=yes
9718       hardcode_libdir_separator=':'
9719       link_all_deplibs=yes
9720       file_list_spec='$wl-f,'
9721       case $with_aix_soname,$aix_use_runtimelinking in
9722       aix,*) ;; # traditional, no import file
9723       svr4,* | *,yes) # use import file
9724         # The Import File defines what to hardcode.
9725         hardcode_direct=no
9726         hardcode_direct_absolute=no
9727         ;;
9728       esac
9729
9730       if test yes = "$GCC"; then
9731         case $host_os in aix4.[012]|aix4.[012].*)
9732         # We only want to do this on AIX 4.2 and lower, the check
9733         # below for broken collect2 doesn't work under 4.3+
9734           collect2name=`$CC -print-prog-name=collect2`
9735           if test -f "$collect2name" &&
9736            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9737           then
9738           # We have reworked collect2
9739           :
9740           else
9741           # We have old collect2
9742           hardcode_direct=unsupported
9743           # It fails to find uninstalled libraries when the uninstalled
9744           # path is not listed in the libpath.  Setting hardcode_minus_L
9745           # to unsupported forces relinking
9746           hardcode_minus_L=yes
9747           hardcode_libdir_flag_spec='-L$libdir'
9748           hardcode_libdir_separator=
9749           fi
9750           ;;
9751         esac
9752         shared_flag='-shared'
9753         if test yes = "$aix_use_runtimelinking"; then
9754           shared_flag="$shared_flag "'$wl-G'
9755         fi
9756         # Need to ensure runtime linking is disabled for the traditional
9757         # shared library, or the linker may eventually find shared libraries
9758         # /with/ Import File - we do not want to mix them.
9759         shared_flag_aix='-shared'
9760         shared_flag_svr4='-shared $wl-G'
9761       else
9762         # not using gcc
9763         if test ia64 = "$host_cpu"; then
9764         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9765         # chokes on -Wl,-G. The following line is correct:
9766           shared_flag='-G'
9767         else
9768           if test yes = "$aix_use_runtimelinking"; then
9769             shared_flag='$wl-G'
9770           else
9771             shared_flag='$wl-bM:SRE'
9772           fi
9773           shared_flag_aix='$wl-bM:SRE'
9774           shared_flag_svr4='$wl-G'
9775         fi
9776       fi
9777
9778       export_dynamic_flag_spec='$wl-bexpall'
9779       # It seems that -bexpall does not export symbols beginning with
9780       # underscore (_), so it is better to generate a list of symbols to export.
9781       always_export_symbols=yes
9782       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9783         # Warning - without using the other runtime loading flags (-brtl),
9784         # -berok will link without error, but may produce a broken library.
9785         allow_undefined_flag='-berok'
9786         # Determine the default libpath from the value encoded in an
9787         # empty executable.
9788         if test set = "${lt_cv_aix_libpath+set}"; then
9789   aix_libpath=$lt_cv_aix_libpath
9790 else
9791   if ${lt_cv_aix_libpath_+:} false; then :
9792   $as_echo_n "(cached) " >&6
9793 else
9794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9795 /* end confdefs.h.  */
9796
9797 int
9798 main ()
9799 {
9800
9801   ;
9802   return 0;
9803 }
9804 _ACEOF
9805 if ac_fn_c_try_link "$LINENO"; then :
9806
9807   lt_aix_libpath_sed='
9808       /Import File Strings/,/^$/ {
9809           /^0/ {
9810               s/^0  *\([^ ]*\) *$/\1/
9811               p
9812           }
9813       }'
9814   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9815   # Check for a 64-bit object if we didn't find anything.
9816   if test -z "$lt_cv_aix_libpath_"; then
9817     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9818   fi
9819 fi
9820 rm -f core conftest.err conftest.$ac_objext \
9821     conftest$ac_exeext conftest.$ac_ext
9822   if test -z "$lt_cv_aix_libpath_"; then
9823     lt_cv_aix_libpath_=/usr/lib:/lib
9824   fi
9825
9826 fi
9827
9828   aix_libpath=$lt_cv_aix_libpath_
9829 fi
9830
9831         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9832         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9833       else
9834         if test ia64 = "$host_cpu"; then
9835           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9836           allow_undefined_flag="-z nodefs"
9837           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"
9838         else
9839          # Determine the default libpath from the value encoded in an
9840          # empty executable.
9841          if test set = "${lt_cv_aix_libpath+set}"; then
9842   aix_libpath=$lt_cv_aix_libpath
9843 else
9844   if ${lt_cv_aix_libpath_+:} false; then :
9845   $as_echo_n "(cached) " >&6
9846 else
9847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848 /* end confdefs.h.  */
9849
9850 int
9851 main ()
9852 {
9853
9854   ;
9855   return 0;
9856 }
9857 _ACEOF
9858 if ac_fn_c_try_link "$LINENO"; then :
9859
9860   lt_aix_libpath_sed='
9861       /Import File Strings/,/^$/ {
9862           /^0/ {
9863               s/^0  *\([^ ]*\) *$/\1/
9864               p
9865           }
9866       }'
9867   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9868   # Check for a 64-bit object if we didn't find anything.
9869   if test -z "$lt_cv_aix_libpath_"; then
9870     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9871   fi
9872 fi
9873 rm -f core conftest.err conftest.$ac_objext \
9874     conftest$ac_exeext conftest.$ac_ext
9875   if test -z "$lt_cv_aix_libpath_"; then
9876     lt_cv_aix_libpath_=/usr/lib:/lib
9877   fi
9878
9879 fi
9880
9881   aix_libpath=$lt_cv_aix_libpath_
9882 fi
9883
9884          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9885           # Warning - without using the other run time loading flags,
9886           # -berok will link without error, but may produce a broken library.
9887           no_undefined_flag=' $wl-bernotok'
9888           allow_undefined_flag=' $wl-berok'
9889           if test yes = "$with_gnu_ld"; then
9890             # We only use this code for GNU lds that support --whole-archive.
9891             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9892           else
9893             # Exported symbols can be pulled into shared objects from archives
9894             whole_archive_flag_spec='$convenience'
9895           fi
9896           archive_cmds_need_lc=yes
9897           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9898           # -brtl affects multiple linker settings, -berok does not and is overridden later
9899           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9900           if test svr4 != "$with_aix_soname"; then
9901             # This is similar to how AIX traditionally builds its shared libraries.
9902             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9903           fi
9904           if test aix != "$with_aix_soname"; then
9905             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9906           else
9907             # used by -dlpreopen to get the symbols
9908             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9909           fi
9910           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9911         fi
9912       fi
9913       ;;
9914
9915     amigaos*)
9916       case $host_cpu in
9917       powerpc)
9918             # see comment about AmigaOS4 .so support
9919             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9920             archive_expsym_cmds=''
9921         ;;
9922       m68k)
9923             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)'
9924             hardcode_libdir_flag_spec='-L$libdir'
9925             hardcode_minus_L=yes
9926         ;;
9927       esac
9928       ;;
9929
9930     bsdi[45]*)
9931       export_dynamic_flag_spec=-rdynamic
9932       ;;
9933
9934     cygwin* | mingw* | pw32* | cegcc*)
9935       # When not using gcc, we currently assume that we are using
9936       # Microsoft Visual C++.
9937       # hardcode_libdir_flag_spec is actually meaningless, as there is
9938       # no search path for DLLs.
9939       case $cc_basename in
9940       cl*)
9941         # Native MSVC
9942         hardcode_libdir_flag_spec=' '
9943         allow_undefined_flag=unsupported
9944         always_export_symbols=yes
9945         file_list_spec='@'
9946         # Tell ltmain to make .lib files, not .a files.
9947         libext=lib
9948         # Tell ltmain to make .dll files, not .so files.
9949         shrext_cmds=.dll
9950         # FIXME: Setting linknames here is a bad hack.
9951         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9952         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9953             cp "$export_symbols" "$output_objdir/$soname.def";
9954             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9955           else
9956             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9957           fi~
9958           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9959           linknames='
9960         # The linker will not automatically build a static lib if we build a DLL.
9961         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9962         enable_shared_with_static_runtimes=yes
9963         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9964         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9965         # Don't use ranlib
9966         old_postinstall_cmds='chmod 644 $oldlib'
9967         postlink_cmds='lt_outputfile="@OUTPUT@"~
9968           lt_tool_outputfile="@TOOL_OUTPUT@"~
9969           case $lt_outputfile in
9970             *.exe|*.EXE) ;;
9971             *)
9972               lt_outputfile=$lt_outputfile.exe
9973               lt_tool_outputfile=$lt_tool_outputfile.exe
9974               ;;
9975           esac~
9976           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9977             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9978             $RM "$lt_outputfile.manifest";
9979           fi'
9980         ;;
9981       *)
9982         # Assume MSVC wrapper
9983         hardcode_libdir_flag_spec=' '
9984         allow_undefined_flag=unsupported
9985         # Tell ltmain to make .lib files, not .a files.
9986         libext=lib
9987         # Tell ltmain to make .dll files, not .so files.
9988         shrext_cmds=.dll
9989         # FIXME: Setting linknames here is a bad hack.
9990         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9991         # The linker will automatically build a .lib file if we build a DLL.
9992         old_archive_from_new_cmds='true'
9993         # FIXME: Should let the user specify the lib program.
9994         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9995         enable_shared_with_static_runtimes=yes
9996         ;;
9997       esac
9998       ;;
9999
10000     darwin* | rhapsody*)
10001
10002
10003   archive_cmds_need_lc=no
10004   hardcode_direct=no
10005   hardcode_automatic=yes
10006   hardcode_shlibpath_var=unsupported
10007   if test yes = "$lt_cv_ld_force_load"; then
10008     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\"`'
10009
10010   else
10011     whole_archive_flag_spec=''
10012   fi
10013   link_all_deplibs=yes
10014   allow_undefined_flag=$_lt_dar_allow_undefined
10015   case $cc_basename in
10016      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10017      *) _lt_dar_can_shared=$GCC ;;
10018   esac
10019   if test yes = "$_lt_dar_can_shared"; then
10020     output_verbose_link_cmd=func_echo_all
10021     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10022     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10023     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"
10024     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"
10025
10026   else
10027   ld_shlibs=no
10028   fi
10029
10030       ;;
10031
10032     dgux*)
10033       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10034       hardcode_libdir_flag_spec='-L$libdir'
10035       hardcode_shlibpath_var=no
10036       ;;
10037
10038     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10039     # support.  Future versions do this automatically, but an explicit c++rt0.o
10040     # does not break anything, and helps significantly (at the cost of a little
10041     # extra space).
10042     freebsd2.2*)
10043       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10044       hardcode_libdir_flag_spec='-R$libdir'
10045       hardcode_direct=yes
10046       hardcode_shlibpath_var=no
10047       ;;
10048
10049     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10050     freebsd2.*)
10051       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10052       hardcode_direct=yes
10053       hardcode_minus_L=yes
10054       hardcode_shlibpath_var=no
10055       ;;
10056
10057     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10058     freebsd* | dragonfly*)
10059       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10060       hardcode_libdir_flag_spec='-R$libdir'
10061       hardcode_direct=yes
10062       hardcode_shlibpath_var=no
10063       ;;
10064
10065     hpux9*)
10066       if test yes = "$GCC"; then
10067         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10068       else
10069         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10070       fi
10071       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10072       hardcode_libdir_separator=:
10073       hardcode_direct=yes
10074
10075       # hardcode_minus_L: Not really in the search PATH,
10076       # but as the default location of the library.
10077       hardcode_minus_L=yes
10078       export_dynamic_flag_spec='$wl-E'
10079       ;;
10080
10081     hpux10*)
10082       if test yes,no = "$GCC,$with_gnu_ld"; then
10083         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10084       else
10085         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10086       fi
10087       if test no = "$with_gnu_ld"; then
10088         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10089         hardcode_libdir_separator=:
10090         hardcode_direct=yes
10091         hardcode_direct_absolute=yes
10092         export_dynamic_flag_spec='$wl-E'
10093         # hardcode_minus_L: Not really in the search PATH,
10094         # but as the default location of the library.
10095         hardcode_minus_L=yes
10096       fi
10097       ;;
10098
10099     hpux11*)
10100       if test yes,no = "$GCC,$with_gnu_ld"; then
10101         case $host_cpu in
10102         hppa*64*)
10103           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10104           ;;
10105         ia64*)
10106           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10107           ;;
10108         *)
10109           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10110           ;;
10111         esac
10112       else
10113         case $host_cpu in
10114         hppa*64*)
10115           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10116           ;;
10117         ia64*)
10118           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10119           ;;
10120         *)
10121
10122           # Older versions of the 11.00 compiler do not understand -b yet
10123           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10124           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10125 $as_echo_n "checking if $CC understands -b... " >&6; }
10126 if ${lt_cv_prog_compiler__b+:} false; then :
10127   $as_echo_n "(cached) " >&6
10128 else
10129   lt_cv_prog_compiler__b=no
10130    save_LDFLAGS=$LDFLAGS
10131    LDFLAGS="$LDFLAGS -b"
10132    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10133    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10134      # The linker can only warn and ignore the option if not recognized
10135      # So say no if there are warnings
10136      if test -s conftest.err; then
10137        # Append any errors to the config.log.
10138        cat conftest.err 1>&5
10139        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10140        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10141        if diff conftest.exp conftest.er2 >/dev/null; then
10142          lt_cv_prog_compiler__b=yes
10143        fi
10144      else
10145        lt_cv_prog_compiler__b=yes
10146      fi
10147    fi
10148    $RM -r conftest*
10149    LDFLAGS=$save_LDFLAGS
10150
10151 fi
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10153 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10154
10155 if test yes = "$lt_cv_prog_compiler__b"; then
10156     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10157 else
10158     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10159 fi
10160
10161           ;;
10162         esac
10163       fi
10164       if test no = "$with_gnu_ld"; then
10165         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10166         hardcode_libdir_separator=:
10167
10168         case $host_cpu in
10169         hppa*64*|ia64*)
10170           hardcode_direct=no
10171           hardcode_shlibpath_var=no
10172           ;;
10173         *)
10174           hardcode_direct=yes
10175           hardcode_direct_absolute=yes
10176           export_dynamic_flag_spec='$wl-E'
10177
10178           # hardcode_minus_L: Not really in the search PATH,
10179           # but as the default location of the library.
10180           hardcode_minus_L=yes
10181           ;;
10182         esac
10183       fi
10184       ;;
10185
10186     irix5* | irix6* | nonstopux*)
10187       if test yes = "$GCC"; then
10188         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'
10189         # Try to use the -exported_symbol ld option, if it does not
10190         # work, assume that -exports_file does not work either and
10191         # implicitly export all symbols.
10192         # This should be the same for all languages, so no per-tag cache variable.
10193         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10194 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10195 if ${lt_cv_irix_exported_symbol+:} false; then :
10196   $as_echo_n "(cached) " >&6
10197 else
10198   save_LDFLAGS=$LDFLAGS
10199            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10200            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10201 /* end confdefs.h.  */
10202 int foo (void) { return 0; }
10203 _ACEOF
10204 if ac_fn_c_try_link "$LINENO"; then :
10205   lt_cv_irix_exported_symbol=yes
10206 else
10207   lt_cv_irix_exported_symbol=no
10208 fi
10209 rm -f core conftest.err conftest.$ac_objext \
10210     conftest$ac_exeext conftest.$ac_ext
10211            LDFLAGS=$save_LDFLAGS
10212 fi
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10214 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10215         if test yes = "$lt_cv_irix_exported_symbol"; then
10216           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'
10217         fi
10218         link_all_deplibs=no
10219       else
10220         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'
10221         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'
10222       fi
10223       archive_cmds_need_lc='no'
10224       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10225       hardcode_libdir_separator=:
10226       inherit_rpath=yes
10227       link_all_deplibs=yes
10228       ;;
10229
10230     linux*)
10231       case $cc_basename in
10232       tcc*)
10233         # Fabrice Bellard et al's Tiny C Compiler
10234         ld_shlibs=yes
10235         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10236         ;;
10237       esac
10238       ;;
10239
10240     netbsd* | netbsdelf*-gnu)
10241       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10242         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10243       else
10244         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10245       fi
10246       hardcode_libdir_flag_spec='-R$libdir'
10247       hardcode_direct=yes
10248       hardcode_shlibpath_var=no
10249       ;;
10250
10251     newsos6)
10252       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10253       hardcode_direct=yes
10254       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10255       hardcode_libdir_separator=:
10256       hardcode_shlibpath_var=no
10257       ;;
10258
10259     *nto* | *qnx*)
10260       ;;
10261
10262     openbsd* | bitrig*)
10263       if test -f /usr/libexec/ld.so; then
10264         hardcode_direct=yes
10265         hardcode_shlibpath_var=no
10266         hardcode_direct_absolute=yes
10267         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10268           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10269           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10270           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10271           export_dynamic_flag_spec='$wl-E'
10272         else
10273           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10274           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10275         fi
10276       else
10277         ld_shlibs=no
10278       fi
10279       ;;
10280
10281     os2*)
10282       hardcode_libdir_flag_spec='-L$libdir'
10283       hardcode_minus_L=yes
10284       allow_undefined_flag=unsupported
10285       shrext_cmds=.dll
10286       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10287         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10288         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10289         $ECHO EXPORTS >> $output_objdir/$libname.def~
10290         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10291         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10292         emximp -o $lib $output_objdir/$libname.def'
10293       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10294         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10295         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10296         $ECHO EXPORTS >> $output_objdir/$libname.def~
10297         prefix_cmds="$SED"~
10298         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10299           prefix_cmds="$prefix_cmds -e 1d";
10300         fi~
10301         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10302         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10303         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10304         emximp -o $lib $output_objdir/$libname.def'
10305       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10306       enable_shared_with_static_runtimes=yes
10307       ;;
10308
10309     osf3*)
10310       if test yes = "$GCC"; then
10311         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10312         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'
10313       else
10314         allow_undefined_flag=' -expect_unresolved \*'
10315         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'
10316       fi
10317       archive_cmds_need_lc='no'
10318       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10319       hardcode_libdir_separator=:
10320       ;;
10321
10322     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10323       if test yes = "$GCC"; then
10324         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10325         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'
10326         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10327       else
10328         allow_undefined_flag=' -expect_unresolved \*'
10329         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'
10330         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~
10331           $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'
10332
10333         # Both c and cxx compiler support -rpath directly
10334         hardcode_libdir_flag_spec='-rpath $libdir'
10335       fi
10336       archive_cmds_need_lc='no'
10337       hardcode_libdir_separator=:
10338       ;;
10339
10340     solaris*)
10341       no_undefined_flag=' -z defs'
10342       if test yes = "$GCC"; then
10343         wlarc='$wl'
10344         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10345         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10346           $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'
10347       else
10348         case `$CC -V 2>&1` in
10349         *"Compilers 5.0"*)
10350           wlarc=''
10351           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10352           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10353             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10354           ;;
10355         *)
10356           wlarc='$wl'
10357           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10358           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10359             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10360           ;;
10361         esac
10362       fi
10363       hardcode_libdir_flag_spec='-R$libdir'
10364       hardcode_shlibpath_var=no
10365       case $host_os in
10366       solaris2.[0-5] | solaris2.[0-5].*) ;;
10367       *)
10368         # The compiler driver will combine and reorder linker options,
10369         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10370         # but is careful enough not to reorder.
10371         # Supported since Solaris 2.6 (maybe 2.5.1?)
10372         if test yes = "$GCC"; then
10373           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10374         else
10375           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10376         fi
10377         ;;
10378       esac
10379       link_all_deplibs=yes
10380       ;;
10381
10382     sunos4*)
10383       if test sequent = "$host_vendor"; then
10384         # Use $CC to link under sequent, because it throws in some extra .o
10385         # files that make .init and .fini sections work.
10386         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10387       else
10388         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10389       fi
10390       hardcode_libdir_flag_spec='-L$libdir'
10391       hardcode_direct=yes
10392       hardcode_minus_L=yes
10393       hardcode_shlibpath_var=no
10394       ;;
10395
10396     sysv4)
10397       case $host_vendor in
10398         sni)
10399           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10400           hardcode_direct=yes # is this really true???
10401         ;;
10402         siemens)
10403           ## LD is ld it makes a PLAMLIB
10404           ## CC just makes a GrossModule.
10405           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10406           reload_cmds='$CC -r -o $output$reload_objs'
10407           hardcode_direct=no
10408         ;;
10409         motorola)
10410           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10411           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10412         ;;
10413       esac
10414       runpath_var='LD_RUN_PATH'
10415       hardcode_shlibpath_var=no
10416       ;;
10417
10418     sysv4.3*)
10419       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10420       hardcode_shlibpath_var=no
10421       export_dynamic_flag_spec='-Bexport'
10422       ;;
10423
10424     sysv4*MP*)
10425       if test -d /usr/nec; then
10426         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427         hardcode_shlibpath_var=no
10428         runpath_var=LD_RUN_PATH
10429         hardcode_runpath_var=yes
10430         ld_shlibs=yes
10431       fi
10432       ;;
10433
10434     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10435       no_undefined_flag='$wl-z,text'
10436       archive_cmds_need_lc=no
10437       hardcode_shlibpath_var=no
10438       runpath_var='LD_RUN_PATH'
10439
10440       if test yes = "$GCC"; then
10441         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10442         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10443       else
10444         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10445         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10446       fi
10447       ;;
10448
10449     sysv5* | sco3.2v5* | sco5v6*)
10450       # Note: We CANNOT use -z defs as we might desire, because we do not
10451       # link with -lc, and that would cause any symbols used from libc to
10452       # always be unresolved, which means just about no library would
10453       # ever link correctly.  If we're not using GNU ld we use -z text
10454       # though, which does catch some bad symbols but isn't as heavy-handed
10455       # as -z defs.
10456       no_undefined_flag='$wl-z,text'
10457       allow_undefined_flag='$wl-z,nodefs'
10458       archive_cmds_need_lc=no
10459       hardcode_shlibpath_var=no
10460       hardcode_libdir_flag_spec='$wl-R,$libdir'
10461       hardcode_libdir_separator=':'
10462       link_all_deplibs=yes
10463       export_dynamic_flag_spec='$wl-Bexport'
10464       runpath_var='LD_RUN_PATH'
10465
10466       if test yes = "$GCC"; then
10467         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10468         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10469       else
10470         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10471         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10472       fi
10473       ;;
10474
10475     uts4*)
10476       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10477       hardcode_libdir_flag_spec='-L$libdir'
10478       hardcode_shlibpath_var=no
10479       ;;
10480
10481     *)
10482       ld_shlibs=no
10483       ;;
10484     esac
10485
10486     if test sni = "$host_vendor"; then
10487       case $host in
10488       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10489         export_dynamic_flag_spec='$wl-Blargedynsym'
10490         ;;
10491       esac
10492     fi
10493   fi
10494
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10496 $as_echo "$ld_shlibs" >&6; }
10497 test no = "$ld_shlibs" && can_build_shared=no
10498
10499 with_gnu_ld=$with_gnu_ld
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515 #
10516 # Do we need to explicitly link libc?
10517 #
10518 case "x$archive_cmds_need_lc" in
10519 x|xyes)
10520   # Assume -lc should be added
10521   archive_cmds_need_lc=yes
10522
10523   if test yes,yes = "$GCC,$enable_shared"; then
10524     case $archive_cmds in
10525     *'~'*)
10526       # FIXME: we may have to deal with multi-command sequences.
10527       ;;
10528     '$CC '*)
10529       # Test whether the compiler implicitly links with -lc since on some
10530       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10531       # to ld, don't add -lc before -lgcc.
10532       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10533 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10534 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10535   $as_echo_n "(cached) " >&6
10536 else
10537   $RM conftest*
10538         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10539
10540         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10541   (eval $ac_compile) 2>&5
10542   ac_status=$?
10543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10544   test $ac_status = 0; } 2>conftest.err; then
10545           soname=conftest
10546           lib=conftest
10547           libobjs=conftest.$ac_objext
10548           deplibs=
10549           wl=$lt_prog_compiler_wl
10550           pic_flag=$lt_prog_compiler_pic
10551           compiler_flags=-v
10552           linker_flags=-v
10553           verstring=
10554           output_objdir=.
10555           libname=conftest
10556           lt_save_allow_undefined_flag=$allow_undefined_flag
10557           allow_undefined_flag=
10558           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10559   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10560   ac_status=$?
10561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10562   test $ac_status = 0; }
10563           then
10564             lt_cv_archive_cmds_need_lc=no
10565           else
10566             lt_cv_archive_cmds_need_lc=yes
10567           fi
10568           allow_undefined_flag=$lt_save_allow_undefined_flag
10569         else
10570           cat conftest.err 1>&5
10571         fi
10572         $RM conftest*
10573
10574 fi
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10576 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10577       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10578       ;;
10579     esac
10580   fi
10581   ;;
10582 esac
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10736 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10737
10738 if test yes = "$GCC"; then
10739   case $host_os in
10740     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10741     *) lt_awk_arg='/^libraries:/' ;;
10742   esac
10743   case $host_os in
10744     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10745     *) lt_sed_strip_eq='s|=/|/|g' ;;
10746   esac
10747   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10748   case $lt_search_path_spec in
10749   *\;*)
10750     # if the path contains ";" then we assume it to be the separator
10751     # otherwise default to the standard path separator (i.e. ":") - it is
10752     # assumed that no part of a normal pathname contains ";" but that should
10753     # okay in the real world where ";" in dirpaths is itself problematic.
10754     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10755     ;;
10756   *)
10757     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10758     ;;
10759   esac
10760   # Ok, now we have the path, separated by spaces, we can step through it
10761   # and add multilib dir if necessary...
10762   lt_tmp_lt_search_path_spec=
10763   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10764   # ...but if some path component already ends with the multilib dir we assume
10765   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10766   case "$lt_multi_os_dir; $lt_search_path_spec " in
10767   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10768     lt_multi_os_dir=
10769     ;;
10770   esac
10771   for lt_sys_path in $lt_search_path_spec; do
10772     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10773       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10774     elif test -n "$lt_multi_os_dir"; then
10775       test -d "$lt_sys_path" && \
10776         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10777     fi
10778   done
10779   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10780 BEGIN {RS = " "; FS = "/|\n";} {
10781   lt_foo = "";
10782   lt_count = 0;
10783   for (lt_i = NF; lt_i > 0; lt_i--) {
10784     if ($lt_i != "" && $lt_i != ".") {
10785       if ($lt_i == "..") {
10786         lt_count++;
10787       } else {
10788         if (lt_count == 0) {
10789           lt_foo = "/" $lt_i lt_foo;
10790         } else {
10791           lt_count--;
10792         }
10793       }
10794     }
10795   }
10796   if (lt_foo != "") { lt_freq[lt_foo]++; }
10797   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10798 }'`
10799   # AWK program above erroneously prepends '/' to C:/dos/paths
10800   # for these hosts.
10801   case $host_os in
10802     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10803       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10804   esac
10805   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10806 else
10807   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10808 fi
10809 library_names_spec=
10810 libname_spec='lib$name'
10811 soname_spec=
10812 shrext_cmds=.so
10813 postinstall_cmds=
10814 postuninstall_cmds=
10815 finish_cmds=
10816 finish_eval=
10817 shlibpath_var=
10818 shlibpath_overrides_runpath=unknown
10819 version_type=none
10820 dynamic_linker="$host_os ld.so"
10821 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10822 need_lib_prefix=unknown
10823 hardcode_into_libs=no
10824
10825 # when you set need_version to no, make sure it does not cause -set_version
10826 # flags to be left without arguments
10827 need_version=unknown
10828
10829
10830
10831 case $host_os in
10832 aix3*)
10833   version_type=linux # correct to gnu/linux during the next big refactor
10834   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10835   shlibpath_var=LIBPATH
10836
10837   # AIX 3 has no versioning support, so we append a major version to the name.
10838   soname_spec='$libname$release$shared_ext$major'
10839   ;;
10840
10841 aix[4-9]*)
10842   version_type=linux # correct to gnu/linux during the next big refactor
10843   need_lib_prefix=no
10844   need_version=no
10845   hardcode_into_libs=yes
10846   if test ia64 = "$host_cpu"; then
10847     # AIX 5 supports IA64
10848     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10849     shlibpath_var=LD_LIBRARY_PATH
10850   else
10851     # With GCC up to 2.95.x, collect2 would create an import file
10852     # for dependence libraries.  The import file would start with
10853     # the line '#! .'.  This would cause the generated library to
10854     # depend on '.', always an invalid library.  This was fixed in
10855     # development snapshots of GCC prior to 3.0.
10856     case $host_os in
10857       aix4 | aix4.[01] | aix4.[01].*)
10858       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10859            echo ' yes '
10860            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10861         :
10862       else
10863         can_build_shared=no
10864       fi
10865       ;;
10866     esac
10867     # Using Import Files as archive members, it is possible to support
10868     # filename-based versioning of shared library archives on AIX. While
10869     # this would work for both with and without runtime linking, it will
10870     # prevent static linking of such archives. So we do filename-based
10871     # shared library versioning with .so extension only, which is used
10872     # when both runtime linking and shared linking is enabled.
10873     # Unfortunately, runtime linking may impact performance, so we do
10874     # not want this to be the default eventually. Also, we use the
10875     # versioned .so libs for executables only if there is the -brtl
10876     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10877     # To allow for filename-based versioning support, we need to create
10878     # libNAME.so.V as an archive file, containing:
10879     # *) an Import File, referring to the versioned filename of the
10880     #    archive as well as the shared archive member, telling the
10881     #    bitwidth (32 or 64) of that shared object, and providing the
10882     #    list of exported symbols of that shared object, eventually
10883     #    decorated with the 'weak' keyword
10884     # *) the shared object with the F_LOADONLY flag set, to really avoid
10885     #    it being seen by the linker.
10886     # At run time we better use the real file rather than another symlink,
10887     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10888
10889     case $with_aix_soname,$aix_use_runtimelinking in
10890     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10891     # soname into executable. Probably we can add versioning support to
10892     # collect2, so additional links can be useful in future.
10893     aix,yes) # traditional libtool
10894       dynamic_linker='AIX unversionable lib.so'
10895       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10896       # instead of lib<name>.a to let people know that these are not
10897       # typical AIX shared libraries.
10898       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10899       ;;
10900     aix,no) # traditional AIX only
10901       dynamic_linker='AIX lib.a(lib.so.V)'
10902       # We preserve .a as extension for shared libraries through AIX4.2
10903       # and later when we are not doing run time linking.
10904       library_names_spec='$libname$release.a $libname.a'
10905       soname_spec='$libname$release$shared_ext$major'
10906       ;;
10907     svr4,*) # full svr4 only
10908       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10909       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10910       # We do not specify a path in Import Files, so LIBPATH fires.
10911       shlibpath_overrides_runpath=yes
10912       ;;
10913     *,yes) # both, prefer svr4
10914       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10915       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10916       # unpreferred sharedlib libNAME.a needs extra handling
10917       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10918       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10919       # We do not specify a path in Import Files, so LIBPATH fires.
10920       shlibpath_overrides_runpath=yes
10921       ;;
10922     *,no) # both, prefer aix
10923       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10924       library_names_spec='$libname$release.a $libname.a'
10925       soname_spec='$libname$release$shared_ext$major'
10926       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10927       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10928       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10929       ;;
10930     esac
10931     shlibpath_var=LIBPATH
10932   fi
10933   ;;
10934
10935 amigaos*)
10936   case $host_cpu in
10937   powerpc)
10938     # Since July 2007 AmigaOS4 officially supports .so libraries.
10939     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10940     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10941     ;;
10942   m68k)
10943     library_names_spec='$libname.ixlibrary $libname.a'
10944     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10945     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10946     ;;
10947   esac
10948   ;;
10949
10950 beos*)
10951   library_names_spec='$libname$shared_ext'
10952   dynamic_linker="$host_os ld.so"
10953   shlibpath_var=LIBRARY_PATH
10954   ;;
10955
10956 bsdi[45]*)
10957   version_type=linux # correct to gnu/linux during the next big refactor
10958   need_version=no
10959   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10960   soname_spec='$libname$release$shared_ext$major'
10961   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10962   shlibpath_var=LD_LIBRARY_PATH
10963   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10964   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10965   # the default ld.so.conf also contains /usr/contrib/lib and
10966   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10967   # libtool to hard-code these into programs
10968   ;;
10969
10970 cygwin* | mingw* | pw32* | cegcc*)
10971   version_type=windows
10972   shrext_cmds=.dll
10973   need_version=no
10974   need_lib_prefix=no
10975
10976   case $GCC,$cc_basename in
10977   yes,*)
10978     # gcc
10979     library_names_spec='$libname.dll.a'
10980     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10981     postinstall_cmds='base_file=`basename \$file`~
10982       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10983       dldir=$destdir/`dirname \$dlpath`~
10984       test -d \$dldir || mkdir -p \$dldir~
10985       $install_prog $dir/$dlname \$dldir/$dlname~
10986       chmod a+x \$dldir/$dlname~
10987       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10988         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10989       fi'
10990     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10991       dlpath=$dir/\$dldll~
10992        $RM \$dlpath'
10993     shlibpath_overrides_runpath=yes
10994
10995     case $host_os in
10996     cygwin*)
10997       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10998       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10999
11000       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11001       ;;
11002     mingw* | cegcc*)
11003       # MinGW DLLs use traditional 'lib' prefix
11004       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11005       ;;
11006     pw32*)
11007       # pw32 DLLs use 'pw' prefix rather than 'lib'
11008       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11009       ;;
11010     esac
11011     dynamic_linker='Win32 ld.exe'
11012     ;;
11013
11014   *,cl*)
11015     # Native MSVC
11016     libname_spec='$name'
11017     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11018     library_names_spec='$libname.dll.lib'
11019
11020     case $build_os in
11021     mingw*)
11022       sys_lib_search_path_spec=
11023       lt_save_ifs=$IFS
11024       IFS=';'
11025       for lt_path in $LIB
11026       do
11027         IFS=$lt_save_ifs
11028         # Let DOS variable expansion print the short 8.3 style file name.
11029         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11030         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11031       done
11032       IFS=$lt_save_ifs
11033       # Convert to MSYS style.
11034       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11035       ;;
11036     cygwin*)
11037       # Convert to unix form, then to dos form, then back to unix form
11038       # but this time dos style (no spaces!) so that the unix form looks
11039       # like /cygdrive/c/PROGRA~1:/cygdr...
11040       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11041       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11042       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11043       ;;
11044     *)
11045       sys_lib_search_path_spec=$LIB
11046       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11047         # It is most probably a Windows format PATH.
11048         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11049       else
11050         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11051       fi
11052       # FIXME: find the short name or the path components, as spaces are
11053       # common. (e.g. "Program Files" -> "PROGRA~1")
11054       ;;
11055     esac
11056
11057     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11058     postinstall_cmds='base_file=`basename \$file`~
11059       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11060       dldir=$destdir/`dirname \$dlpath`~
11061       test -d \$dldir || mkdir -p \$dldir~
11062       $install_prog $dir/$dlname \$dldir/$dlname'
11063     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11064       dlpath=$dir/\$dldll~
11065        $RM \$dlpath'
11066     shlibpath_overrides_runpath=yes
11067     dynamic_linker='Win32 link.exe'
11068     ;;
11069
11070   *)
11071     # Assume MSVC wrapper
11072     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11073     dynamic_linker='Win32 ld.exe'
11074     ;;
11075   esac
11076   # FIXME: first we should search . and the directory the executable is in
11077   shlibpath_var=PATH
11078   ;;
11079
11080 darwin* | rhapsody*)
11081   dynamic_linker="$host_os dyld"
11082   version_type=darwin
11083   need_lib_prefix=no
11084   need_version=no
11085   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11086   soname_spec='$libname$release$major$shared_ext'
11087   shlibpath_overrides_runpath=yes
11088   shlibpath_var=DYLD_LIBRARY_PATH
11089   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11090
11091   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11092   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11093   ;;
11094
11095 dgux*)
11096   version_type=linux # correct to gnu/linux during the next big refactor
11097   need_lib_prefix=no
11098   need_version=no
11099   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11100   soname_spec='$libname$release$shared_ext$major'
11101   shlibpath_var=LD_LIBRARY_PATH
11102   ;;
11103
11104 freebsd* | dragonfly*)
11105   # DragonFly does not have aout.  When/if they implement a new
11106   # versioning mechanism, adjust this.
11107   if test -x /usr/bin/objformat; then
11108     objformat=`/usr/bin/objformat`
11109   else
11110     case $host_os in
11111     freebsd[23].*) objformat=aout ;;
11112     *) objformat=elf ;;
11113     esac
11114   fi
11115   version_type=freebsd-$objformat
11116   case $version_type in
11117     freebsd-elf*)
11118       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11119       soname_spec='$libname$release$shared_ext$major'
11120       need_version=no
11121       need_lib_prefix=no
11122       ;;
11123     freebsd-*)
11124       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11125       need_version=yes
11126       ;;
11127   esac
11128   shlibpath_var=LD_LIBRARY_PATH
11129   case $host_os in
11130   freebsd2.*)
11131     shlibpath_overrides_runpath=yes
11132     ;;
11133   freebsd3.[01]* | freebsdelf3.[01]*)
11134     shlibpath_overrides_runpath=yes
11135     hardcode_into_libs=yes
11136     ;;
11137   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11138   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11139     shlibpath_overrides_runpath=no
11140     hardcode_into_libs=yes
11141     ;;
11142   *) # from 4.6 on, and DragonFly
11143     shlibpath_overrides_runpath=yes
11144     hardcode_into_libs=yes
11145     ;;
11146   esac
11147   ;;
11148
11149 haiku*)
11150   version_type=linux # correct to gnu/linux during the next big refactor
11151   need_lib_prefix=no
11152   need_version=no
11153   dynamic_linker="$host_os runtime_loader"
11154   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11155   soname_spec='$libname$release$shared_ext$major'
11156   shlibpath_var=LIBRARY_PATH
11157   shlibpath_overrides_runpath=no
11158   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11159   hardcode_into_libs=yes
11160   ;;
11161
11162 hpux9* | hpux10* | hpux11*)
11163   # Give a soname corresponding to the major version so that dld.sl refuses to
11164   # link against other versions.
11165   version_type=sunos
11166   need_lib_prefix=no
11167   need_version=no
11168   case $host_cpu in
11169   ia64*)
11170     shrext_cmds='.so'
11171     hardcode_into_libs=yes
11172     dynamic_linker="$host_os dld.so"
11173     shlibpath_var=LD_LIBRARY_PATH
11174     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11175     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11176     soname_spec='$libname$release$shared_ext$major'
11177     if test 32 = "$HPUX_IA64_MODE"; then
11178       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11179       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11180     else
11181       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11182       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11183     fi
11184     ;;
11185   hppa*64*)
11186     shrext_cmds='.sl'
11187     hardcode_into_libs=yes
11188     dynamic_linker="$host_os dld.sl"
11189     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11190     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11191     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11192     soname_spec='$libname$release$shared_ext$major'
11193     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11194     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11195     ;;
11196   *)
11197     shrext_cmds='.sl'
11198     dynamic_linker="$host_os dld.sl"
11199     shlibpath_var=SHLIB_PATH
11200     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11201     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11202     soname_spec='$libname$release$shared_ext$major'
11203     ;;
11204   esac
11205   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11206   postinstall_cmds='chmod 555 $lib'
11207   # or fails outright, so override atomically:
11208   install_override_mode=555
11209   ;;
11210
11211 interix[3-9]*)
11212   version_type=linux # correct to gnu/linux during the next big refactor
11213   need_lib_prefix=no
11214   need_version=no
11215   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11216   soname_spec='$libname$release$shared_ext$major'
11217   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11218   shlibpath_var=LD_LIBRARY_PATH
11219   shlibpath_overrides_runpath=no
11220   hardcode_into_libs=yes
11221   ;;
11222
11223 irix5* | irix6* | nonstopux*)
11224   case $host_os in
11225     nonstopux*) version_type=nonstopux ;;
11226     *)
11227         if test yes = "$lt_cv_prog_gnu_ld"; then
11228                 version_type=linux # correct to gnu/linux during the next big refactor
11229         else
11230                 version_type=irix
11231         fi ;;
11232   esac
11233   need_lib_prefix=no
11234   need_version=no
11235   soname_spec='$libname$release$shared_ext$major'
11236   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11237   case $host_os in
11238   irix5* | nonstopux*)
11239     libsuff= shlibsuff=
11240     ;;
11241   *)
11242     case $LD in # libtool.m4 will add one of these switches to LD
11243     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11244       libsuff= shlibsuff= libmagic=32-bit;;
11245     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11246       libsuff=32 shlibsuff=N32 libmagic=N32;;
11247     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11248       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11249     *) libsuff= shlibsuff= libmagic=never-match;;
11250     esac
11251     ;;
11252   esac
11253   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11254   shlibpath_overrides_runpath=no
11255   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11256   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11257   hardcode_into_libs=yes
11258   ;;
11259
11260 # No shared lib support for Linux oldld, aout, or coff.
11261 linux*oldld* | linux*aout* | linux*coff*)
11262   dynamic_linker=no
11263   ;;
11264
11265 linux*android*)
11266   version_type=none # Android doesn't support versioned libraries.
11267   need_lib_prefix=no
11268   need_version=no
11269   library_names_spec='$libname$release$shared_ext'
11270   soname_spec='$libname$release$shared_ext'
11271   finish_cmds=
11272   shlibpath_var=LD_LIBRARY_PATH
11273   shlibpath_overrides_runpath=yes
11274
11275   # This implies no fast_install, which is unacceptable.
11276   # Some rework will be needed to allow for fast_install
11277   # before this can be enabled.
11278   hardcode_into_libs=yes
11279
11280   dynamic_linker='Android linker'
11281   # Don't embed -rpath directories since the linker doesn't support them.
11282   hardcode_libdir_flag_spec='-L$libdir'
11283   ;;
11284
11285 # This must be glibc/ELF.
11286 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11287   version_type=linux # correct to gnu/linux during the next big refactor
11288   need_lib_prefix=no
11289   need_version=no
11290   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11291   soname_spec='$libname$release$shared_ext$major'
11292   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11293   shlibpath_var=LD_LIBRARY_PATH
11294   shlibpath_overrides_runpath=no
11295
11296   # Some binutils ld are patched to set DT_RUNPATH
11297   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11298   $as_echo_n "(cached) " >&6
11299 else
11300   lt_cv_shlibpath_overrides_runpath=no
11301     save_LDFLAGS=$LDFLAGS
11302     save_libdir=$libdir
11303     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11304          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11305     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h.  */
11307
11308 int
11309 main ()
11310 {
11311
11312   ;
11313   return 0;
11314 }
11315 _ACEOF
11316 if ac_fn_c_try_link "$LINENO"; then :
11317   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11318   lt_cv_shlibpath_overrides_runpath=yes
11319 fi
11320 fi
11321 rm -f core conftest.err conftest.$ac_objext \
11322     conftest$ac_exeext conftest.$ac_ext
11323     LDFLAGS=$save_LDFLAGS
11324     libdir=$save_libdir
11325
11326 fi
11327
11328   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11329
11330   # This implies no fast_install, which is unacceptable.
11331   # Some rework will be needed to allow for fast_install
11332   # before this can be enabled.
11333   hardcode_into_libs=yes
11334
11335   # Ideally, we could use ldconfig to report *all* directores which are
11336   # searched for libraries, however this is still not possible.  Aside from not
11337   # being certain /sbin/ldconfig is available, command
11338   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11339   # even though it is searched at run-time.  Try to do the best guess by
11340   # appending ld.so.conf contents (and includes) to the search path.
11341   if test -f /etc/ld.so.conf; then
11342     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' ' '`
11343     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11344   fi
11345
11346   # We used to test for /lib/ld.so.1 and disable shared libraries on
11347   # powerpc, because MkLinux only supported shared libraries with the
11348   # GNU dynamic linker.  Since this was broken with cross compilers,
11349   # most powerpc-linux boxes support dynamic linking these days and
11350   # people can always --disable-shared, the test was removed, and we
11351   # assume the GNU/Linux dynamic linker is in use.
11352   dynamic_linker='GNU/Linux ld.so'
11353   ;;
11354
11355 netbsdelf*-gnu)
11356   version_type=linux
11357   need_lib_prefix=no
11358   need_version=no
11359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11360   soname_spec='${libname}${release}${shared_ext}$major'
11361   shlibpath_var=LD_LIBRARY_PATH
11362   shlibpath_overrides_runpath=no
11363   hardcode_into_libs=yes
11364   dynamic_linker='NetBSD ld.elf_so'
11365   ;;
11366
11367 netbsd*)
11368   version_type=sunos
11369   need_lib_prefix=no
11370   need_version=no
11371   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11372     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11373     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11374     dynamic_linker='NetBSD (a.out) ld.so'
11375   else
11376     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11377     soname_spec='$libname$release$shared_ext$major'
11378     dynamic_linker='NetBSD ld.elf_so'
11379   fi
11380   shlibpath_var=LD_LIBRARY_PATH
11381   shlibpath_overrides_runpath=yes
11382   hardcode_into_libs=yes
11383   ;;
11384
11385 newsos6)
11386   version_type=linux # correct to gnu/linux during the next big refactor
11387   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11388   shlibpath_var=LD_LIBRARY_PATH
11389   shlibpath_overrides_runpath=yes
11390   ;;
11391
11392 *nto* | *qnx*)
11393   version_type=qnx
11394   need_lib_prefix=no
11395   need_version=no
11396   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11397   soname_spec='$libname$release$shared_ext$major'
11398   shlibpath_var=LD_LIBRARY_PATH
11399   shlibpath_overrides_runpath=no
11400   hardcode_into_libs=yes
11401   dynamic_linker='ldqnx.so'
11402   ;;
11403
11404 openbsd* | bitrig*)
11405   version_type=sunos
11406   sys_lib_dlsearch_path_spec=/usr/lib
11407   need_lib_prefix=no
11408   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11409     need_version=no
11410   else
11411     need_version=yes
11412   fi
11413   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11414   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11415   shlibpath_var=LD_LIBRARY_PATH
11416   shlibpath_overrides_runpath=yes
11417   ;;
11418
11419 os2*)
11420   libname_spec='$name'
11421   version_type=windows
11422   shrext_cmds=.dll
11423   need_version=no
11424   need_lib_prefix=no
11425   # OS/2 can only load a DLL with a base name of 8 characters or less.
11426   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11427     v=$($ECHO $release$versuffix | tr -d .-);
11428     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11429     $ECHO $n$v`$shared_ext'
11430   library_names_spec='${libname}_dll.$libext'
11431   dynamic_linker='OS/2 ld.exe'
11432   shlibpath_var=BEGINLIBPATH
11433   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11434   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11435   postinstall_cmds='base_file=`basename \$file`~
11436     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11437     dldir=$destdir/`dirname \$dlpath`~
11438     test -d \$dldir || mkdir -p \$dldir~
11439     $install_prog $dir/$dlname \$dldir/$dlname~
11440     chmod a+x \$dldir/$dlname~
11441     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11442       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11443     fi'
11444   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11445     dlpath=$dir/\$dldll~
11446     $RM \$dlpath'
11447   ;;
11448
11449 osf3* | osf4* | osf5*)
11450   version_type=osf
11451   need_lib_prefix=no
11452   need_version=no
11453   soname_spec='$libname$release$shared_ext$major'
11454   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11455   shlibpath_var=LD_LIBRARY_PATH
11456   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11457   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11458   ;;
11459
11460 rdos*)
11461   dynamic_linker=no
11462   ;;
11463
11464 solaris*)
11465   version_type=linux # correct to gnu/linux during the next big refactor
11466   need_lib_prefix=no
11467   need_version=no
11468   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11469   soname_spec='$libname$release$shared_ext$major'
11470   shlibpath_var=LD_LIBRARY_PATH
11471   shlibpath_overrides_runpath=yes
11472   hardcode_into_libs=yes
11473   # ldd complains unless libraries are executable
11474   postinstall_cmds='chmod +x $lib'
11475   ;;
11476
11477 sunos4*)
11478   version_type=sunos
11479   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11480   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11481   shlibpath_var=LD_LIBRARY_PATH
11482   shlibpath_overrides_runpath=yes
11483   if test yes = "$with_gnu_ld"; then
11484     need_lib_prefix=no
11485   fi
11486   need_version=yes
11487   ;;
11488
11489 sysv4 | sysv4.3*)
11490   version_type=linux # correct to gnu/linux during the next big refactor
11491   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11492   soname_spec='$libname$release$shared_ext$major'
11493   shlibpath_var=LD_LIBRARY_PATH
11494   case $host_vendor in
11495     sni)
11496       shlibpath_overrides_runpath=no
11497       need_lib_prefix=no
11498       runpath_var=LD_RUN_PATH
11499       ;;
11500     siemens)
11501       need_lib_prefix=no
11502       ;;
11503     motorola)
11504       need_lib_prefix=no
11505       need_version=no
11506       shlibpath_overrides_runpath=no
11507       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11508       ;;
11509   esac
11510   ;;
11511
11512 sysv4*MP*)
11513   if test -d /usr/nec; then
11514     version_type=linux # correct to gnu/linux during the next big refactor
11515     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11516     soname_spec='$libname$shared_ext.$major'
11517     shlibpath_var=LD_LIBRARY_PATH
11518   fi
11519   ;;
11520
11521 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11522   version_type=sco
11523   need_lib_prefix=no
11524   need_version=no
11525   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11526   soname_spec='$libname$release$shared_ext$major'
11527   shlibpath_var=LD_LIBRARY_PATH
11528   shlibpath_overrides_runpath=yes
11529   hardcode_into_libs=yes
11530   if test yes = "$with_gnu_ld"; then
11531     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11532   else
11533     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11534     case $host_os in
11535       sco3.2v5*)
11536         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11537         ;;
11538     esac
11539   fi
11540   sys_lib_dlsearch_path_spec='/usr/lib'
11541   ;;
11542
11543 tpf*)
11544   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11545   version_type=linux # correct to gnu/linux during the next big refactor
11546   need_lib_prefix=no
11547   need_version=no
11548   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11549   shlibpath_var=LD_LIBRARY_PATH
11550   shlibpath_overrides_runpath=no
11551   hardcode_into_libs=yes
11552   ;;
11553
11554 uts4*)
11555   version_type=linux # correct to gnu/linux during the next big refactor
11556   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11557   soname_spec='$libname$release$shared_ext$major'
11558   shlibpath_var=LD_LIBRARY_PATH
11559   ;;
11560
11561 *)
11562   dynamic_linker=no
11563   ;;
11564 esac
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11566 $as_echo "$dynamic_linker" >&6; }
11567 test no = "$dynamic_linker" && can_build_shared=no
11568
11569 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11570 if test yes = "$GCC"; then
11571   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11572 fi
11573
11574 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11575   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11576 fi
11577
11578 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11579   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11580 fi
11581
11582 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11583 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11584
11585 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11586 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11587
11588 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11589 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11688 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11689 hardcode_action=
11690 if test -n "$hardcode_libdir_flag_spec" ||
11691    test -n "$runpath_var" ||
11692    test yes = "$hardcode_automatic"; then
11693
11694   # We can hardcode non-existent directories.
11695   if test no != "$hardcode_direct" &&
11696      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11697      # have to relink, otherwise we might link with an installed library
11698      # when we should be linking with a yet-to-be-installed one
11699      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11700      test no != "$hardcode_minus_L"; then
11701     # Linking always hardcodes the temporary library directory.
11702     hardcode_action=relink
11703   else
11704     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11705     hardcode_action=immediate
11706   fi
11707 else
11708   # We cannot hardcode anything, or else we can only hardcode existing
11709   # directories.
11710   hardcode_action=unsupported
11711 fi
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11713 $as_echo "$hardcode_action" >&6; }
11714
11715 if test relink = "$hardcode_action" ||
11716    test yes = "$inherit_rpath"; then
11717   # Fast installation is not supported
11718   enable_fast_install=no
11719 elif test yes = "$shlibpath_overrides_runpath" ||
11720      test no = "$enable_shared"; then
11721   # Fast installation is not necessary
11722   enable_fast_install=needless
11723 fi
11724
11725
11726
11727
11728
11729
11730   if test yes != "$enable_dlopen"; then
11731   enable_dlopen=unknown
11732   enable_dlopen_self=unknown
11733   enable_dlopen_self_static=unknown
11734 else
11735   lt_cv_dlopen=no
11736   lt_cv_dlopen_libs=
11737
11738   case $host_os in
11739   beos*)
11740     lt_cv_dlopen=load_add_on
11741     lt_cv_dlopen_libs=
11742     lt_cv_dlopen_self=yes
11743     ;;
11744
11745   mingw* | pw32* | cegcc*)
11746     lt_cv_dlopen=LoadLibrary
11747     lt_cv_dlopen_libs=
11748     ;;
11749
11750   cygwin*)
11751     lt_cv_dlopen=dlopen
11752     lt_cv_dlopen_libs=
11753     ;;
11754
11755   darwin*)
11756     # if libdl is installed we need to link against it
11757     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11758 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11759 if ${ac_cv_lib_dl_dlopen+:} false; then :
11760   $as_echo_n "(cached) " >&6
11761 else
11762   ac_check_lib_save_LIBS=$LIBS
11763 LIBS="-ldl  $LIBS"
11764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765 /* end confdefs.h.  */
11766
11767 /* Override any GCC internal prototype to avoid an error.
11768    Use char because int might match the return type of a GCC
11769    builtin and then its argument prototype would still apply.  */
11770 #ifdef __cplusplus
11771 extern "C"
11772 #endif
11773 char dlopen ();
11774 int
11775 main ()
11776 {
11777 return dlopen ();
11778   ;
11779   return 0;
11780 }
11781 _ACEOF
11782 if ac_fn_c_try_link "$LINENO"; then :
11783   ac_cv_lib_dl_dlopen=yes
11784 else
11785   ac_cv_lib_dl_dlopen=no
11786 fi
11787 rm -f core conftest.err conftest.$ac_objext \
11788     conftest$ac_exeext conftest.$ac_ext
11789 LIBS=$ac_check_lib_save_LIBS
11790 fi
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11792 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11793 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11794   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11795 else
11796
11797     lt_cv_dlopen=dyld
11798     lt_cv_dlopen_libs=
11799     lt_cv_dlopen_self=yes
11800
11801 fi
11802
11803     ;;
11804
11805   tpf*)
11806     # Don't try to run any link tests for TPF.  We know it's impossible
11807     # because TPF is a cross-compiler, and we know how we open DSOs.
11808     lt_cv_dlopen=dlopen
11809     lt_cv_dlopen_libs=
11810     lt_cv_dlopen_self=no
11811     ;;
11812
11813   *)
11814     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11815 if test "x$ac_cv_func_shl_load" = xyes; then :
11816   lt_cv_dlopen=shl_load
11817 else
11818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11819 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11820 if ${ac_cv_lib_dld_shl_load+:} false; then :
11821   $as_echo_n "(cached) " >&6
11822 else
11823   ac_check_lib_save_LIBS=$LIBS
11824 LIBS="-ldld  $LIBS"
11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h.  */
11827
11828 /* Override any GCC internal prototype to avoid an error.
11829    Use char because int might match the return type of a GCC
11830    builtin and then its argument prototype would still apply.  */
11831 #ifdef __cplusplus
11832 extern "C"
11833 #endif
11834 char shl_load ();
11835 int
11836 main ()
11837 {
11838 return shl_load ();
11839   ;
11840   return 0;
11841 }
11842 _ACEOF
11843 if ac_fn_c_try_link "$LINENO"; then :
11844   ac_cv_lib_dld_shl_load=yes
11845 else
11846   ac_cv_lib_dld_shl_load=no
11847 fi
11848 rm -f core conftest.err conftest.$ac_objext \
11849     conftest$ac_exeext conftest.$ac_ext
11850 LIBS=$ac_check_lib_save_LIBS
11851 fi
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11853 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11854 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11855   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11856 else
11857   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11858 if test "x$ac_cv_func_dlopen" = xyes; then :
11859   lt_cv_dlopen=dlopen
11860 else
11861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11862 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11863 if ${ac_cv_lib_dl_dlopen+:} false; then :
11864   $as_echo_n "(cached) " >&6
11865 else
11866   ac_check_lib_save_LIBS=$LIBS
11867 LIBS="-ldl  $LIBS"
11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h.  */
11870
11871 /* Override any GCC internal prototype to avoid an error.
11872    Use char because int might match the return type of a GCC
11873    builtin and then its argument prototype would still apply.  */
11874 #ifdef __cplusplus
11875 extern "C"
11876 #endif
11877 char dlopen ();
11878 int
11879 main ()
11880 {
11881 return dlopen ();
11882   ;
11883   return 0;
11884 }
11885 _ACEOF
11886 if ac_fn_c_try_link "$LINENO"; then :
11887   ac_cv_lib_dl_dlopen=yes
11888 else
11889   ac_cv_lib_dl_dlopen=no
11890 fi
11891 rm -f core conftest.err conftest.$ac_objext \
11892     conftest$ac_exeext conftest.$ac_ext
11893 LIBS=$ac_check_lib_save_LIBS
11894 fi
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11896 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11897 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11898   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11899 else
11900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11901 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11902 if ${ac_cv_lib_svld_dlopen+:} false; then :
11903   $as_echo_n "(cached) " >&6
11904 else
11905   ac_check_lib_save_LIBS=$LIBS
11906 LIBS="-lsvld  $LIBS"
11907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908 /* end confdefs.h.  */
11909
11910 /* Override any GCC internal prototype to avoid an error.
11911    Use char because int might match the return type of a GCC
11912    builtin and then its argument prototype would still apply.  */
11913 #ifdef __cplusplus
11914 extern "C"
11915 #endif
11916 char dlopen ();
11917 int
11918 main ()
11919 {
11920 return dlopen ();
11921   ;
11922   return 0;
11923 }
11924 _ACEOF
11925 if ac_fn_c_try_link "$LINENO"; then :
11926   ac_cv_lib_svld_dlopen=yes
11927 else
11928   ac_cv_lib_svld_dlopen=no
11929 fi
11930 rm -f core conftest.err conftest.$ac_objext \
11931     conftest$ac_exeext conftest.$ac_ext
11932 LIBS=$ac_check_lib_save_LIBS
11933 fi
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11935 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11936 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11937   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11938 else
11939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11940 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11941 if ${ac_cv_lib_dld_dld_link+:} false; then :
11942   $as_echo_n "(cached) " >&6
11943 else
11944   ac_check_lib_save_LIBS=$LIBS
11945 LIBS="-ldld  $LIBS"
11946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11947 /* end confdefs.h.  */
11948
11949 /* Override any GCC internal prototype to avoid an error.
11950    Use char because int might match the return type of a GCC
11951    builtin and then its argument prototype would still apply.  */
11952 #ifdef __cplusplus
11953 extern "C"
11954 #endif
11955 char dld_link ();
11956 int
11957 main ()
11958 {
11959 return dld_link ();
11960   ;
11961   return 0;
11962 }
11963 _ACEOF
11964 if ac_fn_c_try_link "$LINENO"; then :
11965   ac_cv_lib_dld_dld_link=yes
11966 else
11967   ac_cv_lib_dld_dld_link=no
11968 fi
11969 rm -f core conftest.err conftest.$ac_objext \
11970     conftest$ac_exeext conftest.$ac_ext
11971 LIBS=$ac_check_lib_save_LIBS
11972 fi
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11974 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11975 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11976   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11977 fi
11978
11979
11980 fi
11981
11982
11983 fi
11984
11985
11986 fi
11987
11988
11989 fi
11990
11991
11992 fi
11993
11994     ;;
11995   esac
11996
11997   if test no = "$lt_cv_dlopen"; then
11998     enable_dlopen=no
11999   else
12000     enable_dlopen=yes
12001   fi
12002
12003   case $lt_cv_dlopen in
12004   dlopen)
12005     save_CPPFLAGS=$CPPFLAGS
12006     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12007
12008     save_LDFLAGS=$LDFLAGS
12009     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12010
12011     save_LIBS=$LIBS
12012     LIBS="$lt_cv_dlopen_libs $LIBS"
12013
12014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12015 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12016 if ${lt_cv_dlopen_self+:} false; then :
12017   $as_echo_n "(cached) " >&6
12018 else
12019           if test yes = "$cross_compiling"; then :
12020   lt_cv_dlopen_self=cross
12021 else
12022   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12023   lt_status=$lt_dlunknown
12024   cat > conftest.$ac_ext <<_LT_EOF
12025 #line $LINENO "configure"
12026 #include "confdefs.h"
12027
12028 #if HAVE_DLFCN_H
12029 #include <dlfcn.h>
12030 #endif
12031
12032 #include <stdio.h>
12033
12034 #ifdef RTLD_GLOBAL
12035 #  define LT_DLGLOBAL           RTLD_GLOBAL
12036 #else
12037 #  ifdef DL_GLOBAL
12038 #    define LT_DLGLOBAL         DL_GLOBAL
12039 #  else
12040 #    define LT_DLGLOBAL         0
12041 #  endif
12042 #endif
12043
12044 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12045    find out it does not work in some platform. */
12046 #ifndef LT_DLLAZY_OR_NOW
12047 #  ifdef RTLD_LAZY
12048 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12049 #  else
12050 #    ifdef DL_LAZY
12051 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12052 #    else
12053 #      ifdef RTLD_NOW
12054 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12055 #      else
12056 #        ifdef DL_NOW
12057 #          define LT_DLLAZY_OR_NOW      DL_NOW
12058 #        else
12059 #          define LT_DLLAZY_OR_NOW      0
12060 #        endif
12061 #      endif
12062 #    endif
12063 #  endif
12064 #endif
12065
12066 /* When -fvisibility=hidden is used, assume the code has been annotated
12067    correspondingly for the symbols needed.  */
12068 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12069 int fnord () __attribute__((visibility("default")));
12070 #endif
12071
12072 int fnord () { return 42; }
12073 int main ()
12074 {
12075   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12076   int status = $lt_dlunknown;
12077
12078   if (self)
12079     {
12080       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12081       else
12082         {
12083           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12084           else puts (dlerror ());
12085         }
12086       /* dlclose (self); */
12087     }
12088   else
12089     puts (dlerror ());
12090
12091   return status;
12092 }
12093 _LT_EOF
12094   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12095   (eval $ac_link) 2>&5
12096   ac_status=$?
12097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12098   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12099     (./conftest; exit; ) >&5 2>/dev/null
12100     lt_status=$?
12101     case x$lt_status in
12102       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12103       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12104       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12105     esac
12106   else :
12107     # compilation failed
12108     lt_cv_dlopen_self=no
12109   fi
12110 fi
12111 rm -fr conftest*
12112
12113
12114 fi
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12116 $as_echo "$lt_cv_dlopen_self" >&6; }
12117
12118     if test yes = "$lt_cv_dlopen_self"; then
12119       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12120       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12121 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12122 if ${lt_cv_dlopen_self_static+:} false; then :
12123   $as_echo_n "(cached) " >&6
12124 else
12125           if test yes = "$cross_compiling"; then :
12126   lt_cv_dlopen_self_static=cross
12127 else
12128   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12129   lt_status=$lt_dlunknown
12130   cat > conftest.$ac_ext <<_LT_EOF
12131 #line $LINENO "configure"
12132 #include "confdefs.h"
12133
12134 #if HAVE_DLFCN_H
12135 #include <dlfcn.h>
12136 #endif
12137
12138 #include <stdio.h>
12139
12140 #ifdef RTLD_GLOBAL
12141 #  define LT_DLGLOBAL           RTLD_GLOBAL
12142 #else
12143 #  ifdef DL_GLOBAL
12144 #    define LT_DLGLOBAL         DL_GLOBAL
12145 #  else
12146 #    define LT_DLGLOBAL         0
12147 #  endif
12148 #endif
12149
12150 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12151    find out it does not work in some platform. */
12152 #ifndef LT_DLLAZY_OR_NOW
12153 #  ifdef RTLD_LAZY
12154 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12155 #  else
12156 #    ifdef DL_LAZY
12157 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12158 #    else
12159 #      ifdef RTLD_NOW
12160 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12161 #      else
12162 #        ifdef DL_NOW
12163 #          define LT_DLLAZY_OR_NOW      DL_NOW
12164 #        else
12165 #          define LT_DLLAZY_OR_NOW      0
12166 #        endif
12167 #      endif
12168 #    endif
12169 #  endif
12170 #endif
12171
12172 /* When -fvisibility=hidden is used, assume the code has been annotated
12173    correspondingly for the symbols needed.  */
12174 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12175 int fnord () __attribute__((visibility("default")));
12176 #endif
12177
12178 int fnord () { return 42; }
12179 int main ()
12180 {
12181   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12182   int status = $lt_dlunknown;
12183
12184   if (self)
12185     {
12186       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12187       else
12188         {
12189           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12190           else puts (dlerror ());
12191         }
12192       /* dlclose (self); */
12193     }
12194   else
12195     puts (dlerror ());
12196
12197   return status;
12198 }
12199 _LT_EOF
12200   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12201   (eval $ac_link) 2>&5
12202   ac_status=$?
12203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12204   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12205     (./conftest; exit; ) >&5 2>/dev/null
12206     lt_status=$?
12207     case x$lt_status in
12208       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12209       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12210       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12211     esac
12212   else :
12213     # compilation failed
12214     lt_cv_dlopen_self_static=no
12215   fi
12216 fi
12217 rm -fr conftest*
12218
12219
12220 fi
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12222 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12223     fi
12224
12225     CPPFLAGS=$save_CPPFLAGS
12226     LDFLAGS=$save_LDFLAGS
12227     LIBS=$save_LIBS
12228     ;;
12229   esac
12230
12231   case $lt_cv_dlopen_self in
12232   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12233   *) enable_dlopen_self=unknown ;;
12234   esac
12235
12236   case $lt_cv_dlopen_self_static in
12237   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12238   *) enable_dlopen_self_static=unknown ;;
12239   esac
12240 fi
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258 striplib=
12259 old_striplib=
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12261 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12262 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12263   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12264   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12266 $as_echo "yes" >&6; }
12267 else
12268 # FIXME - insert some real tests, host_os isn't really good enough
12269   case $host_os in
12270   darwin*)
12271     if test -n "$STRIP"; then
12272       striplib="$STRIP -x"
12273       old_striplib="$STRIP -S"
12274       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12275 $as_echo "yes" >&6; }
12276     else
12277       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12279     fi
12280     ;;
12281   *)
12282     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12283 $as_echo "no" >&6; }
12284     ;;
12285   esac
12286 fi
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299   # Report what library types will actually be built
12300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12301 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12303 $as_echo "$can_build_shared" >&6; }
12304
12305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12306 $as_echo_n "checking whether to build shared libraries... " >&6; }
12307   test no = "$can_build_shared" && enable_shared=no
12308
12309   # On AIX, shared libraries and static libraries use the same namespace, and
12310   # are all built from PIC.
12311   case $host_os in
12312   aix3*)
12313     test yes = "$enable_shared" && enable_static=no
12314     if test -n "$RANLIB"; then
12315       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12316       postinstall_cmds='$RANLIB $lib'
12317     fi
12318     ;;
12319
12320   aix[4-9]*)
12321     if test ia64 != "$host_cpu"; then
12322       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12323       yes,aix,yes) ;;                   # shared object as lib.so file only
12324       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12325       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12326       esac
12327     fi
12328     ;;
12329   esac
12330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12331 $as_echo "$enable_shared" >&6; }
12332
12333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12334 $as_echo_n "checking whether to build static libraries... " >&6; }
12335   # Make sure either enable_shared or enable_static is yes.
12336   test yes = "$enable_shared" || enable_static=yes
12337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12338 $as_echo "$enable_static" >&6; }
12339
12340
12341
12342
12343 fi
12344 ac_ext=c
12345 ac_cpp='$CPP $CPPFLAGS'
12346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12349
12350 CC=$lt_save_CC
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366         ac_config_commands="$ac_config_commands libtool"
12367
12368
12369
12370
12371 # Only expand once:
12372
12373
12374
12375 # Whether linker support --version-script option
12376 echo '{global:hello; local:*;};' > conftest.ver
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports -version-script" >&5
12378 $as_echo_n "checking whether linker supports -version-script... " >&6; }
12379 if ${datrie_cv_have_version_script+:} false; then :
12380   $as_echo_n "(cached) " >&6
12381 else
12382   datrie_cv_have_version_script=no
12383    save_LDFLAGS=$LDFLAGS
12384    LDFLAGS="$LDFLAGS -Wl,-version-script -Wl,conftest.ver"
12385    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12386    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12387      # The linker can only warn and ignore the option if not recognized
12388      # So say no if there are warnings
12389      if test -s conftest.err; then
12390        # Append any errors to the config.log.
12391        cat conftest.err 1>&5
12392        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12393        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12394        if diff conftest.exp conftest.er2 >/dev/null; then
12395          datrie_cv_have_version_script=yes
12396        fi
12397      else
12398        datrie_cv_have_version_script=yes
12399      fi
12400    fi
12401    $RM -r conftest*
12402    LDFLAGS=$save_LDFLAGS
12403
12404 fi
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $datrie_cv_have_version_script" >&5
12406 $as_echo "$datrie_cv_have_version_script" >&6; }
12407
12408 if test yes = "$datrie_cv_have_version_script"; then
12409     :
12410 else
12411     :
12412 fi
12413
12414
12415  if test "$datrie_cv_have_version_script" = "yes"; then
12416   LD_HAS_VERSION_SCRIPT_TRUE=
12417   LD_HAS_VERSION_SCRIPT_FALSE='#'
12418 else
12419   LD_HAS_VERSION_SCRIPT_TRUE='#'
12420   LD_HAS_VERSION_SCRIPT_FALSE=
12421 fi
12422
12423
12424 # Checks for libraries.
12425
12426 #
12427 # Checks for iconv
12428 #
12429 found_iconv=no
12430 # Check in the C library first
12431 ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
12432 if test "x$ac_cv_func_iconv_open" = xyes; then :
12433   with_libiconv=no; found_iconv=yes
12434 fi
12435
12436 # Check if we have GNU libiconv
12437 if test $found_iconv = "no"; then
12438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
12439 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
12440 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
12441   $as_echo_n "(cached) " >&6
12442 else
12443   ac_check_lib_save_LIBS=$LIBS
12444 LIBS="-liconv  $LIBS"
12445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h.  */
12447
12448 /* Override any GCC internal prototype to avoid an error.
12449    Use char because int might match the return type of a GCC
12450    builtin and then its argument prototype would still apply.  */
12451 #ifdef __cplusplus
12452 extern "C"
12453 #endif
12454 char libiconv_open ();
12455 int
12456 main ()
12457 {
12458 return libiconv_open ();
12459   ;
12460   return 0;
12461 }
12462 _ACEOF
12463 if ac_fn_c_try_link "$LINENO"; then :
12464   ac_cv_lib_iconv_libiconv_open=yes
12465 else
12466   ac_cv_lib_iconv_libiconv_open=no
12467 fi
12468 rm -f core conftest.err conftest.$ac_objext \
12469     conftest$ac_exeext conftest.$ac_ext
12470 LIBS=$ac_check_lib_save_LIBS
12471 fi
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
12473 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
12474 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
12475   with_libiconv=gnu; found_iconv=yes
12476 fi
12477
12478 fi
12479 # Check if we have a iconv in -liconv, possibly from vendor
12480 if test $found_iconv = "no"; then
12481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
12482 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
12483 if ${ac_cv_lib_iconv_iconv_open+:} false; then :
12484   $as_echo_n "(cached) " >&6
12485 else
12486   ac_check_lib_save_LIBS=$LIBS
12487 LIBS="-liconv  $LIBS"
12488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h.  */
12490
12491 /* Override any GCC internal prototype to avoid an error.
12492    Use char because int might match the return type of a GCC
12493    builtin and then its argument prototype would still apply.  */
12494 #ifdef __cplusplus
12495 extern "C"
12496 #endif
12497 char iconv_open ();
12498 int
12499 main ()
12500 {
12501 return iconv_open ();
12502   ;
12503   return 0;
12504 }
12505 _ACEOF
12506 if ac_fn_c_try_link "$LINENO"; then :
12507   ac_cv_lib_iconv_iconv_open=yes
12508 else
12509   ac_cv_lib_iconv_iconv_open=no
12510 fi
12511 rm -f core conftest.err conftest.$ac_objext \
12512     conftest$ac_exeext conftest.$ac_ext
12513 LIBS=$ac_check_lib_save_LIBS
12514 fi
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
12516 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
12517 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
12518   with_libiconv=native; found_iconv=yes
12519 fi
12520
12521 fi
12522 if test $found_iconv = "no"; then
12523   as_fn_error $? "*** No usable iconv() implementation found" "$LINENO" 5
12524 fi
12525
12526 case $with_libiconv in
12527   gnu|native)
12528     ICONV_LIBS="-liconv"
12529     ;;
12530 esac
12531
12532
12533 #
12534 # Checks for locale_charset() and nl_langinfo(CODESET)
12535 #
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_charset in -liconv" >&5
12537 $as_echo_n "checking for locale_charset in -liconv... " >&6; }
12538 if ${ac_cv_lib_iconv_locale_charset+:} false; then :
12539   $as_echo_n "(cached) " >&6
12540 else
12541   ac_check_lib_save_LIBS=$LIBS
12542 LIBS="-liconv  $LIBS"
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h.  */
12545
12546 /* Override any GCC internal prototype to avoid an error.
12547    Use char because int might match the return type of a GCC
12548    builtin and then its argument prototype would still apply.  */
12549 #ifdef __cplusplus
12550 extern "C"
12551 #endif
12552 char locale_charset ();
12553 int
12554 main ()
12555 {
12556 return locale_charset ();
12557   ;
12558   return 0;
12559 }
12560 _ACEOF
12561 if ac_fn_c_try_link "$LINENO"; then :
12562   ac_cv_lib_iconv_locale_charset=yes
12563 else
12564   ac_cv_lib_iconv_locale_charset=no
12565 fi
12566 rm -f core conftest.err conftest.$ac_objext \
12567     conftest$ac_exeext conftest.$ac_ext
12568 LIBS=$ac_check_lib_save_LIBS
12569 fi
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_locale_charset" >&5
12571 $as_echo "$ac_cv_lib_iconv_locale_charset" >&6; }
12572 if test "x$ac_cv_lib_iconv_locale_charset" = xyes; then :
12573   have_locale_charset=yes
12574 else
12575   have_locale_charset=no
12576 fi
12577
12578 if test x$have_locale_charset = xyes; then
12579
12580 $as_echo "#define HAVE_LOCALE_CHARSET 1" >>confdefs.h
12581
12582 fi
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (CODESET)" >&5
12584 $as_echo_n "checking for nl_langinfo (CODESET)... " >&6; }
12585 if ${datrie_cv_langinfo_codeset+:} false; then :
12586   $as_echo_n "(cached) " >&6
12587 else
12588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12589 /* end confdefs.h.  */
12590 #include <langinfo.h>
12591 int
12592 main ()
12593 {
12594 char *codeset = nl_langinfo (CODESET);
12595   ;
12596   return 0;
12597 }
12598 _ACEOF
12599 if ac_fn_c_try_compile "$LINENO"; then :
12600   datrie_cv_langinfo_codeset=yes
12601 else
12602   datrie_cv_langinfo_codeset=no
12603 fi
12604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12605
12606 fi
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $datrie_cv_langinfo_codeset" >&5
12608 $as_echo "$datrie_cv_langinfo_codeset" >&6; }
12609 if test x$datrie_cv_langinfo_codeset = xyes; then
12610
12611 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12612
12613 fi
12614 if test x$have_locale_charset = xno && test x$datrie_cv_langinfo_codeset = xno
12615 then
12616   as_fn_error $? "*** No locale_charset() nor nl_langinfo(CODESET) found.
12617 Please consider installing GNU libiconv." "$LINENO" 5
12618 fi
12619
12620
12621 # Checks for header files.
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12623 $as_echo_n "checking for ANSI C header files... " >&6; }
12624 if ${ac_cv_header_stdc+:} false; then :
12625   $as_echo_n "(cached) " >&6
12626 else
12627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628 /* end confdefs.h.  */
12629 #include <stdlib.h>
12630 #include <stdarg.h>
12631 #include <string.h>
12632 #include <float.h>
12633
12634 int
12635 main ()
12636 {
12637
12638   ;
12639   return 0;
12640 }
12641 _ACEOF
12642 if ac_fn_c_try_compile "$LINENO"; then :
12643   ac_cv_header_stdc=yes
12644 else
12645   ac_cv_header_stdc=no
12646 fi
12647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12648
12649 if test $ac_cv_header_stdc = yes; then
12650   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h.  */
12653 #include <string.h>
12654
12655 _ACEOF
12656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12657   $EGREP "memchr" >/dev/null 2>&1; then :
12658
12659 else
12660   ac_cv_header_stdc=no
12661 fi
12662 rm -f conftest*
12663
12664 fi
12665
12666 if test $ac_cv_header_stdc = yes; then
12667   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h.  */
12670 #include <stdlib.h>
12671
12672 _ACEOF
12673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12674   $EGREP "free" >/dev/null 2>&1; then :
12675
12676 else
12677   ac_cv_header_stdc=no
12678 fi
12679 rm -f conftest*
12680
12681 fi
12682
12683 if test $ac_cv_header_stdc = yes; then
12684   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12685   if test "$cross_compiling" = yes; then :
12686   :
12687 else
12688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12689 /* end confdefs.h.  */
12690 #include <ctype.h>
12691 #include <stdlib.h>
12692 #if ((' ' & 0x0FF) == 0x020)
12693 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12694 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12695 #else
12696 # define ISLOWER(c) \
12697                    (('a' <= (c) && (c) <= 'i') \
12698                      || ('j' <= (c) && (c) <= 'r') \
12699                      || ('s' <= (c) && (c) <= 'z'))
12700 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12701 #endif
12702
12703 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12704 int
12705 main ()
12706 {
12707   int i;
12708   for (i = 0; i < 256; i++)
12709     if (XOR (islower (i), ISLOWER (i))
12710         || toupper (i) != TOUPPER (i))
12711       return 2;
12712   return 0;
12713 }
12714 _ACEOF
12715 if ac_fn_c_try_run "$LINENO"; then :
12716
12717 else
12718   ac_cv_header_stdc=no
12719 fi
12720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12721   conftest.$ac_objext conftest.beam conftest.$ac_ext
12722 fi
12723
12724 fi
12725 fi
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12727 $as_echo "$ac_cv_header_stdc" >&6; }
12728 if test $ac_cv_header_stdc = yes; then
12729
12730 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12731
12732 fi
12733
12734 for ac_header in limits.h stdlib.h stdio.h string.h
12735 do :
12736   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12737 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12738 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12739   cat >>confdefs.h <<_ACEOF
12740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12741 _ACEOF
12742
12743 fi
12744
12745 done
12746
12747
12748 # Checks for typedefs, structures, and compiler characteristics.
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12750 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12751 if ${ac_cv_c_const+:} false; then :
12752   $as_echo_n "(cached) " >&6
12753 else
12754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h.  */
12756
12757 int
12758 main ()
12759 {
12760
12761 #ifndef __cplusplus
12762   /* Ultrix mips cc rejects this sort of thing.  */
12763   typedef int charset[2];
12764   const charset cs = { 0, 0 };
12765   /* SunOS 4.1.1 cc rejects this.  */
12766   char const *const *pcpcc;
12767   char **ppc;
12768   /* NEC SVR4.0.2 mips cc rejects this.  */
12769   struct point {int x, y;};
12770   static struct point const zero = {0,0};
12771   /* AIX XL C 1.02.0.0 rejects this.
12772      It does not let you subtract one const X* pointer from another in
12773      an arm of an if-expression whose if-part is not a constant
12774      expression */
12775   const char *g = "string";
12776   pcpcc = &g + (g ? g-g : 0);
12777   /* HPUX 7.0 cc rejects these. */
12778   ++pcpcc;
12779   ppc = (char**) pcpcc;
12780   pcpcc = (char const *const *) ppc;
12781   { /* SCO 3.2v4 cc rejects this sort of thing.  */
12782     char tx;
12783     char *t = &tx;
12784     char const *s = 0 ? (char *) 0 : (char const *) 0;
12785
12786     *t++ = 0;
12787     if (s) return 0;
12788   }
12789   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12790     int x[] = {25, 17};
12791     const int *foo = &x[0];
12792     ++foo;
12793   }
12794   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12795     typedef const int *iptr;
12796     iptr p = 0;
12797     ++p;
12798   }
12799   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12800        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12801     struct s { int j; const int *ap[3]; } bx;
12802     struct s *b = &bx; b->j = 5;
12803   }
12804   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12805     const int foo = 10;
12806     if (!foo) return 0;
12807   }
12808   return !cs[0] && !zero.x;
12809 #endif
12810
12811   ;
12812   return 0;
12813 }
12814 _ACEOF
12815 if ac_fn_c_try_compile "$LINENO"; then :
12816   ac_cv_c_const=yes
12817 else
12818   ac_cv_c_const=no
12819 fi
12820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12821 fi
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12823 $as_echo "$ac_cv_c_const" >&6; }
12824 if test $ac_cv_c_const = no; then
12825
12826 $as_echo "#define const /**/" >>confdefs.h
12827
12828 fi
12829
12830 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12831 if test "x$ac_cv_type_size_t" = xyes; then :
12832
12833 else
12834
12835 cat >>confdefs.h <<_ACEOF
12836 #define size_t unsigned int
12837 _ACEOF
12838
12839 fi
12840
12841
12842 # Check whether --enable-doxygen-doc was given.
12843 if test "${enable_doxygen_doc+set}" = set; then :
12844   enableval=$enable_doxygen_doc;
12845 else
12846   enable_doxygen_doc="yes"
12847 fi
12848
12849
12850 if test "x$enable_doxygen_doc" = "xyes"; then
12851   # Extract the first word of "doxygen", so it can be a program name with args.
12852 set dummy doxygen; ac_word=$2
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12854 $as_echo_n "checking for $ac_word... " >&6; }
12855 if ${ac_cv_prog_DOXYGEN+:} false; then :
12856   $as_echo_n "(cached) " >&6
12857 else
12858   if test -n "$DOXYGEN"; then
12859   ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
12860 else
12861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12862 for as_dir in $PATH
12863 do
12864   IFS=$as_save_IFS
12865   test -z "$as_dir" && as_dir=.
12866     for ac_exec_ext in '' $ac_executable_extensions; do
12867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12868     ac_cv_prog_DOXYGEN="doxygen"
12869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12870     break 2
12871   fi
12872 done
12873   done
12874 IFS=$as_save_IFS
12875
12876   test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="no"
12877 fi
12878 fi
12879 DOXYGEN=$ac_cv_prog_DOXYGEN
12880 if test -n "$DOXYGEN"; then
12881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
12882 $as_echo "$DOXYGEN" >&6; }
12883 else
12884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12885 $as_echo "no" >&6; }
12886 fi
12887
12888
12889   if test "x$DOXYGEN" = "xno"; then
12890     enable_doxygen_doc="no"
12891   else
12892     { $as_echo "$as_me:${as_lineno-$LINENO}: checking doxygen >= $DOXYGEN_REQ_VER" >&5
12893 $as_echo_n "checking doxygen >= $DOXYGEN_REQ_VER... " >&6; }
12894     DOXYGEN_VER=$($DOXYGEN --version)
12895
12896
12897
12898   # Used to indicate true or false condition
12899   ax_compare_version=false
12900
12901   # Convert the two version strings to be compared into a format that
12902   # allows a simple string comparison.  The end result is that a version
12903   # string of the form 1.12.5-r617 will be converted to the form
12904   # 0001001200050617.  In other words, each number is zero padded to four
12905   # digits, and non digits are removed.
12906
12907   ax_compare_version_A=`echo "$DOXYGEN_VER" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
12908                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
12909                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
12910                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
12911                      -e 's/[^0-9]//g'`
12912
12913
12914   ax_compare_version_B=`echo "DOXYGEN_REQ_VER" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
12915                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
12916                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
12917                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
12918                      -e 's/[^0-9]//g'`
12919
12920
12921     ax_compare_version=`echo "x$ax_compare_version_A
12922 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
12923
12924
12925
12926     if test "$ax_compare_version" = "true" ; then
12927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN_VER, yes" >&5
12928 $as_echo "$DOXYGEN_VER, yes" >&6; }
12929     else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN_VER, no, documentation disabled" >&5
12930 $as_echo "$DOXYGEN_VER, no, documentation disabled" >&6; }; enable_doxygen_doc="no"
12931   fi
12932
12933   fi
12934 fi
12935
12936
12937 # Check whether --with-html-docdir was given.
12938 if test "${with_html_docdir+set}" = set; then :
12939   withval=$with_html_docdir; htmldocdir="$withval"
12940 else
12941   htmldocdir=\$\{prefix\}/share/doc/datrie/html
12942 fi
12943
12944
12945
12946  if test "x$enable_doxygen_doc" = "xyes"; then
12947   ENABLE_DOXYGEN_DOC_TRUE=
12948   ENABLE_DOXYGEN_DOC_FALSE='#'
12949 else
12950   ENABLE_DOXYGEN_DOC_TRUE='#'
12951   ENABLE_DOXYGEN_DOC_FALSE=
12952 fi
12953
12954
12955 # Checks for library functions.
12956 for ac_header in stdlib.h
12957 do :
12958   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12959 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12960   cat >>confdefs.h <<_ACEOF
12961 #define HAVE_STDLIB_H 1
12962 _ACEOF
12963
12964 fi
12965
12966 done
12967
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12969 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12970 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12971   $as_echo_n "(cached) " >&6
12972 else
12973   if test "$cross_compiling" = yes; then :
12974   ac_cv_func_malloc_0_nonnull=no
12975 else
12976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h.  */
12978 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12979 # include <stdlib.h>
12980 #else
12981 char *malloc ();
12982 #endif
12983
12984 int
12985 main ()
12986 {
12987 return ! malloc (0);
12988   ;
12989   return 0;
12990 }
12991 _ACEOF
12992 if ac_fn_c_try_run "$LINENO"; then :
12993   ac_cv_func_malloc_0_nonnull=yes
12994 else
12995   ac_cv_func_malloc_0_nonnull=no
12996 fi
12997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12998   conftest.$ac_objext conftest.beam conftest.$ac_ext
12999 fi
13000
13001 fi
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13003 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13004 if test $ac_cv_func_malloc_0_nonnull = yes; then :
13005
13006 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
13007
13008 else
13009   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
13010
13011    case " $LIBOBJS " in
13012   *" malloc.$ac_objext "* ) ;;
13013   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
13014  ;;
13015 esac
13016
13017
13018 $as_echo "#define malloc rpl_malloc" >>confdefs.h
13019
13020 fi
13021
13022
13023
13024 ac_config_files="$ac_config_files Makefile datrie-0.2.pc datrie/Makefile tools/Makefile man/Makefile doc/Makefile doc/Doxyfile tests/Makefile"
13025
13026 cat >confcache <<\_ACEOF
13027 # This file is a shell script that caches the results of configure
13028 # tests run on this system so they can be shared between configure
13029 # scripts and configure runs, see configure's option --config-cache.
13030 # It is not useful on other systems.  If it contains results you don't
13031 # want to keep, you may remove or edit it.
13032 #
13033 # config.status only pays attention to the cache file if you give it
13034 # the --recheck option to rerun configure.
13035 #
13036 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13037 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13038 # following values.
13039
13040 _ACEOF
13041
13042 # The following way of writing the cache mishandles newlines in values,
13043 # but we know of no workaround that is simple, portable, and efficient.
13044 # So, we kill variables containing newlines.
13045 # Ultrix sh set writes to stderr and can't be redirected directly,
13046 # and sets the high bit in the cache file unless we assign to the vars.
13047 (
13048   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13049     eval ac_val=\$$ac_var
13050     case $ac_val in #(
13051     *${as_nl}*)
13052       case $ac_var in #(
13053       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13055       esac
13056       case $ac_var in #(
13057       _ | IFS | as_nl) ;; #(
13058       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13059       *) { eval $ac_var=; unset $ac_var;} ;;
13060       esac ;;
13061     esac
13062   done
13063
13064   (set) 2>&1 |
13065     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13066     *${as_nl}ac_space=\ *)
13067       # `set' does not quote correctly, so add quotes: double-quote
13068       # substitution turns \\\\ into \\, and sed turns \\ into \.
13069       sed -n \
13070         "s/'/'\\\\''/g;
13071           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13072       ;; #(
13073     *)
13074       # `set' quotes correctly as required by POSIX, so do not add quotes.
13075       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13076       ;;
13077     esac |
13078     sort
13079 ) |
13080   sed '
13081      /^ac_cv_env_/b end
13082      t clear
13083      :clear
13084      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13085      t end
13086      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13087      :end' >>confcache
13088 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13089   if test -w "$cache_file"; then
13090     if test "x$cache_file" != "x/dev/null"; then
13091       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13092 $as_echo "$as_me: updating cache $cache_file" >&6;}
13093       if test ! -f "$cache_file" || test -h "$cache_file"; then
13094         cat confcache >"$cache_file"
13095       else
13096         case $cache_file in #(
13097         */* | ?:*)
13098           mv -f confcache "$cache_file"$$ &&
13099           mv -f "$cache_file"$$ "$cache_file" ;; #(
13100         *)
13101           mv -f confcache "$cache_file" ;;
13102         esac
13103       fi
13104     fi
13105   else
13106     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13107 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13108   fi
13109 fi
13110 rm -f confcache
13111
13112 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13113 # Let make expand exec_prefix.
13114 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13115
13116 DEFS=-DHAVE_CONFIG_H
13117
13118 ac_libobjs=
13119 ac_ltlibobjs=
13120 U=
13121 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13122   # 1. Remove the extension, and $U if already installed.
13123   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13124   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13125   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13126   #    will be set to the directory where LIBOBJS objects are built.
13127   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13128   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13129 done
13130 LIBOBJS=$ac_libobjs
13131
13132 LTLIBOBJS=$ac_ltlibobjs
13133
13134
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13136 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13137    if test -n "$am_sleep_pid"; then
13138      # Hide warnings about reused PIDs.
13139      wait $am_sleep_pid 2>/dev/null
13140    fi
13141    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13142 $as_echo "done" >&6; }
13143  if test -n "$EXEEXT"; then
13144   am__EXEEXT_TRUE=
13145   am__EXEEXT_FALSE='#'
13146 else
13147   am__EXEEXT_TRUE='#'
13148   am__EXEEXT_FALSE=
13149 fi
13150
13151 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13152   as_fn_error $? "conditional \"AMDEP\" was never defined.
13153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13154 fi
13155 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13156   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13158 fi
13159 if test -z "${LD_HAS_VERSION_SCRIPT_TRUE}" && test -z "${LD_HAS_VERSION_SCRIPT_FALSE}"; then
13160   as_fn_error $? "conditional \"LD_HAS_VERSION_SCRIPT\" was never defined.
13161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13162 fi
13163 if test -z "${ENABLE_DOXYGEN_DOC_TRUE}" && test -z "${ENABLE_DOXYGEN_DOC_FALSE}"; then
13164   as_fn_error $? "conditional \"ENABLE_DOXYGEN_DOC\" was never defined.
13165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13166 fi
13167
13168 : "${CONFIG_STATUS=./config.status}"
13169 ac_write_fail=0
13170 ac_clean_files_save=$ac_clean_files
13171 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13173 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13174 as_write_fail=0
13175 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13176 #! $SHELL
13177 # Generated by $as_me.
13178 # Run this file to recreate the current configuration.
13179 # Compiler output produced by configure, useful for debugging
13180 # configure, is in config.log if it exists.
13181
13182 debug=false
13183 ac_cs_recheck=false
13184 ac_cs_silent=false
13185
13186 SHELL=\${CONFIG_SHELL-$SHELL}
13187 export SHELL
13188 _ASEOF
13189 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13190 ## -------------------- ##
13191 ## M4sh Initialization. ##
13192 ## -------------------- ##
13193
13194 # Be more Bourne compatible
13195 DUALCASE=1; export DUALCASE # for MKS sh
13196 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13197   emulate sh
13198   NULLCMD=:
13199   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13200   # is contrary to our usage.  Disable this feature.
13201   alias -g '${1+"$@"}'='"$@"'
13202   setopt NO_GLOB_SUBST
13203 else
13204   case `(set -o) 2>/dev/null` in #(
13205   *posix*) :
13206     set -o posix ;; #(
13207   *) :
13208      ;;
13209 esac
13210 fi
13211
13212
13213 as_nl='
13214 '
13215 export as_nl
13216 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13217 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13218 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13219 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13220 # Prefer a ksh shell builtin over an external printf program on Solaris,
13221 # but without wasting forks for bash or zsh.
13222 if test -z "$BASH_VERSION$ZSH_VERSION" \
13223     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13224   as_echo='print -r --'
13225   as_echo_n='print -rn --'
13226 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13227   as_echo='printf %s\n'
13228   as_echo_n='printf %s'
13229 else
13230   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13231     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13232     as_echo_n='/usr/ucb/echo -n'
13233   else
13234     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13235     as_echo_n_body='eval
13236       arg=$1;
13237       case $arg in #(
13238       *"$as_nl"*)
13239         expr "X$arg" : "X\\(.*\\)$as_nl";
13240         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13241       esac;
13242       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13243     '
13244     export as_echo_n_body
13245     as_echo_n='sh -c $as_echo_n_body as_echo'
13246   fi
13247   export as_echo_body
13248   as_echo='sh -c $as_echo_body as_echo'
13249 fi
13250
13251 # The user is always right.
13252 if test "${PATH_SEPARATOR+set}" != set; then
13253   PATH_SEPARATOR=:
13254   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13255     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13256       PATH_SEPARATOR=';'
13257   }
13258 fi
13259
13260
13261 # IFS
13262 # We need space, tab and new line, in precisely that order.  Quoting is
13263 # there to prevent editors from complaining about space-tab.
13264 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13265 # splitting by setting IFS to empty value.)
13266 IFS=" ""        $as_nl"
13267
13268 # Find who we are.  Look in the path if we contain no directory separator.
13269 as_myself=
13270 case $0 in #((
13271   *[\\/]* ) as_myself=$0 ;;
13272   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273 for as_dir in $PATH
13274 do
13275   IFS=$as_save_IFS
13276   test -z "$as_dir" && as_dir=.
13277     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13278   done
13279 IFS=$as_save_IFS
13280
13281      ;;
13282 esac
13283 # We did not find ourselves, most probably we were run as `sh COMMAND'
13284 # in which case we are not to be found in the path.
13285 if test "x$as_myself" = x; then
13286   as_myself=$0
13287 fi
13288 if test ! -f "$as_myself"; then
13289   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13290   exit 1
13291 fi
13292
13293 # Unset variables that we do not need and which cause bugs (e.g. in
13294 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13295 # suppresses any "Segmentation fault" message there.  '((' could
13296 # trigger a bug in pdksh 5.2.14.
13297 for as_var in BASH_ENV ENV MAIL MAILPATH
13298 do eval test x\${$as_var+set} = xset \
13299   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13300 done
13301 PS1='$ '
13302 PS2='> '
13303 PS4='+ '
13304
13305 # NLS nuisances.
13306 LC_ALL=C
13307 export LC_ALL
13308 LANGUAGE=C
13309 export LANGUAGE
13310
13311 # CDPATH.
13312 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13313
13314
13315 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13316 # ----------------------------------------
13317 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13318 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13319 # script with STATUS, using 1 if that was 0.
13320 as_fn_error ()
13321 {
13322   as_status=$1; test $as_status -eq 0 && as_status=1
13323   if test "$4"; then
13324     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13325     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13326   fi
13327   $as_echo "$as_me: error: $2" >&2
13328   as_fn_exit $as_status
13329 } # as_fn_error
13330
13331
13332 # as_fn_set_status STATUS
13333 # -----------------------
13334 # Set $? to STATUS, without forking.
13335 as_fn_set_status ()
13336 {
13337   return $1
13338 } # as_fn_set_status
13339
13340 # as_fn_exit STATUS
13341 # -----------------
13342 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13343 as_fn_exit ()
13344 {
13345   set +e
13346   as_fn_set_status $1
13347   exit $1
13348 } # as_fn_exit
13349
13350 # as_fn_unset VAR
13351 # ---------------
13352 # Portably unset VAR.
13353 as_fn_unset ()
13354 {
13355   { eval $1=; unset $1;}
13356 }
13357 as_unset=as_fn_unset
13358 # as_fn_append VAR VALUE
13359 # ----------------------
13360 # Append the text in VALUE to the end of the definition contained in VAR. Take
13361 # advantage of any shell optimizations that allow amortized linear growth over
13362 # repeated appends, instead of the typical quadratic growth present in naive
13363 # implementations.
13364 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13365   eval 'as_fn_append ()
13366   {
13367     eval $1+=\$2
13368   }'
13369 else
13370   as_fn_append ()
13371   {
13372     eval $1=\$$1\$2
13373   }
13374 fi # as_fn_append
13375
13376 # as_fn_arith ARG...
13377 # ------------------
13378 # Perform arithmetic evaluation on the ARGs, and store the result in the
13379 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13380 # must be portable across $(()) and expr.
13381 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13382   eval 'as_fn_arith ()
13383   {
13384     as_val=$(( $* ))
13385   }'
13386 else
13387   as_fn_arith ()
13388   {
13389     as_val=`expr "$@" || test $? -eq 1`
13390   }
13391 fi # as_fn_arith
13392
13393
13394 if expr a : '\(a\)' >/dev/null 2>&1 &&
13395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13396   as_expr=expr
13397 else
13398   as_expr=false
13399 fi
13400
13401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13402   as_basename=basename
13403 else
13404   as_basename=false
13405 fi
13406
13407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13408   as_dirname=dirname
13409 else
13410   as_dirname=false
13411 fi
13412
13413 as_me=`$as_basename -- "$0" ||
13414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13415          X"$0" : 'X\(//\)$' \| \
13416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13417 $as_echo X/"$0" |
13418     sed '/^.*\/\([^/][^/]*\)\/*$/{
13419             s//\1/
13420             q
13421           }
13422           /^X\/\(\/\/\)$/{
13423             s//\1/
13424             q
13425           }
13426           /^X\/\(\/\).*/{
13427             s//\1/
13428             q
13429           }
13430           s/.*/./; q'`
13431
13432 # Avoid depending upon Character Ranges.
13433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13436 as_cr_digits='0123456789'
13437 as_cr_alnum=$as_cr_Letters$as_cr_digits
13438
13439 ECHO_C= ECHO_N= ECHO_T=
13440 case `echo -n x` in #(((((
13441 -n*)
13442   case `echo 'xy\c'` in
13443   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13444   xy)  ECHO_C='\c';;
13445   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13446        ECHO_T=' ';;
13447   esac;;
13448 *)
13449   ECHO_N='-n';;
13450 esac
13451
13452 rm -f conf$$ conf$$.exe conf$$.file
13453 if test -d conf$$.dir; then
13454   rm -f conf$$.dir/conf$$.file
13455 else
13456   rm -f conf$$.dir
13457   mkdir conf$$.dir 2>/dev/null
13458 fi
13459 if (echo >conf$$.file) 2>/dev/null; then
13460   if ln -s conf$$.file conf$$ 2>/dev/null; then
13461     as_ln_s='ln -s'
13462     # ... but there are two gotchas:
13463     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13464     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13465     # In both cases, we have to default to `cp -pR'.
13466     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13467       as_ln_s='cp -pR'
13468   elif ln conf$$.file conf$$ 2>/dev/null; then
13469     as_ln_s=ln
13470   else
13471     as_ln_s='cp -pR'
13472   fi
13473 else
13474   as_ln_s='cp -pR'
13475 fi
13476 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13477 rmdir conf$$.dir 2>/dev/null
13478
13479
13480 # as_fn_mkdir_p
13481 # -------------
13482 # Create "$as_dir" as a directory, including parents if necessary.
13483 as_fn_mkdir_p ()
13484 {
13485
13486   case $as_dir in #(
13487   -*) as_dir=./$as_dir;;
13488   esac
13489   test -d "$as_dir" || eval $as_mkdir_p || {
13490     as_dirs=
13491     while :; do
13492       case $as_dir in #(
13493       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13494       *) as_qdir=$as_dir;;
13495       esac
13496       as_dirs="'$as_qdir' $as_dirs"
13497       as_dir=`$as_dirname -- "$as_dir" ||
13498 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13499          X"$as_dir" : 'X\(//\)[^/]' \| \
13500          X"$as_dir" : 'X\(//\)$' \| \
13501          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13502 $as_echo X"$as_dir" |
13503     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13504             s//\1/
13505             q
13506           }
13507           /^X\(\/\/\)[^/].*/{
13508             s//\1/
13509             q
13510           }
13511           /^X\(\/\/\)$/{
13512             s//\1/
13513             q
13514           }
13515           /^X\(\/\).*/{
13516             s//\1/
13517             q
13518           }
13519           s/.*/./; q'`
13520       test -d "$as_dir" && break
13521     done
13522     test -z "$as_dirs" || eval "mkdir $as_dirs"
13523   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13524
13525
13526 } # as_fn_mkdir_p
13527 if mkdir -p . 2>/dev/null; then
13528   as_mkdir_p='mkdir -p "$as_dir"'
13529 else
13530   test -d ./-p && rmdir ./-p
13531   as_mkdir_p=false
13532 fi
13533
13534
13535 # as_fn_executable_p FILE
13536 # -----------------------
13537 # Test if FILE is an executable regular file.
13538 as_fn_executable_p ()
13539 {
13540   test -f "$1" && test -x "$1"
13541 } # as_fn_executable_p
13542 as_test_x='test -x'
13543 as_executable_p=as_fn_executable_p
13544
13545 # Sed expression to map a string onto a valid CPP name.
13546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13547
13548 # Sed expression to map a string onto a valid variable name.
13549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13550
13551
13552 exec 6>&1
13553 ## ----------------------------------- ##
13554 ## Main body of $CONFIG_STATUS script. ##
13555 ## ----------------------------------- ##
13556 _ASEOF
13557 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13558
13559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13560 # Save the log message, to keep $0 and so on meaningful, and to
13561 # report actual input values of CONFIG_FILES etc. instead of their
13562 # values after options handling.
13563 ac_log="
13564 This file was extended by libdatrie $as_me 0.2.12, which was
13565 generated by GNU Autoconf 2.69.  Invocation command line was
13566
13567   CONFIG_FILES    = $CONFIG_FILES
13568   CONFIG_HEADERS  = $CONFIG_HEADERS
13569   CONFIG_LINKS    = $CONFIG_LINKS
13570   CONFIG_COMMANDS = $CONFIG_COMMANDS
13571   $ $0 $@
13572
13573 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13574 "
13575
13576 _ACEOF
13577
13578 case $ac_config_files in *"
13579 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13580 esac
13581
13582 case $ac_config_headers in *"
13583 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13584 esac
13585
13586
13587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13588 # Files that config.status was made for.
13589 config_files="$ac_config_files"
13590 config_headers="$ac_config_headers"
13591 config_commands="$ac_config_commands"
13592
13593 _ACEOF
13594
13595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13596 ac_cs_usage="\
13597 \`$as_me' instantiates files and other configuration actions
13598 from templates according to the current configuration.  Unless the files
13599 and actions are specified as TAGs, all are instantiated by default.
13600
13601 Usage: $0 [OPTION]... [TAG]...
13602
13603   -h, --help       print this help, then exit
13604   -V, --version    print version number and configuration settings, then exit
13605       --config     print configuration, then exit
13606   -q, --quiet, --silent
13607                    do not print progress messages
13608   -d, --debug      don't remove temporary files
13609       --recheck    update $as_me by reconfiguring in the same conditions
13610       --file=FILE[:TEMPLATE]
13611                    instantiate the configuration file FILE
13612       --header=FILE[:TEMPLATE]
13613                    instantiate the configuration header FILE
13614
13615 Configuration files:
13616 $config_files
13617
13618 Configuration headers:
13619 $config_headers
13620
13621 Configuration commands:
13622 $config_commands
13623
13624 Report bugs to <theppitak@gmail.com>."
13625
13626 _ACEOF
13627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13628 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13629 ac_cs_version="\\
13630 libdatrie config.status 0.2.12
13631 configured by $0, generated by GNU Autoconf 2.69,
13632   with options \\"\$ac_cs_config\\"
13633
13634 Copyright (C) 2012 Free Software Foundation, Inc.
13635 This config.status script is free software; the Free Software Foundation
13636 gives unlimited permission to copy, distribute and modify it."
13637
13638 ac_pwd='$ac_pwd'
13639 srcdir='$srcdir'
13640 INSTALL='$INSTALL'
13641 MKDIR_P='$MKDIR_P'
13642 AWK='$AWK'
13643 test -n "\$AWK" || AWK=awk
13644 _ACEOF
13645
13646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13647 # The default lists apply if the user does not specify any file.
13648 ac_need_defaults=:
13649 while test $# != 0
13650 do
13651   case $1 in
13652   --*=?*)
13653     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13654     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13655     ac_shift=:
13656     ;;
13657   --*=)
13658     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13659     ac_optarg=
13660     ac_shift=:
13661     ;;
13662   *)
13663     ac_option=$1
13664     ac_optarg=$2
13665     ac_shift=shift
13666     ;;
13667   esac
13668
13669   case $ac_option in
13670   # Handling of the options.
13671   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13672     ac_cs_recheck=: ;;
13673   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13674     $as_echo "$ac_cs_version"; exit ;;
13675   --config | --confi | --conf | --con | --co | --c )
13676     $as_echo "$ac_cs_config"; exit ;;
13677   --debug | --debu | --deb | --de | --d | -d )
13678     debug=: ;;
13679   --file | --fil | --fi | --f )
13680     $ac_shift
13681     case $ac_optarg in
13682     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13683     '') as_fn_error $? "missing file argument" ;;
13684     esac
13685     as_fn_append CONFIG_FILES " '$ac_optarg'"
13686     ac_need_defaults=false;;
13687   --header | --heade | --head | --hea )
13688     $ac_shift
13689     case $ac_optarg in
13690     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13691     esac
13692     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13693     ac_need_defaults=false;;
13694   --he | --h)
13695     # Conflict between --help and --header
13696     as_fn_error $? "ambiguous option: \`$1'
13697 Try \`$0 --help' for more information.";;
13698   --help | --hel | -h )
13699     $as_echo "$ac_cs_usage"; exit ;;
13700   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13701   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13702     ac_cs_silent=: ;;
13703
13704   # This is an error.
13705   -*) as_fn_error $? "unrecognized option: \`$1'
13706 Try \`$0 --help' for more information." ;;
13707
13708   *) as_fn_append ac_config_targets " $1"
13709      ac_need_defaults=false ;;
13710
13711   esac
13712   shift
13713 done
13714
13715 ac_configure_extra_args=
13716
13717 if $ac_cs_silent; then
13718   exec 6>/dev/null
13719   ac_configure_extra_args="$ac_configure_extra_args --silent"
13720 fi
13721
13722 _ACEOF
13723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13724 if \$ac_cs_recheck; then
13725   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13726   shift
13727   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13728   CONFIG_SHELL='$SHELL'
13729   export CONFIG_SHELL
13730   exec "\$@"
13731 fi
13732
13733 _ACEOF
13734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13735 exec 5>>config.log
13736 {
13737   echo
13738   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13739 ## Running $as_me. ##
13740 _ASBOX
13741   $as_echo "$ac_log"
13742 } >&5
13743
13744 _ACEOF
13745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13746 #
13747 # INIT-COMMANDS
13748 #
13749 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13750
13751
13752 # The HP-UX ksh and POSIX shell print the target directory to stdout
13753 # if CDPATH is set.
13754 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13755
13756 sed_quote_subst='$sed_quote_subst'
13757 double_quote_subst='$double_quote_subst'
13758 delay_variable_subst='$delay_variable_subst'
13759 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13760 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13761 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13762 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13763 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13764 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13765 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13766 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13767 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13768 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13769 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13770 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13771 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13772 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13773 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13774 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13775 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13776 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13777 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13778 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13779 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13780 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13781 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13782 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13783 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13784 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13785 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13786 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13787 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13788 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13789 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13790 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13791 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13792 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13793 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13794 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13795 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13796 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13797 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13798 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13799 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13800 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13801 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13802 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13803 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13804 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13805 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13806 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13807 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13808 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13809 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13810 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13811 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13812 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13813 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13814 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13815 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13816 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13817 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13818 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"`'
13819 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13820 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13821 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13822 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13823 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13824 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13825 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13826 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13827 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13828 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13829 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13830 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13831 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13832 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13833 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13834 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13835 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13836 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13837 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13838 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13839 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13840 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13841 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13842 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13843 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13844 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13845 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13846 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13847 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13848 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13849 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13850 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13851 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13852 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13853 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13854 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13855 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13856 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13857 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13858 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13859 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13860 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13861 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13862 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13863 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13864 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13865 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13866 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13867 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13868 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13869 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13870 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13871 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13872 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13873 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13874 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13875 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13876 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13877 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13878 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13879 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13880 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13881 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13882 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13883 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13884 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13885 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13886 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13887 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13888 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13889 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13890 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13891 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13892 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13893 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13894 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13895
13896 LTCC='$LTCC'
13897 LTCFLAGS='$LTCFLAGS'
13898 compiler='$compiler_DEFAULT'
13899
13900 # A function that is used when there is no print builtin or printf.
13901 func_fallback_echo ()
13902 {
13903   eval 'cat <<_LTECHO_EOF
13904 \$1
13905 _LTECHO_EOF'
13906 }
13907
13908 # Quote evaled strings.
13909 for var in AS \
13910 DLLTOOL \
13911 OBJDUMP \
13912 SHELL \
13913 ECHO \
13914 PATH_SEPARATOR \
13915 SED \
13916 GREP \
13917 EGREP \
13918 FGREP \
13919 LD \
13920 NM \
13921 LN_S \
13922 lt_SP2NL \
13923 lt_NL2SP \
13924 reload_flag \
13925 deplibs_check_method \
13926 file_magic_cmd \
13927 file_magic_glob \
13928 want_nocaseglob \
13929 sharedlib_from_linklib_cmd \
13930 AR \
13931 AR_FLAGS \
13932 archiver_list_spec \
13933 STRIP \
13934 RANLIB \
13935 CC \
13936 CFLAGS \
13937 compiler \
13938 lt_cv_sys_global_symbol_pipe \
13939 lt_cv_sys_global_symbol_to_cdecl \
13940 lt_cv_sys_global_symbol_to_import \
13941 lt_cv_sys_global_symbol_to_c_name_address \
13942 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13943 lt_cv_nm_interface \
13944 nm_file_list_spec \
13945 lt_cv_truncate_bin \
13946 lt_prog_compiler_no_builtin_flag \
13947 lt_prog_compiler_pic \
13948 lt_prog_compiler_wl \
13949 lt_prog_compiler_static \
13950 lt_cv_prog_compiler_c_o \
13951 need_locks \
13952 MANIFEST_TOOL \
13953 DSYMUTIL \
13954 NMEDIT \
13955 LIPO \
13956 OTOOL \
13957 OTOOL64 \
13958 shrext_cmds \
13959 export_dynamic_flag_spec \
13960 whole_archive_flag_spec \
13961 compiler_needs_object \
13962 with_gnu_ld \
13963 allow_undefined_flag \
13964 no_undefined_flag \
13965 hardcode_libdir_flag_spec \
13966 hardcode_libdir_separator \
13967 exclude_expsyms \
13968 include_expsyms \
13969 file_list_spec \
13970 variables_saved_for_relink \
13971 libname_spec \
13972 library_names_spec \
13973 soname_spec \
13974 install_override_mode \
13975 finish_eval \
13976 old_striplib \
13977 striplib; do
13978     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13979     *[\\\\\\\`\\"\\\$]*)
13980       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13981       ;;
13982     *)
13983       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13984       ;;
13985     esac
13986 done
13987
13988 # Double-quote double-evaled strings.
13989 for var in reload_cmds \
13990 old_postinstall_cmds \
13991 old_postuninstall_cmds \
13992 old_archive_cmds \
13993 extract_expsyms_cmds \
13994 old_archive_from_new_cmds \
13995 old_archive_from_expsyms_cmds \
13996 archive_cmds \
13997 archive_expsym_cmds \
13998 module_cmds \
13999 module_expsym_cmds \
14000 export_symbols_cmds \
14001 prelink_cmds \
14002 postlink_cmds \
14003 postinstall_cmds \
14004 postuninstall_cmds \
14005 finish_cmds \
14006 sys_lib_search_path_spec \
14007 configure_time_dlsearch_path \
14008 configure_time_lt_sys_library_path; do
14009     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14010     *[\\\\\\\`\\"\\\$]*)
14011       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14012       ;;
14013     *)
14014       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14015       ;;
14016     esac
14017 done
14018
14019 ac_aux_dir='$ac_aux_dir'
14020
14021 # See if we are running on zsh, and set the options that allow our
14022 # commands through without removal of \ escapes INIT.
14023 if test -n "\${ZSH_VERSION+set}"; then
14024    setopt NO_GLOB_SUBST
14025 fi
14026
14027
14028     PACKAGE='$PACKAGE'
14029     VERSION='$VERSION'
14030     RM='$RM'
14031     ofile='$ofile'
14032
14033
14034
14035
14036 _ACEOF
14037
14038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14039
14040 # Handling of arguments.
14041 for ac_config_target in $ac_config_targets
14042 do
14043   case $ac_config_target in
14044     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14045     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14046     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14047     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14048     "datrie-0.2.pc") CONFIG_FILES="$CONFIG_FILES datrie-0.2.pc" ;;
14049     "datrie/Makefile") CONFIG_FILES="$CONFIG_FILES datrie/Makefile" ;;
14050     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14051     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14052     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14053     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
14054     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14055
14056   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14057   esac
14058 done
14059
14060
14061 # If the user did not use the arguments to specify the items to instantiate,
14062 # then the envvar interface is used.  Set only those that are not.
14063 # We use the long form for the default assignment because of an extremely
14064 # bizarre bug on SunOS 4.1.3.
14065 if $ac_need_defaults; then
14066   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14067   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14068   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14069 fi
14070
14071 # Have a temporary directory for convenience.  Make it in the build tree
14072 # simply because there is no reason against having it here, and in addition,
14073 # creating and moving files from /tmp can sometimes cause problems.
14074 # Hook for its removal unless debugging.
14075 # Note that there is a small window in which the directory will not be cleaned:
14076 # after its creation but before its name has been assigned to `$tmp'.
14077 $debug ||
14078 {
14079   tmp= ac_tmp=
14080   trap 'exit_status=$?
14081   : "${ac_tmp:=$tmp}"
14082   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14083 ' 0
14084   trap 'as_fn_exit 1' 1 2 13 15
14085 }
14086 # Create a (secure) tmp directory for tmp files.
14087
14088 {
14089   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14090   test -d "$tmp"
14091 }  ||
14092 {
14093   tmp=./conf$$-$RANDOM
14094   (umask 077 && mkdir "$tmp")
14095 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14096 ac_tmp=$tmp
14097
14098 # Set up the scripts for CONFIG_FILES section.
14099 # No need to generate them if there are no CONFIG_FILES.
14100 # This happens for instance with `./config.status config.h'.
14101 if test -n "$CONFIG_FILES"; then
14102
14103
14104 ac_cr=`echo X | tr X '\015'`
14105 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14106 # But we know of no other shell where ac_cr would be empty at this
14107 # point, so we can use a bashism as a fallback.
14108 if test "x$ac_cr" = x; then
14109   eval ac_cr=\$\'\\r\'
14110 fi
14111 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14112 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14113   ac_cs_awk_cr='\\r'
14114 else
14115   ac_cs_awk_cr=$ac_cr
14116 fi
14117
14118 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14119 _ACEOF
14120
14121
14122 {
14123   echo "cat >conf$$subs.awk <<_ACEOF" &&
14124   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14125   echo "_ACEOF"
14126 } >conf$$subs.sh ||
14127   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14128 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14129 ac_delim='%!_!# '
14130 for ac_last_try in false false false false false :; do
14131   . ./conf$$subs.sh ||
14132     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14133
14134   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14135   if test $ac_delim_n = $ac_delim_num; then
14136     break
14137   elif $ac_last_try; then
14138     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14139   else
14140     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14141   fi
14142 done
14143 rm -f conf$$subs.sh
14144
14145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14146 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14147 _ACEOF
14148 sed -n '
14149 h
14150 s/^/S["/; s/!.*/"]=/
14151 p
14152 g
14153 s/^[^!]*!//
14154 :repl
14155 t repl
14156 s/'"$ac_delim"'$//
14157 t delim
14158 :nl
14159 h
14160 s/\(.\{148\}\)..*/\1/
14161 t more1
14162 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14163 p
14164 n
14165 b repl
14166 :more1
14167 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14168 p
14169 g
14170 s/.\{148\}//
14171 t nl
14172 :delim
14173 h
14174 s/\(.\{148\}\)..*/\1/
14175 t more2
14176 s/["\\]/\\&/g; s/^/"/; s/$/"/
14177 p
14178 b
14179 :more2
14180 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14181 p
14182 g
14183 s/.\{148\}//
14184 t delim
14185 ' <conf$$subs.awk | sed '
14186 /^[^""]/{
14187   N
14188   s/\n//
14189 }
14190 ' >>$CONFIG_STATUS || ac_write_fail=1
14191 rm -f conf$$subs.awk
14192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14193 _ACAWK
14194 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14195   for (key in S) S_is_set[key] = 1
14196   FS = "\a"
14197
14198 }
14199 {
14200   line = $ 0
14201   nfields = split(line, field, "@")
14202   substed = 0
14203   len = length(field[1])
14204   for (i = 2; i < nfields; i++) {
14205     key = field[i]
14206     keylen = length(key)
14207     if (S_is_set[key]) {
14208       value = S[key]
14209       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14210       len += length(value) + length(field[++i])
14211       substed = 1
14212     } else
14213       len += 1 + keylen
14214   }
14215
14216   print line
14217 }
14218
14219 _ACAWK
14220 _ACEOF
14221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14222 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14223   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14224 else
14225   cat
14226 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14227   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14228 _ACEOF
14229
14230 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14231 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14232 # trailing colons and then remove the whole line if VPATH becomes empty
14233 # (actually we leave an empty line to preserve line numbers).
14234 if test "x$srcdir" = x.; then
14235   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14236 h
14237 s///
14238 s/^/:/
14239 s/[      ]*$/:/
14240 s/:\$(srcdir):/:/g
14241 s/:\${srcdir}:/:/g
14242 s/:@srcdir@:/:/g
14243 s/^:*//
14244 s/:*$//
14245 x
14246 s/\(=[   ]*\).*/\1/
14247 G
14248 s/\n//
14249 s/^[^=]*=[       ]*$//
14250 }'
14251 fi
14252
14253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14254 fi # test -n "$CONFIG_FILES"
14255
14256 # Set up the scripts for CONFIG_HEADERS section.
14257 # No need to generate them if there are no CONFIG_HEADERS.
14258 # This happens for instance with `./config.status Makefile'.
14259 if test -n "$CONFIG_HEADERS"; then
14260 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14261 BEGIN {
14262 _ACEOF
14263
14264 # Transform confdefs.h into an awk script `defines.awk', embedded as
14265 # here-document in config.status, that substitutes the proper values into
14266 # config.h.in to produce config.h.
14267
14268 # Create a delimiter string that does not exist in confdefs.h, to ease
14269 # handling of long lines.
14270 ac_delim='%!_!# '
14271 for ac_last_try in false false :; do
14272   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14273   if test -z "$ac_tt"; then
14274     break
14275   elif $ac_last_try; then
14276     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14277   else
14278     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14279   fi
14280 done
14281
14282 # For the awk script, D is an array of macro values keyed by name,
14283 # likewise P contains macro parameters if any.  Preserve backslash
14284 # newline sequences.
14285
14286 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14287 sed -n '
14288 s/.\{148\}/&'"$ac_delim"'/g
14289 t rset
14290 :rset
14291 s/^[     ]*#[    ]*define[       ][      ]*/ /
14292 t def
14293 d
14294 :def
14295 s/\\$//
14296 t bsnl
14297 s/["\\]/\\&/g
14298 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14299 D["\1"]=" \3"/p
14300 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14301 d
14302 :bsnl
14303 s/["\\]/\\&/g
14304 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14305 D["\1"]=" \3\\\\\\n"\\/p
14306 t cont
14307 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14308 t cont
14309 d
14310 :cont
14311 n
14312 s/.\{148\}/&'"$ac_delim"'/g
14313 t clear
14314 :clear
14315 s/\\$//
14316 t bsnlc
14317 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14318 d
14319 :bsnlc
14320 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14321 b cont
14322 ' <confdefs.h | sed '
14323 s/'"$ac_delim"'/"\\\
14324 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14325
14326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14327   for (key in D) D_is_set[key] = 1
14328   FS = "\a"
14329 }
14330 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14331   line = \$ 0
14332   split(line, arg, " ")
14333   if (arg[1] == "#") {
14334     defundef = arg[2]
14335     mac1 = arg[3]
14336   } else {
14337     defundef = substr(arg[1], 2)
14338     mac1 = arg[2]
14339   }
14340   split(mac1, mac2, "(") #)
14341   macro = mac2[1]
14342   prefix = substr(line, 1, index(line, defundef) - 1)
14343   if (D_is_set[macro]) {
14344     # Preserve the white space surrounding the "#".
14345     print prefix "define", macro P[macro] D[macro]
14346     next
14347   } else {
14348     # Replace #undef with comments.  This is necessary, for example,
14349     # in the case of _POSIX_SOURCE, which is predefined and required
14350     # on some systems where configure will not decide to define it.
14351     if (defundef == "undef") {
14352       print "/*", prefix defundef, macro, "*/"
14353       next
14354     }
14355   }
14356 }
14357 { print }
14358 _ACAWK
14359 _ACEOF
14360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14361   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14362 fi # test -n "$CONFIG_HEADERS"
14363
14364
14365 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14366 shift
14367 for ac_tag
14368 do
14369   case $ac_tag in
14370   :[FHLC]) ac_mode=$ac_tag; continue;;
14371   esac
14372   case $ac_mode$ac_tag in
14373   :[FHL]*:*);;
14374   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14375   :[FH]-) ac_tag=-:-;;
14376   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14377   esac
14378   ac_save_IFS=$IFS
14379   IFS=:
14380   set x $ac_tag
14381   IFS=$ac_save_IFS
14382   shift
14383   ac_file=$1
14384   shift
14385
14386   case $ac_mode in
14387   :L) ac_source=$1;;
14388   :[FH])
14389     ac_file_inputs=
14390     for ac_f
14391     do
14392       case $ac_f in
14393       -) ac_f="$ac_tmp/stdin";;
14394       *) # Look for the file first in the build tree, then in the source tree
14395          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14396          # because $ac_f cannot contain `:'.
14397          test -f "$ac_f" ||
14398            case $ac_f in
14399            [\\/$]*) false;;
14400            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14401            esac ||
14402            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14403       esac
14404       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14405       as_fn_append ac_file_inputs " '$ac_f'"
14406     done
14407
14408     # Let's still pretend it is `configure' which instantiates (i.e., don't
14409     # use $as_me), people would be surprised to read:
14410     #    /* config.h.  Generated by config.status.  */
14411     configure_input='Generated from '`
14412           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14413         `' by configure.'
14414     if test x"$ac_file" != x-; then
14415       configure_input="$ac_file.  $configure_input"
14416       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14417 $as_echo "$as_me: creating $ac_file" >&6;}
14418     fi
14419     # Neutralize special characters interpreted by sed in replacement strings.
14420     case $configure_input in #(
14421     *\&* | *\|* | *\\* )
14422        ac_sed_conf_input=`$as_echo "$configure_input" |
14423        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14424     *) ac_sed_conf_input=$configure_input;;
14425     esac
14426
14427     case $ac_tag in
14428     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14429       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14430     esac
14431     ;;
14432   esac
14433
14434   ac_dir=`$as_dirname -- "$ac_file" ||
14435 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14436          X"$ac_file" : 'X\(//\)[^/]' \| \
14437          X"$ac_file" : 'X\(//\)$' \| \
14438          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14439 $as_echo X"$ac_file" |
14440     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14441             s//\1/
14442             q
14443           }
14444           /^X\(\/\/\)[^/].*/{
14445             s//\1/
14446             q
14447           }
14448           /^X\(\/\/\)$/{
14449             s//\1/
14450             q
14451           }
14452           /^X\(\/\).*/{
14453             s//\1/
14454             q
14455           }
14456           s/.*/./; q'`
14457   as_dir="$ac_dir"; as_fn_mkdir_p
14458   ac_builddir=.
14459
14460 case "$ac_dir" in
14461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14462 *)
14463   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14464   # A ".." for each directory in $ac_dir_suffix.
14465   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14466   case $ac_top_builddir_sub in
14467   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14468   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14469   esac ;;
14470 esac
14471 ac_abs_top_builddir=$ac_pwd
14472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14473 # for backward compatibility:
14474 ac_top_builddir=$ac_top_build_prefix
14475
14476 case $srcdir in
14477   .)  # We are building in place.
14478     ac_srcdir=.
14479     ac_top_srcdir=$ac_top_builddir_sub
14480     ac_abs_top_srcdir=$ac_pwd ;;
14481   [\\/]* | ?:[\\/]* )  # Absolute name.
14482     ac_srcdir=$srcdir$ac_dir_suffix;
14483     ac_top_srcdir=$srcdir
14484     ac_abs_top_srcdir=$srcdir ;;
14485   *) # Relative name.
14486     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14487     ac_top_srcdir=$ac_top_build_prefix$srcdir
14488     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14489 esac
14490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14491
14492
14493   case $ac_mode in
14494   :F)
14495   #
14496   # CONFIG_FILE
14497   #
14498
14499   case $INSTALL in
14500   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14501   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14502   esac
14503   ac_MKDIR_P=$MKDIR_P
14504   case $MKDIR_P in
14505   [\\/$]* | ?:[\\/]* ) ;;
14506   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14507   esac
14508 _ACEOF
14509
14510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14511 # If the template does not know about datarootdir, expand it.
14512 # FIXME: This hack should be removed a few years after 2.60.
14513 ac_datarootdir_hack=; ac_datarootdir_seen=
14514 ac_sed_dataroot='
14515 /datarootdir/ {
14516   p
14517   q
14518 }
14519 /@datadir@/p
14520 /@docdir@/p
14521 /@infodir@/p
14522 /@localedir@/p
14523 /@mandir@/p'
14524 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14525 *datarootdir*) ac_datarootdir_seen=yes;;
14526 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14527   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14528 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14529 _ACEOF
14530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14531   ac_datarootdir_hack='
14532   s&@datadir@&$datadir&g
14533   s&@docdir@&$docdir&g
14534   s&@infodir@&$infodir&g
14535   s&@localedir@&$localedir&g
14536   s&@mandir@&$mandir&g
14537   s&\\\${datarootdir}&$datarootdir&g' ;;
14538 esac
14539 _ACEOF
14540
14541 # Neutralize VPATH when `$srcdir' = `.'.
14542 # Shell code in configure.ac might set extrasub.
14543 # FIXME: do we really want to maintain this feature?
14544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14545 ac_sed_extra="$ac_vpsub
14546 $extrasub
14547 _ACEOF
14548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14549 :t
14550 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14551 s|@configure_input@|$ac_sed_conf_input|;t t
14552 s&@top_builddir@&$ac_top_builddir_sub&;t t
14553 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14554 s&@srcdir@&$ac_srcdir&;t t
14555 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14556 s&@top_srcdir@&$ac_top_srcdir&;t t
14557 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14558 s&@builddir@&$ac_builddir&;t t
14559 s&@abs_builddir@&$ac_abs_builddir&;t t
14560 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14561 s&@INSTALL@&$ac_INSTALL&;t t
14562 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14563 $ac_datarootdir_hack
14564 "
14565 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14566   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14567
14568 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14569   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14570   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14571       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14572   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14573 which seems to be undefined.  Please make sure it is defined" >&5
14574 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14575 which seems to be undefined.  Please make sure it is defined" >&2;}
14576
14577   rm -f "$ac_tmp/stdin"
14578   case $ac_file in
14579   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14580   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14581   esac \
14582   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14583  ;;
14584   :H)
14585   #
14586   # CONFIG_HEADER
14587   #
14588   if test x"$ac_file" != x-; then
14589     {
14590       $as_echo "/* $configure_input  */" \
14591       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14592     } >"$ac_tmp/config.h" \
14593       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14594     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14595       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14596 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14597     else
14598       rm -f "$ac_file"
14599       mv "$ac_tmp/config.h" "$ac_file" \
14600         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14601     fi
14602   else
14603     $as_echo "/* $configure_input  */" \
14604       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14605       || as_fn_error $? "could not create -" "$LINENO" 5
14606   fi
14607 # Compute "$ac_file"'s index in $config_headers.
14608 _am_arg="$ac_file"
14609 _am_stamp_count=1
14610 for _am_header in $config_headers :; do
14611   case $_am_header in
14612     $_am_arg | $_am_arg:* )
14613       break ;;
14614     * )
14615       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14616   esac
14617 done
14618 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14619 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14620          X"$_am_arg" : 'X\(//\)[^/]' \| \
14621          X"$_am_arg" : 'X\(//\)$' \| \
14622          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14623 $as_echo X"$_am_arg" |
14624     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14625             s//\1/
14626             q
14627           }
14628           /^X\(\/\/\)[^/].*/{
14629             s//\1/
14630             q
14631           }
14632           /^X\(\/\/\)$/{
14633             s//\1/
14634             q
14635           }
14636           /^X\(\/\).*/{
14637             s//\1/
14638             q
14639           }
14640           s/.*/./; q'`/stamp-h$_am_stamp_count
14641  ;;
14642
14643   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14644 $as_echo "$as_me: executing $ac_file commands" >&6;}
14645  ;;
14646   esac
14647
14648
14649   case $ac_file$ac_mode in
14650     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14651   # Older Autoconf quotes --file arguments for eval, but not when files
14652   # are listed without --file.  Let's play safe and only enable the eval
14653   # if we detect the quoting.
14654   case $CONFIG_FILES in
14655   *\'*) eval set x "$CONFIG_FILES" ;;
14656   *)   set x $CONFIG_FILES ;;
14657   esac
14658   shift
14659   for mf
14660   do
14661     # Strip MF so we end up with the name of the file.
14662     mf=`echo "$mf" | sed -e 's/:.*$//'`
14663     # Check whether this is an Automake generated Makefile or not.
14664     # We used to match only the files named 'Makefile.in', but
14665     # some people rename them; so instead we look at the file content.
14666     # Grep'ing the first line is not enough: some people post-process
14667     # each Makefile.in and add a new line on top of each file to say so.
14668     # Grep'ing the whole file is not good either: AIX grep has a line
14669     # limit of 2048, but all sed's we know have understand at least 4000.
14670     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14671       dirpart=`$as_dirname -- "$mf" ||
14672 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14673          X"$mf" : 'X\(//\)[^/]' \| \
14674          X"$mf" : 'X\(//\)$' \| \
14675          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14676 $as_echo X"$mf" |
14677     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14678             s//\1/
14679             q
14680           }
14681           /^X\(\/\/\)[^/].*/{
14682             s//\1/
14683             q
14684           }
14685           /^X\(\/\/\)$/{
14686             s//\1/
14687             q
14688           }
14689           /^X\(\/\).*/{
14690             s//\1/
14691             q
14692           }
14693           s/.*/./; q'`
14694     else
14695       continue
14696     fi
14697     # Extract the definition of DEPDIR, am__include, and am__quote
14698     # from the Makefile without running 'make'.
14699     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14700     test -z "$DEPDIR" && continue
14701     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14702     test -z "$am__include" && continue
14703     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14704     # Find all dependency output files, they are included files with
14705     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14706     # simplest approach to changing $(DEPDIR) to its actual value in the
14707     # expansion.
14708     for file in `sed -n "
14709       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14710          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14711       # Make sure the directory exists.
14712       test -f "$dirpart/$file" && continue
14713       fdir=`$as_dirname -- "$file" ||
14714 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14715          X"$file" : 'X\(//\)[^/]' \| \
14716          X"$file" : 'X\(//\)$' \| \
14717          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14718 $as_echo X"$file" |
14719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14720             s//\1/
14721             q
14722           }
14723           /^X\(\/\/\)[^/].*/{
14724             s//\1/
14725             q
14726           }
14727           /^X\(\/\/\)$/{
14728             s//\1/
14729             q
14730           }
14731           /^X\(\/\).*/{
14732             s//\1/
14733             q
14734           }
14735           s/.*/./; q'`
14736       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14737       # echo "creating $dirpart/$file"
14738       echo '# dummy' > "$dirpart/$file"
14739     done
14740   done
14741 }
14742  ;;
14743     "libtool":C)
14744
14745     # See if we are running on zsh, and set the options that allow our
14746     # commands through without removal of \ escapes.
14747     if test -n "${ZSH_VERSION+set}"; then
14748       setopt NO_GLOB_SUBST
14749     fi
14750
14751     cfgfile=${ofile}T
14752     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14753     $RM "$cfgfile"
14754
14755     cat <<_LT_EOF >> "$cfgfile"
14756 #! $SHELL
14757 # Generated automatically by $as_me ($PACKAGE) $VERSION
14758 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14759
14760 # Provide generalized library-building support services.
14761 # Written by Gordon Matzigkeit, 1996
14762
14763 # Copyright (C) 2014 Free Software Foundation, Inc.
14764 # This is free software; see the source for copying conditions.  There is NO
14765 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14766
14767 # GNU Libtool is free software; you can redistribute it and/or modify
14768 # it under the terms of the GNU General Public License as published by
14769 # the Free Software Foundation; either version 2 of of the License, or
14770 # (at your option) any later version.
14771 #
14772 # As a special exception to the GNU General Public License, if you
14773 # distribute this file as part of a program or library that is built
14774 # using GNU Libtool, you may include this file under the  same
14775 # distribution terms that you use for the rest of that program.
14776 #
14777 # GNU Libtool is distributed in the hope that it will be useful, but
14778 # WITHOUT ANY WARRANTY; without even the implied warranty of
14779 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14780 # GNU General Public License for more details.
14781 #
14782 # You should have received a copy of the GNU General Public License
14783 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
14784
14785
14786 # The names of the tagged configurations supported by this script.
14787 available_tags=''
14788
14789 # Configured defaults for sys_lib_dlsearch_path munging.
14790 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14791
14792 # ### BEGIN LIBTOOL CONFIG
14793
14794 # Assembler program.
14795 AS=$lt_AS
14796
14797 # DLL creation program.
14798 DLLTOOL=$lt_DLLTOOL
14799
14800 # Object dumper program.
14801 OBJDUMP=$lt_OBJDUMP
14802
14803 # Which release of libtool.m4 was used?
14804 macro_version=$macro_version
14805 macro_revision=$macro_revision
14806
14807 # Whether or not to build shared libraries.
14808 build_libtool_libs=$enable_shared
14809
14810 # Whether or not to build static libraries.
14811 build_old_libs=$enable_static
14812
14813 # What type of objects to build.
14814 pic_mode=$pic_mode
14815
14816 # Whether or not to optimize for fast installation.
14817 fast_install=$enable_fast_install
14818
14819 # Shared archive member basename,for filename based shared library versioning on AIX.
14820 shared_archive_member_spec=$shared_archive_member_spec
14821
14822 # Shell to use when invoking shell scripts.
14823 SHELL=$lt_SHELL
14824
14825 # An echo program that protects backslashes.
14826 ECHO=$lt_ECHO
14827
14828 # The PATH separator for the build system.
14829 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14830
14831 # The host system.
14832 host_alias=$host_alias
14833 host=$host
14834 host_os=$host_os
14835
14836 # The build system.
14837 build_alias=$build_alias
14838 build=$build
14839 build_os=$build_os
14840
14841 # A sed program that does not truncate output.
14842 SED=$lt_SED
14843
14844 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14845 Xsed="\$SED -e 1s/^X//"
14846
14847 # A grep program that handles long lines.
14848 GREP=$lt_GREP
14849
14850 # An ERE matcher.
14851 EGREP=$lt_EGREP
14852
14853 # A literal string matcher.
14854 FGREP=$lt_FGREP
14855
14856 # A BSD- or MS-compatible name lister.
14857 NM=$lt_NM
14858
14859 # Whether we need soft or hard links.
14860 LN_S=$lt_LN_S
14861
14862 # What is the maximum length of a command?
14863 max_cmd_len=$max_cmd_len
14864
14865 # Object file suffix (normally "o").
14866 objext=$ac_objext
14867
14868 # Executable file suffix (normally "").
14869 exeext=$exeext
14870
14871 # whether the shell understands "unset".
14872 lt_unset=$lt_unset
14873
14874 # turn spaces into newlines.
14875 SP2NL=$lt_lt_SP2NL
14876
14877 # turn newlines into spaces.
14878 NL2SP=$lt_lt_NL2SP
14879
14880 # convert \$build file names to \$host format.
14881 to_host_file_cmd=$lt_cv_to_host_file_cmd
14882
14883 # convert \$build files to toolchain format.
14884 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14885
14886 # Method to check whether dependent libraries are shared objects.
14887 deplibs_check_method=$lt_deplibs_check_method
14888
14889 # Command to use when deplibs_check_method = "file_magic".
14890 file_magic_cmd=$lt_file_magic_cmd
14891
14892 # How to find potential files when deplibs_check_method = "file_magic".
14893 file_magic_glob=$lt_file_magic_glob
14894
14895 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14896 want_nocaseglob=$lt_want_nocaseglob
14897
14898 # Command to associate shared and link libraries.
14899 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14900
14901 # The archiver.
14902 AR=$lt_AR
14903
14904 # Flags to create an archive.
14905 AR_FLAGS=$lt_AR_FLAGS
14906
14907 # How to feed a file listing to the archiver.
14908 archiver_list_spec=$lt_archiver_list_spec
14909
14910 # A symbol stripping program.
14911 STRIP=$lt_STRIP
14912
14913 # Commands used to install an old-style archive.
14914 RANLIB=$lt_RANLIB
14915 old_postinstall_cmds=$lt_old_postinstall_cmds
14916 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14917
14918 # Whether to use a lock for old archive extraction.
14919 lock_old_archive_extraction=$lock_old_archive_extraction
14920
14921 # A C compiler.
14922 LTCC=$lt_CC
14923
14924 # LTCC compiler flags.
14925 LTCFLAGS=$lt_CFLAGS
14926
14927 # Take the output of nm and produce a listing of raw symbols and C names.
14928 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14929
14930 # Transform the output of nm in a proper C declaration.
14931 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14932
14933 # Transform the output of nm into a list of symbols to manually relocate.
14934 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14935
14936 # Transform the output of nm in a C name address pair.
14937 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14938
14939 # Transform the output of nm in a C name address pair when lib prefix is needed.
14940 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14941
14942 # The name lister interface.
14943 nm_interface=$lt_lt_cv_nm_interface
14944
14945 # Specify filename containing input files for \$NM.
14946 nm_file_list_spec=$lt_nm_file_list_spec
14947
14948 # The root where to search for dependent libraries,and where our libraries should be installed.
14949 lt_sysroot=$lt_sysroot
14950
14951 # Command to truncate a binary pipe.
14952 lt_truncate_bin=$lt_lt_cv_truncate_bin
14953
14954 # The name of the directory that contains temporary libtool files.
14955 objdir=$objdir
14956
14957 # Used to examine libraries when file_magic_cmd begins with "file".
14958 MAGIC_CMD=$MAGIC_CMD
14959
14960 # Must we lock files when doing compilation?
14961 need_locks=$lt_need_locks
14962
14963 # Manifest tool.
14964 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14965
14966 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14967 DSYMUTIL=$lt_DSYMUTIL
14968
14969 # Tool to change global to local symbols on Mac OS X.
14970 NMEDIT=$lt_NMEDIT
14971
14972 # Tool to manipulate fat objects and archives on Mac OS X.
14973 LIPO=$lt_LIPO
14974
14975 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14976 OTOOL=$lt_OTOOL
14977
14978 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14979 OTOOL64=$lt_OTOOL64
14980
14981 # Old archive suffix (normally "a").
14982 libext=$libext
14983
14984 # Shared library suffix (normally ".so").
14985 shrext_cmds=$lt_shrext_cmds
14986
14987 # The commands to extract the exported symbol list from a shared archive.
14988 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14989
14990 # Variables whose values should be saved in libtool wrapper scripts and
14991 # restored at link time.
14992 variables_saved_for_relink=$lt_variables_saved_for_relink
14993
14994 # Do we need the "lib" prefix for modules?
14995 need_lib_prefix=$need_lib_prefix
14996
14997 # Do we need a version for libraries?
14998 need_version=$need_version
14999
15000 # Library versioning type.
15001 version_type=$version_type
15002
15003 # Shared library runtime path variable.
15004 runpath_var=$runpath_var
15005
15006 # Shared library path variable.
15007 shlibpath_var=$shlibpath_var
15008
15009 # Is shlibpath searched before the hard-coded library search path?
15010 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15011
15012 # Format of library name prefix.
15013 libname_spec=$lt_libname_spec
15014
15015 # List of archive names.  First name is the real one, the rest are links.
15016 # The last name is the one that the linker finds with -lNAME
15017 library_names_spec=$lt_library_names_spec
15018
15019 # The coded name of the library, if different from the real name.
15020 soname_spec=$lt_soname_spec
15021
15022 # Permission mode override for installation of shared libraries.
15023 install_override_mode=$lt_install_override_mode
15024
15025 # Command to use after installation of a shared archive.
15026 postinstall_cmds=$lt_postinstall_cmds
15027
15028 # Command to use after uninstallation of a shared archive.
15029 postuninstall_cmds=$lt_postuninstall_cmds
15030
15031 # Commands used to finish a libtool library installation in a directory.
15032 finish_cmds=$lt_finish_cmds
15033
15034 # As "finish_cmds", except a single script fragment to be evaled but
15035 # not shown.
15036 finish_eval=$lt_finish_eval
15037
15038 # Whether we should hardcode library paths into libraries.
15039 hardcode_into_libs=$hardcode_into_libs
15040
15041 # Compile-time system search path for libraries.
15042 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15043
15044 # Detected run-time system search path for libraries.
15045 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15046
15047 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15048 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15049
15050 # Whether dlopen is supported.
15051 dlopen_support=$enable_dlopen
15052
15053 # Whether dlopen of programs is supported.
15054 dlopen_self=$enable_dlopen_self
15055
15056 # Whether dlopen of statically linked programs is supported.
15057 dlopen_self_static=$enable_dlopen_self_static
15058
15059 # Commands to strip libraries.
15060 old_striplib=$lt_old_striplib
15061 striplib=$lt_striplib
15062
15063
15064 # The linker used to build libraries.
15065 LD=$lt_LD
15066
15067 # How to create reloadable object files.
15068 reload_flag=$lt_reload_flag
15069 reload_cmds=$lt_reload_cmds
15070
15071 # Commands used to build an old-style archive.
15072 old_archive_cmds=$lt_old_archive_cmds
15073
15074 # A language specific compiler.
15075 CC=$lt_compiler
15076
15077 # Is the compiler the GNU compiler?
15078 with_gcc=$GCC
15079
15080 # Compiler flag to turn off builtin functions.
15081 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15082
15083 # Additional compiler flags for building library objects.
15084 pic_flag=$lt_lt_prog_compiler_pic
15085
15086 # How to pass a linker flag through the compiler.
15087 wl=$lt_lt_prog_compiler_wl
15088
15089 # Compiler flag to prevent dynamic linking.
15090 link_static_flag=$lt_lt_prog_compiler_static
15091
15092 # Does compiler simultaneously support -c and -o options?
15093 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15094
15095 # Whether or not to add -lc for building shared libraries.
15096 build_libtool_need_lc=$archive_cmds_need_lc
15097
15098 # Whether or not to disallow shared libs when runtime libs are static.
15099 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15100
15101 # Compiler flag to allow reflexive dlopens.
15102 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15103
15104 # Compiler flag to generate shared objects directly from archives.
15105 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15106
15107 # Whether the compiler copes with passing no objects directly.
15108 compiler_needs_object=$lt_compiler_needs_object
15109
15110 # Create an old-style archive from a shared archive.
15111 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15112
15113 # Create a temporary old-style archive to link instead of a shared archive.
15114 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15115
15116 # Commands used to build a shared archive.
15117 archive_cmds=$lt_archive_cmds
15118 archive_expsym_cmds=$lt_archive_expsym_cmds
15119
15120 # Commands used to build a loadable module if different from building
15121 # a shared archive.
15122 module_cmds=$lt_module_cmds
15123 module_expsym_cmds=$lt_module_expsym_cmds
15124
15125 # Whether we are building with GNU ld or not.
15126 with_gnu_ld=$lt_with_gnu_ld
15127
15128 # Flag that allows shared libraries with undefined symbols to be built.
15129 allow_undefined_flag=$lt_allow_undefined_flag
15130
15131 # Flag that enforces no undefined symbols.
15132 no_undefined_flag=$lt_no_undefined_flag
15133
15134 # Flag to hardcode \$libdir into a binary during linking.
15135 # This must work even if \$libdir does not exist
15136 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15137
15138 # Whether we need a single "-rpath" flag with a separated argument.
15139 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15140
15141 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15142 # DIR into the resulting binary.
15143 hardcode_direct=$hardcode_direct
15144
15145 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15146 # DIR into the resulting binary and the resulting library dependency is
15147 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15148 # library is relocated.
15149 hardcode_direct_absolute=$hardcode_direct_absolute
15150
15151 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15152 # into the resulting binary.
15153 hardcode_minus_L=$hardcode_minus_L
15154
15155 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15156 # into the resulting binary.
15157 hardcode_shlibpath_var=$hardcode_shlibpath_var
15158
15159 # Set to "yes" if building a shared library automatically hardcodes DIR
15160 # into the library and all subsequent libraries and executables linked
15161 # against it.
15162 hardcode_automatic=$hardcode_automatic
15163
15164 # Set to yes if linker adds runtime paths of dependent libraries
15165 # to runtime path list.
15166 inherit_rpath=$inherit_rpath
15167
15168 # Whether libtool must link a program against all its dependency libraries.
15169 link_all_deplibs=$link_all_deplibs
15170
15171 # Set to "yes" if exported symbols are required.
15172 always_export_symbols=$always_export_symbols
15173
15174 # The commands to list exported symbols.
15175 export_symbols_cmds=$lt_export_symbols_cmds
15176
15177 # Symbols that should not be listed in the preloaded symbols.
15178 exclude_expsyms=$lt_exclude_expsyms
15179
15180 # Symbols that must always be exported.
15181 include_expsyms=$lt_include_expsyms
15182
15183 # Commands necessary for linking programs (against libraries) with templates.
15184 prelink_cmds=$lt_prelink_cmds
15185
15186 # Commands necessary for finishing linking programs.
15187 postlink_cmds=$lt_postlink_cmds
15188
15189 # Specify filename containing input files.
15190 file_list_spec=$lt_file_list_spec
15191
15192 # How to hardcode a shared library path into an executable.
15193 hardcode_action=$hardcode_action
15194
15195 # ### END LIBTOOL CONFIG
15196
15197 _LT_EOF
15198
15199     cat <<'_LT_EOF' >> "$cfgfile"
15200
15201 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15202
15203 # func_munge_path_list VARIABLE PATH
15204 # -----------------------------------
15205 # VARIABLE is name of variable containing _space_ separated list of
15206 # directories to be munged by the contents of PATH, which is string
15207 # having a format:
15208 # "DIR[:DIR]:"
15209 #       string "DIR[ DIR]" will be prepended to VARIABLE
15210 # ":DIR[:DIR]"
15211 #       string "DIR[ DIR]" will be appended to VARIABLE
15212 # "DIRP[:DIRP]::[DIRA:]DIRA"
15213 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15214 #       "DIRA[ DIRA]" will be appended to VARIABLE
15215 # "DIR[:DIR]"
15216 #       VARIABLE will be replaced by "DIR[ DIR]"
15217 func_munge_path_list ()
15218 {
15219     case x$2 in
15220     x)
15221         ;;
15222     *:)
15223         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15224         ;;
15225     x:*)
15226         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15227         ;;
15228     *::*)
15229         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15230         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15231         ;;
15232     *)
15233         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15234         ;;
15235     esac
15236 }
15237
15238
15239 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15240 func_cc_basename ()
15241 {
15242     for cc_temp in $*""; do
15243       case $cc_temp in
15244         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15245         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15246         \-*) ;;
15247         *) break;;
15248       esac
15249     done
15250     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15251 }
15252
15253
15254 # ### END FUNCTIONS SHARED WITH CONFIGURE
15255
15256 _LT_EOF
15257
15258   case $host_os in
15259   aix3*)
15260     cat <<\_LT_EOF >> "$cfgfile"
15261 # AIX sometimes has problems with the GCC collect2 program.  For some
15262 # reason, if we set the COLLECT_NAMES environment variable, the problems
15263 # vanish in a puff of smoke.
15264 if test set != "${COLLECT_NAMES+set}"; then
15265   COLLECT_NAMES=
15266   export COLLECT_NAMES
15267 fi
15268 _LT_EOF
15269     ;;
15270   esac
15271
15272
15273 ltmain=$ac_aux_dir/ltmain.sh
15274
15275
15276   # We use sed instead of cat because bash on DJGPP gets confused if
15277   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15278   # text mode, it properly converts lines to CR/LF.  This bash problem
15279   # is reportedly fixed, but why not run on old versions too?
15280   sed '$q' "$ltmain" >> "$cfgfile" \
15281      || (rm -f "$cfgfile"; exit 1)
15282
15283    mv -f "$cfgfile" "$ofile" ||
15284     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15285   chmod +x "$ofile"
15286
15287  ;;
15288
15289   esac
15290 done # for ac_tag
15291
15292
15293 as_fn_exit 0
15294 _ACEOF
15295 ac_clean_files=$ac_clean_files_save
15296
15297 test $ac_write_fail = 0 ||
15298   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15299
15300
15301 # configure is writing to config.log, and then calls config.status.
15302 # config.status does its own redirection, appending to config.log.
15303 # Unfortunately, on DOS this fails, as config.log is still kept open
15304 # by configure, so config.status won't be able to write to it; its
15305 # output is simply discarded.  So we exec the FD to /dev/null,
15306 # effectively closing config.log, so it can be properly (re)opened and
15307 # appended to by config.status.  When coming back to configure, we
15308 # need to make the FD available again.
15309 if test "$no_create" != yes; then
15310   ac_cs_success=:
15311   ac_config_status_args=
15312   test "$silent" = yes &&
15313     ac_config_status_args="$ac_config_status_args --quiet"
15314   exec 5>/dev/null
15315   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15316   exec 5>>config.log
15317   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15318   # would make configure fail if this is the last instruction.
15319   $ac_cs_success || as_fn_exit 1
15320 fi
15321 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15322   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15323 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15324 fi
15325