nexmon – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # 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 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159  
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166  
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
176  
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
185 as_have_required=yes
186 else
187 as_have_required=no
188 fi
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190  
191 else
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196 IFS=$as_save_IFS
197 test -z "$as_dir" && as_dir=.
198 as_found=:
199 case $as_dir in #(
200 /*)
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 break 2
209 fi
210 fi
211 done;;
212 esac
213 as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220  
221  
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 case $- in # ((((
232 *v*x* | *x*v* ) as_opts=-vx ;;
233 *v* ) as_opts=-v ;;
234 *x* ) as_opts=-x ;;
235 * ) as_opts= ;;
236 esac
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239  
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246 else
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251 fi
252 exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261  
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270 { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273  
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279 return $1
280 } # as_fn_set_status
281  
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287 set +e
288 as_fn_set_status $1
289 exit $1
290 } # as_fn_exit
291  
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297  
298 case $as_dir in #(
299 -*) as_dir=./$as_dir;;
300 esac
301 test -d "$as_dir" || eval $as_mkdir_p || {
302 as_dirs=
303 while :; do
304 case $as_dir in #(
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 *) as_qdir=$as_dir;;
307 esac
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)[^/].*/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)$/{
324 s//\1/
325 q
326 }
327 /^X\(\/\).*/{
328 s//\1/
329 q
330 }
331 s/.*/./; q'`
332 test -d "$as_dir" && break
333 done
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336  
337  
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
347 {
348 eval $1+=\$2
349 }'
350 else
351 as_fn_append ()
352 {
353 eval $1=\$$1\$2
354 }
355 fi # as_fn_append
356  
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 eval 'as_fn_arith ()
364 {
365 as_val=$(( $* ))
366 }'
367 else
368 as_fn_arith ()
369 {
370 as_val=`expr "$@" || test $? -eq 1`
371 }
372 fi # as_fn_arith
373  
374  
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382 as_status=$1; test $as_status -eq 0 && as_status=1
383 if test "$4"; then
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386 fi
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
389 } # as_fn_error
390  
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 as_expr=expr
394 else
395 as_expr=false
396 fi
397  
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 as_basename=basename
400 else
401 as_basename=false
402 fi
403  
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_dirname=dirname
406 else
407 as_dirname=false
408 fi
409  
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\/\)$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\).*/{
424 s//\1/
425 q
426 }
427 s/.*/./; q'`
428  
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435  
436  
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
443 p
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
449 b
450 :lineno
451 N
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459  
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466 }
467  
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 xy) ECHO_C='\c';;
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475 ECHO_T=' ';;
476 esac;;
477 *)
478 ECHO_N='-n';;
479 esac
480  
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
484 else
485 rm -f conf$$.dir
486 mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s='ln -s'
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496 as_ln_s='cp -p'
497 elif ln conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s=ln
499 else
500 as_ln_s='cp -p'
501 fi
502 else
503 as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507  
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
510 else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513 fi
514  
515 if test -x / >/dev/null 2>&1; then
516 as_test_x='test -x'
517 else
518 if ls -dL / >/dev/null 2>&1; then
519 as_ls_L_option=L
520 else
521 as_ls_L_option=
522 fi
523 as_test_x='
524 eval sh -c '\''
525 if test -d "$1"; then
526 test -d "$1/.";
527 else
528 case $1 in #(
529 -*)set "./$1";;
530 esac;
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
533 '\'' sh
534 '
535 fi
536 as_executable_p=$as_test_x
537  
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540  
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543  
544 SHELL=${CONFIG_SHELL-/bin/sh}
545  
546  
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549  
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554  
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566  
567 # Identity of this package.
568 PACKAGE_NAME=
569 PACKAGE_TARNAME=
570 PACKAGE_VERSION=
571 PACKAGE_STRING=
572 PACKAGE_BUGREPORT=
573 PACKAGE_URL=
574  
575 ac_unique_file="lib/iconv.c"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 # include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 # include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
611  
612 gt_needs=
613 ac_header_list=
614 ac_func_list=
615 enable_option_checking=no
616 ac_subst_vars='gltests_LTLIBOBJS
617 gltests_LIBOBJS
618 gl_LTLIBOBJS
619 gl_LIBOBJS
620 am__EXEEXT_FALSE
621 am__EXEEXT_TRUE
622 LTLIBOBJS
623 LIBOBJS
624 subdirs
625 DLL_VARIABLE
626 WOE32DLL
627 SRCLIBOBJS
628 LIBICRT_LTLIBDEPS
629 LIBICRT_LIBDEPS
630 gltests_WITNESS
631 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
632 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
633 LIBUNISTRING_UNIWIDTH_H
634 LIBUNISTRING_UNITYPES_H
635 HAVE_UNISTD_H
636 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
637 NEXT_UNISTD_H
638 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
639 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
640 TIME_H_DEFINES_STRUCT_TIMESPEC
641 NEXT_AS_FIRST_DIRECTIVE_TIME_H
642 NEXT_TIME_H
643 REPLACE_TIMEGM
644 REPLACE_NANOSLEEP
645 REPLACE_MKTIME
646 REPLACE_LOCALTIME_R
647 HAVE_TIMEGM
648 HAVE_STRPTIME
649 HAVE_NANOSLEEP
650 HAVE_DECL_LOCALTIME_R
651 GNULIB_TIME_R
652 GNULIB_TIMEGM
653 GNULIB_STRPTIME
654 GNULIB_NANOSLEEP
655 GNULIB_MKTIME
656 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
657 NEXT_SYS_STAT_H
658 NEXT_AS_FIRST_DIRECTIVE_STRING_H
659 NEXT_STRING_H
660 HAVE_WINSOCK2_H
661 UNDEFINE_STRTOK_R
662 REPLACE_STRTOK_R
663 REPLACE_STRSIGNAL
664 REPLACE_STRNLEN
665 REPLACE_STRNDUP
666 REPLACE_STRNCAT
667 REPLACE_STRERROR_R
668 REPLACE_STRERROR
669 REPLACE_STRCHRNUL
670 REPLACE_STRCASESTR
671 REPLACE_STRSTR
672 REPLACE_STRDUP
673 REPLACE_STPNCPY
674 REPLACE_MEMMEM
675 REPLACE_MEMCHR
676 HAVE_STRVERSCMP
677 HAVE_DECL_STRSIGNAL
678 HAVE_DECL_STRERROR_R
679 HAVE_DECL_STRTOK_R
680 HAVE_STRCASESTR
681 HAVE_STRSEP
682 HAVE_STRPBRK
683 HAVE_DECL_STRNLEN
684 HAVE_DECL_STRNDUP
685 HAVE_DECL_STRDUP
686 HAVE_STRCHRNUL
687 HAVE_STPNCPY
688 HAVE_STPCPY
689 HAVE_RAWMEMCHR
690 HAVE_DECL_MEMRCHR
691 HAVE_MEMPCPY
692 HAVE_DECL_MEMMEM
693 HAVE_MEMCHR
694 HAVE_FFSLL
695 HAVE_FFSL
696 HAVE_MBSLEN
697 GNULIB_STRVERSCMP
698 GNULIB_STRSIGNAL
699 GNULIB_STRERROR_R
700 GNULIB_STRERROR
701 GNULIB_MBSTOK_R
702 GNULIB_MBSSEP
703 GNULIB_MBSSPN
704 GNULIB_MBSPBRK
705 GNULIB_MBSCSPN
706 GNULIB_MBSCASESTR
707 GNULIB_MBSPCASECMP
708 GNULIB_MBSNCASECMP
709 GNULIB_MBSCASECMP
710 GNULIB_MBSSTR
711 GNULIB_MBSRCHR
712 GNULIB_MBSCHR
713 GNULIB_MBSNLEN
714 GNULIB_MBSLEN
715 GNULIB_STRTOK_R
716 GNULIB_STRCASESTR
717 GNULIB_STRSTR
718 GNULIB_STRSEP
719 GNULIB_STRPBRK
720 GNULIB_STRNLEN
721 GNULIB_STRNDUP
722 GNULIB_STRNCAT
723 GNULIB_STRDUP
724 GNULIB_STRCHRNUL
725 GNULIB_STPNCPY
726 GNULIB_STPCPY
727 GNULIB_RAWMEMCHR
728 GNULIB_MEMRCHR
729 GNULIB_MEMPCPY
730 GNULIB_MEMMEM
731 GNULIB_MEMCHR
732 GNULIB_FFSLL
733 GNULIB_FFSL
734 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
735 NEXT_STDLIB_H
736 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
737 NEXT_STDIO_H
738 GL_GENERATE_STDINT_H_FALSE
739 GL_GENERATE_STDINT_H_TRUE
740 STDINT_H
741 WINT_T_SUFFIX
742 WCHAR_T_SUFFIX
743 SIG_ATOMIC_T_SUFFIX
744 SIZE_T_SUFFIX
745 PTRDIFF_T_SUFFIX
746 HAVE_SIGNED_WINT_T
747 HAVE_SIGNED_WCHAR_T
748 HAVE_SIGNED_SIG_ATOMIC_T
749 BITSIZEOF_WINT_T
750 BITSIZEOF_WCHAR_T
751 BITSIZEOF_SIG_ATOMIC_T
752 BITSIZEOF_SIZE_T
753 BITSIZEOF_PTRDIFF_T
754 HAVE_SYS_BITYPES_H
755 HAVE_SYS_INTTYPES_H
756 HAVE_STDINT_H
757 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
758 NEXT_STDINT_H
759 HAVE_SYS_TYPES_H
760 HAVE_INTTYPES_H
761 HAVE_WCHAR_H
762 HAVE_UNSIGNED_LONG_LONG_INT
763 HAVE_LONG_LONG_INT
764 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
765 NEXT_STDDEF_H
766 GL_GENERATE_STDDEF_H_FALSE
767 GL_GENERATE_STDDEF_H_TRUE
768 STDDEF_H
769 REPLACE_NULL
770 HAVE__BOOL
771 GL_GENERATE_STDBOOL_H_FALSE
772 GL_GENERATE_STDBOOL_H_TRUE
773 STDBOOL_H
774 ASM_SYMBOL_PREFIX
775 REPLACE_VSPRINTF
776 REPLACE_VSNPRINTF
777 REPLACE_VPRINTF
778 REPLACE_VFPRINTF
779 REPLACE_VDPRINTF
780 REPLACE_VASPRINTF
781 REPLACE_TMPFILE
782 REPLACE_STDIO_WRITE_FUNCS
783 REPLACE_STDIO_READ_FUNCS
784 REPLACE_SPRINTF
785 REPLACE_SNPRINTF
786 REPLACE_RENAMEAT
787 REPLACE_RENAME
788 REPLACE_REMOVE
789 REPLACE_PRINTF
790 REPLACE_POPEN
791 REPLACE_PERROR
792 REPLACE_OBSTACK_PRINTF
793 REPLACE_GETLINE
794 REPLACE_GETDELIM
795 REPLACE_FTELLO
796 REPLACE_FTELL
797 REPLACE_FSEEKO
798 REPLACE_FSEEK
799 REPLACE_FREOPEN
800 REPLACE_FPURGE
801 REPLACE_FPRINTF
802 REPLACE_FOPEN
803 REPLACE_FFLUSH
804 REPLACE_FCLOSE
805 REPLACE_DPRINTF
806 HAVE_VDPRINTF
807 HAVE_VASPRINTF
808 HAVE_RENAMEAT
809 HAVE_FTELLO
810 HAVE_FSEEKO
811 HAVE_DPRINTF
812 HAVE_DECL_VSNPRINTF
813 HAVE_DECL_SNPRINTF
814 HAVE_DECL_OBSTACK_PRINTF
815 HAVE_DECL_GETLINE
816 HAVE_DECL_GETDELIM
817 HAVE_DECL_FTELLO
818 HAVE_DECL_FSEEKO
819 HAVE_DECL_FPURGE
820 GNULIB_VSPRINTF_POSIX
821 GNULIB_VSNPRINTF
822 GNULIB_VPRINTF_POSIX
823 GNULIB_VPRINTF
824 GNULIB_VFPRINTF_POSIX
825 GNULIB_VFPRINTF
826 GNULIB_VDPRINTF
827 GNULIB_VSCANF
828 GNULIB_VFSCANF
829 GNULIB_VASPRINTF
830 GNULIB_TMPFILE
831 GNULIB_STDIO_H_SIGPIPE
832 GNULIB_STDIO_H_NONBLOCKING
833 GNULIB_SPRINTF_POSIX
834 GNULIB_SNPRINTF
835 GNULIB_SCANF
836 GNULIB_RENAMEAT
837 GNULIB_RENAME
838 GNULIB_REMOVE
839 GNULIB_PUTS
840 GNULIB_PUTCHAR
841 GNULIB_PUTC
842 GNULIB_PRINTF_POSIX
843 GNULIB_PRINTF
844 GNULIB_POPEN
845 GNULIB_PERROR
846 GNULIB_OBSTACK_PRINTF_POSIX
847 GNULIB_OBSTACK_PRINTF
848 GNULIB_GETS
849 GNULIB_GETLINE
850 GNULIB_GETDELIM
851 GNULIB_GETCHAR
852 GNULIB_GETC
853 GNULIB_FWRITE
854 GNULIB_FTELLO
855 GNULIB_FTELL
856 GNULIB_FSEEKO
857 GNULIB_FSEEK
858 GNULIB_FSCANF
859 GNULIB_FREOPEN
860 GNULIB_FREAD
861 GNULIB_FPUTS
862 GNULIB_FPUTC
863 GNULIB_FPURGE
864 GNULIB_FPRINTF_POSIX
865 GNULIB_FPRINTF
866 GNULIB_FOPEN
867 GNULIB_FGETS
868 GNULIB_FGETC
869 GNULIB_FFLUSH
870 GNULIB_FCLOSE
871 GNULIB_DPRINTF
872 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
873 NEXT_SIGNAL_H
874 REPLACE_PTHREAD_SIGMASK
875 HAVE_SIGHANDLER_T
876 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
877 HAVE_STRUCT_SIGACTION_SA_SIGACTION
878 HAVE_SIGACTION
879 HAVE_SIGINFO_T
880 HAVE_SIGSET_T
881 HAVE_PTHREAD_SIGMASK
882 HAVE_POSIX_SIGNALBLOCKING
883 GNULIB_SIGACTION
884 GNULIB_SIGPROCMASK
885 GNULIB_SIGNAL_H_SIGPIPE
886 GNULIB_PTHREAD_SIGMASK
887 APPLE_UNIVERSAL_BUILD
888 REPLACE_UTIMENSAT
889 REPLACE_STAT
890 REPLACE_MKNOD
891 REPLACE_MKFIFO
892 REPLACE_MKDIR
893 REPLACE_LSTAT
894 REPLACE_FUTIMENS
895 REPLACE_FSTATAT
896 REPLACE_FSTAT
897 HAVE_UTIMENSAT
898 HAVE_MKNODAT
899 HAVE_MKNOD
900 HAVE_MKFIFOAT
901 HAVE_MKFIFO
902 HAVE_MKDIRAT
903 HAVE_LSTAT
904 HAVE_LCHMOD
905 HAVE_FUTIMENS
906 HAVE_FSTATAT
907 HAVE_FCHMODAT
908 GNULIB_UTIMENSAT
909 GNULIB_STAT
910 GNULIB_MKNODAT
911 GNULIB_MKNOD
912 GNULIB_MKFIFOAT
913 GNULIB_MKFIFO
914 GNULIB_MKDIRAT
915 GNULIB_LSTAT
916 GNULIB_LCHMOD
917 GNULIB_FUTIMENS
918 GNULIB_FSTATAT
919 GNULIB_FCHMODAT
920 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
921 NEXT_FCNTL_H
922 REPLACE_OPENAT
923 REPLACE_OPEN
924 REPLACE_FCNTL
925 HAVE_OPENAT
926 HAVE_FCNTL
927 GNULIB_OPENAT
928 GNULIB_OPEN
929 GNULIB_NONBLOCKING
930 GNULIB_FCNTL
931 EOVERFLOW_VALUE
932 EOVERFLOW_HIDDEN
933 ENOLINK_VALUE
934 ENOLINK_HIDDEN
935 EMULTIHOP_VALUE
936 EMULTIHOP_HIDDEN
937 GL_GENERATE_ERRNO_H_FALSE
938 GL_GENERATE_ERRNO_H_TRUE
939 ERRNO_H
940 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
941 NEXT_ERRNO_H
942 PRAGMA_COLUMNS
943 PRAGMA_SYSTEM_HEADER
944 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
945 INCLUDE_NEXT
946 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
947 UNISTD_H_HAVE_WINSOCK2_H
948 REPLACE_WRITE
949 REPLACE_USLEEP
950 REPLACE_UNLINKAT
951 REPLACE_UNLINK
952 REPLACE_TTYNAME_R
953 REPLACE_SYMLINK
954 REPLACE_SLEEP
955 REPLACE_RMDIR
956 REPLACE_READLINK
957 REPLACE_READ
958 REPLACE_PWRITE
959 REPLACE_PREAD
960 REPLACE_LSEEK
961 REPLACE_LINKAT
962 REPLACE_LINK
963 REPLACE_LCHOWN
964 REPLACE_GETPAGESIZE
965 REPLACE_GETGROUPS
966 REPLACE_GETLOGIN_R
967 REPLACE_GETDOMAINNAME
968 REPLACE_GETCWD
969 REPLACE_FCHOWNAT
970 REPLACE_DUP2
971 REPLACE_DUP
972 REPLACE_CLOSE
973 REPLACE_CHOWN
974 HAVE_SYS_PARAM_H
975 HAVE_OS_H
976 HAVE_DECL_TTYNAME_R
977 HAVE_DECL_GETUSERSHELL
978 HAVE_DECL_GETPAGESIZE
979 HAVE_DECL_GETLOGIN_R
980 HAVE_DECL_GETDOMAINNAME
981 HAVE_DECL_FCHDIR
982 HAVE_DECL_ENVIRON
983 HAVE_USLEEP
984 HAVE_UNLINKAT
985 HAVE_SYMLINKAT
986 HAVE_SYMLINK
987 HAVE_SLEEP
988 HAVE_READLINKAT
989 HAVE_READLINK
990 HAVE_PWRITE
991 HAVE_PREAD
992 HAVE_PIPE2
993 HAVE_PIPE
994 HAVE_LINKAT
995 HAVE_LINK
996 HAVE_LCHOWN
997 HAVE_GROUP_MEMBER
998 HAVE_GETPAGESIZE
999 HAVE_GETLOGIN
1000 HAVE_GETHOSTNAME
1001 HAVE_GETGROUPS
1002 HAVE_GETDTABLESIZE
1003 HAVE_FTRUNCATE
1004 HAVE_FSYNC
1005 HAVE_FCHOWNAT
1006 HAVE_FCHDIR
1007 HAVE_FACCESSAT
1008 HAVE_EUIDACCESS
1009 HAVE_DUP3
1010 HAVE_DUP2
1011 HAVE_CHOWN
1012 GNULIB_WRITE
1013 GNULIB_USLEEP
1014 GNULIB_UNLINKAT
1015 GNULIB_UNLINK
1016 GNULIB_UNISTD_H_SIGPIPE
1017 GNULIB_UNISTD_H_NONBLOCKING
1018 GNULIB_UNISTD_H_GETOPT
1019 GNULIB_TTYNAME_R
1020 GNULIB_SYMLINKAT
1021 GNULIB_SYMLINK
1022 GNULIB_SLEEP
1023 GNULIB_RMDIR
1024 GNULIB_READLINKAT
1025 GNULIB_READLINK
1026 GNULIB_READ
1027 GNULIB_PWRITE
1028 GNULIB_PREAD
1029 GNULIB_PIPE2
1030 GNULIB_PIPE
1031 GNULIB_LSEEK
1032 GNULIB_LINKAT
1033 GNULIB_LINK
1034 GNULIB_LCHOWN
1035 GNULIB_GROUP_MEMBER
1036 GNULIB_GETUSERSHELL
1037 GNULIB_GETPAGESIZE
1038 GNULIB_GETLOGIN_R
1039 GNULIB_GETLOGIN
1040 GNULIB_GETHOSTNAME
1041 GNULIB_GETGROUPS
1042 GNULIB_GETDTABLESIZE
1043 GNULIB_GETDOMAINNAME
1044 GNULIB_GETCWD
1045 GNULIB_FTRUNCATE
1046 GNULIB_FSYNC
1047 GNULIB_FCHOWNAT
1048 GNULIB_FCHDIR
1049 GNULIB_FACCESSAT
1050 GNULIB_EUIDACCESS
1051 GNULIB_ENVIRON
1052 GNULIB_DUP3
1053 GNULIB_DUP2
1054 GNULIB_CLOSE
1055 GNULIB_CHOWN
1056 REPLACE_WCTOMB
1057 REPLACE_UNSETENV
1058 REPLACE_STRTOD
1059 REPLACE_SETENV
1060 REPLACE_REALPATH
1061 REPLACE_REALLOC
1062 REPLACE_PUTENV
1063 REPLACE_MKSTEMP
1064 REPLACE_MBTOWC
1065 REPLACE_MALLOC
1066 REPLACE_CANONICALIZE_FILE_NAME
1067 REPLACE_CALLOC
1068 HAVE_DECL_UNSETENV
1069 HAVE_UNLOCKPT
1070 HAVE_SYS_LOADAVG_H
1071 HAVE_STRUCT_RANDOM_DATA
1072 HAVE_STRTOULL
1073 HAVE_STRTOLL
1074 HAVE_STRTOD
1075 HAVE_DECL_SETENV
1076 HAVE_SETENV
1077 HAVE_RPMATCH
1078 HAVE_REALPATH
1079 HAVE_RANDOM_R
1080 HAVE_RANDOM_H
1081 HAVE_PTSNAME
1082 HAVE_MKSTEMPS
1083 HAVE_MKSTEMP
1084 HAVE_MKOSTEMPS
1085 HAVE_MKOSTEMP
1086 HAVE_MKDTEMP
1087 HAVE_GRANTPT
1088 HAVE_GETSUBOPT
1089 HAVE_DECL_GETLOADAVG
1090 HAVE_CANONICALIZE_FILE_NAME
1091 HAVE_ATOLL
1092 HAVE__EXIT
1093 GNULIB_WCTOMB
1094 GNULIB_UNSETENV
1095 GNULIB_UNLOCKPT
1096 GNULIB_SYSTEM_POSIX
1097 GNULIB_STRTOULL
1098 GNULIB_STRTOLL
1099 GNULIB_STRTOD
1100 GNULIB_SETENV
1101 GNULIB_RPMATCH
1102 GNULIB_REALPATH
1103 GNULIB_REALLOC_POSIX
1104 GNULIB_RANDOM_R
1105 GNULIB_PUTENV
1106 GNULIB_PTSNAME
1107 GNULIB_MKSTEMPS
1108 GNULIB_MKSTEMP
1109 GNULIB_MKOSTEMPS
1110 GNULIB_MKOSTEMP
1111 GNULIB_MKDTEMP
1112 GNULIB_MBTOWC
1113 GNULIB_MALLOC_POSIX
1114 GNULIB_GRANTPT
1115 GNULIB_GETSUBOPT
1116 GNULIB_GETLOADAVG
1117 GNULIB_CANONICALIZE_FILE_NAME
1118 GNULIB_CALLOC_POSIX
1119 GNULIB_ATOLL
1120 GNULIB__EXIT
1121 GL_GENERATE_ALLOCA_H_FALSE
1122 GL_GENERATE_ALLOCA_H_TRUE
1123 ALLOCA_H
1124 ALLOCA
1125 GL_COND_LIBTOOL_FALSE
1126 GL_COND_LIBTOOL_TRUE
1127 EILSEQ
1128 BROKEN_WCHAR_H
1129 USE_MBSTATE_T
1130 HAVE_WCHAR_T
1131 ICONV_CONST
1132 POSUB
1133 LTLIBINTL
1134 LIBINTL
1135 INTLLIBS
1136 INTL_MACOSX_LIBS
1137 XGETTEXT_EXTRA_OPTIONS
1138 MSGMERGE
1139 XGETTEXT_015
1140 XGETTEXT
1141 GMSGFMT_015
1142 MSGFMT_015
1143 GMSGFMT
1144 MSGFMT
1145 GETTEXT_MACRO_VERSION
1146 USE_NLS
1147 LTLIBICONV
1148 LIBICONV
1149 HAVE_VISIBILITY
1150 CFLAG_VISIBILITY
1151 WINDRES
1152 WOE32
1153 RC
1154 OTOOL64
1155 OTOOL
1156 LIPO
1157 NMEDIT
1158 DSYMUTIL
1159 MANIFEST_TOOL
1160 ac_ct_AR
1161 NM
1162 ac_ct_DUMPBIN
1163 DUMPBIN
1164 LD
1165 FGREP
1166 SED
1167 LIBTOOL
1168 OBJDUMP
1169 DLLTOOL
1170 AS
1171 LN_S
1172 LN
1173 CP
1174 USE_EXTRA_ENCODINGS
1175 RELOCATABLE_STRIP
1176 RELOCATABLE_BUILD_DIR
1177 RELOCATABLE_SRC_DIR
1178 RELOCATABLE_CONFIG_H_DIR
1179 RELOCATABLE_LIBRARY_PATH
1180 RELOCATABLE_VIA_WRAPPER_FALSE
1181 RELOCATABLE_VIA_WRAPPER_TRUE
1182 RELOCATABLE_VIA_LD_FALSE
1183 RELOCATABLE_VIA_LD_TRUE
1184 INSTALL_PROGRAM_ENV
1185 RELOCATABLE_LDFLAGS
1186 RELOCATABLE
1187 ARFLAGS
1188 AR
1189 RANLIB
1190 EGREP
1191 GREP
1192 host_os
1193 host_vendor
1194 host_cpu
1195 host
1196 build_os
1197 build_vendor
1198 build_cpu
1199 build
1200 CPP
1201 am__fastdepCC_FALSE
1202 am__fastdepCC_TRUE
1203 CCDEPMODE
1204 AMDEPBACKSLASH
1205 AMDEP_FALSE
1206 AMDEP_TRUE
1207 am__quote
1208 am__include
1209 DEPDIR
1210 OBJEXT
1211 EXEEXT
1212 ac_ct_CC
1213 CPPFLAGS
1214 LDFLAGS
1215 CFLAGS
1216 CC
1217 am__untar
1218 am__tar
1219 AMTAR
1220 am__leading_dot
1221 SET_MAKE
1222 AWK
1223 mkdir_p
1224 MKDIR_P
1225 INSTALL_STRIP_PROGRAM
1226 STRIP
1227 install_sh
1228 MAKEINFO
1229 AUTOHEADER
1230 AUTOMAKE
1231 AUTOCONF
1232 ACLOCAL
1233 VERSION
1234 PACKAGE
1235 CYGPATH_W
1236 am__isrc
1237 INSTALL_DATA
1238 INSTALL_SCRIPT
1239 INSTALL_PROGRAM
1240 target_alias
1241 host_alias
1242 build_alias
1243 LIBS
1244 ECHO_T
1245 ECHO_N
1246 ECHO_C
1247 DEFS
1248 mandir
1249 localedir
1250 libdir
1251 psdir
1252 pdfdir
1253 dvidir
1254 htmldir
1255 infodir
1256 docdir
1257 oldincludedir
1258 includedir
1259 localstatedir
1260 sharedstatedir
1261 sysconfdir
1262 datadir
1263 datarootdir
1264 libexecdir
1265 sbindir
1266 bindir
1267 program_transform_name
1268 prefix
1269 exec_prefix
1270 PACKAGE_URL
1271 PACKAGE_BUGREPORT
1272 PACKAGE_STRING
1273 PACKAGE_VERSION
1274 PACKAGE_TARNAME
1275 PACKAGE_NAME
1276 PATH_SEPARATOR
1277 SHELL'
1278 ac_subst_files=''
1279 ac_user_opts='
1280 enable_option_checking
1281 enable_dependency_tracking
1282 with_gnu_ld
1283 enable_relocatable
1284 enable_extra_encodings
1285 enable_static
1286 enable_shared
1287 with_pic
1288 enable_fast_install
1289 with_sysroot
1290 enable_libtool_lock
1291 enable_rpath
1292 with_libiconv_prefix
1293 enable_nls
1294 with_libintl_prefix
1295 '
1296 ac_precious_vars='build_alias
1297 host_alias
1298 target_alias
1299 CC
1300 CFLAGS
1301 LDFLAGS
1302 LIBS
1303 CPPFLAGS
1304 CPP
1305 CPPFLAGS'
1306 ac_subdirs_all='libcharset
1307 preload'
1308  
1309 # Initialize some variables set by options.
1310 ac_init_help=
1311 ac_init_version=false
1312 ac_unrecognized_opts=
1313 ac_unrecognized_sep=
1314 # The variables have the same names as the options, with
1315 # dashes changed to underlines.
1316 cache_file=/dev/null
1317 exec_prefix=NONE
1318 no_create=
1319 no_recursion=
1320 prefix=NONE
1321 program_prefix=NONE
1322 program_suffix=NONE
1323 program_transform_name=s,x,x,
1324 silent=
1325 site=
1326 srcdir=
1327 verbose=
1328 x_includes=NONE
1329 x_libraries=NONE
1330  
1331 # Installation directory options.
1332 # These are left unexpanded so users can "make install exec_prefix=/foo"
1333 # and all the variables that are supposed to be based on exec_prefix
1334 # by default will actually change.
1335 # Use braces instead of parens because sh, perl, etc. also accept them.
1336 # (The list follows the same order as the GNU Coding Standards.)
1337 bindir='${exec_prefix}/bin'
1338 sbindir='${exec_prefix}/sbin'
1339 libexecdir='${exec_prefix}/libexec'
1340 datarootdir='${prefix}/share'
1341 datadir='${datarootdir}'
1342 sysconfdir='${prefix}/etc'
1343 sharedstatedir='${prefix}/com'
1344 localstatedir='${prefix}/var'
1345 includedir='${prefix}/include'
1346 oldincludedir='/usr/include'
1347 docdir='${datarootdir}/doc/${PACKAGE}'
1348 infodir='${datarootdir}/info'
1349 htmldir='${docdir}'
1350 dvidir='${docdir}'
1351 pdfdir='${docdir}'
1352 psdir='${docdir}'
1353 libdir='${exec_prefix}/lib'
1354 localedir='${datarootdir}/locale'
1355 mandir='${datarootdir}/man'
1356  
1357 ac_prev=
1358 ac_dashdash=
1359 for ac_option
1360 do
1361 # If the previous option needs an argument, assign it.
1362 if test -n "$ac_prev"; then
1363 eval $ac_prev=\$ac_option
1364 ac_prev=
1365 continue
1366 fi
1367  
1368 case $ac_option in
1369 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1370 *=) ac_optarg= ;;
1371 *) ac_optarg=yes ;;
1372 esac
1373  
1374 # Accept the important Cygnus configure options, so we can diagnose typos.
1375  
1376 case $ac_dashdash$ac_option in
1377 --)
1378 ac_dashdash=yes ;;
1379  
1380 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1381 ac_prev=bindir ;;
1382 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1383 bindir=$ac_optarg ;;
1384  
1385 -build | --build | --buil | --bui | --bu)
1386 ac_prev=build_alias ;;
1387 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1388 build_alias=$ac_optarg ;;
1389  
1390 -cache-file | --cache-file | --cache-fil | --cache-fi \
1391 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1392 ac_prev=cache_file ;;
1393 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1394 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1395 cache_file=$ac_optarg ;;
1396  
1397 --config-cache | -C)
1398 cache_file=config.cache ;;
1399  
1400 -datadir | --datadir | --datadi | --datad)
1401 ac_prev=datadir ;;
1402 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1403 datadir=$ac_optarg ;;
1404  
1405 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1406 | --dataroo | --dataro | --datar)
1407 ac_prev=datarootdir ;;
1408 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1409 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1410 datarootdir=$ac_optarg ;;
1411  
1412 -disable-* | --disable-*)
1413 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1414 # Reject names that are not valid shell variable names.
1415 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1416 as_fn_error $? "invalid feature name: $ac_useropt"
1417 ac_useropt_orig=$ac_useropt
1418 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1419 case $ac_user_opts in
1420 *"
1421 "enable_$ac_useropt"
1422 "*) ;;
1423 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1424 ac_unrecognized_sep=', ';;
1425 esac
1426 eval enable_$ac_useropt=no ;;
1427  
1428 -docdir | --docdir | --docdi | --doc | --do)
1429 ac_prev=docdir ;;
1430 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1431 docdir=$ac_optarg ;;
1432  
1433 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1434 ac_prev=dvidir ;;
1435 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1436 dvidir=$ac_optarg ;;
1437  
1438 -enable-* | --enable-*)
1439 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1440 # Reject names that are not valid shell variable names.
1441 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1442 as_fn_error $? "invalid feature name: $ac_useropt"
1443 ac_useropt_orig=$ac_useropt
1444 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1445 case $ac_user_opts in
1446 *"
1447 "enable_$ac_useropt"
1448 "*) ;;
1449 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1450 ac_unrecognized_sep=', ';;
1451 esac
1452 eval enable_$ac_useropt=\$ac_optarg ;;
1453  
1454 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1455 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1456 | --exec | --exe | --ex)
1457 ac_prev=exec_prefix ;;
1458 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1459 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1460 | --exec=* | --exe=* | --ex=*)
1461 exec_prefix=$ac_optarg ;;
1462  
1463 -gas | --gas | --ga | --g)
1464 # Obsolete; use --with-gas.
1465 with_gas=yes ;;
1466  
1467 -help | --help | --hel | --he | -h)
1468 ac_init_help=long ;;
1469 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1470 ac_init_help=recursive ;;
1471 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1472 ac_init_help=short ;;
1473  
1474 -host | --host | --hos | --ho)
1475 ac_prev=host_alias ;;
1476 -host=* | --host=* | --hos=* | --ho=*)
1477 host_alias=$ac_optarg ;;
1478  
1479 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1480 ac_prev=htmldir ;;
1481 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1482 | --ht=*)
1483 htmldir=$ac_optarg ;;
1484  
1485 -includedir | --includedir | --includedi | --included | --include \
1486 | --includ | --inclu | --incl | --inc)
1487 ac_prev=includedir ;;
1488 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1489 | --includ=* | --inclu=* | --incl=* | --inc=*)
1490 includedir=$ac_optarg ;;
1491  
1492 -infodir | --infodir | --infodi | --infod | --info | --inf)
1493 ac_prev=infodir ;;
1494 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1495 infodir=$ac_optarg ;;
1496  
1497 -libdir | --libdir | --libdi | --libd)
1498 ac_prev=libdir ;;
1499 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1500 libdir=$ac_optarg ;;
1501  
1502 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1503 | --libexe | --libex | --libe)
1504 ac_prev=libexecdir ;;
1505 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1506 | --libexe=* | --libex=* | --libe=*)
1507 libexecdir=$ac_optarg ;;
1508  
1509 -localedir | --localedir | --localedi | --localed | --locale)
1510 ac_prev=localedir ;;
1511 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1512 localedir=$ac_optarg ;;
1513  
1514 -localstatedir | --localstatedir | --localstatedi | --localstated \
1515 | --localstate | --localstat | --localsta | --localst | --locals)
1516 ac_prev=localstatedir ;;
1517 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1518 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1519 localstatedir=$ac_optarg ;;
1520  
1521 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1522 ac_prev=mandir ;;
1523 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1524 mandir=$ac_optarg ;;
1525  
1526 -nfp | --nfp | --nf)
1527 # Obsolete; use --without-fp.
1528 with_fp=no ;;
1529  
1530 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1531 | --no-cr | --no-c | -n)
1532 no_create=yes ;;
1533  
1534 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1535 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1536 no_recursion=yes ;;
1537  
1538 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1539 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1540 | --oldin | --oldi | --old | --ol | --o)
1541 ac_prev=oldincludedir ;;
1542 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1543 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1544 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1545 oldincludedir=$ac_optarg ;;
1546  
1547 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1548 ac_prev=prefix ;;
1549 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1550 prefix=$ac_optarg ;;
1551  
1552 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1553 | --program-pre | --program-pr | --program-p)
1554 ac_prev=program_prefix ;;
1555 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1556 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1557 program_prefix=$ac_optarg ;;
1558  
1559 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1560 | --program-suf | --program-su | --program-s)
1561 ac_prev=program_suffix ;;
1562 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1563 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1564 program_suffix=$ac_optarg ;;
1565  
1566 -program-transform-name | --program-transform-name \
1567 | --program-transform-nam | --program-transform-na \
1568 | --program-transform-n | --program-transform- \
1569 | --program-transform | --program-transfor \
1570 | --program-transfo | --program-transf \
1571 | --program-trans | --program-tran \
1572 | --progr-tra | --program-tr | --program-t)
1573 ac_prev=program_transform_name ;;
1574 -program-transform-name=* | --program-transform-name=* \
1575 | --program-transform-nam=* | --program-transform-na=* \
1576 | --program-transform-n=* | --program-transform-=* \
1577 | --program-transform=* | --program-transfor=* \
1578 | --program-transfo=* | --program-transf=* \
1579 | --program-trans=* | --program-tran=* \
1580 | --progr-tra=* | --program-tr=* | --program-t=*)
1581 program_transform_name=$ac_optarg ;;
1582  
1583 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1584 ac_prev=pdfdir ;;
1585 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1586 pdfdir=$ac_optarg ;;
1587  
1588 -psdir | --psdir | --psdi | --psd | --ps)
1589 ac_prev=psdir ;;
1590 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1591 psdir=$ac_optarg ;;
1592  
1593 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1594 | -silent | --silent | --silen | --sile | --sil)
1595 silent=yes ;;
1596  
1597 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1598 ac_prev=sbindir ;;
1599 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1600 | --sbi=* | --sb=*)
1601 sbindir=$ac_optarg ;;
1602  
1603 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1604 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1605 | --sharedst | --shareds | --shared | --share | --shar \
1606 | --sha | --sh)
1607 ac_prev=sharedstatedir ;;
1608 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1609 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1610 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1611 | --sha=* | --sh=*)
1612 sharedstatedir=$ac_optarg ;;
1613  
1614 -site | --site | --sit)
1615 ac_prev=site ;;
1616 -site=* | --site=* | --sit=*)
1617 site=$ac_optarg ;;
1618  
1619 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1620 ac_prev=srcdir ;;
1621 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1622 srcdir=$ac_optarg ;;
1623  
1624 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1625 | --syscon | --sysco | --sysc | --sys | --sy)
1626 ac_prev=sysconfdir ;;
1627 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1628 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1629 sysconfdir=$ac_optarg ;;
1630  
1631 -target | --target | --targe | --targ | --tar | --ta | --t)
1632 ac_prev=target_alias ;;
1633 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1634 target_alias=$ac_optarg ;;
1635  
1636 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1637 verbose=yes ;;
1638  
1639 -version | --version | --versio | --versi | --vers | -V)
1640 ac_init_version=: ;;
1641  
1642 -with-* | --with-*)
1643 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1644 # Reject names that are not valid shell variable names.
1645 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1646 as_fn_error $? "invalid package name: $ac_useropt"
1647 ac_useropt_orig=$ac_useropt
1648 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1649 case $ac_user_opts in
1650 *"
1651 "with_$ac_useropt"
1652 "*) ;;
1653 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1654 ac_unrecognized_sep=', ';;
1655 esac
1656 eval with_$ac_useropt=\$ac_optarg ;;
1657  
1658 -without-* | --without-*)
1659 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1660 # Reject names that are not valid shell variable names.
1661 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1662 as_fn_error $? "invalid package name: $ac_useropt"
1663 ac_useropt_orig=$ac_useropt
1664 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1665 case $ac_user_opts in
1666 *"
1667 "with_$ac_useropt"
1668 "*) ;;
1669 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1670 ac_unrecognized_sep=', ';;
1671 esac
1672 eval with_$ac_useropt=no ;;
1673  
1674 --x)
1675 # Obsolete; use --with-x.
1676 with_x=yes ;;
1677  
1678 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1679 | --x-incl | --x-inc | --x-in | --x-i)
1680 ac_prev=x_includes ;;
1681 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1682 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1683 x_includes=$ac_optarg ;;
1684  
1685 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1686 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1687 ac_prev=x_libraries ;;
1688 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1689 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1690 x_libraries=$ac_optarg ;;
1691  
1692 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1693 Try \`$0 --help' for more information"
1694 ;;
1695  
1696 *=*)
1697 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1698 # Reject names that are not valid shell variable names.
1699 case $ac_envvar in #(
1700 '' | [0-9]* | *[!_$as_cr_alnum]* )
1701 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1702 esac
1703 eval $ac_envvar=\$ac_optarg
1704 export $ac_envvar ;;
1705  
1706 *)
1707 # FIXME: should be removed in autoconf 3.0.
1708 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1709 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1710 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1711 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1712 ;;
1713  
1714 esac
1715 done
1716  
1717 if test -n "$ac_prev"; then
1718 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1719 as_fn_error $? "missing argument to $ac_option"
1720 fi
1721  
1722 if test -n "$ac_unrecognized_opts"; then
1723 case $enable_option_checking in
1724 no) ;;
1725 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1726 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1727 esac
1728 fi
1729  
1730 # Check all directory arguments for consistency.
1731 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1732 datadir sysconfdir sharedstatedir localstatedir includedir \
1733 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1734 libdir localedir mandir
1735 do
1736 eval ac_val=\$$ac_var
1737 # Remove trailing slashes.
1738 case $ac_val in
1739 */ )
1740 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1741 eval $ac_var=\$ac_val;;
1742 esac
1743 # Be sure to have absolute directory names.
1744 case $ac_val in
1745 [\\/$]* | ?:[\\/]* ) continue;;
1746 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1747 esac
1748 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1749 done
1750  
1751 # There might be people who depend on the old broken behavior: `$host'
1752 # used to hold the argument of --host etc.
1753 # FIXME: To remove some day.
1754 build=$build_alias
1755 host=$host_alias
1756 target=$target_alias
1757  
1758 # FIXME: To remove some day.
1759 if test "x$host_alias" != x; then
1760 if test "x$build_alias" = x; then
1761 cross_compiling=maybe
1762 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1763 If a cross compiler is detected then cross compile mode will be used" >&2
1764 elif test "x$build_alias" != "x$host_alias"; then
1765 cross_compiling=yes
1766 fi
1767 fi
1768  
1769 ac_tool_prefix=
1770 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1771  
1772 test "$silent" = yes && exec 6>/dev/null
1773  
1774  
1775 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1776 ac_ls_di=`ls -di .` &&
1777 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1778 as_fn_error $? "working directory cannot be determined"
1779 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1780 as_fn_error $? "pwd does not report name of working directory"
1781  
1782  
1783 # Find the source files, if location was not specified.
1784 if test -z "$srcdir"; then
1785 ac_srcdir_defaulted=yes
1786 # Try the directory containing this script, then the parent directory.
1787 ac_confdir=`$as_dirname -- "$as_myself" ||
1788 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1789 X"$as_myself" : 'X\(//\)[^/]' \| \
1790 X"$as_myself" : 'X\(//\)$' \| \
1791 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1792 $as_echo X"$as_myself" |
1793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1794 s//\1/
1795 q
1796 }
1797 /^X\(\/\/\)[^/].*/{
1798 s//\1/
1799 q
1800 }
1801 /^X\(\/\/\)$/{
1802 s//\1/
1803 q
1804 }
1805 /^X\(\/\).*/{
1806 s//\1/
1807 q
1808 }
1809 s/.*/./; q'`
1810 srcdir=$ac_confdir
1811 if test ! -r "$srcdir/$ac_unique_file"; then
1812 srcdir=..
1813 fi
1814 else
1815 ac_srcdir_defaulted=no
1816 fi
1817 if test ! -r "$srcdir/$ac_unique_file"; then
1818 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1819 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1820 fi
1821 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1822 ac_abs_confdir=`(
1823 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1824 pwd)`
1825 # When building in place, set srcdir=.
1826 if test "$ac_abs_confdir" = "$ac_pwd"; then
1827 srcdir=.
1828 fi
1829 # Remove unnecessary trailing slashes from srcdir.
1830 # Double slashes in file names in object file debugging info
1831 # mess up M-x gdb in Emacs.
1832 case $srcdir in
1833 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1834 esac
1835 for ac_var in $ac_precious_vars; do
1836 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1837 eval ac_env_${ac_var}_value=\$${ac_var}
1838 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1839 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1840 done
1841  
1842 #
1843 # Report the --help message.
1844 #
1845 if test "$ac_init_help" = "long"; then
1846 # Omit some internal or obsolete options to make the list less imposing.
1847 # This message is too long to be a string in the A/UX 3.1 sh.
1848 cat <<_ACEOF
1849 \`configure' configures this package to adapt to many kinds of systems.
1850  
1851 Usage: $0 [OPTION]... [VAR=VALUE]...
1852  
1853 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1854 VAR=VALUE. See below for descriptions of some of the useful variables.
1855  
1856 Defaults for the options are specified in brackets.
1857  
1858 Configuration:
1859 -h, --help display this help and exit
1860 --help=short display options specific to this package
1861 --help=recursive display the short help of all the included packages
1862 -V, --version display version information and exit
1863 -q, --quiet, --silent do not print \`checking ...' messages
1864 --cache-file=FILE cache test results in FILE [disabled]
1865 -C, --config-cache alias for \`--cache-file=config.cache'
1866 -n, --no-create do not create output files
1867 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1868  
1869 Installation directories:
1870 --prefix=PREFIX install architecture-independent files in PREFIX
1871 [$ac_default_prefix]
1872 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1873 [PREFIX]
1874  
1875 By default, \`make install' will install all the files in
1876 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1877 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1878 for instance \`--prefix=\$HOME'.
1879  
1880 For better control, use the options below.
1881  
1882 Fine tuning of the installation directories:
1883 --bindir=DIR user executables [EPREFIX/bin]
1884 --sbindir=DIR system admin executables [EPREFIX/sbin]
1885 --libexecdir=DIR program executables [EPREFIX/libexec]
1886 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1887 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1888 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1889 --libdir=DIR object code libraries [EPREFIX/lib]
1890 --includedir=DIR C header files [PREFIX/include]
1891 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1892 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1893 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1894 --infodir=DIR info documentation [DATAROOTDIR/info]
1895 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1896 --mandir=DIR man documentation [DATAROOTDIR/man]
1897 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1898 --htmldir=DIR html documentation [DOCDIR]
1899 --dvidir=DIR dvi documentation [DOCDIR]
1900 --pdfdir=DIR pdf documentation [DOCDIR]
1901 --psdir=DIR ps documentation [DOCDIR]
1902 _ACEOF
1903  
1904 cat <<\_ACEOF
1905  
1906 Program names:
1907 --program-prefix=PREFIX prepend PREFIX to installed program names
1908 --program-suffix=SUFFIX append SUFFIX to installed program names
1909 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1910  
1911 System types:
1912 --build=BUILD configure for building on BUILD [guessed]
1913 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1914 _ACEOF
1915 fi
1916  
1917 if test -n "$ac_init_help"; then
1918  
1919 cat <<\_ACEOF
1920  
1921 Optional Features:
1922 --disable-option-checking ignore unrecognized --enable/--with options
1923 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1924 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1925 --disable-dependency-tracking speeds up one-time build
1926 --enable-dependency-tracking do not reject slow dependency extractors
1927 --enable-relocatable install a package that can be moved in the file
1928 system
1929 --enable-extra-encodings
1930 add support for a few rarely used encodings
1931 --enable-static[=PKGS] build static libraries [default=no]
1932 --enable-shared[=PKGS] build shared libraries [default=yes]
1933 --enable-fast-install[=PKGS]
1934 optimize for fast installation [default=yes]
1935 --disable-libtool-lock avoid locking (might break parallel builds)
1936 --disable-rpath do not hardcode runtime library paths
1937 --disable-nls do not use Native Language Support
1938  
1939 Optional Packages:
1940 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1941 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1942 --with-gnu-ld assume the C compiler uses GNU ld default=no
1943 --with-pic try to use only PIC/non-PIC objects [default=use
1944 both]
1945 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1946 --with-sysroot=DIR Search for dependent libraries within DIR
1947 (or the compiler's sysroot if not specified).
1948 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1949 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1950 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1951 --without-libintl-prefix don't search for libintl in includedir and libdir
1952  
1953 Some influential environment variables:
1954 CC C compiler command
1955 CFLAGS C compiler flags
1956 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1957 nonstandard directory <lib dir>
1958 LIBS libraries to pass to the linker, e.g. -l<library>
1959 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1960 you have headers in a nonstandard directory <include dir>
1961 CPP C preprocessor
1962  
1963 Use these variables to override the choices made by `configure' or to help
1964 it to find libraries and programs with nonstandard names/locations.
1965  
1966 Report bugs to the package provider.
1967 _ACEOF
1968 ac_status=$?
1969 fi
1970  
1971 if test "$ac_init_help" = "recursive"; then
1972 # If there are subdirs, report their specific --help.
1973 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1974 test -d "$ac_dir" ||
1975 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1976 continue
1977 ac_builddir=.
1978  
1979 case "$ac_dir" in
1980 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1981 *)
1982 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1983 # A ".." for each directory in $ac_dir_suffix.
1984 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1985 case $ac_top_builddir_sub in
1986 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1987 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1988 esac ;;
1989 esac
1990 ac_abs_top_builddir=$ac_pwd
1991 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1992 # for backward compatibility:
1993 ac_top_builddir=$ac_top_build_prefix
1994  
1995 case $srcdir in
1996 .) # We are building in place.
1997 ac_srcdir=.
1998 ac_top_srcdir=$ac_top_builddir_sub
1999 ac_abs_top_srcdir=$ac_pwd ;;
2000 [\\/]* | ?:[\\/]* ) # Absolute name.
2001 ac_srcdir=$srcdir$ac_dir_suffix;
2002 ac_top_srcdir=$srcdir
2003 ac_abs_top_srcdir=$srcdir ;;
2004 *) # Relative name.
2005 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2006 ac_top_srcdir=$ac_top_build_prefix$srcdir
2007 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2008 esac
2009 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2010  
2011 cd "$ac_dir" || { ac_status=$?; continue; }
2012 # Check for guested configure.
2013 if test -f "$ac_srcdir/configure.gnu"; then
2014 echo &&
2015 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2016 elif test -f "$ac_srcdir/configure"; then
2017 echo &&
2018 $SHELL "$ac_srcdir/configure" --help=recursive
2019 else
2020 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2021 fi || ac_status=$?
2022 cd "$ac_pwd" || { ac_status=$?; break; }
2023 done
2024 fi
2025  
2026 test -n "$ac_init_help" && exit $ac_status
2027 if $ac_init_version; then
2028 cat <<\_ACEOF
2029 configure
2030 generated by GNU Autoconf 2.68
2031  
2032 Copyright (C) 2010 Free Software Foundation, Inc.
2033 This configure script is free software; the Free Software Foundation
2034 gives unlimited permission to copy, distribute and modify it.
2035 _ACEOF
2036 exit
2037 fi
2038  
2039 ## ------------------------ ##
2040 ## Autoconf initialization. ##
2041 ## ------------------------ ##
2042  
2043 # ac_fn_c_try_compile LINENO
2044 # --------------------------
2045 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2046 ac_fn_c_try_compile ()
2047 {
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 rm -f conftest.$ac_objext
2050 if { { ac_try="$ac_compile"
2051 case "(($ac_try" in
2052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053 *) ac_try_echo=$ac_try;;
2054 esac
2055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056 $as_echo "$ac_try_echo"; } >&5
2057 (eval "$ac_compile") 2>conftest.err
2058 ac_status=$?
2059 if test -s conftest.err; then
2060 grep -v '^ *+' conftest.err >conftest.er1
2061 cat conftest.er1 >&5
2062 mv -f conftest.er1 conftest.err
2063 fi
2064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065 test $ac_status = 0; } && {
2066 test -z "$ac_c_werror_flag" ||
2067 test ! -s conftest.err
2068 } && test -s conftest.$ac_objext; then :
2069 ac_retval=0
2070 else
2071 $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2073  
2074 ac_retval=1
2075 fi
2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077 as_fn_set_status $ac_retval
2078  
2079 } # ac_fn_c_try_compile
2080  
2081 # ac_fn_c_try_cpp LINENO
2082 # ----------------------
2083 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2084 ac_fn_c_try_cpp ()
2085 {
2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087 if { { ac_try="$ac_cpp conftest.$ac_ext"
2088 case "(($ac_try" in
2089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2090 *) ac_try_echo=$ac_try;;
2091 esac
2092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2093 $as_echo "$ac_try_echo"; } >&5
2094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2095 ac_status=$?
2096 if test -s conftest.err; then
2097 grep -v '^ *+' conftest.err >conftest.er1
2098 cat conftest.er1 >&5
2099 mv -f conftest.er1 conftest.err
2100 fi
2101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2102 test $ac_status = 0; } > conftest.i && {
2103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2104 test ! -s conftest.err
2105 }; then :
2106 ac_retval=0
2107 else
2108 $as_echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2110  
2111 ac_retval=1
2112 fi
2113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114 as_fn_set_status $ac_retval
2115  
2116 } # ac_fn_c_try_cpp
2117  
2118 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2119 # -------------------------------------------------------
2120 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2121 # the include files in INCLUDES and setting the cache variable VAR
2122 # accordingly.
2123 ac_fn_c_check_header_mongrel ()
2124 {
2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126 if eval \${$3+:} false; then :
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2128 $as_echo_n "checking for $2... " >&6; }
2129 if eval \${$3+:} false; then :
2130 $as_echo_n "(cached) " >&6
2131 fi
2132 eval ac_res=\$$3
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 $as_echo "$ac_res" >&6; }
2135 else
2136 # Is the header compilable?
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2138 $as_echo_n "checking $2 usability... " >&6; }
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2141 $4
2142 #include <$2>
2143 _ACEOF
2144 if ac_fn_c_try_compile "$LINENO"; then :
2145 ac_header_compiler=yes
2146 else
2147 ac_header_compiler=no
2148 fi
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2151 $as_echo "$ac_header_compiler" >&6; }
2152  
2153 # Is the header present?
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2155 $as_echo_n "checking $2 presence... " >&6; }
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2158 #include <$2>
2159 _ACEOF
2160 if ac_fn_c_try_cpp "$LINENO"; then :
2161 ac_header_preproc=yes
2162 else
2163 ac_header_preproc=no
2164 fi
2165 rm -f conftest.err conftest.i conftest.$ac_ext
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2167 $as_echo "$ac_header_preproc" >&6; }
2168  
2169 # So? What about this header?
2170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2171 yes:no: )
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2173 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2175 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2176 ;;
2177 no:yes:* )
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2179 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2181 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2183 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2185 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2187 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2188 ;;
2189 esac
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2191 $as_echo_n "checking for $2... " >&6; }
2192 if eval \${$3+:} false; then :
2193 $as_echo_n "(cached) " >&6
2194 else
2195 eval "$3=\$ac_header_compiler"
2196 fi
2197 eval ac_res=\$$3
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199 $as_echo "$ac_res" >&6; }
2200 fi
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202  
2203 } # ac_fn_c_check_header_mongrel
2204  
2205 # ac_fn_c_try_run LINENO
2206 # ----------------------
2207 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2208 # that executables *can* be run.
2209 ac_fn_c_try_run ()
2210 {
2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212 if { { ac_try="$ac_link"
2213 case "(($ac_try" in
2214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2215 *) ac_try_echo=$ac_try;;
2216 esac
2217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2218 $as_echo "$ac_try_echo"; } >&5
2219 (eval "$ac_link") 2>&5
2220 ac_status=$?
2221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2222 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2223 { { case "(($ac_try" in
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2226 esac
2227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2228 $as_echo "$ac_try_echo"; } >&5
2229 (eval "$ac_try") 2>&5
2230 ac_status=$?
2231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2232 test $ac_status = 0; }; }; then :
2233 ac_retval=0
2234 else
2235 $as_echo "$as_me: program exited with status $ac_status" >&5
2236 $as_echo "$as_me: failed program was:" >&5
2237 sed 's/^/| /' conftest.$ac_ext >&5
2238  
2239 ac_retval=$ac_status
2240 fi
2241 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2242 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2243 as_fn_set_status $ac_retval
2244  
2245 } # ac_fn_c_try_run
2246  
2247 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2248 # -------------------------------------------------------
2249 # Tests whether HEADER exists and can be compiled using the include files in
2250 # INCLUDES, setting the cache variable VAR accordingly.
2251 ac_fn_c_check_header_compile ()
2252 {
2253 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2255 $as_echo_n "checking for $2... " >&6; }
2256 if eval \${$3+:} false; then :
2257 $as_echo_n "(cached) " >&6
2258 else
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2261 $4
2262 #include <$2>
2263 _ACEOF
2264 if ac_fn_c_try_compile "$LINENO"; then :
2265 eval "$3=yes"
2266 else
2267 eval "$3=no"
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 fi
2271 eval ac_res=\$$3
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275  
2276 } # ac_fn_c_check_header_compile
2277  
2278 # ac_fn_c_try_link LINENO
2279 # -----------------------
2280 # Try to link conftest.$ac_ext, and return whether this succeeded.
2281 ac_fn_c_try_link ()
2282 {
2283 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284 rm -f conftest.$ac_objext conftest$ac_exeext
2285 if { { ac_try="$ac_link"
2286 case "(($ac_try" in
2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2289 esac
2290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2291 $as_echo "$ac_try_echo"; } >&5
2292 (eval "$ac_link") 2>conftest.err
2293 ac_status=$?
2294 if test -s conftest.err; then
2295 grep -v '^ *+' conftest.err >conftest.er1
2296 cat conftest.er1 >&5
2297 mv -f conftest.er1 conftest.err
2298 fi
2299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2300 test $ac_status = 0; } && {
2301 test -z "$ac_c_werror_flag" ||
2302 test ! -s conftest.err
2303 } && test -s conftest$ac_exeext && {
2304 test "$cross_compiling" = yes ||
2305 $as_test_x conftest$ac_exeext
2306 }; then :
2307 ac_retval=0
2308 else
2309 $as_echo "$as_me: failed program was:" >&5
2310 sed 's/^/| /' conftest.$ac_ext >&5
2311  
2312 ac_retval=1
2313 fi
2314 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2315 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2316 # interfere with the next link command; also delete a directory that is
2317 # left behind by Apple's compiler. We do this before executing the actions.
2318 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2319 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2320 as_fn_set_status $ac_retval
2321  
2322 } # ac_fn_c_try_link
2323  
2324 # ac_fn_c_check_func LINENO FUNC VAR
2325 # ----------------------------------
2326 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2327 ac_fn_c_check_func ()
2328 {
2329 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2331 $as_echo_n "checking for $2... " >&6; }
2332 if eval \${$3+:} false; then :
2333 $as_echo_n "(cached) " >&6
2334 else
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2337 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2339 #define $2 innocuous_$2
2340  
2341 /* System header to define __stub macros and hopefully few prototypes,
2342 which can conflict with char $2 (); below.
2343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2344 <limits.h> exists even on freestanding compilers. */
2345  
2346 #ifdef __STDC__
2347 # include <limits.h>
2348 #else
2349 # include <assert.h>
2350 #endif
2351  
2352 #undef $2
2353  
2354 /* Override any GCC internal prototype to avoid an error.
2355 Use char because int might match the return type of a GCC
2356 builtin and then its argument prototype would still apply. */
2357 #ifdef __cplusplus
2358 extern "C"
2359 #endif
2360 char $2 ();
2361 /* The GNU C library defines this for functions which it implements
2362 to always fail with ENOSYS. Some functions are actually named
2363 something starting with __ and the normal name is an alias. */
2364 #if defined __stub_$2 || defined __stub___$2
2365 choke me
2366 #endif
2367  
2368 int
2369 main ()
2370 {
2371 return $2 ();
2372 ;
2373 return 0;
2374 }
2375 _ACEOF
2376 if ac_fn_c_try_link "$LINENO"; then :
2377 eval "$3=yes"
2378 else
2379 eval "$3=no"
2380 fi
2381 rm -f core conftest.err conftest.$ac_objext \
2382 conftest$ac_exeext conftest.$ac_ext
2383 fi
2384 eval ac_res=\$$3
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2386 $as_echo "$ac_res" >&6; }
2387 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2388  
2389 } # ac_fn_c_check_func
2390  
2391 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2392 # --------------------------------------------
2393 # Tries to find the compile-time value of EXPR in a program that includes
2394 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2395 # computed
2396 ac_fn_c_compute_int ()
2397 {
2398 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2399 if test "$cross_compiling" = yes; then
2400 # Depending upon the size, compute the lo and hi bounds.
2401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2402 /* end confdefs.h. */
2403 $4
2404 int
2405 main ()
2406 {
2407 static int test_array [1 - 2 * !(($2) >= 0)];
2408 test_array [0] = 0
2409  
2410 ;
2411 return 0;
2412 }
2413 _ACEOF
2414 if ac_fn_c_try_compile "$LINENO"; then :
2415 ac_lo=0 ac_mid=0
2416 while :; do
2417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h. */
2419 $4
2420 int
2421 main ()
2422 {
2423 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2424 test_array [0] = 0
2425  
2426 ;
2427 return 0;
2428 }
2429 _ACEOF
2430 if ac_fn_c_try_compile "$LINENO"; then :
2431 ac_hi=$ac_mid; break
2432 else
2433 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2434 if test $ac_lo -le $ac_mid; then
2435 ac_lo= ac_hi=
2436 break
2437 fi
2438 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2439 fi
2440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2441 done
2442 else
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2445 $4
2446 int
2447 main ()
2448 {
2449 static int test_array [1 - 2 * !(($2) < 0)];
2450 test_array [0] = 0
2451  
2452 ;
2453 return 0;
2454 }
2455 _ACEOF
2456 if ac_fn_c_try_compile "$LINENO"; then :
2457 ac_hi=-1 ac_mid=-1
2458 while :; do
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h. */
2461 $4
2462 int
2463 main ()
2464 {
2465 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2466 test_array [0] = 0
2467  
2468 ;
2469 return 0;
2470 }
2471 _ACEOF
2472 if ac_fn_c_try_compile "$LINENO"; then :
2473 ac_lo=$ac_mid; break
2474 else
2475 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2476 if test $ac_mid -le $ac_hi; then
2477 ac_lo= ac_hi=
2478 break
2479 fi
2480 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2481 fi
2482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2483 done
2484 else
2485 ac_lo= ac_hi=
2486 fi
2487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488 fi
2489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2490 # Binary search between lo and hi bounds.
2491 while test "x$ac_lo" != "x$ac_hi"; do
2492 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h. */
2495 $4
2496 int
2497 main ()
2498 {
2499 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2500 test_array [0] = 0
2501  
2502 ;
2503 return 0;
2504 }
2505 _ACEOF
2506 if ac_fn_c_try_compile "$LINENO"; then :
2507 ac_hi=$ac_mid
2508 else
2509 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2510 fi
2511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 done
2513 case $ac_lo in #((
2514 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2515 '') ac_retval=1 ;;
2516 esac
2517 else
2518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519 /* end confdefs.h. */
2520 $4
2521 static long int longval () { return $2; }
2522 static unsigned long int ulongval () { return $2; }
2523 #include <stdio.h>
2524 #include <stdlib.h>
2525 int
2526 main ()
2527 {
2528  
2529 FILE *f = fopen ("conftest.val", "w");
2530 if (! f)
2531 return 1;
2532 if (($2) < 0)
2533 {
2534 long int i = longval ();
2535 if (i != ($2))
2536 return 1;
2537 fprintf (f, "%ld", i);
2538 }
2539 else
2540 {
2541 unsigned long int i = ulongval ();
2542 if (i != ($2))
2543 return 1;
2544 fprintf (f, "%lu", i);
2545 }
2546 /* Do not output a trailing newline, as this causes \r\n confusion
2547 on some platforms. */
2548 return ferror (f) || fclose (f) != 0;
2549  
2550 ;
2551 return 0;
2552 }
2553 _ACEOF
2554 if ac_fn_c_try_run "$LINENO"; then :
2555 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2556 else
2557 ac_retval=1
2558 fi
2559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2560 conftest.$ac_objext conftest.beam conftest.$ac_ext
2561 rm -f conftest.val
2562  
2563 fi
2564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2565 as_fn_set_status $ac_retval
2566  
2567 } # ac_fn_c_compute_int
2568  
2569 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2570 # -------------------------------------------
2571 # Tests whether TYPE exists after having included INCLUDES, setting cache
2572 # variable VAR accordingly.
2573 ac_fn_c_check_type ()
2574 {
2575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2577 $as_echo_n "checking for $2... " >&6; }
2578 if eval \${$3+:} false; then :
2579 $as_echo_n "(cached) " >&6
2580 else
2581 eval "$3=no"
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2584 $4
2585 int
2586 main ()
2587 {
2588 if (sizeof ($2))
2589 return 0;
2590 ;
2591 return 0;
2592 }
2593 _ACEOF
2594 if ac_fn_c_try_compile "$LINENO"; then :
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h. */
2597 $4
2598 int
2599 main ()
2600 {
2601 if (sizeof (($2)))
2602 return 0;
2603 ;
2604 return 0;
2605 }
2606 _ACEOF
2607 if ac_fn_c_try_compile "$LINENO"; then :
2608  
2609 else
2610 eval "$3=yes"
2611 fi
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 fi
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 fi
2616 eval ac_res=\$$3
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2618 $as_echo "$ac_res" >&6; }
2619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2620  
2621 } # ac_fn_c_check_type
2622  
2623 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2624 # ---------------------------------------------
2625 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2626 # accordingly.
2627 ac_fn_c_check_decl ()
2628 {
2629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2630 as_decl_name=`echo $2|sed 's/ *(.*//'`
2631 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2633 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2634 if eval \${$3+:} false; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638 /* end confdefs.h. */
2639 $4
2640 int
2641 main ()
2642 {
2643 #ifndef $as_decl_name
2644 #ifdef __cplusplus
2645 (void) $as_decl_use;
2646 #else
2647 (void) $as_decl_name;
2648 #endif
2649 #endif
2650  
2651 ;
2652 return 0;
2653 }
2654 _ACEOF
2655 if ac_fn_c_try_compile "$LINENO"; then :
2656 eval "$3=yes"
2657 else
2658 eval "$3=no"
2659 fi
2660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2661 fi
2662 eval ac_res=\$$3
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2664 $as_echo "$ac_res" >&6; }
2665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2666  
2667 } # ac_fn_c_check_decl
2668 cat >config.log <<_ACEOF
2669 This file contains any messages produced by compilers while
2670 running configure, to aid debugging if configure makes a mistake.
2671  
2672 It was created by $as_me, which was
2673 generated by GNU Autoconf 2.68. Invocation command line was
2674  
2675 $ $0 $@
2676  
2677 _ACEOF
2678 exec 5>>config.log
2679 {
2680 cat <<_ASUNAME
2681 ## --------- ##
2682 ## Platform. ##
2683 ## --------- ##
2684  
2685 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2686 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2687 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2688 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2689 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2690  
2691 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2692 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2693  
2694 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2695 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2696 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2697 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2698 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2699 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2700 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2701  
2702 _ASUNAME
2703  
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2706 do
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 $as_echo "PATH: $as_dir"
2710 done
2711 IFS=$as_save_IFS
2712  
2713 } >&5
2714  
2715 cat >&5 <<_ACEOF
2716  
2717  
2718 ## ----------- ##
2719 ## Core tests. ##
2720 ## ----------- ##
2721  
2722 _ACEOF
2723  
2724  
2725 # Keep a trace of the command line.
2726 # Strip out --no-create and --no-recursion so they do not pile up.
2727 # Strip out --silent because we don't want to record it for future runs.
2728 # Also quote any args containing shell meta-characters.
2729 # Make two passes to allow for proper duplicate-argument suppression.
2730 ac_configure_args=
2731 ac_configure_args0=
2732 ac_configure_args1=
2733 ac_must_keep_next=false
2734 for ac_pass in 1 2
2735 do
2736 for ac_arg
2737 do
2738 case $ac_arg in
2739 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2740 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2741 | -silent | --silent | --silen | --sile | --sil)
2742 continue ;;
2743 *\'*)
2744 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2745 esac
2746 case $ac_pass in
2747 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2748 2)
2749 as_fn_append ac_configure_args1 " '$ac_arg'"
2750 if test $ac_must_keep_next = true; then
2751 ac_must_keep_next=false # Got value, back to normal.
2752 else
2753 case $ac_arg in
2754 *=* | --config-cache | -C | -disable-* | --disable-* \
2755 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2756 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2757 | -with-* | --with-* | -without-* | --without-* | --x)
2758 case "$ac_configure_args0 " in
2759 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2760 esac
2761 ;;
2762 -* ) ac_must_keep_next=true ;;
2763 esac
2764 fi
2765 as_fn_append ac_configure_args " '$ac_arg'"
2766 ;;
2767 esac
2768 done
2769 done
2770 { ac_configure_args0=; unset ac_configure_args0;}
2771 { ac_configure_args1=; unset ac_configure_args1;}
2772  
2773 # When interrupted or exit'd, cleanup temporary files, and complete
2774 # config.log. We remove comments because anyway the quotes in there
2775 # would cause problems or look ugly.
2776 # WARNING: Use '\'' to represent an apostrophe within the trap.
2777 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2778 trap 'exit_status=$?
2779 # Save into config.log some information that might help in debugging.
2780 {
2781 echo
2782  
2783 $as_echo "## ---------------- ##
2784 ## Cache variables. ##
2785 ## ---------------- ##"
2786 echo
2787 # The following way of writing the cache mishandles newlines in values,
2788 (
2789 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2790 eval ac_val=\$$ac_var
2791 case $ac_val in #(
2792 *${as_nl}*)
2793 case $ac_var in #(
2794 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2795 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2796 esac
2797 case $ac_var in #(
2798 _ | IFS | as_nl) ;; #(
2799 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2800 *) { eval $ac_var=; unset $ac_var;} ;;
2801 esac ;;
2802 esac
2803 done
2804 (set) 2>&1 |
2805 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2806 *${as_nl}ac_space=\ *)
2807 sed -n \
2808 "s/'\''/'\''\\\\'\'''\''/g;
2809 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2810 ;; #(
2811 *)
2812 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2813 ;;
2814 esac |
2815 sort
2816 )
2817 echo
2818  
2819 $as_echo "## ----------------- ##
2820 ## Output variables. ##
2821 ## ----------------- ##"
2822 echo
2823 for ac_var in $ac_subst_vars
2824 do
2825 eval ac_val=\$$ac_var
2826 case $ac_val in
2827 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2828 esac
2829 $as_echo "$ac_var='\''$ac_val'\''"
2830 done | sort
2831 echo
2832  
2833 if test -n "$ac_subst_files"; then
2834 $as_echo "## ------------------- ##
2835 ## File substitutions. ##
2836 ## ------------------- ##"
2837 echo
2838 for ac_var in $ac_subst_files
2839 do
2840 eval ac_val=\$$ac_var
2841 case $ac_val in
2842 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2843 esac
2844 $as_echo "$ac_var='\''$ac_val'\''"
2845 done | sort
2846 echo
2847 fi
2848  
2849 if test -s confdefs.h; then
2850 $as_echo "## ----------- ##
2851 ## confdefs.h. ##
2852 ## ----------- ##"
2853 echo
2854 cat confdefs.h
2855 echo
2856 fi
2857 test "$ac_signal" != 0 &&
2858 $as_echo "$as_me: caught signal $ac_signal"
2859 $as_echo "$as_me: exit $exit_status"
2860 } >&5
2861 rm -f core *.core core.conftest.* &&
2862 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2863 exit $exit_status
2864 ' 0
2865 for ac_signal in 1 2 13 15; do
2866 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2867 done
2868 ac_signal=0
2869  
2870 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2871 rm -f -r conftest* confdefs.h
2872  
2873 $as_echo "/* confdefs.h */" > confdefs.h
2874  
2875 # Predefined preprocessor variables.
2876  
2877 cat >>confdefs.h <<_ACEOF
2878 #define PACKAGE_NAME "$PACKAGE_NAME"
2879 _ACEOF
2880  
2881 cat >>confdefs.h <<_ACEOF
2882 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2883 _ACEOF
2884  
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2887 _ACEOF
2888  
2889 cat >>confdefs.h <<_ACEOF
2890 #define PACKAGE_STRING "$PACKAGE_STRING"
2891 _ACEOF
2892  
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2895 _ACEOF
2896  
2897 cat >>confdefs.h <<_ACEOF
2898 #define PACKAGE_URL "$PACKAGE_URL"
2899 _ACEOF
2900  
2901  
2902 # Let the site file select an alternate cache file if it wants to.
2903 # Prefer an explicitly selected file to automatically selected ones.
2904 ac_site_file1=NONE
2905 ac_site_file2=NONE
2906 if test -n "$CONFIG_SITE"; then
2907 # We do not want a PATH search for config.site.
2908 case $CONFIG_SITE in #((
2909 -*) ac_site_file1=./$CONFIG_SITE;;
2910 */*) ac_site_file1=$CONFIG_SITE;;
2911 *) ac_site_file1=./$CONFIG_SITE;;
2912 esac
2913 elif test "x$prefix" != xNONE; then
2914 ac_site_file1=$prefix/share/config.site
2915 ac_site_file2=$prefix/etc/config.site
2916 else
2917 ac_site_file1=$ac_default_prefix/share/config.site
2918 ac_site_file2=$ac_default_prefix/etc/config.site
2919 fi
2920 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2921 do
2922 test "x$ac_site_file" = xNONE && continue
2923 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2925 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2926 sed 's/^/| /' "$ac_site_file" >&5
2927 . "$ac_site_file" \
2928 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2930 as_fn_error $? "failed to load site script $ac_site_file
2931 See \`config.log' for more details" "$LINENO" 5; }
2932 fi
2933 done
2934  
2935 if test -r "$cache_file"; then
2936 # Some versions of bash will fail to source /dev/null (special files
2937 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2938 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2940 $as_echo "$as_me: loading cache $cache_file" >&6;}
2941 case $cache_file in
2942 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2943 *) . "./$cache_file";;
2944 esac
2945 fi
2946 else
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2948 $as_echo "$as_me: creating cache $cache_file" >&6;}
2949 >$cache_file
2950 fi
2951  
2952 gt_needs="$gt_needs need-ngettext"
2953 as_fn_append ac_header_list " stdlib.h"
2954 as_fn_append ac_header_list " string.h"
2955 as_fn_append ac_func_list " canonicalize_file_name"
2956 as_fn_append ac_func_list " getcwd"
2957 as_fn_append ac_func_list " readlink"
2958 as_fn_append ac_func_list " realpath"
2959 as_fn_append ac_header_list " sys/param.h"
2960 as_fn_append ac_func_list " readlinkat"
2961 as_fn_append ac_func_list " lstat"
2962 as_fn_append ac_func_list " setenv"
2963 as_fn_append ac_header_list " unistd.h"
2964 as_fn_append ac_header_list " wchar.h"
2965 as_fn_append ac_header_list " stdint.h"
2966 as_fn_append ac_header_list " sys/socket.h"
2967 as_fn_append ac_header_list " sys/stat.h"
2968 as_fn_append ac_header_list " sys/time.h"
2969 # Check that the precious variables saved in the cache have kept the same
2970 # value.
2971 ac_cache_corrupted=false
2972 for ac_var in $ac_precious_vars; do
2973 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2974 eval ac_new_set=\$ac_env_${ac_var}_set
2975 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2976 eval ac_new_val=\$ac_env_${ac_var}_value
2977 case $ac_old_set,$ac_new_set in
2978 set,)
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2980 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2981 ac_cache_corrupted=: ;;
2982 ,set)
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2984 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2985 ac_cache_corrupted=: ;;
2986 ,);;
2987 *)
2988 if test "x$ac_old_val" != "x$ac_new_val"; then
2989 # differences in whitespace do not lead to failure.
2990 ac_old_val_w=`echo x $ac_old_val`
2991 ac_new_val_w=`echo x $ac_new_val`
2992 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2994 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2995 ac_cache_corrupted=:
2996 else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2998 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2999 eval $ac_var=\$ac_old_val
3000 fi
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3002 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3004 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3005 fi;;
3006 esac
3007 # Pass precious variables to config.status.
3008 if test "$ac_new_set" = set; then
3009 case $ac_new_val in
3010 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3011 *) ac_arg=$ac_var=$ac_new_val ;;
3012 esac
3013 case " $ac_configure_args " in
3014 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3015 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3016 esac
3017 fi
3018 done
3019 if $ac_cache_corrupted; then
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3023 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3024 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3025 fi
3026 ## -------------------- ##
3027 ## Main body of script. ##
3028 ## -------------------- ##
3029  
3030 ac_ext=c
3031 ac_cpp='$CPP $CPPFLAGS'
3032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035  
3036  
3037  
3038 ac_aux_dir=
3039 for ac_dir in build-aux "$srcdir"/build-aux; do
3040 if test -f "$ac_dir/install-sh"; then
3041 ac_aux_dir=$ac_dir
3042 ac_install_sh="$ac_aux_dir/install-sh -c"
3043 break
3044 elif test -f "$ac_dir/install.sh"; then
3045 ac_aux_dir=$ac_dir
3046 ac_install_sh="$ac_aux_dir/install.sh -c"
3047 break
3048 elif test -f "$ac_dir/shtool"; then
3049 ac_aux_dir=$ac_dir
3050 ac_install_sh="$ac_aux_dir/shtool install -c"
3051 break
3052 fi
3053 done
3054 if test -z "$ac_aux_dir"; then
3055 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3056 fi
3057  
3058 # These three variables are undocumented and unsupported,
3059 # and are intended to be withdrawn in a future Autoconf release.
3060 # They can cause serious problems if a builder's source tree is in a directory
3061 # whose full name contains unusual characters.
3062 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3063 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3064 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3065  
3066  
3067 am__api_version='1.11'
3068  
3069 # Find a good install program. We prefer a C program (faster),
3070 # so one script is as good as another. But avoid the broken or
3071 # incompatible versions:
3072 # SysV /etc/install, /usr/sbin/install
3073 # SunOS /usr/etc/install
3074 # IRIX /sbin/install
3075 # AIX /bin/install
3076 # AmigaOS /C/install, which installs bootblocks on floppy discs
3077 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3078 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3079 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3080 # OS/2's system install, which has a completely different semantic
3081 # ./install, which can be erroneously created by make from ./install.sh.
3082 # Reject install programs that cannot install multiple files.
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3084 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3085 if test -z "$INSTALL"; then
3086 if ${ac_cv_path_install+:} false; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3091 do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 # Account for people who put trailing slashes in PATH elements.
3095 case $as_dir/ in #((
3096 ./ | .// | /[cC]/* | \
3097 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3098 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3099 /usr/ucb/* ) ;;
3100 *)
3101 # OSF1 and SCO ODT 3.0 have their own names for install.
3102 # Don't use installbsd from OSF since it installs stuff as root
3103 # by default.
3104 for ac_prog in ginstall scoinst install; do
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3107 if test $ac_prog = install &&
3108 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3109 # AIX install. It has an incompatible calling convention.
3110 :
3111 elif test $ac_prog = install &&
3112 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3113 # program-specific install script used by HP pwplus--don't use.
3114 :
3115 else
3116 rm -rf conftest.one conftest.two conftest.dir
3117 echo one > conftest.one
3118 echo two > conftest.two
3119 mkdir conftest.dir
3120 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3121 test -s conftest.one && test -s conftest.two &&
3122 test -s conftest.dir/conftest.one &&
3123 test -s conftest.dir/conftest.two
3124 then
3125 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3126 break 3
3127 fi
3128 fi
3129 fi
3130 done
3131 done
3132 ;;
3133 esac
3134  
3135 done
3136 IFS=$as_save_IFS
3137  
3138 rm -rf conftest.one conftest.two conftest.dir
3139  
3140 fi
3141 if test "${ac_cv_path_install+set}" = set; then
3142 INSTALL=$ac_cv_path_install
3143 else
3144 # As a last resort, use the slow shell script. Don't cache a
3145 # value for INSTALL within a source directory, because that will
3146 # break other packages using the cache if that directory is
3147 # removed, or if the value is a relative name.
3148 INSTALL=$ac_install_sh
3149 fi
3150 fi
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3152 $as_echo "$INSTALL" >&6; }
3153  
3154 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3155 # It thinks the first close brace ends the variable substitution.
3156 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3157  
3158 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3159  
3160 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3161  
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3163 $as_echo_n "checking whether build environment is sane... " >&6; }
3164 # Just in case
3165 sleep 1
3166 echo timestamp > conftest.file
3167 # Reject unsafe characters in $srcdir or the absolute working directory
3168 # name. Accept space and tab only in the latter.
3169 am_lf='
3170 '
3171 case `pwd` in
3172 *[\\\"\#\$\&\'\`$am_lf]*)
3173 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3174 esac
3175 case $srcdir in
3176 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3177 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3178 esac
3179  
3180 # Do `set' in a subshell so we don't clobber the current shell's
3181 # arguments. Must try -L first in case configure is actually a
3182 # symlink; some systems play weird games with the mod time of symlinks
3183 # (eg FreeBSD returns the mod time of the symlink's containing
3184 # directory).
3185 if (
3186 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3187 if test "$*" = "X"; then
3188 # -L didn't work.
3189 set X `ls -t "$srcdir/configure" conftest.file`
3190 fi
3191 rm -f conftest.file
3192 if test "$*" != "X $srcdir/configure conftest.file" \
3193 && test "$*" != "X conftest.file $srcdir/configure"; then
3194  
3195 # If neither matched, then we have a broken ls. This can happen
3196 # if, for instance, CONFIG_SHELL is bash and it inherits a
3197 # broken ls alias from the environment. This has actually
3198 # happened. Such a system could not be considered "sane".
3199 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3200 alias in your environment" "$LINENO" 5
3201 fi
3202  
3203 test "$2" = conftest.file
3204 )
3205 then
3206 # Ok.
3207 :
3208 else
3209 as_fn_error $? "newly created file is older than distributed files!
3210 Check your system clock" "$LINENO" 5
3211 fi
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3213 $as_echo "yes" >&6; }
3214 test "$program_prefix" != NONE &&
3215 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3216 # Use a double $ so make ignores it.
3217 test "$program_suffix" != NONE &&
3218 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3219 # Double any \ or $.
3220 # By default was `s,x,x', remove it if useless.
3221 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3222 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3223  
3224 # expand $ac_aux_dir to an absolute path
3225 am_aux_dir=`cd $ac_aux_dir && pwd`
3226  
3227 if test x"${MISSING+set}" != xset; then
3228 case $am_aux_dir in
3229 *\ * | *\ *)
3230 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3231 *)
3232 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3233 esac
3234 fi
3235 # Use eval to expand $SHELL
3236 if eval "$MISSING --run true"; then
3237 am_missing_run="$MISSING --run "
3238 else
3239 am_missing_run=
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3241 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3242 fi
3243  
3244 if test x"${install_sh}" != xset; then
3245 case $am_aux_dir in
3246 *\ * | *\ *)
3247 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3248 *)
3249 install_sh="\${SHELL} $am_aux_dir/install-sh"
3250 esac
3251 fi
3252  
3253 # Installed binaries are usually stripped using `strip' when the user
3254 # run `make install-strip'. However `strip' might not be the right
3255 # tool to use in cross-compilation environments, therefore Automake
3256 # will honor the `STRIP' environment variable to overrule this program.
3257 if test "$cross_compiling" != no; then
3258 if test -n "$ac_tool_prefix"; then
3259 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3260 set dummy ${ac_tool_prefix}strip; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if ${ac_cv_prog_STRIP+:} false; then :
3264 $as_echo_n "(cached) " >&6
3265 else
3266 if test -n "$STRIP"; then
3267 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3268 else
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH
3271 do
3272 IFS=$as_save_IFS
3273 test -z "$as_dir" && as_dir=.
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3276 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 break 2
3279 fi
3280 done
3281 done
3282 IFS=$as_save_IFS
3283  
3284 fi
3285 fi
3286 STRIP=$ac_cv_prog_STRIP
3287 if test -n "$STRIP"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3289 $as_echo "$STRIP" >&6; }
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 fi
3294  
3295  
3296 fi
3297 if test -z "$ac_cv_prog_STRIP"; then
3298 ac_ct_STRIP=$STRIP
3299 # Extract the first word of "strip", so it can be a program name with args.
3300 set dummy strip; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3304 $as_echo_n "(cached) " >&6
3305 else
3306 if test -n "$ac_ct_STRIP"; then
3307 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3308 else
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH
3311 do
3312 IFS=$as_save_IFS
3313 test -z "$as_dir" && as_dir=.
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3316 ac_cv_prog_ac_ct_STRIP="strip"
3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 break 2
3319 fi
3320 done
3321 done
3322 IFS=$as_save_IFS
3323  
3324 fi
3325 fi
3326 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3327 if test -n "$ac_ct_STRIP"; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3329 $as_echo "$ac_ct_STRIP" >&6; }
3330 else
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 fi
3334  
3335 if test "x$ac_ct_STRIP" = x; then
3336 STRIP=":"
3337 else
3338 case $cross_compiling:$ac_tool_warned in
3339 yes:)
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3342 ac_tool_warned=yes ;;
3343 esac
3344 STRIP=$ac_ct_STRIP
3345 fi
3346 else
3347 STRIP="$ac_cv_prog_STRIP"
3348 fi
3349  
3350 fi
3351 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3352  
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3354 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3355 if test -z "$MKDIR_P"; then
3356 if ${ac_cv_path_mkdir+:} false; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3361 do
3362 IFS=$as_save_IFS
3363 test -z "$as_dir" && as_dir=.
3364 for ac_prog in mkdir gmkdir; do
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3367 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3368 'mkdir (GNU coreutils) '* | \
3369 'mkdir (coreutils) '* | \
3370 'mkdir (fileutils) '4.1*)
3371 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3372 break 3;;
3373 esac
3374 done
3375 done
3376 done
3377 IFS=$as_save_IFS
3378  
3379 fi
3380  
3381 test -d ./--version && rmdir ./--version
3382 if test "${ac_cv_path_mkdir+set}" = set; then
3383 MKDIR_P="$ac_cv_path_mkdir -p"
3384 else
3385 # As a last resort, use the slow shell script. Don't cache a
3386 # value for MKDIR_P within a source directory, because that will
3387 # break other packages using the cache if that directory is
3388 # removed, or if the value is a relative name.
3389 MKDIR_P="$ac_install_sh -d"
3390 fi
3391 fi
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3393 $as_echo "$MKDIR_P" >&6; }
3394  
3395  
3396 mkdir_p="$MKDIR_P"
3397 case $mkdir_p in
3398 [\\/$]* | ?:[\\/]*) ;;
3399 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3400 esac
3401  
3402 for ac_prog in gawk mawk nawk awk
3403 do
3404 # Extract the first word of "$ac_prog", so it can be a program name with args.
3405 set dummy $ac_prog; ac_word=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if ${ac_cv_prog_AWK+:} false; then :
3409 $as_echo_n "(cached) " >&6
3410 else
3411 if test -n "$AWK"; then
3412 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3416 do
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3421 ac_cv_prog_AWK="$ac_prog"
3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 break 2
3424 fi
3425 done
3426 done
3427 IFS=$as_save_IFS
3428  
3429 fi
3430 fi
3431 AWK=$ac_cv_prog_AWK
3432 if test -n "$AWK"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3434 $as_echo "$AWK" >&6; }
3435 else
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3438 fi
3439  
3440  
3441 test -n "$AWK" && break
3442 done
3443  
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3445 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3446 set x ${MAKE-make}
3447 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3448 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3449 $as_echo_n "(cached) " >&6
3450 else
3451 cat >conftest.make <<\_ACEOF
3452 SHELL = /bin/sh
3453 all:
3454 @echo '@@@%%%=$(MAKE)=@@@%%%'
3455 _ACEOF
3456 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3457 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3458 *@@@%%%=?*=@@@%%%*)
3459 eval ac_cv_prog_make_${ac_make}_set=yes;;
3460 *)
3461 eval ac_cv_prog_make_${ac_make}_set=no;;
3462 esac
3463 rm -f conftest.make
3464 fi
3465 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3467 $as_echo "yes" >&6; }
3468 SET_MAKE=
3469 else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3472 SET_MAKE="MAKE=${MAKE-make}"
3473 fi
3474  
3475 rm -rf .tst 2>/dev/null
3476 mkdir .tst 2>/dev/null
3477 if test -d .tst; then
3478 am__leading_dot=.
3479 else
3480 am__leading_dot=_
3481 fi
3482 rmdir .tst 2>/dev/null
3483  
3484 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3485 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3486 # is not polluted with repeated "-I."
3487 am__isrc=' -I$(srcdir)'
3488 # test to see if srcdir already configured
3489 if test -f $srcdir/config.status; then
3490 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3491 fi
3492 fi
3493  
3494 # test whether we have cygpath
3495 if test -z "$CYGPATH_W"; then
3496 if (cygpath --version) >/dev/null 2>/dev/null; then
3497 CYGPATH_W='cygpath -w'
3498 else
3499 CYGPATH_W=echo
3500 fi
3501 fi
3502  
3503  
3504 # Define the identity of the package.
3505 PACKAGE=libiconv
3506 VERSION=1.14
3507  
3508  
3509 cat >>confdefs.h <<_ACEOF
3510 #define PACKAGE "$PACKAGE"
3511 _ACEOF
3512  
3513  
3514 cat >>confdefs.h <<_ACEOF
3515 #define VERSION "$VERSION"
3516 _ACEOF
3517  
3518 # Some tools Automake needs.
3519  
3520 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3521  
3522  
3523 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3524  
3525  
3526 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3527  
3528  
3529 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3530  
3531  
3532 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3533  
3534 # We need awk for the "check" target. The system "awk" is bad on
3535 # some platforms.
3536 # Always define AMTAR for backward compatibility.
3537  
3538 AMTAR=${AMTAR-"${am_missing_run}tar"}
3539  
3540 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3541  
3542  
3543  
3544  
3545  
3546 ac_config_headers="$ac_config_headers config.h lib/config.h"
3547  
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3549 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3550 set x ${MAKE-make}
3551 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3552 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3553 $as_echo_n "(cached) " >&6
3554 else
3555 cat >conftest.make <<\_ACEOF
3556 SHELL = /bin/sh
3557 all:
3558 @echo '@@@%%%=$(MAKE)=@@@%%%'
3559 _ACEOF
3560 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3561 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3562 *@@@%%%=?*=@@@%%%*)
3563 eval ac_cv_prog_make_${ac_make}_set=yes;;
3564 *)
3565 eval ac_cv_prog_make_${ac_make}_set=no;;
3566 esac
3567 rm -f conftest.make
3568 fi
3569 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3571 $as_echo "yes" >&6; }
3572 SET_MAKE=
3573 else
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3576 SET_MAKE="MAKE=${MAKE-make}"
3577 fi
3578  
3579  
3580  
3581 ac_ext=c
3582 ac_cpp='$CPP $CPPFLAGS'
3583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586 if test -n "$ac_tool_prefix"; then
3587 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3588 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if ${ac_cv_prog_CC+:} false; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC="$CC" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600 IFS=$as_save_IFS
3601 test -z "$as_dir" && as_dir=.
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3604 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 break 2
3607 fi
3608 done
3609 done
3610 IFS=$as_save_IFS
3611  
3612 fi
3613 fi
3614 CC=$ac_cv_prog_CC
3615 if test -n "$CC"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617 $as_echo "$CC" >&6; }
3618 else
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3621 fi
3622  
3623  
3624 fi
3625 if test -z "$ac_cv_prog_CC"; then
3626 ac_ct_CC=$CC
3627 # Extract the first word of "gcc", so it can be a program name with args.
3628 set dummy gcc; ac_word=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3632 $as_echo_n "(cached) " >&6
3633 else
3634 if test -n "$ac_ct_CC"; then
3635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3636 else
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3639 do
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644 ac_cv_prog_ac_ct_CC="gcc"
3645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 break 2
3647 fi
3648 done
3649 done
3650 IFS=$as_save_IFS
3651  
3652 fi
3653 fi
3654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3655 if test -n "$ac_ct_CC"; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3657 $as_echo "$ac_ct_CC" >&6; }
3658 else
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3661 fi
3662  
3663 if test "x$ac_ct_CC" = x; then
3664 CC=""
3665 else
3666 case $cross_compiling:$ac_tool_warned in
3667 yes:)
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3670 ac_tool_warned=yes ;;
3671 esac
3672 CC=$ac_ct_CC
3673 fi
3674 else
3675 CC="$ac_cv_prog_CC"
3676 fi
3677  
3678 if test -z "$CC"; then
3679 if test -n "$ac_tool_prefix"; then
3680 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3681 set dummy ${ac_tool_prefix}cc; ac_word=$2
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683 $as_echo_n "checking for $ac_word... " >&6; }
3684 if ${ac_cv_prog_CC+:} false; then :
3685 $as_echo_n "(cached) " >&6
3686 else
3687 if test -n "$CC"; then
3688 ac_cv_prog_CC="$CC" # Let the user override the test.
3689 else
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH
3692 do
3693 IFS=$as_save_IFS
3694 test -z "$as_dir" && as_dir=.
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3697 ac_cv_prog_CC="${ac_tool_prefix}cc"
3698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 break 2
3700 fi
3701 done
3702 done
3703 IFS=$as_save_IFS
3704  
3705 fi
3706 fi
3707 CC=$ac_cv_prog_CC
3708 if test -n "$CC"; then
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3710 $as_echo "$CC" >&6; }
3711 else
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713 $as_echo "no" >&6; }
3714 fi
3715  
3716  
3717 fi
3718 fi
3719 if test -z "$CC"; then
3720 # Extract the first word of "cc", so it can be a program name with args.
3721 set dummy cc; ac_word=$2
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723 $as_echo_n "checking for $ac_word... " >&6; }
3724 if ${ac_cv_prog_CC+:} false; then :
3725 $as_echo_n "(cached) " >&6
3726 else
3727 if test -n "$CC"; then
3728 ac_cv_prog_CC="$CC" # Let the user override the test.
3729 else
3730 ac_prog_rejected=no
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3733 do
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3738 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3739 ac_prog_rejected=yes
3740 continue
3741 fi
3742 ac_cv_prog_CC="cc"
3743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 break 2
3745 fi
3746 done
3747 done
3748 IFS=$as_save_IFS
3749  
3750 if test $ac_prog_rejected = yes; then
3751 # We found a bogon in the path, so make sure we never use it.
3752 set dummy $ac_cv_prog_CC
3753 shift
3754 if test $# != 0; then
3755 # We chose a different compiler from the bogus one.
3756 # However, it has the same basename, so the bogon will be chosen
3757 # first if we set CC to just the basename; use the full file name.
3758 shift
3759 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3760 fi
3761 fi
3762 fi
3763 fi
3764 CC=$ac_cv_prog_CC
3765 if test -n "$CC"; then
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3767 $as_echo "$CC" >&6; }
3768 else
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770 $as_echo "no" >&6; }
3771 fi
3772  
3773  
3774 fi
3775 if test -z "$CC"; then
3776 if test -n "$ac_tool_prefix"; then
3777 for ac_prog in cl.exe
3778 do
3779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782 $as_echo_n "checking for $ac_word... " >&6; }
3783 if ${ac_cv_prog_CC+:} false; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 if test -n "$CC"; then
3787 ac_cv_prog_CC="$CC" # Let the user override the test.
3788 else
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3791 do
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3796 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 break 2
3799 fi
3800 done
3801 done
3802 IFS=$as_save_IFS
3803  
3804 fi
3805 fi
3806 CC=$ac_cv_prog_CC
3807 if test -n "$CC"; then
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3809 $as_echo "$CC" >&6; }
3810 else
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3813 fi
3814  
3815  
3816 test -n "$CC" && break
3817 done
3818 fi
3819 if test -z "$CC"; then
3820 ac_ct_CC=$CC
3821 for ac_prog in cl.exe
3822 do
3823 # Extract the first word of "$ac_prog", so it can be a program name with args.
3824 set dummy $ac_prog; ac_word=$2
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3826 $as_echo_n "checking for $ac_word... " >&6; }
3827 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3828 $as_echo_n "(cached) " >&6
3829 else
3830 if test -n "$ac_ct_CC"; then
3831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3832 else
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH
3835 do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3840 ac_cv_prog_ac_ct_CC="$ac_prog"
3841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3842 break 2
3843 fi
3844 done
3845 done
3846 IFS=$as_save_IFS
3847  
3848 fi
3849 fi
3850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3851 if test -n "$ac_ct_CC"; then
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3853 $as_echo "$ac_ct_CC" >&6; }
3854 else
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856 $as_echo "no" >&6; }
3857 fi
3858  
3859  
3860 test -n "$ac_ct_CC" && break
3861 done
3862  
3863 if test "x$ac_ct_CC" = x; then
3864 CC=""
3865 else
3866 case $cross_compiling:$ac_tool_warned in
3867 yes:)
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3870 ac_tool_warned=yes ;;
3871 esac
3872 CC=$ac_ct_CC
3873 fi
3874 fi
3875  
3876 fi
3877  
3878  
3879 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3881 as_fn_error $? "no acceptable C compiler found in \$PATH
3882 See \`config.log' for more details" "$LINENO" 5; }
3883  
3884 # Provide some information about the compiler.
3885 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3886 set X $ac_compile
3887 ac_compiler=$2
3888 for ac_option in --version -v -V -qversion; do
3889 { { ac_try="$ac_compiler $ac_option >&5"
3890 case "(($ac_try" in
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3893 esac
3894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3895 $as_echo "$ac_try_echo"; } >&5
3896 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3897 ac_status=$?
3898 if test -s conftest.err; then
3899 sed '10a\
3900 ... rest of stderr output deleted ...
3901 10q' conftest.err >conftest.er1
3902 cat conftest.er1 >&5
3903 fi
3904 rm -f conftest.er1 conftest.err
3905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3906 test $ac_status = 0; }
3907 done
3908  
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3911  
3912 int
3913 main ()
3914 {
3915  
3916 ;
3917 return 0;
3918 }
3919 _ACEOF
3920 ac_clean_files_save=$ac_clean_files
3921 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3922 # Try to create an executable without -o first, disregard a.out.
3923 # It will help us diagnose broken compilers, and finding out an intuition
3924 # of exeext.
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3926 $as_echo_n "checking whether the C compiler works... " >&6; }
3927 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3928  
3929 # The possible output files:
3930 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3931  
3932 ac_rmfiles=
3933 for ac_file in $ac_files
3934 do
3935 case $ac_file in
3936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3937 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3938 esac
3939 done
3940 rm -f $ac_rmfiles
3941  
3942 if { { ac_try="$ac_link_default"
3943 case "(($ac_try" in
3944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3945 *) ac_try_echo=$ac_try;;
3946 esac
3947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3948 $as_echo "$ac_try_echo"; } >&5
3949 (eval "$ac_link_default") 2>&5
3950 ac_status=$?
3951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3952 test $ac_status = 0; }; then :
3953 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3954 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3955 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3956 # so that the user can short-circuit this test for compilers unknown to
3957 # Autoconf.
3958 for ac_file in $ac_files ''
3959 do
3960 test -f "$ac_file" || continue
3961 case $ac_file in
3962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3963 ;;
3964 [ab].out )
3965 # We found the default executable, but exeext='' is most
3966 # certainly right.
3967 break;;
3968 *.* )
3969 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3970 then :; else
3971 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3972 fi
3973 # We set ac_cv_exeext here because the later test for it is not
3974 # safe: cross compilers may not add the suffix if given an `-o'
3975 # argument, so we may need to know it at that point already.
3976 # Even if this section looks crufty: it has the advantage of
3977 # actually working.
3978 break;;
3979 * )
3980 break;;
3981 esac
3982 done
3983 test "$ac_cv_exeext" = no && ac_cv_exeext=
3984  
3985 else
3986 ac_file=''
3987 fi
3988 if test -z "$ac_file"; then :
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990 $as_echo "no" >&6; }
3991 $as_echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3993  
3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3996 as_fn_error 77 "C compiler cannot create executables
3997 See \`config.log' for more details" "$LINENO" 5; }
3998 else
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4000 $as_echo "yes" >&6; }
4001 fi
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4003 $as_echo_n "checking for C compiler default output file name... " >&6; }
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4005 $as_echo "$ac_file" >&6; }
4006 ac_exeext=$ac_cv_exeext
4007  
4008 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4009 ac_clean_files=$ac_clean_files_save
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4011 $as_echo_n "checking for suffix of executables... " >&6; }
4012 if { { ac_try="$ac_link"
4013 case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016 esac
4017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4018 $as_echo "$ac_try_echo"; } >&5
4019 (eval "$ac_link") 2>&5
4020 ac_status=$?
4021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022 test $ac_status = 0; }; then :
4023 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4024 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4025 # work properly (i.e., refer to `conftest.exe'), while it won't with
4026 # `rm'.
4027 for ac_file in conftest.exe conftest conftest.*; do
4028 test -f "$ac_file" || continue
4029 case $ac_file in
4030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4031 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4032 break;;
4033 * ) break;;
4034 esac
4035 done
4036 else
4037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4040 See \`config.log' for more details" "$LINENO" 5; }
4041 fi
4042 rm -f conftest conftest$ac_cv_exeext
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4044 $as_echo "$ac_cv_exeext" >&6; }
4045  
4046 rm -f conftest.$ac_ext
4047 EXEEXT=$ac_cv_exeext
4048 ac_exeext=$EXEEXT
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4051 #include <stdio.h>
4052 int
4053 main ()
4054 {
4055 FILE *f = fopen ("conftest.out", "w");
4056 return ferror (f) || fclose (f) != 0;
4057  
4058 ;
4059 return 0;
4060 }
4061 _ACEOF
4062 ac_clean_files="$ac_clean_files conftest.out"
4063 # Check that the compiler produces executables we can run. If not, either
4064 # the compiler is broken, or we cross compile.
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4066 $as_echo_n "checking whether we are cross compiling... " >&6; }
4067 if test "$cross_compiling" != yes; then
4068 { { ac_try="$ac_link"
4069 case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4072 esac
4073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4074 $as_echo "$ac_try_echo"; } >&5
4075 (eval "$ac_link") 2>&5
4076 ac_status=$?
4077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4078 test $ac_status = 0; }
4079 if { ac_try='./conftest$ac_cv_exeext'
4080 { { case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4083 esac
4084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4085 $as_echo "$ac_try_echo"; } >&5
4086 (eval "$ac_try") 2>&5
4087 ac_status=$?
4088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4089 test $ac_status = 0; }; }; then
4090 cross_compiling=no
4091 else
4092 if test "$cross_compiling" = maybe; then
4093 cross_compiling=yes
4094 else
4095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4097 as_fn_error $? "cannot run C compiled programs.
4098 If you meant to cross compile, use \`--host'.
4099 See \`config.log' for more details" "$LINENO" 5; }
4100 fi
4101 fi
4102 fi
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4104 $as_echo "$cross_compiling" >&6; }
4105  
4106 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4107 ac_clean_files=$ac_clean_files_save
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4109 $as_echo_n "checking for suffix of object files... " >&6; }
4110 if ${ac_cv_objext+:} false; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115  
4116 int
4117 main ()
4118 {
4119  
4120 ;
4121 return 0;
4122 }
4123 _ACEOF
4124 rm -f conftest.o conftest.obj
4125 if { { ac_try="$ac_compile"
4126 case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4129 esac
4130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4131 $as_echo "$ac_try_echo"; } >&5
4132 (eval "$ac_compile") 2>&5
4133 ac_status=$?
4134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4135 test $ac_status = 0; }; then :
4136 for ac_file in conftest.o conftest.obj conftest.*; do
4137 test -f "$ac_file" || continue;
4138 case $ac_file in
4139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4140 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4141 break;;
4142 esac
4143 done
4144 else
4145 $as_echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4147  
4148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4150 as_fn_error $? "cannot compute suffix of object files: cannot compile
4151 See \`config.log' for more details" "$LINENO" 5; }
4152 fi
4153 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4154 fi
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4156 $as_echo "$ac_cv_objext" >&6; }
4157 OBJEXT=$ac_cv_objext
4158 ac_objext=$OBJEXT
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4160 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4161 if ${ac_cv_c_compiler_gnu+:} false; then :
4162 $as_echo_n "(cached) " >&6
4163 else
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4166  
4167 int
4168 main ()
4169 {
4170 #ifndef __GNUC__
4171 choke me
4172 #endif
4173  
4174 ;
4175 return 0;
4176 }
4177 _ACEOF
4178 if ac_fn_c_try_compile "$LINENO"; then :
4179 ac_compiler_gnu=yes
4180 else
4181 ac_compiler_gnu=no
4182 fi
4183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4185  
4186 fi
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4188 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4189 if test $ac_compiler_gnu = yes; then
4190 GCC=yes
4191 else
4192 GCC=
4193 fi
4194 ac_test_CFLAGS=${CFLAGS+set}
4195 ac_save_CFLAGS=$CFLAGS
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4197 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4198 if ${ac_cv_prog_cc_g+:} false; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 ac_save_c_werror_flag=$ac_c_werror_flag
4202 ac_c_werror_flag=yes
4203 ac_cv_prog_cc_g=no
4204 CFLAGS="-g"
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4207  
4208 int
4209 main ()
4210 {
4211  
4212 ;
4213 return 0;
4214 }
4215 _ACEOF
4216 if ac_fn_c_try_compile "$LINENO"; then :
4217 ac_cv_prog_cc_g=yes
4218 else
4219 CFLAGS=""
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4222  
4223 int
4224 main ()
4225 {
4226  
4227 ;
4228 return 0;
4229 }
4230 _ACEOF
4231 if ac_fn_c_try_compile "$LINENO"; then :
4232  
4233 else
4234 ac_c_werror_flag=$ac_save_c_werror_flag
4235 CFLAGS="-g"
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238  
4239 int
4240 main ()
4241 {
4242  
4243 ;
4244 return 0;
4245 }
4246 _ACEOF
4247 if ac_fn_c_try_compile "$LINENO"; then :
4248 ac_cv_prog_cc_g=yes
4249 fi
4250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4251 fi
4252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253 fi
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255 ac_c_werror_flag=$ac_save_c_werror_flag
4256 fi
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4258 $as_echo "$ac_cv_prog_cc_g" >&6; }
4259 if test "$ac_test_CFLAGS" = set; then
4260 CFLAGS=$ac_save_CFLAGS
4261 elif test $ac_cv_prog_cc_g = yes; then
4262 if test "$GCC" = yes; then
4263 CFLAGS="-g -O2"
4264 else
4265 CFLAGS="-g"
4266 fi
4267 else
4268 if test "$GCC" = yes; then
4269 CFLAGS="-O2"
4270 else
4271 CFLAGS=
4272 fi
4273 fi
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4275 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4276 if ${ac_cv_prog_cc_c89+:} false; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 ac_cv_prog_cc_c89=no
4280 ac_save_CC=$CC
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4283 #include <stdarg.h>
4284 #include <stdio.h>
4285 #include <sys/types.h>
4286 #include <sys/stat.h>
4287 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4288 struct buf { int x; };
4289 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4290 static char *e (p, i)
4291 char **p;
4292 int i;
4293 {
4294 return p[i];
4295 }
4296 static char *f (char * (*g) (char **, int), char **p, ...)
4297 {
4298 char *s;
4299 va_list v;
4300 va_start (v,p);
4301 s = g (p, va_arg (v,int));
4302 va_end (v);
4303 return s;
4304 }
4305  
4306 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4307 function prototypes and stuff, but not '\xHH' hex character constants.
4308 These don't provoke an error unfortunately, instead are silently treated
4309 as 'x'. The following induces an error, until -std is added to get
4310 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4311 array size at least. It's necessary to write '\x00'==0 to get something
4312 that's true only with -std. */
4313 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4314  
4315 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4316 inside strings and character constants. */
4317 #define FOO(x) 'x'
4318 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4319  
4320 int test (int i, double x);
4321 struct s1 {int (*f) (int a);};
4322 struct s2 {int (*f) (double a);};
4323 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4324 int argc;
4325 char **argv;
4326 int
4327 main ()
4328 {
4329 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4330 ;
4331 return 0;
4332 }
4333 _ACEOF
4334 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4335 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4336 do
4337 CC="$ac_save_CC $ac_arg"
4338 if ac_fn_c_try_compile "$LINENO"; then :
4339 ac_cv_prog_cc_c89=$ac_arg
4340 fi
4341 rm -f core conftest.err conftest.$ac_objext
4342 test "x$ac_cv_prog_cc_c89" != "xno" && break
4343 done
4344 rm -f conftest.$ac_ext
4345 CC=$ac_save_CC
4346  
4347 fi
4348 # AC_CACHE_VAL
4349 case "x$ac_cv_prog_cc_c89" in
4350 x)
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4352 $as_echo "none needed" >&6; } ;;
4353 xno)
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4355 $as_echo "unsupported" >&6; } ;;
4356 *)
4357 CC="$CC $ac_cv_prog_cc_c89"
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4359 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4360 esac
4361 if test "x$ac_cv_prog_cc_c89" != xno; then :
4362  
4363 fi
4364  
4365 ac_ext=c
4366 ac_cpp='$CPP $CPPFLAGS'
4367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4370 DEPDIR="${am__leading_dot}deps"
4371  
4372 ac_config_commands="$ac_config_commands depfiles"
4373  
4374  
4375 am_make=${MAKE-make}
4376 cat > confinc << 'END'
4377 am__doit:
4378 @echo this is the am__doit target
4379 .PHONY: am__doit
4380 END
4381 # If we don't find an include directive, just comment out the code.
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4383 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4384 am__include="#"
4385 am__quote=
4386 _am_result=none
4387 # First try GNU make style include.
4388 echo "include confinc" > confmf
4389 # Ignore all kinds of additional output from `make'.
4390 case `$am_make -s -f confmf 2> /dev/null` in #(
4391 *the\ am__doit\ target*)
4392 am__include=include
4393 am__quote=
4394 _am_result=GNU
4395 ;;
4396 esac
4397 # Now try BSD make style include.
4398 if test "$am__include" = "#"; then
4399 echo '.include "confinc"' > confmf
4400 case `$am_make -s -f confmf 2> /dev/null` in #(
4401 *the\ am__doit\ target*)
4402 am__include=.include
4403 am__quote="\""
4404 _am_result=BSD
4405 ;;
4406 esac
4407 fi
4408  
4409  
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4411 $as_echo "$_am_result" >&6; }
4412 rm -f confinc confmf
4413  
4414 # Check whether --enable-dependency-tracking was given.
4415 if test "${enable_dependency_tracking+set}" = set; then :
4416 enableval=$enable_dependency_tracking;
4417 fi
4418  
4419 if test "x$enable_dependency_tracking" != xno; then
4420 am_depcomp="$ac_aux_dir/depcomp"
4421 AMDEPBACKSLASH='\'
4422 fi
4423 if test "x$enable_dependency_tracking" != xno; then
4424 AMDEP_TRUE=
4425 AMDEP_FALSE='#'
4426 else
4427 AMDEP_TRUE='#'
4428 AMDEP_FALSE=
4429 fi
4430  
4431  
4432  
4433 depcc="$CC" am_compiler_list=
4434  
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4436 $as_echo_n "checking dependency style of $depcc... " >&6; }
4437 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4441 # We make a subdir and do the tests there. Otherwise we can end up
4442 # making bogus files that we don't know about and never remove. For
4443 # instance it was reported that on HP-UX the gcc test will end up
4444 # making a dummy file named `D' -- because `-MD' means `put the output
4445 # in D'.
4446 mkdir conftest.dir
4447 # Copy depcomp to subdir because otherwise we won't find it if we're
4448 # using a relative directory.
4449 cp "$am_depcomp" conftest.dir
4450 cd conftest.dir
4451 # We will build objects and dependencies in a subdirectory because
4452 # it helps to detect inapplicable dependency modes. For instance
4453 # both Tru64's cc and ICC support -MD to output dependencies as a
4454 # side effect of compilation, but ICC will put the dependencies in
4455 # the current directory while Tru64 will put them in the object
4456 # directory.
4457 mkdir sub
4458  
4459 am_cv_CC_dependencies_compiler_type=none
4460 if test "$am_compiler_list" = ""; then
4461 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4462 fi
4463 am__universal=false
4464 case " $depcc " in #(
4465 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4466 esac
4467  
4468 for depmode in $am_compiler_list; do
4469 # Setup a source with many dependencies, because some compilers
4470 # like to wrap large dependency lists on column 80 (with \), and
4471 # we should not choose a depcomp mode which is confused by this.
4472 #
4473 # We need to recreate these files for each test, as the compiler may
4474 # overwrite some of them when testing with obscure command lines.
4475 # This happens at least with the AIX C compiler.
4476 : > sub/conftest.c
4477 for i in 1 2 3 4 5 6; do
4478 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4479 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4480 # Solaris 8's {/usr,}/bin/sh.
4481 touch sub/conftst$i.h
4482 done
4483 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4484  
4485 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4486 # mode. It turns out that the SunPro C++ compiler does not properly
4487 # handle `-M -o', and we need to detect this. Also, some Intel
4488 # versions had trouble with output in subdirs
4489 am__obj=sub/conftest.${OBJEXT-o}
4490 am__minus_obj="-o $am__obj"
4491 case $depmode in
4492 gcc)
4493 # This depmode causes a compiler race in universal mode.
4494 test "$am__universal" = false || continue
4495 ;;
4496 nosideeffect)
4497 # after this tag, mechanisms are not by side-effect, so they'll
4498 # only be used when explicitly requested
4499 if test "x$enable_dependency_tracking" = xyes; then
4500 continue
4501 else
4502 break
4503 fi
4504 ;;
4505 msvisualcpp | msvcmsys)
4506 # This compiler won't grok `-c -o', but also, the minuso test has
4507 # not run yet. These depmodes are late enough in the game, and
4508 # so weak that their functioning should not be impacted.
4509 am__obj=conftest.${OBJEXT-o}
4510 am__minus_obj=
4511 ;;
4512 none) break ;;
4513 esac
4514 if depmode=$depmode \
4515 source=sub/conftest.c object=$am__obj \
4516 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4517 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4518 >/dev/null 2>conftest.err &&
4519 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4520 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4521 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4522 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4523 # icc doesn't choke on unknown options, it will just issue warnings
4524 # or remarks (even with -Werror). So we grep stderr for any message
4525 # that says an option was ignored or not supported.
4526 # When given -MP, icc 7.0 and 7.1 complain thusly:
4527 # icc: Command line warning: ignoring option '-M'; no argument required
4528 # The diagnosis changed in icc 8.0:
4529 # icc: Command line remark: option '-MP' not supported
4530 if (grep 'ignoring option' conftest.err ||
4531 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4532 am_cv_CC_dependencies_compiler_type=$depmode
4533 break
4534 fi
4535 fi
4536 done
4537  
4538 cd ..
4539 rm -rf conftest.dir
4540 else
4541 am_cv_CC_dependencies_compiler_type=none
4542 fi
4543  
4544 fi
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4546 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4547 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4548  
4549 if
4550 test "x$enable_dependency_tracking" != xno \
4551 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4552 am__fastdepCC_TRUE=
4553 am__fastdepCC_FALSE='#'
4554 else
4555 am__fastdepCC_TRUE='#'
4556 am__fastdepCC_FALSE=
4557 fi
4558  
4559  
4560 ac_ext=c
4561 ac_cpp='$CPP $CPPFLAGS'
4562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4566 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4567 # On Suns, sometimes $CPP names a directory.
4568 if test -n "$CPP" && test -d "$CPP"; then
4569 CPP=
4570 fi
4571 if test -z "$CPP"; then
4572 if ${ac_cv_prog_CPP+:} false; then :
4573 $as_echo_n "(cached) " >&6
4574 else
4575 # Double quotes because CPP needs to be expanded
4576 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4577 do
4578 ac_preproc_ok=false
4579 for ac_c_preproc_warn_flag in '' yes
4580 do
4581 # Use a header file that comes with gcc, so configuring glibc
4582 # with a fresh cross-compiler works.
4583 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4584 # <limits.h> exists even on freestanding compilers.
4585 # On the NeXT, cc -E runs the code through the compiler's parser,
4586 # not just through cpp. "Syntax error" is here to catch this case.
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4589 #ifdef __STDC__
4590 # include <limits.h>
4591 #else
4592 # include <assert.h>
4593 #endif
4594 Syntax error
4595 _ACEOF
4596 if ac_fn_c_try_cpp "$LINENO"; then :
4597  
4598 else
4599 # Broken: fails on valid input.
4600 continue
4601 fi
4602 rm -f conftest.err conftest.i conftest.$ac_ext
4603  
4604 # OK, works on sane cases. Now check whether nonexistent headers
4605 # can be detected and how.
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4608 #include <ac_nonexistent.h>
4609 _ACEOF
4610 if ac_fn_c_try_cpp "$LINENO"; then :
4611 # Broken: success on invalid input.
4612 continue
4613 else
4614 # Passes both tests.
4615 ac_preproc_ok=:
4616 break
4617 fi
4618 rm -f conftest.err conftest.i conftest.$ac_ext
4619  
4620 done
4621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4622 rm -f conftest.i conftest.err conftest.$ac_ext
4623 if $ac_preproc_ok; then :
4624 break
4625 fi
4626  
4627 done
4628 ac_cv_prog_CPP=$CPP
4629  
4630 fi
4631 CPP=$ac_cv_prog_CPP
4632 else
4633 ac_cv_prog_CPP=$CPP
4634 fi
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4636 $as_echo "$CPP" >&6; }
4637 ac_preproc_ok=false
4638 for ac_c_preproc_warn_flag in '' yes
4639 do
4640 # Use a header file that comes with gcc, so configuring glibc
4641 # with a fresh cross-compiler works.
4642 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4643 # <limits.h> exists even on freestanding compilers.
4644 # On the NeXT, cc -E runs the code through the compiler's parser,
4645 # not just through cpp. "Syntax error" is here to catch this case.
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4648 #ifdef __STDC__
4649 # include <limits.h>
4650 #else
4651 # include <assert.h>
4652 #endif
4653 Syntax error
4654 _ACEOF
4655 if ac_fn_c_try_cpp "$LINENO"; then :
4656  
4657 else
4658 # Broken: fails on valid input.
4659 continue
4660 fi
4661 rm -f conftest.err conftest.i conftest.$ac_ext
4662  
4663 # OK, works on sane cases. Now check whether nonexistent headers
4664 # can be detected and how.
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4667 #include <ac_nonexistent.h>
4668 _ACEOF
4669 if ac_fn_c_try_cpp "$LINENO"; then :
4670 # Broken: success on invalid input.
4671 continue
4672 else
4673 # Passes both tests.
4674 ac_preproc_ok=:
4675 break
4676 fi
4677 rm -f conftest.err conftest.i conftest.$ac_ext
4678  
4679 done
4680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4681 rm -f conftest.i conftest.err conftest.$ac_ext
4682 if $ac_preproc_ok; then :
4683  
4684 else
4685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4687 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4688 See \`config.log' for more details" "$LINENO" 5; }
4689 fi
4690  
4691 ac_ext=c
4692 ac_cpp='$CPP $CPPFLAGS'
4693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4696  
4697  
4698  
4699 # Extract the first word of "strip", so it can be a program name with args.
4700 set dummy strip; ac_word=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if ${ac_cv_path_STRIP+:} false; then :
4704 $as_echo_n "(cached) " >&6
4705 else
4706 case $STRIP in
4707 [\\/]* | ?:[\\/]*)
4708 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
4709 ;;
4710 *)
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714 IFS=$as_save_IFS
4715 test -z "$as_dir" && as_dir=.
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4718 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
4719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 break 2
4721 fi
4722 done
4723 done
4724 IFS=$as_save_IFS
4725  
4726 test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP=":"
4727 ;;
4728 esac
4729 fi
4730 STRIP=$ac_cv_path_STRIP
4731 if test -n "$STRIP"; then
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4733 $as_echo "$STRIP" >&6; }
4734 else
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736 $as_echo "no" >&6; }
4737 fi
4738  
4739 # Installed binaries are usually stripped using `strip' when the user
4740 # run `make install-strip'. However `strip' might not be the right
4741 # tool to use in cross-compilation environments, therefore Automake
4742 # will honor the `STRIP' environment variable to overrule this program.
4743 if test "$cross_compiling" != no; then
4744 if test -n "$ac_tool_prefix"; then
4745 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4746 set dummy ${ac_tool_prefix}strip; ac_word=$2
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 $as_echo_n "checking for $ac_word... " >&6; }
4749 if ${ac_cv_prog_STRIP+:} false; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 if test -n "$STRIP"; then
4753 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4754 else
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4757 do
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 break 2
4765 fi
4766 done
4767 done
4768 IFS=$as_save_IFS
4769  
4770 fi
4771 fi
4772 STRIP=$ac_cv_prog_STRIP
4773 if test -n "$STRIP"; then
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4775 $as_echo "$STRIP" >&6; }
4776 else
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4779 fi
4780  
4781  
4782 fi
4783 if test -z "$ac_cv_prog_STRIP"; then
4784 ac_ct_STRIP=$STRIP
4785 # Extract the first word of "strip", so it can be a program name with args.
4786 set dummy strip; ac_word=$2
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4788 $as_echo_n "checking for $ac_word... " >&6; }
4789 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4790 $as_echo_n "(cached) " >&6
4791 else
4792 if test -n "$ac_ct_STRIP"; then
4793 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4794 else
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4797 do
4798 IFS=$as_save_IFS
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4802 ac_cv_prog_ac_ct_STRIP="strip"
4803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 break 2
4805 fi
4806 done
4807 done
4808 IFS=$as_save_IFS
4809  
4810 fi
4811 fi
4812 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4813 if test -n "$ac_ct_STRIP"; then
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4815 $as_echo "$ac_ct_STRIP" >&6; }
4816 else
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818 $as_echo "no" >&6; }
4819 fi
4820  
4821 if test "x$ac_ct_STRIP" = x; then
4822 STRIP=":"
4823 else
4824 case $cross_compiling:$ac_tool_warned in
4825 yes:)
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4828 ac_tool_warned=yes ;;
4829 esac
4830 STRIP=$ac_ct_STRIP
4831 fi
4832 else
4833 STRIP="$ac_cv_prog_STRIP"
4834 fi
4835  
4836 fi
4837 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4838  
4839  
4840 # Make sure we can run config.sub.
4841 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4842 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4843  
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4845 $as_echo_n "checking build system type... " >&6; }
4846 if ${ac_cv_build+:} false; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 ac_build_alias=$build_alias
4850 test "x$ac_build_alias" = x &&
4851 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4852 test "x$ac_build_alias" = x &&
4853 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4854 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4855 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4856  
4857 fi
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4859 $as_echo "$ac_cv_build" >&6; }
4860 case $ac_cv_build in
4861 *-*-*) ;;
4862 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4863 esac
4864 build=$ac_cv_build
4865 ac_save_IFS=$IFS; IFS='-'
4866 set x $ac_cv_build
4867 shift
4868 build_cpu=$1
4869 build_vendor=$2
4870 shift; shift
4871 # Remember, the first character of IFS is used to create $*,
4872 # except with old shells:
4873 build_os=$*
4874 IFS=$ac_save_IFS
4875 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4876  
4877  
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4879 $as_echo_n "checking host system type... " >&6; }
4880 if ${ac_cv_host+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 if test "x$host_alias" = x; then
4884 ac_cv_host=$ac_cv_build
4885 else
4886 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4887 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4888 fi
4889  
4890 fi
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4892 $as_echo "$ac_cv_host" >&6; }
4893 case $ac_cv_host in
4894 *-*-*) ;;
4895 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4896 esac
4897 host=$ac_cv_host
4898 ac_save_IFS=$IFS; IFS='-'
4899 set x $ac_cv_host
4900 shift
4901 host_cpu=$1
4902 host_vendor=$2
4903 shift; shift
4904 # Remember, the first character of IFS is used to create $*,
4905 # except with old shells:
4906 host_os=$*
4907 IFS=$ac_save_IFS
4908 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4909  
4910  
4911  
4912  
4913  
4914  
4915  
4916  
4917  
4918  
4919  
4920  
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4922 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4923 if ${ac_cv_path_GREP+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 if test -z "$GREP"; then
4927 ac_path_GREP_found=false
4928 # Loop through the user's path and test for each of PROGNAME-LIST
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4931 do
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_prog in grep ggrep; do
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4937 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4938 # Check for GNU ac_path_GREP and select it if it is found.
4939 # Check for GNU $ac_path_GREP
4940 case `"$ac_path_GREP" --version 2>&1` in
4941 *GNU*)
4942 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4943 *)
4944 ac_count=0
4945 $as_echo_n 0123456789 >"conftest.in"
4946 while :
4947 do
4948 cat "conftest.in" "conftest.in" >"conftest.tmp"
4949 mv "conftest.tmp" "conftest.in"
4950 cp "conftest.in" "conftest.nl"
4951 $as_echo 'GREP' >> "conftest.nl"
4952 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4953 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4954 as_fn_arith $ac_count + 1 && ac_count=$as_val
4955 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4956 # Best one so far, save it but keep looking for a better one
4957 ac_cv_path_GREP="$ac_path_GREP"
4958 ac_path_GREP_max=$ac_count
4959 fi
4960 # 10*(2^10) chars as input seems more than enough
4961 test $ac_count -gt 10 && break
4962 done
4963 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4964 esac
4965  
4966 $ac_path_GREP_found && break 3
4967 done
4968 done
4969 done
4970 IFS=$as_save_IFS
4971 if test -z "$ac_cv_path_GREP"; then
4972 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4973 fi
4974 else
4975 ac_cv_path_GREP=$GREP
4976 fi
4977  
4978 fi
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4980 $as_echo "$ac_cv_path_GREP" >&6; }
4981 GREP="$ac_cv_path_GREP"
4982  
4983  
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4985 $as_echo_n "checking for egrep... " >&6; }
4986 if ${ac_cv_path_EGREP+:} false; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4990 then ac_cv_path_EGREP="$GREP -E"
4991 else
4992 if test -z "$EGREP"; then
4993 ac_path_EGREP_found=false
4994 # Loop through the user's path and test for each of PROGNAME-LIST
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4997 do
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_prog in egrep; do
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5003 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5004 # Check for GNU ac_path_EGREP and select it if it is found.
5005 # Check for GNU $ac_path_EGREP
5006 case `"$ac_path_EGREP" --version 2>&1` in
5007 *GNU*)
5008 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5009 *)
5010 ac_count=0
5011 $as_echo_n 0123456789 >"conftest.in"
5012 while :
5013 do
5014 cat "conftest.in" "conftest.in" >"conftest.tmp"
5015 mv "conftest.tmp" "conftest.in"
5016 cp "conftest.in" "conftest.nl"
5017 $as_echo 'EGREP' >> "conftest.nl"
5018 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5019 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5020 as_fn_arith $ac_count + 1 && ac_count=$as_val
5021 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5022 # Best one so far, save it but keep looking for a better one
5023 ac_cv_path_EGREP="$ac_path_EGREP"
5024 ac_path_EGREP_max=$ac_count
5025 fi
5026 # 10*(2^10) chars as input seems more than enough
5027 test $ac_count -gt 10 && break
5028 done
5029 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5030 esac
5031  
5032 $ac_path_EGREP_found && break 3
5033 done
5034 done
5035 done
5036 IFS=$as_save_IFS
5037 if test -z "$ac_cv_path_EGREP"; then
5038 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5039 fi
5040 else
5041 ac_cv_path_EGREP=$EGREP
5042 fi
5043  
5044 fi
5045 fi
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5047 $as_echo "$ac_cv_path_EGREP" >&6; }
5048 EGREP="$ac_cv_path_EGREP"
5049  
5050  
5051  
5052  
5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054 /* end confdefs.h. */
5055  
5056 #ifdef __ACK__
5057 Amsterdam
5058 #endif
5059  
5060 _ACEOF
5061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5062 $EGREP "Amsterdam" >/dev/null 2>&1; then :
5063 AR='cc -c.a'
5064 ARFLAGS='-o'
5065 RANLIB=':'
5066  
5067 else
5068 AR='ar'
5069 ARFLAGS='cru'
5070 if test -n "$ac_tool_prefix"; then
5071 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5072 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if ${ac_cv_prog_RANLIB+:} false; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 if test -n "$RANLIB"; then
5079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5083 do
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 break 2
5091 fi
5092 done
5093 done
5094 IFS=$as_save_IFS
5095  
5096 fi
5097 fi
5098 RANLIB=$ac_cv_prog_RANLIB
5099 if test -n "$RANLIB"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5101 $as_echo "$RANLIB" >&6; }
5102 else
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5105 fi
5106  
5107  
5108 fi
5109 if test -z "$ac_cv_prog_RANLIB"; then
5110 ac_ct_RANLIB=$RANLIB
5111 # Extract the first word of "ranlib", so it can be a program name with args.
5112 set dummy ranlib; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 if test -n "$ac_ct_RANLIB"; then
5119 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5120 else
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_prog_ac_ct_RANLIB="ranlib"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5131 fi
5132 done
5133 done
5134 IFS=$as_save_IFS
5135  
5136 fi
5137 fi
5138 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5139 if test -n "$ac_ct_RANLIB"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5141 $as_echo "$ac_ct_RANLIB" >&6; }
5142 else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5145 fi
5146  
5147 if test "x$ac_ct_RANLIB" = x; then
5148 RANLIB=":"
5149 else
5150 case $cross_compiling:$ac_tool_warned in
5151 yes:)
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5154 ac_tool_warned=yes ;;
5155 esac
5156 RANLIB=$ac_ct_RANLIB
5157 fi
5158 else
5159 RANLIB="$ac_cv_prog_RANLIB"
5160 fi
5161  
5162  
5163 fi
5164 rm -f conftest*
5165  
5166  
5167  
5168  
5169 if test "x$CC" != xcc; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5171 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5172 else
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5174 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5175 fi
5176 set dummy $CC; ac_cc=`$as_echo "$2" |
5177 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5178 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5183  
5184 int
5185 main ()
5186 {
5187  
5188 ;
5189 return 0;
5190 }
5191 _ACEOF
5192 # Make sure it works both with $CC and with simple cc.
5193 # We do the test twice because some compilers refuse to overwrite an
5194 # existing .o file with -o, though they will create one.
5195 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5196 rm -f conftest2.*
5197 if { { case "(($ac_try" in
5198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5199 *) ac_try_echo=$ac_try;;
5200 esac
5201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5202 $as_echo "$ac_try_echo"; } >&5
5203 (eval "$ac_try") 2>&5
5204 ac_status=$?
5205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5206 test $ac_status = 0; } &&
5207 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209 *) ac_try_echo=$ac_try;;
5210 esac
5211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5212 $as_echo "$ac_try_echo"; } >&5
5213 (eval "$ac_try") 2>&5
5214 ac_status=$?
5215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5216 test $ac_status = 0; };
5217 then
5218 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5219 if test "x$CC" != xcc; then
5220 # Test first that cc exists at all.
5221 if { ac_try='cc -c conftest.$ac_ext >&5'
5222 { { case "(($ac_try" in
5223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5224 *) ac_try_echo=$ac_try;;
5225 esac
5226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5227 $as_echo "$ac_try_echo"; } >&5
5228 (eval "$ac_try") 2>&5
5229 ac_status=$?
5230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5231 test $ac_status = 0; }; }; then
5232 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5233 rm -f conftest2.*
5234 if { { case "(($ac_try" in
5235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236 *) ac_try_echo=$ac_try;;
5237 esac
5238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5239 $as_echo "$ac_try_echo"; } >&5
5240 (eval "$ac_try") 2>&5
5241 ac_status=$?
5242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5243 test $ac_status = 0; } &&
5244 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246 *) ac_try_echo=$ac_try;;
5247 esac
5248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5249 $as_echo "$ac_try_echo"; } >&5
5250 (eval "$ac_try") 2>&5
5251 ac_status=$?
5252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5253 test $ac_status = 0; };
5254 then
5255 # cc works too.
5256 :
5257 else
5258 # cc exists but doesn't like -o.
5259 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5260 fi
5261 fi
5262 fi
5263 else
5264 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5265 fi
5266 rm -f core conftest*
5267  
5268 fi
5269 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5271 $as_echo "yes" >&6; }
5272 else
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5275  
5276 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5277  
5278 fi
5279  
5280 # FIXME: we rely on the cache variable name because
5281 # there is no other way.
5282 set dummy $CC
5283 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5284 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5285 if test "$am_t" != yes; then
5286 # Losing compiler, so override with the script.
5287 # FIXME: It is wrong to rewrite CC.
5288 # But if we don't then we get into trouble of one sort or another.
5289 # A longer-term fix would be to have automake use am__CC in this case,
5290 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5291 CC="$am_aux_dir/compile $CC"
5292 fi
5293  
5294  
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5296 $as_echo_n "checking for ANSI C header files... " >&6; }
5297 if ${ac_cv_header_stdc+:} false; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5302 #include <stdlib.h>
5303 #include <stdarg.h>
5304 #include <string.h>
5305 #include <float.h>
5306  
5307 int
5308 main ()
5309 {
5310  
5311 ;
5312 return 0;
5313 }
5314 _ACEOF
5315 if ac_fn_c_try_compile "$LINENO"; then :
5316 ac_cv_header_stdc=yes
5317 else
5318 ac_cv_header_stdc=no
5319 fi
5320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321  
5322 if test $ac_cv_header_stdc = yes; then
5323 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5326 #include <string.h>
5327  
5328 _ACEOF
5329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5330 $EGREP "memchr" >/dev/null 2>&1; then :
5331  
5332 else
5333 ac_cv_header_stdc=no
5334 fi
5335 rm -f conftest*
5336  
5337 fi
5338  
5339 if test $ac_cv_header_stdc = yes; then
5340 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5343 #include <stdlib.h>
5344  
5345 _ACEOF
5346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5347 $EGREP "free" >/dev/null 2>&1; then :
5348  
5349 else
5350 ac_cv_header_stdc=no
5351 fi
5352 rm -f conftest*
5353  
5354 fi
5355  
5356 if test $ac_cv_header_stdc = yes; then
5357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5358 if test "$cross_compiling" = yes; then :
5359 :
5360 else
5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362 /* end confdefs.h. */
5363 #include <ctype.h>
5364 #include <stdlib.h>
5365 #if ((' ' & 0x0FF) == 0x020)
5366 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5367 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5368 #else
5369 # define ISLOWER(c) \
5370 (('a' <= (c) && (c) <= 'i') \
5371 || ('j' <= (c) && (c) <= 'r') \
5372 || ('s' <= (c) && (c) <= 'z'))
5373 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5374 #endif
5375  
5376 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5377 int
5378 main ()
5379 {
5380 int i;
5381 for (i = 0; i < 256; i++)
5382 if (XOR (islower (i), ISLOWER (i))
5383 || toupper (i) != TOUPPER (i))
5384 return 2;
5385 return 0;
5386 }
5387 _ACEOF
5388 if ac_fn_c_try_run "$LINENO"; then :
5389  
5390 else
5391 ac_cv_header_stdc=no
5392 fi
5393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5394 conftest.$ac_objext conftest.beam conftest.$ac_ext
5395 fi
5396  
5397 fi
5398 fi
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5400 $as_echo "$ac_cv_header_stdc" >&6; }
5401 if test $ac_cv_header_stdc = yes; then
5402  
5403 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5404  
5405 fi
5406  
5407 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5408 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5409 inttypes.h stdint.h unistd.h
5410 do :
5411 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5412 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5413 "
5414 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5415 cat >>confdefs.h <<_ACEOF
5416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5417 _ACEOF
5418  
5419 fi
5420  
5421 done
5422  
5423  
5424  
5425  
5426  
5427 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5428 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5429 MINIX=yes
5430 else
5431 MINIX=
5432 fi
5433  
5434  
5435 if test "$MINIX" = yes; then
5436  
5437 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5438  
5439  
5440 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5441  
5442  
5443 $as_echo "#define _MINIX 1" >>confdefs.h
5444  
5445 fi
5446  
5447 case "$host_os" in
5448 hpux*)
5449  
5450 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5451  
5452 ;;
5453 esac
5454  
5455  
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5457 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5458 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463  
5464 # define __EXTENSIONS__ 1
5465 $ac_includes_default
5466 int
5467 main ()
5468 {
5469  
5470 ;
5471 return 0;
5472 }
5473 _ACEOF
5474 if ac_fn_c_try_compile "$LINENO"; then :
5475 ac_cv_safe_to_define___extensions__=yes
5476 else
5477 ac_cv_safe_to_define___extensions__=no
5478 fi
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 fi
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5482 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5483 test $ac_cv_safe_to_define___extensions__ = yes &&
5484 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5485  
5486 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5487  
5488 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5489  
5490 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5491  
5492 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5493  
5494 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5495  
5496  
5497  
5498  
5499  
5500  
5501  
5502  
5503  
5504  
5505  
5506 # Code from module alloca-opt:
5507 # Code from module allocator:
5508 # Code from module areadlink:
5509 # Code from module binary-io:
5510 # Code from module canonicalize-lgpl:
5511 # Code from module careadlinkat:
5512 # Code from module dosname:
5513 # Code from module double-slash-root:
5514 # Code from module environ:
5515 # Code from module errno:
5516 # Code from module error:
5517 # Code from module extensions:
5518  
5519 # Code from module fcntl-h:
5520 # Code from module gettext:
5521 # Code from module gettext-h:
5522 # Code from module havelib:
5523 # Code from module include_next:
5524 # Code from module intprops:
5525 # Code from module largefile:
5526 # Code from module libiconv-misc:
5527 # Code from module lstat:
5528 # Code from module malloca:
5529 # Code from module mbstate:
5530 # Code from module memmove:
5531 # Code from module multiarch:
5532 # Code from module nocrash:
5533 # Code from module pathmax:
5534 # Code from module progname:
5535 # Code from module read:
5536 # Code from module readlink:
5537 # Code from module relocatable-prog:
5538 # Code from module relocatable-prog-wrapper:
5539 # Code from module safe-read:
5540 # Code from module signal:
5541 # Code from module sigpipe:
5542 # Code from module sigprocmask:
5543 # Code from module snippet/_Noreturn:
5544 # Code from module snippet/arg-nonnull:
5545 # Code from module snippet/c++defs:
5546 # Code from module snippet/warn-on-use:
5547 # Code from module ssize_t:
5548 # Code from module stat:
5549 # Code from module stdbool:
5550 # Code from module stddef:
5551 # Code from module stdint:
5552 # Code from module stdio:
5553 # Code from module stdlib:
5554 # Code from module streq:
5555 # Code from module strerror:
5556 # Code from module strerror-override:
5557 # Code from module string:
5558 # Code from module sys_stat:
5559 # Code from module time:
5560 # Code from module unistd:
5561 # Code from module unitypes:
5562 # Code from module uniwidth/base:
5563 # Code from module uniwidth/width:
5564 # Code from module unlocked-io:
5565 # Code from module verify:
5566 # Code from module xalloc:
5567 # Code from module xreadlink:
5568  
5569  
5570  
5571  
5572 # Check whether --with-gnu-ld was given.
5573 if test "${with_gnu_ld+set}" = set; then :
5574 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5575 else
5576 with_gnu_ld=no
5577 fi
5578  
5579 # Prepare PATH_SEPARATOR.
5580 # The user is always right.
5581 if test "${PATH_SEPARATOR+set}" != set; then
5582 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5583 # contains only /bin. Note that ksh looks also at the FPATH variable,
5584 # so we have to set that as well for the test.
5585 PATH_SEPARATOR=:
5586 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5587 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5588 || PATH_SEPARATOR=';'
5589 }
5590 fi
5591 ac_prog=ld
5592 if test "$GCC" = yes; then
5593 # Check if gcc -print-prog-name=ld gives a path.
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5595 $as_echo_n "checking for ld used by GCC... " >&6; }
5596 case $host in
5597 *-*-mingw*)
5598 # gcc leaves a trailing carriage return which upsets mingw
5599 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5600 *)
5601 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5602 esac
5603 case $ac_prog in
5604 # Accept absolute paths.
5605 [\\/]* | [A-Za-z]:[\\/]*)
5606 re_direlt='/[^/][^/]*/\.\./'
5607 # Canonicalize the path of ld
5608 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5609 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5610 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5611 done
5612 test -z "$LD" && LD="$ac_prog"
5613 ;;
5614 "")
5615 # If it fails, then pretend we aren't using GCC.
5616 ac_prog=ld
5617 ;;
5618 *)
5619 # If it is relative, then search for the first ld in PATH.
5620 with_gnu_ld=unknown
5621 ;;
5622 esac
5623 elif test "$with_gnu_ld" = yes; then
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5625 $as_echo_n "checking for GNU ld... " >&6; }
5626 else
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5628 $as_echo_n "checking for non-GNU ld... " >&6; }
5629 fi
5630 if ${acl_cv_path_LD+:} false; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 if test -z "$LD"; then
5634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5635 for ac_dir in $PATH; do
5636 test -z "$ac_dir" && ac_dir=.
5637 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5638 acl_cv_path_LD="$ac_dir/$ac_prog"
5639 # Check to see if the program is GNU ld. I'd rather use --version,
5640 # but apparently some GNU ld's only accept -v.
5641 # Break only if it was the GNU/non-GNU ld that we prefer.
5642 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5643 *GNU* | *'with BFD'*)
5644 test "$with_gnu_ld" != no && break ;;
5645 *)
5646 test "$with_gnu_ld" != yes && break ;;
5647 esac
5648 fi
5649 done
5650 IFS="$ac_save_ifs"
5651 else
5652 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5653 fi
5654 fi
5655  
5656 LD="$acl_cv_path_LD"
5657 if test -n "$LD"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5659 $as_echo "$LD" >&6; }
5660 else
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5663 fi
5664 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5666 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5667 if ${acl_cv_prog_gnu_ld+:} false; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5671 case `$LD -v 2>&1 </dev/null` in
5672 *GNU* | *'with BFD'*)
5673 acl_cv_prog_gnu_ld=yes ;;
5674 *)
5675 acl_cv_prog_gnu_ld=no ;;
5676 esac
5677 fi
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5679 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5680 with_gnu_ld=$acl_cv_prog_gnu_ld
5681  
5682  
5683  
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
5685 $as_echo_n "checking for shared library path variable... " >&6; }
5686 if ${acl_cv_libpath+:} false; then :
5687 $as_echo_n "(cached) " >&6
5688 else
5689  
5690 LD="$LD" \
5691 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
5692 . ./conftest.sh
5693 rm -f ./conftest.sh
5694 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
5695  
5696 fi
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
5698 $as_echo "$acl_cv_libpath" >&6; }
5699 shlibpath_var="$acl_cv_shlibpath_var"
5700  
5701  
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
5703 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
5704 # Check whether --enable-relocatable was given.
5705 if test "${enable_relocatable+set}" = set; then :
5706 enableval=$enable_relocatable; if test "$enableval" != no; then
5707 RELOCATABLE=yes
5708 else
5709 RELOCATABLE=no
5710 fi
5711  
5712 else
5713 RELOCATABLE=no
5714 fi
5715  
5716  
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
5718 $as_echo "$RELOCATABLE" >&6; }
5719  
5720  
5721  
5722 if test "X$prefix" = "XNONE"; then
5723 reloc_final_prefix="$ac_default_prefix"
5724 else
5725 reloc_final_prefix="$prefix"
5726 fi
5727  
5728 cat >>confdefs.h <<_ACEOF
5729 #define INSTALLPREFIX "${reloc_final_prefix}"
5730 _ACEOF
5731  
5732 if test $RELOCATABLE = yes; then
5733  
5734 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
5735  
5736 fi
5737  
5738  
5739  
5740  
5741  
5742  
5743 is_noop=no
5744 use_elf_origin_trick=no
5745 use_wrapper=no
5746 if test $RELOCATABLE = yes; then
5747 # --enable-relocatable implies --disable-rpath
5748 enable_rpath=no
5749 for ac_header in mach-o/dyld.h
5750 do :
5751 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
5752 if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
5753 cat >>confdefs.h <<_ACEOF
5754 #define HAVE_MACH_O_DYLD_H 1
5755 _ACEOF
5756  
5757 fi
5758  
5759 done
5760  
5761 for ac_func in _NSGetExecutablePath
5762 do :
5763 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
5764 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
5765 cat >>confdefs.h <<_ACEOF
5766 #define HAVE__NSGETEXECUTABLEPATH 1
5767 _ACEOF
5768  
5769 fi
5770 done
5771  
5772 case "$host_os" in
5773 mingw*) is_noop=yes ;;
5774 linux*) use_elf_origin_trick=yes ;;
5775 esac
5776 if test $is_noop = yes; then
5777 RELOCATABLE_LDFLAGS=:
5778  
5779 else
5780 if test $use_elf_origin_trick = yes; then
5781 case "$ac_aux_dir" in
5782 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
5783 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
5784 esac
5785 RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
5786  
5787 else
5788 use_wrapper=yes
5789 INSTALL_PROGRAM_ENV="RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_DESTDIR=\"\$(DESTDIR)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_STRIP_PROG=\"\$(RELOCATABLE_STRIP)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\""
5790  
5791 case "$ac_aux_dir" in
5792 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
5793 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
5794 esac
5795 fi
5796 fi
5797 fi
5798 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
5799 RELOCATABLE_VIA_LD_TRUE=
5800 RELOCATABLE_VIA_LD_FALSE='#'
5801 else
5802 RELOCATABLE_VIA_LD_TRUE='#'
5803 RELOCATABLE_VIA_LD_FALSE=
5804 fi
5805  
5806 if test $use_wrapper = yes; then
5807 RELOCATABLE_VIA_WRAPPER_TRUE=
5808 RELOCATABLE_VIA_WRAPPER_FALSE='#'
5809 else
5810 RELOCATABLE_VIA_WRAPPER_TRUE='#'
5811 RELOCATABLE_VIA_WRAPPER_FALSE=
5812 fi
5813  
5814  
5815  
5816  
5817  
5818  
5819  
5820  
5821 RELOCATABLE_STRIP=':'
5822  
5823  
5824  
5825  
5826  
5827  
5828  
5829 : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
5830 RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
5831 RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
5832  
5833  
5834 # Check whether --enable-extra-encodings was given.
5835 if test "${enable_extra_encodings+set}" = set; then :
5836 enableval=$enable_extra_encodings;
5837 $as_echo "#define ENABLE_EXTRA 1" >>confdefs.h
5838  
5839 USE_EXTRA_ENCODINGS=yes
5840 else
5841 USE_EXTRA_ENCODINGS=no
5842 fi
5843  
5844  
5845  
5846  
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to copy files" >&5
5848 $as_echo_n "checking how to copy files... " >&6; }
5849 if ${cl_cv_prog_cp+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852  
5853 echo "blabla" > conftest.x
5854 err=`/bin/sh -c "cp -p conftest.x conftest.y 2>&1"`
5855 if test -z "$err"; then
5856 cl_cv_prog_cp='cp -p'
5857 else
5858 cl_cv_prog_cp='cp'
5859 fi
5860 rm -f conftest*
5861  
5862 fi
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_prog_cp" >&5
5864 $as_echo "$cl_cv_prog_cp" >&6; }
5865 CP="$cl_cv_prog_cp"
5866  
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to make hard links" >&5
5868 $as_echo_n "checking how to make hard links... " >&6; }
5869 if ${cl_cv_prog_LN+:} false; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872  
5873 rm -f conftestdata conftestfile
5874 echo data > conftestfile
5875 if ln conftestfile conftestdata 2>/dev/null; then
5876 cl_cv_prog_LN=ln
5877 else
5878 cl_cv_prog_LN="$cl_cv_prog_cp"
5879 fi
5880 rm -f conftestdata conftestfile
5881  
5882 fi
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_prog_LN" >&5
5884 $as_echo "$cl_cv_prog_LN" >&6; }
5885 LN="$cl_cv_prog_LN"
5886  
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5888 $as_echo_n "checking whether ln -s works... " >&6; }
5889 LN_S=$as_ln_s
5890 if test "$LN_S" = "ln -s"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5892 $as_echo "yes" >&6; }
5893 else
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5895 $as_echo "no, using $LN_S" >&6; }
5896 fi
5897  
5898  
5899  
5900  
5901  
5902  
5903  
5904 case `pwd` in
5905 *\ * | *\ *)
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5907 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5908 esac
5909  
5910  
5911  
5912 macro_version='2.4'
5913 macro_revision='1.3293'
5914  
5915  
5916  
5917  
5918  
5919  
5920  
5921  
5922  
5923  
5924  
5925  
5926  
5927 ltmain="$ac_aux_dir/ltmain.sh"
5928  
5929 # Backslashify metacharacters that are still active within
5930 # double-quoted strings.
5931 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5932  
5933 # Same as above, but do not quote variable references.
5934 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5935  
5936 # Sed substitution to delay expansion of an escaped shell variable in a
5937 # double_quote_subst'ed string.
5938 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5939  
5940 # Sed substitution to delay expansion of an escaped single quote.
5941 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5942  
5943 # Sed substitution to avoid accidental globbing in evaled expressions
5944 no_glob_subst='s/\*/\\\*/g'
5945  
5946 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5947 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5948 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5949  
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5951 $as_echo_n "checking how to print strings... " >&6; }
5952 # Test print first, because it will be a builtin if present.
5953 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5954 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5955 ECHO='print -r --'
5956 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5957 ECHO='printf %s\n'
5958 else
5959 # Use this function as a fallback that always works.
5960 func_fallback_echo ()
5961 {
5962 eval 'cat <<_LTECHO_EOF
5963 $1
5964 _LTECHO_EOF'
5965 }
5966 ECHO='func_fallback_echo'
5967 fi
5968  
5969 # func_echo_all arg...
5970 # Invoke $ECHO with all args, space-separated.
5971 func_echo_all ()
5972 {
5973 $ECHO ""
5974 }
5975  
5976 case "$ECHO" in
5977 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5978 $as_echo "printf" >&6; } ;;
5979 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5980 $as_echo "print -r" >&6; } ;;
5981 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5982 $as_echo "cat" >&6; } ;;
5983 esac
5984  
5985  
5986  
5987  
5988  
5989  
5990  
5991  
5992  
5993  
5994  
5995  
5996  
5997  
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5999 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6000 if ${ac_cv_path_SED+:} false; then :
6001 $as_echo_n "(cached) " >&6
6002 else
6003 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6004 for ac_i in 1 2 3 4 5 6 7; do
6005 ac_script="$ac_script$as_nl$ac_script"
6006 done
6007 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6008 { ac_script=; unset ac_script;}
6009 if test -z "$SED"; then
6010 ac_path_SED_found=false
6011 # Loop through the user's path and test for each of PROGNAME-LIST
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 for as_dir in $PATH
6014 do
6015 IFS=$as_save_IFS
6016 test -z "$as_dir" && as_dir=.
6017 for ac_prog in sed gsed; do
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6020 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6021 # Check for GNU ac_path_SED and select it if it is found.
6022 # Check for GNU $ac_path_SED
6023 case `"$ac_path_SED" --version 2>&1` in
6024 *GNU*)
6025 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6026 *)
6027 ac_count=0
6028 $as_echo_n 0123456789 >"conftest.in"
6029 while :
6030 do
6031 cat "conftest.in" "conftest.in" >"conftest.tmp"
6032 mv "conftest.tmp" "conftest.in"
6033 cp "conftest.in" "conftest.nl"
6034 $as_echo '' >> "conftest.nl"
6035 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6037 as_fn_arith $ac_count + 1 && ac_count=$as_val
6038 if test $ac_count -gt ${ac_path_SED_max-0}; then
6039 # Best one so far, save it but keep looking for a better one
6040 ac_cv_path_SED="$ac_path_SED"
6041 ac_path_SED_max=$ac_count
6042 fi
6043 # 10*(2^10) chars as input seems more than enough
6044 test $ac_count -gt 10 && break
6045 done
6046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6047 esac
6048  
6049 $ac_path_SED_found && break 3
6050 done
6051 done
6052 done
6053 IFS=$as_save_IFS
6054 if test -z "$ac_cv_path_SED"; then
6055 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6056 fi
6057 else
6058 ac_cv_path_SED=$SED
6059 fi
6060  
6061 fi
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6063 $as_echo "$ac_cv_path_SED" >&6; }
6064 SED="$ac_cv_path_SED"
6065 rm -f conftest.sed
6066  
6067 test -z "$SED" && SED=sed
6068 Xsed="$SED -e 1s/^X//"
6069  
6070  
6071  
6072  
6073  
6074  
6075  
6076  
6077  
6078  
6079  
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6081 $as_echo_n "checking for fgrep... " >&6; }
6082 if ${ac_cv_path_FGREP+:} false; then :
6083 $as_echo_n "(cached) " >&6
6084 else
6085 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6086 then ac_cv_path_FGREP="$GREP -F"
6087 else
6088 if test -z "$FGREP"; then
6089 ac_path_FGREP_found=false
6090 # Loop through the user's path and test for each of PROGNAME-LIST
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6093 do
6094 IFS=$as_save_IFS
6095 test -z "$as_dir" && as_dir=.
6096 for ac_prog in fgrep; do
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6099 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6100 # Check for GNU ac_path_FGREP and select it if it is found.
6101 # Check for GNU $ac_path_FGREP
6102 case `"$ac_path_FGREP" --version 2>&1` in
6103 *GNU*)
6104 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6105 *)
6106 ac_count=0
6107 $as_echo_n 0123456789 >"conftest.in"
6108 while :
6109 do
6110 cat "conftest.in" "conftest.in" >"conftest.tmp"
6111 mv "conftest.tmp" "conftest.in"
6112 cp "conftest.in" "conftest.nl"
6113 $as_echo 'FGREP' >> "conftest.nl"
6114 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6116 as_fn_arith $ac_count + 1 && ac_count=$as_val
6117 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6118 # Best one so far, save it but keep looking for a better one
6119 ac_cv_path_FGREP="$ac_path_FGREP"
6120 ac_path_FGREP_max=$ac_count
6121 fi
6122 # 10*(2^10) chars as input seems more than enough
6123 test $ac_count -gt 10 && break
6124 done
6125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6126 esac
6127  
6128 $ac_path_FGREP_found && break 3
6129 done
6130 done
6131 done
6132 IFS=$as_save_IFS
6133 if test -z "$ac_cv_path_FGREP"; then
6134 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6135 fi
6136 else
6137 ac_cv_path_FGREP=$FGREP
6138 fi
6139  
6140 fi
6141 fi
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6143 $as_echo "$ac_cv_path_FGREP" >&6; }
6144 FGREP="$ac_cv_path_FGREP"
6145  
6146  
6147 test -z "$GREP" && GREP=grep
6148  
6149  
6150  
6151  
6152  
6153  
6154  
6155  
6156  
6157  
6158  
6159  
6160  
6161  
6162  
6163  
6164  
6165  
6166  
6167 # Check whether --with-gnu-ld was given.
6168 if test "${with_gnu_ld+set}" = set; then :
6169 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6170 else
6171 with_gnu_ld=no
6172 fi
6173  
6174 ac_prog=ld
6175 if test "$GCC" = yes; then
6176 # Check if gcc -print-prog-name=ld gives a path.
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6178 $as_echo_n "checking for ld used by $CC... " >&6; }
6179 case $host in
6180 *-*-mingw*)
6181 # gcc leaves a trailing carriage return which upsets mingw
6182 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6183 *)
6184 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6185 esac
6186 case $ac_prog in
6187 # Accept absolute paths.
6188 [\\/]* | ?:[\\/]*)
6189 re_direlt='/[^/][^/]*/\.\./'
6190 # Canonicalize the pathname of ld
6191 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6192 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6193 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6194 done
6195 test -z "$LD" && LD="$ac_prog"
6196 ;;
6197 "")
6198 # If it fails, then pretend we aren't using GCC.
6199 ac_prog=ld
6200 ;;
6201 *)
6202 # If it is relative, then search for the first ld in PATH.
6203 with_gnu_ld=unknown
6204 ;;
6205 esac
6206 elif test "$with_gnu_ld" = yes; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6208 $as_echo_n "checking for GNU ld... " >&6; }
6209 else
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6211 $as_echo_n "checking for non-GNU ld... " >&6; }
6212 fi
6213 if ${lt_cv_path_LD+:} false; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 if test -z "$LD"; then
6217 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6218 for ac_dir in $PATH; do
6219 IFS="$lt_save_ifs"
6220 test -z "$ac_dir" && ac_dir=.
6221 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6222 lt_cv_path_LD="$ac_dir/$ac_prog"
6223 # Check to see if the program is GNU ld. I'd rather use --version,
6224 # but apparently some variants of GNU ld only accept -v.
6225 # Break only if it was the GNU/non-GNU ld that we prefer.
6226 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6227 *GNU* | *'with BFD'*)
6228 test "$with_gnu_ld" != no && break
6229 ;;
6230 *)
6231 test "$with_gnu_ld" != yes && break
6232 ;;
6233 esac
6234 fi
6235 done
6236 IFS="$lt_save_ifs"
6237 else
6238 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6239 fi
6240 fi
6241  
6242 LD="$lt_cv_path_LD"
6243 if test -n "$LD"; then
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6245 $as_echo "$LD" >&6; }
6246 else
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6248 $as_echo "no" >&6; }
6249 fi
6250 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6252 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6253 if ${lt_cv_prog_gnu_ld+:} false; then :
6254 $as_echo_n "(cached) " >&6
6255 else
6256 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6257 case `$LD -v 2>&1 </dev/null` in
6258 *GNU* | *'with BFD'*)
6259 lt_cv_prog_gnu_ld=yes
6260 ;;
6261 *)
6262 lt_cv_prog_gnu_ld=no
6263 ;;
6264 esac
6265 fi
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6267 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6268 with_gnu_ld=$lt_cv_prog_gnu_ld
6269  
6270  
6271  
6272  
6273  
6274  
6275  
6276  
6277  
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6279 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6280 if ${lt_cv_path_NM+:} false; then :
6281 $as_echo_n "(cached) " >&6
6282 else
6283 if test -n "$NM"; then
6284 # Let the user override the test.
6285 lt_cv_path_NM="$NM"
6286 else
6287 lt_nm_to_check="${ac_tool_prefix}nm"
6288 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6289 lt_nm_to_check="$lt_nm_to_check nm"
6290 fi
6291 for lt_tmp_nm in $lt_nm_to_check; do
6292 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6293 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6294 IFS="$lt_save_ifs"
6295 test -z "$ac_dir" && ac_dir=.
6296 tmp_nm="$ac_dir/$lt_tmp_nm"
6297 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6298 # Check to see if the nm accepts a BSD-compat flag.
6299 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6300 # nm: unknown option "B" ignored
6301 # Tru64's nm complains that /dev/null is an invalid object file
6302 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6303 */dev/null* | *'Invalid file or object type'*)
6304 lt_cv_path_NM="$tmp_nm -B"
6305 break
6306 ;;
6307 *)
6308 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6309 */dev/null*)
6310 lt_cv_path_NM="$tmp_nm -p"
6311 break
6312 ;;
6313 *)
6314 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6315 continue # so that we can try to find one that supports BSD flags
6316 ;;
6317 esac
6318 ;;
6319 esac
6320 fi
6321 done
6322 IFS="$lt_save_ifs"
6323 done
6324 : ${lt_cv_path_NM=no}
6325 fi
6326 fi
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6328 $as_echo "$lt_cv_path_NM" >&6; }
6329 if test "$lt_cv_path_NM" != "no"; then
6330 NM="$lt_cv_path_NM"
6331 else
6332 # Didn't find any BSD compatible name lister, look for dumpbin.
6333 if test -n "$DUMPBIN"; then :
6334 # Let the user override the test.
6335 else
6336 if test -n "$ac_tool_prefix"; then
6337 for ac_prog in dumpbin "link -dump"
6338 do
6339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6340 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 $as_echo_n "checking for $ac_word... " >&6; }
6343 if ${ac_cv_prog_DUMPBIN+:} false; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6346 if test -n "$DUMPBIN"; then
6347 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6351 do
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6356 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6359 fi
6360 done
6361 done
6362 IFS=$as_save_IFS
6363  
6364 fi
6365 fi
6366 DUMPBIN=$ac_cv_prog_DUMPBIN
6367 if test -n "$DUMPBIN"; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6369 $as_echo "$DUMPBIN" >&6; }
6370 else
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6373 fi
6374  
6375  
6376 test -n "$DUMPBIN" && break
6377 done
6378 fi
6379 if test -z "$DUMPBIN"; then
6380 ac_ct_DUMPBIN=$DUMPBIN
6381 for ac_prog in dumpbin "link -dump"
6382 do
6383 # Extract the first word of "$ac_prog", so it can be a program name with args.
6384 set dummy $ac_prog; ac_word=$2
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6386 $as_echo_n "checking for $ac_word... " >&6; }
6387 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6390 if test -n "$ac_ct_DUMPBIN"; then
6391 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6392 else
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 for as_dir in $PATH
6395 do
6396 IFS=$as_save_IFS
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6400 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6402 break 2
6403 fi
6404 done
6405 done
6406 IFS=$as_save_IFS
6407  
6408 fi
6409 fi
6410 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6411 if test -n "$ac_ct_DUMPBIN"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6413 $as_echo "$ac_ct_DUMPBIN" >&6; }
6414 else
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6417 fi
6418  
6419  
6420 test -n "$ac_ct_DUMPBIN" && break
6421 done
6422  
6423 if test "x$ac_ct_DUMPBIN" = x; then
6424 DUMPBIN=":"
6425 else
6426 case $cross_compiling:$ac_tool_warned in
6427 yes:)
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6430 ac_tool_warned=yes ;;
6431 esac
6432 DUMPBIN=$ac_ct_DUMPBIN
6433 fi
6434 fi
6435  
6436 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6437 *COFF*)
6438 DUMPBIN="$DUMPBIN -symbols"
6439 ;;
6440 *)
6441 DUMPBIN=:
6442 ;;
6443 esac
6444 fi
6445  
6446 if test "$DUMPBIN" != ":"; then
6447 NM="$DUMPBIN"
6448 fi
6449 fi
6450 test -z "$NM" && NM=nm
6451  
6452  
6453  
6454  
6455  
6456  
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6458 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6459 if ${lt_cv_nm_interface+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 lt_cv_nm_interface="BSD nm"
6463 echo "int some_variable = 0;" > conftest.$ac_ext
6464 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6465 (eval "$ac_compile" 2>conftest.err)
6466 cat conftest.err >&5
6467 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6468 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6469 cat conftest.err >&5
6470 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6471 cat conftest.out >&5
6472 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6473 lt_cv_nm_interface="MS dumpbin"
6474 fi
6475 rm -f conftest*
6476 fi
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6478 $as_echo "$lt_cv_nm_interface" >&6; }
6479  
6480 # find the maximum length of command line arguments
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6482 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6483 if ${lt_cv_sys_max_cmd_len+:} false; then :
6484 $as_echo_n "(cached) " >&6
6485 else
6486 i=0
6487 teststring="ABCD"
6488  
6489 case $build_os in
6490 msdosdjgpp*)
6491 # On DJGPP, this test can blow up pretty badly due to problems in libc
6492 # (any single argument exceeding 2000 bytes causes a buffer overrun
6493 # during glob expansion). Even if it were fixed, the result of this
6494 # check would be larger than it should be.
6495 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6496 ;;
6497  
6498 gnu*)
6499 # Under GNU Hurd, this test is not required because there is
6500 # no limit to the length of command line arguments.
6501 # Libtool will interpret -1 as no limit whatsoever
6502 lt_cv_sys_max_cmd_len=-1;
6503 ;;
6504  
6505 cygwin* | mingw* | cegcc*)
6506 # On Win9x/ME, this test blows up -- it succeeds, but takes
6507 # about 5 minutes as the teststring grows exponentially.
6508 # Worse, since 9x/ME are not pre-emptively multitasking,
6509 # you end up with a "frozen" computer, even though with patience
6510 # the test eventually succeeds (with a max line length of 256k).
6511 # Instead, let's just punt: use the minimum linelength reported by
6512 # all of the supported platforms: 8192 (on NT/2K/XP).
6513 lt_cv_sys_max_cmd_len=8192;
6514 ;;
6515  
6516 mint*)
6517 # On MiNT this can take a long time and run out of memory.
6518 lt_cv_sys_max_cmd_len=8192;
6519 ;;
6520  
6521 amigaos*)
6522 # On AmigaOS with pdksh, this test takes hours, literally.
6523 # So we just punt and use a minimum line length of 8192.
6524 lt_cv_sys_max_cmd_len=8192;
6525 ;;
6526  
6527 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6528 # This has been around since 386BSD, at least. Likely further.
6529 if test -x /sbin/sysctl; then
6530 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6531 elif test -x /usr/sbin/sysctl; then
6532 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6533 else
6534 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6535 fi
6536 # And add a safety zone
6537 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6538 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6539 ;;
6540  
6541 interix*)
6542 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6543 lt_cv_sys_max_cmd_len=196608
6544 ;;
6545  
6546 osf*)
6547 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6548 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6549 # nice to cause kernel panics so lets avoid the loop below.
6550 # First set a reasonable default.
6551 lt_cv_sys_max_cmd_len=16384
6552 #
6553 if test -x /sbin/sysconfig; then
6554 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6555 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6556 esac
6557 fi
6558 ;;
6559 sco3.2v5*)
6560 lt_cv_sys_max_cmd_len=102400
6561 ;;
6562 sysv5* | sco5v6* | sysv4.2uw2*)
6563 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6564 if test -n "$kargmax"; then
6565 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6566 else
6567 lt_cv_sys_max_cmd_len=32768
6568 fi
6569 ;;
6570 *)
6571 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6572 if test -n "$lt_cv_sys_max_cmd_len"; then
6573 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6574 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6575 else
6576 # Make teststring a little bigger before we do anything with it.
6577 # a 1K string should be a reasonable start.
6578 for i in 1 2 3 4 5 6 7 8 ; do
6579 teststring=$teststring$teststring
6580 done
6581 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6582 # If test is not a shell built-in, we'll probably end up computing a
6583 # maximum length that is only half of the actual maximum length, but
6584 # we can't tell.
6585 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6586 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6587 test $i != 17 # 1/2 MB should be enough
6588 do
6589 i=`expr $i + 1`
6590 teststring=$teststring$teststring
6591 done
6592 # Only check the string length outside the loop.
6593 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6594 teststring=
6595 # Add a significant safety factor because C++ compilers can tack on
6596 # massive amounts of additional arguments before passing them to the
6597 # linker. It appears as though 1/2 is a usable value.
6598 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6599 fi
6600 ;;
6601 esac
6602  
6603 fi
6604  
6605 if test -n $lt_cv_sys_max_cmd_len ; then
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6607 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6608 else
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6610 $as_echo "none" >&6; }
6611 fi
6612 max_cmd_len=$lt_cv_sys_max_cmd_len
6613  
6614  
6615  
6616  
6617  
6618  
6619 : ${CP="cp -f"}
6620 : ${MV="mv -f"}
6621 : ${RM="rm -f"}
6622  
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6624 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6625 # Try some XSI features
6626 xsi_shell=no
6627 ( _lt_dummy="a/b/c"
6628 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6629 = c,a/b,b/c, \
6630 && eval 'test $(( 1 + 1 )) -eq 2 \
6631 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6632 && xsi_shell=yes
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6634 $as_echo "$xsi_shell" >&6; }
6635  
6636  
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6638 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6639 lt_shell_append=no
6640 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6641 >/dev/null 2>&1 \
6642 && lt_shell_append=yes
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6644 $as_echo "$lt_shell_append" >&6; }
6645  
6646  
6647 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6648 lt_unset=unset
6649 else
6650 lt_unset=false
6651 fi
6652  
6653  
6654  
6655  
6656  
6657 # test EBCDIC or ASCII
6658 case `echo X|tr X '\101'` in
6659 A) # ASCII based system
6660 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6661 lt_SP2NL='tr \040 \012'
6662 lt_NL2SP='tr \015\012 \040\040'
6663 ;;
6664 *) # EBCDIC based system
6665 lt_SP2NL='tr \100 \n'
6666 lt_NL2SP='tr \r\n \100\100'
6667 ;;
6668 esac
6669  
6670  
6671  
6672  
6673  
6674  
6675  
6676  
6677  
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6679 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6680 if ${lt_cv_to_host_file_cmd+:} false; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 case $host in
6684 *-*-mingw* )
6685 case $build in
6686 *-*-mingw* ) # actually msys
6687 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6688 ;;
6689 *-*-cygwin* )
6690 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6691 ;;
6692 * ) # otherwise, assume *nix
6693 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6694 ;;
6695 esac
6696 ;;
6697 *-*-cygwin* )
6698 case $build in
6699 *-*-mingw* ) # actually msys
6700 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6701 ;;
6702 *-*-cygwin* )
6703 lt_cv_to_host_file_cmd=func_convert_file_noop
6704 ;;
6705 * ) # otherwise, assume *nix
6706 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6707 ;;
6708 esac
6709 ;;
6710 * ) # unhandled hosts (and "normal" native builds)
6711 lt_cv_to_host_file_cmd=func_convert_file_noop
6712 ;;
6713 esac
6714  
6715 fi
6716  
6717 to_host_file_cmd=$lt_cv_to_host_file_cmd
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6719 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6720  
6721  
6722  
6723  
6724  
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6726 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6727 if ${lt_cv_to_tool_file_cmd+:} false; then :
6728 $as_echo_n "(cached) " >&6
6729 else
6730 #assume ordinary cross tools, or native build.
6731 lt_cv_to_tool_file_cmd=func_convert_file_noop
6732 case $host in
6733 *-*-mingw* )
6734 case $build in
6735 *-*-mingw* ) # actually msys
6736 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6737 ;;
6738 esac
6739 ;;
6740 esac
6741  
6742 fi
6743  
6744 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6746 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6747  
6748  
6749  
6750  
6751  
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6753 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6754 if ${lt_cv_ld_reload_flag+:} false; then :
6755 $as_echo_n "(cached) " >&6
6756 else
6757 lt_cv_ld_reload_flag='-r'
6758 fi
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6760 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6761 reload_flag=$lt_cv_ld_reload_flag
6762 case $reload_flag in
6763 "" | " "*) ;;
6764 *) reload_flag=" $reload_flag" ;;
6765 esac
6766 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6767 case $host_os in
6768 cygwin* | mingw* | pw32* | cegcc*)
6769 if test "$GCC" != yes; then
6770 reload_cmds=false
6771 fi
6772 ;;
6773 darwin*)
6774 if test "$GCC" = yes; then
6775 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6776 else
6777 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6778 fi
6779 ;;
6780 esac
6781  
6782  
6783  
6784  
6785  
6786  
6787  
6788  
6789  
6790 if test -n "$ac_tool_prefix"; then
6791 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6792 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if ${ac_cv_prog_OBJDUMP+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 if test -n "$OBJDUMP"; then
6799 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6803 do
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6808 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6811 fi
6812 done
6813 done
6814 IFS=$as_save_IFS
6815  
6816 fi
6817 fi
6818 OBJDUMP=$ac_cv_prog_OBJDUMP
6819 if test -n "$OBJDUMP"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6821 $as_echo "$OBJDUMP" >&6; }
6822 else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6825 fi
6826  
6827  
6828 fi
6829 if test -z "$ac_cv_prog_OBJDUMP"; then
6830 ac_ct_OBJDUMP=$OBJDUMP
6831 # Extract the first word of "objdump", so it can be a program name with args.
6832 set dummy objdump; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 if test -n "$ac_ct_OBJDUMP"; then
6839 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6840 else
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6843 do
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6848 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6851 fi
6852 done
6853 done
6854 IFS=$as_save_IFS
6855  
6856 fi
6857 fi
6858 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6859 if test -n "$ac_ct_OBJDUMP"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6861 $as_echo "$ac_ct_OBJDUMP" >&6; }
6862 else
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6865 fi
6866  
6867 if test "x$ac_ct_OBJDUMP" = x; then
6868 OBJDUMP="false"
6869 else
6870 case $cross_compiling:$ac_tool_warned in
6871 yes:)
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6874 ac_tool_warned=yes ;;
6875 esac
6876 OBJDUMP=$ac_ct_OBJDUMP
6877 fi
6878 else
6879 OBJDUMP="$ac_cv_prog_OBJDUMP"
6880 fi
6881  
6882 test -z "$OBJDUMP" && OBJDUMP=objdump
6883  
6884  
6885  
6886  
6887  
6888  
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6890 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6891 if ${lt_cv_deplibs_check_method+:} false; then :
6892 $as_echo_n "(cached) " >&6
6893 else
6894 lt_cv_file_magic_cmd='$MAGIC_CMD'
6895 lt_cv_file_magic_test_file=
6896 lt_cv_deplibs_check_method='unknown'
6897 # Need to set the preceding variable on all platforms that support
6898 # interlibrary dependencies.
6899 # 'none' -- dependencies not supported.
6900 # `unknown' -- same as none, but documents that we really don't know.
6901 # 'pass_all' -- all dependencies passed with no checks.
6902 # 'test_compile' -- check by making test program.
6903 # 'file_magic [[regex]]' -- check by looking for files in library path
6904 # which responds to the $file_magic_cmd with a given extended regex.
6905 # If you have `file' or equivalent on your system and you're not sure
6906 # whether `pass_all' will *always* work, you probably want this one.
6907  
6908 case $host_os in
6909 aix[4-9]*)
6910 lt_cv_deplibs_check_method=pass_all
6911 ;;
6912  
6913 beos*)
6914 lt_cv_deplibs_check_method=pass_all
6915 ;;
6916  
6917 bsdi[45]*)
6918 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6919 lt_cv_file_magic_cmd='/usr/bin/file -L'
6920 lt_cv_file_magic_test_file=/shlib/libc.so
6921 ;;
6922  
6923 cygwin*)
6924 # func_win32_libid is a shell function defined in ltmain.sh
6925 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6926 lt_cv_file_magic_cmd='func_win32_libid'
6927 ;;
6928  
6929 mingw* | pw32*)
6930 # Base MSYS/MinGW do not provide the 'file' command needed by
6931 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6932 # unless we find 'file', for example because we are cross-compiling.
6933 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6934 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6935 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6936 lt_cv_file_magic_cmd='func_win32_libid'
6937 else
6938 # Keep this pattern in sync with the one in func_win32_libid.
6939 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6940 lt_cv_file_magic_cmd='$OBJDUMP -f'
6941 fi
6942 ;;
6943  
6944 cegcc*)
6945 # use the weaker test based on 'objdump'. See mingw*.
6946 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6947 lt_cv_file_magic_cmd='$OBJDUMP -f'
6948 ;;
6949  
6950 darwin* | rhapsody*)
6951 lt_cv_deplibs_check_method=pass_all
6952 ;;
6953  
6954 freebsd* | dragonfly*)
6955 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6956 case $host_cpu in
6957 i*86 )
6958 # Not sure whether the presence of OpenBSD here was a mistake.
6959 # Let's accept both of them until this is cleared up.
6960 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6961 lt_cv_file_magic_cmd=/usr/bin/file
6962 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6963 ;;
6964 esac
6965 else
6966 lt_cv_deplibs_check_method=pass_all
6967 fi
6968 ;;
6969  
6970 gnu*)
6971 lt_cv_deplibs_check_method=pass_all
6972 ;;
6973  
6974 haiku*)
6975 lt_cv_deplibs_check_method=pass_all
6976 ;;
6977  
6978 hpux10.20* | hpux11*)
6979 lt_cv_file_magic_cmd=/usr/bin/file
6980 case $host_cpu in
6981 ia64*)
6982 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6983 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6984 ;;
6985 hppa*64*)
6986 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]'
6987 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6988 ;;
6989 *)
6990 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6991 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6992 ;;
6993 esac
6994 ;;
6995  
6996 interix[3-9]*)
6997 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6999 ;;
7000  
7001 irix5* | irix6* | nonstopux*)
7002 case $LD in
7003 *-32|*"-32 ") libmagic=32-bit;;
7004 *-n32|*"-n32 ") libmagic=N32;;
7005 *-64|*"-64 ") libmagic=64-bit;;
7006 *) libmagic=never-match;;
7007 esac
7008 lt_cv_deplibs_check_method=pass_all
7009 ;;
7010  
7011 # This must be Linux ELF.
7012 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7013 lt_cv_deplibs_check_method=pass_all
7014 ;;
7015  
7016 netbsd*)
7017 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7019 else
7020 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7021 fi
7022 ;;
7023  
7024 newos6*)
7025 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7026 lt_cv_file_magic_cmd=/usr/bin/file
7027 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7028 ;;
7029  
7030 *nto* | *qnx*)
7031 lt_cv_deplibs_check_method=pass_all
7032 ;;
7033  
7034 openbsd*)
7035 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7037 else
7038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7039 fi
7040 ;;
7041  
7042 osf3* | osf4* | osf5*)
7043 lt_cv_deplibs_check_method=pass_all
7044 ;;
7045  
7046 rdos*)
7047 lt_cv_deplibs_check_method=pass_all
7048 ;;
7049  
7050 solaris*)
7051 lt_cv_deplibs_check_method=pass_all
7052 ;;
7053  
7054 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7055 lt_cv_deplibs_check_method=pass_all
7056 ;;
7057  
7058 sysv4 | sysv4.3*)
7059 case $host_vendor in
7060 motorola)
7061 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]'
7062 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7063 ;;
7064 ncr)
7065 lt_cv_deplibs_check_method=pass_all
7066 ;;
7067 sequent)
7068 lt_cv_file_magic_cmd='/bin/file'
7069 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7070 ;;
7071 sni)
7072 lt_cv_file_magic_cmd='/bin/file'
7073 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7074 lt_cv_file_magic_test_file=/lib/libc.so
7075 ;;
7076 siemens)
7077 lt_cv_deplibs_check_method=pass_all
7078 ;;
7079 pc)
7080 lt_cv_deplibs_check_method=pass_all
7081 ;;
7082 esac
7083 ;;
7084  
7085 tpf*)
7086 lt_cv_deplibs_check_method=pass_all
7087 ;;
7088 esac
7089  
7090 fi
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7092 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7093  
7094 file_magic_glob=
7095 want_nocaseglob=no
7096 if test "$build" = "$host"; then
7097 case $host_os in
7098 mingw* | pw32*)
7099 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7100 want_nocaseglob=yes
7101 else
7102 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7103 fi
7104 ;;
7105 esac
7106 fi
7107  
7108 file_magic_cmd=$lt_cv_file_magic_cmd
7109 deplibs_check_method=$lt_cv_deplibs_check_method
7110 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7111  
7112  
7113  
7114  
7115  
7116  
7117  
7118  
7119  
7120  
7121  
7122  
7123  
7124  
7125  
7126  
7127  
7128  
7129  
7130  
7131  
7132  
7133 if test -n "$ac_tool_prefix"; then
7134 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7135 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if ${ac_cv_prog_DLLTOOL+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 if test -n "$DLLTOOL"; then
7142 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7154 fi
7155 done
7156 done
7157 IFS=$as_save_IFS
7158  
7159 fi
7160 fi
7161 DLLTOOL=$ac_cv_prog_DLLTOOL
7162 if test -n "$DLLTOOL"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7164 $as_echo "$DLLTOOL" >&6; }
7165 else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7168 fi
7169  
7170  
7171 fi
7172 if test -z "$ac_cv_prog_DLLTOOL"; then
7173 ac_ct_DLLTOOL=$DLLTOOL
7174 # Extract the first word of "dlltool", so it can be a program name with args.
7175 set dummy dlltool; ac_word=$2
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177 $as_echo_n "checking for $ac_word... " >&6; }
7178 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7179 $as_echo_n "(cached) " >&6
7180 else
7181 if test -n "$ac_ct_DLLTOOL"; then
7182 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7183 else
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7186 do
7187 IFS=$as_save_IFS
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7191 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 break 2
7194 fi
7195 done
7196 done
7197 IFS=$as_save_IFS
7198  
7199 fi
7200 fi
7201 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7202 if test -n "$ac_ct_DLLTOOL"; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7204 $as_echo "$ac_ct_DLLTOOL" >&6; }
7205 else
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }
7208 fi
7209  
7210 if test "x$ac_ct_DLLTOOL" = x; then
7211 DLLTOOL="false"
7212 else
7213 case $cross_compiling:$ac_tool_warned in
7214 yes:)
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7217 ac_tool_warned=yes ;;
7218 esac
7219 DLLTOOL=$ac_ct_DLLTOOL
7220 fi
7221 else
7222 DLLTOOL="$ac_cv_prog_DLLTOOL"
7223 fi
7224  
7225 test -z "$DLLTOOL" && DLLTOOL=dlltool
7226  
7227  
7228  
7229  
7230  
7231  
7232  
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7234 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7235 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238 lt_cv_sharedlib_from_linklib_cmd='unknown'
7239  
7240 case $host_os in
7241 cygwin* | mingw* | pw32* | cegcc*)
7242 # two different shell functions defined in ltmain.sh
7243 # decide which to use based on capabilities of $DLLTOOL
7244 case `$DLLTOOL --help 2>&1` in
7245 *--identify-strict*)
7246 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7247 ;;
7248 *)
7249 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7250 ;;
7251 esac
7252 ;;
7253 *)
7254 # fallback: assume linklib IS sharedlib
7255 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7256 ;;
7257 esac
7258  
7259 fi
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7261 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7262 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7263 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7264  
7265  
7266  
7267  
7268  
7269  
7270  
7271 if test -n "$ac_tool_prefix"; then
7272 for ac_prog in ar
7273 do
7274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7275 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7277 $as_echo_n "checking for $ac_word... " >&6; }
7278 if ${ac_cv_prog_AR+:} false; then :
7279 $as_echo_n "(cached) " >&6
7280 else
7281 if test -n "$AR"; then
7282 ac_cv_prog_AR="$AR" # Let the user override the test.
7283 else
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 for as_dir in $PATH
7286 do
7287 IFS=$as_save_IFS
7288 test -z "$as_dir" && as_dir=.
7289 for ac_exec_ext in '' $ac_executable_extensions; do
7290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7291 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7293 break 2
7294 fi
7295 done
7296 done
7297 IFS=$as_save_IFS
7298  
7299 fi
7300 fi
7301 AR=$ac_cv_prog_AR
7302 if test -n "$AR"; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7304 $as_echo "$AR" >&6; }
7305 else
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7308 fi
7309  
7310  
7311 test -n "$AR" && break
7312 done
7313 fi
7314 if test -z "$AR"; then
7315 ac_ct_AR=$AR
7316 for ac_prog in ar
7317 do
7318 # Extract the first word of "$ac_prog", so it can be a program name with args.
7319 set dummy $ac_prog; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325 if test -n "$ac_ct_AR"; then
7326 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7327 else
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7330 do
7331 IFS=$as_save_IFS
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335 ac_cv_prog_ac_ct_AR="$ac_prog"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 break 2
7338 fi
7339 done
7340 done
7341 IFS=$as_save_IFS
7342  
7343 fi
7344 fi
7345 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7346 if test -n "$ac_ct_AR"; then
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7348 $as_echo "$ac_ct_AR" >&6; }
7349 else
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7352 fi
7353  
7354  
7355 test -n "$ac_ct_AR" && break
7356 done
7357  
7358 if test "x$ac_ct_AR" = x; then
7359 AR="false"
7360 else
7361 case $cross_compiling:$ac_tool_warned in
7362 yes:)
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7365 ac_tool_warned=yes ;;
7366 esac
7367 AR=$ac_ct_AR
7368 fi
7369 fi
7370  
7371 : ${AR=ar}
7372 : ${AR_FLAGS=cru}
7373  
7374  
7375  
7376  
7377  
7378  
7379  
7380  
7381  
7382  
7383  
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7385 $as_echo_n "checking for archiver @FILE support... " >&6; }
7386 if ${lt_cv_ar_at_file+:} false; then :
7387 $as_echo_n "(cached) " >&6
7388 else
7389 lt_cv_ar_at_file=no
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7392  
7393 int
7394 main ()
7395 {
7396  
7397 ;
7398 return 0;
7399 }
7400 _ACEOF
7401 if ac_fn_c_try_compile "$LINENO"; then :
7402 echo conftest.$ac_objext > conftest.lst
7403 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7405 (eval $lt_ar_try) 2>&5
7406 ac_status=$?
7407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7408 test $ac_status = 0; }
7409 if test "$ac_status" -eq 0; then
7410 # Ensure the archiver fails upon bogus file names.
7411 rm -f conftest.$ac_objext libconftest.a
7412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7413 (eval $lt_ar_try) 2>&5
7414 ac_status=$?
7415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7416 test $ac_status = 0; }
7417 if test "$ac_status" -ne 0; then
7418 lt_cv_ar_at_file=@
7419 fi
7420 fi
7421 rm -f conftest.* libconftest.a
7422  
7423 fi
7424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7425  
7426 fi
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7428 $as_echo "$lt_cv_ar_at_file" >&6; }
7429  
7430 if test "x$lt_cv_ar_at_file" = xno; then
7431 archiver_list_spec=
7432 else
7433 archiver_list_spec=$lt_cv_ar_at_file
7434 fi
7435  
7436  
7437  
7438  
7439  
7440  
7441  
7442 if test -n "$ac_tool_prefix"; then
7443 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7444 set dummy ${ac_tool_prefix}strip; ac_word=$2
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if ${ac_cv_prog_STRIP+:} false; then :
7448 $as_echo_n "(cached) " >&6
7449 else
7450 if test -n "$STRIP"; then
7451 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7452 else
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7455 do
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7460 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 break 2
7463 fi
7464 done
7465 done
7466 IFS=$as_save_IFS
7467  
7468 fi
7469 fi
7470 STRIP=$ac_cv_prog_STRIP
7471 if test -n "$STRIP"; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7473 $as_echo "$STRIP" >&6; }
7474 else
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7477 fi
7478  
7479  
7480 fi
7481 if test -z "$ac_cv_prog_STRIP"; then
7482 ac_ct_STRIP=$STRIP
7483 # Extract the first word of "strip", so it can be a program name with args.
7484 set dummy strip; ac_word=$2
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7486 $as_echo_n "checking for $ac_word... " >&6; }
7487 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7488 $as_echo_n "(cached) " >&6
7489 else
7490 if test -n "$ac_ct_STRIP"; then
7491 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7492 else
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 for as_dir in $PATH
7495 do
7496 IFS=$as_save_IFS
7497 test -z "$as_dir" && as_dir=.
7498 for ac_exec_ext in '' $ac_executable_extensions; do
7499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7500 ac_cv_prog_ac_ct_STRIP="strip"
7501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7502 break 2
7503 fi
7504 done
7505 done
7506 IFS=$as_save_IFS
7507  
7508 fi
7509 fi
7510 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7511 if test -n "$ac_ct_STRIP"; then
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7513 $as_echo "$ac_ct_STRIP" >&6; }
7514 else
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516 $as_echo "no" >&6; }
7517 fi
7518  
7519 if test "x$ac_ct_STRIP" = x; then
7520 STRIP=":"
7521 else
7522 case $cross_compiling:$ac_tool_warned in
7523 yes:)
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7526 ac_tool_warned=yes ;;
7527 esac
7528 STRIP=$ac_ct_STRIP
7529 fi
7530 else
7531 STRIP="$ac_cv_prog_STRIP"
7532 fi
7533  
7534 test -z "$STRIP" && STRIP=:
7535  
7536  
7537  
7538  
7539  
7540  
7541 if test -n "$ac_tool_prefix"; then
7542 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7543 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545 $as_echo_n "checking for $ac_word... " >&6; }
7546 if ${ac_cv_prog_RANLIB+:} false; then :
7547 $as_echo_n "(cached) " >&6
7548 else
7549 if test -n "$RANLIB"; then
7550 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7551 else
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555 IFS=$as_save_IFS
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7559 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 break 2
7562 fi
7563 done
7564 done
7565 IFS=$as_save_IFS
7566  
7567 fi
7568 fi
7569 RANLIB=$ac_cv_prog_RANLIB
7570 if test -n "$RANLIB"; then
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7572 $as_echo "$RANLIB" >&6; }
7573 else
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575 $as_echo "no" >&6; }
7576 fi
7577  
7578  
7579 fi
7580 if test -z "$ac_cv_prog_RANLIB"; then
7581 ac_ct_RANLIB=$RANLIB
7582 # Extract the first word of "ranlib", so it can be a program name with args.
7583 set dummy ranlib; ac_word=$2
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585 $as_echo_n "checking for $ac_word... " >&6; }
7586 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7587 $as_echo_n "(cached) " >&6
7588 else
7589 if test -n "$ac_ct_RANLIB"; then
7590 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7591 else
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 for as_dir in $PATH
7594 do
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7599 ac_cv_prog_ac_ct_RANLIB="ranlib"
7600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7602 fi
7603 done
7604 done
7605 IFS=$as_save_IFS
7606  
7607 fi
7608 fi
7609 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7610 if test -n "$ac_ct_RANLIB"; then
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7612 $as_echo "$ac_ct_RANLIB" >&6; }
7613 else
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7615 $as_echo "no" >&6; }
7616 fi
7617  
7618 if test "x$ac_ct_RANLIB" = x; then
7619 RANLIB=":"
7620 else
7621 case $cross_compiling:$ac_tool_warned in
7622 yes:)
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7625 ac_tool_warned=yes ;;
7626 esac
7627 RANLIB=$ac_ct_RANLIB
7628 fi
7629 else
7630 RANLIB="$ac_cv_prog_RANLIB"
7631 fi
7632  
7633 test -z "$RANLIB" && RANLIB=:
7634  
7635  
7636  
7637  
7638  
7639  
7640 # Determine commands to create old-style static archives.
7641 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7642 old_postinstall_cmds='chmod 644 $oldlib'
7643 old_postuninstall_cmds=
7644  
7645 if test -n "$RANLIB"; then
7646 case $host_os in
7647 openbsd*)
7648 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7649 ;;
7650 *)
7651 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7652 ;;
7653 esac
7654 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7655 fi
7656  
7657 case $host_os in
7658 darwin*)
7659 lock_old_archive_extraction=yes ;;
7660 *)
7661 lock_old_archive_extraction=no ;;
7662 esac
7663  
7664  
7665  
7666  
7667  
7668  
7669  
7670  
7671  
7672  
7673  
7674  
7675  
7676  
7677  
7678  
7679  
7680  
7681  
7682  
7683  
7684  
7685  
7686  
7687  
7688  
7689  
7690  
7691  
7692  
7693  
7694  
7695  
7696  
7697  
7698  
7699  
7700  
7701  
7702 # If no C compiler was specified, use CC.
7703 LTCC=${LTCC-"$CC"}
7704  
7705 # If no C compiler flags were specified, use CFLAGS.
7706 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7707  
7708 # Allow CC to be a program name with arguments.
7709 compiler=$CC
7710  
7711  
7712 # Check for command to grab the raw symbol name followed by C symbol from nm.
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7714 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7715 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7716 $as_echo_n "(cached) " >&6
7717 else
7718  
7719 # These are sane defaults that work on at least a few old systems.
7720 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7721  
7722 # Character class describing NM global symbol codes.
7723 symcode='[BCDEGRST]'
7724  
7725 # Regexp to match symbols that can be accessed directly from C.
7726 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7727  
7728 # Define system-specific variables.
7729 case $host_os in
7730 aix*)
7731 symcode='[BCDT]'
7732 ;;
7733 cygwin* | mingw* | pw32* | cegcc*)
7734 symcode='[ABCDGISTW]'
7735 ;;
7736 hpux*)
7737 if test "$host_cpu" = ia64; then
7738 symcode='[ABCDEGRST]'
7739 fi
7740 ;;
7741 irix* | nonstopux*)
7742 symcode='[BCDEGRST]'
7743 ;;
7744 osf*)
7745 symcode='[BCDEGQRST]'
7746 ;;
7747 solaris*)
7748 symcode='[BDRT]'
7749 ;;
7750 sco3.2v5*)
7751 symcode='[DT]'
7752 ;;
7753 sysv4.2uw2*)
7754 symcode='[DT]'
7755 ;;
7756 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7757 symcode='[ABDT]'
7758 ;;
7759 sysv4)
7760 symcode='[DFNSTU]'
7761 ;;
7762 esac
7763  
7764 # If we're using GNU nm, then use its standard symbol codes.
7765 case `$NM -V 2>&1` in
7766 *GNU* | *'with BFD'*)
7767 symcode='[ABCDGIRSTW]' ;;
7768 esac
7769  
7770 # Transform an extracted symbol line into a proper C declaration.
7771 # Some systems (esp. on ia64) link data and code symbols differently,
7772 # so use this general approach.
7773 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7774  
7775 # Transform an extracted symbol line into symbol name and symbol address
7776 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7777 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7778  
7779 # Handle CRLF in mingw tool chain
7780 opt_cr=
7781 case $build_os in
7782 mingw*)
7783 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7784 ;;
7785 esac
7786  
7787 # Try without a prefix underscore, then with it.
7788 for ac_symprfx in "" "_"; do
7789  
7790 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7791 symxfrm="\\1 $ac_symprfx\\2 \\2"
7792  
7793 # Write the raw and C identifiers.
7794 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7795 # Fake it for dumpbin and say T for any non-static function
7796 # and D for any global variable.
7797 # Also find C++ and __fastcall symbols from MSVC++,
7798 # which start with @ or ?.
7799 lt_cv_sys_global_symbol_pipe="$AWK '"\
7800 " {last_section=section; section=\$ 3};"\
7801 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7802 " \$ 0!~/External *\|/{next};"\
7803 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7804 " {if(hide[section]) next};"\
7805 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7806 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7807 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7808 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7809 " ' prfx=^$ac_symprfx"
7810 else
7811 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7812 fi
7813 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7814  
7815 # Check to see that the pipe works correctly.
7816 pipe_works=no
7817  
7818 rm -f conftest*
7819 cat > conftest.$ac_ext <<_LT_EOF
7820 #ifdef __cplusplus
7821 extern "C" {
7822 #endif
7823 char nm_test_var;
7824 void nm_test_func(void);
7825 void nm_test_func(void){}
7826 #ifdef __cplusplus
7827 }
7828 #endif
7829 int main(){nm_test_var='a';nm_test_func();return(0);}
7830 _LT_EOF
7831  
7832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7833 (eval $ac_compile) 2>&5
7834 ac_status=$?
7835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7836 test $ac_status = 0; }; then
7837 # Now try to grab the symbols.
7838 nlist=conftest.nm
7839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7840 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7841 ac_status=$?
7842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7843 test $ac_status = 0; } && test -s "$nlist"; then
7844 # Try sorting and uniquifying the output.
7845 if sort "$nlist" | uniq > "$nlist"T; then
7846 mv -f "$nlist"T "$nlist"
7847 else
7848 rm -f "$nlist"T
7849 fi
7850  
7851 # Make sure that we snagged all the symbols we need.
7852 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7853 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7854 cat <<_LT_EOF > conftest.$ac_ext
7855 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7856 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7857 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7858 relocations are performed -- see ld's documentation on pseudo-relocs. */
7859 # define LT_DLSYM_CONST
7860 #elif defined(__osf__)
7861 /* This system does not cope well with relocations in const data. */
7862 # define LT_DLSYM_CONST
7863 #else
7864 # define LT_DLSYM_CONST const
7865 #endif
7866  
7867 #ifdef __cplusplus
7868 extern "C" {
7869 #endif
7870  
7871 _LT_EOF
7872 # Now generate the symbol file.
7873 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7874  
7875 cat <<_LT_EOF >> conftest.$ac_ext
7876  
7877 /* The mapping between symbol names and symbols. */
7878 LT_DLSYM_CONST struct {
7879 const char *name;
7880 void *address;
7881 }
7882 lt__PROGRAM__LTX_preloaded_symbols[] =
7883 {
7884 { "@PROGRAM@", (void *) 0 },
7885 _LT_EOF
7886 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7887 cat <<\_LT_EOF >> conftest.$ac_ext
7888 {0, (void *) 0}
7889 };
7890  
7891 /* This works around a problem in FreeBSD linker */
7892 #ifdef FREEBSD_WORKAROUND
7893 static const void *lt_preloaded_setup() {
7894 return lt__PROGRAM__LTX_preloaded_symbols;
7895 }
7896 #endif
7897  
7898 #ifdef __cplusplus
7899 }
7900 #endif
7901 _LT_EOF
7902 # Now try linking the two files.
7903 mv conftest.$ac_objext conftstm.$ac_objext
7904 lt_globsym_save_LIBS=$LIBS
7905 lt_globsym_save_CFLAGS=$CFLAGS
7906 LIBS="conftstm.$ac_objext"
7907 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7909 (eval $ac_link) 2>&5
7910 ac_status=$?
7911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7912 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7913 pipe_works=yes
7914 fi
7915 LIBS=$lt_globsym_save_LIBS
7916 CFLAGS=$lt_globsym_save_CFLAGS
7917 else
7918 echo "cannot find nm_test_func in $nlist" >&5
7919 fi
7920 else
7921 echo "cannot find nm_test_var in $nlist" >&5
7922 fi
7923 else
7924 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7925 fi
7926 else
7927 echo "$progname: failed program was:" >&5
7928 cat conftest.$ac_ext >&5
7929 fi
7930 rm -rf conftest* conftst*
7931  
7932 # Do not use the global_symbol_pipe unless it works.
7933 if test "$pipe_works" = yes; then
7934 break
7935 else
7936 lt_cv_sys_global_symbol_pipe=
7937 fi
7938 done
7939  
7940 fi
7941  
7942 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7943 lt_cv_sys_global_symbol_to_cdecl=
7944 fi
7945 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7947 $as_echo "failed" >&6; }
7948 else
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7950 $as_echo "ok" >&6; }
7951 fi
7952  
7953 # Response file support.
7954 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7955 nm_file_list_spec='@'
7956 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7957 nm_file_list_spec='@'
7958 fi
7959  
7960  
7961  
7962  
7963  
7964  
7965  
7966  
7967  
7968  
7969  
7970  
7971  
7972  
7973  
7974  
7975  
7976  
7977  
7978  
7979  
7980  
7981  
7982  
7983  
7984  
7985  
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7987 $as_echo_n "checking for sysroot... " >&6; }
7988  
7989 # Check whether --with-sysroot was given.
7990 if test "${with_sysroot+set}" = set; then :
7991 withval=$with_sysroot;
7992 else
7993 with_sysroot=no
7994 fi
7995  
7996  
7997 lt_sysroot=
7998 case ${with_sysroot} in #(
7999 yes)
8000 if test "$GCC" = yes; then
8001 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8002 fi
8003 ;; #(
8004 /*)
8005 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8006 ;; #(
8007 no|'')
8008 ;; #(
8009 *)
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8011 $as_echo "${with_sysroot}" >&6; }
8012 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8013 ;;
8014 esac
8015  
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8017 $as_echo "${lt_sysroot:-no}" >&6; }
8018  
8019  
8020  
8021  
8022  
8023 # Check whether --enable-libtool-lock was given.
8024 if test "${enable_libtool_lock+set}" = set; then :
8025 enableval=$enable_libtool_lock;
8026 fi
8027  
8028 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8029  
8030 # Some flags need to be propagated to the compiler or linker for good
8031 # libtool support.
8032 case $host in
8033 ia64-*-hpux*)
8034 # Find out which ABI we are using.
8035 echo 'int i;' > conftest.$ac_ext
8036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8037 (eval $ac_compile) 2>&5
8038 ac_status=$?
8039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8040 test $ac_status = 0; }; then
8041 case `/usr/bin/file conftest.$ac_objext` in
8042 *ELF-32*)
8043 HPUX_IA64_MODE="32"
8044 ;;
8045 *ELF-64*)
8046 HPUX_IA64_MODE="64"
8047 ;;
8048 esac
8049 fi
8050 rm -rf conftest*
8051 ;;
8052 *-*-irix6*)
8053 # Find out which ABI we are using.
8054 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8056 (eval $ac_compile) 2>&5
8057 ac_status=$?
8058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8059 test $ac_status = 0; }; then
8060 if test "$lt_cv_prog_gnu_ld" = yes; then
8061 case `/usr/bin/file conftest.$ac_objext` in
8062 *32-bit*)
8063 LD="${LD-ld} -melf32bsmip"
8064 ;;
8065 *N32*)
8066 LD="${LD-ld} -melf32bmipn32"
8067 ;;
8068 *64-bit*)
8069 LD="${LD-ld} -melf64bmip"
8070 ;;
8071 esac
8072 else
8073 case `/usr/bin/file conftest.$ac_objext` in
8074 *32-bit*)
8075 LD="${LD-ld} -32"
8076 ;;
8077 *N32*)
8078 LD="${LD-ld} -n32"
8079 ;;
8080 *64-bit*)
8081 LD="${LD-ld} -64"
8082 ;;
8083 esac
8084 fi
8085 fi
8086 rm -rf conftest*
8087 ;;
8088  
8089 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8090 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8091 # Find out which ABI we are using.
8092 echo 'int i;' > conftest.$ac_ext
8093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8094 (eval $ac_compile) 2>&5
8095 ac_status=$?
8096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8097 test $ac_status = 0; }; then
8098 case `/usr/bin/file conftest.o` in
8099 *32-bit*)
8100 case $host in
8101 x86_64-*kfreebsd*-gnu)
8102 LD="${LD-ld} -m elf_i386_fbsd"
8103 ;;
8104 x86_64-*linux*)
8105 LD="${LD-ld} -m elf_i386"
8106 ;;
8107 ppc64-*linux*|powerpc64-*linux*)
8108 LD="${LD-ld} -m elf32ppclinux"
8109 ;;
8110 s390x-*linux*)
8111 LD="${LD-ld} -m elf_s390"
8112 ;;
8113 sparc64-*linux*)
8114 LD="${LD-ld} -m elf32_sparc"
8115 ;;
8116 esac
8117 ;;
8118 *64-bit*)
8119 case $host in
8120 x86_64-*kfreebsd*-gnu)
8121 LD="${LD-ld} -m elf_x86_64_fbsd"
8122 ;;
8123 x86_64-*linux*)
8124 LD="${LD-ld} -m elf_x86_64"
8125 ;;
8126 ppc*-*linux*|powerpc*-*linux*)
8127 LD="${LD-ld} -m elf64ppc"
8128 ;;
8129 s390*-*linux*|s390*-*tpf*)
8130 LD="${LD-ld} -m elf64_s390"
8131 ;;
8132 sparc*-*linux*)
8133 LD="${LD-ld} -m elf64_sparc"
8134 ;;
8135 esac
8136 ;;
8137 esac
8138 fi
8139 rm -rf conftest*
8140 ;;
8141  
8142 *-*-sco3.2v5*)
8143 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8144 SAVE_CFLAGS="$CFLAGS"
8145 CFLAGS="$CFLAGS -belf"
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8147 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8148 if ${lt_cv_cc_needs_belf+:} false; then :
8149 $as_echo_n "(cached) " >&6
8150 else
8151 ac_ext=c
8152 ac_cpp='$CPP $CPPFLAGS'
8153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8156  
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8159  
8160 int
8161 main ()
8162 {
8163  
8164 ;
8165 return 0;
8166 }
8167 _ACEOF
8168 if ac_fn_c_try_link "$LINENO"; then :
8169 lt_cv_cc_needs_belf=yes
8170 else
8171 lt_cv_cc_needs_belf=no
8172 fi
8173 rm -f core conftest.err conftest.$ac_objext \
8174 conftest$ac_exeext conftest.$ac_ext
8175 ac_ext=c
8176 ac_cpp='$CPP $CPPFLAGS'
8177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8180  
8181 fi
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8183 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8184 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8185 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8186 CFLAGS="$SAVE_CFLAGS"
8187 fi
8188 ;;
8189 sparc*-*solaris*)
8190 # Find out which ABI we are using.
8191 echo 'int i;' > conftest.$ac_ext
8192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8193 (eval $ac_compile) 2>&5
8194 ac_status=$?
8195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8196 test $ac_status = 0; }; then
8197 case `/usr/bin/file conftest.o` in
8198 *64-bit*)
8199 case $lt_cv_prog_gnu_ld in
8200 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8201 *)
8202 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8203 LD="${LD-ld} -64"
8204 fi
8205 ;;
8206 esac
8207 ;;
8208 esac
8209 fi
8210 rm -rf conftest*
8211 ;;
8212 esac
8213  
8214 need_locks="$enable_libtool_lock"
8215  
8216 if test -n "$ac_tool_prefix"; then
8217 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8218 set dummy ${ac_tool_prefix}mt; ac_word=$2
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8220 $as_echo_n "checking for $ac_word... " >&6; }
8221 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8222 $as_echo_n "(cached) " >&6
8223 else
8224 if test -n "$MANIFEST_TOOL"; then
8225 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8226 else
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 for as_dir in $PATH
8229 do
8230 IFS=$as_save_IFS
8231 test -z "$as_dir" && as_dir=.
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8234 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8236 break 2
8237 fi
8238 done
8239 done
8240 IFS=$as_save_IFS
8241  
8242 fi
8243 fi
8244 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8245 if test -n "$MANIFEST_TOOL"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8247 $as_echo "$MANIFEST_TOOL" >&6; }
8248 else
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 $as_echo "no" >&6; }
8251 fi
8252  
8253  
8254 fi
8255 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8256 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8257 # Extract the first word of "mt", so it can be a program name with args.
8258 set dummy mt; ac_word=$2
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260 $as_echo_n "checking for $ac_word... " >&6; }
8261 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8262 $as_echo_n "(cached) " >&6
8263 else
8264 if test -n "$ac_ct_MANIFEST_TOOL"; then
8265 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8266 else
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 for as_dir in $PATH
8269 do
8270 IFS=$as_save_IFS
8271 test -z "$as_dir" && as_dir=.
8272 for ac_exec_ext in '' $ac_executable_extensions; do
8273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8274 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8276 break 2
8277 fi
8278 done
8279 done
8280 IFS=$as_save_IFS
8281  
8282 fi
8283 fi
8284 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8285 if test -n "$ac_ct_MANIFEST_TOOL"; then
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8287 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8288 else
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290 $as_echo "no" >&6; }
8291 fi
8292  
8293 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8294 MANIFEST_TOOL=":"
8295 else
8296 case $cross_compiling:$ac_tool_warned in
8297 yes:)
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8300 ac_tool_warned=yes ;;
8301 esac
8302 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8303 fi
8304 else
8305 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8306 fi
8307  
8308 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8310 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8311 if ${lt_cv_path_mainfest_tool+:} false; then :
8312 $as_echo_n "(cached) " >&6
8313 else
8314 lt_cv_path_mainfest_tool=no
8315 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8316 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8317 cat conftest.err >&5
8318 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8319 lt_cv_path_mainfest_tool=yes
8320 fi
8321 rm -f conftest*
8322 fi
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8324 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8325 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8326 MANIFEST_TOOL=:
8327 fi
8328  
8329  
8330  
8331  
8332  
8333  
8334 case $host_os in
8335 rhapsody* | darwin*)
8336 if test -n "$ac_tool_prefix"; then
8337 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8338 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 $as_echo_n "checking for $ac_word... " >&6; }
8341 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8342 $as_echo_n "(cached) " >&6
8343 else
8344 if test -n "$DSYMUTIL"; then
8345 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8346 else
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 for as_dir in $PATH
8349 do
8350 IFS=$as_save_IFS
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8354 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8356 break 2
8357 fi
8358 done
8359 done
8360 IFS=$as_save_IFS
8361  
8362 fi
8363 fi
8364 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8365 if test -n "$DSYMUTIL"; then
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8367 $as_echo "$DSYMUTIL" >&6; }
8368 else
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370 $as_echo "no" >&6; }
8371 fi
8372  
8373  
8374 fi
8375 if test -z "$ac_cv_prog_DSYMUTIL"; then
8376 ac_ct_DSYMUTIL=$DSYMUTIL
8377 # Extract the first word of "dsymutil", so it can be a program name with args.
8378 set dummy dsymutil; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8382 $as_echo_n "(cached) " >&6
8383 else
8384 if test -n "$ac_ct_DSYMUTIL"; then
8385 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8386 else
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 for as_dir in $PATH
8389 do
8390 IFS=$as_save_IFS
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8394 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396 break 2
8397 fi
8398 done
8399 done
8400 IFS=$as_save_IFS
8401  
8402 fi
8403 fi
8404 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8405 if test -n "$ac_ct_DSYMUTIL"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8407 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8408 else
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8411 fi
8412  
8413 if test "x$ac_ct_DSYMUTIL" = x; then
8414 DSYMUTIL=":"
8415 else
8416 case $cross_compiling:$ac_tool_warned in
8417 yes:)
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8420 ac_tool_warned=yes ;;
8421 esac
8422 DSYMUTIL=$ac_ct_DSYMUTIL
8423 fi
8424 else
8425 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8426 fi
8427  
8428 if test -n "$ac_tool_prefix"; then
8429 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8430 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8432 $as_echo_n "checking for $ac_word... " >&6; }
8433 if ${ac_cv_prog_NMEDIT+:} false; then :
8434 $as_echo_n "(cached) " >&6
8435 else
8436 if test -n "$NMEDIT"; then
8437 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8438 else
8439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440 for as_dir in $PATH
8441 do
8442 IFS=$as_save_IFS
8443 test -z "$as_dir" && as_dir=.
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8446 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8448 break 2
8449 fi
8450 done
8451 done
8452 IFS=$as_save_IFS
8453  
8454 fi
8455 fi
8456 NMEDIT=$ac_cv_prog_NMEDIT
8457 if test -n "$NMEDIT"; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8459 $as_echo "$NMEDIT" >&6; }
8460 else
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462 $as_echo "no" >&6; }
8463 fi
8464  
8465  
8466 fi
8467 if test -z "$ac_cv_prog_NMEDIT"; then
8468 ac_ct_NMEDIT=$NMEDIT
8469 # Extract the first word of "nmedit", so it can be a program name with args.
8470 set dummy nmedit; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8474 $as_echo_n "(cached) " >&6
8475 else
8476 if test -n "$ac_ct_NMEDIT"; then
8477 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8478 else
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8481 do
8482 IFS=$as_save_IFS
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8486 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488 break 2
8489 fi
8490 done
8491 done
8492 IFS=$as_save_IFS
8493  
8494 fi
8495 fi
8496 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8497 if test -n "$ac_ct_NMEDIT"; then
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8499 $as_echo "$ac_ct_NMEDIT" >&6; }
8500 else
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8503 fi
8504  
8505 if test "x$ac_ct_NMEDIT" = x; then
8506 NMEDIT=":"
8507 else
8508 case $cross_compiling:$ac_tool_warned in
8509 yes:)
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8512 ac_tool_warned=yes ;;
8513 esac
8514 NMEDIT=$ac_ct_NMEDIT
8515 fi
8516 else
8517 NMEDIT="$ac_cv_prog_NMEDIT"
8518 fi
8519  
8520 if test -n "$ac_tool_prefix"; then
8521 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8522 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8524 $as_echo_n "checking for $ac_word... " >&6; }
8525 if ${ac_cv_prog_LIPO+:} false; then :
8526 $as_echo_n "(cached) " >&6
8527 else
8528 if test -n "$LIPO"; then
8529 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8530 else
8531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532 for as_dir in $PATH
8533 do
8534 IFS=$as_save_IFS
8535 test -z "$as_dir" && as_dir=.
8536 for ac_exec_ext in '' $ac_executable_extensions; do
8537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8538 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8540 break 2
8541 fi
8542 done
8543 done
8544 IFS=$as_save_IFS
8545  
8546 fi
8547 fi
8548 LIPO=$ac_cv_prog_LIPO
8549 if test -n "$LIPO"; then
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8551 $as_echo "$LIPO" >&6; }
8552 else
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554 $as_echo "no" >&6; }
8555 fi
8556  
8557  
8558 fi
8559 if test -z "$ac_cv_prog_LIPO"; then
8560 ac_ct_LIPO=$LIPO
8561 # Extract the first word of "lipo", so it can be a program name with args.
8562 set dummy lipo; ac_word=$2
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564 $as_echo_n "checking for $ac_word... " >&6; }
8565 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8566 $as_echo_n "(cached) " >&6
8567 else
8568 if test -n "$ac_ct_LIPO"; then
8569 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8570 else
8571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8572 for as_dir in $PATH
8573 do
8574 IFS=$as_save_IFS
8575 test -z "$as_dir" && as_dir=.
8576 for ac_exec_ext in '' $ac_executable_extensions; do
8577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8578 ac_cv_prog_ac_ct_LIPO="lipo"
8579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8580 break 2
8581 fi
8582 done
8583 done
8584 IFS=$as_save_IFS
8585  
8586 fi
8587 fi
8588 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8589 if test -n "$ac_ct_LIPO"; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8591 $as_echo "$ac_ct_LIPO" >&6; }
8592 else
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594 $as_echo "no" >&6; }
8595 fi
8596  
8597 if test "x$ac_ct_LIPO" = x; then
8598 LIPO=":"
8599 else
8600 case $cross_compiling:$ac_tool_warned in
8601 yes:)
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8604 ac_tool_warned=yes ;;
8605 esac
8606 LIPO=$ac_ct_LIPO
8607 fi
8608 else
8609 LIPO="$ac_cv_prog_LIPO"
8610 fi
8611  
8612 if test -n "$ac_tool_prefix"; then
8613 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8614 set dummy ${ac_tool_prefix}otool; ac_word=$2
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8616 $as_echo_n "checking for $ac_word... " >&6; }
8617 if ${ac_cv_prog_OTOOL+:} false; then :
8618 $as_echo_n "(cached) " >&6
8619 else
8620 if test -n "$OTOOL"; then
8621 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8622 else
8623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624 for as_dir in $PATH
8625 do
8626 IFS=$as_save_IFS
8627 test -z "$as_dir" && as_dir=.
8628 for ac_exec_ext in '' $ac_executable_extensions; do
8629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8630 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8632 break 2
8633 fi
8634 done
8635 done
8636 IFS=$as_save_IFS
8637  
8638 fi
8639 fi
8640 OTOOL=$ac_cv_prog_OTOOL
8641 if test -n "$OTOOL"; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8643 $as_echo "$OTOOL" >&6; }
8644 else
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 $as_echo "no" >&6; }
8647 fi
8648  
8649  
8650 fi
8651 if test -z "$ac_cv_prog_OTOOL"; then
8652 ac_ct_OTOOL=$OTOOL
8653 # Extract the first word of "otool", so it can be a program name with args.
8654 set dummy otool; ac_word=$2
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656 $as_echo_n "checking for $ac_word... " >&6; }
8657 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8658 $as_echo_n "(cached) " >&6
8659 else
8660 if test -n "$ac_ct_OTOOL"; then
8661 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8662 else
8663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664 for as_dir in $PATH
8665 do
8666 IFS=$as_save_IFS
8667 test -z "$as_dir" && as_dir=.
8668 for ac_exec_ext in '' $ac_executable_extensions; do
8669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8670 ac_cv_prog_ac_ct_OTOOL="otool"
8671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8672 break 2
8673 fi
8674 done
8675 done
8676 IFS=$as_save_IFS
8677  
8678 fi
8679 fi
8680 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8681 if test -n "$ac_ct_OTOOL"; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8683 $as_echo "$ac_ct_OTOOL" >&6; }
8684 else
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686 $as_echo "no" >&6; }
8687 fi
8688  
8689 if test "x$ac_ct_OTOOL" = x; then
8690 OTOOL=":"
8691 else
8692 case $cross_compiling:$ac_tool_warned in
8693 yes:)
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8696 ac_tool_warned=yes ;;
8697 esac
8698 OTOOL=$ac_ct_OTOOL
8699 fi
8700 else
8701 OTOOL="$ac_cv_prog_OTOOL"
8702 fi
8703  
8704 if test -n "$ac_tool_prefix"; then
8705 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8706 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708 $as_echo_n "checking for $ac_word... " >&6; }
8709 if ${ac_cv_prog_OTOOL64+:} false; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 if test -n "$OTOOL64"; then
8713 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8714 else
8715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716 for as_dir in $PATH
8717 do
8718 IFS=$as_save_IFS
8719 test -z "$as_dir" && as_dir=.
8720 for ac_exec_ext in '' $ac_executable_extensions; do
8721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8722 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8724 break 2
8725 fi
8726 done
8727 done
8728 IFS=$as_save_IFS
8729  
8730 fi
8731 fi
8732 OTOOL64=$ac_cv_prog_OTOOL64
8733 if test -n "$OTOOL64"; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8735 $as_echo "$OTOOL64" >&6; }
8736 else
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738 $as_echo "no" >&6; }
8739 fi
8740  
8741  
8742 fi
8743 if test -z "$ac_cv_prog_OTOOL64"; then
8744 ac_ct_OTOOL64=$OTOOL64
8745 # Extract the first word of "otool64", so it can be a program name with args.
8746 set dummy otool64; ac_word=$2
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8748 $as_echo_n "checking for $ac_word... " >&6; }
8749 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8750 $as_echo_n "(cached) " >&6
8751 else
8752 if test -n "$ac_ct_OTOOL64"; then
8753 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8754 else
8755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8756 for as_dir in $PATH
8757 do
8758 IFS=$as_save_IFS
8759 test -z "$as_dir" && as_dir=.
8760 for ac_exec_ext in '' $ac_executable_extensions; do
8761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8762 ac_cv_prog_ac_ct_OTOOL64="otool64"
8763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8764 break 2
8765 fi
8766 done
8767 done
8768 IFS=$as_save_IFS
8769  
8770 fi
8771 fi
8772 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8773 if test -n "$ac_ct_OTOOL64"; then
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8775 $as_echo "$ac_ct_OTOOL64" >&6; }
8776 else
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8778 $as_echo "no" >&6; }
8779 fi
8780  
8781 if test "x$ac_ct_OTOOL64" = x; then
8782 OTOOL64=":"
8783 else
8784 case $cross_compiling:$ac_tool_warned in
8785 yes:)
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8788 ac_tool_warned=yes ;;
8789 esac
8790 OTOOL64=$ac_ct_OTOOL64
8791 fi
8792 else
8793 OTOOL64="$ac_cv_prog_OTOOL64"
8794 fi
8795  
8796  
8797  
8798  
8799  
8800  
8801  
8802  
8803  
8804  
8805  
8806  
8807  
8808  
8809  
8810  
8811  
8812  
8813  
8814  
8815  
8816  
8817  
8818  
8819  
8820  
8821  
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8823 $as_echo_n "checking for -single_module linker flag... " >&6; }
8824 if ${lt_cv_apple_cc_single_mod+:} false; then :
8825 $as_echo_n "(cached) " >&6
8826 else
8827 lt_cv_apple_cc_single_mod=no
8828 if test -z "${LT_MULTI_MODULE}"; then
8829 # By default we will add the -single_module flag. You can override
8830 # by either setting the environment variable LT_MULTI_MODULE
8831 # non-empty at configure time, or by adding -multi_module to the
8832 # link flags.
8833 rm -rf libconftest.dylib*
8834 echo "int foo(void){return 1;}" > conftest.c
8835 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8836 -dynamiclib -Wl,-single_module conftest.c" >&5
8837 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8838 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8839 _lt_result=$?
8840 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8841 lt_cv_apple_cc_single_mod=yes
8842 else
8843 cat conftest.err >&5
8844 fi
8845 rm -rf libconftest.dylib*
8846 rm -f conftest.*
8847 fi
8848 fi
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8850 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8852 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8853 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8854 $as_echo_n "(cached) " >&6
8855 else
8856 lt_cv_ld_exported_symbols_list=no
8857 save_LDFLAGS=$LDFLAGS
8858 echo "_main" > conftest.sym
8859 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h. */
8862  
8863 int
8864 main ()
8865 {
8866  
8867 ;
8868 return 0;
8869 }
8870 _ACEOF
8871 if ac_fn_c_try_link "$LINENO"; then :
8872 lt_cv_ld_exported_symbols_list=yes
8873 else
8874 lt_cv_ld_exported_symbols_list=no
8875 fi
8876 rm -f core conftest.err conftest.$ac_objext \
8877 conftest$ac_exeext conftest.$ac_ext
8878 LDFLAGS="$save_LDFLAGS"
8879  
8880 fi
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8882 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8884 $as_echo_n "checking for -force_load linker flag... " >&6; }
8885 if ${lt_cv_ld_force_load+:} false; then :
8886 $as_echo_n "(cached) " >&6
8887 else
8888 lt_cv_ld_force_load=no
8889 cat > conftest.c << _LT_EOF
8890 int forced_loaded() { return 2;}
8891 _LT_EOF
8892 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8893 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8894 echo "$AR cru libconftest.a conftest.o" >&5
8895 $AR cru libconftest.a conftest.o 2>&5
8896 echo "$RANLIB libconftest.a" >&5
8897 $RANLIB libconftest.a 2>&5
8898 cat > conftest.c << _LT_EOF
8899 int main() { return 0;}
8900 _LT_EOF
8901 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8902 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8903 _lt_result=$?
8904 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8905 lt_cv_ld_force_load=yes
8906 else
8907 cat conftest.err >&5
8908 fi
8909 rm -f conftest.err libconftest.a conftest conftest.c
8910 rm -rf conftest.dSYM
8911  
8912 fi
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8914 $as_echo "$lt_cv_ld_force_load" >&6; }
8915 case $host_os in
8916 rhapsody* | darwin1.[012])
8917 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8918 darwin1.*)
8919 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8920 darwin*) # darwin 5.x on
8921 # if running on 10.5 or later, the deployment target defaults
8922 # to the OS version, if on x86, and 10.4, the deployment
8923 # target defaults to 10.4. Don't you love it?
8924 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8925 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8926 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8927 10.[012]*)
8928 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8929 10.*)
8930 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8931 esac
8932 ;;
8933 esac
8934 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8935 _lt_dar_single_mod='$single_module'
8936 fi
8937 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8938 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8939 else
8940 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8941 fi
8942 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8943 _lt_dsymutil='~$DSYMUTIL $lib || :'
8944 else
8945 _lt_dsymutil=
8946 fi
8947 ;;
8948 esac
8949  
8950 for ac_header in dlfcn.h
8951 do :
8952 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8953 "
8954 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8955 cat >>confdefs.h <<_ACEOF
8956 #define HAVE_DLFCN_H 1
8957 _ACEOF
8958  
8959 fi
8960  
8961 done
8962  
8963  
8964  
8965  
8966  
8967 # Set options
8968 # Check whether --enable-static was given.
8969 if test "${enable_static+set}" = set; then :
8970 enableval=$enable_static; p=${PACKAGE-default}
8971 case $enableval in
8972 yes) enable_static=yes ;;
8973 no) enable_static=no ;;
8974 *)
8975 enable_static=no
8976 # Look at the argument we got. We use all the common list separators.
8977 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8978 for pkg in $enableval; do
8979 IFS="$lt_save_ifs"
8980 if test "X$pkg" = "X$p"; then
8981 enable_static=yes
8982 fi
8983 done
8984 IFS="$lt_save_ifs"
8985 ;;
8986 esac
8987 else
8988 enable_static=no
8989 fi
8990  
8991  
8992  
8993  
8994  
8995  
8996  
8997 enable_win32_dll=yes
8998  
8999 case $host in
9000 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9001 if test -n "$ac_tool_prefix"; then
9002 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9003 set dummy ${ac_tool_prefix}as; ac_word=$2
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9005 $as_echo_n "checking for $ac_word... " >&6; }
9006 if ${ac_cv_prog_AS+:} false; then :
9007 $as_echo_n "(cached) " >&6
9008 else
9009 if test -n "$AS"; then
9010 ac_cv_prog_AS="$AS" # Let the user override the test.
9011 else
9012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9013 for as_dir in $PATH
9014 do
9015 IFS=$as_save_IFS
9016 test -z "$as_dir" && as_dir=.
9017 for ac_exec_ext in '' $ac_executable_extensions; do
9018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9019 ac_cv_prog_AS="${ac_tool_prefix}as"
9020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9021 break 2
9022 fi
9023 done
9024 done
9025 IFS=$as_save_IFS
9026  
9027 fi
9028 fi
9029 AS=$ac_cv_prog_AS
9030 if test -n "$AS"; then
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9032 $as_echo "$AS" >&6; }
9033 else
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9035 $as_echo "no" >&6; }
9036 fi
9037  
9038  
9039 fi
9040 if test -z "$ac_cv_prog_AS"; then
9041 ac_ct_AS=$AS
9042 # Extract the first word of "as", so it can be a program name with args.
9043 set dummy as; ac_word=$2
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045 $as_echo_n "checking for $ac_word... " >&6; }
9046 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9047 $as_echo_n "(cached) " >&6
9048 else
9049 if test -n "$ac_ct_AS"; then
9050 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9051 else
9052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053 for as_dir in $PATH
9054 do
9055 IFS=$as_save_IFS
9056 test -z "$as_dir" && as_dir=.
9057 for ac_exec_ext in '' $ac_executable_extensions; do
9058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9059 ac_cv_prog_ac_ct_AS="as"
9060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9061 break 2
9062 fi
9063 done
9064 done
9065 IFS=$as_save_IFS
9066  
9067 fi
9068 fi
9069 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9070 if test -n "$ac_ct_AS"; then
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9072 $as_echo "$ac_ct_AS" >&6; }
9073 else
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9075 $as_echo "no" >&6; }
9076 fi
9077  
9078 if test "x$ac_ct_AS" = x; then
9079 AS="false"
9080 else
9081 case $cross_compiling:$ac_tool_warned in
9082 yes:)
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9085 ac_tool_warned=yes ;;
9086 esac
9087 AS=$ac_ct_AS
9088 fi
9089 else
9090 AS="$ac_cv_prog_AS"
9091 fi
9092  
9093 if test -n "$ac_tool_prefix"; then
9094 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9095 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9097 $as_echo_n "checking for $ac_word... " >&6; }
9098 if ${ac_cv_prog_DLLTOOL+:} false; then :
9099 $as_echo_n "(cached) " >&6
9100 else
9101 if test -n "$DLLTOOL"; then
9102 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9103 else
9104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9105 for as_dir in $PATH
9106 do
9107 IFS=$as_save_IFS
9108 test -z "$as_dir" && as_dir=.
9109 for ac_exec_ext in '' $ac_executable_extensions; do
9110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9111 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9113 break 2
9114 fi
9115 done
9116 done
9117 IFS=$as_save_IFS
9118  
9119 fi
9120 fi
9121 DLLTOOL=$ac_cv_prog_DLLTOOL
9122 if test -n "$DLLTOOL"; then
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9124 $as_echo "$DLLTOOL" >&6; }
9125 else
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9127 $as_echo "no" >&6; }
9128 fi
9129  
9130  
9131 fi
9132 if test -z "$ac_cv_prog_DLLTOOL"; then
9133 ac_ct_DLLTOOL=$DLLTOOL
9134 # Extract the first word of "dlltool", so it can be a program name with args.
9135 set dummy dlltool; ac_word=$2
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137 $as_echo_n "checking for $ac_word... " >&6; }
9138 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9141 if test -n "$ac_ct_DLLTOOL"; then
9142 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9143 else
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145 for as_dir in $PATH
9146 do
9147 IFS=$as_save_IFS
9148 test -z "$as_dir" && as_dir=.
9149 for ac_exec_ext in '' $ac_executable_extensions; do
9150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9151 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9153 break 2
9154 fi
9155 done
9156 done
9157 IFS=$as_save_IFS
9158  
9159 fi
9160 fi
9161 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9162 if test -n "$ac_ct_DLLTOOL"; then
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9164 $as_echo "$ac_ct_DLLTOOL" >&6; }
9165 else
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9168 fi
9169  
9170 if test "x$ac_ct_DLLTOOL" = x; then
9171 DLLTOOL="false"
9172 else
9173 case $cross_compiling:$ac_tool_warned in
9174 yes:)
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9177 ac_tool_warned=yes ;;
9178 esac
9179 DLLTOOL=$ac_ct_DLLTOOL
9180 fi
9181 else
9182 DLLTOOL="$ac_cv_prog_DLLTOOL"
9183 fi
9184  
9185 if test -n "$ac_tool_prefix"; then
9186 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9187 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9189 $as_echo_n "checking for $ac_word... " >&6; }
9190 if ${ac_cv_prog_OBJDUMP+:} false; then :
9191 $as_echo_n "(cached) " >&6
9192 else
9193 if test -n "$OBJDUMP"; then
9194 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9195 else
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197 for as_dir in $PATH
9198 do
9199 IFS=$as_save_IFS
9200 test -z "$as_dir" && as_dir=.
9201 for ac_exec_ext in '' $ac_executable_extensions; do
9202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9203 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9205 break 2
9206 fi
9207 done
9208 done
9209 IFS=$as_save_IFS
9210  
9211 fi
9212 fi
9213 OBJDUMP=$ac_cv_prog_OBJDUMP
9214 if test -n "$OBJDUMP"; then
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9216 $as_echo "$OBJDUMP" >&6; }
9217 else
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9219 $as_echo "no" >&6; }
9220 fi
9221  
9222  
9223 fi
9224 if test -z "$ac_cv_prog_OBJDUMP"; then
9225 ac_ct_OBJDUMP=$OBJDUMP
9226 # Extract the first word of "objdump", so it can be a program name with args.
9227 set dummy objdump; ac_word=$2
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9229 $as_echo_n "checking for $ac_word... " >&6; }
9230 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9231 $as_echo_n "(cached) " >&6
9232 else
9233 if test -n "$ac_ct_OBJDUMP"; then
9234 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9235 else
9236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9237 for as_dir in $PATH
9238 do
9239 IFS=$as_save_IFS
9240 test -z "$as_dir" && as_dir=.
9241 for ac_exec_ext in '' $ac_executable_extensions; do
9242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9243 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9245 break 2
9246 fi
9247 done
9248 done
9249 IFS=$as_save_IFS
9250  
9251 fi
9252 fi
9253 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9254 if test -n "$ac_ct_OBJDUMP"; then
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9256 $as_echo "$ac_ct_OBJDUMP" >&6; }
9257 else
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259 $as_echo "no" >&6; }
9260 fi
9261  
9262 if test "x$ac_ct_OBJDUMP" = x; then
9263 OBJDUMP="false"
9264 else
9265 case $cross_compiling:$ac_tool_warned in
9266 yes:)
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9269 ac_tool_warned=yes ;;
9270 esac
9271 OBJDUMP=$ac_ct_OBJDUMP
9272 fi
9273 else
9274 OBJDUMP="$ac_cv_prog_OBJDUMP"
9275 fi
9276  
9277 ;;
9278 esac
9279  
9280 test -z "$AS" && AS=as
9281  
9282  
9283  
9284  
9285  
9286 test -z "$DLLTOOL" && DLLTOOL=dlltool
9287  
9288  
9289  
9290  
9291  
9292 test -z "$OBJDUMP" && OBJDUMP=objdump
9293  
9294  
9295  
9296  
9297  
9298  
9299  
9300 enable_dlopen=no
9301  
9302  
9303  
9304 # Check whether --enable-shared was given.
9305 if test "${enable_shared+set}" = set; then :
9306 enableval=$enable_shared; p=${PACKAGE-default}
9307 case $enableval in
9308 yes) enable_shared=yes ;;
9309 no) enable_shared=no ;;
9310 *)
9311 enable_shared=no
9312 # Look at the argument we got. We use all the common list separators.
9313 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9314 for pkg in $enableval; do
9315 IFS="$lt_save_ifs"
9316 if test "X$pkg" = "X$p"; then
9317 enable_shared=yes
9318 fi
9319 done
9320 IFS="$lt_save_ifs"
9321 ;;
9322 esac
9323 else
9324 enable_shared=yes
9325 fi
9326  
9327  
9328  
9329  
9330  
9331  
9332  
9333  
9334  
9335  
9336  
9337 # Check whether --with-pic was given.
9338 if test "${with_pic+set}" = set; then :
9339 withval=$with_pic; pic_mode="$withval"
9340 else
9341 pic_mode=default
9342 fi
9343  
9344  
9345 test -z "$pic_mode" && pic_mode=default
9346  
9347  
9348  
9349  
9350  
9351  
9352  
9353 # Check whether --enable-fast-install was given.
9354 if test "${enable_fast_install+set}" = set; then :
9355 enableval=$enable_fast_install; p=${PACKAGE-default}
9356 case $enableval in
9357 yes) enable_fast_install=yes ;;
9358 no) enable_fast_install=no ;;
9359 *)
9360 enable_fast_install=no
9361 # Look at the argument we got. We use all the common list separators.
9362 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9363 for pkg in $enableval; do
9364 IFS="$lt_save_ifs"
9365 if test "X$pkg" = "X$p"; then
9366 enable_fast_install=yes
9367 fi
9368 done
9369 IFS="$lt_save_ifs"
9370 ;;
9371 esac
9372 else
9373 enable_fast_install=yes
9374 fi
9375  
9376  
9377  
9378  
9379  
9380  
9381  
9382  
9383  
9384  
9385  
9386 # This can be used to rebuild libtool when needed
9387 LIBTOOL_DEPS="$ltmain"
9388  
9389 # Always use our own libtool.
9390 LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
9391  
9392  
9393  
9394  
9395  
9396  
9397  
9398  
9399  
9400  
9401  
9402  
9403  
9404  
9405  
9406  
9407  
9408  
9409  
9410  
9411  
9412  
9413  
9414  
9415  
9416  
9417 test -z "$LN_S" && LN_S="ln -s"
9418  
9419  
9420  
9421  
9422  
9423  
9424  
9425  
9426  
9427  
9428  
9429  
9430  
9431  
9432 if test -n "${ZSH_VERSION+set}" ; then
9433 setopt NO_GLOB_SUBST
9434 fi
9435  
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9437 $as_echo_n "checking for objdir... " >&6; }
9438 if ${lt_cv_objdir+:} false; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 rm -f .libs 2>/dev/null
9442 mkdir .libs 2>/dev/null
9443 if test -d .libs; then
9444 lt_cv_objdir=.libs
9445 else
9446 # MS-DOS does not allow filenames that begin with a dot.
9447 lt_cv_objdir=_libs
9448 fi
9449 rmdir .libs 2>/dev/null
9450 fi
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9452 $as_echo "$lt_cv_objdir" >&6; }
9453 objdir=$lt_cv_objdir
9454  
9455  
9456  
9457  
9458  
9459 cat >>confdefs.h <<_ACEOF
9460 #define LT_OBJDIR "$lt_cv_objdir/"
9461 _ACEOF
9462  
9463  
9464  
9465  
9466 case $host_os in
9467 aix3*)
9468 # AIX sometimes has problems with the GCC collect2 program. For some
9469 # reason, if we set the COLLECT_NAMES environment variable, the problems
9470 # vanish in a puff of smoke.
9471 if test "X${COLLECT_NAMES+set}" != Xset; then
9472 COLLECT_NAMES=
9473 export COLLECT_NAMES
9474 fi
9475 ;;
9476 esac
9477  
9478 # Global variables:
9479 ofile=libtool
9480 can_build_shared=yes
9481  
9482 # All known linkers require a `.a' archive for static linking (except MSVC,
9483 # which needs '.lib').
9484 libext=a
9485  
9486 with_gnu_ld="$lt_cv_prog_gnu_ld"
9487  
9488 old_CC="$CC"
9489 old_CFLAGS="$CFLAGS"
9490  
9491 # Set sane defaults for various variables
9492 test -z "$CC" && CC=cc
9493 test -z "$LTCC" && LTCC=$CC
9494 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9495 test -z "$LD" && LD=ld
9496 test -z "$ac_objext" && ac_objext=o
9497  
9498 for cc_temp in $compiler""; do
9499 case $cc_temp in
9500 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9501 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9502 \-*) ;;
9503 *) break;;
9504 esac
9505 done
9506 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9507  
9508  
9509 # Only perform the check for file, if the check method requires it
9510 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9511 case $deplibs_check_method in
9512 file_magic*)
9513 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9515 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9516 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9519 case $MAGIC_CMD in
9520 [\\/*] | ?:[\\/]*)
9521 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9522 ;;
9523 *)
9524 lt_save_MAGIC_CMD="$MAGIC_CMD"
9525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9526 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9527 for ac_dir in $ac_dummy; do
9528 IFS="$lt_save_ifs"
9529 test -z "$ac_dir" && ac_dir=.
9530 if test -f $ac_dir/${ac_tool_prefix}file; then
9531 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9532 if test -n "$file_magic_test_file"; then
9533 case $deplibs_check_method in
9534 "file_magic "*)
9535 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9536 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9537 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9538 $EGREP "$file_magic_regex" > /dev/null; then
9539 :
9540 else
9541 cat <<_LT_EOF 1>&2
9542  
9543 *** Warning: the command libtool uses to detect shared libraries,
9544 *** $file_magic_cmd, produces output that libtool cannot recognize.
9545 *** The result is that libtool may fail to recognize shared libraries
9546 *** as such. This will affect the creation of libtool libraries that
9547 *** depend on shared libraries, but programs linked with such libtool
9548 *** libraries will work regardless of this problem. Nevertheless, you
9549 *** may want to report the problem to your system manager and/or to
9550 *** bug-libtool@gnu.org
9551  
9552 _LT_EOF
9553 fi ;;
9554 esac
9555 fi
9556 break
9557 fi
9558 done
9559 IFS="$lt_save_ifs"
9560 MAGIC_CMD="$lt_save_MAGIC_CMD"
9561 ;;
9562 esac
9563 fi
9564  
9565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9566 if test -n "$MAGIC_CMD"; then
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9568 $as_echo "$MAGIC_CMD" >&6; }
9569 else
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9571 $as_echo "no" >&6; }
9572 fi
9573  
9574  
9575  
9576  
9577  
9578 if test -z "$lt_cv_path_MAGIC_CMD"; then
9579 if test -n "$ac_tool_prefix"; then
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9581 $as_echo_n "checking for file... " >&6; }
9582 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 case $MAGIC_CMD in
9586 [\\/*] | ?:[\\/]*)
9587 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9588 ;;
9589 *)
9590 lt_save_MAGIC_CMD="$MAGIC_CMD"
9591 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9592 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9593 for ac_dir in $ac_dummy; do
9594 IFS="$lt_save_ifs"
9595 test -z "$ac_dir" && ac_dir=.
9596 if test -f $ac_dir/file; then
9597 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9598 if test -n "$file_magic_test_file"; then
9599 case $deplibs_check_method in
9600 "file_magic "*)
9601 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9602 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9603 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9604 $EGREP "$file_magic_regex" > /dev/null; then
9605 :
9606 else
9607 cat <<_LT_EOF 1>&2
9608  
9609 *** Warning: the command libtool uses to detect shared libraries,
9610 *** $file_magic_cmd, produces output that libtool cannot recognize.
9611 *** The result is that libtool may fail to recognize shared libraries
9612 *** as such. This will affect the creation of libtool libraries that
9613 *** depend on shared libraries, but programs linked with such libtool
9614 *** libraries will work regardless of this problem. Nevertheless, you
9615 *** may want to report the problem to your system manager and/or to
9616 *** bug-libtool@gnu.org
9617  
9618 _LT_EOF
9619 fi ;;
9620 esac
9621 fi
9622 break
9623 fi
9624 done
9625 IFS="$lt_save_ifs"
9626 MAGIC_CMD="$lt_save_MAGIC_CMD"
9627 ;;
9628 esac
9629 fi
9630  
9631 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9632 if test -n "$MAGIC_CMD"; then
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9634 $as_echo "$MAGIC_CMD" >&6; }
9635 else
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637 $as_echo "no" >&6; }
9638 fi
9639  
9640  
9641 else
9642 MAGIC_CMD=:
9643 fi
9644 fi
9645  
9646 fi
9647 ;;
9648 esac
9649  
9650 # Use C for the default configuration in the libtool script
9651  
9652 lt_save_CC="$CC"
9653 ac_ext=c
9654 ac_cpp='$CPP $CPPFLAGS'
9655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9658  
9659  
9660 # Source file extension for C test sources.
9661 ac_ext=c
9662  
9663 # Object file extension for compiled C test sources.
9664 objext=o
9665 objext=$objext
9666  
9667 # Code to be used in simple compile tests
9668 lt_simple_compile_test_code="int some_variable = 0;"
9669  
9670 # Code to be used in simple link tests
9671 lt_simple_link_test_code='int main(){return(0);}'
9672  
9673  
9674  
9675  
9676  
9677  
9678  
9679 # If no C compiler was specified, use CC.
9680 LTCC=${LTCC-"$CC"}
9681  
9682 # If no C compiler flags were specified, use CFLAGS.
9683 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9684  
9685 # Allow CC to be a program name with arguments.
9686 compiler=$CC
9687  
9688 # Save the default compiler, since it gets overwritten when the other
9689 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9690 compiler_DEFAULT=$CC
9691  
9692 # save warnings/boilerplate of simple test code
9693 ac_outfile=conftest.$ac_objext
9694 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9695 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9696 _lt_compiler_boilerplate=`cat conftest.err`
9697 $RM conftest*
9698  
9699 ac_outfile=conftest.$ac_objext
9700 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9701 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9702 _lt_linker_boilerplate=`cat conftest.err`
9703 $RM -r conftest*
9704  
9705  
9706 ## CAVEAT EMPTOR:
9707 ## There is no encapsulation within the following macros, do not change
9708 ## the running order or otherwise move them around unless you know exactly
9709 ## what you are doing...
9710 if test -n "$compiler"; then
9711  
9712 lt_prog_compiler_no_builtin_flag=
9713  
9714 if test "$GCC" = yes; then
9715 case $cc_basename in
9716 nvcc*)
9717 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9718 *)
9719 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9720 esac
9721  
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9723 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9724 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9725 $as_echo_n "(cached) " >&6
9726 else
9727 lt_cv_prog_compiler_rtti_exceptions=no
9728 ac_outfile=conftest.$ac_objext
9729 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9730 lt_compiler_flag="-fno-rtti -fno-exceptions"
9731 # Insert the option either (1) after the last *FLAGS variable, or
9732 # (2) before a word containing "conftest.", or (3) at the end.
9733 # Note that $ac_compile itself does not contain backslashes and begins
9734 # with a dollar sign (not a hyphen), so the echo should work correctly.
9735 # The option is referenced via a variable to avoid confusing sed.
9736 lt_compile=`echo "$ac_compile" | $SED \
9737 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9739 -e 's:$: $lt_compiler_flag:'`
9740 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9741 (eval "$lt_compile" 2>conftest.err)
9742 ac_status=$?
9743 cat conftest.err >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 if (exit $ac_status) && test -s "$ac_outfile"; then
9746 # The compiler can only warn and ignore the option if not recognized
9747 # So say no if there are warnings other than the usual output.
9748 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9749 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9750 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9751 lt_cv_prog_compiler_rtti_exceptions=yes
9752 fi
9753 fi
9754 $RM conftest*
9755  
9756 fi
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9758 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9759  
9760 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9761 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9762 else
9763 :
9764 fi
9765  
9766 fi
9767  
9768  
9769  
9770  
9771  
9772  
9773 lt_prog_compiler_wl=
9774 lt_prog_compiler_pic=
9775 lt_prog_compiler_static=
9776  
9777  
9778 if test "$GCC" = yes; then
9779 lt_prog_compiler_wl='-Wl,'
9780 lt_prog_compiler_static='-static'
9781  
9782 case $host_os in
9783 aix*)
9784 # All AIX code is PIC.
9785 if test "$host_cpu" = ia64; then
9786 # AIX 5 now supports IA64 processor
9787 lt_prog_compiler_static='-Bstatic'
9788 fi
9789 ;;
9790  
9791 amigaos*)
9792 case $host_cpu in
9793 powerpc)
9794 # see comment about AmigaOS4 .so support
9795 lt_prog_compiler_pic='-fPIC'
9796 ;;
9797 m68k)
9798 # FIXME: we need at least 68020 code to build shared libraries, but
9799 # adding the `-m68020' flag to GCC prevents building anything better,
9800 # like `-m68040'.
9801 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9802 ;;
9803 esac
9804 ;;
9805  
9806 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9807 # PIC is the default for these OSes.
9808 ;;
9809  
9810 mingw* | cygwin* | pw32* | os2* | cegcc*)
9811 # This hack is so that the source file can tell whether it is being
9812 # built for inclusion in a dll (and should export symbols for example).
9813 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9814 # (--disable-auto-import) libraries
9815 lt_prog_compiler_pic='-DDLL_EXPORT'
9816 ;;
9817  
9818 darwin* | rhapsody*)
9819 # PIC is the default on this platform
9820 # Common symbols not allowed in MH_DYLIB files
9821 lt_prog_compiler_pic='-fno-common'
9822 ;;
9823  
9824 haiku*)
9825 # PIC is the default for Haiku.
9826 # The "-static" flag exists, but is broken.
9827 lt_prog_compiler_static=
9828 ;;
9829  
9830 hpux*)
9831 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9832 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9833 # sets the default TLS model and affects inlining.
9834 case $host_cpu in
9835 hppa*64*)
9836 # +Z the default
9837 ;;
9838 *)
9839 lt_prog_compiler_pic='-fPIC'
9840 ;;
9841 esac
9842 ;;
9843  
9844 interix[3-9]*)
9845 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9846 # Instead, we relocate shared libraries at runtime.
9847 ;;
9848  
9849 msdosdjgpp*)
9850 # Just because we use GCC doesn't mean we suddenly get shared libraries
9851 # on systems that don't support them.
9852 lt_prog_compiler_can_build_shared=no
9853 enable_shared=no
9854 ;;
9855  
9856 *nto* | *qnx*)
9857 # QNX uses GNU C++, but need to define -shared option too, otherwise
9858 # it will coredump.
9859 lt_prog_compiler_pic='-fPIC -shared'
9860 ;;
9861  
9862 sysv4*MP*)
9863 if test -d /usr/nec; then
9864 lt_prog_compiler_pic=-Kconform_pic
9865 fi
9866 ;;
9867  
9868 *)
9869 lt_prog_compiler_pic='-fPIC'
9870 ;;
9871 esac
9872  
9873 case $cc_basename in
9874 nvcc*) # Cuda Compiler Driver 2.2
9875 lt_prog_compiler_wl='-Xlinker '
9876 lt_prog_compiler_pic='-Xcompiler -fPIC'
9877 ;;
9878 esac
9879 else
9880 # PORTME Check for flag to pass linker flags through the system compiler.
9881 case $host_os in
9882 aix*)
9883 lt_prog_compiler_wl='-Wl,'
9884 if test "$host_cpu" = ia64; then
9885 # AIX 5 now supports IA64 processor
9886 lt_prog_compiler_static='-Bstatic'
9887 else
9888 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9889 fi
9890 ;;
9891  
9892 mingw* | cygwin* | pw32* | os2* | cegcc*)
9893 # This hack is so that the source file can tell whether it is being
9894 # built for inclusion in a dll (and should export symbols for example).
9895 lt_prog_compiler_pic='-DDLL_EXPORT'
9896 ;;
9897  
9898 hpux9* | hpux10* | hpux11*)
9899 lt_prog_compiler_wl='-Wl,'
9900 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9901 # not for PA HP-UX.
9902 case $host_cpu in
9903 hppa*64*|ia64*)
9904 # +Z the default
9905 ;;
9906 *)
9907 lt_prog_compiler_pic='+Z'
9908 ;;
9909 esac
9910 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9911 lt_prog_compiler_static='${wl}-a ${wl}archive'
9912 ;;
9913  
9914 irix5* | irix6* | nonstopux*)
9915 lt_prog_compiler_wl='-Wl,'
9916 # PIC (with -KPIC) is the default.
9917 lt_prog_compiler_static='-non_shared'
9918 ;;
9919  
9920 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9921 case $cc_basename in
9922 # old Intel for x86_64 which still supported -KPIC.
9923 ecc*)
9924 lt_prog_compiler_wl='-Wl,'
9925 lt_prog_compiler_pic='-KPIC'
9926 lt_prog_compiler_static='-static'
9927 ;;
9928 # icc used to be incompatible with GCC.
9929 # ICC 10 doesn't accept -KPIC any more.
9930 icc* | ifort*)
9931 lt_prog_compiler_wl='-Wl,'
9932 lt_prog_compiler_pic='-fPIC'
9933 lt_prog_compiler_static='-static'
9934 ;;
9935 # Lahey Fortran 8.1.
9936 lf95*)
9937 lt_prog_compiler_wl='-Wl,'
9938 lt_prog_compiler_pic='--shared'
9939 lt_prog_compiler_static='--static'
9940 ;;
9941 nagfor*)
9942 # NAG Fortran compiler
9943 lt_prog_compiler_wl='-Wl,-Wl,,'
9944 lt_prog_compiler_pic='-PIC'
9945 lt_prog_compiler_static='-Bstatic'
9946 ;;
9947 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9948 # Portland Group compilers (*not* the Pentium gcc compiler,
9949 # which looks to be a dead project)
9950 lt_prog_compiler_wl='-Wl,'
9951 lt_prog_compiler_pic='-fpic'
9952 lt_prog_compiler_static='-Bstatic'
9953 ;;
9954 ccc*)
9955 lt_prog_compiler_wl='-Wl,'
9956 # All Alpha code is PIC.
9957 lt_prog_compiler_static='-non_shared'
9958 ;;
9959 xl* | bgxl* | bgf* | mpixl*)
9960 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9961 lt_prog_compiler_wl='-Wl,'
9962 lt_prog_compiler_pic='-qpic'
9963 lt_prog_compiler_static='-qstaticlink'
9964 ;;
9965 *)
9966 case `$CC -V 2>&1 | sed 5q` in
9967 *Sun\ F* | *Sun*Fortran*)
9968 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9969 lt_prog_compiler_pic='-KPIC'
9970 lt_prog_compiler_static='-Bstatic'
9971 lt_prog_compiler_wl=''
9972 ;;
9973 *Sun\ C*)
9974 # Sun C 5.9
9975 lt_prog_compiler_pic='-KPIC'
9976 lt_prog_compiler_static='-Bstatic'
9977 lt_prog_compiler_wl='-Wl,'
9978 ;;
9979 esac
9980 ;;
9981 esac
9982 ;;
9983  
9984 newsos6)
9985 lt_prog_compiler_pic='-KPIC'
9986 lt_prog_compiler_static='-Bstatic'
9987 ;;
9988  
9989 *nto* | *qnx*)
9990 # QNX uses GNU C++, but need to define -shared option too, otherwise
9991 # it will coredump.
9992 lt_prog_compiler_pic='-fPIC -shared'
9993 ;;
9994  
9995 osf3* | osf4* | osf5*)
9996 lt_prog_compiler_wl='-Wl,'
9997 # All OSF/1 code is PIC.
9998 lt_prog_compiler_static='-non_shared'
9999 ;;
10000  
10001 rdos*)
10002 lt_prog_compiler_static='-non_shared'
10003 ;;
10004  
10005 solaris*)
10006 lt_prog_compiler_pic='-KPIC'
10007 lt_prog_compiler_static='-Bstatic'
10008 case $cc_basename in
10009 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10010 lt_prog_compiler_wl='-Qoption ld ';;
10011 *)
10012 lt_prog_compiler_wl='-Wl,';;
10013 esac
10014 ;;
10015  
10016 sunos4*)
10017 lt_prog_compiler_wl='-Qoption ld '
10018 lt_prog_compiler_pic='-PIC'
10019 lt_prog_compiler_static='-Bstatic'
10020 ;;
10021  
10022 sysv4 | sysv4.2uw2* | sysv4.3*)
10023 lt_prog_compiler_wl='-Wl,'
10024 lt_prog_compiler_pic='-KPIC'
10025 lt_prog_compiler_static='-Bstatic'
10026 ;;
10027  
10028 sysv4*MP*)
10029 if test -d /usr/nec ;then
10030 lt_prog_compiler_pic='-Kconform_pic'
10031 lt_prog_compiler_static='-Bstatic'
10032 fi
10033 ;;
10034  
10035 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10036 lt_prog_compiler_wl='-Wl,'
10037 lt_prog_compiler_pic='-KPIC'
10038 lt_prog_compiler_static='-Bstatic'
10039 ;;
10040  
10041 unicos*)
10042 lt_prog_compiler_wl='-Wl,'
10043 lt_prog_compiler_can_build_shared=no
10044 ;;
10045  
10046 uts4*)
10047 lt_prog_compiler_pic='-pic'
10048 lt_prog_compiler_static='-Bstatic'
10049 ;;
10050  
10051 *)
10052 lt_prog_compiler_can_build_shared=no
10053 ;;
10054 esac
10055 fi
10056  
10057 case $host_os in
10058 # For platforms which do not support PIC, -DPIC is meaningless:
10059 *djgpp*)
10060 lt_prog_compiler_pic=
10061 ;;
10062 *)
10063 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10064 ;;
10065 esac
10066  
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10068 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10069 if ${lt_cv_prog_compiler_pic+:} false; then :
10070 $as_echo_n "(cached) " >&6
10071 else
10072 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10073 fi
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10075 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10076 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10077  
10078 #
10079 # Check to make sure the PIC flag actually works.
10080 #
10081 if test -n "$lt_prog_compiler_pic"; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10083 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10084 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10085 $as_echo_n "(cached) " >&6
10086 else
10087 lt_cv_prog_compiler_pic_works=no
10088 ac_outfile=conftest.$ac_objext
10089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10090 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10091 # Insert the option either (1) after the last *FLAGS variable, or
10092 # (2) before a word containing "conftest.", or (3) at the end.
10093 # Note that $ac_compile itself does not contain backslashes and begins
10094 # with a dollar sign (not a hyphen), so the echo should work correctly.
10095 # The option is referenced via a variable to avoid confusing sed.
10096 lt_compile=`echo "$ac_compile" | $SED \
10097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10099 -e 's:$: $lt_compiler_flag:'`
10100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10101 (eval "$lt_compile" 2>conftest.err)
10102 ac_status=$?
10103 cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 if (exit $ac_status) && test -s "$ac_outfile"; then
10106 # The compiler can only warn and ignore the option if not recognized
10107 # So say no if there are warnings other than the usual output.
10108 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10110 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10111 lt_cv_prog_compiler_pic_works=yes
10112 fi
10113 fi
10114 $RM conftest*
10115  
10116 fi
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10118 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10119  
10120 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10121 case $lt_prog_compiler_pic in
10122 "" | " "*) ;;
10123 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10124 esac
10125 else
10126 lt_prog_compiler_pic=
10127 lt_prog_compiler_can_build_shared=no
10128 fi
10129  
10130 fi
10131  
10132  
10133  
10134  
10135  
10136  
10137  
10138  
10139  
10140  
10141  
10142 #
10143 # Check to make sure the static flag actually works.
10144 #
10145 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10147 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10148 if ${lt_cv_prog_compiler_static_works+:} false; then :
10149 $as_echo_n "(cached) " >&6
10150 else
10151 lt_cv_prog_compiler_static_works=no
10152 save_LDFLAGS="$LDFLAGS"
10153 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10154 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10155 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10156 # The linker can only warn and ignore the option if not recognized
10157 # So say no if there are warnings
10158 if test -s conftest.err; then
10159 # Append any errors to the config.log.
10160 cat conftest.err 1>&5
10161 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10162 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10163 if diff conftest.exp conftest.er2 >/dev/null; then
10164 lt_cv_prog_compiler_static_works=yes
10165 fi
10166 else
10167 lt_cv_prog_compiler_static_works=yes
10168 fi
10169 fi
10170 $RM -r conftest*
10171 LDFLAGS="$save_LDFLAGS"
10172  
10173 fi
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10175 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10176  
10177 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10178 :
10179 else
10180 lt_prog_compiler_static=
10181 fi
10182  
10183  
10184  
10185  
10186  
10187  
10188  
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10190 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10191 if ${lt_cv_prog_compiler_c_o+:} false; then :
10192 $as_echo_n "(cached) " >&6
10193 else
10194 lt_cv_prog_compiler_c_o=no
10195 $RM -r conftest 2>/dev/null
10196 mkdir conftest
10197 cd conftest
10198 mkdir out
10199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10200  
10201 lt_compiler_flag="-o out/conftest2.$ac_objext"
10202 # Insert the option either (1) after the last *FLAGS variable, or
10203 # (2) before a word containing "conftest.", or (3) at the end.
10204 # Note that $ac_compile itself does not contain backslashes and begins
10205 # with a dollar sign (not a hyphen), so the echo should work correctly.
10206 lt_compile=`echo "$ac_compile" | $SED \
10207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10209 -e 's:$: $lt_compiler_flag:'`
10210 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10211 (eval "$lt_compile" 2>out/conftest.err)
10212 ac_status=$?
10213 cat out/conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10216 then
10217 # The compiler can only warn and ignore the option if not recognized
10218 # So say no if there are warnings
10219 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10220 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10221 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10222 lt_cv_prog_compiler_c_o=yes
10223 fi
10224 fi
10225 chmod u+w . 2>&5
10226 $RM conftest*
10227 # SGI C++ compiler will create directory out/ii_files/ for
10228 # template instantiation
10229 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10230 $RM out/* && rmdir out
10231 cd ..
10232 $RM -r conftest
10233 $RM conftest*
10234  
10235 fi
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10237 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10238  
10239  
10240  
10241  
10242  
10243  
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10245 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10246 if ${lt_cv_prog_compiler_c_o+:} false; then :
10247 $as_echo_n "(cached) " >&6
10248 else
10249 lt_cv_prog_compiler_c_o=no
10250 $RM -r conftest 2>/dev/null
10251 mkdir conftest
10252 cd conftest
10253 mkdir out
10254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10255  
10256 lt_compiler_flag="-o out/conftest2.$ac_objext"
10257 # Insert the option either (1) after the last *FLAGS variable, or
10258 # (2) before a word containing "conftest.", or (3) at the end.
10259 # Note that $ac_compile itself does not contain backslashes and begins
10260 # with a dollar sign (not a hyphen), so the echo should work correctly.
10261 lt_compile=`echo "$ac_compile" | $SED \
10262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10264 -e 's:$: $lt_compiler_flag:'`
10265 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10266 (eval "$lt_compile" 2>out/conftest.err)
10267 ac_status=$?
10268 cat out/conftest.err >&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10271 then
10272 # The compiler can only warn and ignore the option if not recognized
10273 # So say no if there are warnings
10274 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10275 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10276 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10277 lt_cv_prog_compiler_c_o=yes
10278 fi
10279 fi
10280 chmod u+w . 2>&5
10281 $RM conftest*
10282 # SGI C++ compiler will create directory out/ii_files/ for
10283 # template instantiation
10284 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10285 $RM out/* && rmdir out
10286 cd ..
10287 $RM -r conftest
10288 $RM conftest*
10289  
10290 fi
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10292 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10293  
10294  
10295  
10296  
10297 hard_links="nottested"
10298 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10299 # do not overwrite the value of need_locks provided by the user
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10301 $as_echo_n "checking if we can lock with hard links... " >&6; }
10302 hard_links=yes
10303 $RM conftest*
10304 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10305 touch conftest.a
10306 ln conftest.a conftest.b 2>&5 || hard_links=no
10307 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10309 $as_echo "$hard_links" >&6; }
10310 if test "$hard_links" = no; then
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10312 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10313 need_locks=warn
10314 fi
10315 else
10316 need_locks=no
10317 fi
10318  
10319  
10320  
10321  
10322  
10323  
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10325 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10326  
10327 runpath_var=
10328 allow_undefined_flag=
10329 always_export_symbols=no
10330 archive_cmds=
10331 archive_expsym_cmds=
10332 compiler_needs_object=no
10333 enable_shared_with_static_runtimes=no
10334 export_dynamic_flag_spec=
10335 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10336 hardcode_automatic=no
10337 hardcode_direct=no
10338 hardcode_direct_absolute=no
10339 hardcode_libdir_flag_spec=
10340 hardcode_libdir_flag_spec_ld=
10341 hardcode_libdir_separator=
10342 hardcode_minus_L=no
10343 hardcode_shlibpath_var=unsupported
10344 inherit_rpath=no
10345 link_all_deplibs=unknown
10346 module_cmds=
10347 module_expsym_cmds=
10348 old_archive_from_new_cmds=
10349 old_archive_from_expsyms_cmds=
10350 thread_safe_flag_spec=
10351 whole_archive_flag_spec=
10352 # include_expsyms should be a list of space-separated symbols to be *always*
10353 # included in the symbol list
10354 include_expsyms=
10355 # exclude_expsyms can be an extended regexp of symbols to exclude
10356 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10357 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10358 # as well as any symbol that contains `d'.
10359 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10360 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10361 # platforms (ab)use it in PIC code, but their linkers get confused if
10362 # the symbol is explicitly referenced. Since portable code cannot
10363 # rely on this symbol name, it's probably fine to never include it in
10364 # preloaded symbol tables.
10365 # Exclude shared library initialization/finalization symbols.
10366 extract_expsyms_cmds=
10367  
10368 case $host_os in
10369 cygwin* | mingw* | pw32* | cegcc*)
10370 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10371 # When not using gcc, we currently assume that we are using
10372 # Microsoft Visual C++.
10373 if test "$GCC" != yes; then
10374 with_gnu_ld=no
10375 fi
10376 ;;
10377 interix*)
10378 # we just hope/assume this is gcc and not c89 (= MSVC++)
10379 with_gnu_ld=yes
10380 ;;
10381 openbsd*)
10382 with_gnu_ld=no
10383 ;;
10384 esac
10385  
10386 ld_shlibs=yes
10387  
10388 # On some targets, GNU ld is compatible enough with the native linker
10389 # that we're better off using the native interface for both.
10390 lt_use_gnu_ld_interface=no
10391 if test "$with_gnu_ld" = yes; then
10392 case $host_os in
10393 aix*)
10394 # The AIX port of GNU ld has always aspired to compatibility
10395 # with the native linker. However, as the warning in the GNU ld
10396 # block says, versions before 2.19.5* couldn't really create working
10397 # shared libraries, regardless of the interface used.
10398 case `$LD -v 2>&1` in
10399 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10400 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10401 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10402 *)
10403 lt_use_gnu_ld_interface=yes
10404 ;;
10405 esac
10406 ;;
10407 *)
10408 lt_use_gnu_ld_interface=yes
10409 ;;
10410 esac
10411 fi
10412  
10413 if test "$lt_use_gnu_ld_interface" = yes; then
10414 # If archive_cmds runs LD, not CC, wlarc should be empty
10415 wlarc='${wl}'
10416  
10417 # Set some defaults for GNU ld with shared library support. These
10418 # are reset later if shared libraries are not supported. Putting them
10419 # here allows them to be overridden if necessary.
10420 runpath_var=LD_RUN_PATH
10421 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10422 export_dynamic_flag_spec='${wl}--export-dynamic'
10423 # ancient GNU ld didn't support --whole-archive et. al.
10424 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10425 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10426 else
10427 whole_archive_flag_spec=
10428 fi
10429 supports_anon_versioning=no
10430 case `$LD -v 2>&1` in
10431 *GNU\ gold*) supports_anon_versioning=yes ;;
10432 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10433 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10434 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10435 *\ 2.11.*) ;; # other 2.11 versions
10436 *) supports_anon_versioning=yes ;;
10437 esac
10438  
10439 # See if GNU ld supports shared libraries.
10440 case $host_os in
10441 aix[3-9]*)
10442 # On AIX/PPC, the GNU linker is very broken
10443 if test "$host_cpu" != ia64; then
10444 ld_shlibs=no
10445 cat <<_LT_EOF 1>&2
10446  
10447 *** Warning: the GNU linker, at least up to release 2.19, is reported
10448 *** to be unable to reliably create shared libraries on AIX.
10449 *** Therefore, libtool is disabling shared libraries support. If you
10450 *** really care for shared libraries, you may want to install binutils
10451 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10452 *** You will then need to restart the configuration process.
10453  
10454 _LT_EOF
10455 fi
10456 ;;
10457  
10458 amigaos*)
10459 case $host_cpu in
10460 powerpc)
10461 # see comment about AmigaOS4 .so support
10462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10463 archive_expsym_cmds=''
10464 ;;
10465 m68k)
10466 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)'
10467 hardcode_libdir_flag_spec='-L$libdir'
10468 hardcode_minus_L=yes
10469 ;;
10470 esac
10471 ;;
10472  
10473 beos*)
10474 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10475 allow_undefined_flag=unsupported
10476 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10477 # support --undefined. This deserves some investigation. FIXME
10478 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10479 else
10480 ld_shlibs=no
10481 fi
10482 ;;
10483  
10484 cygwin* | mingw* | pw32* | cegcc*)
10485 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10486 # as there is no search path for DLLs.
10487 hardcode_libdir_flag_spec='-L$libdir'
10488 export_dynamic_flag_spec='${wl}--export-all-symbols'
10489 allow_undefined_flag=unsupported
10490 always_export_symbols=no
10491 enable_shared_with_static_runtimes=yes
10492 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'
10493 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10494  
10495 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10497 # If the export-symbols file already is a .def file (1st line
10498 # is EXPORTS), use it as is; otherwise, prepend...
10499 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10500 cp $export_symbols $output_objdir/$soname.def;
10501 else
10502 echo EXPORTS > $output_objdir/$soname.def;
10503 cat $export_symbols >> $output_objdir/$soname.def;
10504 fi~
10505 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10506 else
10507 ld_shlibs=no
10508 fi
10509 ;;
10510  
10511 haiku*)
10512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10513 link_all_deplibs=yes
10514 ;;
10515  
10516 interix[3-9]*)
10517 hardcode_direct=no
10518 hardcode_shlibpath_var=no
10519 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10520 export_dynamic_flag_spec='${wl}-E'
10521 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10522 # Instead, shared libraries are loaded at an image base (0x10000000 by
10523 # default) and relocated if they conflict, which is a slow very memory
10524 # consuming and fragmenting process. To avoid this, we pick a random,
10525 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10526 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10527 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10528 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'
10529 ;;
10530  
10531 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10532 tmp_diet=no
10533 if test "$host_os" = linux-dietlibc; then
10534 case $cc_basename in
10535 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10536 esac
10537 fi
10538 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10539 && test "$tmp_diet" = no
10540 then
10541 tmp_addflag=' $pic_flag'
10542 tmp_sharedflag='-shared'
10543 case $cc_basename,$host_cpu in
10544 pgcc*) # Portland Group C compiler
10545 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'
10546 tmp_addflag=' $pic_flag'
10547 ;;
10548 pgf77* | pgf90* | pgf95* | pgfortran*)
10549 # Portland Group f77 and f90 compilers
10550 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'
10551 tmp_addflag=' $pic_flag -Mnomain' ;;
10552 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10553 tmp_addflag=' -i_dynamic' ;;
10554 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10555 tmp_addflag=' -i_dynamic -nofor_main' ;;
10556 ifc* | ifort*) # Intel Fortran compiler
10557 tmp_addflag=' -nofor_main' ;;
10558 lf95*) # Lahey Fortran 8.1
10559 whole_archive_flag_spec=
10560 tmp_sharedflag='--shared' ;;
10561 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10562 tmp_sharedflag='-qmkshrobj'
10563 tmp_addflag= ;;
10564 nvcc*) # Cuda Compiler Driver 2.2
10565 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'
10566 compiler_needs_object=yes
10567 ;;
10568 esac
10569 case `$CC -V 2>&1 | sed 5q` in
10570 *Sun\ C*) # Sun C 5.9
10571 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'
10572 compiler_needs_object=yes
10573 tmp_sharedflag='-G' ;;
10574 *Sun\ F*) # Sun Fortran 8.3
10575 tmp_sharedflag='-G' ;;
10576 esac
10577 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10578  
10579 if test "x$supports_anon_versioning" = xyes; then
10580 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10581 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10582 echo "local: *; };" >> $output_objdir/$libname.ver~
10583 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10584 fi
10585  
10586 case $cc_basename in
10587 xlf* | bgf* | bgxlf* | mpixlf*)
10588 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10589 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10590 hardcode_libdir_flag_spec=
10591 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10592 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10593 if test "x$supports_anon_versioning" = xyes; then
10594 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10595 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10596 echo "local: *; };" >> $output_objdir/$libname.ver~
10597 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10598 fi
10599 ;;
10600 esac
10601 else
10602 ld_shlibs=no
10603 fi
10604 ;;
10605  
10606 netbsd*)
10607 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10608 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10609 wlarc=
10610 else
10611 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10612 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10613 fi
10614 ;;
10615  
10616 solaris*)
10617 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10618 ld_shlibs=no
10619 cat <<_LT_EOF 1>&2
10620  
10621 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10622 *** create shared libraries on Solaris systems. Therefore, libtool
10623 *** is disabling shared libraries support. We urge you to upgrade GNU
10624 *** binutils to release 2.9.1 or newer. Another option is to modify
10625 *** your PATH or compiler configuration so that the native linker is
10626 *** used, and then restart.
10627  
10628 _LT_EOF
10629 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10630 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10631 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10632 else
10633 ld_shlibs=no
10634 fi
10635 ;;
10636  
10637 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10638 case `$LD -v 2>&1` in
10639 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10640 ld_shlibs=no
10641 cat <<_LT_EOF 1>&2
10642  
10643 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10644 *** reliably create shared libraries on SCO systems. Therefore, libtool
10645 *** is disabling shared libraries support. We urge you to upgrade GNU
10646 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10647 *** your PATH or compiler configuration so that the native linker is
10648 *** used, and then restart.
10649  
10650 _LT_EOF
10651 ;;
10652 *)
10653 # For security reasons, it is highly recommended that you always
10654 # use absolute paths for naming shared libraries, and exclude the
10655 # DT_RUNPATH tag from executables and libraries. But doing so
10656 # requires that you compile everything twice, which is a pain.
10657 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10658 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10660 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10661 else
10662 ld_shlibs=no
10663 fi
10664 ;;
10665 esac
10666 ;;
10667  
10668 sunos4*)
10669 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10670 wlarc=
10671 hardcode_direct=yes
10672 hardcode_shlibpath_var=no
10673 ;;
10674  
10675 *)
10676 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10677 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10678 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10679 else
10680 ld_shlibs=no
10681 fi
10682 ;;
10683 esac
10684  
10685 if test "$ld_shlibs" = no; then
10686 runpath_var=
10687 hardcode_libdir_flag_spec=
10688 export_dynamic_flag_spec=
10689 whole_archive_flag_spec=
10690 fi
10691 else
10692 # PORTME fill in a description of your system's linker (not GNU ld)
10693 case $host_os in
10694 aix3*)
10695 allow_undefined_flag=unsupported
10696 always_export_symbols=yes
10697 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'
10698 # Note: this linker hardcodes the directories in LIBPATH if there
10699 # are no directories specified by -L.
10700 hardcode_minus_L=yes
10701 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10702 # Neither direct hardcoding nor static linking is supported with a
10703 # broken collect2.
10704 hardcode_direct=unsupported
10705 fi
10706 ;;
10707  
10708 aix[4-9]*)
10709 if test "$host_cpu" = ia64; then
10710 # On IA64, the linker does run time linking by default, so we don't
10711 # have to do anything special.
10712 aix_use_runtimelinking=no
10713 exp_sym_flag='-Bexport'
10714 no_entry_flag=""
10715 else
10716 # If we're using GNU nm, then we don't want the "-C" option.
10717 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10718 # Also, AIX nm treats weak defined symbols like other global
10719 # defined symbols, whereas GNU nm marks them as "W".
10720 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10721 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10722 else
10723 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10724 fi
10725 aix_use_runtimelinking=no
10726  
10727 # Test if we are trying to use run time linking or normal
10728 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10729 # need to do runtime linking.
10730 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10731 for ld_flag in $LDFLAGS; do
10732 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10733 aix_use_runtimelinking=yes
10734 break
10735 fi
10736 done
10737 ;;
10738 esac
10739  
10740 exp_sym_flag='-bexport'
10741 no_entry_flag='-bnoentry'
10742 fi
10743  
10744 # When large executables or shared objects are built, AIX ld can
10745 # have problems creating the table of contents. If linking a library
10746 # or program results in "error TOC overflow" add -mminimal-toc to
10747 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10748 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10749  
10750 archive_cmds=''
10751 hardcode_direct=yes
10752 hardcode_direct_absolute=yes
10753 hardcode_libdir_separator=':'
10754 link_all_deplibs=yes
10755 file_list_spec='${wl}-f,'
10756  
10757 if test "$GCC" = yes; then
10758 case $host_os in aix4.[012]|aix4.[012].*)
10759 # We only want to do this on AIX 4.2 and lower, the check
10760 # below for broken collect2 doesn't work under 4.3+
10761 collect2name=`${CC} -print-prog-name=collect2`
10762 if test -f "$collect2name" &&
10763 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10764 then
10765 # We have reworked collect2
10766 :
10767 else
10768 # We have old collect2
10769 hardcode_direct=unsupported
10770 # It fails to find uninstalled libraries when the uninstalled
10771 # path is not listed in the libpath. Setting hardcode_minus_L
10772 # to unsupported forces relinking
10773 hardcode_minus_L=yes
10774 hardcode_libdir_flag_spec='-L$libdir'
10775 hardcode_libdir_separator=
10776 fi
10777 ;;
10778 esac
10779 shared_flag='-shared'
10780 if test "$aix_use_runtimelinking" = yes; then
10781 shared_flag="$shared_flag "'${wl}-G'
10782 fi
10783 else
10784 # not using gcc
10785 if test "$host_cpu" = ia64; then
10786 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10787 # chokes on -Wl,-G. The following line is correct:
10788 shared_flag='-G'
10789 else
10790 if test "$aix_use_runtimelinking" = yes; then
10791 shared_flag='${wl}-G'
10792 else
10793 shared_flag='${wl}-bM:SRE'
10794 fi
10795 fi
10796 fi
10797  
10798 export_dynamic_flag_spec='${wl}-bexpall'
10799 # It seems that -bexpall does not export symbols beginning with
10800 # underscore (_), so it is better to generate a list of symbols to export.
10801 always_export_symbols=yes
10802 if test "$aix_use_runtimelinking" = yes; then
10803 # Warning - without using the other runtime loading flags (-brtl),
10804 # -berok will link without error, but may produce a broken library.
10805 allow_undefined_flag='-berok'
10806 # Determine the default libpath from the value encoded in an
10807 # empty executable.
10808 if test "${lt_cv_aix_libpath+set}" = set; then
10809 aix_libpath=$lt_cv_aix_libpath
10810 else
10811 if ${lt_cv_aix_libpath_+:} false; then :
10812 $as_echo_n "(cached) " >&6
10813 else
10814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h. */
10816  
10817 int
10818 main ()
10819 {
10820  
10821 ;
10822 return 0;
10823 }
10824 _ACEOF
10825 if ac_fn_c_try_link "$LINENO"; then :
10826  
10827 lt_aix_libpath_sed='
10828 /Import File Strings/,/^$/ {
10829 /^0/ {
10830 s/^0 *\([^ ]*\) *$/\1/
10831 p
10832 }
10833 }'
10834 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10835 # Check for a 64-bit object if we didn't find anything.
10836 if test -z "$lt_cv_aix_libpath_"; then
10837 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10838 fi
10839 fi
10840 rm -f core conftest.err conftest.$ac_objext \
10841 conftest$ac_exeext conftest.$ac_ext
10842 if test -z "$lt_cv_aix_libpath_"; then
10843 lt_cv_aix_libpath_="/usr/lib:/lib"
10844 fi
10845  
10846 fi
10847  
10848 aix_libpath=$lt_cv_aix_libpath_
10849 fi
10850  
10851 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10852 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10853 else
10854 if test "$host_cpu" = ia64; then
10855 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10856 allow_undefined_flag="-z nodefs"
10857 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"
10858 else
10859 # Determine the default libpath from the value encoded in an
10860 # empty executable.
10861 if test "${lt_cv_aix_libpath+set}" = set; then
10862 aix_libpath=$lt_cv_aix_libpath
10863 else
10864 if ${lt_cv_aix_libpath_+:} false; then :
10865 $as_echo_n "(cached) " >&6
10866 else
10867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868 /* end confdefs.h. */
10869  
10870 int
10871 main ()
10872 {
10873  
10874 ;
10875 return 0;
10876 }
10877 _ACEOF
10878 if ac_fn_c_try_link "$LINENO"; then :
10879  
10880 lt_aix_libpath_sed='
10881 /Import File Strings/,/^$/ {
10882 /^0/ {
10883 s/^0 *\([^ ]*\) *$/\1/
10884 p
10885 }
10886 }'
10887 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10888 # Check for a 64-bit object if we didn't find anything.
10889 if test -z "$lt_cv_aix_libpath_"; then
10890 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10891 fi
10892 fi
10893 rm -f core conftest.err conftest.$ac_objext \
10894 conftest$ac_exeext conftest.$ac_ext
10895 if test -z "$lt_cv_aix_libpath_"; then
10896 lt_cv_aix_libpath_="/usr/lib:/lib"
10897 fi
10898  
10899 fi
10900  
10901 aix_libpath=$lt_cv_aix_libpath_
10902 fi
10903  
10904 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10905 # Warning - without using the other run time loading flags,
10906 # -berok will link without error, but may produce a broken library.
10907 no_undefined_flag=' ${wl}-bernotok'
10908 allow_undefined_flag=' ${wl}-berok'
10909 if test "$with_gnu_ld" = yes; then
10910 # We only use this code for GNU lds that support --whole-archive.
10911 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10912 else
10913 # Exported symbols can be pulled into shared objects from archives
10914 whole_archive_flag_spec='$convenience'
10915 fi
10916 archive_cmds_need_lc=yes
10917 # This is similar to how AIX traditionally builds its shared libraries.
10918 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10919 fi
10920 fi
10921 ;;
10922  
10923 amigaos*)
10924 case $host_cpu in
10925 powerpc)
10926 # see comment about AmigaOS4 .so support
10927 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10928 archive_expsym_cmds=''
10929 ;;
10930 m68k)
10931 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)'
10932 hardcode_libdir_flag_spec='-L$libdir'
10933 hardcode_minus_L=yes
10934 ;;
10935 esac
10936 ;;
10937  
10938 bsdi[45]*)
10939 export_dynamic_flag_spec=-rdynamic
10940 ;;
10941  
10942 cygwin* | mingw* | pw32* | cegcc*)
10943 # When not using gcc, we currently assume that we are using
10944 # Microsoft Visual C++.
10945 # hardcode_libdir_flag_spec is actually meaningless, as there is
10946 # no search path for DLLs.
10947 case $cc_basename in
10948 cl*)
10949 # Native MSVC
10950 hardcode_libdir_flag_spec=' '
10951 allow_undefined_flag=unsupported
10952 always_export_symbols=yes
10953 file_list_spec='@'
10954 # Tell ltmain to make .lib files, not .a files.
10955 libext=lib
10956 # Tell ltmain to make .dll files, not .so files.
10957 shrext_cmds=".dll"
10958 # FIXME: Setting linknames here is a bad hack.
10959 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10960 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10961 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10962 else
10963 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10964 fi~
10965 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10966 linknames='
10967 # The linker will not automatically build a static lib if we build a DLL.
10968 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10969 enable_shared_with_static_runtimes=yes
10970 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10971 # Don't use ranlib
10972 old_postinstall_cmds='chmod 644 $oldlib'
10973 postlink_cmds='lt_outputfile="@OUTPUT@"~
10974 lt_tool_outputfile="@TOOL_OUTPUT@"~
10975 case $lt_outputfile in
10976 *.exe|*.EXE) ;;
10977 *)
10978 lt_outputfile="$lt_outputfile.exe"
10979 lt_tool_outputfile="$lt_tool_outputfile.exe"
10980 ;;
10981 esac~
10982 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10983 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10984 $RM "$lt_outputfile.manifest";
10985 fi'
10986 ;;
10987 *)
10988 # Assume MSVC wrapper
10989 hardcode_libdir_flag_spec=' '
10990 allow_undefined_flag=unsupported
10991 # Tell ltmain to make .lib files, not .a files.
10992 libext=lib
10993 # Tell ltmain to make .dll files, not .so files.
10994 shrext_cmds=".dll"
10995 # FIXME: Setting linknames here is a bad hack.
10996 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10997 # The linker will automatically build a .lib file if we build a DLL.
10998 old_archive_from_new_cmds='true'
10999 # FIXME: Should let the user specify the lib program.
11000 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11001 enable_shared_with_static_runtimes=yes
11002 ;;
11003 esac
11004 ;;
11005  
11006 darwin* | rhapsody*)
11007  
11008  
11009 archive_cmds_need_lc=no
11010 hardcode_direct=no
11011 hardcode_automatic=yes
11012 hardcode_shlibpath_var=unsupported
11013 if test "$lt_cv_ld_force_load" = "yes"; then
11014 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\"`'
11015 else
11016 whole_archive_flag_spec=''
11017 fi
11018 link_all_deplibs=yes
11019 allow_undefined_flag="$_lt_dar_allow_undefined"
11020 case $cc_basename in
11021 ifort*) _lt_dar_can_shared=yes ;;
11022 *) _lt_dar_can_shared=$GCC ;;
11023 esac
11024 if test "$_lt_dar_can_shared" = "yes"; then
11025 output_verbose_link_cmd=func_echo_all
11026 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11027 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11028 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}"
11029 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}"
11030  
11031 else
11032 ld_shlibs=no
11033 fi
11034  
11035 ;;
11036  
11037 dgux*)
11038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11039 hardcode_libdir_flag_spec='-L$libdir'
11040 hardcode_shlibpath_var=no
11041 ;;
11042  
11043 freebsd1*)
11044 ld_shlibs=no
11045 ;;
11046  
11047 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11048 # support. Future versions do this automatically, but an explicit c++rt0.o
11049 # does not break anything, and helps significantly (at the cost of a little
11050 # extra space).
11051 freebsd2.2*)
11052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11053 hardcode_libdir_flag_spec='-R$libdir'
11054 hardcode_direct=yes
11055 hardcode_shlibpath_var=no
11056 ;;
11057  
11058 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11059 freebsd2*)
11060 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11061 hardcode_direct=yes
11062 hardcode_minus_L=yes
11063 hardcode_shlibpath_var=no
11064 ;;
11065  
11066 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11067 freebsd* | dragonfly*)
11068 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11069 hardcode_libdir_flag_spec='-R$libdir'
11070 hardcode_direct=yes
11071 hardcode_shlibpath_var=no
11072 ;;
11073  
11074 hpux9*)
11075 if test "$GCC" = yes; then
11076 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11077 else
11078 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11079 fi
11080 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11081 hardcode_libdir_separator=:
11082 hardcode_direct=yes
11083  
11084 # hardcode_minus_L: Not really in the search PATH,
11085 # but as the default location of the library.
11086 hardcode_minus_L=yes
11087 export_dynamic_flag_spec='${wl}-E'
11088 ;;
11089  
11090 hpux10*)
11091 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11092 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11093 else
11094 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11095 fi
11096 if test "$with_gnu_ld" = no; then
11097 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11098 hardcode_libdir_flag_spec_ld='+b $libdir'
11099 hardcode_libdir_separator=:
11100 hardcode_direct=yes
11101 hardcode_direct_absolute=yes
11102 export_dynamic_flag_spec='${wl}-E'
11103 # hardcode_minus_L: Not really in the search PATH,
11104 # but as the default location of the library.
11105 hardcode_minus_L=yes
11106 fi
11107 ;;
11108  
11109 hpux11*)
11110 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11111 case $host_cpu in
11112 hppa*64*)
11113 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11114 ;;
11115 ia64*)
11116 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11117 ;;
11118 *)
11119 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11120 ;;
11121 esac
11122 else
11123 case $host_cpu in
11124 hppa*64*)
11125 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11126 ;;
11127 ia64*)
11128 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11129 ;;
11130 *)
11131  
11132 # Older versions of the 11.00 compiler do not understand -b yet
11133 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11135 $as_echo_n "checking if $CC understands -b... " >&6; }
11136 if ${lt_cv_prog_compiler__b+:} false; then :
11137 $as_echo_n "(cached) " >&6
11138 else
11139 lt_cv_prog_compiler__b=no
11140 save_LDFLAGS="$LDFLAGS"
11141 LDFLAGS="$LDFLAGS -b"
11142 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11143 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11144 # The linker can only warn and ignore the option if not recognized
11145 # So say no if there are warnings
11146 if test -s conftest.err; then
11147 # Append any errors to the config.log.
11148 cat conftest.err 1>&5
11149 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11151 if diff conftest.exp conftest.er2 >/dev/null; then
11152 lt_cv_prog_compiler__b=yes
11153 fi
11154 else
11155 lt_cv_prog_compiler__b=yes
11156 fi
11157 fi
11158 $RM -r conftest*
11159 LDFLAGS="$save_LDFLAGS"
11160  
11161 fi
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11163 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11164  
11165 if test x"$lt_cv_prog_compiler__b" = xyes; then
11166 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11167 else
11168 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11169 fi
11170  
11171 ;;
11172 esac
11173 fi
11174 if test "$with_gnu_ld" = no; then
11175 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11176 hardcode_libdir_separator=:
11177  
11178 case $host_cpu in
11179 hppa*64*|ia64*)
11180 hardcode_direct=no
11181 hardcode_shlibpath_var=no
11182 ;;
11183 *)
11184 hardcode_direct=yes
11185 hardcode_direct_absolute=yes
11186 export_dynamic_flag_spec='${wl}-E'
11187  
11188 # hardcode_minus_L: Not really in the search PATH,
11189 # but as the default location of the library.
11190 hardcode_minus_L=yes
11191 ;;
11192 esac
11193 fi
11194 ;;
11195  
11196 irix5* | irix6* | nonstopux*)
11197 if test "$GCC" = yes; then
11198 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'
11199 # Try to use the -exported_symbol ld option, if it does not
11200 # work, assume that -exports_file does not work either and
11201 # implicitly export all symbols.
11202 # This should be the same for all languages, so no per-tag cache variable.
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11204 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11205 if ${lt_cv_irix_exported_symbol+:} false; then :
11206 $as_echo_n "(cached) " >&6
11207 else
11208 save_LDFLAGS="$LDFLAGS"
11209 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11211 /* end confdefs.h. */
11212 int foo (void) { return 0; }
11213 _ACEOF
11214 if ac_fn_c_try_link "$LINENO"; then :
11215 lt_cv_irix_exported_symbol=yes
11216 else
11217 lt_cv_irix_exported_symbol=no
11218 fi
11219 rm -f core conftest.err conftest.$ac_objext \
11220 conftest$ac_exeext conftest.$ac_ext
11221 LDFLAGS="$save_LDFLAGS"
11222 fi
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11224 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11225 if test "$lt_cv_irix_exported_symbol" = yes; then
11226 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'
11227 fi
11228 else
11229 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'
11230 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'
11231 fi
11232 archive_cmds_need_lc='no'
11233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11234 hardcode_libdir_separator=:
11235 inherit_rpath=yes
11236 link_all_deplibs=yes
11237 ;;
11238  
11239 netbsd*)
11240 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11241 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11242 else
11243 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11244 fi
11245 hardcode_libdir_flag_spec='-R$libdir'
11246 hardcode_direct=yes
11247 hardcode_shlibpath_var=no
11248 ;;
11249  
11250 newsos6)
11251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11252 hardcode_direct=yes
11253 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11254 hardcode_libdir_separator=:
11255 hardcode_shlibpath_var=no
11256 ;;
11257  
11258 *nto* | *qnx*)
11259 ;;
11260  
11261 openbsd*)
11262 if test -f /usr/libexec/ld.so; then
11263 hardcode_direct=yes
11264 hardcode_shlibpath_var=no
11265 hardcode_direct_absolute=yes
11266 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11268 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11269 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11270 export_dynamic_flag_spec='${wl}-E'
11271 else
11272 case $host_os in
11273 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11275 hardcode_libdir_flag_spec='-R$libdir'
11276 ;;
11277 *)
11278 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11279 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11280 ;;
11281 esac
11282 fi
11283 else
11284 ld_shlibs=no
11285 fi
11286 ;;
11287  
11288 os2*)
11289 hardcode_libdir_flag_spec='-L$libdir'
11290 hardcode_minus_L=yes
11291 allow_undefined_flag=unsupported
11292 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11293 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11294 ;;
11295  
11296 osf3*)
11297 if test "$GCC" = yes; then
11298 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11299 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'
11300 else
11301 allow_undefined_flag=' -expect_unresolved \*'
11302 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'
11303 fi
11304 archive_cmds_need_lc='no'
11305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11306 hardcode_libdir_separator=:
11307 ;;
11308  
11309 osf4* | osf5*) # as osf3* with the addition of -msym flag
11310 if test "$GCC" = yes; then
11311 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11312 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'
11313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11314 else
11315 allow_undefined_flag=' -expect_unresolved \*'
11316 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'
11317 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~
11318 $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'
11319  
11320 # Both c and cxx compiler support -rpath directly
11321 hardcode_libdir_flag_spec='-rpath $libdir'
11322 fi
11323 archive_cmds_need_lc='no'
11324 hardcode_libdir_separator=:
11325 ;;
11326  
11327 solaris*)
11328 no_undefined_flag=' -z defs'
11329 if test "$GCC" = yes; then
11330 wlarc='${wl}'
11331 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11332 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11333 $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'
11334 else
11335 case `$CC -V 2>&1` in
11336 *"Compilers 5.0"*)
11337 wlarc=''
11338 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11339 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11340 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11341 ;;
11342 *)
11343 wlarc='${wl}'
11344 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11345 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11346 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11347 ;;
11348 esac
11349 fi
11350 hardcode_libdir_flag_spec='-R$libdir'
11351 hardcode_shlibpath_var=no
11352 case $host_os in
11353 solaris2.[0-5] | solaris2.[0-5].*) ;;
11354 *)
11355 # The compiler driver will combine and reorder linker options,
11356 # but understands `-z linker_flag'. GCC discards it without `$wl',
11357 # but is careful enough not to reorder.
11358 # Supported since Solaris 2.6 (maybe 2.5.1?)
11359 if test "$GCC" = yes; then
11360 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11361 else
11362 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11363 fi
11364 ;;
11365 esac
11366 link_all_deplibs=yes
11367 ;;
11368  
11369 sunos4*)
11370 if test "x$host_vendor" = xsequent; then
11371 # Use $CC to link under sequent, because it throws in some extra .o
11372 # files that make .init and .fini sections work.
11373 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11374 else
11375 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11376 fi
11377 hardcode_libdir_flag_spec='-L$libdir'
11378 hardcode_direct=yes
11379 hardcode_minus_L=yes
11380 hardcode_shlibpath_var=no
11381 ;;
11382  
11383 sysv4)
11384 case $host_vendor in
11385 sni)
11386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11387 hardcode_direct=yes # is this really true???
11388 ;;
11389 siemens)
11390 ## LD is ld it makes a PLAMLIB
11391 ## CC just makes a GrossModule.
11392 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11393 reload_cmds='$CC -r -o $output$reload_objs'
11394 hardcode_direct=no
11395 ;;
11396 motorola)
11397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11398 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11399 ;;
11400 esac
11401 runpath_var='LD_RUN_PATH'
11402 hardcode_shlibpath_var=no
11403 ;;
11404  
11405 sysv4.3*)
11406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11407 hardcode_shlibpath_var=no
11408 export_dynamic_flag_spec='-Bexport'
11409 ;;
11410  
11411 sysv4*MP*)
11412 if test -d /usr/nec; then
11413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11414 hardcode_shlibpath_var=no
11415 runpath_var=LD_RUN_PATH
11416 hardcode_runpath_var=yes
11417 ld_shlibs=yes
11418 fi
11419 ;;
11420  
11421 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11422 no_undefined_flag='${wl}-z,text'
11423 archive_cmds_need_lc=no
11424 hardcode_shlibpath_var=no
11425 runpath_var='LD_RUN_PATH'
11426  
11427 if test "$GCC" = yes; then
11428 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11429 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11430 else
11431 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11432 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11433 fi
11434 ;;
11435  
11436 sysv5* | sco3.2v5* | sco5v6*)
11437 # Note: We can NOT use -z defs as we might desire, because we do not
11438 # link with -lc, and that would cause any symbols used from libc to
11439 # always be unresolved, which means just about no library would
11440 # ever link correctly. If we're not using GNU ld we use -z text
11441 # though, which does catch some bad symbols but isn't as heavy-handed
11442 # as -z defs.
11443 no_undefined_flag='${wl}-z,text'
11444 allow_undefined_flag='${wl}-z,nodefs'
11445 archive_cmds_need_lc=no
11446 hardcode_shlibpath_var=no
11447 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11448 hardcode_libdir_separator=':'
11449 link_all_deplibs=yes
11450 export_dynamic_flag_spec='${wl}-Bexport'
11451 runpath_var='LD_RUN_PATH'
11452  
11453 if test "$GCC" = yes; then
11454 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11455 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11456 else
11457 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11458 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11459 fi
11460 ;;
11461  
11462 uts4*)
11463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11464 hardcode_libdir_flag_spec='-L$libdir'
11465 hardcode_shlibpath_var=no
11466 ;;
11467  
11468 *)
11469 ld_shlibs=no
11470 ;;
11471 esac
11472  
11473 if test x$host_vendor = xsni; then
11474 case $host in
11475 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11476 export_dynamic_flag_spec='${wl}-Blargedynsym'
11477 ;;
11478 esac
11479 fi
11480 fi
11481  
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11483 $as_echo "$ld_shlibs" >&6; }
11484 test "$ld_shlibs" = no && can_build_shared=no
11485  
11486 with_gnu_ld=$with_gnu_ld
11487  
11488  
11489  
11490  
11491  
11492  
11493  
11494  
11495  
11496  
11497  
11498  
11499  
11500  
11501  
11502 #
11503 # Do we need to explicitly link libc?
11504 #
11505 case "x$archive_cmds_need_lc" in
11506 x|xyes)
11507 # Assume -lc should be added
11508 archive_cmds_need_lc=yes
11509  
11510 if test "$enable_shared" = yes && test "$GCC" = yes; then
11511 case $archive_cmds in
11512 *'~'*)
11513 # FIXME: we may have to deal with multi-command sequences.
11514 ;;
11515 '$CC '*)
11516 # Test whether the compiler implicitly links with -lc since on some
11517 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11518 # to ld, don't add -lc before -lgcc.
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11520 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11521 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11522 $as_echo_n "(cached) " >&6
11523 else
11524 $RM conftest*
11525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11526  
11527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11528 (eval $ac_compile) 2>&5
11529 ac_status=$?
11530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11531 test $ac_status = 0; } 2>conftest.err; then
11532 soname=conftest
11533 lib=conftest
11534 libobjs=conftest.$ac_objext
11535 deplibs=
11536 wl=$lt_prog_compiler_wl
11537 pic_flag=$lt_prog_compiler_pic
11538 compiler_flags=-v
11539 linker_flags=-v
11540 verstring=
11541 output_objdir=.
11542 libname=conftest
11543 lt_save_allow_undefined_flag=$allow_undefined_flag
11544 allow_undefined_flag=
11545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11546 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11547 ac_status=$?
11548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11549 test $ac_status = 0; }
11550 then
11551 lt_cv_archive_cmds_need_lc=no
11552 else
11553 lt_cv_archive_cmds_need_lc=yes
11554 fi
11555 allow_undefined_flag=$lt_save_allow_undefined_flag
11556 else
11557 cat conftest.err 1>&5
11558 fi
11559 $RM conftest*
11560  
11561 fi
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11563 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11564 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11565 ;;
11566 esac
11567 fi
11568 ;;
11569 esac
11570  
11571  
11572  
11573  
11574  
11575  
11576  
11577  
11578  
11579  
11580  
11581  
11582  
11583  
11584  
11585  
11586  
11587  
11588  
11589  
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  
11688  
11689  
11690  
11691  
11692  
11693  
11694  
11695  
11696  
11697  
11698  
11699  
11700  
11701  
11702  
11703  
11704  
11705  
11706  
11707  
11708  
11709  
11710  
11711  
11712  
11713  
11714  
11715  
11716  
11717  
11718  
11719  
11720  
11721  
11722  
11723  
11724  
11725  
11726  
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11728 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11729  
11730 if test "$GCC" = yes; then
11731 case $host_os in
11732 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11733 *) lt_awk_arg="/^libraries:/" ;;
11734 esac
11735 case $host_os in
11736 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11737 *) lt_sed_strip_eq="s,=/,/,g" ;;
11738 esac
11739 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11740 case $lt_search_path_spec in
11741 *\;*)
11742 # if the path contains ";" then we assume it to be the separator
11743 # otherwise default to the standard path separator (i.e. ":") - it is
11744 # assumed that no part of a normal pathname contains ";" but that should
11745 # okay in the real world where ";" in dirpaths is itself problematic.
11746 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11747 ;;
11748 *)
11749 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11750 ;;
11751 esac
11752 # Ok, now we have the path, separated by spaces, we can step through it
11753 # and add multilib dir if necessary.
11754 lt_tmp_lt_search_path_spec=
11755 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11756 for lt_sys_path in $lt_search_path_spec; do
11757 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11758 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11759 else
11760 test -d "$lt_sys_path" && \
11761 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11762 fi
11763 done
11764 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11765 BEGIN {RS=" "; FS="/|\n";} {
11766 lt_foo="";
11767 lt_count=0;
11768 for (lt_i = NF; lt_i > 0; lt_i--) {
11769 if ($lt_i != "" && $lt_i != ".") {
11770 if ($lt_i == "..") {
11771 lt_count++;
11772 } else {
11773 if (lt_count == 0) {
11774 lt_foo="/" $lt_i lt_foo;
11775 } else {
11776 lt_count--;
11777 }
11778 }
11779 }
11780 }
11781 if (lt_foo != "") { lt_freq[lt_foo]++; }
11782 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11783 }'`
11784 # AWK program above erroneously prepends '/' to C:/dos/paths
11785 # for these hosts.
11786 case $host_os in
11787 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11788 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11789 esac
11790 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11791 else
11792 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11793 fi
11794 library_names_spec=
11795 libname_spec='lib$name'
11796 soname_spec=
11797 shrext_cmds=".so"
11798 postinstall_cmds=
11799 postuninstall_cmds=
11800 finish_cmds=
11801 finish_eval=
11802 shlibpath_var=
11803 shlibpath_overrides_runpath=unknown
11804 version_type=none
11805 dynamic_linker="$host_os ld.so"
11806 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11807 need_lib_prefix=unknown
11808 hardcode_into_libs=no
11809  
11810 # when you set need_version to no, make sure it does not cause -set_version
11811 # flags to be left without arguments
11812 need_version=unknown
11813  
11814 case $host_os in
11815 aix3*)
11816 version_type=linux
11817 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11818 shlibpath_var=LIBPATH
11819  
11820 # AIX 3 has no versioning support, so we append a major version to the name.
11821 soname_spec='${libname}${release}${shared_ext}$major'
11822 ;;
11823  
11824 aix[4-9]*)
11825 version_type=linux
11826 need_lib_prefix=no
11827 need_version=no
11828 hardcode_into_libs=yes
11829 if test "$host_cpu" = ia64; then
11830 # AIX 5 supports IA64
11831 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11832 shlibpath_var=LD_LIBRARY_PATH
11833 else
11834 # With GCC up to 2.95.x, collect2 would create an import file
11835 # for dependence libraries. The import file would start with
11836 # the line `#! .'. This would cause the generated library to
11837 # depend on `.', always an invalid library. This was fixed in
11838 # development snapshots of GCC prior to 3.0.
11839 case $host_os in
11840 aix4 | aix4.[01] | aix4.[01].*)
11841 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11842 echo ' yes '
11843 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11844 :
11845 else
11846 can_build_shared=no
11847 fi
11848 ;;
11849 esac
11850 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11851 # soname into executable. Probably we can add versioning support to
11852 # collect2, so additional links can be useful in future.
11853 if test "$aix_use_runtimelinking" = yes; then
11854 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11855 # instead of lib<name>.a to let people know that these are not
11856 # typical AIX shared libraries.
11857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11858 else
11859 # We preserve .a as extension for shared libraries through AIX4.2
11860 # and later when we are not doing run time linking.
11861 library_names_spec='${libname}${release}.a $libname.a'
11862 soname_spec='${libname}${release}${shared_ext}$major'
11863 fi
11864 shlibpath_var=LIBPATH
11865 fi
11866 ;;
11867  
11868 amigaos*)
11869 case $host_cpu in
11870 powerpc)
11871 # Since July 2007 AmigaOS4 officially supports .so libraries.
11872 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11874 ;;
11875 m68k)
11876 library_names_spec='$libname.ixlibrary $libname.a'
11877 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11878 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11879 ;;
11880 esac
11881 ;;
11882  
11883 beos*)
11884 library_names_spec='${libname}${shared_ext}'
11885 dynamic_linker="$host_os ld.so"
11886 shlibpath_var=LIBRARY_PATH
11887 ;;
11888  
11889 bsdi[45]*)
11890 version_type=linux
11891 need_version=no
11892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11893 soname_spec='${libname}${release}${shared_ext}$major'
11894 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11895 shlibpath_var=LD_LIBRARY_PATH
11896 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11897 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11898 # the default ld.so.conf also contains /usr/contrib/lib and
11899 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11900 # libtool to hard-code these into programs
11901 ;;
11902  
11903 cygwin* | mingw* | pw32* | cegcc*)
11904 version_type=windows
11905 shrext_cmds=".dll"
11906 need_version=no
11907 need_lib_prefix=no
11908  
11909 case $GCC,$cc_basename in
11910 yes,*)
11911 # gcc
11912 library_names_spec='$libname.dll.a'
11913 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11914 postinstall_cmds='base_file=`basename \${file}`~
11915 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11916 dldir=$destdir/`dirname \$dlpath`~
11917 test -d \$dldir || mkdir -p \$dldir~
11918 $install_prog $dir/$dlname \$dldir/$dlname~
11919 chmod a+x \$dldir/$dlname~
11920 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11921 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11922 fi'
11923 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11924 dlpath=$dir/\$dldll~
11925 $RM \$dlpath'
11926 shlibpath_overrides_runpath=yes
11927  
11928 case $host_os in
11929 cygwin*)
11930 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11931 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11932  
11933 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11934 ;;
11935 mingw* | cegcc*)
11936 # MinGW DLLs use traditional 'lib' prefix
11937 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11938 ;;
11939 pw32*)
11940 # pw32 DLLs use 'pw' prefix rather than 'lib'
11941 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11942 ;;
11943 esac
11944 dynamic_linker='Win32 ld.exe'
11945 ;;
11946  
11947 *,cl*)
11948 # Native MSVC
11949 libname_spec='$name'
11950 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11951 library_names_spec='${libname}.dll.lib'
11952  
11953 case $build_os in
11954 mingw*)
11955 sys_lib_search_path_spec=
11956 lt_save_ifs=$IFS
11957 IFS=';'
11958 for lt_path in $LIB
11959 do
11960 IFS=$lt_save_ifs
11961 # Let DOS variable expansion print the short 8.3 style file name.
11962 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11963 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11964 done
11965 IFS=$lt_save_ifs
11966 # Convert to MSYS style.
11967 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11968 ;;
11969 cygwin*)
11970 # Convert to unix form, then to dos form, then back to unix form
11971 # but this time dos style (no spaces!) so that the unix form looks
11972 # like /cygdrive/c/PROGRA~1:/cygdr...
11973 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11974 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11975 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11976 ;;
11977 *)
11978 sys_lib_search_path_spec="$LIB"
11979 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11980 # It is most probably a Windows format PATH.
11981 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11982 else
11983 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11984 fi
11985 # FIXME: find the short name or the path components, as spaces are
11986 # common. (e.g. "Program Files" -> "PROGRA~1")
11987 ;;
11988 esac
11989  
11990 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11991 postinstall_cmds='base_file=`basename \${file}`~
11992 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11993 dldir=$destdir/`dirname \$dlpath`~
11994 test -d \$dldir || mkdir -p \$dldir~
11995 $install_prog $dir/$dlname \$dldir/$dlname'
11996 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11997 dlpath=$dir/\$dldll~
11998 $RM \$dlpath'
11999 shlibpath_overrides_runpath=yes
12000 dynamic_linker='Win32 link.exe'
12001 ;;
12002  
12003 *)
12004 # Assume MSVC wrapper
12005 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12006 dynamic_linker='Win32 ld.exe'
12007 ;;
12008 esac
12009 # FIXME: first we should search . and the directory the executable is in
12010 shlibpath_var=PATH
12011 ;;
12012  
12013 darwin* | rhapsody*)
12014 dynamic_linker="$host_os dyld"
12015 version_type=darwin
12016 need_lib_prefix=no
12017 need_version=no
12018 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12019 soname_spec='${libname}${release}${major}$shared_ext'
12020 shlibpath_overrides_runpath=yes
12021 shlibpath_var=DYLD_LIBRARY_PATH
12022 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12023  
12024 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12025 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12026 ;;
12027  
12028 dgux*)
12029 version_type=linux
12030 need_lib_prefix=no
12031 need_version=no
12032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12033 soname_spec='${libname}${release}${shared_ext}$major'
12034 shlibpath_var=LD_LIBRARY_PATH
12035 ;;
12036  
12037 freebsd1*)
12038 dynamic_linker=no
12039 ;;
12040  
12041 freebsd* | dragonfly*)
12042 # DragonFly does not have aout. When/if they implement a new
12043 # versioning mechanism, adjust this.
12044 if test -x /usr/bin/objformat; then
12045 objformat=`/usr/bin/objformat`
12046 else
12047 case $host_os in
12048 freebsd[123]*) objformat=aout ;;
12049 *) objformat=elf ;;
12050 esac
12051 fi
12052 version_type=freebsd-$objformat
12053 case $version_type in
12054 freebsd-elf*)
12055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12056 need_version=no
12057 need_lib_prefix=no
12058 ;;
12059 freebsd-*)
12060 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12061 need_version=yes
12062 ;;
12063 esac
12064 shlibpath_var=LD_LIBRARY_PATH
12065 case $host_os in
12066 freebsd2*)
12067 shlibpath_overrides_runpath=yes
12068 ;;
12069 freebsd3.[01]* | freebsdelf3.[01]*)
12070 shlibpath_overrides_runpath=yes
12071 hardcode_into_libs=yes
12072 ;;
12073 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12074 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12075 shlibpath_overrides_runpath=no
12076 hardcode_into_libs=yes
12077 ;;
12078 *) # from 4.6 on, and DragonFly
12079 shlibpath_overrides_runpath=yes
12080 hardcode_into_libs=yes
12081 ;;
12082 esac
12083 ;;
12084  
12085 gnu*)
12086 version_type=linux
12087 need_lib_prefix=no
12088 need_version=no
12089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12090 soname_spec='${libname}${release}${shared_ext}$major'
12091 shlibpath_var=LD_LIBRARY_PATH
12092 hardcode_into_libs=yes
12093 ;;
12094  
12095 haiku*)
12096 version_type=linux
12097 need_lib_prefix=no
12098 need_version=no
12099 dynamic_linker="$host_os runtime_loader"
12100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12101 soname_spec='${libname}${release}${shared_ext}$major'
12102 shlibpath_var=LIBRARY_PATH
12103 shlibpath_overrides_runpath=yes
12104 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12105 hardcode_into_libs=yes
12106 ;;
12107  
12108 hpux9* | hpux10* | hpux11*)
12109 # Give a soname corresponding to the major version so that dld.sl refuses to
12110 # link against other versions.
12111 version_type=sunos
12112 need_lib_prefix=no
12113 need_version=no
12114 case $host_cpu in
12115 ia64*)
12116 shrext_cmds='.so'
12117 hardcode_into_libs=yes
12118 dynamic_linker="$host_os dld.so"
12119 shlibpath_var=LD_LIBRARY_PATH
12120 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12122 soname_spec='${libname}${release}${shared_ext}$major'
12123 if test "X$HPUX_IA64_MODE" = X32; then
12124 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12125 else
12126 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12127 fi
12128 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12129 ;;
12130 hppa*64*)
12131 shrext_cmds='.sl'
12132 hardcode_into_libs=yes
12133 dynamic_linker="$host_os dld.sl"
12134 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12135 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12137 soname_spec='${libname}${release}${shared_ext}$major'
12138 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12140 ;;
12141 *)
12142 shrext_cmds='.sl'
12143 dynamic_linker="$host_os dld.sl"
12144 shlibpath_var=SHLIB_PATH
12145 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12147 soname_spec='${libname}${release}${shared_ext}$major'
12148 ;;
12149 esac
12150 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12151 postinstall_cmds='chmod 555 $lib'
12152 # or fails outright, so override atomically:
12153 install_override_mode=555
12154 ;;
12155  
12156 interix[3-9]*)
12157 version_type=linux
12158 need_lib_prefix=no
12159 need_version=no
12160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12161 soname_spec='${libname}${release}${shared_ext}$major'
12162 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12163 shlibpath_var=LD_LIBRARY_PATH
12164 shlibpath_overrides_runpath=no
12165 hardcode_into_libs=yes
12166 ;;
12167  
12168 irix5* | irix6* | nonstopux*)
12169 case $host_os in
12170 nonstopux*) version_type=nonstopux ;;
12171 *)
12172 if test "$lt_cv_prog_gnu_ld" = yes; then
12173 version_type=linux
12174 else
12175 version_type=irix
12176 fi ;;
12177 esac
12178 need_lib_prefix=no
12179 need_version=no
12180 soname_spec='${libname}${release}${shared_ext}$major'
12181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12182 case $host_os in
12183 irix5* | nonstopux*)
12184 libsuff= shlibsuff=
12185 ;;
12186 *)
12187 case $LD in # libtool.m4 will add one of these switches to LD
12188 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12189 libsuff= shlibsuff= libmagic=32-bit;;
12190 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12191 libsuff=32 shlibsuff=N32 libmagic=N32;;
12192 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12193 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12194 *) libsuff= shlibsuff= libmagic=never-match;;
12195 esac
12196 ;;
12197 esac
12198 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12199 shlibpath_overrides_runpath=no
12200 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12201 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12202 hardcode_into_libs=yes
12203 ;;
12204  
12205 # No shared lib support for Linux oldld, aout, or coff.
12206 linux*oldld* | linux*aout* | linux*coff*)
12207 dynamic_linker=no
12208 ;;
12209  
12210 # This must be Linux ELF.
12211 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12212 version_type=linux
12213 need_lib_prefix=no
12214 need_version=no
12215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12216 soname_spec='${libname}${release}${shared_ext}$major'
12217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12218 shlibpath_var=LD_LIBRARY_PATH
12219 shlibpath_overrides_runpath=no
12220  
12221 # Some binutils ld are patched to set DT_RUNPATH
12222 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12223 $as_echo_n "(cached) " >&6
12224 else
12225 lt_cv_shlibpath_overrides_runpath=no
12226 save_LDFLAGS=$LDFLAGS
12227 save_libdir=$libdir
12228 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12229 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h. */
12232  
12233 int
12234 main ()
12235 {
12236  
12237 ;
12238 return 0;
12239 }
12240 _ACEOF
12241 if ac_fn_c_try_link "$LINENO"; then :
12242 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12243 lt_cv_shlibpath_overrides_runpath=yes
12244 fi
12245 fi
12246 rm -f core conftest.err conftest.$ac_objext \
12247 conftest$ac_exeext conftest.$ac_ext
12248 LDFLAGS=$save_LDFLAGS
12249 libdir=$save_libdir
12250  
12251 fi
12252  
12253 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12254  
12255 # This implies no fast_install, which is unacceptable.
12256 # Some rework will be needed to allow for fast_install
12257 # before this can be enabled.
12258 hardcode_into_libs=yes
12259  
12260 # Append ld.so.conf contents to the search path
12261 if test -f /etc/ld.so.conf; then
12262 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' ' '`
12263 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12264 fi
12265  
12266 # We used to test for /lib/ld.so.1 and disable shared libraries on
12267 # powerpc, because MkLinux only supported shared libraries with the
12268 # GNU dynamic linker. Since this was broken with cross compilers,
12269 # most powerpc-linux boxes support dynamic linking these days and
12270 # people can always --disable-shared, the test was removed, and we
12271 # assume the GNU/Linux dynamic linker is in use.
12272 dynamic_linker='GNU/Linux ld.so'
12273 ;;
12274  
12275 netbsd*)
12276 version_type=sunos
12277 need_lib_prefix=no
12278 need_version=no
12279 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12281 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12282 dynamic_linker='NetBSD (a.out) ld.so'
12283 else
12284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12285 soname_spec='${libname}${release}${shared_ext}$major'
12286 dynamic_linker='NetBSD ld.elf_so'
12287 fi
12288 shlibpath_var=LD_LIBRARY_PATH
12289 shlibpath_overrides_runpath=yes
12290 hardcode_into_libs=yes
12291 ;;
12292  
12293 newsos6)
12294 version_type=linux
12295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12296 shlibpath_var=LD_LIBRARY_PATH
12297 shlibpath_overrides_runpath=yes
12298 ;;
12299  
12300 *nto* | *qnx*)
12301 version_type=qnx
12302 need_lib_prefix=no
12303 need_version=no
12304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12305 soname_spec='${libname}${release}${shared_ext}$major'
12306 shlibpath_var=LD_LIBRARY_PATH
12307 shlibpath_overrides_runpath=no
12308 hardcode_into_libs=yes
12309 dynamic_linker='ldqnx.so'
12310 ;;
12311  
12312 openbsd*)
12313 version_type=sunos
12314 sys_lib_dlsearch_path_spec="/usr/lib"
12315 need_lib_prefix=no
12316 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12317 case $host_os in
12318 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12319 *) need_version=no ;;
12320 esac
12321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12323 shlibpath_var=LD_LIBRARY_PATH
12324 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12325 case $host_os in
12326 openbsd2.[89] | openbsd2.[89].*)
12327 shlibpath_overrides_runpath=no
12328 ;;
12329 *)
12330 shlibpath_overrides_runpath=yes
12331 ;;
12332 esac
12333 else
12334 shlibpath_overrides_runpath=yes
12335 fi
12336 ;;
12337  
12338 os2*)
12339 libname_spec='$name'
12340 shrext_cmds=".dll"
12341 need_lib_prefix=no
12342 library_names_spec='$libname${shared_ext} $libname.a'
12343 dynamic_linker='OS/2 ld.exe'
12344 shlibpath_var=LIBPATH
12345 ;;
12346  
12347 osf3* | osf4* | osf5*)
12348 version_type=osf
12349 need_lib_prefix=no
12350 need_version=no
12351 soname_spec='${libname}${release}${shared_ext}$major'
12352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12353 shlibpath_var=LD_LIBRARY_PATH
12354 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12355 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12356 ;;
12357  
12358 rdos*)
12359 dynamic_linker=no
12360 ;;
12361  
12362 solaris*)
12363 version_type=linux
12364 need_lib_prefix=no
12365 need_version=no
12366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12367 soname_spec='${libname}${release}${shared_ext}$major'
12368 shlibpath_var=LD_LIBRARY_PATH
12369 shlibpath_overrides_runpath=yes
12370 hardcode_into_libs=yes
12371 # ldd complains unless libraries are executable
12372 postinstall_cmds='chmod +x $lib'
12373 ;;
12374  
12375 sunos4*)
12376 version_type=sunos
12377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12378 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12379 shlibpath_var=LD_LIBRARY_PATH
12380 shlibpath_overrides_runpath=yes
12381 if test "$with_gnu_ld" = yes; then
12382 need_lib_prefix=no
12383 fi
12384 need_version=yes
12385 ;;
12386  
12387 sysv4 | sysv4.3*)
12388 version_type=linux
12389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12390 soname_spec='${libname}${release}${shared_ext}$major'
12391 shlibpath_var=LD_LIBRARY_PATH
12392 case $host_vendor in
12393 sni)
12394 shlibpath_overrides_runpath=no
12395 need_lib_prefix=no
12396 runpath_var=LD_RUN_PATH
12397 ;;
12398 siemens)
12399 need_lib_prefix=no
12400 ;;
12401 motorola)
12402 need_lib_prefix=no
12403 need_version=no
12404 shlibpath_overrides_runpath=no
12405 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12406 ;;
12407 esac
12408 ;;
12409  
12410 sysv4*MP*)
12411 if test -d /usr/nec ;then
12412 version_type=linux
12413 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12414 soname_spec='$libname${shared_ext}.$major'
12415 shlibpath_var=LD_LIBRARY_PATH
12416 fi
12417 ;;
12418  
12419 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12420 version_type=freebsd-elf
12421 need_lib_prefix=no
12422 need_version=no
12423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12424 soname_spec='${libname}${release}${shared_ext}$major'
12425 shlibpath_var=LD_LIBRARY_PATH
12426 shlibpath_overrides_runpath=yes
12427 hardcode_into_libs=yes
12428 if test "$with_gnu_ld" = yes; then
12429 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12430 else
12431 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12432 case $host_os in
12433 sco3.2v5*)
12434 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12435 ;;
12436 esac
12437 fi
12438 sys_lib_dlsearch_path_spec='/usr/lib'
12439 ;;
12440  
12441 tpf*)
12442 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12443 version_type=linux
12444 need_lib_prefix=no
12445 need_version=no
12446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12447 shlibpath_var=LD_LIBRARY_PATH
12448 shlibpath_overrides_runpath=no
12449 hardcode_into_libs=yes
12450 ;;
12451  
12452 uts4*)
12453 version_type=linux
12454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12455 soname_spec='${libname}${release}${shared_ext}$major'
12456 shlibpath_var=LD_LIBRARY_PATH
12457 ;;
12458  
12459 *)
12460 dynamic_linker=no
12461 ;;
12462 esac
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12464 $as_echo "$dynamic_linker" >&6; }
12465 test "$dynamic_linker" = no && can_build_shared=no
12466  
12467 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12468 if test "$GCC" = yes; then
12469 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12470 fi
12471  
12472 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12473 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12474 fi
12475 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12476 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12477 fi
12478  
12479  
12480  
12481  
12482  
12483  
12484  
12485  
12486  
12487  
12488  
12489  
12490  
12491  
12492  
12493  
12494  
12495  
12496  
12497  
12498  
12499  
12500  
12501  
12502  
12503  
12504  
12505  
12506  
12507  
12508  
12509  
12510  
12511  
12512  
12513  
12514  
12515  
12516  
12517  
12518  
12519  
12520  
12521  
12522  
12523  
12524  
12525  
12526  
12527  
12528  
12529  
12530  
12531  
12532  
12533  
12534  
12535  
12536  
12537  
12538  
12539  
12540  
12541  
12542  
12543  
12544  
12545  
12546  
12547  
12548  
12549  
12550  
12551  
12552  
12553  
12554  
12555  
12556  
12557  
12558  
12559  
12560  
12561  
12562  
12563  
12564  
12565  
12566  
12567  
12568  
12569  
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12571 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12572 hardcode_action=
12573 if test -n "$hardcode_libdir_flag_spec" ||
12574 test -n "$runpath_var" ||
12575 test "X$hardcode_automatic" = "Xyes" ; then
12576  
12577 # We can hardcode non-existent directories.
12578 if test "$hardcode_direct" != no &&
12579 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12580 # have to relink, otherwise we might link with an installed library
12581 # when we should be linking with a yet-to-be-installed one
12582 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12583 test "$hardcode_minus_L" != no; then
12584 # Linking always hardcodes the temporary library directory.
12585 hardcode_action=relink
12586 else
12587 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12588 hardcode_action=immediate
12589 fi
12590 else
12591 # We cannot hardcode anything, or else we can only hardcode existing
12592 # directories.
12593 hardcode_action=unsupported
12594 fi
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12596 $as_echo "$hardcode_action" >&6; }
12597  
12598 if test "$hardcode_action" = relink ||
12599 test "$inherit_rpath" = yes; then
12600 # Fast installation is not supported
12601 enable_fast_install=no
12602 elif test "$shlibpath_overrides_runpath" = yes ||
12603 test "$enable_shared" = no; then
12604 # Fast installation is not necessary
12605 enable_fast_install=needless
12606 fi
12607  
12608  
12609  
12610  
12611  
12612  
12613 if test "x$enable_dlopen" != xyes; then
12614 enable_dlopen=unknown
12615 enable_dlopen_self=unknown
12616 enable_dlopen_self_static=unknown
12617 else
12618 lt_cv_dlopen=no
12619 lt_cv_dlopen_libs=
12620  
12621 case $host_os in
12622 beos*)
12623 lt_cv_dlopen="load_add_on"
12624 lt_cv_dlopen_libs=
12625 lt_cv_dlopen_self=yes
12626 ;;
12627  
12628 mingw* | pw32* | cegcc*)
12629 lt_cv_dlopen="LoadLibrary"
12630 lt_cv_dlopen_libs=
12631 ;;
12632  
12633 cygwin*)
12634 lt_cv_dlopen="dlopen"
12635 lt_cv_dlopen_libs=
12636 ;;
12637  
12638 darwin*)
12639 # if libdl is installed we need to link against it
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12641 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12642 if ${ac_cv_lib_dl_dlopen+:} false; then :
12643 $as_echo_n "(cached) " >&6
12644 else
12645 ac_check_lib_save_LIBS=$LIBS
12646 LIBS="-ldl $LIBS"
12647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648 /* end confdefs.h. */
12649  
12650 /* Override any GCC internal prototype to avoid an error.
12651 Use char because int might match the return type of a GCC
12652 builtin and then its argument prototype would still apply. */
12653 #ifdef __cplusplus
12654 extern "C"
12655 #endif
12656 char dlopen ();
12657 int
12658 main ()
12659 {
12660 return dlopen ();
12661 ;
12662 return 0;
12663 }
12664 _ACEOF
12665 if ac_fn_c_try_link "$LINENO"; then :
12666 ac_cv_lib_dl_dlopen=yes
12667 else
12668 ac_cv_lib_dl_dlopen=no
12669 fi
12670 rm -f core conftest.err conftest.$ac_objext \
12671 conftest$ac_exeext conftest.$ac_ext
12672 LIBS=$ac_check_lib_save_LIBS
12673 fi
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12675 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12676 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12677 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12678 else
12679  
12680 lt_cv_dlopen="dyld"
12681 lt_cv_dlopen_libs=
12682 lt_cv_dlopen_self=yes
12683  
12684 fi
12685  
12686 ;;
12687  
12688 *)
12689 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12690 if test "x$ac_cv_func_shl_load" = xyes; then :
12691 lt_cv_dlopen="shl_load"
12692 else
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12694 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12695 if ${ac_cv_lib_dld_shl_load+:} false; then :
12696 $as_echo_n "(cached) " >&6
12697 else
12698 ac_check_lib_save_LIBS=$LIBS
12699 LIBS="-ldld $LIBS"
12700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701 /* end confdefs.h. */
12702  
12703 /* Override any GCC internal prototype to avoid an error.
12704 Use char because int might match the return type of a GCC
12705 builtin and then its argument prototype would still apply. */
12706 #ifdef __cplusplus
12707 extern "C"
12708 #endif
12709 char shl_load ();
12710 int
12711 main ()
12712 {
12713 return shl_load ();
12714 ;
12715 return 0;
12716 }
12717 _ACEOF
12718 if ac_fn_c_try_link "$LINENO"; then :
12719 ac_cv_lib_dld_shl_load=yes
12720 else
12721 ac_cv_lib_dld_shl_load=no
12722 fi
12723 rm -f core conftest.err conftest.$ac_objext \
12724 conftest$ac_exeext conftest.$ac_ext
12725 LIBS=$ac_check_lib_save_LIBS
12726 fi
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12728 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12729 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12730 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12731 else
12732 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12733 if test "x$ac_cv_func_dlopen" = xyes; then :
12734 lt_cv_dlopen="dlopen"
12735 else
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12737 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12738 if ${ac_cv_lib_dl_dlopen+:} false; then :
12739 $as_echo_n "(cached) " >&6
12740 else
12741 ac_check_lib_save_LIBS=$LIBS
12742 LIBS="-ldl $LIBS"
12743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h. */
12745  
12746 /* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
12749 #ifdef __cplusplus
12750 extern "C"
12751 #endif
12752 char dlopen ();
12753 int
12754 main ()
12755 {
12756 return dlopen ();
12757 ;
12758 return 0;
12759 }
12760 _ACEOF
12761 if ac_fn_c_try_link "$LINENO"; then :
12762 ac_cv_lib_dl_dlopen=yes
12763 else
12764 ac_cv_lib_dl_dlopen=no
12765 fi
12766 rm -f core conftest.err conftest.$ac_objext \
12767 conftest$ac_exeext conftest.$ac_ext
12768 LIBS=$ac_check_lib_save_LIBS
12769 fi
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12771 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12772 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12773 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12774 else
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12776 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12777 if ${ac_cv_lib_svld_dlopen+:} false; then :
12778 $as_echo_n "(cached) " >&6
12779 else
12780 ac_check_lib_save_LIBS=$LIBS
12781 LIBS="-lsvld $LIBS"
12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12784  
12785 /* Override any GCC internal prototype to avoid an error.
12786 Use char because int might match the return type of a GCC
12787 builtin and then its argument prototype would still apply. */
12788 #ifdef __cplusplus
12789 extern "C"
12790 #endif
12791 char dlopen ();
12792 int
12793 main ()
12794 {
12795 return dlopen ();
12796 ;
12797 return 0;
12798 }
12799 _ACEOF
12800 if ac_fn_c_try_link "$LINENO"; then :
12801 ac_cv_lib_svld_dlopen=yes
12802 else
12803 ac_cv_lib_svld_dlopen=no
12804 fi
12805 rm -f core conftest.err conftest.$ac_objext \
12806 conftest$ac_exeext conftest.$ac_ext
12807 LIBS=$ac_check_lib_save_LIBS
12808 fi
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12810 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12811 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12812 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12813 else
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12815 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12816 if ${ac_cv_lib_dld_dld_link+:} false; then :
12817 $as_echo_n "(cached) " >&6
12818 else
12819 ac_check_lib_save_LIBS=$LIBS
12820 LIBS="-ldld $LIBS"
12821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822 /* end confdefs.h. */
12823  
12824 /* Override any GCC internal prototype to avoid an error.
12825 Use char because int might match the return type of a GCC
12826 builtin and then its argument prototype would still apply. */
12827 #ifdef __cplusplus
12828 extern "C"
12829 #endif
12830 char dld_link ();
12831 int
12832 main ()
12833 {
12834 return dld_link ();
12835 ;
12836 return 0;
12837 }
12838 _ACEOF
12839 if ac_fn_c_try_link "$LINENO"; then :
12840 ac_cv_lib_dld_dld_link=yes
12841 else
12842 ac_cv_lib_dld_dld_link=no
12843 fi
12844 rm -f core conftest.err conftest.$ac_objext \
12845 conftest$ac_exeext conftest.$ac_ext
12846 LIBS=$ac_check_lib_save_LIBS
12847 fi
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12849 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12850 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12851 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12852 fi
12853  
12854  
12855 fi
12856  
12857  
12858 fi
12859  
12860  
12861 fi
12862  
12863  
12864 fi
12865  
12866  
12867 fi
12868  
12869 ;;
12870 esac
12871  
12872 if test "x$lt_cv_dlopen" != xno; then
12873 enable_dlopen=yes
12874 else
12875 enable_dlopen=no
12876 fi
12877  
12878 case $lt_cv_dlopen in
12879 dlopen)
12880 save_CPPFLAGS="$CPPFLAGS"
12881 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12882  
12883 save_LDFLAGS="$LDFLAGS"
12884 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12885  
12886 save_LIBS="$LIBS"
12887 LIBS="$lt_cv_dlopen_libs $LIBS"
12888  
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12890 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12891 if ${lt_cv_dlopen_self+:} false; then :
12892 $as_echo_n "(cached) " >&6
12893 else
12894 if test "$cross_compiling" = yes; then :
12895 lt_cv_dlopen_self=cross
12896 else
12897 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12898 lt_status=$lt_dlunknown
12899 cat > conftest.$ac_ext <<_LT_EOF
12900 #line $LINENO "configure"
12901 #include "confdefs.h"
12902  
12903 #if HAVE_DLFCN_H
12904 #include <dlfcn.h>
12905 #endif
12906  
12907 #include <stdio.h>
12908  
12909 #ifdef RTLD_GLOBAL
12910 # define LT_DLGLOBAL RTLD_GLOBAL
12911 #else
12912 # ifdef DL_GLOBAL
12913 # define LT_DLGLOBAL DL_GLOBAL
12914 # else
12915 # define LT_DLGLOBAL 0
12916 # endif
12917 #endif
12918  
12919 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12920 find out it does not work in some platform. */
12921 #ifndef LT_DLLAZY_OR_NOW
12922 # ifdef RTLD_LAZY
12923 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12924 # else
12925 # ifdef DL_LAZY
12926 # define LT_DLLAZY_OR_NOW DL_LAZY
12927 # else
12928 # ifdef RTLD_NOW
12929 # define LT_DLLAZY_OR_NOW RTLD_NOW
12930 # else
12931 # ifdef DL_NOW
12932 # define LT_DLLAZY_OR_NOW DL_NOW
12933 # else
12934 # define LT_DLLAZY_OR_NOW 0
12935 # endif
12936 # endif
12937 # endif
12938 # endif
12939 #endif
12940  
12941 /* When -fvisbility=hidden is used, assume the code has been annotated
12942 correspondingly for the symbols needed. */
12943 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12944 int fnord () __attribute__((visibility("default")));
12945 #endif
12946  
12947 int fnord () { return 42; }
12948 int main ()
12949 {
12950 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12951 int status = $lt_dlunknown;
12952  
12953 if (self)
12954 {
12955 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12956 else
12957 {
12958 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12959 else puts (dlerror ());
12960 }
12961 /* dlclose (self); */
12962 }
12963 else
12964 puts (dlerror ());
12965  
12966 return status;
12967 }
12968 _LT_EOF
12969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12970 (eval $ac_link) 2>&5
12971 ac_status=$?
12972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12973 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12974 (./conftest; exit; ) >&5 2>/dev/null
12975 lt_status=$?
12976 case x$lt_status in
12977 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12978 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12979 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12980 esac
12981 else :
12982 # compilation failed
12983 lt_cv_dlopen_self=no
12984 fi
12985 fi
12986 rm -fr conftest*
12987  
12988  
12989 fi
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12991 $as_echo "$lt_cv_dlopen_self" >&6; }
12992  
12993 if test "x$lt_cv_dlopen_self" = xyes; then
12994 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12996 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12997 if ${lt_cv_dlopen_self_static+:} false; then :
12998 $as_echo_n "(cached) " >&6
12999 else
13000 if test "$cross_compiling" = yes; then :
13001 lt_cv_dlopen_self_static=cross
13002 else
13003 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13004 lt_status=$lt_dlunknown
13005 cat > conftest.$ac_ext <<_LT_EOF
13006 #line $LINENO "configure"
13007 #include "confdefs.h"
13008  
13009 #if HAVE_DLFCN_H
13010 #include <dlfcn.h>
13011 #endif
13012  
13013 #include <stdio.h>
13014  
13015 #ifdef RTLD_GLOBAL
13016 # define LT_DLGLOBAL RTLD_GLOBAL
13017 #else
13018 # ifdef DL_GLOBAL
13019 # define LT_DLGLOBAL DL_GLOBAL
13020 # else
13021 # define LT_DLGLOBAL 0
13022 # endif
13023 #endif
13024  
13025 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13026 find out it does not work in some platform. */
13027 #ifndef LT_DLLAZY_OR_NOW
13028 # ifdef RTLD_LAZY
13029 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13030 # else
13031 # ifdef DL_LAZY
13032 # define LT_DLLAZY_OR_NOW DL_LAZY
13033 # else
13034 # ifdef RTLD_NOW
13035 # define LT_DLLAZY_OR_NOW RTLD_NOW
13036 # else
13037 # ifdef DL_NOW
13038 # define LT_DLLAZY_OR_NOW DL_NOW
13039 # else
13040 # define LT_DLLAZY_OR_NOW 0
13041 # endif
13042 # endif
13043 # endif
13044 # endif
13045 #endif
13046  
13047 /* When -fvisbility=hidden is used, assume the code has been annotated
13048 correspondingly for the symbols needed. */
13049 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13050 int fnord () __attribute__((visibility("default")));
13051 #endif
13052  
13053 int fnord () { return 42; }
13054 int main ()
13055 {
13056 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13057 int status = $lt_dlunknown;
13058  
13059 if (self)
13060 {
13061 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13062 else
13063 {
13064 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13065 else puts (dlerror ());
13066 }
13067 /* dlclose (self); */
13068 }
13069 else
13070 puts (dlerror ());
13071  
13072 return status;
13073 }
13074 _LT_EOF
13075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13076 (eval $ac_link) 2>&5
13077 ac_status=$?
13078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13079 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13080 (./conftest; exit; ) >&5 2>/dev/null
13081 lt_status=$?
13082 case x$lt_status in
13083 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13084 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13085 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13086 esac
13087 else :
13088 # compilation failed
13089 lt_cv_dlopen_self_static=no
13090 fi
13091 fi
13092 rm -fr conftest*
13093  
13094  
13095 fi
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13097 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13098 fi
13099  
13100 CPPFLAGS="$save_CPPFLAGS"
13101 LDFLAGS="$save_LDFLAGS"
13102 LIBS="$save_LIBS"
13103 ;;
13104 esac
13105  
13106 case $lt_cv_dlopen_self in
13107 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13108 *) enable_dlopen_self=unknown ;;
13109 esac
13110  
13111 case $lt_cv_dlopen_self_static in
13112 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13113 *) enable_dlopen_self_static=unknown ;;
13114 esac
13115 fi
13116  
13117  
13118  
13119  
13120  
13121  
13122  
13123  
13124  
13125  
13126  
13127  
13128  
13129  
13130  
13131  
13132  
13133 striplib=
13134 old_striplib=
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13136 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13137 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13138 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13139 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13141 $as_echo "yes" >&6; }
13142 else
13143 # FIXME - insert some real tests, host_os isn't really good enough
13144 case $host_os in
13145 darwin*)
13146 if test -n "$STRIP" ; then
13147 striplib="$STRIP -x"
13148 old_striplib="$STRIP -S"
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13150 $as_echo "yes" >&6; }
13151 else
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13153 $as_echo "no" >&6; }
13154 fi
13155 ;;
13156 *)
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13158 $as_echo "no" >&6; }
13159 ;;
13160 esac
13161 fi
13162  
13163  
13164  
13165  
13166  
13167  
13168  
13169  
13170  
13171  
13172  
13173  
13174 # Report which library types will actually be built
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13176 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13178 $as_echo "$can_build_shared" >&6; }
13179  
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13181 $as_echo_n "checking whether to build shared libraries... " >&6; }
13182 test "$can_build_shared" = "no" && enable_shared=no
13183  
13184 # On AIX, shared libraries and static libraries use the same namespace, and
13185 # are all built from PIC.
13186 case $host_os in
13187 aix3*)
13188 test "$enable_shared" = yes && enable_static=no
13189 if test -n "$RANLIB"; then
13190 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13191 postinstall_cmds='$RANLIB $lib'
13192 fi
13193 ;;
13194  
13195 aix[4-9]*)
13196 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13197 test "$enable_shared" = yes && enable_static=no
13198 fi
13199 ;;
13200 esac
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13202 $as_echo "$enable_shared" >&6; }
13203  
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13205 $as_echo_n "checking whether to build static libraries... " >&6; }
13206 # Make sure either enable_shared or enable_static is yes.
13207 test "$enable_shared" = yes || enable_static=yes
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13209 $as_echo "$enable_static" >&6; }
13210  
13211  
13212  
13213  
13214 fi
13215 ac_ext=c
13216 ac_cpp='$CPP $CPPFLAGS'
13217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13220  
13221 CC="$lt_save_CC"
13222  
13223  
13224  
13225  
13226  
13227  
13228  
13229  
13230  
13231  
13232  
13233  
13234  
13235 ac_config_commands="$ac_config_commands libtool"
13236  
13237  
13238  
13239  
13240 # Only expand once:
13241  
13242  
13243  
13244 if test -n "$ac_tool_prefix"; then
13245 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
13246 set dummy ${ac_tool_prefix}windres; ac_word=$2
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13248 $as_echo_n "checking for $ac_word... " >&6; }
13249 if ${ac_cv_prog_RC+:} false; then :
13250 $as_echo_n "(cached) " >&6
13251 else
13252 if test -n "$RC"; then
13253 ac_cv_prog_RC="$RC" # Let the user override the test.
13254 else
13255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256 for as_dir in $PATH
13257 do
13258 IFS=$as_save_IFS
13259 test -z "$as_dir" && as_dir=.
13260 for ac_exec_ext in '' $ac_executable_extensions; do
13261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13262 ac_cv_prog_RC="${ac_tool_prefix}windres"
13263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13264 break 2
13265 fi
13266 done
13267 done
13268 IFS=$as_save_IFS
13269  
13270 fi
13271 fi
13272 RC=$ac_cv_prog_RC
13273 if test -n "$RC"; then
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
13275 $as_echo "$RC" >&6; }
13276 else
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13278 $as_echo "no" >&6; }
13279 fi
13280  
13281  
13282 fi
13283 if test -z "$ac_cv_prog_RC"; then
13284 ac_ct_RC=$RC
13285 # Extract the first word of "windres", so it can be a program name with args.
13286 set dummy windres; ac_word=$2
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13288 $as_echo_n "checking for $ac_word... " >&6; }
13289 if ${ac_cv_prog_ac_ct_RC+:} false; then :
13290 $as_echo_n "(cached) " >&6
13291 else
13292 if test -n "$ac_ct_RC"; then
13293 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
13294 else
13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $PATH
13297 do
13298 IFS=$as_save_IFS
13299 test -z "$as_dir" && as_dir=.
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13302 ac_cv_prog_ac_ct_RC="windres"
13303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13304 break 2
13305 fi
13306 done
13307 done
13308 IFS=$as_save_IFS
13309  
13310 fi
13311 fi
13312 ac_ct_RC=$ac_cv_prog_ac_ct_RC
13313 if test -n "$ac_ct_RC"; then
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
13315 $as_echo "$ac_ct_RC" >&6; }
13316 else
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318 $as_echo "no" >&6; }
13319 fi
13320  
13321 if test "x$ac_ct_RC" = x; then
13322 RC=""
13323 else
13324 case $cross_compiling:$ac_tool_warned in
13325 yes:)
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13328 ac_tool_warned=yes ;;
13329 esac
13330 RC=$ac_ct_RC
13331 fi
13332 else
13333 RC="$ac_cv_prog_RC"
13334 fi
13335  
13336  
13337  
13338  
13339 # Source file extension for RC test sources.
13340 ac_ext=rc
13341  
13342 # Object file extension for compiled RC test sources.
13343 objext=o
13344 objext_RC=$objext
13345  
13346 # Code to be used in simple compile tests
13347 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
13348  
13349 # Code to be used in simple link tests
13350 lt_simple_link_test_code="$lt_simple_compile_test_code"
13351  
13352 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13353  
13354  
13355  
13356  
13357  
13358  
13359 # If no C compiler was specified, use CC.
13360 LTCC=${LTCC-"$CC"}
13361  
13362 # If no C compiler flags were specified, use CFLAGS.
13363 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13364  
13365 # Allow CC to be a program name with arguments.
13366 compiler=$CC
13367  
13368  
13369 # save warnings/boilerplate of simple test code
13370 ac_outfile=conftest.$ac_objext
13371 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13372 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13373 _lt_compiler_boilerplate=`cat conftest.err`
13374 $RM conftest*
13375  
13376 ac_outfile=conftest.$ac_objext
13377 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13378 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13379 _lt_linker_boilerplate=`cat conftest.err`
13380 $RM -r conftest*
13381  
13382  
13383 # Allow CC to be a program name with arguments.
13384 lt_save_CC="$CC"
13385 lt_save_CFLAGS=$CFLAGS
13386 lt_save_GCC=$GCC
13387 GCC=
13388 CC=${RC-"windres"}
13389 CFLAGS=
13390 compiler=$CC
13391 compiler_RC=$CC
13392 for cc_temp in $compiler""; do
13393 case $cc_temp in
13394 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13395 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13396 \-*) ;;
13397 *) break;;
13398 esac
13399 done
13400 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13401  
13402 lt_cv_prog_compiler_c_o_RC=yes
13403  
13404 if test -n "$compiler"; then
13405 :
13406  
13407  
13408  
13409 fi
13410  
13411 GCC=$lt_save_GCC
13412 ac_ext=c
13413 ac_cpp='$CPP $CPPFLAGS'
13414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13417  
13418 CC=$lt_save_CC
13419 CFLAGS=$lt_save_CFLAGS
13420  
13421  
13422 case "$host_os" in
13423 mingw* | cygwin*) is_woe32=yes ;;
13424 *) is_woe32=no ;;
13425 esac
13426 WOE32=$is_woe32
13427  
13428 if test $WOE32 = yes; then
13429 if test -n "$ac_tool_prefix"; then
13430 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
13431 set dummy ${ac_tool_prefix}windres; ac_word=$2
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13433 $as_echo_n "checking for $ac_word... " >&6; }
13434 if ${ac_cv_prog_WINDRES+:} false; then :
13435 $as_echo_n "(cached) " >&6
13436 else
13437 if test -n "$WINDRES"; then
13438 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13439 else
13440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13441 for as_dir in $PATH
13442 do
13443 IFS=$as_save_IFS
13444 test -z "$as_dir" && as_dir=.
13445 for ac_exec_ext in '' $ac_executable_extensions; do
13446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13447 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
13448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13449 break 2
13450 fi
13451 done
13452 done
13453 IFS=$as_save_IFS
13454  
13455 fi
13456 fi
13457 WINDRES=$ac_cv_prog_WINDRES
13458 if test -n "$WINDRES"; then
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13460 $as_echo "$WINDRES" >&6; }
13461 else
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13463 $as_echo "no" >&6; }
13464 fi
13465  
13466  
13467 fi
13468 if test -z "$ac_cv_prog_WINDRES"; then
13469 ac_ct_WINDRES=$WINDRES
13470 # Extract the first word of "windres", so it can be a program name with args.
13471 set dummy windres; ac_word=$2
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13473 $as_echo_n "checking for $ac_word... " >&6; }
13474 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
13475 $as_echo_n "(cached) " >&6
13476 else
13477 if test -n "$ac_ct_WINDRES"; then
13478 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
13479 else
13480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13481 for as_dir in $PATH
13482 do
13483 IFS=$as_save_IFS
13484 test -z "$as_dir" && as_dir=.
13485 for ac_exec_ext in '' $ac_executable_extensions; do
13486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13487 ac_cv_prog_ac_ct_WINDRES="windres"
13488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13489 break 2
13490 fi
13491 done
13492 done
13493 IFS=$as_save_IFS
13494  
13495 fi
13496 fi
13497 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
13498 if test -n "$ac_ct_WINDRES"; then
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
13500 $as_echo "$ac_ct_WINDRES" >&6; }
13501 else
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13503 $as_echo "no" >&6; }
13504 fi
13505  
13506 if test "x$ac_ct_WINDRES" = x; then
13507 WINDRES=""
13508 else
13509 case $cross_compiling:$ac_tool_warned in
13510 yes:)
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13513 ac_tool_warned=yes ;;
13514 esac
13515 WINDRES=$ac_ct_WINDRES
13516 fi
13517 else
13518 WINDRES="$ac_cv_prog_WINDRES"
13519 fi
13520  
13521 fi
13522  
13523  
13524  
13525 CFLAG_VISIBILITY=
13526 HAVE_VISIBILITY=0
13527 if test -n "$GCC"; then
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
13529 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
13530 if ${gl_cv_cc_vis_werror+:} false; then :
13531 $as_echo_n "(cached) " >&6
13532 else
13533  
13534 gl_save_CFLAGS="$CFLAGS"
13535 CFLAGS="$CFLAGS -Werror"
13536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13537 /* end confdefs.h. */
13538  
13539 int
13540 main ()
13541 {
13542  
13543 ;
13544 return 0;
13545 }
13546 _ACEOF
13547 if ac_fn_c_try_compile "$LINENO"; then :
13548 gl_cv_cc_vis_werror=yes
13549 else
13550 gl_cv_cc_vis_werror=no
13551 fi
13552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13553 CFLAGS="$gl_save_CFLAGS"
13554 fi
13555  
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
13557 $as_echo "$gl_cv_cc_vis_werror" >&6; }
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
13559 $as_echo_n "checking for simple visibility declarations... " >&6; }
13560 if ${gl_cv_cc_visibility+:} false; then :
13561 $as_echo_n "(cached) " >&6
13562 else
13563  
13564 gl_save_CFLAGS="$CFLAGS"
13565 CFLAGS="$CFLAGS -fvisibility=hidden"
13566 if test $gl_cv_cc_vis_werror = yes; then
13567 CFLAGS="$CFLAGS -Werror"
13568 fi
13569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13570 /* end confdefs.h. */
13571 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
13572 extern __attribute__((__visibility__("default"))) int exportedvar;
13573 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
13574 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
13575 void dummyfunc (void) {}
13576  
13577 int
13578 main ()
13579 {
13580  
13581 ;
13582 return 0;
13583 }
13584 _ACEOF
13585 if ac_fn_c_try_compile "$LINENO"; then :
13586 gl_cv_cc_visibility=yes
13587 else
13588 gl_cv_cc_visibility=no
13589 fi
13590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13591 CFLAGS="$gl_save_CFLAGS"
13592 fi
13593  
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
13595 $as_echo "$gl_cv_cc_visibility" >&6; }
13596 if test $gl_cv_cc_visibility = yes; then
13597 CFLAG_VISIBILITY="-fvisibility=hidden"
13598 HAVE_VISIBILITY=1
13599 fi
13600 fi
13601  
13602  
13603  
13604 cat >>confdefs.h <<_ACEOF
13605 #define HAVE_VISIBILITY $HAVE_VISIBILITY
13606 _ACEOF
13607  
13608  
13609  
13610 if test "X$prefix" = "XNONE"; then
13611 acl_final_prefix="$ac_default_prefix"
13612 else
13613 acl_final_prefix="$prefix"
13614 fi
13615 if test "X$exec_prefix" = "XNONE"; then
13616 acl_final_exec_prefix='${prefix}'
13617 else
13618 acl_final_exec_prefix="$exec_prefix"
13619 fi
13620 acl_save_prefix="$prefix"
13621 prefix="$acl_final_prefix"
13622 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13623 prefix="$acl_save_prefix"
13624  
13625  
13626  
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13628 $as_echo_n "checking for shared library run path origin... " >&6; }
13629 if ${acl_cv_rpath+:} false; then :
13630 $as_echo_n "(cached) " >&6
13631 else
13632  
13633 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13634 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13635 . ./conftest.sh
13636 rm -f ./conftest.sh
13637 acl_cv_rpath=done
13638  
13639 fi
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13641 $as_echo "$acl_cv_rpath" >&6; }
13642 wl="$acl_cv_wl"
13643 acl_libext="$acl_cv_libext"
13644 acl_shlibext="$acl_cv_shlibext"
13645 acl_libname_spec="$acl_cv_libname_spec"
13646 acl_library_names_spec="$acl_cv_library_names_spec"
13647 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13648 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13649 acl_hardcode_direct="$acl_cv_hardcode_direct"
13650 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13651 # Check whether --enable-rpath was given.
13652 if test "${enable_rpath+set}" = set; then :
13653 enableval=$enable_rpath; :
13654 else
13655 enable_rpath=yes
13656 fi
13657  
13658  
13659  
13660  
13661 acl_libdirstem=lib
13662 acl_libdirstem2=
13663 case "$host_os" in
13664 solaris*)
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13666 $as_echo_n "checking for 64-bit host... " >&6; }
13667 if ${gl_cv_solaris_64bit+:} false; then :
13668 $as_echo_n "(cached) " >&6
13669 else
13670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671 /* end confdefs.h. */
13672  
13673 #ifdef _LP64
13674 sixtyfour bits
13675 #endif
13676  
13677 _ACEOF
13678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13679 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
13680 gl_cv_solaris_64bit=yes
13681 else
13682 gl_cv_solaris_64bit=no
13683 fi
13684 rm -f conftest*
13685  
13686  
13687 fi
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13689 $as_echo "$gl_cv_solaris_64bit" >&6; }
13690 if test $gl_cv_solaris_64bit = yes; then
13691 acl_libdirstem=lib/64
13692 case "$host_cpu" in
13693 sparc*) acl_libdirstem2=lib/sparcv9 ;;
13694 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13695 esac
13696 fi
13697 ;;
13698 *)
13699 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13700 if test -n "$searchpath"; then
13701 acl_save_IFS="${IFS= }"; IFS=":"
13702 for searchdir in $searchpath; do
13703 if test -d "$searchdir"; then
13704 case "$searchdir" in
13705 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13706 */../ | */.. )
13707 # Better ignore directories of this form. They are misleading.
13708 ;;
13709 *) searchdir=`cd "$searchdir" && pwd`
13710 case "$searchdir" in
13711 */lib64 ) acl_libdirstem=lib64 ;;
13712 esac ;;
13713 esac
13714 fi
13715 done
13716 IFS="$acl_save_IFS"
13717 fi
13718 ;;
13719 esac
13720 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13721  
13722  
13723  
13724  
13725  
13726  
13727  
13728  
13729  
13730  
13731  
13732  
13733 use_additional=yes
13734  
13735 acl_save_prefix="$prefix"
13736 prefix="$acl_final_prefix"
13737 acl_save_exec_prefix="$exec_prefix"
13738 exec_prefix="$acl_final_exec_prefix"
13739  
13740 eval additional_includedir=\"$includedir\"
13741 eval additional_libdir=\"$libdir\"
13742  
13743 exec_prefix="$acl_save_exec_prefix"
13744 prefix="$acl_save_prefix"
13745  
13746  
13747 # Check whether --with-libiconv-prefix was given.
13748 if test "${with_libiconv_prefix+set}" = set; then :
13749 withval=$with_libiconv_prefix;
13750 if test "X$withval" = "Xno"; then
13751 use_additional=no
13752 else
13753 if test "X$withval" = "X"; then
13754  
13755 acl_save_prefix="$prefix"
13756 prefix="$acl_final_prefix"
13757 acl_save_exec_prefix="$exec_prefix"
13758 exec_prefix="$acl_final_exec_prefix"
13759  
13760 eval additional_includedir=\"$includedir\"
13761 eval additional_libdir=\"$libdir\"
13762  
13763 exec_prefix="$acl_save_exec_prefix"
13764 prefix="$acl_save_prefix"
13765  
13766 else
13767 additional_includedir="$withval/include"
13768 additional_libdir="$withval/$acl_libdirstem"
13769 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13770 && ! test -d "$withval/$acl_libdirstem"; then
13771 additional_libdir="$withval/$acl_libdirstem2"
13772 fi
13773 fi
13774 fi
13775  
13776 fi
13777  
13778 LIBICONV=
13779 LTLIBICONV=
13780 INCICONV=
13781 LIBICONV_PREFIX=
13782 HAVE_LIBICONV=
13783 rpathdirs=
13784 ltrpathdirs=
13785 names_already_handled=
13786 names_next_round='iconv '
13787 while test -n "$names_next_round"; do
13788 names_this_round="$names_next_round"
13789 names_next_round=
13790 for name in $names_this_round; do
13791 already_handled=
13792 for n in $names_already_handled; do
13793 if test "$n" = "$name"; then
13794 already_handled=yes
13795 break
13796 fi
13797 done
13798 if test -z "$already_handled"; then
13799 names_already_handled="$names_already_handled $name"
13800 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13801 eval value=\"\$HAVE_LIB$uppername\"
13802 if test -n "$value"; then
13803 if test "$value" = yes; then
13804 eval value=\"\$LIB$uppername\"
13805 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13806 eval value=\"\$LTLIB$uppername\"
13807 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13808 else
13809 :
13810 fi
13811 else
13812 found_dir=
13813 found_la=
13814 found_so=
13815 found_a=
13816 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13817 if test -n "$acl_shlibext"; then
13818 shrext=".$acl_shlibext" # typically: shrext=.so
13819 else
13820 shrext=
13821 fi
13822 if test $use_additional = yes; then
13823 dir="$additional_libdir"
13824 if test -n "$acl_shlibext"; then
13825 if test -f "$dir/$libname$shrext"; then
13826 found_dir="$dir"
13827 found_so="$dir/$libname$shrext"
13828 else
13829 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13830 ver=`(cd "$dir" && \
13831 for f in "$libname$shrext".*; do echo "$f"; done \
13832 | sed -e "s,^$libname$shrext\\\\.,," \
13833 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13834 | sed 1q ) 2>/dev/null`
13835 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13836 found_dir="$dir"
13837 found_so="$dir/$libname$shrext.$ver"
13838 fi
13839 else
13840 eval library_names=\"$acl_library_names_spec\"
13841 for f in $library_names; do
13842 if test -f "$dir/$f"; then
13843 found_dir="$dir"
13844 found_so="$dir/$f"
13845 break
13846 fi
13847 done
13848 fi
13849 fi
13850 fi
13851 if test "X$found_dir" = "X"; then
13852 if test -f "$dir/$libname.$acl_libext"; then
13853 found_dir="$dir"
13854 found_a="$dir/$libname.$acl_libext"
13855 fi
13856 fi
13857 if test "X$found_dir" != "X"; then
13858 if test -f "$dir/$libname.la"; then
13859 found_la="$dir/$libname.la"
13860 fi
13861 fi
13862 fi
13863 if test "X$found_dir" = "X"; then
13864 for x in $LDFLAGS $LTLIBICONV; do
13865  
13866 acl_save_prefix="$prefix"
13867 prefix="$acl_final_prefix"
13868 acl_save_exec_prefix="$exec_prefix"
13869 exec_prefix="$acl_final_exec_prefix"
13870 eval x=\"$x\"
13871 exec_prefix="$acl_save_exec_prefix"
13872 prefix="$acl_save_prefix"
13873  
13874 case "$x" in
13875 -L*)
13876 dir=`echo "X$x" | sed -e 's/^X-L//'`
13877 if test -n "$acl_shlibext"; then
13878 if test -f "$dir/$libname$shrext"; then
13879 found_dir="$dir"
13880 found_so="$dir/$libname$shrext"
13881 else
13882 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13883 ver=`(cd "$dir" && \
13884 for f in "$libname$shrext".*; do echo "$f"; done \
13885 | sed -e "s,^$libname$shrext\\\\.,," \
13886 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13887 | sed 1q ) 2>/dev/null`
13888 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13889 found_dir="$dir"
13890 found_so="$dir/$libname$shrext.$ver"
13891 fi
13892 else
13893 eval library_names=\"$acl_library_names_spec\"
13894 for f in $library_names; do
13895 if test -f "$dir/$f"; then
13896 found_dir="$dir"
13897 found_so="$dir/$f"
13898 break
13899 fi
13900 done
13901 fi
13902 fi
13903 fi
13904 if test "X$found_dir" = "X"; then
13905 if test -f "$dir/$libname.$acl_libext"; then
13906 found_dir="$dir"
13907 found_a="$dir/$libname.$acl_libext"
13908 fi
13909 fi
13910 if test "X$found_dir" != "X"; then
13911 if test -f "$dir/$libname.la"; then
13912 found_la="$dir/$libname.la"
13913 fi
13914 fi
13915 ;;
13916 esac
13917 if test "X$found_dir" != "X"; then
13918 break
13919 fi
13920 done
13921 fi
13922 if test "X$found_dir" != "X"; then
13923 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13924 if test "X$found_so" != "X"; then
13925 if test "$enable_rpath" = no \
13926 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13927 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13928 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13929 else
13930 haveit=
13931 for x in $ltrpathdirs; do
13932 if test "X$x" = "X$found_dir"; then
13933 haveit=yes
13934 break
13935 fi
13936 done
13937 if test -z "$haveit"; then
13938 ltrpathdirs="$ltrpathdirs $found_dir"
13939 fi
13940 if test "$acl_hardcode_direct" = yes; then
13941 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13942 else
13943 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13944 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13945 haveit=
13946 for x in $rpathdirs; do
13947 if test "X$x" = "X$found_dir"; then
13948 haveit=yes
13949 break
13950 fi
13951 done
13952 if test -z "$haveit"; then
13953 rpathdirs="$rpathdirs $found_dir"
13954 fi
13955 else
13956 haveit=
13957 for x in $LDFLAGS $LIBICONV; do
13958  
13959 acl_save_prefix="$prefix"
13960 prefix="$acl_final_prefix"
13961 acl_save_exec_prefix="$exec_prefix"
13962 exec_prefix="$acl_final_exec_prefix"
13963 eval x=\"$x\"
13964 exec_prefix="$acl_save_exec_prefix"
13965 prefix="$acl_save_prefix"
13966  
13967 if test "X$x" = "X-L$found_dir"; then
13968 haveit=yes
13969 break
13970 fi
13971 done
13972 if test -z "$haveit"; then
13973 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13974 fi
13975 if test "$acl_hardcode_minus_L" != no; then
13976 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13977 else
13978 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13979 fi
13980 fi
13981 fi
13982 fi
13983 else
13984 if test "X$found_a" != "X"; then
13985 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13986 else
13987 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13988 fi
13989 fi
13990 additional_includedir=
13991 case "$found_dir" in
13992 */$acl_libdirstem | */$acl_libdirstem/)
13993 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13994 if test "$name" = 'iconv'; then
13995 LIBICONV_PREFIX="$basedir"
13996 fi
13997 additional_includedir="$basedir/include"
13998 ;;
13999 */$acl_libdirstem2 | */$acl_libdirstem2/)
14000 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14001 if test "$name" = 'iconv'; then
14002 LIBICONV_PREFIX="$basedir"
14003 fi
14004 additional_includedir="$basedir/include"
14005 ;;
14006 esac
14007 if test "X$additional_includedir" != "X"; then
14008 if test "X$additional_includedir" != "X/usr/include"; then
14009 haveit=
14010 if test "X$additional_includedir" = "X/usr/local/include"; then
14011 if test -n "$GCC"; then
14012 case $host_os in
14013 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14014 esac
14015 fi
14016 fi
14017 if test -z "$haveit"; then
14018 for x in $CPPFLAGS $INCICONV; do
14019  
14020 acl_save_prefix="$prefix"
14021 prefix="$acl_final_prefix"
14022 acl_save_exec_prefix="$exec_prefix"
14023 exec_prefix="$acl_final_exec_prefix"
14024 eval x=\"$x\"
14025 exec_prefix="$acl_save_exec_prefix"
14026 prefix="$acl_save_prefix"
14027  
14028 if test "X$x" = "X-I$additional_includedir"; then
14029 haveit=yes
14030 break
14031 fi
14032 done
14033 if test -z "$haveit"; then
14034 if test -d "$additional_includedir"; then
14035 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14036 fi
14037 fi
14038 fi
14039 fi
14040 fi
14041 if test -n "$found_la"; then
14042 save_libdir="$libdir"
14043 case "$found_la" in
14044 */* | *\\*) . "$found_la" ;;
14045 *) . "./$found_la" ;;
14046 esac
14047 libdir="$save_libdir"
14048 for dep in $dependency_libs; do
14049 case "$dep" in
14050 -L*)
14051 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14052 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14053 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14054 haveit=
14055 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14056 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14057 if test -n "$GCC"; then
14058 case $host_os in
14059 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14060 esac
14061 fi
14062 fi
14063 if test -z "$haveit"; then
14064 haveit=
14065 for x in $LDFLAGS $LIBICONV; do
14066  
14067 acl_save_prefix="$prefix"
14068 prefix="$acl_final_prefix"
14069 acl_save_exec_prefix="$exec_prefix"
14070 exec_prefix="$acl_final_exec_prefix"
14071 eval x=\"$x\"
14072 exec_prefix="$acl_save_exec_prefix"
14073 prefix="$acl_save_prefix"
14074  
14075 if test "X$x" = "X-L$additional_libdir"; then
14076 haveit=yes
14077 break
14078 fi
14079 done
14080 if test -z "$haveit"; then
14081 if test -d "$additional_libdir"; then
14082 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14083 fi
14084 fi
14085 haveit=
14086 for x in $LDFLAGS $LTLIBICONV; do
14087  
14088 acl_save_prefix="$prefix"
14089 prefix="$acl_final_prefix"
14090 acl_save_exec_prefix="$exec_prefix"
14091 exec_prefix="$acl_final_exec_prefix"
14092 eval x=\"$x\"
14093 exec_prefix="$acl_save_exec_prefix"
14094 prefix="$acl_save_prefix"
14095  
14096 if test "X$x" = "X-L$additional_libdir"; then
14097 haveit=yes
14098 break
14099 fi
14100 done
14101 if test -z "$haveit"; then
14102 if test -d "$additional_libdir"; then
14103 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14104 fi
14105 fi
14106 fi
14107 fi
14108 ;;
14109 -R*)
14110 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14111 if test "$enable_rpath" != no; then
14112 haveit=
14113 for x in $rpathdirs; do
14114 if test "X$x" = "X$dir"; then
14115 haveit=yes
14116 break
14117 fi
14118 done
14119 if test -z "$haveit"; then
14120 rpathdirs="$rpathdirs $dir"
14121 fi
14122 haveit=
14123 for x in $ltrpathdirs; do
14124 if test "X$x" = "X$dir"; then
14125 haveit=yes
14126 break
14127 fi
14128 done
14129 if test -z "$haveit"; then
14130 ltrpathdirs="$ltrpathdirs $dir"
14131 fi
14132 fi
14133 ;;
14134 -l*)
14135 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14136 ;;
14137 *.la)
14138 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14139 ;;
14140 *)
14141 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14142 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14143 ;;
14144 esac
14145 done
14146 fi
14147 else
14148 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14149 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14150 fi
14151 fi
14152 fi
14153 done
14154 done
14155 if test "X$rpathdirs" != "X"; then
14156 if test -n "$acl_hardcode_libdir_separator"; then
14157 alldirs=
14158 for found_dir in $rpathdirs; do
14159 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14160 done
14161 acl_save_libdir="$libdir"
14162 libdir="$alldirs"
14163 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14164 libdir="$acl_save_libdir"
14165 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14166 else
14167 for found_dir in $rpathdirs; do
14168 acl_save_libdir="$libdir"
14169 libdir="$found_dir"
14170 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14171 libdir="$acl_save_libdir"
14172 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14173 done
14174 fi
14175 fi
14176 if test "X$ltrpathdirs" != "X"; then
14177 for found_dir in $ltrpathdirs; do
14178 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14179 done
14180 fi
14181  
14182  
14183  
14184  
14185  
14186  
14187  
14188  
14189  
14190  
14191  
14192  
14193 am_save_CPPFLAGS="$CPPFLAGS"
14194  
14195 for element in $INCICONV; do
14196 haveit=
14197 for x in $CPPFLAGS; do
14198  
14199 acl_save_prefix="$prefix"
14200 prefix="$acl_final_prefix"
14201 acl_save_exec_prefix="$exec_prefix"
14202 exec_prefix="$acl_final_exec_prefix"
14203 eval x=\"$x\"
14204 exec_prefix="$acl_save_exec_prefix"
14205 prefix="$acl_save_prefix"
14206  
14207 if test "X$x" = "X$element"; then
14208 haveit=yes
14209 break
14210 fi
14211 done
14212 if test -z "$haveit"; then
14213 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14214 fi
14215 done
14216  
14217  
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14219 $as_echo_n "checking for iconv... " >&6; }
14220 if ${am_cv_func_iconv+:} false; then :
14221 $as_echo_n "(cached) " >&6
14222 else
14223  
14224 am_cv_func_iconv="no, consider installing GNU libiconv"
14225 am_cv_lib_iconv=no
14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227 /* end confdefs.h. */
14228  
14229 #include <stdlib.h>
14230 #include <iconv.h>
14231  
14232 int
14233 main ()
14234 {
14235 iconv_t cd = iconv_open("","");
14236 iconv(cd,NULL,NULL,NULL,NULL);
14237 iconv_close(cd);
14238 ;
14239 return 0;
14240 }
14241 _ACEOF
14242 if ac_fn_c_try_link "$LINENO"; then :
14243 am_cv_func_iconv=yes
14244 fi
14245 rm -f core conftest.err conftest.$ac_objext \
14246 conftest$ac_exeext conftest.$ac_ext
14247 if test "$am_cv_func_iconv" != yes; then
14248 am_save_LIBS="$LIBS"
14249 LIBS="$LIBS $LIBICONV"
14250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14251 /* end confdefs.h. */
14252  
14253 #include <stdlib.h>
14254 #include <iconv.h>
14255  
14256 int
14257 main ()
14258 {
14259 iconv_t cd = iconv_open("","");
14260 iconv(cd,NULL,NULL,NULL,NULL);
14261 iconv_close(cd);
14262 ;
14263 return 0;
14264 }
14265 _ACEOF
14266 if ac_fn_c_try_link "$LINENO"; then :
14267 am_cv_lib_iconv=yes
14268 am_cv_func_iconv=yes
14269 fi
14270 rm -f core conftest.err conftest.$ac_objext \
14271 conftest$ac_exeext conftest.$ac_ext
14272 LIBS="$am_save_LIBS"
14273 fi
14274  
14275 fi
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14277 $as_echo "$am_cv_func_iconv" >&6; }
14278 if test "$am_cv_func_iconv" = yes; then
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14280 $as_echo_n "checking for working iconv... " >&6; }
14281 if ${am_cv_func_iconv_works+:} false; then :
14282 $as_echo_n "(cached) " >&6
14283 else
14284  
14285 am_save_LIBS="$LIBS"
14286 if test $am_cv_lib_iconv = yes; then
14287 LIBS="$LIBS $LIBICONV"
14288 fi
14289 if test "$cross_compiling" = yes; then :
14290  
14291 case "$host_os" in
14292 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14293 *) am_cv_func_iconv_works="guessing yes" ;;
14294 esac
14295  
14296 else
14297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h. */
14299  
14300 #include <iconv.h>
14301 #include <string.h>
14302 int main ()
14303 {
14304 int result = 0;
14305 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14306 returns. */
14307 {
14308 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14309 if (cd_utf8_to_88591 != (iconv_t)(-1))
14310 {
14311 static const char input[] = "\342\202\254"; /* EURO SIGN */
14312 char buf[10];
14313 const char *inptr = input;
14314 size_t inbytesleft = strlen (input);
14315 char *outptr = buf;
14316 size_t outbytesleft = sizeof (buf);
14317 size_t res = iconv (cd_utf8_to_88591,
14318 (char **) &inptr, &inbytesleft,
14319 &outptr, &outbytesleft);
14320 if (res == 0)
14321 result |= 1;
14322 iconv_close (cd_utf8_to_88591);
14323 }
14324 }
14325 /* Test against Solaris 10 bug: Failures are not distinguishable from
14326 successful returns. */
14327 {
14328 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14329 if (cd_ascii_to_88591 != (iconv_t)(-1))
14330 {
14331 static const char input[] = "\263";
14332 char buf[10];
14333 const char *inptr = input;
14334 size_t inbytesleft = strlen (input);
14335 char *outptr = buf;
14336 size_t outbytesleft = sizeof (buf);
14337 size_t res = iconv (cd_ascii_to_88591,
14338 (char **) &inptr, &inbytesleft,
14339 &outptr, &outbytesleft);
14340 if (res == 0)
14341 result |= 2;
14342 iconv_close (cd_ascii_to_88591);
14343 }
14344 }
14345 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14346 {
14347 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14348 if (cd_88591_to_utf8 != (iconv_t)(-1))
14349 {
14350 static const char input[] = "\304";
14351 static char buf[2] = { (char)0xDE, (char)0xAD };
14352 const char *inptr = input;
14353 size_t inbytesleft = 1;
14354 char *outptr = buf;
14355 size_t outbytesleft = 1;
14356 size_t res = iconv (cd_88591_to_utf8,
14357 (char **) &inptr, &inbytesleft,
14358 &outptr, &outbytesleft);
14359 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14360 result |= 4;
14361 iconv_close (cd_88591_to_utf8);
14362 }
14363 }
14364 #if 0 /* This bug could be worked around by the caller. */
14365 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14366 {
14367 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14368 if (cd_88591_to_utf8 != (iconv_t)(-1))
14369 {
14370 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14371 char buf[50];
14372 const char *inptr = input;
14373 size_t inbytesleft = strlen (input);
14374 char *outptr = buf;
14375 size_t outbytesleft = sizeof (buf);
14376 size_t res = iconv (cd_88591_to_utf8,
14377 (char **) &inptr, &inbytesleft,
14378 &outptr, &outbytesleft);
14379 if ((int)res > 0)
14380 result |= 8;
14381 iconv_close (cd_88591_to_utf8);
14382 }
14383 }
14384 #endif
14385 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14386 provided. */
14387 if (/* Try standardized names. */
14388 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14389 /* Try IRIX, OSF/1 names. */
14390 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14391 /* Try AIX names. */
14392 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14393 /* Try HP-UX names. */
14394 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14395 result |= 16;
14396 return result;
14397 }
14398 _ACEOF
14399 if ac_fn_c_try_run "$LINENO"; then :
14400 am_cv_func_iconv_works=yes
14401 else
14402 am_cv_func_iconv_works=no
14403 fi
14404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14405 conftest.$ac_objext conftest.beam conftest.$ac_ext
14406 fi
14407  
14408 LIBS="$am_save_LIBS"
14409  
14410 fi
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14412 $as_echo "$am_cv_func_iconv_works" >&6; }
14413 case "$am_cv_func_iconv_works" in
14414 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14415 *) am_func_iconv=yes ;;
14416 esac
14417 else
14418 am_func_iconv=no am_cv_lib_iconv=no
14419 fi
14420 if test "$am_func_iconv" = yes; then
14421  
14422 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14423  
14424 fi
14425 if test "$am_cv_lib_iconv" = yes; then
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14427 $as_echo_n "checking how to link with libiconv... " >&6; }
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14429 $as_echo "$LIBICONV" >&6; }
14430 else
14431 CPPFLAGS="$am_save_CPPFLAGS"
14432 LIBICONV=
14433 LTLIBICONV=
14434 fi
14435  
14436  
14437  
14438 if test "$am_cv_func_iconv" = yes; then
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14440 $as_echo_n "checking for iconv declaration... " >&6; }
14441 if ${am_cv_proto_iconv+:} false; then :
14442 $as_echo_n "(cached) " >&6
14443 else
14444  
14445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446 /* end confdefs.h. */
14447  
14448 #include <stdlib.h>
14449 #include <iconv.h>
14450 extern
14451 #ifdef __cplusplus
14452 "C"
14453 #endif
14454 #if defined(__STDC__) || defined(__cplusplus)
14455 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14456 #else
14457 size_t iconv();
14458 #endif
14459  
14460 int
14461 main ()
14462 {
14463  
14464 ;
14465 return 0;
14466 }
14467 _ACEOF
14468 if ac_fn_c_try_compile "$LINENO"; then :
14469 am_cv_proto_iconv_arg1=""
14470 else
14471 am_cv_proto_iconv_arg1="const"
14472 fi
14473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14474 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14475 fi
14476  
14477 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
14479 $am_cv_proto_iconv" >&5
14480 $as_echo "
14481 $am_cv_proto_iconv" >&6; }
14482  
14483 cat >>confdefs.h <<_ACEOF
14484 #define ICONV_CONST $am_cv_proto_iconv_arg1
14485 _ACEOF
14486  
14487  
14488 fi
14489  
14490  
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14492 $as_echo_n "checking whether NLS is requested... " >&6; }
14493 # Check whether --enable-nls was given.
14494 if test "${enable_nls+set}" = set; then :
14495 enableval=$enable_nls; USE_NLS=$enableval
14496 else
14497 USE_NLS=yes
14498 fi
14499  
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14501 $as_echo "$USE_NLS" >&6; }
14502  
14503  
14504  
14505  
14506 GETTEXT_MACRO_VERSION=0.18
14507  
14508  
14509  
14510  
14511 # Prepare PATH_SEPARATOR.
14512 # The user is always right.
14513 if test "${PATH_SEPARATOR+set}" != set; then
14514 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14515 # contains only /bin. Note that ksh looks also at the FPATH variable,
14516 # so we have to set that as well for the test.
14517 PATH_SEPARATOR=:
14518 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14519 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14520 || PATH_SEPARATOR=';'
14521 }
14522 fi
14523  
14524 # Find out how to test for executable files. Don't use a zero-byte file,
14525 # as systems may use methods other than mode bits to determine executability.
14526 cat >conf$$.file <<_ASEOF
14527 #! /bin/sh
14528 exit 0
14529 _ASEOF
14530 chmod +x conf$$.file
14531 if test -x conf$$.file >/dev/null 2>&1; then
14532 ac_executable_p="test -x"
14533 else
14534 ac_executable_p="test -f"
14535 fi
14536 rm -f conf$$.file
14537  
14538 # Extract the first word of "msgfmt", so it can be a program name with args.
14539 set dummy msgfmt; ac_word=$2
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14541 $as_echo_n "checking for $ac_word... " >&6; }
14542 if ${ac_cv_path_MSGFMT+:} false; then :
14543 $as_echo_n "(cached) " >&6
14544 else
14545 case "$MSGFMT" in
14546 [\\/]* | ?:[\\/]*)
14547 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14548 ;;
14549 *)
14550 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14551 for ac_dir in $PATH; do
14552 IFS="$ac_save_IFS"
14553 test -z "$ac_dir" && ac_dir=.
14554 for ac_exec_ext in '' $ac_executable_extensions; do
14555 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14556 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14557 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14558 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14559 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14560 break 2
14561 fi
14562 fi
14563 done
14564 done
14565 IFS="$ac_save_IFS"
14566 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14567 ;;
14568 esac
14569 fi
14570 MSGFMT="$ac_cv_path_MSGFMT"
14571 if test "$MSGFMT" != ":"; then
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14573 $as_echo "$MSGFMT" >&6; }
14574 else
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14576 $as_echo "no" >&6; }
14577 fi
14578  
14579 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14580 set dummy gmsgfmt; ac_word=$2
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14582 $as_echo_n "checking for $ac_word... " >&6; }
14583 if ${ac_cv_path_GMSGFMT+:} false; then :
14584 $as_echo_n "(cached) " >&6
14585 else
14586 case $GMSGFMT in
14587 [\\/]* | ?:[\\/]*)
14588 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14589 ;;
14590 *)
14591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14592 for as_dir in $PATH
14593 do
14594 IFS=$as_save_IFS
14595 test -z "$as_dir" && as_dir=.
14596 for ac_exec_ext in '' $ac_executable_extensions; do
14597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14598 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14600 break 2
14601 fi
14602 done
14603 done
14604 IFS=$as_save_IFS
14605  
14606 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14607 ;;
14608 esac
14609 fi
14610 GMSGFMT=$ac_cv_path_GMSGFMT
14611 if test -n "$GMSGFMT"; then
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14613 $as_echo "$GMSGFMT" >&6; }
14614 else
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14616 $as_echo "no" >&6; }
14617 fi
14618  
14619  
14620  
14621 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14622 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14623 *) MSGFMT_015=$MSGFMT ;;
14624 esac
14625  
14626 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14627 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14628 *) GMSGFMT_015=$GMSGFMT ;;
14629 esac
14630  
14631  
14632  
14633 # Prepare PATH_SEPARATOR.
14634 # The user is always right.
14635 if test "${PATH_SEPARATOR+set}" != set; then
14636 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14637 # contains only /bin. Note that ksh looks also at the FPATH variable,
14638 # so we have to set that as well for the test.
14639 PATH_SEPARATOR=:
14640 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14641 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14642 || PATH_SEPARATOR=';'
14643 }
14644 fi
14645  
14646 # Find out how to test for executable files. Don't use a zero-byte file,
14647 # as systems may use methods other than mode bits to determine executability.
14648 cat >conf$$.file <<_ASEOF
14649 #! /bin/sh
14650 exit 0
14651 _ASEOF
14652 chmod +x conf$$.file
14653 if test -x conf$$.file >/dev/null 2>&1; then
14654 ac_executable_p="test -x"
14655 else
14656 ac_executable_p="test -f"
14657 fi
14658 rm -f conf$$.file
14659  
14660 # Extract the first word of "xgettext", so it can be a program name with args.
14661 set dummy xgettext; ac_word=$2
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14663 $as_echo_n "checking for $ac_word... " >&6; }
14664 if ${ac_cv_path_XGETTEXT+:} false; then :
14665 $as_echo_n "(cached) " >&6
14666 else
14667 case "$XGETTEXT" in
14668 [\\/]* | ?:[\\/]*)
14669 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14670 ;;
14671 *)
14672 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14673 for ac_dir in $PATH; do
14674 IFS="$ac_save_IFS"
14675 test -z "$ac_dir" && ac_dir=.
14676 for ac_exec_ext in '' $ac_executable_extensions; do
14677 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14678 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14679 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14680 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14681 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14682 break 2
14683 fi
14684 fi
14685 done
14686 done
14687 IFS="$ac_save_IFS"
14688 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14689 ;;
14690 esac
14691 fi
14692 XGETTEXT="$ac_cv_path_XGETTEXT"
14693 if test "$XGETTEXT" != ":"; then
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14695 $as_echo "$XGETTEXT" >&6; }
14696 else
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14698 $as_echo "no" >&6; }
14699 fi
14700  
14701 rm -f messages.po
14702  
14703 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14704 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14705 *) XGETTEXT_015=$XGETTEXT ;;
14706 esac
14707  
14708  
14709  
14710 # Prepare PATH_SEPARATOR.
14711 # The user is always right.
14712 if test "${PATH_SEPARATOR+set}" != set; then
14713 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14714 # contains only /bin. Note that ksh looks also at the FPATH variable,
14715 # so we have to set that as well for the test.
14716 PATH_SEPARATOR=:
14717 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14718 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14719 || PATH_SEPARATOR=';'
14720 }
14721 fi
14722  
14723 # Find out how to test for executable files. Don't use a zero-byte file,
14724 # as systems may use methods other than mode bits to determine executability.
14725 cat >conf$$.file <<_ASEOF
14726 #! /bin/sh
14727 exit 0
14728 _ASEOF
14729 chmod +x conf$$.file
14730 if test -x conf$$.file >/dev/null 2>&1; then
14731 ac_executable_p="test -x"
14732 else
14733 ac_executable_p="test -f"
14734 fi
14735 rm -f conf$$.file
14736  
14737 # Extract the first word of "msgmerge", so it can be a program name with args.
14738 set dummy msgmerge; ac_word=$2
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14740 $as_echo_n "checking for $ac_word... " >&6; }
14741 if ${ac_cv_path_MSGMERGE+:} false; then :
14742 $as_echo_n "(cached) " >&6
14743 else
14744 case "$MSGMERGE" in
14745 [\\/]* | ?:[\\/]*)
14746 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14747 ;;
14748 *)
14749 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14750 for ac_dir in $PATH; do
14751 IFS="$ac_save_IFS"
14752 test -z "$ac_dir" && ac_dir=.
14753 for ac_exec_ext in '' $ac_executable_extensions; do
14754 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14755 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14756 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14757 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14758 break 2
14759 fi
14760 fi
14761 done
14762 done
14763 IFS="$ac_save_IFS"
14764 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14765 ;;
14766 esac
14767 fi
14768 MSGMERGE="$ac_cv_path_MSGMERGE"
14769 if test "$MSGMERGE" != ":"; then
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14771 $as_echo "$MSGMERGE" >&6; }
14772 else
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14774 $as_echo "no" >&6; }
14775 fi
14776  
14777  
14778 test -n "$localedir" || localedir='${datadir}/locale'
14779  
14780  
14781 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14782  
14783  
14784 ac_config_commands="$ac_config_commands po-directories"
14785  
14786  
14787  
14788  
14789  
14790  
14791  
14792  
14793  
14794  
14795  
14796  
14797  
14798  
14799  
14800  
14801  
14802  
14803  
14804  
14805  
14806  
14807  
14808  
14809  
14810  
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14812 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14813 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14814 $as_echo_n "(cached) " >&6
14815 else
14816 gt_save_LIBS="$LIBS"
14817 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14819 /* end confdefs.h. */
14820 #include <CoreFoundation/CFPreferences.h>
14821 int
14822 main ()
14823 {
14824 CFPreferencesCopyAppValue(NULL, NULL)
14825 ;
14826 return 0;
14827 }
14828 _ACEOF
14829 if ac_fn_c_try_link "$LINENO"; then :
14830 gt_cv_func_CFPreferencesCopyAppValue=yes
14831 else
14832 gt_cv_func_CFPreferencesCopyAppValue=no
14833 fi
14834 rm -f core conftest.err conftest.$ac_objext \
14835 conftest$ac_exeext conftest.$ac_ext
14836 LIBS="$gt_save_LIBS"
14837 fi
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14839 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14840 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14841  
14842 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14843  
14844 fi
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14846 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14847 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14848 $as_echo_n "(cached) " >&6
14849 else
14850 gt_save_LIBS="$LIBS"
14851 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14853 /* end confdefs.h. */
14854 #include <CoreFoundation/CFLocale.h>
14855 int
14856 main ()
14857 {
14858 CFLocaleCopyCurrent();
14859 ;
14860 return 0;
14861 }
14862 _ACEOF
14863 if ac_fn_c_try_link "$LINENO"; then :
14864 gt_cv_func_CFLocaleCopyCurrent=yes
14865 else
14866 gt_cv_func_CFLocaleCopyCurrent=no
14867 fi
14868 rm -f core conftest.err conftest.$ac_objext \
14869 conftest$ac_exeext conftest.$ac_ext
14870 LIBS="$gt_save_LIBS"
14871 fi
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14873 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14874 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14875  
14876 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14877  
14878 fi
14879 INTL_MACOSX_LIBS=
14880 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14881 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14882 fi
14883  
14884  
14885  
14886  
14887  
14888  
14889 LIBINTL=
14890 LTLIBINTL=
14891 POSUB=
14892  
14893 case " $gt_needs " in
14894 *" need-formatstring-macros "*) gt_api_version=3 ;;
14895 *" need-ngettext "*) gt_api_version=2 ;;
14896 *) gt_api_version=1 ;;
14897 esac
14898 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14899 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14900  
14901 if test "$USE_NLS" = "yes"; then
14902 gt_use_preinstalled_gnugettext=no
14903  
14904  
14905 if test $gt_api_version -ge 3; then
14906 gt_revision_test_code='
14907 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14908 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14909 #endif
14910 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14911 '
14912 else
14913 gt_revision_test_code=
14914 fi
14915 if test $gt_api_version -ge 2; then
14916 gt_expression_test_code=' + * ngettext ("", "", 0)'
14917 else
14918 gt_expression_test_code=
14919 fi
14920  
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14922 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14923 if eval \${$gt_func_gnugettext_libc+:} false; then :
14924 $as_echo_n "(cached) " >&6
14925 else
14926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14927 /* end confdefs.h. */
14928  
14929 #include <libintl.h>
14930 $gt_revision_test_code
14931 extern int _nl_msg_cat_cntr;
14932 extern int *_nl_domain_bindings;
14933  
14934 int
14935 main ()
14936 {
14937  
14938 bindtextdomain ("", "");
14939 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14940  
14941 ;
14942 return 0;
14943 }
14944 _ACEOF
14945 if ac_fn_c_try_link "$LINENO"; then :
14946 eval "$gt_func_gnugettext_libc=yes"
14947 else
14948 eval "$gt_func_gnugettext_libc=no"
14949 fi
14950 rm -f core conftest.err conftest.$ac_objext \
14951 conftest$ac_exeext conftest.$ac_ext
14952 fi
14953 eval ac_res=\$$gt_func_gnugettext_libc
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14955 $as_echo "$ac_res" >&6; }
14956  
14957 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14958  
14959  
14960  
14961  
14962  
14963 am_save_CPPFLAGS="$CPPFLAGS"
14964  
14965 for element in $INCICONV; do
14966 haveit=
14967 for x in $CPPFLAGS; do
14968  
14969 acl_save_prefix="$prefix"
14970 prefix="$acl_final_prefix"
14971 acl_save_exec_prefix="$exec_prefix"
14972 exec_prefix="$acl_final_exec_prefix"
14973 eval x=\"$x\"
14974 exec_prefix="$acl_save_exec_prefix"
14975 prefix="$acl_save_prefix"
14976  
14977 if test "X$x" = "X$element"; then
14978 haveit=yes
14979 break
14980 fi
14981 done
14982 if test -z "$haveit"; then
14983 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14984 fi
14985 done
14986  
14987  
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14989 $as_echo_n "checking for iconv... " >&6; }
14990 if ${am_cv_func_iconv+:} false; then :
14991 $as_echo_n "(cached) " >&6
14992 else
14993  
14994 am_cv_func_iconv="no, consider installing GNU libiconv"
14995 am_cv_lib_iconv=no
14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h. */
14998  
14999 #include <stdlib.h>
15000 #include <iconv.h>
15001  
15002 int
15003 main ()
15004 {
15005 iconv_t cd = iconv_open("","");
15006 iconv(cd,NULL,NULL,NULL,NULL);
15007 iconv_close(cd);
15008 ;
15009 return 0;
15010 }
15011 _ACEOF
15012 if ac_fn_c_try_link "$LINENO"; then :
15013 am_cv_func_iconv=yes
15014 fi
15015 rm -f core conftest.err conftest.$ac_objext \
15016 conftest$ac_exeext conftest.$ac_ext
15017 if test "$am_cv_func_iconv" != yes; then
15018 am_save_LIBS="$LIBS"
15019 LIBS="$LIBS $LIBICONV"
15020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021 /* end confdefs.h. */
15022  
15023 #include <stdlib.h>
15024 #include <iconv.h>
15025  
15026 int
15027 main ()
15028 {
15029 iconv_t cd = iconv_open("","");
15030 iconv(cd,NULL,NULL,NULL,NULL);
15031 iconv_close(cd);
15032 ;
15033 return 0;
15034 }
15035 _ACEOF
15036 if ac_fn_c_try_link "$LINENO"; then :
15037 am_cv_lib_iconv=yes
15038 am_cv_func_iconv=yes
15039 fi
15040 rm -f core conftest.err conftest.$ac_objext \
15041 conftest$ac_exeext conftest.$ac_ext
15042 LIBS="$am_save_LIBS"
15043 fi
15044  
15045 fi
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15047 $as_echo "$am_cv_func_iconv" >&6; }
15048 if test "$am_cv_func_iconv" = yes; then
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15050 $as_echo_n "checking for working iconv... " >&6; }
15051 if ${am_cv_func_iconv_works+:} false; then :
15052 $as_echo_n "(cached) " >&6
15053 else
15054  
15055 am_save_LIBS="$LIBS"
15056 if test $am_cv_lib_iconv = yes; then
15057 LIBS="$LIBS $LIBICONV"
15058 fi
15059 if test "$cross_compiling" = yes; then :
15060  
15061 case "$host_os" in
15062 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15063 *) am_cv_func_iconv_works="guessing yes" ;;
15064 esac
15065  
15066 else
15067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15068 /* end confdefs.h. */
15069  
15070 #include <iconv.h>
15071 #include <string.h>
15072 int main ()
15073 {
15074 int result = 0;
15075 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15076 returns. */
15077 {
15078 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15079 if (cd_utf8_to_88591 != (iconv_t)(-1))
15080 {
15081 static const char input[] = "\342\202\254"; /* EURO SIGN */
15082 char buf[10];
15083 const char *inptr = input;
15084 size_t inbytesleft = strlen (input);
15085 char *outptr = buf;
15086 size_t outbytesleft = sizeof (buf);
15087 size_t res = iconv (cd_utf8_to_88591,
15088 (char **) &inptr, &inbytesleft,
15089 &outptr, &outbytesleft);
15090 if (res == 0)
15091 result |= 1;
15092 iconv_close (cd_utf8_to_88591);
15093 }
15094 }
15095 /* Test against Solaris 10 bug: Failures are not distinguishable from
15096 successful returns. */
15097 {
15098 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15099 if (cd_ascii_to_88591 != (iconv_t)(-1))
15100 {
15101 static const char input[] = "\263";
15102 char buf[10];
15103 const char *inptr = input;
15104 size_t inbytesleft = strlen (input);
15105 char *outptr = buf;
15106 size_t outbytesleft = sizeof (buf);
15107 size_t res = iconv (cd_ascii_to_88591,
15108 (char **) &inptr, &inbytesleft,
15109 &outptr, &outbytesleft);
15110 if (res == 0)
15111 result |= 2;
15112 iconv_close (cd_ascii_to_88591);
15113 }
15114 }
15115 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
15116 {
15117 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
15118 if (cd_88591_to_utf8 != (iconv_t)(-1))
15119 {
15120 static const char input[] = "\304";
15121 static char buf[2] = { (char)0xDE, (char)0xAD };
15122 const char *inptr = input;
15123 size_t inbytesleft = 1;
15124 char *outptr = buf;
15125 size_t outbytesleft = 1;
15126 size_t res = iconv (cd_88591_to_utf8,
15127 (char **) &inptr, &inbytesleft,
15128 &outptr, &outbytesleft);
15129 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
15130 result |= 4;
15131 iconv_close (cd_88591_to_utf8);
15132 }
15133 }
15134 #if 0 /* This bug could be worked around by the caller. */
15135 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
15136 {
15137 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15138 if (cd_88591_to_utf8 != (iconv_t)(-1))
15139 {
15140 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15141 char buf[50];
15142 const char *inptr = input;
15143 size_t inbytesleft = strlen (input);
15144 char *outptr = buf;
15145 size_t outbytesleft = sizeof (buf);
15146 size_t res = iconv (cd_88591_to_utf8,
15147 (char **) &inptr, &inbytesleft,
15148 &outptr, &outbytesleft);
15149 if ((int)res > 0)
15150 result |= 8;
15151 iconv_close (cd_88591_to_utf8);
15152 }
15153 }
15154 #endif
15155 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15156 provided. */
15157 if (/* Try standardized names. */
15158 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15159 /* Try IRIX, OSF/1 names. */
15160 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15161 /* Try AIX names. */
15162 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15163 /* Try HP-UX names. */
15164 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15165 result |= 16;
15166 return result;
15167 }
15168 _ACEOF
15169 if ac_fn_c_try_run "$LINENO"; then :
15170 am_cv_func_iconv_works=yes
15171 else
15172 am_cv_func_iconv_works=no
15173 fi
15174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15175 conftest.$ac_objext conftest.beam conftest.$ac_ext
15176 fi
15177  
15178 LIBS="$am_save_LIBS"
15179  
15180 fi
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15182 $as_echo "$am_cv_func_iconv_works" >&6; }
15183 case "$am_cv_func_iconv_works" in
15184 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15185 *) am_func_iconv=yes ;;
15186 esac
15187 else
15188 am_func_iconv=no am_cv_lib_iconv=no
15189 fi
15190 if test "$am_func_iconv" = yes; then
15191  
15192 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15193  
15194 fi
15195 if test "$am_cv_lib_iconv" = yes; then
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15197 $as_echo_n "checking how to link with libiconv... " >&6; }
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15199 $as_echo "$LIBICONV" >&6; }
15200 else
15201 CPPFLAGS="$am_save_CPPFLAGS"
15202 LIBICONV=
15203 LTLIBICONV=
15204 fi
15205  
15206  
15207  
15208  
15209  
15210  
15211  
15212  
15213  
15214  
15215  
15216 use_additional=yes
15217  
15218 acl_save_prefix="$prefix"
15219 prefix="$acl_final_prefix"
15220 acl_save_exec_prefix="$exec_prefix"
15221 exec_prefix="$acl_final_exec_prefix"
15222  
15223 eval additional_includedir=\"$includedir\"
15224 eval additional_libdir=\"$libdir\"
15225  
15226 exec_prefix="$acl_save_exec_prefix"
15227 prefix="$acl_save_prefix"
15228  
15229  
15230 # Check whether --with-libintl-prefix was given.
15231 if test "${with_libintl_prefix+set}" = set; then :
15232 withval=$with_libintl_prefix;
15233 if test "X$withval" = "Xno"; then
15234 use_additional=no
15235 else
15236 if test "X$withval" = "X"; then
15237  
15238 acl_save_prefix="$prefix"
15239 prefix="$acl_final_prefix"
15240 acl_save_exec_prefix="$exec_prefix"
15241 exec_prefix="$acl_final_exec_prefix"
15242  
15243 eval additional_includedir=\"$includedir\"
15244 eval additional_libdir=\"$libdir\"
15245  
15246 exec_prefix="$acl_save_exec_prefix"
15247 prefix="$acl_save_prefix"
15248  
15249 else
15250 additional_includedir="$withval/include"
15251 additional_libdir="$withval/$acl_libdirstem"
15252 if test "$acl_libdirstem2" != "$acl_libdirstem" \
15253 && ! test -d "$withval/$acl_libdirstem"; then
15254 additional_libdir="$withval/$acl_libdirstem2"
15255 fi
15256 fi
15257 fi
15258  
15259 fi
15260  
15261 LIBINTL=
15262 LTLIBINTL=
15263 INCINTL=
15264 LIBINTL_PREFIX=
15265 HAVE_LIBINTL=
15266 rpathdirs=
15267 ltrpathdirs=
15268 names_already_handled=
15269 names_next_round='intl '
15270 while test -n "$names_next_round"; do
15271 names_this_round="$names_next_round"
15272 names_next_round=
15273 for name in $names_this_round; do
15274 already_handled=
15275 for n in $names_already_handled; do
15276 if test "$n" = "$name"; then
15277 already_handled=yes
15278 break
15279 fi
15280 done
15281 if test -z "$already_handled"; then
15282 names_already_handled="$names_already_handled $name"
15283 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
15284 eval value=\"\$HAVE_LIB$uppername\"
15285 if test -n "$value"; then
15286 if test "$value" = yes; then
15287 eval value=\"\$LIB$uppername\"
15288 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15289 eval value=\"\$LTLIB$uppername\"
15290 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15291 else
15292 :
15293 fi
15294 else
15295 found_dir=
15296 found_la=
15297 found_so=
15298 found_a=
15299 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15300 if test -n "$acl_shlibext"; then
15301 shrext=".$acl_shlibext" # typically: shrext=.so
15302 else
15303 shrext=
15304 fi
15305 if test $use_additional = yes; then
15306 dir="$additional_libdir"
15307 if test -n "$acl_shlibext"; then
15308 if test -f "$dir/$libname$shrext"; then
15309 found_dir="$dir"
15310 found_so="$dir/$libname$shrext"
15311 else
15312 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15313 ver=`(cd "$dir" && \
15314 for f in "$libname$shrext".*; do echo "$f"; done \
15315 | sed -e "s,^$libname$shrext\\\\.,," \
15316 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15317 | sed 1q ) 2>/dev/null`
15318 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15319 found_dir="$dir"
15320 found_so="$dir/$libname$shrext.$ver"
15321 fi
15322 else
15323 eval library_names=\"$acl_library_names_spec\"
15324 for f in $library_names; do
15325 if test -f "$dir/$f"; then
15326 found_dir="$dir"
15327 found_so="$dir/$f"
15328 break
15329 fi
15330 done
15331 fi
15332 fi
15333 fi
15334 if test "X$found_dir" = "X"; then
15335 if test -f "$dir/$libname.$acl_libext"; then
15336 found_dir="$dir"
15337 found_a="$dir/$libname.$acl_libext"
15338 fi
15339 fi
15340 if test "X$found_dir" != "X"; then
15341 if test -f "$dir/$libname.la"; then
15342 found_la="$dir/$libname.la"
15343 fi
15344 fi
15345 fi
15346 if test "X$found_dir" = "X"; then
15347 for x in $LDFLAGS $LTLIBINTL; do
15348  
15349 acl_save_prefix="$prefix"
15350 prefix="$acl_final_prefix"
15351 acl_save_exec_prefix="$exec_prefix"
15352 exec_prefix="$acl_final_exec_prefix"
15353 eval x=\"$x\"
15354 exec_prefix="$acl_save_exec_prefix"
15355 prefix="$acl_save_prefix"
15356  
15357 case "$x" in
15358 -L*)
15359 dir=`echo "X$x" | sed -e 's/^X-L//'`
15360 if test -n "$acl_shlibext"; then
15361 if test -f "$dir/$libname$shrext"; then
15362 found_dir="$dir"
15363 found_so="$dir/$libname$shrext"
15364 else
15365 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15366 ver=`(cd "$dir" && \
15367 for f in "$libname$shrext".*; do echo "$f"; done \
15368 | sed -e "s,^$libname$shrext\\\\.,," \
15369 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15370 | sed 1q ) 2>/dev/null`
15371 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15372 found_dir="$dir"
15373 found_so="$dir/$libname$shrext.$ver"
15374 fi
15375 else
15376 eval library_names=\"$acl_library_names_spec\"
15377 for f in $library_names; do
15378 if test -f "$dir/$f"; then
15379 found_dir="$dir"
15380 found_so="$dir/$f"
15381 break
15382 fi
15383 done
15384 fi
15385 fi
15386 fi
15387 if test "X$found_dir" = "X"; then
15388 if test -f "$dir/$libname.$acl_libext"; then
15389 found_dir="$dir"
15390 found_a="$dir/$libname.$acl_libext"
15391 fi
15392 fi
15393 if test "X$found_dir" != "X"; then
15394 if test -f "$dir/$libname.la"; then
15395 found_la="$dir/$libname.la"
15396 fi
15397 fi
15398 ;;
15399 esac
15400 if test "X$found_dir" != "X"; then
15401 break
15402 fi
15403 done
15404 fi
15405 if test "X$found_dir" != "X"; then
15406 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15407 if test "X$found_so" != "X"; then
15408 if test "$enable_rpath" = no \
15409 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15410 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15411 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15412 else
15413 haveit=
15414 for x in $ltrpathdirs; do
15415 if test "X$x" = "X$found_dir"; then
15416 haveit=yes
15417 break
15418 fi
15419 done
15420 if test -z "$haveit"; then
15421 ltrpathdirs="$ltrpathdirs $found_dir"
15422 fi
15423 if test "$acl_hardcode_direct" = yes; then
15424 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15425 else
15426 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15427 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15428 haveit=
15429 for x in $rpathdirs; do
15430 if test "X$x" = "X$found_dir"; then
15431 haveit=yes
15432 break
15433 fi
15434 done
15435 if test -z "$haveit"; then
15436 rpathdirs="$rpathdirs $found_dir"
15437 fi
15438 else
15439 haveit=
15440 for x in $LDFLAGS $LIBINTL; do
15441  
15442 acl_save_prefix="$prefix"
15443 prefix="$acl_final_prefix"
15444 acl_save_exec_prefix="$exec_prefix"
15445 exec_prefix="$acl_final_exec_prefix"
15446 eval x=\"$x\"
15447 exec_prefix="$acl_save_exec_prefix"
15448 prefix="$acl_save_prefix"
15449  
15450 if test "X$x" = "X-L$found_dir"; then
15451 haveit=yes
15452 break
15453 fi
15454 done
15455 if test -z "$haveit"; then
15456 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15457 fi
15458 if test "$acl_hardcode_minus_L" != no; then
15459 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15460 else
15461 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15462 fi
15463 fi
15464 fi
15465 fi
15466 else
15467 if test "X$found_a" != "X"; then
15468 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15469 else
15470 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15471 fi
15472 fi
15473 additional_includedir=
15474 case "$found_dir" in
15475 */$acl_libdirstem | */$acl_libdirstem/)
15476 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15477 if test "$name" = 'intl'; then
15478 LIBINTL_PREFIX="$basedir"
15479 fi
15480 additional_includedir="$basedir/include"
15481 ;;
15482 */$acl_libdirstem2 | */$acl_libdirstem2/)
15483 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15484 if test "$name" = 'intl'; then
15485 LIBINTL_PREFIX="$basedir"
15486 fi
15487 additional_includedir="$basedir/include"
15488 ;;
15489 esac
15490 if test "X$additional_includedir" != "X"; then
15491 if test "X$additional_includedir" != "X/usr/include"; then
15492 haveit=
15493 if test "X$additional_includedir" = "X/usr/local/include"; then
15494 if test -n "$GCC"; then
15495 case $host_os in
15496 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15497 esac
15498 fi
15499 fi
15500 if test -z "$haveit"; then
15501 for x in $CPPFLAGS $INCINTL; do
15502  
15503 acl_save_prefix="$prefix"
15504 prefix="$acl_final_prefix"
15505 acl_save_exec_prefix="$exec_prefix"
15506 exec_prefix="$acl_final_exec_prefix"
15507 eval x=\"$x\"
15508 exec_prefix="$acl_save_exec_prefix"
15509 prefix="$acl_save_prefix"
15510  
15511 if test "X$x" = "X-I$additional_includedir"; then
15512 haveit=yes
15513 break
15514 fi
15515 done
15516 if test -z "$haveit"; then
15517 if test -d "$additional_includedir"; then
15518 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15519 fi
15520 fi
15521 fi
15522 fi
15523 fi
15524 if test -n "$found_la"; then
15525 save_libdir="$libdir"
15526 case "$found_la" in
15527 */* | *\\*) . "$found_la" ;;
15528 *) . "./$found_la" ;;
15529 esac
15530 libdir="$save_libdir"
15531 for dep in $dependency_libs; do
15532 case "$dep" in
15533 -L*)
15534 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15535 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15536 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15537 haveit=
15538 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15539 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15540 if test -n "$GCC"; then
15541 case $host_os in
15542 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15543 esac
15544 fi
15545 fi
15546 if test -z "$haveit"; then
15547 haveit=
15548 for x in $LDFLAGS $LIBINTL; do
15549  
15550 acl_save_prefix="$prefix"
15551 prefix="$acl_final_prefix"
15552 acl_save_exec_prefix="$exec_prefix"
15553 exec_prefix="$acl_final_exec_prefix"
15554 eval x=\"$x\"
15555 exec_prefix="$acl_save_exec_prefix"
15556 prefix="$acl_save_prefix"
15557  
15558 if test "X$x" = "X-L$additional_libdir"; then
15559 haveit=yes
15560 break
15561 fi
15562 done
15563 if test -z "$haveit"; then
15564 if test -d "$additional_libdir"; then
15565 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15566 fi
15567 fi
15568 haveit=
15569 for x in $LDFLAGS $LTLIBINTL; do
15570  
15571 acl_save_prefix="$prefix"
15572 prefix="$acl_final_prefix"
15573 acl_save_exec_prefix="$exec_prefix"
15574 exec_prefix="$acl_final_exec_prefix"
15575 eval x=\"$x\"
15576 exec_prefix="$acl_save_exec_prefix"
15577 prefix="$acl_save_prefix"
15578  
15579 if test "X$x" = "X-L$additional_libdir"; then
15580 haveit=yes
15581 break
15582 fi
15583 done
15584 if test -z "$haveit"; then
15585 if test -d "$additional_libdir"; then
15586 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15587 fi
15588 fi
15589 fi
15590 fi
15591 ;;
15592 -R*)
15593 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15594 if test "$enable_rpath" != no; then
15595 haveit=
15596 for x in $rpathdirs; do
15597 if test "X$x" = "X$dir"; then
15598 haveit=yes
15599 break
15600 fi
15601 done
15602 if test -z "$haveit"; then
15603 rpathdirs="$rpathdirs $dir"
15604 fi
15605 haveit=
15606 for x in $ltrpathdirs; do
15607 if test "X$x" = "X$dir"; then
15608 haveit=yes
15609 break
15610 fi
15611 done
15612 if test -z "$haveit"; then
15613 ltrpathdirs="$ltrpathdirs $dir"
15614 fi
15615 fi
15616 ;;
15617 -l*)
15618 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15619 ;;
15620 *.la)
15621 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15622 ;;
15623 *)
15624 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15625 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15626 ;;
15627 esac
15628 done
15629 fi
15630 else
15631 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15632 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15633 fi
15634 fi
15635 fi
15636 done
15637 done
15638 if test "X$rpathdirs" != "X"; then
15639 if test -n "$acl_hardcode_libdir_separator"; then
15640 alldirs=
15641 for found_dir in $rpathdirs; do
15642 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15643 done
15644 acl_save_libdir="$libdir"
15645 libdir="$alldirs"
15646 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15647 libdir="$acl_save_libdir"
15648 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15649 else
15650 for found_dir in $rpathdirs; do
15651 acl_save_libdir="$libdir"
15652 libdir="$found_dir"
15653 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15654 libdir="$acl_save_libdir"
15655 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15656 done
15657 fi
15658 fi
15659 if test "X$ltrpathdirs" != "X"; then
15660 for found_dir in $ltrpathdirs; do
15661 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15662 done
15663 fi
15664  
15665  
15666  
15667  
15668  
15669  
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15671 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15672 if eval \${$gt_func_gnugettext_libintl+:} false; then :
15673 $as_echo_n "(cached) " >&6
15674 else
15675 gt_save_CPPFLAGS="$CPPFLAGS"
15676 CPPFLAGS="$CPPFLAGS $INCINTL"
15677 gt_save_LIBS="$LIBS"
15678 LIBS="$LIBS $LIBINTL"
15679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680 /* end confdefs.h. */
15681  
15682 #include <libintl.h>
15683 $gt_revision_test_code
15684 extern int _nl_msg_cat_cntr;
15685 extern
15686 #ifdef __cplusplus
15687 "C"
15688 #endif
15689 const char *_nl_expand_alias (const char *);
15690  
15691 int
15692 main ()
15693 {
15694  
15695 bindtextdomain ("", "");
15696 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15697  
15698 ;
15699 return 0;
15700 }
15701 _ACEOF
15702 if ac_fn_c_try_link "$LINENO"; then :
15703 eval "$gt_func_gnugettext_libintl=yes"
15704 else
15705 eval "$gt_func_gnugettext_libintl=no"
15706 fi
15707 rm -f core conftest.err conftest.$ac_objext \
15708 conftest$ac_exeext conftest.$ac_ext
15709 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15710 LIBS="$LIBS $LIBICONV"
15711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15712 /* end confdefs.h. */
15713  
15714 #include <libintl.h>
15715 $gt_revision_test_code
15716 extern int _nl_msg_cat_cntr;
15717 extern
15718 #ifdef __cplusplus
15719 "C"
15720 #endif
15721 const char *_nl_expand_alias (const char *);
15722  
15723 int
15724 main ()
15725 {
15726  
15727 bindtextdomain ("", "");
15728 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15729  
15730 ;
15731 return 0;
15732 }
15733 _ACEOF
15734 if ac_fn_c_try_link "$LINENO"; then :
15735 LIBINTL="$LIBINTL $LIBICONV"
15736 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15737 eval "$gt_func_gnugettext_libintl=yes"
15738  
15739 fi
15740 rm -f core conftest.err conftest.$ac_objext \
15741 conftest$ac_exeext conftest.$ac_ext
15742 fi
15743 CPPFLAGS="$gt_save_CPPFLAGS"
15744 LIBS="$gt_save_LIBS"
15745 fi
15746 eval ac_res=\$$gt_func_gnugettext_libintl
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15748 $as_echo "$ac_res" >&6; }
15749 fi
15750  
15751 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15752 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15753 && test "$PACKAGE" != gettext-runtime \
15754 && test "$PACKAGE" != gettext-tools; }; then
15755 gt_use_preinstalled_gnugettext=yes
15756 else
15757 LIBINTL=
15758 LTLIBINTL=
15759 INCINTL=
15760 fi
15761  
15762  
15763  
15764 if test -n "$INTL_MACOSX_LIBS"; then
15765 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15766 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15767 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15768 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15769 fi
15770 fi
15771  
15772 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15773 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15774  
15775 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15776  
15777 else
15778 USE_NLS=no
15779 fi
15780 fi
15781  
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15783 $as_echo_n "checking whether to use NLS... " >&6; }
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15785 $as_echo "$USE_NLS" >&6; }
15786 if test "$USE_NLS" = "yes"; then
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15788 $as_echo_n "checking where the gettext function comes from... " >&6; }
15789 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15790 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15791 gt_source="external libintl"
15792 else
15793 gt_source="libc"
15794 fi
15795 else
15796 gt_source="included intl directory"
15797 fi
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15799 $as_echo "$gt_source" >&6; }
15800 fi
15801  
15802 if test "$USE_NLS" = "yes"; then
15803  
15804 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15805 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15807 $as_echo_n "checking how to link with libintl... " >&6; }
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15809 $as_echo "$LIBINTL" >&6; }
15810  
15811 for element in $INCINTL; do
15812 haveit=
15813 for x in $CPPFLAGS; do
15814  
15815 acl_save_prefix="$prefix"
15816 prefix="$acl_final_prefix"
15817 acl_save_exec_prefix="$exec_prefix"
15818 exec_prefix="$acl_final_exec_prefix"
15819 eval x=\"$x\"
15820 exec_prefix="$acl_save_exec_prefix"
15821 prefix="$acl_save_prefix"
15822  
15823 if test "X$x" = "X$element"; then
15824 haveit=yes
15825 break
15826 fi
15827 done
15828 if test -z "$haveit"; then
15829 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15830 fi
15831 done
15832  
15833 fi
15834  
15835  
15836 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15837  
15838  
15839 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15840  
15841 fi
15842  
15843 POSUB=po
15844 fi
15845  
15846  
15847  
15848 INTLLIBS="$LIBINTL"
15849  
15850  
15851  
15852  
15853  
15854  
15855  
15856  
15857  
15858  
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15860 $as_echo_n "checking for mbstate_t... " >&6; }
15861 if ${ac_cv_type_mbstate_t+:} false; then :
15862 $as_echo_n "(cached) " >&6
15863 else
15864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15865 /* end confdefs.h. */
15866 $ac_includes_default
15867 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15868 <wchar.h>.
15869 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15870 included before <wchar.h>. */
15871 #include <stddef.h>
15872 #include <stdio.h>
15873 #include <time.h>
15874 #include <wchar.h>
15875 int
15876 main ()
15877 {
15878 mbstate_t x; return sizeof x;
15879 ;
15880 return 0;
15881 }
15882 _ACEOF
15883 if ac_fn_c_try_compile "$LINENO"; then :
15884 ac_cv_type_mbstate_t=yes
15885 else
15886 ac_cv_type_mbstate_t=no
15887 fi
15888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15889 fi
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15891 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15892 if test $ac_cv_type_mbstate_t = yes; then
15893  
15894 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15895  
15896 else
15897  
15898 $as_echo "#define mbstate_t int" >>confdefs.h
15899  
15900 fi
15901  
15902  
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
15904 $as_echo_n "checking for wchar_t... " >&6; }
15905 if ${gt_cv_c_wchar_t+:} false; then :
15906 $as_echo_n "(cached) " >&6
15907 else
15908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909 /* end confdefs.h. */
15910 #include <stddef.h>
15911 wchar_t foo = (wchar_t)'\0';
15912 int
15913 main ()
15914 {
15915  
15916 ;
15917 return 0;
15918 }
15919 _ACEOF
15920 if ac_fn_c_try_compile "$LINENO"; then :
15921 gt_cv_c_wchar_t=yes
15922 else
15923 gt_cv_c_wchar_t=no
15924 fi
15925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15926 fi
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
15928 $as_echo "$gt_cv_c_wchar_t" >&6; }
15929 if test $gt_cv_c_wchar_t = yes; then
15930  
15931 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
15932  
15933 fi
15934  
15935  
15936  
15937 if test "$am_cv_func_iconv" = yes -a -n "$am_cv_proto_iconv_arg1"; then
15938 ICONV_CONST="const"
15939 else
15940 ICONV_CONST=""
15941 fi
15942  
15943  
15944 if test $gt_cv_c_wchar_t = yes; then
15945 HAVE_WCHAR_T=1
15946 else
15947 HAVE_WCHAR_T=0
15948 fi
15949  
15950  
15951 for ac_func in getc_unlocked mbrtowc wcrtomb mbsinit setlocale
15952 do :
15953 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15954 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15955 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15956 cat >>confdefs.h <<_ACEOF
15957 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15958 _ACEOF
15959  
15960 fi
15961 done
15962  
15963  
15964 if test $ac_cv_func_wcrtomb = yes || test $ac_cv_func_mbrtowc = yes; then
15965 USE_MBSTATE_T=1
15966 else
15967 USE_MBSTATE_T=0
15968 fi
15969  
15970  
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> is standalone" >&5
15972 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
15973 if ${gl_cv_header_wchar_h_standalone+:} false; then :
15974 $as_echo_n "(cached) " >&6
15975 else
15976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15977 /* end confdefs.h. */
15978 #include <wchar.h>
15979 wchar_t w;
15980 int
15981 main ()
15982 {
15983  
15984 ;
15985 return 0;
15986 }
15987 _ACEOF
15988 if ac_fn_c_try_compile "$LINENO"; then :
15989 gl_cv_header_wchar_h_standalone=yes
15990 else
15991 gl_cv_header_wchar_h_standalone=no
15992 fi
15993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15994 fi
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_standalone" >&5
15996 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
15997 if test $gl_cv_header_wchar_h_standalone = yes; then
15998 BROKEN_WCHAR_H=0
15999 else
16000 BROKEN_WCHAR_H=1
16001 fi
16002  
16003  
16004 for ac_func in memmove
16005 do :
16006 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
16007 if test "x$ac_cv_func_memmove" = xyes; then :
16008 cat >>confdefs.h <<_ACEOF
16009 #define HAVE_MEMMOVE 1
16010 _ACEOF
16011  
16012 else
16013 SRCLIBOBJS="$SRCLIBOBJS $ac_func.$ac_objext"
16014 fi
16015 done
16016  
16017  
16018  
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16020 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16021 if ${am_cv_langinfo_codeset+:} false; then :
16022 $as_echo_n "(cached) " >&6
16023 else
16024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16025 /* end confdefs.h. */
16026 #include <langinfo.h>
16027 int
16028 main ()
16029 {
16030 char* cs = nl_langinfo(CODESET); return !cs;
16031 ;
16032 return 0;
16033 }
16034 _ACEOF
16035 if ac_fn_c_try_link "$LINENO"; then :
16036 am_cv_langinfo_codeset=yes
16037 else
16038 am_cv_langinfo_codeset=no
16039 fi
16040 rm -f core conftest.err conftest.$ac_objext \
16041 conftest$ac_exeext conftest.$ac_ext
16042  
16043 fi
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
16045 $as_echo "$am_cv_langinfo_codeset" >&6; }
16046 if test $am_cv_langinfo_codeset = yes; then
16047  
16048 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16049  
16050 fi
16051  
16052  
16053  
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
16055 $as_echo_n "checking for working fcntl.h... " >&6; }
16056 if ${gl_cv_header_working_fcntl_h+:} false; then :
16057 $as_echo_n "(cached) " >&6
16058 else
16059 if test "$cross_compiling" = yes; then :
16060 gl_cv_header_working_fcntl_h=cross-compiling
16061 else
16062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16063 /* end confdefs.h. */
16064 #include <sys/types.h>
16065 #include <sys/stat.h>
16066 #include <unistd.h>
16067 #include <fcntl.h>
16068 #ifndef O_NOATIME
16069 #define O_NOATIME 0
16070 #endif
16071 #ifndef O_NOFOLLOW
16072 #define O_NOFOLLOW 0
16073 #endif
16074 static int const constants[] =
16075 {
16076 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
16077 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
16078 };
16079  
16080 int
16081 main ()
16082 {
16083  
16084 int status = !constants;
16085 {
16086 static char const sym[] = "conftest.sym";
16087 if (symlink (".", sym) != 0
16088 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
16089 status |= 32;
16090 unlink (sym);
16091 }
16092 {
16093 static char const file[] = "confdefs.h";
16094 int fd = open (file, O_RDONLY | O_NOATIME);
16095 char c;
16096 struct stat st0, st1;
16097 if (fd < 0
16098 || fstat (fd, &st0) != 0
16099 || sleep (1) != 0
16100 || read (fd, &c, 1) != 1
16101 || close (fd) != 0
16102 || stat (file, &st1) != 0
16103 || st0.st_atime != st1.st_atime)
16104 status |= 64;
16105 }
16106 return status;
16107 ;
16108 return 0;
16109 }
16110 _ACEOF
16111 if ac_fn_c_try_run "$LINENO"; then :
16112 gl_cv_header_working_fcntl_h=yes
16113 else
16114 case $? in #(
16115 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
16116 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
16117 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
16118 *) gl_cv_header_working_fcntl_h='no';;
16119 esac
16120 fi
16121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16122 conftest.$ac_objext conftest.beam conftest.$ac_ext
16123 fi
16124  
16125 fi
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
16127 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
16128  
16129 case $gl_cv_header_working_fcntl_h in #(
16130 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
16131 *) ac_val=1;;
16132 esac
16133  
16134 cat >>confdefs.h <<_ACEOF
16135 #define HAVE_WORKING_O_NOATIME $ac_val
16136 _ACEOF
16137  
16138  
16139 case $gl_cv_header_working_fcntl_h in #(
16140 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
16141 *) ac_val=1;;
16142 esac
16143  
16144 cat >>confdefs.h <<_ACEOF
16145 #define HAVE_WORKING_O_NOFOLLOW $ac_val
16146 _ACEOF
16147  
16148  
16149  
16150  
16151  
16152 for ac_header in wchar.h
16153 do :
16154 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
16155 if test "x$ac_cv_header_wchar_h" = xyes; then :
16156 cat >>confdefs.h <<_ACEOF
16157 #define HAVE_WCHAR_H 1
16158 _ACEOF
16159  
16160 fi
16161  
16162 done
16163  
16164  
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EILSEQ" >&5
16166 $as_echo_n "checking for EILSEQ... " >&6; }
16167 if ${ac_cv_decl_EILSEQ+:} false; then :
16168 $as_echo_n "(cached) " >&6
16169 else
16170  
16171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16172 /* end confdefs.h. */
16173  
16174 #include <errno.h>
16175 #ifdef EILSEQ
16176 yes
16177 #endif
16178  
16179 _ACEOF
16180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16181 $EGREP "yes" >/dev/null 2>&1; then :
16182 have_eilseq=1
16183 fi
16184 rm -f conftest*
16185  
16186 if test -n "$have_eilseq"; then
16187 ac_cv_decl_EILSEQ=yes
16188 else
16189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16190 /* end confdefs.h. */
16191  
16192 #include <errno.h>
16193 #if HAVE_WCHAR_H
16194 #include <wchar.h>
16195 #endif
16196 #ifdef EILSEQ
16197 yes
16198 #endif
16199  
16200 _ACEOF
16201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16202 $EGREP "yes" >/dev/null 2>&1; then :
16203 have_eilseq=1
16204 fi
16205 rm -f conftest*
16206  
16207 if test -n "$have_eilseq"; then
16208 if ac_fn_c_compute_int "$LINENO" "EILSEQ" "ac_cv_decl_EILSEQ" "
16209 #include <errno.h>
16210 #if HAVE_WCHAR_H
16211 #include <wchar.h>
16212 #endif
16213 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16214 #include <stdio.h>
16215 #include <stdlib.h>
16216 "; then :
16217  
16218 fi
16219  
16220  
16221 else
16222 ac_cv_decl_EILSEQ=ENOENT
16223 fi
16224 fi
16225  
16226 fi
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_EILSEQ" >&5
16228 $as_echo "$ac_cv_decl_EILSEQ" >&6; }
16229 if test "$ac_cv_decl_EILSEQ" != yes; then
16230  
16231 cat >>confdefs.h <<_ACEOF
16232 #define EILSEQ $ac_cv_decl_EILSEQ
16233 _ACEOF
16234  
16235 EILSEQ="$ac_cv_decl_EILSEQ"
16236  
16237 fi
16238  
16239  
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking byte ordering" >&5
16241 $as_echo_n "checking byte ordering... " >&6; }
16242 if ${cl_cv_sys_endian+:} false; then :
16243 $as_echo_n "(cached) " >&6
16244 else
16245  
16246 if test "$cross_compiling" = yes; then :
16247 : # must guess the endianness
16248  
16249 else
16250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16251 /* end confdefs.h. */
16252 int main () {
16253 /* Are we little or big endian? From Harbison&Steele. */
16254 union
16255 {
16256 long l;
16257 char c[sizeof (long)];
16258 } u;
16259 u.l = 1;
16260 exit (u.c[0] == 1);
16261 }
16262 _ACEOF
16263 if ac_fn_c_try_run "$LINENO"; then :
16264 cl_cv_sys_endian="big endian"
16265 else
16266 cl_cv_sys_endian="little endian"
16267 fi
16268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16269 conftest.$ac_objext conftest.beam conftest.$ac_ext
16270 fi
16271  
16272 if test -z "$cl_cv_sys_endian"; then
16273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16274 /* end confdefs.h. */
16275 #if defined(m68k) || defined(__m68k__) || defined(mc68000) || defined(mc68020) || defined(__mc68020__) || defined(sparc) || defined(__sparc__) || defined(MIPSEB) || defined(__MIPSEB__) || defined(hppa) || defined(__hppa) || defined(m88000) || defined(__m88k__)
16276 yes
16277 #endif
16278  
16279 _ACEOF
16280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16281 $EGREP "yes" >/dev/null 2>&1; then :
16282 cl_cv_sys_endian="big endian"
16283 fi
16284 rm -f conftest*
16285  
16286 fi
16287 if test -z "$cl_cv_sys_endian"; then
16288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16289 /* end confdefs.h. */
16290 #if defined(i386) || defined(__i386) || defined(__i386__) || defined(_I386) || defined(MIPSEL) || defined(__MIPSEL__) || defined(__alpha)
16291 yes
16292 #endif
16293  
16294 _ACEOF
16295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16296 $EGREP "yes" >/dev/null 2>&1; then :
16297 cl_cv_sys_endian="little endian"
16298 fi
16299 rm -f conftest*
16300  
16301 fi
16302 if test -z "$cl_cv_sys_endian"; then
16303 cl_cv_sys_endian="guessing little endian"
16304 fi
16305  
16306 fi
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_sys_endian" >&5
16308 $as_echo "$cl_cv_sys_endian" >&6; }
16309 case "$cl_cv_sys_endian" in
16310 *little*)
16311  
16312 $as_echo "#define WORDS_LITTLEENDIAN 1" >>confdefs.h
16313 ;;
16314 *big*) ;;
16315 esac
16316  
16317  
16318  
16319  
16320  
16321  
16322  
16323 LIBC_FATAL_STDERR_=1
16324 export LIBC_FATAL_STDERR_
16325  
16326 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16327 if test "x$ac_cv_type_size_t" = xyes; then :
16328  
16329 else
16330  
16331 cat >>confdefs.h <<_ACEOF
16332 #define size_t unsigned int
16333 _ACEOF
16334  
16335 fi
16336  
16337 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16338 # for constant arguments. Useless!
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16340 $as_echo_n "checking for working alloca.h... " >&6; }
16341 if ${ac_cv_working_alloca_h+:} false; then :
16342 $as_echo_n "(cached) " >&6
16343 else
16344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16345 /* end confdefs.h. */
16346 #include <alloca.h>
16347 int
16348 main ()
16349 {
16350 char *p = (char *) alloca (2 * sizeof (int));
16351 if (p) return 0;
16352 ;
16353 return 0;
16354 }
16355 _ACEOF
16356 if ac_fn_c_try_link "$LINENO"; then :
16357 ac_cv_working_alloca_h=yes
16358 else
16359 ac_cv_working_alloca_h=no
16360 fi
16361 rm -f core conftest.err conftest.$ac_objext \
16362 conftest$ac_exeext conftest.$ac_ext
16363 fi
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16365 $as_echo "$ac_cv_working_alloca_h" >&6; }
16366 if test $ac_cv_working_alloca_h = yes; then
16367  
16368 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16369  
16370 fi
16371  
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16373 $as_echo_n "checking for alloca... " >&6; }
16374 if ${ac_cv_func_alloca_works+:} false; then :
16375 $as_echo_n "(cached) " >&6
16376 else
16377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16378 /* end confdefs.h. */
16379 #ifdef __GNUC__
16380 # define alloca __builtin_alloca
16381 #else
16382 # ifdef _MSC_VER
16383 # include <malloc.h>
16384 # define alloca _alloca
16385 # else
16386 # ifdef HAVE_ALLOCA_H
16387 # include <alloca.h>
16388 # else
16389 # ifdef _AIX
16390 #pragma alloca
16391 # else
16392 # ifndef alloca /* predefined by HP cc +Olibcalls */
16393 void *alloca (size_t);
16394 # endif
16395 # endif
16396 # endif
16397 # endif
16398 #endif
16399  
16400 int
16401 main ()
16402 {
16403 char *p = (char *) alloca (1);
16404 if (p) return 0;
16405 ;
16406 return 0;
16407 }
16408 _ACEOF
16409 if ac_fn_c_try_link "$LINENO"; then :
16410 ac_cv_func_alloca_works=yes
16411 else
16412 ac_cv_func_alloca_works=no
16413 fi
16414 rm -f core conftest.err conftest.$ac_objext \
16415 conftest$ac_exeext conftest.$ac_ext
16416 fi
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16418 $as_echo "$ac_cv_func_alloca_works" >&6; }
16419  
16420 if test $ac_cv_func_alloca_works = yes; then
16421  
16422 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16423  
16424 else
16425 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16426 # that cause trouble. Some versions do not even contain alloca or
16427 # contain a buggy version. If you still want to use their alloca,
16428 # use ar to extract alloca.o from them instead of compiling alloca.c.
16429  
16430  
16431  
16432  
16433  
16434 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16435  
16436 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16437  
16438  
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16440 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16441 if ${ac_cv_os_cray+:} false; then :
16442 $as_echo_n "(cached) " >&6
16443 else
16444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16445 /* end confdefs.h. */
16446 #if defined CRAY && ! defined CRAY2
16447 webecray
16448 #else
16449 wenotbecray
16450 #endif
16451  
16452 _ACEOF
16453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16454 $EGREP "webecray" >/dev/null 2>&1; then :
16455 ac_cv_os_cray=yes
16456 else
16457 ac_cv_os_cray=no
16458 fi
16459 rm -f conftest*
16460  
16461 fi
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16463 $as_echo "$ac_cv_os_cray" >&6; }
16464 if test $ac_cv_os_cray = yes; then
16465 for ac_func in _getb67 GETB67 getb67; do
16466 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16467 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16468 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16469  
16470 cat >>confdefs.h <<_ACEOF
16471 #define CRAY_STACKSEG_END $ac_func
16472 _ACEOF
16473  
16474 break
16475 fi
16476  
16477 done
16478 fi
16479  
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16481 $as_echo_n "checking stack direction for C alloca... " >&6; }
16482 if ${ac_cv_c_stack_direction+:} false; then :
16483 $as_echo_n "(cached) " >&6
16484 else
16485 if test "$cross_compiling" = yes; then :
16486 ac_cv_c_stack_direction=0
16487 else
16488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16489 /* end confdefs.h. */
16490 $ac_includes_default
16491 int
16492 find_stack_direction ()
16493 {
16494 static char *addr = 0;
16495 auto char dummy;
16496 if (addr == 0)
16497 {
16498 addr = &dummy;
16499 return find_stack_direction ();
16500 }
16501 else
16502 return (&dummy > addr) ? 1 : -1;
16503 }
16504  
16505 int
16506 main ()
16507 {
16508 return find_stack_direction () < 0;
16509 }
16510 _ACEOF
16511 if ac_fn_c_try_run "$LINENO"; then :
16512 ac_cv_c_stack_direction=1
16513 else
16514 ac_cv_c_stack_direction=-1
16515 fi
16516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16517 conftest.$ac_objext conftest.beam conftest.$ac_ext
16518 fi
16519  
16520 fi
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16522 $as_echo "$ac_cv_c_stack_direction" >&6; }
16523 cat >>confdefs.h <<_ACEOF
16524 #define STACK_DIRECTION $ac_cv_c_stack_direction
16525 _ACEOF
16526  
16527  
16528 fi
16529  
16530  
16531  
16532  
16533 for ac_header in $ac_header_list
16534 do :
16535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16536 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16537 "
16538 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16539 cat >>confdefs.h <<_ACEOF
16540 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16541 _ACEOF
16542  
16543 fi
16544  
16545 done
16546  
16547  
16548  
16549  
16550  
16551  
16552 GNULIB__EXIT=0;
16553 GNULIB_ATOLL=0;
16554 GNULIB_CALLOC_POSIX=0;
16555 GNULIB_CANONICALIZE_FILE_NAME=0;
16556 GNULIB_GETLOADAVG=0;
16557 GNULIB_GETSUBOPT=0;
16558 GNULIB_GRANTPT=0;
16559 GNULIB_MALLOC_POSIX=0;
16560 GNULIB_MBTOWC=0;
16561 GNULIB_MKDTEMP=0;
16562 GNULIB_MKOSTEMP=0;
16563 GNULIB_MKOSTEMPS=0;
16564 GNULIB_MKSTEMP=0;
16565 GNULIB_MKSTEMPS=0;
16566 GNULIB_PTSNAME=0;
16567 GNULIB_PUTENV=0;
16568 GNULIB_RANDOM_R=0;
16569 GNULIB_REALLOC_POSIX=0;
16570 GNULIB_REALPATH=0;
16571 GNULIB_RPMATCH=0;
16572 GNULIB_SETENV=0;
16573 GNULIB_STRTOD=0;
16574 GNULIB_STRTOLL=0;
16575 GNULIB_STRTOULL=0;
16576 GNULIB_SYSTEM_POSIX=0;
16577 GNULIB_UNLOCKPT=0;
16578 GNULIB_UNSETENV=0;
16579 GNULIB_WCTOMB=0;
16580 HAVE__EXIT=1;
16581 HAVE_ATOLL=1;
16582 HAVE_CANONICALIZE_FILE_NAME=1;
16583 HAVE_DECL_GETLOADAVG=1;
16584 HAVE_GETSUBOPT=1;
16585 HAVE_GRANTPT=1;
16586 HAVE_MKDTEMP=1;
16587 HAVE_MKOSTEMP=1;
16588 HAVE_MKOSTEMPS=1;
16589 HAVE_MKSTEMP=1;
16590 HAVE_MKSTEMPS=1;
16591 HAVE_PTSNAME=1;
16592 HAVE_RANDOM_H=1;
16593 HAVE_RANDOM_R=1;
16594 HAVE_REALPATH=1;
16595 HAVE_RPMATCH=1;
16596 HAVE_SETENV=1;
16597 HAVE_DECL_SETENV=1;
16598 HAVE_STRTOD=1;
16599 HAVE_STRTOLL=1;
16600 HAVE_STRTOULL=1;
16601 HAVE_STRUCT_RANDOM_DATA=1;
16602 HAVE_SYS_LOADAVG_H=0;
16603 HAVE_UNLOCKPT=1;
16604 HAVE_DECL_UNSETENV=1;
16605 REPLACE_CALLOC=0;
16606 REPLACE_CANONICALIZE_FILE_NAME=0;
16607 REPLACE_MALLOC=0;
16608 REPLACE_MBTOWC=0;
16609 REPLACE_MKSTEMP=0;
16610 REPLACE_PUTENV=0;
16611 REPLACE_REALLOC=0;
16612 REPLACE_REALPATH=0;
16613 REPLACE_SETENV=0;
16614 REPLACE_STRTOD=0;
16615 REPLACE_UNSETENV=0;
16616 REPLACE_WCTOMB=0;
16617  
16618  
16619  
16620  
16621 for ac_func in $ac_func_list
16622 do :
16623 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16624 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16625 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16626 cat >>confdefs.h <<_ACEOF
16627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16628 _ACEOF
16629  
16630 fi
16631 done
16632  
16633  
16634  
16635  
16636  
16637  
16638  
16639  
16640  
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
16642 $as_echo_n "checking whether // is distinct from /... " >&6; }
16643 if ${gl_cv_double_slash_root+:} false; then :
16644 $as_echo_n "(cached) " >&6
16645 else
16646 if test x"$cross_compiling" = xyes ; then
16647 # When cross-compiling, there is no way to tell whether // is special
16648 # short of a list of hosts. However, the only known hosts to date
16649 # that have a distinct // are Apollo DomainOS (too old to port to),
16650 # Cygwin, and z/OS. If anyone knows of another system for which // has
16651 # special semantics and is distinct from /, please report it to
16652 # <bug-gnulib@gnu.org>.
16653 case $host in
16654 *-cygwin | i370-ibm-openedition)
16655 gl_cv_double_slash_root=yes ;;
16656 *)
16657 # Be optimistic and assume that / and // are the same when we
16658 # don't know.
16659 gl_cv_double_slash_root='unknown, assuming no' ;;
16660 esac
16661 else
16662 set x `ls -di / // 2>/dev/null`
16663 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
16664 gl_cv_double_slash_root=no
16665 else
16666 gl_cv_double_slash_root=yes
16667 fi
16668 fi
16669 fi
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
16671 $as_echo "$gl_cv_double_slash_root" >&6; }
16672 if test "$gl_cv_double_slash_root" = yes; then
16673  
16674 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
16675  
16676 fi
16677  
16678  
16679  
16680  
16681  
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
16683 $as_echo_n "checking whether realpath works... " >&6; }
16684 if ${gl_cv_func_realpath_works+:} false; then :
16685 $as_echo_n "(cached) " >&6
16686 else
16687  
16688 touch conftest.a
16689 mkdir conftest.d
16690 if test "$cross_compiling" = yes; then :
16691 gl_cv_func_realpath_works="guessing no"
16692 else
16693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16694 /* end confdefs.h. */
16695  
16696  
16697  
16698 #include <stdlib.h>
16699 #if defined __MACH__ && defined __APPLE__
16700 /* Avoid a crash on MacOS X. */
16701 #include <mach/mach.h>
16702 #include <mach/mach_error.h>
16703 #include <mach/thread_status.h>
16704 #include <mach/exception.h>
16705 #include <mach/task.h>
16706 #include <pthread.h>
16707 /* The exception port on which our thread listens. */
16708 static mach_port_t our_exception_port;
16709 /* The main function of the thread listening for exceptions of type
16710 EXC_BAD_ACCESS. */
16711 static void *
16712 mach_exception_thread (void *arg)
16713 {
16714 /* Buffer for a message to be received. */
16715 struct {
16716 mach_msg_header_t head;
16717 mach_msg_body_t msgh_body;
16718 char data[1024];
16719 } msg;
16720 mach_msg_return_t retval;
16721 /* Wait for a message on the exception port. */
16722 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
16723 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
16724 if (retval != MACH_MSG_SUCCESS)
16725 abort ();
16726 exit (1);
16727 }
16728 static void
16729 nocrash_init (void)
16730 {
16731 mach_port_t self = mach_task_self ();
16732 /* Allocate a port on which the thread shall listen for exceptions. */
16733 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
16734 == KERN_SUCCESS) {
16735 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
16736 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
16737 MACH_MSG_TYPE_MAKE_SEND)
16738 == KERN_SUCCESS) {
16739 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
16740 for us. */
16741 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
16742 /* Create the thread listening on the exception port. */
16743 pthread_attr_t attr;
16744 pthread_t thread;
16745 if (pthread_attr_init (&attr) == 0
16746 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
16747 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
16748 pthread_attr_destroy (&attr);
16749 /* Replace the exception port info for these exceptions with our own.
16750 Note that we replace the exception port for the entire task, not only
16751 for a particular thread. This has the effect that when our exception
16752 port gets the message, the thread specific exception port has already
16753 been asked, and we don't need to bother about it.
16754 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
16755 task_set_exception_ports (self, mask, our_exception_port,
16756 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
16757 }
16758 }
16759 }
16760 }
16761 #else
16762 /* Avoid a crash on POSIX systems. */
16763 #include <signal.h>
16764 /* A POSIX signal handler. */
16765 static void
16766 exception_handler (int sig)
16767 {
16768 exit (1);
16769 }
16770 static void
16771 nocrash_init (void)
16772 {
16773 #ifdef SIGSEGV
16774 signal (SIGSEGV, exception_handler);
16775 #endif
16776 #ifdef SIGBUS
16777 signal (SIGBUS, exception_handler);
16778 #endif
16779 }
16780 #endif
16781  
16782 #include <stdlib.h>
16783 #include <string.h>
16784  
16785 int
16786 main ()
16787 {
16788  
16789 int result = 0;
16790 {
16791 char *name = realpath ("conftest.a", NULL);
16792 if (!(name && *name == '/'))
16793 result |= 1;
16794 }
16795 {
16796 char *name = realpath ("conftest.b/../conftest.a", NULL);
16797 if (name != NULL)
16798 result |= 2;
16799 }
16800 {
16801 char *name = realpath ("conftest.a/", NULL);
16802 if (name != NULL)
16803 result |= 4;
16804 }
16805 {
16806 char *name1 = realpath (".", NULL);
16807 char *name2 = realpath ("conftest.d//./..", NULL);
16808 if (strcmp (name1, name2) != 0)
16809 result |= 8;
16810 }
16811 return result;
16812  
16813 ;
16814 return 0;
16815 }
16816  
16817 _ACEOF
16818 if ac_fn_c_try_run "$LINENO"; then :
16819 gl_cv_func_realpath_works=yes
16820 else
16821 gl_cv_func_realpath_works=no
16822 fi
16823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16824 conftest.$ac_objext conftest.beam conftest.$ac_ext
16825 fi
16826  
16827 rm -rf conftest.a conftest.d
16828  
16829 fi
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
16831 $as_echo "$gl_cv_func_realpath_works" >&6; }
16832 if test "$gl_cv_func_realpath_works" = yes; then
16833  
16834 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
16835  
16836 fi
16837  
16838  
16839  
16840  
16841  
16842  
16843  
16844  
16845  
16846  
16847  
16848  
16849  
16850 GNULIB_CHOWN=0;
16851 GNULIB_CLOSE=0;
16852 GNULIB_DUP2=0;
16853 GNULIB_DUP3=0;
16854 GNULIB_ENVIRON=0;
16855 GNULIB_EUIDACCESS=0;
16856 GNULIB_FACCESSAT=0;
16857 GNULIB_FCHDIR=0;
16858 GNULIB_FCHOWNAT=0;
16859 GNULIB_FSYNC=0;
16860 GNULIB_FTRUNCATE=0;
16861 GNULIB_GETCWD=0;
16862 GNULIB_GETDOMAINNAME=0;
16863 GNULIB_GETDTABLESIZE=0;
16864 GNULIB_GETGROUPS=0;
16865 GNULIB_GETHOSTNAME=0;
16866 GNULIB_GETLOGIN=0;
16867 GNULIB_GETLOGIN_R=0;
16868 GNULIB_GETPAGESIZE=0;
16869 GNULIB_GETUSERSHELL=0;
16870 GNULIB_GROUP_MEMBER=0;
16871 GNULIB_LCHOWN=0;
16872 GNULIB_LINK=0;
16873 GNULIB_LINKAT=0;
16874 GNULIB_LSEEK=0;
16875 GNULIB_PIPE=0;
16876 GNULIB_PIPE2=0;
16877 GNULIB_PREAD=0;
16878 GNULIB_PWRITE=0;
16879 GNULIB_READ=0;
16880 GNULIB_READLINK=0;
16881 GNULIB_READLINKAT=0;
16882 GNULIB_RMDIR=0;
16883 GNULIB_SLEEP=0;
16884 GNULIB_SYMLINK=0;
16885 GNULIB_SYMLINKAT=0;
16886 GNULIB_TTYNAME_R=0;
16887 GNULIB_UNISTD_H_GETOPT=0;
16888 GNULIB_UNISTD_H_NONBLOCKING=0;
16889 GNULIB_UNISTD_H_SIGPIPE=0;
16890 GNULIB_UNLINK=0;
16891 GNULIB_UNLINKAT=0;
16892 GNULIB_USLEEP=0;
16893 GNULIB_WRITE=0;
16894 HAVE_CHOWN=1;
16895 HAVE_DUP2=1;
16896 HAVE_DUP3=1;
16897 HAVE_EUIDACCESS=1;
16898 HAVE_FACCESSAT=1;
16899 HAVE_FCHDIR=1;
16900 HAVE_FCHOWNAT=1;
16901 HAVE_FSYNC=1;
16902 HAVE_FTRUNCATE=1;
16903 HAVE_GETDTABLESIZE=1;
16904 HAVE_GETGROUPS=1;
16905 HAVE_GETHOSTNAME=1;
16906 HAVE_GETLOGIN=1;
16907 HAVE_GETPAGESIZE=1;
16908 HAVE_GROUP_MEMBER=1;
16909 HAVE_LCHOWN=1;
16910 HAVE_LINK=1;
16911 HAVE_LINKAT=1;
16912 HAVE_PIPE=1;
16913 HAVE_PIPE2=1;
16914 HAVE_PREAD=1;
16915 HAVE_PWRITE=1;
16916 HAVE_READLINK=1;
16917 HAVE_READLINKAT=1;
16918 HAVE_SLEEP=1;
16919 HAVE_SYMLINK=1;
16920 HAVE_SYMLINKAT=1;
16921 HAVE_UNLINKAT=1;
16922 HAVE_USLEEP=1;
16923 HAVE_DECL_ENVIRON=1;
16924 HAVE_DECL_FCHDIR=1;
16925 HAVE_DECL_GETDOMAINNAME=1;
16926 HAVE_DECL_GETLOGIN_R=1;
16927 HAVE_DECL_GETPAGESIZE=1;
16928 HAVE_DECL_GETUSERSHELL=1;
16929 HAVE_DECL_TTYNAME_R=1;
16930 HAVE_OS_H=0;
16931 HAVE_SYS_PARAM_H=0;
16932 REPLACE_CHOWN=0;
16933 REPLACE_CLOSE=0;
16934 REPLACE_DUP=0;
16935 REPLACE_DUP2=0;
16936 REPLACE_FCHOWNAT=0;
16937 REPLACE_GETCWD=0;
16938 REPLACE_GETDOMAINNAME=0;
16939 REPLACE_GETLOGIN_R=0;
16940 REPLACE_GETGROUPS=0;
16941 REPLACE_GETPAGESIZE=0;
16942 REPLACE_LCHOWN=0;
16943 REPLACE_LINK=0;
16944 REPLACE_LINKAT=0;
16945 REPLACE_LSEEK=0;
16946 REPLACE_PREAD=0;
16947 REPLACE_PWRITE=0;
16948 REPLACE_READ=0;
16949 REPLACE_READLINK=0;
16950 REPLACE_RMDIR=0;
16951 REPLACE_SLEEP=0;
16952 REPLACE_SYMLINK=0;
16953 REPLACE_TTYNAME_R=0;
16954 REPLACE_UNLINK=0;
16955 REPLACE_UNLINKAT=0;
16956 REPLACE_USLEEP=0;
16957 REPLACE_WRITE=0;
16958 UNISTD_H_HAVE_WINSOCK2_H=0;
16959 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16960  
16961  
16962  
16963  
16964  
16965  
16966  
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16968 $as_echo_n "checking if environ is properly declared... " >&6; }
16969 if ${gt_cv_var_environ_declaration+:} false; then :
16970 $as_echo_n "(cached) " >&6
16971 else
16972  
16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974 /* end confdefs.h. */
16975 #include <unistd.h>
16976 extern struct { int foo; } environ;
16977 int
16978 main ()
16979 {
16980 environ.foo = 1;
16981 ;
16982 return 0;
16983 }
16984 _ACEOF
16985 if ac_fn_c_try_compile "$LINENO"; then :
16986 gt_cv_var_environ_declaration=no
16987 else
16988 gt_cv_var_environ_declaration=yes
16989 fi
16990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16991 fi
16992  
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16994 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16995 if test $gt_cv_var_environ_declaration = yes; then
16996  
16997 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16998  
16999 fi
17000  
17001  
17002 if test $gt_cv_var_environ_declaration != yes; then
17003 HAVE_DECL_ENVIRON=0
17004 fi
17005  
17006  
17007  
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17009 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17010 if ${gl_cv_have_include_next+:} false; then :
17011 $as_echo_n "(cached) " >&6
17012 else
17013 rm -rf conftestd1a conftestd1b conftestd2
17014 mkdir conftestd1a conftestd1b conftestd2
17015 cat <<EOF > conftestd1a/conftest.h
17016 #define DEFINED_IN_CONFTESTD1
17017 #include_next <conftest.h>
17018 #ifdef DEFINED_IN_CONFTESTD2
17019 int foo;
17020 #else
17021 #error "include_next doesn't work"
17022 #endif
17023 EOF
17024 cat <<EOF > conftestd1b/conftest.h
17025 #define DEFINED_IN_CONFTESTD1
17026 #include <stdio.h>
17027 #include_next <conftest.h>
17028 #ifdef DEFINED_IN_CONFTESTD2
17029 int foo;
17030 #else
17031 #error "include_next doesn't work"
17032 #endif
17033 EOF
17034 cat <<EOF > conftestd2/conftest.h
17035 #ifndef DEFINED_IN_CONFTESTD1
17036 #error "include_next test doesn't work"
17037 #endif
17038 #define DEFINED_IN_CONFTESTD2
17039 EOF
17040 gl_save_CPPFLAGS="$CPPFLAGS"
17041 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17043 /* end confdefs.h. */
17044 #include <conftest.h>
17045 _ACEOF
17046 if ac_fn_c_try_compile "$LINENO"; then :
17047 gl_cv_have_include_next=yes
17048 else
17049 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17051 /* end confdefs.h. */
17052 #include <conftest.h>
17053 _ACEOF
17054 if ac_fn_c_try_compile "$LINENO"; then :
17055 gl_cv_have_include_next=buggy
17056 else
17057 gl_cv_have_include_next=no
17058 fi
17059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17060  
17061 fi
17062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17063 CPPFLAGS="$gl_save_CPPFLAGS"
17064 rm -rf conftestd1a conftestd1b conftestd2
17065  
17066 fi
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17068 $as_echo "$gl_cv_have_include_next" >&6; }
17069 PRAGMA_SYSTEM_HEADER=
17070 if test $gl_cv_have_include_next = yes; then
17071 INCLUDE_NEXT=include_next
17072 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17073 if test -n "$GCC"; then
17074 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17075 fi
17076 else
17077 if test $gl_cv_have_include_next = buggy; then
17078 INCLUDE_NEXT=include
17079 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17080 else
17081 INCLUDE_NEXT=include
17082 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17083 fi
17084 fi
17085  
17086  
17087  
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17089 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17090 if ${gl_cv_pragma_columns+:} false; then :
17091 $as_echo_n "(cached) " >&6
17092 else
17093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17094 /* end confdefs.h. */
17095  
17096 #ifdef __TANDEM
17097 choke me
17098 #endif
17099  
17100 _ACEOF
17101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17102 $EGREP "choke me" >/dev/null 2>&1; then :
17103 gl_cv_pragma_columns=yes
17104 else
17105 gl_cv_pragma_columns=no
17106 fi
17107 rm -f conftest*
17108  
17109  
17110 fi
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17112 $as_echo "$gl_cv_pragma_columns" >&6; }
17113 if test $gl_cv_pragma_columns = yes; then
17114 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17115 else
17116 PRAGMA_COLUMNS=
17117 fi
17118  
17119  
17120  
17121  
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
17123 $as_echo_n "checking for complete errno.h... " >&6; }
17124 if ${gl_cv_header_errno_h_complete+:} false; then :
17125 $as_echo_n "(cached) " >&6
17126 else
17127  
17128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129 /* end confdefs.h. */
17130  
17131 #include <errno.h>
17132 #if !defined ENOMSG
17133 booboo
17134 #endif
17135 #if !defined EIDRM
17136 booboo
17137 #endif
17138 #if !defined ENOLINK
17139 booboo
17140 #endif
17141 #if !defined EPROTO
17142 booboo
17143 #endif
17144 #if !defined EMULTIHOP
17145 booboo
17146 #endif
17147 #if !defined EBADMSG
17148 booboo
17149 #endif
17150 #if !defined EOVERFLOW
17151 booboo
17152 #endif
17153 #if !defined ENOTSUP
17154 booboo
17155 #endif
17156 #if !defined ENETRESET
17157 booboo
17158 #endif
17159 #if !defined ECONNABORTED
17160 booboo
17161 #endif
17162 #if !defined ESTALE
17163 booboo
17164 #endif
17165 #if !defined EDQUOT
17166 booboo
17167 #endif
17168 #if !defined ECANCELED
17169 booboo
17170 #endif
17171  
17172 _ACEOF
17173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17174 $EGREP "booboo" >/dev/null 2>&1; then :
17175 gl_cv_header_errno_h_complete=no
17176 else
17177 gl_cv_header_errno_h_complete=yes
17178 fi
17179 rm -f conftest*
17180  
17181  
17182 fi
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
17184 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
17185 if test $gl_cv_header_errno_h_complete = yes; then
17186 ERRNO_H=''
17187 else
17188  
17189  
17190  
17191  
17192  
17193  
17194  
17195  
17196 if test $gl_cv_have_include_next = yes; then
17197 gl_cv_next_errno_h='<'errno.h'>'
17198 else
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
17200 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
17201 if ${gl_cv_next_errno_h+:} false; then :
17202 $as_echo_n "(cached) " >&6
17203 else
17204  
17205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17206 /* end confdefs.h. */
17207 #include <errno.h>
17208  
17209 _ACEOF
17210 case "$host_os" in
17211 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17212 *) gl_absname_cpp="$ac_cpp" ;;
17213 esac
17214 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17215 sed -n '\#/errno.h#{
17216 s#.*"\(.*/errno.h\)".*#\1#
17217 s#^/[^/]#//&#
17218 p
17219 q
17220 }'`'"'
17221  
17222  
17223 fi
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
17225 $as_echo "$gl_cv_next_errno_h" >&6; }
17226 fi
17227 NEXT_ERRNO_H=$gl_cv_next_errno_h
17228  
17229 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17230 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17231 gl_next_as_first_directive='<'errno.h'>'
17232 else
17233 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17234 gl_next_as_first_directive=$gl_cv_next_errno_h
17235 fi
17236 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
17237  
17238  
17239  
17240  
17241 ERRNO_H='errno.h'
17242 fi
17243  
17244 if test -n "$ERRNO_H"; then
17245 GL_GENERATE_ERRNO_H_TRUE=
17246 GL_GENERATE_ERRNO_H_FALSE='#'
17247 else
17248 GL_GENERATE_ERRNO_H_TRUE='#'
17249 GL_GENERATE_ERRNO_H_FALSE=
17250 fi
17251  
17252  
17253 if test -n "$ERRNO_H"; then
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
17255 $as_echo_n "checking for EMULTIHOP value... " >&6; }
17256 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
17257 $as_echo_n "(cached) " >&6
17258 else
17259  
17260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17261 /* end confdefs.h. */
17262  
17263 #include <errno.h>
17264 #ifdef EMULTIHOP
17265 yes
17266 #endif
17267  
17268 _ACEOF
17269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17270 $EGREP "yes" >/dev/null 2>&1; then :
17271 gl_cv_header_errno_h_EMULTIHOP=yes
17272 else
17273 gl_cv_header_errno_h_EMULTIHOP=no
17274 fi
17275 rm -f conftest*
17276  
17277 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
17278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17279 /* end confdefs.h. */
17280  
17281 #define _XOPEN_SOURCE_EXTENDED 1
17282 #include <errno.h>
17283 #ifdef EMULTIHOP
17284 yes
17285 #endif
17286  
17287 _ACEOF
17288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17289 $EGREP "yes" >/dev/null 2>&1; then :
17290 gl_cv_header_errno_h_EMULTIHOP=hidden
17291 fi
17292 rm -f conftest*
17293  
17294 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
17295 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
17296 #define _XOPEN_SOURCE_EXTENDED 1
17297 #include <errno.h>
17298 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17299 #include <stdio.h>
17300 #include <stdlib.h>
17301 "; then :
17302  
17303 fi
17304  
17305 fi
17306 fi
17307  
17308 fi
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
17310 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
17311 case $gl_cv_header_errno_h_EMULTIHOP in
17312 yes | no)
17313 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
17314 ;;
17315 *)
17316 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
17317 ;;
17318 esac
17319  
17320  
17321 fi
17322  
17323  
17324 if test -n "$ERRNO_H"; then
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
17326 $as_echo_n "checking for ENOLINK value... " >&6; }
17327 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
17328 $as_echo_n "(cached) " >&6
17329 else
17330  
17331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17332 /* end confdefs.h. */
17333  
17334 #include <errno.h>
17335 #ifdef ENOLINK
17336 yes
17337 #endif
17338  
17339 _ACEOF
17340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17341 $EGREP "yes" >/dev/null 2>&1; then :
17342 gl_cv_header_errno_h_ENOLINK=yes
17343 else
17344 gl_cv_header_errno_h_ENOLINK=no
17345 fi
17346 rm -f conftest*
17347  
17348 if test $gl_cv_header_errno_h_ENOLINK = no; then
17349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17350 /* end confdefs.h. */
17351  
17352 #define _XOPEN_SOURCE_EXTENDED 1
17353 #include <errno.h>
17354 #ifdef ENOLINK
17355 yes
17356 #endif
17357  
17358 _ACEOF
17359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17360 $EGREP "yes" >/dev/null 2>&1; then :
17361 gl_cv_header_errno_h_ENOLINK=hidden
17362 fi
17363 rm -f conftest*
17364  
17365 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
17366 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
17367 #define _XOPEN_SOURCE_EXTENDED 1
17368 #include <errno.h>
17369 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17370 #include <stdio.h>
17371 #include <stdlib.h>
17372 "; then :
17373  
17374 fi
17375  
17376 fi
17377 fi
17378  
17379 fi
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
17381 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
17382 case $gl_cv_header_errno_h_ENOLINK in
17383 yes | no)
17384 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
17385 ;;
17386 *)
17387 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
17388 ;;
17389 esac
17390  
17391  
17392 fi
17393  
17394  
17395 if test -n "$ERRNO_H"; then
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
17397 $as_echo_n "checking for EOVERFLOW value... " >&6; }
17398 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
17399 $as_echo_n "(cached) " >&6
17400 else
17401  
17402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17403 /* end confdefs.h. */
17404  
17405 #include <errno.h>
17406 #ifdef EOVERFLOW
17407 yes
17408 #endif
17409  
17410 _ACEOF
17411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17412 $EGREP "yes" >/dev/null 2>&1; then :
17413 gl_cv_header_errno_h_EOVERFLOW=yes
17414 else
17415 gl_cv_header_errno_h_EOVERFLOW=no
17416 fi
17417 rm -f conftest*
17418  
17419 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
17420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17421 /* end confdefs.h. */
17422  
17423 #define _XOPEN_SOURCE_EXTENDED 1
17424 #include <errno.h>
17425 #ifdef EOVERFLOW
17426 yes
17427 #endif
17428  
17429 _ACEOF
17430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17431 $EGREP "yes" >/dev/null 2>&1; then :
17432 gl_cv_header_errno_h_EOVERFLOW=hidden
17433 fi
17434 rm -f conftest*
17435  
17436 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
17437 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
17438 #define _XOPEN_SOURCE_EXTENDED 1
17439 #include <errno.h>
17440 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17441 #include <stdio.h>
17442 #include <stdlib.h>
17443 "; then :
17444  
17445 fi
17446  
17447 fi
17448 fi
17449  
17450 fi
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
17452 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
17453 case $gl_cv_header_errno_h_EOVERFLOW in
17454 yes | no)
17455 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
17456 ;;
17457 *)
17458 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
17459 ;;
17460 esac
17461  
17462  
17463 fi
17464  
17465  
17466 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
17467 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
17468 ac_have_decl=1
17469 else
17470 ac_have_decl=0
17471 fi
17472  
17473 cat >>confdefs.h <<_ACEOF
17474 #define HAVE_DECL_STRERROR_R $ac_have_decl
17475 _ACEOF
17476  
17477 for ac_func in strerror_r
17478 do :
17479 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
17480 if test "x$ac_cv_func_strerror_r" = xyes; then :
17481 cat >>confdefs.h <<_ACEOF
17482 #define HAVE_STRERROR_R 1
17483 _ACEOF
17484  
17485 fi
17486 done
17487  
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
17489 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
17490 if ${ac_cv_func_strerror_r_char_p+:} false; then :
17491 $as_echo_n "(cached) " >&6
17492 else
17493  
17494 ac_cv_func_strerror_r_char_p=no
17495 if test $ac_cv_have_decl_strerror_r = yes; then
17496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17497 /* end confdefs.h. */
17498 $ac_includes_default
17499 int
17500 main ()
17501 {
17502  
17503 char buf[100];
17504 char x = *strerror_r (0, buf, sizeof buf);
17505 char *p = strerror_r (0, buf, sizeof buf);
17506 return !p || x;
17507  
17508 ;
17509 return 0;
17510 }
17511 _ACEOF
17512 if ac_fn_c_try_compile "$LINENO"; then :
17513 ac_cv_func_strerror_r_char_p=yes
17514 fi
17515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17516 else
17517 # strerror_r is not declared. Choose between
17518 # systems that have relatively inaccessible declarations for the
17519 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
17520 # former has a strerror_r that returns char*, while the latter
17521 # has a strerror_r that returns `int'.
17522 # This test should segfault on the DEC system.
17523 if test "$cross_compiling" = yes; then :
17524 :
17525 else
17526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17527 /* end confdefs.h. */
17528 $ac_includes_default
17529 extern char *strerror_r ();
17530 int
17531 main ()
17532 {
17533 char buf[100];
17534 char x = *strerror_r (0, buf, sizeof buf);
17535 return ! isalpha (x);
17536 ;
17537 return 0;
17538 }
17539 _ACEOF
17540 if ac_fn_c_try_run "$LINENO"; then :
17541 ac_cv_func_strerror_r_char_p=yes
17542 fi
17543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17544 conftest.$ac_objext conftest.beam conftest.$ac_ext
17545 fi
17546  
17547 fi
17548  
17549 fi
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
17551 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
17552 if test $ac_cv_func_strerror_r_char_p = yes; then
17553  
17554 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
17555  
17556 fi
17557  
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17559 $as_echo_n "checking for inline... " >&6; }
17560 if ${ac_cv_c_inline+:} false; then :
17561 $as_echo_n "(cached) " >&6
17562 else
17563 ac_cv_c_inline=no
17564 for ac_kw in inline __inline__ __inline; do
17565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17566 /* end confdefs.h. */
17567 #ifndef __cplusplus
17568 typedef int foo_t;
17569 static $ac_kw foo_t static_foo () {return 0; }
17570 $ac_kw foo_t foo () {return 0; }
17571 #endif
17572  
17573 _ACEOF
17574 if ac_fn_c_try_compile "$LINENO"; then :
17575 ac_cv_c_inline=$ac_kw
17576 fi
17577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17578 test "$ac_cv_c_inline" != no && break
17579 done
17580  
17581 fi
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17583 $as_echo "$ac_cv_c_inline" >&6; }
17584  
17585 case $ac_cv_c_inline in
17586 inline | yes) ;;
17587 *)
17588 case $ac_cv_c_inline in
17589 no) ac_val=;;
17590 *) ac_val=$ac_cv_c_inline;;
17591 esac
17592 cat >>confdefs.h <<_ACEOF
17593 #ifndef __cplusplus
17594 #define inline $ac_val
17595 #endif
17596 _ACEOF
17597 ;;
17598 esac
17599  
17600  
17601 XGETTEXT_EXTRA_OPTIONS=
17602  
17603  
17604 GNULIB_FCNTL=0;
17605 GNULIB_NONBLOCKING=0;
17606 GNULIB_OPEN=0;
17607 GNULIB_OPENAT=0;
17608 HAVE_FCNTL=1;
17609 HAVE_OPENAT=1;
17610 REPLACE_FCNTL=0;
17611 REPLACE_OPEN=0;
17612 REPLACE_OPENAT=0;
17613  
17614  
17615 GNULIB_FCHMODAT=0;
17616 GNULIB_FSTATAT=0;
17617 GNULIB_FUTIMENS=0;
17618 GNULIB_LCHMOD=0;
17619 GNULIB_LSTAT=0;
17620 GNULIB_MKDIRAT=0;
17621 GNULIB_MKFIFO=0;
17622 GNULIB_MKFIFOAT=0;
17623 GNULIB_MKNOD=0;
17624 GNULIB_MKNODAT=0;
17625 GNULIB_STAT=0;
17626 GNULIB_UTIMENSAT=0;
17627 HAVE_FCHMODAT=1;
17628 HAVE_FSTATAT=1;
17629 HAVE_FUTIMENS=1;
17630 HAVE_LCHMOD=1;
17631 HAVE_LSTAT=1;
17632 HAVE_MKDIRAT=1;
17633 HAVE_MKFIFO=1;
17634 HAVE_MKFIFOAT=1;
17635 HAVE_MKNOD=1;
17636 HAVE_MKNODAT=1;
17637 HAVE_UTIMENSAT=1;
17638 REPLACE_FSTAT=0;
17639 REPLACE_FSTATAT=0;
17640 REPLACE_FUTIMENS=0;
17641 REPLACE_LSTAT=0;
17642 REPLACE_MKDIR=0;
17643 REPLACE_MKFIFO=0;
17644 REPLACE_MKNOD=0;
17645 REPLACE_STAT=0;
17646 REPLACE_UTIMENSAT=0;
17647  
17648  
17649  
17650  
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17652 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17653 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
17654 $as_echo_n "(cached) " >&6
17655 else
17656 rm -f conftest.sym conftest.file
17657 echo >conftest.file
17658 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17659 if test "$cross_compiling" = yes; then :
17660 # When cross-compiling, be pessimistic so we will end up using the
17661 # replacement version of lstat that checks for trailing slashes and
17662 # calls lstat a second time when necessary.
17663 gl_cv_func_lstat_dereferences_slashed_symlink=no
17664  
17665 else
17666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17667 /* end confdefs.h. */
17668 $ac_includes_default
17669 int
17670 main ()
17671 {
17672 struct stat sbuf;
17673 /* Linux will dereference the symlink and fail, as required by
17674 POSIX. That is better in the sense that it means we will not
17675 have to compile and use the lstat wrapper. */
17676 return lstat ("conftest.sym/", &sbuf) == 0;
17677  
17678 ;
17679 return 0;
17680 }
17681 _ACEOF
17682 if ac_fn_c_try_run "$LINENO"; then :
17683 gl_cv_func_lstat_dereferences_slashed_symlink=yes
17684 else
17685 gl_cv_func_lstat_dereferences_slashed_symlink=no
17686 fi
17687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17688 conftest.$ac_objext conftest.beam conftest.$ac_ext
17689 fi
17690  
17691 else
17692 # If the 'ln -s' command failed, then we probably don't even
17693 # have an lstat function.
17694 gl_cv_func_lstat_dereferences_slashed_symlink=no
17695 fi
17696 rm -f conftest.sym conftest.file
17697  
17698 fi
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17700 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17701 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
17702  
17703 cat >>confdefs.h <<_ACEOF
17704 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17705 _ACEOF
17706  
17707  
17708  
17709 for ac_header in stdlib.h
17710 do :
17711 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17712 if test "x$ac_cv_header_stdlib_h" = xyes; then :
17713 cat >>confdefs.h <<_ACEOF
17714 #define HAVE_STDLIB_H 1
17715 _ACEOF
17716  
17717 fi
17718  
17719 done
17720  
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
17722 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
17723 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
17724 $as_echo_n "(cached) " >&6
17725 else
17726 if test "$cross_compiling" = yes; then :
17727 ac_cv_func_malloc_0_nonnull=no
17728 else
17729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17730 /* end confdefs.h. */
17731 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
17732 # include <stdlib.h>
17733 #else
17734 char *malloc ();
17735 #endif
17736  
17737 int
17738 main ()
17739 {
17740 return ! malloc (0);
17741 ;
17742 return 0;
17743 }
17744 _ACEOF
17745 if ac_fn_c_try_run "$LINENO"; then :
17746 ac_cv_func_malloc_0_nonnull=yes
17747 else
17748 ac_cv_func_malloc_0_nonnull=no
17749 fi
17750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17751 conftest.$ac_objext conftest.beam conftest.$ac_ext
17752 fi
17753  
17754 fi
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
17756 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
17757 if test $ac_cv_func_malloc_0_nonnull = yes; then :
17758 gl_cv_func_malloc_0_nonnull=1
17759 else
17760 gl_cv_func_malloc_0_nonnull=0
17761 fi
17762  
17763  
17764 cat >>confdefs.h <<_ACEOF
17765 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
17766 _ACEOF
17767  
17768  
17769  
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17771 $as_echo_n "checking for unsigned long long int... " >&6; }
17772 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
17773 $as_echo_n "(cached) " >&6
17774 else
17775 ac_cv_type_unsigned_long_long_int=yes
17776 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17778 /* end confdefs.h. */
17779  
17780 /* For now, do not test the preprocessor; as of 2007 there are too many
17781 implementations with broken preprocessors. Perhaps this can
17782 be revisited in 2012. In the meantime, code should not expect
17783 #if to work with literals wider than 32 bits. */
17784 /* Test literals. */
17785 long long int ll = 9223372036854775807ll;
17786 long long int nll = -9223372036854775807LL;
17787 unsigned long long int ull = 18446744073709551615ULL;
17788 /* Test constant expressions. */
17789 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17790 ? 1 : -1)];
17791 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17792 ? 1 : -1)];
17793 int i = 63;
17794 int
17795 main ()
17796 {
17797 /* Test availability of runtime routines for shift and division. */
17798 long long int llmax = 9223372036854775807ll;
17799 unsigned long long int ullmax = 18446744073709551615ull;
17800 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17801 | (llmax / ll) | (llmax % ll)
17802 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17803 | (ullmax / ull) | (ullmax % ull));
17804 ;
17805 return 0;
17806 }
17807  
17808 _ACEOF
17809 if ac_fn_c_try_link "$LINENO"; then :
17810  
17811 else
17812 ac_cv_type_unsigned_long_long_int=no
17813 fi
17814 rm -f core conftest.err conftest.$ac_objext \
17815 conftest$ac_exeext conftest.$ac_ext
17816 fi
17817 fi
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17819 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17820 if test $ac_cv_type_unsigned_long_long_int = yes; then
17821  
17822 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17823  
17824 fi
17825  
17826  
17827  
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17829 $as_echo_n "checking for long long int... " >&6; }
17830 if ${ac_cv_type_long_long_int+:} false; then :
17831 $as_echo_n "(cached) " >&6
17832 else
17833 ac_cv_type_long_long_int=yes
17834 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17835 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17836 if test $ac_cv_type_long_long_int = yes; then
17837 if test "$cross_compiling" = yes; then :
17838 :
17839 else
17840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17841 /* end confdefs.h. */
17842 #include <limits.h>
17843 #ifndef LLONG_MAX
17844 # define HALF \
17845 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17846 # define LLONG_MAX (HALF - 1 + HALF)
17847 #endif
17848 int
17849 main ()
17850 {
17851 long long int n = 1;
17852 int i;
17853 for (i = 0; ; i++)
17854 {
17855 long long int m = n << i;
17856 if (m >> i != n)
17857 return 1;
17858 if (LLONG_MAX / 2 < m)
17859 break;
17860 }
17861 return 0;
17862 ;
17863 return 0;
17864 }
17865 _ACEOF
17866 if ac_fn_c_try_run "$LINENO"; then :
17867  
17868 else
17869 ac_cv_type_long_long_int=no
17870 fi
17871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17872 conftest.$ac_objext conftest.beam conftest.$ac_ext
17873 fi
17874  
17875 fi
17876 fi
17877 fi
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17879 $as_echo "$ac_cv_type_long_long_int" >&6; }
17880 if test $ac_cv_type_long_long_int = yes; then
17881  
17882 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17883  
17884 fi
17885  
17886  
17887 gl_cv_c_multiarch=no
17888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17889 /* end confdefs.h. */
17890 #ifndef __APPLE_CC__
17891 not a universal capable compiler
17892 #endif
17893 typedef int dummy;
17894  
17895 _ACEOF
17896 if ac_fn_c_try_compile "$LINENO"; then :
17897  
17898 arch=
17899 prev=
17900 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17901 if test -n "$prev"; then
17902 case $word in
17903 i?86 | x86_64 | ppc | ppc64)
17904 if test -z "$arch" || test "$arch" = "$word"; then
17905 arch="$word"
17906 else
17907 gl_cv_c_multiarch=yes
17908 fi
17909 ;;
17910 esac
17911 prev=
17912 else
17913 if test "x$word" = "x-arch"; then
17914 prev=arch
17915 fi
17916 fi
17917 done
17918  
17919 fi
17920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17921 if test $gl_cv_c_multiarch = yes; then
17922 APPLE_UNIVERSAL_BUILD=1
17923 else
17924 APPLE_UNIVERSAL_BUILD=0
17925 fi
17926  
17927  
17928 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
17929 if test "x$ac_cv_have_decl_setenv" = xyes; then :
17930 ac_have_decl=1
17931 else
17932 ac_have_decl=0
17933 fi
17934  
17935 cat >>confdefs.h <<_ACEOF
17936 #define HAVE_DECL_SETENV $ac_have_decl
17937 _ACEOF
17938  
17939  
17940  
17941  
17942  
17943  
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17945 $as_echo_n "checking for ssize_t... " >&6; }
17946 if ${gt_cv_ssize_t+:} false; then :
17947 $as_echo_n "(cached) " >&6
17948 else
17949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17950 /* end confdefs.h. */
17951 #include <sys/types.h>
17952 int
17953 main ()
17954 {
17955 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17956 return !x;
17957 ;
17958 return 0;
17959 }
17960 _ACEOF
17961 if ac_fn_c_try_compile "$LINENO"; then :
17962 gt_cv_ssize_t=yes
17963 else
17964 gt_cv_ssize_t=no
17965 fi
17966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17967 fi
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17969 $as_echo "$gt_cv_ssize_t" >&6; }
17970 if test $gt_cv_ssize_t = no; then
17971  
17972 $as_echo "#define ssize_t int" >>confdefs.h
17973  
17974 fi
17975  
17976  
17977 GNULIB_PTHREAD_SIGMASK=0;
17978 GNULIB_SIGNAL_H_SIGPIPE=0;
17979 GNULIB_SIGPROCMASK=0;
17980 GNULIB_SIGACTION=0;
17981 HAVE_POSIX_SIGNALBLOCKING=1;
17982 HAVE_PTHREAD_SIGMASK=1;
17983 HAVE_SIGSET_T=1;
17984 HAVE_SIGINFO_T=1;
17985 HAVE_SIGACTION=1;
17986 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
17987  
17988 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
17989  
17990 HAVE_SIGHANDLER_T=1;
17991 REPLACE_PTHREAD_SIGMASK=0;
17992  
17993  
17994 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
17995 #include <signal.h>
17996 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
17997 #include <sys/types.h>
17998  
17999 "
18000 if test "x$ac_cv_type_sigset_t" = xyes; then :
18001  
18002 cat >>confdefs.h <<_ACEOF
18003 #define HAVE_SIGSET_T 1
18004 _ACEOF
18005  
18006 gl_cv_type_sigset_t=yes
18007 else
18008 gl_cv_type_sigset_t=no
18009 fi
18010  
18011 if test $gl_cv_type_sigset_t != yes; then
18012 HAVE_SIGSET_T=0
18013 fi
18014  
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
18016 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18017 if ${ac_cv_type_uid_t+:} false; then :
18018 $as_echo_n "(cached) " >&6
18019 else
18020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18021 /* end confdefs.h. */
18022 #include <sys/types.h>
18023  
18024 _ACEOF
18025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18026 $EGREP "uid_t" >/dev/null 2>&1; then :
18027 ac_cv_type_uid_t=yes
18028 else
18029 ac_cv_type_uid_t=no
18030 fi
18031 rm -f conftest*
18032  
18033 fi
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
18035 $as_echo "$ac_cv_type_uid_t" >&6; }
18036 if test $ac_cv_type_uid_t = no; then
18037  
18038 $as_echo "#define uid_t int" >>confdefs.h
18039  
18040  
18041 $as_echo "#define gid_t int" >>confdefs.h
18042  
18043 fi
18044  
18045  
18046  
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPIPE" >&5
18048 $as_echo_n "checking for SIGPIPE... " >&6; }
18049 if ${gl_cv_header_signal_h_SIGPIPE+:} false; then :
18050 $as_echo_n "(cached) " >&6
18051 else
18052  
18053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18054 /* end confdefs.h. */
18055  
18056 #include <signal.h>
18057 #if !defined SIGPIPE
18058 booboo
18059 #endif
18060  
18061 _ACEOF
18062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18063 $EGREP "booboo" >/dev/null 2>&1; then :
18064 gl_cv_header_signal_h_SIGPIPE=no
18065 else
18066 gl_cv_header_signal_h_SIGPIPE=yes
18067 fi
18068 rm -f conftest*
18069  
18070  
18071 fi
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_signal_h_SIGPIPE" >&5
18073 $as_echo "$gl_cv_header_signal_h_SIGPIPE" >&6; }
18074  
18075  
18076 GNULIB_DPRINTF=0;
18077 GNULIB_FCLOSE=0;
18078 GNULIB_FFLUSH=0;
18079 GNULIB_FGETC=0;
18080 GNULIB_FGETS=0;
18081 GNULIB_FOPEN=0;
18082 GNULIB_FPRINTF=0;
18083 GNULIB_FPRINTF_POSIX=0;
18084 GNULIB_FPURGE=0;
18085 GNULIB_FPUTC=0;
18086 GNULIB_FPUTS=0;
18087 GNULIB_FREAD=0;
18088 GNULIB_FREOPEN=0;
18089 GNULIB_FSCANF=0;
18090 GNULIB_FSEEK=0;
18091 GNULIB_FSEEKO=0;
18092 GNULIB_FTELL=0;
18093 GNULIB_FTELLO=0;
18094 GNULIB_FWRITE=0;
18095 GNULIB_GETC=0;
18096 GNULIB_GETCHAR=0;
18097 GNULIB_GETDELIM=0;
18098 GNULIB_GETLINE=0;
18099 GNULIB_GETS=0;
18100 GNULIB_OBSTACK_PRINTF=0;
18101 GNULIB_OBSTACK_PRINTF_POSIX=0;
18102 GNULIB_PERROR=0;
18103 GNULIB_POPEN=0;
18104 GNULIB_PRINTF=0;
18105 GNULIB_PRINTF_POSIX=0;
18106 GNULIB_PUTC=0;
18107 GNULIB_PUTCHAR=0;
18108 GNULIB_PUTS=0;
18109 GNULIB_REMOVE=0;
18110 GNULIB_RENAME=0;
18111 GNULIB_RENAMEAT=0;
18112 GNULIB_SCANF=0;
18113 GNULIB_SNPRINTF=0;
18114 GNULIB_SPRINTF_POSIX=0;
18115 GNULIB_STDIO_H_NONBLOCKING=0;
18116 GNULIB_STDIO_H_SIGPIPE=0;
18117 GNULIB_TMPFILE=0;
18118 GNULIB_VASPRINTF=0;
18119 GNULIB_VFSCANF=0;
18120 GNULIB_VSCANF=0;
18121 GNULIB_VDPRINTF=0;
18122 GNULIB_VFPRINTF=0;
18123 GNULIB_VFPRINTF_POSIX=0;
18124 GNULIB_VPRINTF=0;
18125 GNULIB_VPRINTF_POSIX=0;
18126 GNULIB_VSNPRINTF=0;
18127 GNULIB_VSPRINTF_POSIX=0;
18128 HAVE_DECL_FPURGE=1;
18129 HAVE_DECL_FSEEKO=1;
18130 HAVE_DECL_FTELLO=1;
18131 HAVE_DECL_GETDELIM=1;
18132 HAVE_DECL_GETLINE=1;
18133 HAVE_DECL_OBSTACK_PRINTF=1;
18134 HAVE_DECL_SNPRINTF=1;
18135 HAVE_DECL_VSNPRINTF=1;
18136 HAVE_DPRINTF=1;
18137 HAVE_FSEEKO=1;
18138 HAVE_FTELLO=1;
18139 HAVE_RENAMEAT=1;
18140 HAVE_VASPRINTF=1;
18141 HAVE_VDPRINTF=1;
18142 REPLACE_DPRINTF=0;
18143 REPLACE_FCLOSE=0;
18144 REPLACE_FFLUSH=0;
18145 REPLACE_FOPEN=0;
18146 REPLACE_FPRINTF=0;
18147 REPLACE_FPURGE=0;
18148 REPLACE_FREOPEN=0;
18149 REPLACE_FSEEK=0;
18150 REPLACE_FSEEKO=0;
18151 REPLACE_FTELL=0;
18152 REPLACE_FTELLO=0;
18153 REPLACE_GETDELIM=0;
18154 REPLACE_GETLINE=0;
18155 REPLACE_OBSTACK_PRINTF=0;
18156 REPLACE_PERROR=0;
18157 REPLACE_POPEN=0;
18158 REPLACE_PRINTF=0;
18159 REPLACE_REMOVE=0;
18160 REPLACE_RENAME=0;
18161 REPLACE_RENAMEAT=0;
18162 REPLACE_SNPRINTF=0;
18163 REPLACE_SPRINTF=0;
18164 REPLACE_STDIO_READ_FUNCS=0;
18165 REPLACE_STDIO_WRITE_FUNCS=0;
18166 REPLACE_TMPFILE=0;
18167 REPLACE_VASPRINTF=0;
18168 REPLACE_VDPRINTF=0;
18169 REPLACE_VFPRINTF=0;
18170 REPLACE_VPRINTF=0;
18171 REPLACE_VSNPRINTF=0;
18172 REPLACE_VSPRINTF=0;
18173  
18174  
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
18176 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
18177 if ${gl_cv_prog_as_underscore+:} false; then :
18178 $as_echo_n "(cached) " >&6
18179 else
18180 cat > conftest.c <<EOF
18181 #ifdef __cplusplus
18182 extern "C" int foo (void);
18183 #endif
18184 int foo(void) { return 0; }
18185 EOF
18186 # Look for the assembly language name in the .s file.
18187 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
18188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18189 (eval $ac_try) 2>&5
18190 ac_status=$?
18191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18192 test $ac_status = 0; }; } >/dev/null 2>&1
18193 if grep _foo conftest.s >/dev/null ; then
18194 gl_cv_prog_as_underscore=yes
18195 else
18196 gl_cv_prog_as_underscore=no
18197 fi
18198 rm -f conftest*
18199  
18200 fi
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
18202 $as_echo "$gl_cv_prog_as_underscore" >&6; }
18203 if test $gl_cv_prog_as_underscore = yes; then
18204 USER_LABEL_PREFIX=_
18205 else
18206 USER_LABEL_PREFIX=
18207 fi
18208  
18209 cat >>confdefs.h <<_ACEOF
18210 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
18211 _ACEOF
18212  
18213 ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
18214  
18215  
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18217 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18218 if ${ac_cv_header_stdbool_h+:} false; then :
18219 $as_echo_n "(cached) " >&6
18220 else
18221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18222 /* end confdefs.h. */
18223  
18224 #include <stdbool.h>
18225 #ifndef bool
18226 "error: bool is not defined"
18227 #endif
18228 #ifndef false
18229 "error: false is not defined"
18230 #endif
18231 #if false
18232 "error: false is not 0"
18233 #endif
18234 #ifndef true
18235 "error: true is not defined"
18236 #endif
18237 #if true != 1
18238 "error: true is not 1"
18239 #endif
18240 #ifndef __bool_true_false_are_defined
18241 "error: __bool_true_false_are_defined is not defined"
18242 #endif
18243  
18244 struct s { _Bool s: 1; _Bool t; } s;
18245  
18246 char a[true == 1 ? 1 : -1];
18247 char b[false == 0 ? 1 : -1];
18248 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18249 char d[(bool) 0.5 == true ? 1 : -1];
18250 /* See body of main program for 'e'. */
18251 char f[(_Bool) 0.0 == false ? 1 : -1];
18252 char g[true];
18253 char h[sizeof (_Bool)];
18254 char i[sizeof s.t];
18255 enum { j = false, k = true, l = false * true, m = true * 256 };
18256 /* The following fails for
18257 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18258 _Bool n[m];
18259 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18260 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18261 /* Catch a bug in an HP-UX C compiler. See
18262 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18263 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18264 */
18265 _Bool q = true;
18266 _Bool *pq = &q;
18267  
18268 int
18269 main ()
18270 {
18271  
18272 bool e = &s;
18273 *pq |= q;
18274 *pq |= ! q;
18275 /* Refer to every declared value, to avoid compiler optimizations. */
18276 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18277 + !m + !n + !o + !p + !q + !pq);
18278  
18279 ;
18280 return 0;
18281 }
18282 _ACEOF
18283 if ac_fn_c_try_compile "$LINENO"; then :
18284 ac_cv_header_stdbool_h=yes
18285 else
18286 ac_cv_header_stdbool_h=no
18287 fi
18288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18289 fi
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18291 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18292 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18293 if test "x$ac_cv_type__Bool" = xyes; then :
18294  
18295 cat >>confdefs.h <<_ACEOF
18296 #define HAVE__BOOL 1
18297 _ACEOF
18298  
18299  
18300 fi
18301  
18302  
18303  
18304 REPLACE_NULL=0;
18305 HAVE_WCHAR_T=1;
18306  
18307  
18308  
18309  
18310  
18311  
18312  
18313  
18314 if test $ac_cv_type_long_long_int = yes; then
18315 HAVE_LONG_LONG_INT=1
18316 else
18317 HAVE_LONG_LONG_INT=0
18318 fi
18319  
18320  
18321 if test $ac_cv_type_unsigned_long_long_int = yes; then
18322 HAVE_UNSIGNED_LONG_LONG_INT=1
18323 else
18324 HAVE_UNSIGNED_LONG_LONG_INT=0
18325 fi
18326  
18327  
18328  
18329 if test $ac_cv_header_wchar_h = yes; then
18330 HAVE_WCHAR_H=1
18331 else
18332 HAVE_WCHAR_H=0
18333 fi
18334  
18335  
18336 if test $ac_cv_header_inttypes_h = yes; then
18337 HAVE_INTTYPES_H=1
18338 else
18339 HAVE_INTTYPES_H=0
18340 fi
18341  
18342  
18343 if test $ac_cv_header_sys_types_h = yes; then
18344 HAVE_SYS_TYPES_H=1
18345 else
18346 HAVE_SYS_TYPES_H=0
18347 fi
18348  
18349  
18350  
18351  
18352  
18353  
18354  
18355  
18356  
18357  
18358  
18359 if test $gl_cv_have_include_next = yes; then
18360 gl_cv_next_stdint_h='<'stdint.h'>'
18361 else
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18363 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18364 if ${gl_cv_next_stdint_h+:} false; then :
18365 $as_echo_n "(cached) " >&6
18366 else
18367  
18368 if test $ac_cv_header_stdint_h = yes; then
18369  
18370  
18371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18372 /* end confdefs.h. */
18373 #include <stdint.h>
18374  
18375 _ACEOF
18376 case "$host_os" in
18377 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18378 *) gl_absname_cpp="$ac_cpp" ;;
18379 esac
18380 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18381 sed -n '\#/stdint.h#{
18382 s#.*"\(.*/stdint.h\)".*#\1#
18383 s#^/[^/]#//&#
18384 p
18385 q
18386 }'`'"'
18387 else
18388 gl_cv_next_stdint_h='<'stdint.h'>'
18389 fi
18390  
18391  
18392 fi
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18394 $as_echo "$gl_cv_next_stdint_h" >&6; }
18395 fi
18396 NEXT_STDINT_H=$gl_cv_next_stdint_h
18397  
18398 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18399 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18400 gl_next_as_first_directive='<'stdint.h'>'
18401 else
18402 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18403 gl_next_as_first_directive=$gl_cv_next_stdint_h
18404 fi
18405 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18406  
18407  
18408  
18409  
18410 if test $ac_cv_header_stdint_h = yes; then
18411 HAVE_STDINT_H=1
18412 else
18413 HAVE_STDINT_H=0
18414 fi
18415  
18416  
18417 if test $ac_cv_header_stdint_h = yes; then
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18419 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18420 if ${gl_cv_header_working_stdint_h+:} false; then :
18421 $as_echo_n "(cached) " >&6
18422 else
18423 gl_cv_header_working_stdint_h=no
18424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18425 /* end confdefs.h. */
18426  
18427  
18428 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18429 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18430 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18431 #include <stdint.h>
18432 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18433 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18434 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18435 #endif
18436  
18437  
18438 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18439 included before <wchar.h>. */
18440 #include <stddef.h>
18441 #include <signal.h>
18442 #if HAVE_WCHAR_H
18443 # include <stdio.h>
18444 # include <time.h>
18445 # include <wchar.h>
18446 #endif
18447  
18448  
18449 #ifdef INT8_MAX
18450 int8_t a1 = INT8_MAX;
18451 int8_t a1min = INT8_MIN;
18452 #endif
18453 #ifdef INT16_MAX
18454 int16_t a2 = INT16_MAX;
18455 int16_t a2min = INT16_MIN;
18456 #endif
18457 #ifdef INT32_MAX
18458 int32_t a3 = INT32_MAX;
18459 int32_t a3min = INT32_MIN;
18460 #endif
18461 #ifdef INT64_MAX
18462 int64_t a4 = INT64_MAX;
18463 int64_t a4min = INT64_MIN;
18464 #endif
18465 #ifdef UINT8_MAX
18466 uint8_t b1 = UINT8_MAX;
18467 #else
18468 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18469 #endif
18470 #ifdef UINT16_MAX
18471 uint16_t b2 = UINT16_MAX;
18472 #endif
18473 #ifdef UINT32_MAX
18474 uint32_t b3 = UINT32_MAX;
18475 #endif
18476 #ifdef UINT64_MAX
18477 uint64_t b4 = UINT64_MAX;
18478 #endif
18479 int_least8_t c1 = INT8_C (0x7f);
18480 int_least8_t c1max = INT_LEAST8_MAX;
18481 int_least8_t c1min = INT_LEAST8_MIN;
18482 int_least16_t c2 = INT16_C (0x7fff);
18483 int_least16_t c2max = INT_LEAST16_MAX;
18484 int_least16_t c2min = INT_LEAST16_MIN;
18485 int_least32_t c3 = INT32_C (0x7fffffff);
18486 int_least32_t c3max = INT_LEAST32_MAX;
18487 int_least32_t c3min = INT_LEAST32_MIN;
18488 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18489 int_least64_t c4max = INT_LEAST64_MAX;
18490 int_least64_t c4min = INT_LEAST64_MIN;
18491 uint_least8_t d1 = UINT8_C (0xff);
18492 uint_least8_t d1max = UINT_LEAST8_MAX;
18493 uint_least16_t d2 = UINT16_C (0xffff);
18494 uint_least16_t d2max = UINT_LEAST16_MAX;
18495 uint_least32_t d3 = UINT32_C (0xffffffff);
18496 uint_least32_t d3max = UINT_LEAST32_MAX;
18497 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18498 uint_least64_t d4max = UINT_LEAST64_MAX;
18499 int_fast8_t e1 = INT_FAST8_MAX;
18500 int_fast8_t e1min = INT_FAST8_MIN;
18501 int_fast16_t e2 = INT_FAST16_MAX;
18502 int_fast16_t e2min = INT_FAST16_MIN;
18503 int_fast32_t e3 = INT_FAST32_MAX;
18504 int_fast32_t e3min = INT_FAST32_MIN;
18505 int_fast64_t e4 = INT_FAST64_MAX;
18506 int_fast64_t e4min = INT_FAST64_MIN;
18507 uint_fast8_t f1 = UINT_FAST8_MAX;
18508 uint_fast16_t f2 = UINT_FAST16_MAX;
18509 uint_fast32_t f3 = UINT_FAST32_MAX;
18510 uint_fast64_t f4 = UINT_FAST64_MAX;
18511 #ifdef INTPTR_MAX
18512 intptr_t g = INTPTR_MAX;
18513 intptr_t gmin = INTPTR_MIN;
18514 #endif
18515 #ifdef UINTPTR_MAX
18516 uintptr_t h = UINTPTR_MAX;
18517 #endif
18518 intmax_t i = INTMAX_MAX;
18519 uintmax_t j = UINTMAX_MAX;
18520  
18521 #include <limits.h> /* for CHAR_BIT */
18522 #define TYPE_MINIMUM(t) \
18523 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18524 #define TYPE_MAXIMUM(t) \
18525 ((t) ((t) 0 < (t) -1 \
18526 ? (t) -1 \
18527 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18528 struct s {
18529 int check_PTRDIFF:
18530 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18531 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18532 ? 1 : -1;
18533 /* Detect bug in FreeBSD 6.0 / ia64. */
18534 int check_SIG_ATOMIC:
18535 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18536 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18537 ? 1 : -1;
18538 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18539 int check_WCHAR:
18540 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18541 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18542 ? 1 : -1;
18543 /* Detect bug in mingw. */
18544 int check_WINT:
18545 WINT_MIN == TYPE_MINIMUM (wint_t)
18546 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18547 ? 1 : -1;
18548  
18549 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18550 int check_UINT8_C:
18551 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18552 int check_UINT16_C:
18553 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18554  
18555 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18556 #ifdef UINT8_MAX
18557 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18558 #endif
18559 #ifdef UINT16_MAX
18560 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18561 #endif
18562 #ifdef UINT32_MAX
18563 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18564 #endif
18565 #ifdef UINT64_MAX
18566 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18567 #endif
18568 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18569 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18570 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18571 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18572 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18573 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18574 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18575 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18576 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18577 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18578 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18579 };
18580  
18581 int
18582 main ()
18583 {
18584  
18585 ;
18586 return 0;
18587 }
18588 _ACEOF
18589 if ac_fn_c_try_compile "$LINENO"; then :
18590 if test "$cross_compiling" = yes; then :
18591 gl_cv_header_working_stdint_h=yes
18592  
18593 else
18594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18595 /* end confdefs.h. */
18596  
18597  
18598 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18599 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18600 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18601 #include <stdint.h>
18602  
18603  
18604 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18605 included before <wchar.h>. */
18606 #include <stddef.h>
18607 #include <signal.h>
18608 #if HAVE_WCHAR_H
18609 # include <stdio.h>
18610 # include <time.h>
18611 # include <wchar.h>
18612 #endif
18613  
18614  
18615 #include <stdio.h>
18616 #include <string.h>
18617 #define MVAL(macro) MVAL1(macro)
18618 #define MVAL1(expression) #expression
18619 static const char *macro_values[] =
18620 {
18621 #ifdef INT8_MAX
18622 MVAL (INT8_MAX),
18623 #endif
18624 #ifdef INT16_MAX
18625 MVAL (INT16_MAX),
18626 #endif
18627 #ifdef INT32_MAX
18628 MVAL (INT32_MAX),
18629 #endif
18630 #ifdef INT64_MAX
18631 MVAL (INT64_MAX),
18632 #endif
18633 #ifdef UINT8_MAX
18634 MVAL (UINT8_MAX),
18635 #endif
18636 #ifdef UINT16_MAX
18637 MVAL (UINT16_MAX),
18638 #endif
18639 #ifdef UINT32_MAX
18640 MVAL (UINT32_MAX),
18641 #endif
18642 #ifdef UINT64_MAX
18643 MVAL (UINT64_MAX),
18644 #endif
18645 NULL
18646 };
18647  
18648 int
18649 main ()
18650 {
18651  
18652 const char **mv;
18653 for (mv = macro_values; *mv != NULL; mv++)
18654 {
18655 const char *value = *mv;
18656 /* Test whether it looks like a cast expression. */
18657 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18658 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18659 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18660 || strncmp (value, "((int)"/*)*/, 6) == 0
18661 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18662 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18663 return mv - macro_values + 1;
18664 }
18665 return 0;
18666  
18667 ;
18668 return 0;
18669 }
18670 _ACEOF
18671 if ac_fn_c_try_run "$LINENO"; then :
18672 gl_cv_header_working_stdint_h=yes
18673 fi
18674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18675 conftest.$ac_objext conftest.beam conftest.$ac_ext
18676 fi
18677  
18678  
18679 fi
18680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18681  
18682 fi
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18684 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18685 fi
18686 if test "$gl_cv_header_working_stdint_h" = yes; then
18687 STDINT_H=
18688 else
18689 for ac_header in sys/inttypes.h sys/bitypes.h
18690 do :
18691 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18692 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18693 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18694 cat >>confdefs.h <<_ACEOF
18695 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18696 _ACEOF
18697  
18698 fi
18699  
18700 done
18701  
18702 if test $ac_cv_header_sys_inttypes_h = yes; then
18703 HAVE_SYS_INTTYPES_H=1
18704 else
18705 HAVE_SYS_INTTYPES_H=0
18706 fi
18707  
18708 if test $ac_cv_header_sys_bitypes_h = yes; then
18709 HAVE_SYS_BITYPES_H=1
18710 else
18711 HAVE_SYS_BITYPES_H=0
18712 fi
18713  
18714  
18715  
18716  
18717 if test $APPLE_UNIVERSAL_BUILD = 0; then
18718  
18719  
18720 for gltype in ptrdiff_t size_t ; do
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18722 $as_echo_n "checking for bit size of $gltype... " >&6; }
18723 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
18724 $as_echo_n "(cached) " >&6
18725 else
18726 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18727 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18728 included before <wchar.h>. */
18729 #include <stddef.h>
18730 #include <signal.h>
18731 #if HAVE_WCHAR_H
18732 # include <stdio.h>
18733 # include <time.h>
18734 # include <wchar.h>
18735 #endif
18736  
18737 #include <limits.h>"; then :
18738  
18739 else
18740 result=unknown
18741 fi
18742  
18743 eval gl_cv_bitsizeof_${gltype}=\$result
18744  
18745 fi
18746 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18748 $as_echo "$ac_res" >&6; }
18749 eval result=\$gl_cv_bitsizeof_${gltype}
18750 if test $result = unknown; then
18751 result=0
18752 fi
18753 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18754 cat >>confdefs.h <<_ACEOF
18755 #define BITSIZEOF_${GLTYPE} $result
18756 _ACEOF
18757  
18758 eval BITSIZEOF_${GLTYPE}=\$result
18759 done
18760  
18761  
18762 fi
18763  
18764  
18765 for gltype in sig_atomic_t wchar_t wint_t ; do
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18767 $as_echo_n "checking for bit size of $gltype... " >&6; }
18768 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
18769 $as_echo_n "(cached) " >&6
18770 else
18771 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18772 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18773 included before <wchar.h>. */
18774 #include <stddef.h>
18775 #include <signal.h>
18776 #if HAVE_WCHAR_H
18777 # include <stdio.h>
18778 # include <time.h>
18779 # include <wchar.h>
18780 #endif
18781  
18782 #include <limits.h>"; then :
18783  
18784 else
18785 result=unknown
18786 fi
18787  
18788 eval gl_cv_bitsizeof_${gltype}=\$result
18789  
18790 fi
18791 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18793 $as_echo "$ac_res" >&6; }
18794 eval result=\$gl_cv_bitsizeof_${gltype}
18795 if test $result = unknown; then
18796 result=0
18797 fi
18798 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18799 cat >>confdefs.h <<_ACEOF
18800 #define BITSIZEOF_${GLTYPE} $result
18801 _ACEOF
18802  
18803 eval BITSIZEOF_${GLTYPE}=\$result
18804 done
18805  
18806  
18807  
18808  
18809 for gltype in sig_atomic_t wchar_t wint_t ; do
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18811 $as_echo_n "checking whether $gltype is signed... " >&6; }
18812 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
18813 $as_echo_n "(cached) " >&6
18814 else
18815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18816 /* end confdefs.h. */
18817  
18818 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18819 included before <wchar.h>. */
18820 #include <stddef.h>
18821 #include <signal.h>
18822 #if HAVE_WCHAR_H
18823 # include <stdio.h>
18824 # include <time.h>
18825 # include <wchar.h>
18826 #endif
18827  
18828 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18829 int
18830 main ()
18831 {
18832  
18833 ;
18834 return 0;
18835 }
18836 _ACEOF
18837 if ac_fn_c_try_compile "$LINENO"; then :
18838 result=yes
18839 else
18840 result=no
18841 fi
18842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18843 eval gl_cv_type_${gltype}_signed=\$result
18844  
18845 fi
18846 eval ac_res=\$gl_cv_type_${gltype}_signed
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18848 $as_echo "$ac_res" >&6; }
18849 eval result=\$gl_cv_type_${gltype}_signed
18850 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18851 if test "$result" = yes; then
18852 cat >>confdefs.h <<_ACEOF
18853 #define HAVE_SIGNED_${GLTYPE} 1
18854 _ACEOF
18855  
18856 eval HAVE_SIGNED_${GLTYPE}=1
18857 else
18858 eval HAVE_SIGNED_${GLTYPE}=0
18859 fi
18860 done
18861  
18862  
18863 gl_cv_type_ptrdiff_t_signed=yes
18864 gl_cv_type_size_t_signed=no
18865 if test $APPLE_UNIVERSAL_BUILD = 0; then
18866  
18867  
18868 for gltype in ptrdiff_t size_t ; do
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18870 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18871 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18872 $as_echo_n "(cached) " >&6
18873 else
18874 eval gl_cv_type_${gltype}_suffix=no
18875 eval result=\$gl_cv_type_${gltype}_signed
18876 if test "$result" = yes; then
18877 glsufu=
18878 else
18879 glsufu=u
18880 fi
18881 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18882 case $glsuf in
18883 '') gltype1='int';;
18884 l) gltype1='long int';;
18885 ll) gltype1='long long int';;
18886 i64) gltype1='__int64';;
18887 u) gltype1='unsigned int';;
18888 ul) gltype1='unsigned long int';;
18889 ull) gltype1='unsigned long long int';;
18890 ui64)gltype1='unsigned __int64';;
18891 esac
18892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18893 /* end confdefs.h. */
18894  
18895 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18896 included before <wchar.h>. */
18897 #include <stddef.h>
18898 #include <signal.h>
18899 #if HAVE_WCHAR_H
18900 # include <stdio.h>
18901 # include <time.h>
18902 # include <wchar.h>
18903 #endif
18904  
18905 extern $gltype foo;
18906 extern $gltype1 foo;
18907 int
18908 main ()
18909 {
18910  
18911 ;
18912 return 0;
18913 }
18914 _ACEOF
18915 if ac_fn_c_try_compile "$LINENO"; then :
18916 eval gl_cv_type_${gltype}_suffix=\$glsuf
18917 fi
18918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18919 eval result=\$gl_cv_type_${gltype}_suffix
18920 test "$result" != no && break
18921 done
18922 fi
18923 eval ac_res=\$gl_cv_type_${gltype}_suffix
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18925 $as_echo "$ac_res" >&6; }
18926 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18927 eval result=\$gl_cv_type_${gltype}_suffix
18928 test "$result" = no && result=
18929 eval ${GLTYPE}_SUFFIX=\$result
18930 cat >>confdefs.h <<_ACEOF
18931 #define ${GLTYPE}_SUFFIX $result
18932 _ACEOF
18933  
18934 done
18935  
18936  
18937 fi
18938  
18939  
18940 for gltype in sig_atomic_t wchar_t wint_t ; do
18941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18942 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18943 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18944 $as_echo_n "(cached) " >&6
18945 else
18946 eval gl_cv_type_${gltype}_suffix=no
18947 eval result=\$gl_cv_type_${gltype}_signed
18948 if test "$result" = yes; then
18949 glsufu=
18950 else
18951 glsufu=u
18952 fi
18953 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18954 case $glsuf in
18955 '') gltype1='int';;
18956 l) gltype1='long int';;
18957 ll) gltype1='long long int';;
18958 i64) gltype1='__int64';;
18959 u) gltype1='unsigned int';;
18960 ul) gltype1='unsigned long int';;
18961 ull) gltype1='unsigned long long int';;
18962 ui64)gltype1='unsigned __int64';;
18963 esac
18964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18965 /* end confdefs.h. */
18966  
18967 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18968 included before <wchar.h>. */
18969 #include <stddef.h>
18970 #include <signal.h>
18971 #if HAVE_WCHAR_H
18972 # include <stdio.h>
18973 # include <time.h>
18974 # include <wchar.h>
18975 #endif
18976  
18977 extern $gltype foo;
18978 extern $gltype1 foo;
18979 int
18980 main ()
18981 {
18982  
18983 ;
18984 return 0;
18985 }
18986 _ACEOF
18987 if ac_fn_c_try_compile "$LINENO"; then :
18988 eval gl_cv_type_${gltype}_suffix=\$glsuf
18989 fi
18990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18991 eval result=\$gl_cv_type_${gltype}_suffix
18992 test "$result" != no && break
18993 done
18994 fi
18995 eval ac_res=\$gl_cv_type_${gltype}_suffix
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18997 $as_echo "$ac_res" >&6; }
18998 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18999 eval result=\$gl_cv_type_${gltype}_suffix
19000 test "$result" = no && result=
19001 eval ${GLTYPE}_SUFFIX=\$result
19002 cat >>confdefs.h <<_ACEOF
19003 #define ${GLTYPE}_SUFFIX $result
19004 _ACEOF
19005  
19006 done
19007  
19008  
19009  
19010 STDINT_H=stdint.h
19011 fi
19012  
19013 if test -n "$STDINT_H"; then
19014 GL_GENERATE_STDINT_H_TRUE=
19015 GL_GENERATE_STDINT_H_FALSE='#'
19016 else
19017 GL_GENERATE_STDINT_H_TRUE='#'
19018 GL_GENERATE_STDINT_H_FALSE=
19019 fi
19020  
19021  
19022  
19023 GNULIB_FFSL=0;
19024 GNULIB_FFSLL=0;
19025 GNULIB_MEMCHR=0;
19026 GNULIB_MEMMEM=0;
19027 GNULIB_MEMPCPY=0;
19028 GNULIB_MEMRCHR=0;
19029 GNULIB_RAWMEMCHR=0;
19030 GNULIB_STPCPY=0;
19031 GNULIB_STPNCPY=0;
19032 GNULIB_STRCHRNUL=0;
19033 GNULIB_STRDUP=0;
19034 GNULIB_STRNCAT=0;
19035 GNULIB_STRNDUP=0;
19036 GNULIB_STRNLEN=0;
19037 GNULIB_STRPBRK=0;
19038 GNULIB_STRSEP=0;
19039 GNULIB_STRSTR=0;
19040 GNULIB_STRCASESTR=0;
19041 GNULIB_STRTOK_R=0;
19042 GNULIB_MBSLEN=0;
19043 GNULIB_MBSNLEN=0;
19044 GNULIB_MBSCHR=0;
19045 GNULIB_MBSRCHR=0;
19046 GNULIB_MBSSTR=0;
19047 GNULIB_MBSCASECMP=0;
19048 GNULIB_MBSNCASECMP=0;
19049 GNULIB_MBSPCASECMP=0;
19050 GNULIB_MBSCASESTR=0;
19051 GNULIB_MBSCSPN=0;
19052 GNULIB_MBSPBRK=0;
19053 GNULIB_MBSSPN=0;
19054 GNULIB_MBSSEP=0;
19055 GNULIB_MBSTOK_R=0;
19056 GNULIB_STRERROR=0;
19057 GNULIB_STRERROR_R=0;
19058 GNULIB_STRSIGNAL=0;
19059 GNULIB_STRVERSCMP=0;
19060 HAVE_MBSLEN=0;
19061 HAVE_FFSL=1;
19062 HAVE_FFSLL=1;
19063 HAVE_MEMCHR=1;
19064 HAVE_DECL_MEMMEM=1;
19065 HAVE_MEMPCPY=1;
19066 HAVE_DECL_MEMRCHR=1;
19067 HAVE_RAWMEMCHR=1;
19068 HAVE_STPCPY=1;
19069 HAVE_STPNCPY=1;
19070 HAVE_STRCHRNUL=1;
19071 HAVE_DECL_STRDUP=1;
19072 HAVE_DECL_STRNDUP=1;
19073 HAVE_DECL_STRNLEN=1;
19074 HAVE_STRPBRK=1;
19075 HAVE_STRSEP=1;
19076 HAVE_STRCASESTR=1;
19077 HAVE_DECL_STRTOK_R=1;
19078 HAVE_DECL_STRERROR_R=1;
19079 HAVE_DECL_STRSIGNAL=1;
19080 HAVE_STRVERSCMP=1;
19081 REPLACE_MEMCHR=0;
19082 REPLACE_MEMMEM=0;
19083 REPLACE_STPNCPY=0;
19084 REPLACE_STRDUP=0;
19085 REPLACE_STRSTR=0;
19086 REPLACE_STRCASESTR=0;
19087 REPLACE_STRCHRNUL=0;
19088 REPLACE_STRERROR=0;
19089 REPLACE_STRERROR_R=0;
19090 REPLACE_STRNCAT=0;
19091 REPLACE_STRNDUP=0;
19092 REPLACE_STRNLEN=0;
19093 REPLACE_STRSIGNAL=0;
19094 REPLACE_STRTOK_R=0;
19095 UNDEFINE_STRTOK_R=0;
19096  
19097  
19098 REPLACE_STRERROR_0=0
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
19100 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
19101 if ${gl_cv_func_strerror_0_works+:} false; then :
19102 $as_echo_n "(cached) " >&6
19103 else
19104 if test "$cross_compiling" = yes; then :
19105 gl_cv_func_strerror_0_works="guessing no"
19106 else
19107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19108 /* end confdefs.h. */
19109 #include <string.h>
19110 #include <errno.h>
19111  
19112 int
19113 main ()
19114 {
19115 int result = 0;
19116 char *str;
19117 errno = 0;
19118 str = strerror (0);
19119 if (!*str) result |= 1;
19120 if (errno) result |= 2;
19121 if (strstr (str, "nknown") || strstr (str, "ndefined"))
19122 result |= 4;
19123 return result;
19124 ;
19125 return 0;
19126 }
19127 _ACEOF
19128 if ac_fn_c_try_run "$LINENO"; then :
19129 gl_cv_func_strerror_0_works=yes
19130 else
19131 gl_cv_func_strerror_0_works=no
19132 fi
19133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19134 conftest.$ac_objext conftest.beam conftest.$ac_ext
19135 fi
19136  
19137  
19138 fi
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
19140 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
19141 if test "$gl_cv_func_strerror_0_works" != yes; then
19142 REPLACE_STRERROR_0=1
19143  
19144 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
19145  
19146 fi
19147  
19148  
19149  
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19151 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19152 if ${ac_cv_c_restrict+:} false; then :
19153 $as_echo_n "(cached) " >&6
19154 else
19155 ac_cv_c_restrict=no
19156 # The order here caters to the fact that C++ does not require restrict.
19157 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19159 /* end confdefs.h. */
19160 typedef int * int_ptr;
19161 int foo (int_ptr $ac_kw ip) {
19162 return ip[0];
19163 }
19164 int
19165 main ()
19166 {
19167 int s[1];
19168 int * $ac_kw t = s;
19169 t[0] = 0;
19170 return foo(t)
19171 ;
19172 return 0;
19173 }
19174 _ACEOF
19175 if ac_fn_c_try_compile "$LINENO"; then :
19176 ac_cv_c_restrict=$ac_kw
19177 fi
19178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19179 test "$ac_cv_c_restrict" != no && break
19180 done
19181  
19182 fi
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19184 $as_echo "$ac_cv_c_restrict" >&6; }
19185  
19186 case $ac_cv_c_restrict in
19187 restrict) ;;
19188 no) $as_echo "#define restrict /**/" >>confdefs.h
19189 ;;
19190 *) cat >>confdefs.h <<_ACEOF
19191 #define restrict $ac_cv_c_restrict
19192 _ACEOF
19193 ;;
19194 esac
19195  
19196  
19197  
19198  
19199  
19200  
19201  
19202  
19203  
19204  
19205  
19206  
19207 if test $gl_cv_have_include_next = yes; then
19208 gl_cv_next_string_h='<'string.h'>'
19209 else
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
19211 $as_echo_n "checking absolute name of <string.h>... " >&6; }
19212 if ${gl_cv_next_string_h+:} false; then :
19213 $as_echo_n "(cached) " >&6
19214 else
19215  
19216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19217 /* end confdefs.h. */
19218 #include <string.h>
19219  
19220 _ACEOF
19221 case "$host_os" in
19222 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19223 *) gl_absname_cpp="$ac_cpp" ;;
19224 esac
19225 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19226 sed -n '\#/string.h#{
19227 s#.*"\(.*/string.h\)".*#\1#
19228 s#^/[^/]#//&#
19229 p
19230 q
19231 }'`'"'
19232  
19233  
19234 fi
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
19236 $as_echo "$gl_cv_next_string_h" >&6; }
19237 fi
19238 NEXT_STRING_H=$gl_cv_next_string_h
19239  
19240 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19241 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19242 gl_next_as_first_directive='<'string.h'>'
19243 else
19244 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19245 gl_next_as_first_directive=$gl_cv_next_string_h
19246 fi
19247 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
19248  
19249  
19250  
19251  
19252  
19253  
19254 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
19255 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19257 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19258 if eval \${$as_gl_Symbol+:} false; then :
19259 $as_echo_n "(cached) " >&6
19260 else
19261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19262 /* end confdefs.h. */
19263 #include <string.h>
19264  
19265 int
19266 main ()
19267 {
19268 #undef $gl_func
19269 (void) $gl_func;
19270 ;
19271 return 0;
19272 }
19273 _ACEOF
19274 if ac_fn_c_try_compile "$LINENO"; then :
19275 eval "$as_gl_Symbol=yes"
19276 else
19277 eval "$as_gl_Symbol=no"
19278 fi
19279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19280 fi
19281 eval ac_res=\$$as_gl_Symbol
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19283 $as_echo "$ac_res" >&6; }
19284 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19285 cat >>confdefs.h <<_ACEOF
19286 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19287 _ACEOF
19288  
19289 eval ac_cv_have_decl_$gl_func=yes
19290 fi
19291 done
19292  
19293  
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19295 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19296 if ${ac_cv_header_stat_broken+:} false; then :
19297 $as_echo_n "(cached) " >&6
19298 else
19299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19300 /* end confdefs.h. */
19301 #include <sys/types.h>
19302 #include <sys/stat.h>
19303  
19304 #if defined S_ISBLK && defined S_IFDIR
19305 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19306 #endif
19307  
19308 #if defined S_ISBLK && defined S_IFCHR
19309 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19310 #endif
19311  
19312 #if defined S_ISLNK && defined S_IFREG
19313 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19314 #endif
19315  
19316 #if defined S_ISSOCK && defined S_IFREG
19317 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19318 #endif
19319  
19320 _ACEOF
19321 if ac_fn_c_try_compile "$LINENO"; then :
19322 ac_cv_header_stat_broken=no
19323 else
19324 ac_cv_header_stat_broken=yes
19325 fi
19326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19327 fi
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19329 $as_echo "$ac_cv_header_stat_broken" >&6; }
19330 if test $ac_cv_header_stat_broken = yes; then
19331  
19332 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19333  
19334 fi
19335  
19336  
19337  
19338  
19339 GNULIB_MKTIME=0;
19340 GNULIB_NANOSLEEP=0;
19341 GNULIB_STRPTIME=0;
19342 GNULIB_TIMEGM=0;
19343 GNULIB_TIME_R=0;
19344 HAVE_DECL_LOCALTIME_R=1;
19345 HAVE_NANOSLEEP=1;
19346 HAVE_STRPTIME=1;
19347 HAVE_TIMEGM=1;
19348 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19349 REPLACE_MKTIME=GNULIB_PORTCHECK;
19350 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19351 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19352  
19353  
19354  
19355  
19356  
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19358 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19359 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
19360 $as_echo_n "(cached) " >&6
19361 else
19362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19363 /* end confdefs.h. */
19364 #include <time.h>
19365  
19366 int
19367 main ()
19368 {
19369 static struct timespec x; x.tv_sec = x.tv_nsec;
19370 ;
19371 return 0;
19372 }
19373 _ACEOF
19374 if ac_fn_c_try_compile "$LINENO"; then :
19375 gl_cv_sys_struct_timespec_in_time_h=yes
19376 else
19377 gl_cv_sys_struct_timespec_in_time_h=no
19378 fi
19379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19380 fi
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19382 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19383  
19384 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19385 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19386 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19387 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19388 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19389 else
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19391 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19392 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
19393 $as_echo_n "(cached) " >&6
19394 else
19395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19396 /* end confdefs.h. */
19397 #include <sys/time.h>
19398  
19399 int
19400 main ()
19401 {
19402 static struct timespec x; x.tv_sec = x.tv_nsec;
19403 ;
19404 return 0;
19405 }
19406 _ACEOF
19407 if ac_fn_c_try_compile "$LINENO"; then :
19408 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19409 else
19410 gl_cv_sys_struct_timespec_in_sys_time_h=no
19411 fi
19412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19413 fi
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19415 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19416 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19417 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19418 else
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19420 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19421 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
19422 $as_echo_n "(cached) " >&6
19423 else
19424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19425 /* end confdefs.h. */
19426 #include <pthread.h>
19427  
19428 int
19429 main ()
19430 {
19431 static struct timespec x; x.tv_sec = x.tv_nsec;
19432 ;
19433 return 0;
19434 }
19435 _ACEOF
19436 if ac_fn_c_try_compile "$LINENO"; then :
19437 gl_cv_sys_struct_timespec_in_pthread_h=yes
19438 else
19439 gl_cv_sys_struct_timespec_in_pthread_h=no
19440 fi
19441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19442 fi
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19444 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19445 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19446 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19447 fi
19448 fi
19449 fi
19450  
19451  
19452  
19453  
19454  
19455  
19456  
19457  
19458  
19459  
19460  
19461  
19462  
19463  
19464  
19465 if test $gl_cv_have_include_next = yes; then
19466 gl_cv_next_time_h='<'time.h'>'
19467 else
19468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19469 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19470 if ${gl_cv_next_time_h+:} false; then :
19471 $as_echo_n "(cached) " >&6
19472 else
19473  
19474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19475 /* end confdefs.h. */
19476 #include <time.h>
19477  
19478 _ACEOF
19479 case "$host_os" in
19480 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19481 *) gl_absname_cpp="$ac_cpp" ;;
19482 esac
19483 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19484 sed -n '\#/time.h#{
19485 s#.*"\(.*/time.h\)".*#\1#
19486 s#^/[^/]#//&#
19487 p
19488 q
19489 }'`'"'
19490  
19491  
19492 fi
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19494 $as_echo "$gl_cv_next_time_h" >&6; }
19495 fi
19496 NEXT_TIME_H=$gl_cv_next_time_h
19497  
19498 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19499 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19500 gl_next_as_first_directive='<'time.h'>'
19501 else
19502 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19503 gl_next_as_first_directive=$gl_cv_next_time_h
19504 fi
19505 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19506  
19507  
19508  
19509  
19510  
19511  
19512  
19513  
19514  
19515  
19516  
19517  
19518 gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
19519 i\
19520  
19521 q
19522 '
19523 gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
19524 i\
19525  
19526 q
19527 '
19528 gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
19529 i\
19530  
19531 q
19532 '
19533  
19534  
19535 if test "$HAVE_LIBUNISTRING" = yes; then
19536 LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
19537 LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
19538 LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
19539 fi
19540  
19541 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
19542 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
19543 ac_have_decl=1
19544 else
19545 ac_have_decl=0
19546 fi
19547  
19548 cat >>confdefs.h <<_ACEOF
19549 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
19550 _ACEOF
19551  
19552 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
19553 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
19554 ac_have_decl=1
19555 else
19556 ac_have_decl=0
19557 fi
19558  
19559 cat >>confdefs.h <<_ACEOF
19560 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
19561 _ACEOF
19562  
19563 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
19564 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
19565 ac_have_decl=1
19566 else
19567 ac_have_decl=0
19568 fi
19569  
19570 cat >>confdefs.h <<_ACEOF
19571 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
19572 _ACEOF
19573  
19574 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
19575 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
19576 ac_have_decl=1
19577 else
19578 ac_have_decl=0
19579 fi
19580  
19581 cat >>confdefs.h <<_ACEOF
19582 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
19583 _ACEOF
19584  
19585 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
19586 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
19587 ac_have_decl=1
19588 else
19589 ac_have_decl=0
19590 fi
19591  
19592 cat >>confdefs.h <<_ACEOF
19593 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
19594 _ACEOF
19595  
19596 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
19597 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
19598 ac_have_decl=1
19599 else
19600 ac_have_decl=0
19601 fi
19602  
19603 cat >>confdefs.h <<_ACEOF
19604 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
19605 _ACEOF
19606  
19607 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
19608 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
19609 ac_have_decl=1
19610 else
19611 ac_have_decl=0
19612 fi
19613  
19614 cat >>confdefs.h <<_ACEOF
19615 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
19616 _ACEOF
19617  
19618 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
19619 if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
19620 ac_have_decl=1
19621 else
19622 ac_have_decl=0
19623 fi
19624  
19625 cat >>confdefs.h <<_ACEOF
19626 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
19627 _ACEOF
19628  
19629 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
19630 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
19631 ac_have_decl=1
19632 else
19633 ac_have_decl=0
19634 fi
19635  
19636 cat >>confdefs.h <<_ACEOF
19637 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
19638 _ACEOF
19639  
19640 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
19641 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
19642 ac_have_decl=1
19643 else
19644 ac_have_decl=0
19645 fi
19646  
19647 cat >>confdefs.h <<_ACEOF
19648 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
19649 _ACEOF
19650  
19651 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
19652 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
19653 ac_have_decl=1
19654 else
19655 ac_have_decl=0
19656 fi
19657  
19658 cat >>confdefs.h <<_ACEOF
19659 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
19660 _ACEOF
19661  
19662 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
19663 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
19664 ac_have_decl=1
19665 else
19666 ac_have_decl=0
19667 fi
19668  
19669 cat >>confdefs.h <<_ACEOF
19670 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
19671 _ACEOF
19672  
19673 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
19674 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
19675 ac_have_decl=1
19676 else
19677 ac_have_decl=0
19678 fi
19679  
19680 cat >>confdefs.h <<_ACEOF
19681 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
19682 _ACEOF
19683  
19684  
19685 if false; then
19686 GL_COND_LIBTOOL_TRUE=
19687 GL_COND_LIBTOOL_FALSE='#'
19688 else
19689 GL_COND_LIBTOOL_TRUE='#'
19690 GL_COND_LIBTOOL_FALSE=
19691 fi
19692  
19693 gl_cond_libtool=false
19694 gl_libdeps=
19695 gl_ltlibdeps=
19696 gl_m4_base='srcm4'
19697  
19698  
19699  
19700  
19701  
19702  
19703  
19704  
19705  
19706 gl_source_base='srclib'
19707  
19708  
19709  
19710  
19711  
19712 if test $ac_cv_func_alloca_works = no; then
19713  
19714  
19715 :
19716  
19717 fi
19718  
19719 # Define an additional variable used in the Makefile substitution.
19720  
19721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19722 /* end confdefs.h. */
19723  
19724 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
19725 Need own alloca
19726 #endif
19727  
19728 _ACEOF
19729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19730 $EGREP "Need own alloca" >/dev/null 2>&1; then :
19731 ALLOCA_H=alloca.h
19732 else
19733 ALLOCA_H=
19734 fi
19735 rm -f conftest*
19736  
19737  
19738 if test -n "$ALLOCA_H"; then
19739 GL_GENERATE_ALLOCA_H_TRUE=
19740 GL_GENERATE_ALLOCA_H_FALSE='#'
19741 else
19742 GL_GENERATE_ALLOCA_H_TRUE='#'
19743 GL_GENERATE_ALLOCA_H_FALSE=
19744 fi
19745  
19746  
19747  
19748  
19749  
19750 if test $ac_cv_func_canonicalize_file_name = no; then
19751 HAVE_CANONICALIZE_FILE_NAME=0
19752 if test $ac_cv_func_realpath = no; then
19753 HAVE_REALPATH=0
19754 elif test "$gl_cv_func_realpath_works" != yes; then
19755 REPLACE_REALPATH=1
19756 fi
19757 elif test "$gl_cv_func_realpath_works" != yes; then
19758 REPLACE_CANONICALIZE_FILE_NAME=1
19759 REPLACE_REALPATH=1
19760 fi
19761  
19762 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
19763  
19764  
19765  
19766  
19767  
19768  
19769  
19770  
19771 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
19772  
19773 fi
19774  
19775  
19776 cat >>confdefs.h <<_ACEOF
19777 #define GNULIB_CANONICALIZE_LGPL 1
19778 _ACEOF
19779  
19780  
19781  
19782  
19783  
19784  
19785  
19786 GNULIB_CANONICALIZE_FILE_NAME=1
19787  
19788  
19789  
19790  
19791  
19792 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
19793  
19794  
19795  
19796  
19797  
19798  
19799  
19800  
19801 GNULIB_REALPATH=1
19802  
19803  
19804  
19805  
19806  
19807 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
19808  
19809  
19810  
19811  
19812  
19813  
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
19815 $as_echo_n "checking whether // is distinct from /... " >&6; }
19816 if ${gl_cv_double_slash_root+:} false; then :
19817 $as_echo_n "(cached) " >&6
19818 else
19819 if test x"$cross_compiling" = xyes ; then
19820 # When cross-compiling, there is no way to tell whether // is special
19821 # short of a list of hosts. However, the only known hosts to date
19822 # that have a distinct // are Apollo DomainOS (too old to port to),
19823 # Cygwin, and z/OS. If anyone knows of another system for which // has
19824 # special semantics and is distinct from /, please report it to
19825 # <bug-gnulib@gnu.org>.
19826 case $host in
19827 *-cygwin | i370-ibm-openedition)
19828 gl_cv_double_slash_root=yes ;;
19829 *)
19830 # Be optimistic and assume that / and // are the same when we
19831 # don't know.
19832 gl_cv_double_slash_root='unknown, assuming no' ;;
19833 esac
19834 else
19835 set x `ls -di / // 2>/dev/null`
19836 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
19837 gl_cv_double_slash_root=no
19838 else
19839 gl_cv_double_slash_root=yes
19840 fi
19841 fi
19842 fi
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
19844 $as_echo "$gl_cv_double_slash_root" >&6; }
19845 if test "$gl_cv_double_slash_root" = yes; then
19846  
19847 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
19848  
19849 fi
19850  
19851  
19852  
19853  
19854  
19855  
19856  
19857 GNULIB_ENVIRON=1
19858  
19859  
19860  
19861  
19862  
19863 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
19864  
19865  
19866  
19867  
19868  
19869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
19870 $as_echo_n "checking for error_at_line... " >&6; }
19871 if ${ac_cv_lib_error_at_line+:} false; then :
19872 $as_echo_n "(cached) " >&6
19873 else
19874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19875 /* end confdefs.h. */
19876 #include <error.h>
19877 int
19878 main ()
19879 {
19880 error_at_line (0, 0, "", 0, "an error occurred");
19881 ;
19882 return 0;
19883 }
19884 _ACEOF
19885 if ac_fn_c_try_link "$LINENO"; then :
19886 ac_cv_lib_error_at_line=yes
19887 else
19888 ac_cv_lib_error_at_line=no
19889 fi
19890 rm -f core conftest.err conftest.$ac_objext \
19891 conftest$ac_exeext conftest.$ac_ext
19892 fi
19893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
19894 $as_echo "$ac_cv_lib_error_at_line" >&6; }
19895  
19896 if test $ac_cv_lib_error_at_line = no; then
19897  
19898  
19899  
19900  
19901  
19902  
19903  
19904  
19905 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
19906  
19907  
19908  
19909  
19910 :
19911  
19912 fi
19913  
19914  
19915 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
19916  
19917  
19918  
19919 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
19920  
19921  
19922  
19923  
19924  
19925  
19926  
19927  
19928  
19929  
19930  
19931  
19932 if test $gl_cv_have_include_next = yes; then
19933 gl_cv_next_fcntl_h='<'fcntl.h'>'
19934 else
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
19936 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
19937 if ${gl_cv_next_fcntl_h+:} false; then :
19938 $as_echo_n "(cached) " >&6
19939 else
19940  
19941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19942 /* end confdefs.h. */
19943 #include <fcntl.h>
19944  
19945 _ACEOF
19946 case "$host_os" in
19947 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19948 *) gl_absname_cpp="$ac_cpp" ;;
19949 esac
19950 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19951 sed -n '\#/fcntl.h#{
19952 s#.*"\(.*/fcntl.h\)".*#\1#
19953 s#^/[^/]#//&#
19954 p
19955 q
19956 }'`'"'
19957  
19958  
19959 fi
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
19961 $as_echo "$gl_cv_next_fcntl_h" >&6; }
19962 fi
19963 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
19964  
19965 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19966 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19967 gl_next_as_first_directive='<'fcntl.h'>'
19968 else
19969 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19970 gl_next_as_first_directive=$gl_cv_next_fcntl_h
19971 fi
19972 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
19973  
19974  
19975  
19976  
19977  
19978  
19979 for gl_func in fcntl openat; do
19980 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19982 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19983 if eval \${$as_gl_Symbol+:} false; then :
19984 $as_echo_n "(cached) " >&6
19985 else
19986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19987 /* end confdefs.h. */
19988 #include <fcntl.h>
19989  
19990 int
19991 main ()
19992 {
19993 #undef $gl_func
19994 (void) $gl_func;
19995 ;
19996 return 0;
19997 }
19998 _ACEOF
19999 if ac_fn_c_try_compile "$LINENO"; then :
20000 eval "$as_gl_Symbol=yes"
20001 else
20002 eval "$as_gl_Symbol=no"
20003 fi
20004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20005 fi
20006 eval ac_res=\$$as_gl_Symbol
20007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20008 $as_echo "$ac_res" >&6; }
20009 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
20010 cat >>confdefs.h <<_ACEOF
20011 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
20012 _ACEOF
20013  
20014 eval ac_cv_have_decl_$gl_func=yes
20015 fi
20016 done
20017  
20018  
20019  
20020  
20021  
20022  
20023  
20024  
20025 if test $ac_cv_func_lstat = yes; then
20026  
20027 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
20028 REPLACE_LSTAT=1
20029 fi
20030 else
20031 HAVE_LSTAT=0
20032 fi
20033  
20034 if test $REPLACE_LSTAT = 1; then
20035  
20036  
20037  
20038  
20039  
20040  
20041  
20042  
20043 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
20044  
20045  
20046  
20047 :
20048  
20049 fi
20050  
20051  
20052  
20053  
20054  
20055 GNULIB_LSTAT=1
20056  
20057  
20058  
20059  
20060  
20061 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
20062  
20063  
20064  
20065  
20066  
20067  
20068  
20069  
20070  
20071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
20072 $as_echo_n "checking for mbstate_t... " >&6; }
20073 if ${ac_cv_type_mbstate_t+:} false; then :
20074 $as_echo_n "(cached) " >&6
20075 else
20076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20077 /* end confdefs.h. */
20078 $ac_includes_default
20079 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20080 <wchar.h>.
20081 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20082 included before <wchar.h>. */
20083 #include <stddef.h>
20084 #include <stdio.h>
20085 #include <time.h>
20086 #include <wchar.h>
20087 int
20088 main ()
20089 {
20090 mbstate_t x; return sizeof x;
20091 ;
20092 return 0;
20093 }
20094 _ACEOF
20095 if ac_fn_c_try_compile "$LINENO"; then :
20096 ac_cv_type_mbstate_t=yes
20097 else
20098 ac_cv_type_mbstate_t=no
20099 fi
20100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20101 fi
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
20103 $as_echo "$ac_cv_type_mbstate_t" >&6; }
20104 if test $ac_cv_type_mbstate_t = yes; then
20105  
20106 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
20107  
20108 else
20109  
20110 $as_echo "#define mbstate_t int" >>confdefs.h
20111  
20112 fi
20113  
20114  
20115 for ac_func in memmove
20116 do :
20117 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
20118 if test "x$ac_cv_func_memmove" = xyes; then :
20119 cat >>confdefs.h <<_ACEOF
20120 #define HAVE_MEMMOVE 1
20121 _ACEOF
20122  
20123 fi
20124 done
20125  
20126  
20127 if test $ac_cv_func_memmove = no; then
20128  
20129  
20130  
20131  
20132  
20133  
20134  
20135  
20136 gl_LIBOBJS="$gl_LIBOBJS memmove.$ac_objext"
20137  
20138  
20139 :
20140  
20141 fi
20142  
20143  
20144  
20145  
20146 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
20147 "
20148 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
20149 ac_have_decl=1
20150 else
20151 ac_have_decl=0
20152 fi
20153  
20154 cat >>confdefs.h <<_ACEOF
20155 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
20156 _ACEOF
20157  
20158 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
20159 "
20160 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
20161 ac_have_decl=1
20162 else
20163 ac_have_decl=0
20164 fi
20165  
20166 cat >>confdefs.h <<_ACEOF
20167 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
20168 _ACEOF
20169  
20170  
20171  
20172  
20173  
20174 if test $REPLACE_READ = 1; then
20175  
20176  
20177  
20178  
20179  
20180  
20181  
20182  
20183 gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
20184  
20185 fi
20186  
20187  
20188  
20189  
20190  
20191 GNULIB_READ=1
20192  
20193  
20194  
20195  
20196  
20197 $as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
20198  
20199  
20200  
20201  
20202  
20203  
20204 if test $ac_cv_func_readlink = no; then
20205 HAVE_READLINK=0
20206 else
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20208 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20209 if ${gl_cv_decl_readlink_works+:} false; then :
20210 $as_echo_n "(cached) " >&6
20211 else
20212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20213 /* end confdefs.h. */
20214 #include <unistd.h>
20215 /* Cause compilation failure if original declaration has wrong type. */
20216 ssize_t readlink (const char *, char *, size_t);
20217 int
20218 main ()
20219 {
20220  
20221 ;
20222 return 0;
20223 }
20224 _ACEOF
20225 if ac_fn_c_try_compile "$LINENO"; then :
20226 gl_cv_decl_readlink_works=yes
20227 else
20228 gl_cv_decl_readlink_works=no
20229 fi
20230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20231 fi
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20233 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20235 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20236 if ${gl_cv_func_readlink_works+:} false; then :
20237 $as_echo_n "(cached) " >&6
20238 else
20239 # We have readlink, so assume ln -s works.
20240 ln -s conftest.no-such conftest.link
20241 ln -s conftest.link conftest.lnk2
20242 if test "$cross_compiling" = yes; then :
20243 gl_cv_func_readlink_works="guessing no"
20244 else
20245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20246 /* end confdefs.h. */
20247 #include <unistd.h>
20248  
20249 int
20250 main ()
20251 {
20252 char buf[20];
20253 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20254 ;
20255 return 0;
20256 }
20257 _ACEOF
20258 if ac_fn_c_try_run "$LINENO"; then :
20259 gl_cv_func_readlink_works=yes
20260 else
20261 gl_cv_func_readlink_works=no
20262 fi
20263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20264 conftest.$ac_objext conftest.beam conftest.$ac_ext
20265 fi
20266  
20267 rm -f conftest.link conftest.lnk2
20268 fi
20269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20270 $as_echo "$gl_cv_func_readlink_works" >&6; }
20271 if test "$gl_cv_func_readlink_works" != yes; then
20272  
20273 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20274  
20275 REPLACE_READLINK=1
20276 elif test "$gl_cv_decl_readlink_works" != yes; then
20277 REPLACE_READLINK=1
20278 fi
20279 fi
20280  
20281 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
20282  
20283  
20284  
20285  
20286  
20287  
20288  
20289  
20290 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
20291  
20292  
20293 :
20294  
20295 fi
20296  
20297  
20298  
20299  
20300  
20301 GNULIB_READLINK=1
20302  
20303  
20304  
20305  
20306  
20307 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
20308  
20309  
20310  
20311  
20312  
20313  
20314  
20315  
20316 : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
20317 RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
20318 RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
20319  
20320 if test $RELOCATABLE = yes; then
20321  
20322  
20323  
20324  
20325  
20326  
20327  
20328  
20329 gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext"
20330  
20331 fi
20332  
20333  
20334  
20335 :
20336  
20337  
20338  
20339  
20340  
20341  
20342  
20343  
20344  
20345  
20346  
20347  
20348  
20349  
20350  
20351  
20352  
20353  
20354  
20355 if test $ac_cv_have_decl_setenv = no; then
20356 HAVE_DECL_SETENV=0
20357 fi
20358  
20359  
20360  
20361  
20362  
20363 for ac_header in search.h
20364 do :
20365 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
20366 if test "x$ac_cv_header_search_h" = xyes; then :
20367 cat >>confdefs.h <<_ACEOF
20368 #define HAVE_SEARCH_H 1
20369 _ACEOF
20370  
20371 fi
20372  
20373 done
20374  
20375 for ac_func in tsearch
20376 do :
20377 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
20378 if test "x$ac_cv_func_tsearch" = xyes; then :
20379 cat >>confdefs.h <<_ACEOF
20380 #define HAVE_TSEARCH 1
20381 _ACEOF
20382  
20383 fi
20384 done
20385  
20386  
20387  
20388  
20389  
20390  
20391  
20392  
20393  
20394  
20395  
20396  
20397  
20398  
20399  
20400  
20401  
20402 if test $gl_cv_have_include_next = yes; then
20403 gl_cv_next_signal_h='<'signal.h'>'
20404 else
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20406 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20407 if ${gl_cv_next_signal_h+:} false; then :
20408 $as_echo_n "(cached) " >&6
20409 else
20410  
20411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20412 /* end confdefs.h. */
20413 #include <signal.h>
20414  
20415 _ACEOF
20416 case "$host_os" in
20417 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20418 *) gl_absname_cpp="$ac_cpp" ;;
20419 esac
20420 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20421 sed -n '\#/signal.h#{
20422 s#.*"\(.*/signal.h\)".*#\1#
20423 s#^/[^/]#//&#
20424 p
20425 q
20426 }'`'"'
20427  
20428  
20429 fi
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20431 $as_echo "$gl_cv_next_signal_h" >&6; }
20432 fi
20433 NEXT_SIGNAL_H=$gl_cv_next_signal_h
20434  
20435 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20436 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20437 gl_next_as_first_directive='<'signal.h'>'
20438 else
20439 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20440 gl_next_as_first_directive=$gl_cv_next_signal_h
20441 fi
20442 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
20443  
20444  
20445  
20446  
20447  
20448 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20449 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20450 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20451 #include <signal.h>
20452  
20453 "
20454 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
20455  
20456 else
20457 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
20458 fi
20459  
20460  
20461  
20462  
20463  
20464 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20465 #include <signal.h>
20466  
20467 "
20468 if test "x$ac_cv_type_sighandler_t" = xyes; then :
20469  
20470 else
20471 HAVE_SIGHANDLER_T=0
20472 fi
20473  
20474  
20475  
20476 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
20477 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
20479 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
20480 if eval \${$as_gl_Symbol+:} false; then :
20481 $as_echo_n "(cached) " >&6
20482 else
20483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20484 /* end confdefs.h. */
20485 #include <signal.h>
20486  
20487 int
20488 main ()
20489 {
20490 #undef $gl_func
20491 (void) $gl_func;
20492 ;
20493 return 0;
20494 }
20495 _ACEOF
20496 if ac_fn_c_try_compile "$LINENO"; then :
20497 eval "$as_gl_Symbol=yes"
20498 else
20499 eval "$as_gl_Symbol=no"
20500 fi
20501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20502 fi
20503 eval ac_res=\$$as_gl_Symbol
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20505 $as_echo "$ac_res" >&6; }
20506 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
20507 cat >>confdefs.h <<_ACEOF
20508 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
20509 _ACEOF
20510  
20511 eval ac_cv_have_decl_$gl_func=yes
20512 fi
20513 done
20514  
20515  
20516  
20517  
20518  
20519  
20520  
20521 cat >>confdefs.h <<_ACEOF
20522 #define GNULIB_SIGPIPE 1
20523 _ACEOF
20524  
20525  
20526  
20527 GNULIB_SIGNAL_H_SIGPIPE=1
20528  
20529  
20530 GNULIB_STDIO_H_SIGPIPE=1
20531  
20532 GNULIB_UNISTD_H_SIGPIPE=1
20533  
20534  
20535  
20536 if test $gl_cv_type_sigset_t = yes; then
20537 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
20538 if test "x$ac_cv_func_sigprocmask" = xyes; then :
20539 gl_cv_func_sigprocmask=1
20540 fi
20541  
20542 fi
20543 if test -z "$gl_cv_func_sigprocmask"; then
20544 HAVE_POSIX_SIGNALBLOCKING=0
20545 fi
20546  
20547 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
20548  
20549  
20550  
20551  
20552  
20553  
20554  
20555  
20556 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
20557  
20558 :
20559 fi
20560  
20561  
20562  
20563  
20564  
20565 GNULIB_SIGPROCMASK=1
20566  
20567  
20568  
20569  
20570  
20571 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
20572  
20573  
20574  
20575  
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20577 $as_echo_n "checking for ssize_t... " >&6; }
20578 if ${gt_cv_ssize_t+:} false; then :
20579 $as_echo_n "(cached) " >&6
20580 else
20581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20582 /* end confdefs.h. */
20583 #include <sys/types.h>
20584 int
20585 main ()
20586 {
20587 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20588 return !x;
20589 ;
20590 return 0;
20591 }
20592 _ACEOF
20593 if ac_fn_c_try_compile "$LINENO"; then :
20594 gt_cv_ssize_t=yes
20595 else
20596 gt_cv_ssize_t=no
20597 fi
20598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20599 fi
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20601 $as_echo "$gt_cv_ssize_t" >&6; }
20602 if test $gt_cv_ssize_t = no; then
20603  
20604 $as_echo "#define ssize_t int" >>confdefs.h
20605  
20606 fi
20607  
20608  
20609  
20610  
20611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
20612 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
20613 if ${gl_cv_func_stat_dir_slash+:} false; then :
20614 $as_echo_n "(cached) " >&6
20615 else
20616 if test "$cross_compiling" = yes; then :
20617 case $host_os in
20618 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
20619 *) gl_cv_func_stat_dir_slash="guessing yes";;
20620 esac
20621 else
20622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20623 /* end confdefs.h. */
20624 #include <sys/stat.h>
20625  
20626 int
20627 main ()
20628 {
20629 struct stat st; return stat (".", &st) != stat ("./", &st);
20630 ;
20631 return 0;
20632 }
20633 _ACEOF
20634 if ac_fn_c_try_run "$LINENO"; then :
20635 gl_cv_func_stat_dir_slash=yes
20636 else
20637 gl_cv_func_stat_dir_slash=no
20638 fi
20639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20640 conftest.$ac_objext conftest.beam conftest.$ac_ext
20641 fi
20642  
20643 fi
20644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
20645 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
20647 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
20648 if ${gl_cv_func_stat_file_slash+:} false; then :
20649 $as_echo_n "(cached) " >&6
20650 else
20651 touch conftest.tmp
20652 # Assume that if we have lstat, we can also check symlinks.
20653 if test $ac_cv_func_lstat = yes; then
20654 ln -s conftest.tmp conftest.lnk
20655 fi
20656 if test "$cross_compiling" = yes; then :
20657 gl_cv_func_stat_file_slash="guessing no"
20658 else
20659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20660 /* end confdefs.h. */
20661 #include <sys/stat.h>
20662  
20663 int
20664 main ()
20665 {
20666 int result = 0;
20667 struct stat st;
20668 if (!stat ("conftest.tmp/", &st))
20669 result |= 1;
20670 #if HAVE_LSTAT
20671 if (!stat ("conftest.lnk/", &st))
20672 result |= 2;
20673 #endif
20674 return result;
20675  
20676 ;
20677 return 0;
20678 }
20679 _ACEOF
20680 if ac_fn_c_try_run "$LINENO"; then :
20681 gl_cv_func_stat_file_slash=yes
20682 else
20683 gl_cv_func_stat_file_slash=no
20684 fi
20685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20686 conftest.$ac_objext conftest.beam conftest.$ac_ext
20687 fi
20688  
20689 rm -f conftest.tmp conftest.lnk
20690 fi
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
20692 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
20693 case $gl_cv_func_stat_dir_slash in
20694 *no) REPLACE_STAT=1
20695  
20696 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
20697 ;;
20698 esac
20699 case $gl_cv_func_stat_file_slash in
20700 *no) REPLACE_STAT=1
20701  
20702 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
20703 ;;
20704 esac
20705  
20706 if test $REPLACE_STAT = 1; then
20707  
20708  
20709  
20710  
20711  
20712  
20713  
20714  
20715 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
20716  
20717  
20718  
20719 :
20720  
20721 fi
20722  
20723  
20724  
20725  
20726  
20727 GNULIB_STAT=1
20728  
20729  
20730  
20731  
20732  
20733 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
20734  
20735  
20736  
20737  
20738  
20739  
20740 # Define two additional variables used in the Makefile substitution.
20741  
20742 if test "$ac_cv_header_stdbool_h" = yes; then
20743 STDBOOL_H=''
20744 else
20745 STDBOOL_H='stdbool.h'
20746 fi
20747  
20748 if test -n "$STDBOOL_H"; then
20749 GL_GENERATE_STDBOOL_H_TRUE=
20750 GL_GENERATE_STDBOOL_H_FALSE='#'
20751 else
20752 GL_GENERATE_STDBOOL_H_TRUE='#'
20753 GL_GENERATE_STDBOOL_H_FALSE=
20754 fi
20755  
20756  
20757 if test "$ac_cv_type__Bool" = yes; then
20758 HAVE__BOOL=1
20759 else
20760 HAVE__BOOL=0
20761 fi
20762  
20763  
20764  
20765  
20766  
20767 STDDEF_H=
20768 if test $gt_cv_c_wchar_t = no; then
20769 HAVE_WCHAR_T=0
20770 STDDEF_H=stddef.h
20771 fi
20772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
20773 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
20774 if ${gl_cv_decl_null_works+:} false; then :
20775 $as_echo_n "(cached) " >&6
20776 else
20777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20778 /* end confdefs.h. */
20779 #include <stddef.h>
20780 int test[2 * (sizeof NULL == sizeof (void *)) -1];
20781  
20782 int
20783 main ()
20784 {
20785  
20786 ;
20787 return 0;
20788 }
20789 _ACEOF
20790 if ac_fn_c_try_compile "$LINENO"; then :
20791 gl_cv_decl_null_works=yes
20792 else
20793 gl_cv_decl_null_works=no
20794 fi
20795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20796 fi
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
20798 $as_echo "$gl_cv_decl_null_works" >&6; }
20799 if test $gl_cv_decl_null_works = no; then
20800 REPLACE_NULL=1
20801 STDDEF_H=stddef.h
20802 fi
20803  
20804 if test -n "$STDDEF_H"; then
20805 GL_GENERATE_STDDEF_H_TRUE=
20806 GL_GENERATE_STDDEF_H_FALSE='#'
20807 else
20808 GL_GENERATE_STDDEF_H_TRUE='#'
20809 GL_GENERATE_STDDEF_H_FALSE=
20810 fi
20811  
20812 if test -n "$STDDEF_H"; then
20813  
20814  
20815  
20816  
20817  
20818  
20819  
20820  
20821 if test $gl_cv_have_include_next = yes; then
20822 gl_cv_next_stddef_h='<'stddef.h'>'
20823 else
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
20825 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
20826 if ${gl_cv_next_stddef_h+:} false; then :
20827 $as_echo_n "(cached) " >&6
20828 else
20829  
20830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20831 /* end confdefs.h. */
20832 #include <stddef.h>
20833  
20834 _ACEOF
20835 case "$host_os" in
20836 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20837 *) gl_absname_cpp="$ac_cpp" ;;
20838 esac
20839 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20840 sed -n '\#/stddef.h#{
20841 s#.*"\(.*/stddef.h\)".*#\1#
20842 s#^/[^/]#//&#
20843 p
20844 q
20845 }'`'"'
20846  
20847  
20848 fi
20849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
20850 $as_echo "$gl_cv_next_stddef_h" >&6; }
20851 fi
20852 NEXT_STDDEF_H=$gl_cv_next_stddef_h
20853  
20854 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20855 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20856 gl_next_as_first_directive='<'stddef.h'>'
20857 else
20858 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20859 gl_next_as_first_directive=$gl_cv_next_stddef_h
20860 fi
20861 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
20862  
20863  
20864  
20865  
20866 fi
20867  
20868  
20869  
20870  
20871  
20872  
20873  
20874  
20875  
20876  
20877  
20878  
20879  
20880 if test $gl_cv_have_include_next = yes; then
20881 gl_cv_next_stdio_h='<'stdio.h'>'
20882 else
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
20884 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
20885 if ${gl_cv_next_stdio_h+:} false; then :
20886 $as_echo_n "(cached) " >&6
20887 else
20888  
20889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20890 /* end confdefs.h. */
20891 #include <stdio.h>
20892  
20893 _ACEOF
20894 case "$host_os" in
20895 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20896 *) gl_absname_cpp="$ac_cpp" ;;
20897 esac
20898 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20899 sed -n '\#/stdio.h#{
20900 s#.*"\(.*/stdio.h\)".*#\1#
20901 s#^/[^/]#//&#
20902 p
20903 q
20904 }'`'"'
20905  
20906  
20907 fi
20908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
20909 $as_echo "$gl_cv_next_stdio_h" >&6; }
20910 fi
20911 NEXT_STDIO_H=$gl_cv_next_stdio_h
20912  
20913 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20914 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20915 gl_next_as_first_directive='<'stdio.h'>'
20916 else
20917 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20918 gl_next_as_first_directive=$gl_cv_next_stdio_h
20919 fi
20920 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
20921  
20922  
20923  
20924  
20925  
20926 GNULIB_FSCANF=1
20927 GNULIB_SCANF=1
20928 GNULIB_FGETC=1
20929 GNULIB_GETC=1
20930 GNULIB_GETCHAR=1
20931 GNULIB_FGETS=1
20932 GNULIB_GETS=1
20933 GNULIB_FREAD=1
20934  
20935  
20936 GNULIB_FPRINTF=1
20937 GNULIB_PRINTF=1
20938 GNULIB_VFPRINTF=1
20939 GNULIB_VPRINTF=1
20940 GNULIB_FPUTC=1
20941 GNULIB_PUTC=1
20942 GNULIB_PUTCHAR=1
20943 GNULIB_FPUTS=1
20944 GNULIB_PUTS=1
20945 GNULIB_FWRITE=1
20946  
20947  
20948  
20949  
20950 if test $gl_cv_header_signal_h_SIGPIPE != yes; then
20951 REPLACE_STDIO_WRITE_FUNCS=1
20952  
20953  
20954  
20955  
20956  
20957  
20958  
20959  
20960 gl_LIBOBJS="$gl_LIBOBJS stdio-write.$ac_objext"
20961  
20962 fi
20963  
20964  
20965  
20966  
20967 for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat snprintf tmpfile vdprintf vsnprintf; do
20968 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
20970 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
20971 if eval \${$as_gl_Symbol+:} false; then :
20972 $as_echo_n "(cached) " >&6
20973 else
20974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20975 /* end confdefs.h. */
20976 #include <stdio.h>
20977  
20978 int
20979 main ()
20980 {
20981 #undef $gl_func
20982 (void) $gl_func;
20983 ;
20984 return 0;
20985 }
20986 _ACEOF
20987 if ac_fn_c_try_compile "$LINENO"; then :
20988 eval "$as_gl_Symbol=yes"
20989 else
20990 eval "$as_gl_Symbol=no"
20991 fi
20992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20993 fi
20994 eval ac_res=\$$as_gl_Symbol
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20996 $as_echo "$ac_res" >&6; }
20997 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
20998 cat >>confdefs.h <<_ACEOF
20999 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21000 _ACEOF
21001  
21002 eval ac_cv_have_decl_$gl_func=yes
21003 fi
21004 done
21005  
21006  
21007  
21008  
21009  
21010  
21011  
21012  
21013  
21014  
21015  
21016  
21017 if test $gl_cv_have_include_next = yes; then
21018 gl_cv_next_stdlib_h='<'stdlib.h'>'
21019 else
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21021 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21022 if ${gl_cv_next_stdlib_h+:} false; then :
21023 $as_echo_n "(cached) " >&6
21024 else
21025  
21026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21027 /* end confdefs.h. */
21028 #include <stdlib.h>
21029  
21030 _ACEOF
21031 case "$host_os" in
21032 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21033 *) gl_absname_cpp="$ac_cpp" ;;
21034 esac
21035 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21036 sed -n '\#/stdlib.h#{
21037 s#.*"\(.*/stdlib.h\)".*#\1#
21038 s#^/[^/]#//&#
21039 p
21040 q
21041 }'`'"'
21042  
21043  
21044 fi
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21046 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21047 fi
21048 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
21049  
21050 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21051 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21052 gl_next_as_first_directive='<'stdlib.h'>'
21053 else
21054 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21055 gl_next_as_first_directive=$gl_cv_next_stdlib_h
21056 fi
21057 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
21058  
21059  
21060  
21061  
21062  
21063  
21064 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt unsetenv; do
21065 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21067 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21068 if eval \${$as_gl_Symbol+:} false; then :
21069 $as_echo_n "(cached) " >&6
21070 else
21071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21072 /* end confdefs.h. */
21073 #include <stdlib.h>
21074 #if HAVE_SYS_LOADAVG_H
21075 # include <sys/loadavg.h>
21076 #endif
21077 #if HAVE_RANDOM_H
21078 # include <random.h>
21079 #endif
21080  
21081 int
21082 main ()
21083 {
21084 #undef $gl_func
21085 (void) $gl_func;
21086 ;
21087 return 0;
21088 }
21089 _ACEOF
21090 if ac_fn_c_try_compile "$LINENO"; then :
21091 eval "$as_gl_Symbol=yes"
21092 else
21093 eval "$as_gl_Symbol=no"
21094 fi
21095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21096 fi
21097 eval ac_res=\$$as_gl_Symbol
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21099 $as_echo "$ac_res" >&6; }
21100 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21101 cat >>confdefs.h <<_ACEOF
21102 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21103 _ACEOF
21104  
21105 eval ac_cv_have_decl_$gl_func=yes
21106 fi
21107 done
21108  
21109  
21110  
21111  
21112  
21113  
21114  
21115 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
21117 $as_echo_n "checking for working strerror function... " >&6; }
21118 if ${gl_cv_func_working_strerror+:} false; then :
21119 $as_echo_n "(cached) " >&6
21120 else
21121 if test "$cross_compiling" = yes; then :
21122 gl_cv_func_working_strerror="guessing no"
21123 else
21124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21125 /* end confdefs.h. */
21126 #include <string.h>
21127  
21128 int
21129 main ()
21130 {
21131 if (!*strerror (-2)) return 1;
21132 ;
21133 return 0;
21134 }
21135 _ACEOF
21136 if ac_fn_c_try_run "$LINENO"; then :
21137 gl_cv_func_working_strerror=yes
21138 else
21139 gl_cv_func_working_strerror=no
21140 fi
21141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21142 conftest.$ac_objext conftest.beam conftest.$ac_ext
21143 fi
21144  
21145  
21146 fi
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
21148 $as_echo "$gl_cv_func_working_strerror" >&6; }
21149 if test "$gl_cv_func_working_strerror" != yes; then
21150 REPLACE_STRERROR=1
21151 fi
21152  
21153 else
21154 REPLACE_STRERROR=1
21155 fi
21156  
21157 if test $REPLACE_STRERROR = 1; then
21158  
21159  
21160  
21161  
21162  
21163  
21164  
21165  
21166 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
21167  
21168 fi
21169  
21170  
21171 cat >>confdefs.h <<_ACEOF
21172 #define GNULIB_STRERROR 1
21173 _ACEOF
21174  
21175  
21176  
21177  
21178  
21179  
21180  
21181 GNULIB_STRERROR=1
21182  
21183  
21184  
21185  
21186  
21187 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
21188  
21189  
21190  
21191  
21192  
21193 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
21194  
21195  
21196  
21197  
21198  
21199  
21200  
21201  
21202 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
21203  
21204  
21205  
21206  
21207  
21208 if test $ac_cv_header_sys_socket_h != yes; then
21209 for ac_header in winsock2.h
21210 do :
21211 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21212 if test "x$ac_cv_header_winsock2_h" = xyes; then :
21213 cat >>confdefs.h <<_ACEOF
21214 #define HAVE_WINSOCK2_H 1
21215 _ACEOF
21216  
21217 fi
21218  
21219 done
21220  
21221 fi
21222 if test "$ac_cv_header_winsock2_h" = yes; then
21223 HAVE_WINSOCK2_H=1
21224 UNISTD_H_HAVE_WINSOCK2_H=1
21225 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
21226 else
21227 HAVE_WINSOCK2_H=0
21228 fi
21229  
21230  
21231 fi
21232  
21233  
21234  
21235  
21236  
21237  
21238  
21239  
21240  
21241  
21242  
21243  
21244  
21245  
21246  
21247  
21248  
21249  
21250  
21251 if test $gl_cv_have_include_next = yes; then
21252 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21253 else
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21255 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21256 if ${gl_cv_next_sys_stat_h+:} false; then :
21257 $as_echo_n "(cached) " >&6
21258 else
21259  
21260 if test $ac_cv_header_sys_stat_h = yes; then
21261  
21262  
21263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21264 /* end confdefs.h. */
21265 #include <sys/stat.h>
21266  
21267 _ACEOF
21268 case "$host_os" in
21269 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21270 *) gl_absname_cpp="$ac_cpp" ;;
21271 esac
21272 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21273 sed -n '\#/sys/stat.h#{
21274 s#.*"\(.*/sys/stat.h\)".*#\1#
21275 s#^/[^/]#//&#
21276 p
21277 q
21278 }'`'"'
21279 else
21280 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21281 fi
21282  
21283  
21284 fi
21285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21286 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21287 fi
21288 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
21289  
21290 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21291 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21292 gl_next_as_first_directive='<'sys/stat.h'>'
21293 else
21294 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21295 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
21296 fi
21297 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
21298  
21299  
21300  
21301  
21302  
21303 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21304 #include <sys/stat.h>
21305 "
21306 if test "x$ac_cv_type_nlink_t" = xyes; then :
21307  
21308 else
21309  
21310 $as_echo "#define nlink_t int" >>confdefs.h
21311  
21312 fi
21313  
21314  
21315  
21316 for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
21317 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21319 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21320 if eval \${$as_gl_Symbol+:} false; then :
21321 $as_echo_n "(cached) " >&6
21322 else
21323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21324 /* end confdefs.h. */
21325 #include <sys/stat.h>
21326  
21327 int
21328 main ()
21329 {
21330 #undef $gl_func
21331 (void) $gl_func;
21332 ;
21333 return 0;
21334 }
21335 _ACEOF
21336 if ac_fn_c_try_compile "$LINENO"; then :
21337 eval "$as_gl_Symbol=yes"
21338 else
21339 eval "$as_gl_Symbol=no"
21340 fi
21341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21342 fi
21343 eval ac_res=\$$as_gl_Symbol
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21345 $as_echo "$ac_res" >&6; }
21346 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21347 cat >>confdefs.h <<_ACEOF
21348 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21349 _ACEOF
21350  
21351 eval ac_cv_have_decl_$gl_func=yes
21352 fi
21353 done
21354  
21355  
21356  
21357  
21358  
21359  
21360  
21361  
21362  
21363  
21364  
21365  
21366  
21367  
21368  
21369  
21370  
21371  
21372  
21373 if test $gl_cv_have_include_next = yes; then
21374 gl_cv_next_unistd_h='<'unistd.h'>'
21375 else
21376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21377 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21378 if ${gl_cv_next_unistd_h+:} false; then :
21379 $as_echo_n "(cached) " >&6
21380 else
21381  
21382 if test $ac_cv_header_unistd_h = yes; then
21383  
21384  
21385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21386 /* end confdefs.h. */
21387 #include <unistd.h>
21388  
21389 _ACEOF
21390 case "$host_os" in
21391 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21392 *) gl_absname_cpp="$ac_cpp" ;;
21393 esac
21394 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21395 sed -n '\#/unistd.h#{
21396 s#.*"\(.*/unistd.h\)".*#\1#
21397 s#^/[^/]#//&#
21398 p
21399 q
21400 }'`'"'
21401 else
21402 gl_cv_next_unistd_h='<'unistd.h'>'
21403 fi
21404  
21405  
21406 fi
21407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21408 $as_echo "$gl_cv_next_unistd_h" >&6; }
21409 fi
21410 NEXT_UNISTD_H=$gl_cv_next_unistd_h
21411  
21412 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21413 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21414 gl_next_as_first_directive='<'unistd.h'>'
21415 else
21416 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21417 gl_next_as_first_directive=$gl_cv_next_unistd_h
21418 fi
21419 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
21420  
21421  
21422  
21423  
21424 if test $ac_cv_header_unistd_h = yes; then
21425 HAVE_UNISTD_H=1
21426 else
21427 HAVE_UNISTD_H=0
21428 fi
21429  
21430  
21431  
21432 for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
21433 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21435 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21436 if eval \${$as_gl_Symbol+:} false; then :
21437 $as_echo_n "(cached) " >&6
21438 else
21439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21440 /* end confdefs.h. */
21441 #include <unistd.h>
21442 /* Some systems declare various items in the wrong headers. */
21443 #if !(defined __GLIBC__ && !defined __UCLIBC__)
21444 # include <fcntl.h>
21445 # include <stdio.h>
21446 # include <stdlib.h>
21447 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
21448 # include <io.h>
21449 # endif
21450 #endif
21451  
21452 int
21453 main ()
21454 {
21455 #undef $gl_func
21456 (void) $gl_func;
21457 ;
21458 return 0;
21459 }
21460 _ACEOF
21461 if ac_fn_c_try_compile "$LINENO"; then :
21462 eval "$as_gl_Symbol=yes"
21463 else
21464 eval "$as_gl_Symbol=no"
21465 fi
21466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21467 fi
21468 eval ac_res=\$$as_gl_Symbol
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21470 $as_echo "$ac_res" >&6; }
21471 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21472 cat >>confdefs.h <<_ACEOF
21473 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21474 _ACEOF
21475  
21476 eval ac_cv_have_decl_$gl_func=yes
21477 fi
21478 done
21479  
21480  
21481  
21482  
21483 if { test "$HAVE_LIBUNISTRING" != yes \
21484 || {
21485  
21486  
21487  
21488 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
21489 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
21490 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
21491 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
21492 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
21493 }
21494 }
21495 }
21496  
21497  
21498  
21499  
21500 }
21501 }; then
21502 LIBUNISTRING_UNITYPES_H='unitypes.h'
21503 else
21504 LIBUNISTRING_UNITYPES_H=
21505 fi
21506  
21507  
21508  
21509  
21510 if { test "$HAVE_LIBUNISTRING" != yes \
21511 || {
21512  
21513  
21514  
21515 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
21516 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
21517 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
21518 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
21519 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
21520 }
21521 }
21522 }
21523  
21524  
21525  
21526  
21527 }
21528 }; then
21529 LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
21530 else
21531 LIBUNISTRING_UNIWIDTH_H=
21532 fi
21533  
21534  
21535  
21536  
21537 if { test "$HAVE_LIBUNISTRING" != yes \
21538 || {
21539  
21540  
21541  
21542 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
21543 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
21544 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
21545 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
21546 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
21547 }
21548 }
21549 }
21550  
21551  
21552  
21553  
21554 }
21555 }; then
21556 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
21557 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
21558 else
21559 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
21560 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
21561 fi
21562  
21563  
21564  
21565  
21566 $as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h
21567  
21568  
21569  
21570  
21571  
21572  
21573  
21574  
21575  
21576  
21577  
21578  
21579  
21580  
21581  
21582  
21583  
21584  
21585 # End of code from modules
21586  
21587  
21588  
21589  
21590  
21591  
21592  
21593  
21594  
21595 gltests_libdeps=
21596 gltests_ltlibdeps=
21597  
21598  
21599  
21600  
21601  
21602  
21603  
21604  
21605  
21606 gl_source_base='tests'
21607 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
21608  
21609 gl_module_indicator_condition=$gltests_WITNESS
21610  
21611  
21612  
21613  
21614  
21615  
21616  
21617  
21618  
21619 LIBICRT_LIBDEPS="$gl_libdeps"
21620  
21621 LIBICRT_LTLIBDEPS="$gl_ltlibdeps"
21622  
21623  
21624  
21625  
21626  
21627  
21628  
21629  
21630 if test "$enable_shared" = yes; then
21631 case "$host_os" in
21632 mingw* | cygwin*) is_woe32dll=yes ;;
21633 *) is_woe32dll=no ;;
21634 esac
21635 else
21636 is_woe32dll=no
21637 fi
21638 WOE32DLL=$is_woe32dll
21639  
21640 if test $is_woe32dll = yes; then
21641 DLL_VARIABLE='__declspec (dllimport)'
21642 else
21643 DLL_VARIABLE=
21644 fi
21645  
21646  
21647  
21648  
21649  
21650  
21651 subdirs="$subdirs libcharset"
21652  
21653 subdirs="$subdirs preload"
21654  
21655 ac_config_files="$ac_config_files Makefile"
21656  
21657 ac_config_files="$ac_config_files lib/Makefile"
21658  
21659 ac_config_files="$ac_config_files srclib/Makefile"
21660  
21661 ac_config_files="$ac_config_files src/Makefile"
21662  
21663 ac_config_files="$ac_config_files po/Makefile.in"
21664  
21665 ac_config_files="$ac_config_files man/Makefile"
21666  
21667 if test -d "${srcdir}/tests"; then
21668 ac_config_files="$ac_config_files tests/Makefile"
21669  
21670 fi
21671 ac_config_files="$ac_config_files include/iconv.h:include/iconv.h.build.in"
21672  
21673 ac_config_files="$ac_config_files include/iconv.h.inst:include/iconv.h.in"
21674  
21675 cat >confcache <<\_ACEOF
21676 # This file is a shell script that caches the results of configure
21677 # tests run on this system so they can be shared between configure
21678 # scripts and configure runs, see configure's option --config-cache.
21679 # It is not useful on other systems. If it contains results you don't
21680 # want to keep, you may remove or edit it.
21681 #
21682 # config.status only pays attention to the cache file if you give it
21683 # the --recheck option to rerun configure.
21684 #
21685 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21686 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21687 # following values.
21688  
21689 _ACEOF
21690  
21691 # The following way of writing the cache mishandles newlines in values,
21692 # but we know of no workaround that is simple, portable, and efficient.
21693 # So, we kill variables containing newlines.
21694 # Ultrix sh set writes to stderr and can't be redirected directly,
21695 # and sets the high bit in the cache file unless we assign to the vars.
21696 (
21697 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21698 eval ac_val=\$$ac_var
21699 case $ac_val in #(
21700 *${as_nl}*)
21701 case $ac_var in #(
21702 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21703 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21704 esac
21705 case $ac_var in #(
21706 _ | IFS | as_nl) ;; #(
21707 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21708 *) { eval $ac_var=; unset $ac_var;} ;;
21709 esac ;;
21710 esac
21711 done
21712  
21713 (set) 2>&1 |
21714 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21715 *${as_nl}ac_space=\ *)
21716 # `set' does not quote correctly, so add quotes: double-quote
21717 # substitution turns \\\\ into \\, and sed turns \\ into \.
21718 sed -n \
21719 "s/'/'\\\\''/g;
21720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21721 ;; #(
21722 *)
21723 # `set' quotes correctly as required by POSIX, so do not add quotes.
21724 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21725 ;;
21726 esac |
21727 sort
21728 ) |
21729 sed '
21730 /^ac_cv_env_/b end
21731 t clear
21732 :clear
21733 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21734 t end
21735 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21736 :end' >>confcache
21737 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21738 if test -w "$cache_file"; then
21739 if test "x$cache_file" != "x/dev/null"; then
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21741 $as_echo "$as_me: updating cache $cache_file" >&6;}
21742 if test ! -f "$cache_file" || test -h "$cache_file"; then
21743 cat confcache >"$cache_file"
21744 else
21745 case $cache_file in #(
21746 */* | ?:*)
21747 mv -f confcache "$cache_file"$$ &&
21748 mv -f "$cache_file"$$ "$cache_file" ;; #(
21749 *)
21750 mv -f confcache "$cache_file" ;;
21751 esac
21752 fi
21753 fi
21754 else
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21756 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21757 fi
21758 fi
21759 rm -f confcache
21760  
21761 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21762 # Let make expand exec_prefix.
21763 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21764  
21765 DEFS=-DHAVE_CONFIG_H
21766  
21767 ac_libobjs=
21768 ac_ltlibobjs=
21769 U=
21770 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21771 # 1. Remove the extension, and $U if already installed.
21772 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21773 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21774 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21775 # will be set to the directory where LIBOBJS objects are built.
21776 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21777 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21778 done
21779 LIBOBJS=$ac_libobjs
21780  
21781 LTLIBOBJS=$ac_ltlibobjs
21782  
21783  
21784 if test -n "$EXEEXT"; then
21785 am__EXEEXT_TRUE=
21786 am__EXEEXT_FALSE='#'
21787 else
21788 am__EXEEXT_TRUE='#'
21789 am__EXEEXT_FALSE=
21790 fi
21791  
21792 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21793 as_fn_error $? "conditional \"AMDEP\" was never defined.
21794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21795 fi
21796 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21797 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21799 fi
21800 if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
21801 as_fn_error $? "conditional \"RELOCATABLE_VIA_LD\" was never defined.
21802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21803 fi
21804 if test -z "${RELOCATABLE_VIA_WRAPPER_TRUE}" && test -z "${RELOCATABLE_VIA_WRAPPER_FALSE}"; then
21805 as_fn_error $? "conditional \"RELOCATABLE_VIA_WRAPPER\" was never defined.
21806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21807 fi
21808 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21809 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
21810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21811 fi
21812 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
21813 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
21814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21815 fi
21816 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
21817 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
21818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21819 fi
21820 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
21821 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
21822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21823 fi
21824 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
21825 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
21826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21827 fi
21828 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
21829 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
21830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21831 fi
21832 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
21833 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
21834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21835 fi
21836  
21837 gl_libobjs=
21838 gl_ltlibobjs=
21839 if test -n "$gl_LIBOBJS"; then
21840 # Remove the extension.
21841 sed_drop_objext='s/\.o$//;s/\.obj$//'
21842 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21843 gl_libobjs="$gl_libobjs $i.$ac_objext"
21844 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21845 done
21846 fi
21847 gl_LIBOBJS=$gl_libobjs
21848  
21849 gl_LTLIBOBJS=$gl_ltlibobjs
21850  
21851  
21852  
21853 gltests_libobjs=
21854 gltests_ltlibobjs=
21855 if test -n "$gltests_LIBOBJS"; then
21856 # Remove the extension.
21857 sed_drop_objext='s/\.o$//;s/\.obj$//'
21858 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21859 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21860 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21861 done
21862 fi
21863 gltests_LIBOBJS=$gltests_libobjs
21864  
21865 gltests_LTLIBOBJS=$gltests_ltlibobjs
21866  
21867  
21868  
21869 : "${CONFIG_STATUS=./config.status}"
21870 ac_write_fail=0
21871 ac_clean_files_save=$ac_clean_files
21872 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21874 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21875 as_write_fail=0
21876 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21877 #! $SHELL
21878 # Generated by $as_me.
21879 # Run this file to recreate the current configuration.
21880 # Compiler output produced by configure, useful for debugging
21881 # configure, is in config.log if it exists.
21882  
21883 debug=false
21884 ac_cs_recheck=false
21885 ac_cs_silent=false
21886  
21887 SHELL=\${CONFIG_SHELL-$SHELL}
21888 export SHELL
21889 _ASEOF
21890 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21891 ## -------------------- ##
21892 ## M4sh Initialization. ##
21893 ## -------------------- ##
21894  
21895 # Be more Bourne compatible
21896 DUALCASE=1; export DUALCASE # for MKS sh
21897 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21898 emulate sh
21899 NULLCMD=:
21900 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21901 # is contrary to our usage. Disable this feature.
21902 alias -g '${1+"$@"}'='"$@"'
21903 setopt NO_GLOB_SUBST
21904 else
21905 case `(set -o) 2>/dev/null` in #(
21906 *posix*) :
21907 set -o posix ;; #(
21908 *) :
21909 ;;
21910 esac
21911 fi
21912  
21913  
21914 as_nl='
21915 '
21916 export as_nl
21917 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21918 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21919 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21920 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21921 # Prefer a ksh shell builtin over an external printf program on Solaris,
21922 # but without wasting forks for bash or zsh.
21923 if test -z "$BASH_VERSION$ZSH_VERSION" \
21924 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21925 as_echo='print -r --'
21926 as_echo_n='print -rn --'
21927 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21928 as_echo='printf %s\n'
21929 as_echo_n='printf %s'
21930 else
21931 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21932 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21933 as_echo_n='/usr/ucb/echo -n'
21934 else
21935 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21936 as_echo_n_body='eval
21937 arg=$1;
21938 case $arg in #(
21939 *"$as_nl"*)
21940 expr "X$arg" : "X\\(.*\\)$as_nl";
21941 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21942 esac;
21943 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21944 '
21945 export as_echo_n_body
21946 as_echo_n='sh -c $as_echo_n_body as_echo'
21947 fi
21948 export as_echo_body
21949 as_echo='sh -c $as_echo_body as_echo'
21950 fi
21951  
21952 # The user is always right.
21953 if test "${PATH_SEPARATOR+set}" != set; then
21954 PATH_SEPARATOR=:
21955 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21956 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21957 PATH_SEPARATOR=';'
21958 }
21959 fi
21960  
21961  
21962 # IFS
21963 # We need space, tab and new line, in precisely that order. Quoting is
21964 # there to prevent editors from complaining about space-tab.
21965 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21966 # splitting by setting IFS to empty value.)
21967 IFS=" "" $as_nl"
21968  
21969 # Find who we are. Look in the path if we contain no directory separator.
21970 as_myself=
21971 case $0 in #((
21972 *[\\/]* ) as_myself=$0 ;;
21973 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21974 for as_dir in $PATH
21975 do
21976 IFS=$as_save_IFS
21977 test -z "$as_dir" && as_dir=.
21978 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21979 done
21980 IFS=$as_save_IFS
21981  
21982 ;;
21983 esac
21984 # We did not find ourselves, most probably we were run as `sh COMMAND'
21985 # in which case we are not to be found in the path.
21986 if test "x$as_myself" = x; then
21987 as_myself=$0
21988 fi
21989 if test ! -f "$as_myself"; then
21990 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21991 exit 1
21992 fi
21993  
21994 # Unset variables that we do not need and which cause bugs (e.g. in
21995 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21996 # suppresses any "Segmentation fault" message there. '((' could
21997 # trigger a bug in pdksh 5.2.14.
21998 for as_var in BASH_ENV ENV MAIL MAILPATH
21999 do eval test x\${$as_var+set} = xset \
22000 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22001 done
22002 PS1='$ '
22003 PS2='> '
22004 PS4='+ '
22005  
22006 # NLS nuisances.
22007 LC_ALL=C
22008 export LC_ALL
22009 LANGUAGE=C
22010 export LANGUAGE
22011  
22012 # CDPATH.
22013 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22014  
22015  
22016 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22017 # ----------------------------------------
22018 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22019 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22020 # script with STATUS, using 1 if that was 0.
22021 as_fn_error ()
22022 {
22023 as_status=$1; test $as_status -eq 0 && as_status=1
22024 if test "$4"; then
22025 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22026 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22027 fi
22028 $as_echo "$as_me: error: $2" >&2
22029 as_fn_exit $as_status
22030 } # as_fn_error
22031  
22032  
22033 # as_fn_set_status STATUS
22034 # -----------------------
22035 # Set $? to STATUS, without forking.
22036 as_fn_set_status ()
22037 {
22038 return $1
22039 } # as_fn_set_status
22040  
22041 # as_fn_exit STATUS
22042 # -----------------
22043 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22044 as_fn_exit ()
22045 {
22046 set +e
22047 as_fn_set_status $1
22048 exit $1
22049 } # as_fn_exit
22050  
22051 # as_fn_unset VAR
22052 # ---------------
22053 # Portably unset VAR.
22054 as_fn_unset ()
22055 {
22056 { eval $1=; unset $1;}
22057 }
22058 as_unset=as_fn_unset
22059 # as_fn_append VAR VALUE
22060 # ----------------------
22061 # Append the text in VALUE to the end of the definition contained in VAR. Take
22062 # advantage of any shell optimizations that allow amortized linear growth over
22063 # repeated appends, instead of the typical quadratic growth present in naive
22064 # implementations.
22065 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22066 eval 'as_fn_append ()
22067 {
22068 eval $1+=\$2
22069 }'
22070 else
22071 as_fn_append ()
22072 {
22073 eval $1=\$$1\$2
22074 }
22075 fi # as_fn_append
22076  
22077 # as_fn_arith ARG...
22078 # ------------------
22079 # Perform arithmetic evaluation on the ARGs, and store the result in the
22080 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22081 # must be portable across $(()) and expr.
22082 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22083 eval 'as_fn_arith ()
22084 {
22085 as_val=$(( $* ))
22086 }'
22087 else
22088 as_fn_arith ()
22089 {
22090 as_val=`expr "$@" || test $? -eq 1`
22091 }
22092 fi # as_fn_arith
22093  
22094  
22095 if expr a : '\(a\)' >/dev/null 2>&1 &&
22096 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22097 as_expr=expr
22098 else
22099 as_expr=false
22100 fi
22101  
22102 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22103 as_basename=basename
22104 else
22105 as_basename=false
22106 fi
22107  
22108 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22109 as_dirname=dirname
22110 else
22111 as_dirname=false
22112 fi
22113  
22114 as_me=`$as_basename -- "$0" ||
22115 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22116 X"$0" : 'X\(//\)$' \| \
22117 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22118 $as_echo X/"$0" |
22119 sed '/^.*\/\([^/][^/]*\)\/*$/{
22120 s//\1/
22121 q
22122 }
22123 /^X\/\(\/\/\)$/{
22124 s//\1/
22125 q
22126 }
22127 /^X\/\(\/\).*/{
22128 s//\1/
22129 q
22130 }
22131 s/.*/./; q'`
22132  
22133 # Avoid depending upon Character Ranges.
22134 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22135 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22136 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22137 as_cr_digits='0123456789'
22138 as_cr_alnum=$as_cr_Letters$as_cr_digits
22139  
22140 ECHO_C= ECHO_N= ECHO_T=
22141 case `echo -n x` in #(((((
22142 -n*)
22143 case `echo 'xy\c'` in
22144 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22145 xy) ECHO_C='\c';;
22146 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22147 ECHO_T=' ';;
22148 esac;;
22149 *)
22150 ECHO_N='-n';;
22151 esac
22152  
22153 rm -f conf$$ conf$$.exe conf$$.file
22154 if test -d conf$$.dir; then
22155 rm -f conf$$.dir/conf$$.file
22156 else
22157 rm -f conf$$.dir
22158 mkdir conf$$.dir 2>/dev/null
22159 fi
22160 if (echo >conf$$.file) 2>/dev/null; then
22161 if ln -s conf$$.file conf$$ 2>/dev/null; then
22162 as_ln_s='ln -s'
22163 # ... but there are two gotchas:
22164 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22165 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22166 # In both cases, we have to default to `cp -p'.
22167 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22168 as_ln_s='cp -p'
22169 elif ln conf$$.file conf$$ 2>/dev/null; then
22170 as_ln_s=ln
22171 else
22172 as_ln_s='cp -p'
22173 fi
22174 else
22175 as_ln_s='cp -p'
22176 fi
22177 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22178 rmdir conf$$.dir 2>/dev/null
22179  
22180  
22181 # as_fn_mkdir_p
22182 # -------------
22183 # Create "$as_dir" as a directory, including parents if necessary.
22184 as_fn_mkdir_p ()
22185 {
22186  
22187 case $as_dir in #(
22188 -*) as_dir=./$as_dir;;
22189 esac
22190 test -d "$as_dir" || eval $as_mkdir_p || {
22191 as_dirs=
22192 while :; do
22193 case $as_dir in #(
22194 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22195 *) as_qdir=$as_dir;;
22196 esac
22197 as_dirs="'$as_qdir' $as_dirs"
22198 as_dir=`$as_dirname -- "$as_dir" ||
22199 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22200 X"$as_dir" : 'X\(//\)[^/]' \| \
22201 X"$as_dir" : 'X\(//\)$' \| \
22202 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22203 $as_echo X"$as_dir" |
22204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22205 s//\1/
22206 q
22207 }
22208 /^X\(\/\/\)[^/].*/{
22209 s//\1/
22210 q
22211 }
22212 /^X\(\/\/\)$/{
22213 s//\1/
22214 q
22215 }
22216 /^X\(\/\).*/{
22217 s//\1/
22218 q
22219 }
22220 s/.*/./; q'`
22221 test -d "$as_dir" && break
22222 done
22223 test -z "$as_dirs" || eval "mkdir $as_dirs"
22224 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22225  
22226  
22227 } # as_fn_mkdir_p
22228 if mkdir -p . 2>/dev/null; then
22229 as_mkdir_p='mkdir -p "$as_dir"'
22230 else
22231 test -d ./-p && rmdir ./-p
22232 as_mkdir_p=false
22233 fi
22234  
22235 if test -x / >/dev/null 2>&1; then
22236 as_test_x='test -x'
22237 else
22238 if ls -dL / >/dev/null 2>&1; then
22239 as_ls_L_option=L
22240 else
22241 as_ls_L_option=
22242 fi
22243 as_test_x='
22244 eval sh -c '\''
22245 if test -d "$1"; then
22246 test -d "$1/.";
22247 else
22248 case $1 in #(
22249 -*)set "./$1";;
22250 esac;
22251 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
22252 ???[sx]*):;;*)false;;esac;fi
22253 '\'' sh
22254 '
22255 fi
22256 as_executable_p=$as_test_x
22257  
22258 # Sed expression to map a string onto a valid CPP name.
22259 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22260  
22261 # Sed expression to map a string onto a valid variable name.
22262 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22263  
22264  
22265 exec 6>&1
22266 ## ----------------------------------- ##
22267 ## Main body of $CONFIG_STATUS script. ##
22268 ## ----------------------------------- ##
22269 _ASEOF
22270 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22271  
22272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22273 # Save the log message, to keep $0 and so on meaningful, and to
22274 # report actual input values of CONFIG_FILES etc. instead of their
22275 # values after options handling.
22276 ac_log="
22277 This file was extended by $as_me, which was
22278 generated by GNU Autoconf 2.68. Invocation command line was
22279  
22280 CONFIG_FILES = $CONFIG_FILES
22281 CONFIG_HEADERS = $CONFIG_HEADERS
22282 CONFIG_LINKS = $CONFIG_LINKS
22283 CONFIG_COMMANDS = $CONFIG_COMMANDS
22284 $ $0 $@
22285  
22286 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22287 "
22288  
22289 _ACEOF
22290  
22291 case $ac_config_files in *"
22292 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22293 esac
22294  
22295 case $ac_config_headers in *"
22296 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22297 esac
22298  
22299  
22300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22301 # Files that config.status was made for.
22302 config_files="$ac_config_files"
22303 config_headers="$ac_config_headers"
22304 config_commands="$ac_config_commands"
22305  
22306 _ACEOF
22307  
22308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22309 ac_cs_usage="\
22310 \`$as_me' instantiates files and other configuration actions
22311 from templates according to the current configuration. Unless the files
22312 and actions are specified as TAGs, all are instantiated by default.
22313  
22314 Usage: $0 [OPTION]... [TAG]...
22315  
22316 -h, --help print this help, then exit
22317 -V, --version print version number and configuration settings, then exit
22318 --config print configuration, then exit
22319 -q, --quiet, --silent
22320 do not print progress messages
22321 -d, --debug don't remove temporary files
22322 --recheck update $as_me by reconfiguring in the same conditions
22323 --file=FILE[:TEMPLATE]
22324 instantiate the configuration file FILE
22325 --header=FILE[:TEMPLATE]
22326 instantiate the configuration header FILE
22327  
22328 Configuration files:
22329 $config_files
22330  
22331 Configuration headers:
22332 $config_headers
22333  
22334 Configuration commands:
22335 $config_commands
22336  
22337 Report bugs to the package provider."
22338  
22339 _ACEOF
22340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22341 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22342 ac_cs_version="\\
22343 config.status
22344 configured by $0, generated by GNU Autoconf 2.68,
22345 with options \\"\$ac_cs_config\\"
22346  
22347 Copyright (C) 2010 Free Software Foundation, Inc.
22348 This config.status script is free software; the Free Software Foundation
22349 gives unlimited permission to copy, distribute and modify it."
22350  
22351 ac_pwd='$ac_pwd'
22352 srcdir='$srcdir'
22353 INSTALL='$INSTALL'
22354 MKDIR_P='$MKDIR_P'
22355 AWK='$AWK'
22356 test -n "\$AWK" || AWK=awk
22357 _ACEOF
22358  
22359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22360 # The default lists apply if the user does not specify any file.
22361 ac_need_defaults=:
22362 while test $# != 0
22363 do
22364 case $1 in
22365 --*=?*)
22366 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22367 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22368 ac_shift=:
22369 ;;
22370 --*=)
22371 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22372 ac_optarg=
22373 ac_shift=:
22374 ;;
22375 *)
22376 ac_option=$1
22377 ac_optarg=$2
22378 ac_shift=shift
22379 ;;
22380 esac
22381  
22382 case $ac_option in
22383 # Handling of the options.
22384 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22385 ac_cs_recheck=: ;;
22386 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22387 $as_echo "$ac_cs_version"; exit ;;
22388 --config | --confi | --conf | --con | --co | --c )
22389 $as_echo "$ac_cs_config"; exit ;;
22390 --debug | --debu | --deb | --de | --d | -d )
22391 debug=: ;;
22392 --file | --fil | --fi | --f )
22393 $ac_shift
22394 case $ac_optarg in
22395 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22396 '') as_fn_error $? "missing file argument" ;;
22397 esac
22398 as_fn_append CONFIG_FILES " '$ac_optarg'"
22399 ac_need_defaults=false;;
22400 --header | --heade | --head | --hea )
22401 $ac_shift
22402 case $ac_optarg in
22403 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22404 esac
22405 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22406 ac_need_defaults=false;;
22407 --he | --h)
22408 # Conflict between --help and --header
22409 as_fn_error $? "ambiguous option: \`$1'
22410 Try \`$0 --help' for more information.";;
22411 --help | --hel | -h )
22412 $as_echo "$ac_cs_usage"; exit ;;
22413 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22414 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22415 ac_cs_silent=: ;;
22416  
22417 # This is an error.
22418 -*) as_fn_error $? "unrecognized option: \`$1'
22419 Try \`$0 --help' for more information." ;;
22420  
22421 *) as_fn_append ac_config_targets " $1"
22422 ac_need_defaults=false ;;
22423  
22424 esac
22425 shift
22426 done
22427  
22428 ac_configure_extra_args=
22429  
22430 if $ac_cs_silent; then
22431 exec 6>/dev/null
22432 ac_configure_extra_args="$ac_configure_extra_args --silent"
22433 fi
22434  
22435 _ACEOF
22436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22437 if \$ac_cs_recheck; then
22438 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22439 shift
22440 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22441 CONFIG_SHELL='$SHELL'
22442 export CONFIG_SHELL
22443 exec "\$@"
22444 fi
22445  
22446 _ACEOF
22447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22448 exec 5>>config.log
22449 {
22450 echo
22451 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22452 ## Running $as_me. ##
22453 _ASBOX
22454 $as_echo "$ac_log"
22455 } >&5
22456  
22457 _ACEOF
22458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22459 #
22460 # INIT-COMMANDS
22461 #
22462 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22463  
22464  
22465 # The HP-UX ksh and POSIX shell print the target directory to stdout
22466 # if CDPATH is set.
22467 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22468  
22469 sed_quote_subst='$sed_quote_subst'
22470 double_quote_subst='$double_quote_subst'
22471 delay_variable_subst='$delay_variable_subst'
22472 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22473 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22474 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22475 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
22476 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22477 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22478 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22479 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22480 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22481 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22482 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22483 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22484 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22485 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22486 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22487 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22488 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22489 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22490 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22491 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22492 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22493 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22494 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22495 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22496 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22497 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22498 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22499 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22500 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22501 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22502 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22503 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22504 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22505 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22506 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22507 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22508 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22509 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22510 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22511 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22512 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22513 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22514 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22515 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22516 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22517 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22518 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22519 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22520 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22521 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22522 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22523 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22524 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22525 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22526 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22527 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22528 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"`'
22529 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22530 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22531 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22532 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22533 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22534 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22535 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22536 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22537 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22538 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22539 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22540 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22541 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22542 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22543 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22544 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22545 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22546 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22547 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22548 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22549 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22550 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22551 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22552 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22553 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22554 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22555 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22556 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22557 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22558 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22559 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22560 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22561 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22562 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22563 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
22564 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22565 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22566 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22567 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22568 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22569 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22570 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22571 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22572 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22573 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22574 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22575 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22576 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22577 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22578 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22579 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22580 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22581 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22582 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22583 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22584 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22585 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22586 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22587 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22588 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22589 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22590 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22591 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22592 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22593 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22594 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22595 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22596 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22597 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22598 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22599 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22600 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22601 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22602 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22603 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
22604 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
22605 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
22606 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
22607 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
22608 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
22609 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
22610 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
22611 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
22612 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
22613 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
22614 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
22615 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
22616 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
22617 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
22618 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
22619 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
22620 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
22621 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
22622 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
22623 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
22624 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
22625 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
22626 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
22627 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
22628 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
22629 hardcode_libdir_flag_spec_ld_RC='`$ECHO "$hardcode_libdir_flag_spec_ld_RC" | $SED "$delay_single_quote_subst"`'
22630 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
22631 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
22632 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
22633 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
22634 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
22635 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
22636 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
22637 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
22638 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
22639 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
22640 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
22641 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
22642 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
22643 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
22644 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
22645 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
22646  
22647 LTCC='$LTCC'
22648 LTCFLAGS='$LTCFLAGS'
22649 compiler='$compiler_DEFAULT'
22650  
22651 # A function that is used when there is no print builtin or printf.
22652 func_fallback_echo ()
22653 {
22654 eval 'cat <<_LTECHO_EOF
22655 \$1
22656 _LTECHO_EOF'
22657 }
22658  
22659 # Quote evaled strings.
22660 for var in AS \
22661 DLLTOOL \
22662 OBJDUMP \
22663 SHELL \
22664 ECHO \
22665 SED \
22666 GREP \
22667 EGREP \
22668 FGREP \
22669 LD \
22670 NM \
22671 LN_S \
22672 lt_SP2NL \
22673 lt_NL2SP \
22674 reload_flag \
22675 deplibs_check_method \
22676 file_magic_cmd \
22677 file_magic_glob \
22678 want_nocaseglob \
22679 sharedlib_from_linklib_cmd \
22680 AR \
22681 AR_FLAGS \
22682 archiver_list_spec \
22683 STRIP \
22684 RANLIB \
22685 CC \
22686 CFLAGS \
22687 compiler \
22688 lt_cv_sys_global_symbol_pipe \
22689 lt_cv_sys_global_symbol_to_cdecl \
22690 lt_cv_sys_global_symbol_to_c_name_address \
22691 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22692 nm_file_list_spec \
22693 lt_prog_compiler_no_builtin_flag \
22694 lt_prog_compiler_pic \
22695 lt_prog_compiler_wl \
22696 lt_prog_compiler_static \
22697 lt_cv_prog_compiler_c_o \
22698 need_locks \
22699 MANIFEST_TOOL \
22700 DSYMUTIL \
22701 NMEDIT \
22702 LIPO \
22703 OTOOL \
22704 OTOOL64 \
22705 shrext_cmds \
22706 export_dynamic_flag_spec \
22707 whole_archive_flag_spec \
22708 compiler_needs_object \
22709 with_gnu_ld \
22710 allow_undefined_flag \
22711 no_undefined_flag \
22712 hardcode_libdir_flag_spec \
22713 hardcode_libdir_flag_spec_ld \
22714 hardcode_libdir_separator \
22715 exclude_expsyms \
22716 include_expsyms \
22717 file_list_spec \
22718 variables_saved_for_relink \
22719 libname_spec \
22720 library_names_spec \
22721 soname_spec \
22722 install_override_mode \
22723 finish_eval \
22724 old_striplib \
22725 striplib \
22726 LD_RC \
22727 reload_flag_RC \
22728 compiler_RC \
22729 lt_prog_compiler_no_builtin_flag_RC \
22730 lt_prog_compiler_pic_RC \
22731 lt_prog_compiler_wl_RC \
22732 lt_prog_compiler_static_RC \
22733 lt_cv_prog_compiler_c_o_RC \
22734 export_dynamic_flag_spec_RC \
22735 whole_archive_flag_spec_RC \
22736 compiler_needs_object_RC \
22737 with_gnu_ld_RC \
22738 allow_undefined_flag_RC \
22739 no_undefined_flag_RC \
22740 hardcode_libdir_flag_spec_RC \
22741 hardcode_libdir_flag_spec_ld_RC \
22742 hardcode_libdir_separator_RC \
22743 exclude_expsyms_RC \
22744 include_expsyms_RC \
22745 file_list_spec_RC; do
22746 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22747 *[\\\\\\\`\\"\\\$]*)
22748 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22749 ;;
22750 *)
22751 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22752 ;;
22753 esac
22754 done
22755  
22756 # Double-quote double-evaled strings.
22757 for var in reload_cmds \
22758 old_postinstall_cmds \
22759 old_postuninstall_cmds \
22760 old_archive_cmds \
22761 extract_expsyms_cmds \
22762 old_archive_from_new_cmds \
22763 old_archive_from_expsyms_cmds \
22764 archive_cmds \
22765 archive_expsym_cmds \
22766 module_cmds \
22767 module_expsym_cmds \
22768 export_symbols_cmds \
22769 prelink_cmds \
22770 postlink_cmds \
22771 postinstall_cmds \
22772 postuninstall_cmds \
22773 finish_cmds \
22774 sys_lib_search_path_spec \
22775 sys_lib_dlsearch_path_spec \
22776 reload_cmds_RC \
22777 old_archive_cmds_RC \
22778 old_archive_from_new_cmds_RC \
22779 old_archive_from_expsyms_cmds_RC \
22780 archive_cmds_RC \
22781 archive_expsym_cmds_RC \
22782 module_cmds_RC \
22783 module_expsym_cmds_RC \
22784 export_symbols_cmds_RC \
22785 prelink_cmds_RC \
22786 postlink_cmds_RC; do
22787 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22788 *[\\\\\\\`\\"\\\$]*)
22789 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22790 ;;
22791 *)
22792 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22793 ;;
22794 esac
22795 done
22796  
22797 ac_aux_dir='$ac_aux_dir'
22798 xsi_shell='$xsi_shell'
22799 lt_shell_append='$lt_shell_append'
22800  
22801 # See if we are running on zsh, and set the options which allow our
22802 # commands through without removal of \ escapes INIT.
22803 if test -n "\${ZSH_VERSION+set}" ; then
22804 setopt NO_GLOB_SUBST
22805 fi
22806  
22807  
22808 PACKAGE='$PACKAGE'
22809 VERSION='$VERSION'
22810 TIMESTAMP='$TIMESTAMP'
22811 RM='$RM'
22812 ofile='$ofile'
22813  
22814  
22815  
22816  
22817  
22818 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22819 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
22820 # from automake < 1.5.
22821 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22822 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22823 LINGUAS="${LINGUAS-%UNSET%}"
22824  
22825  
22826 _ACEOF
22827  
22828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22829  
22830 # Handling of arguments.
22831 for ac_config_target in $ac_config_targets
22832 do
22833 case $ac_config_target in
22834 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22835 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
22836 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22837 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22838 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
22839 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22840 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
22841 "srclib/Makefile") CONFIG_FILES="$CONFIG_FILES srclib/Makefile" ;;
22842 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22843 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22844 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22845 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22846 "include/iconv.h") CONFIG_FILES="$CONFIG_FILES include/iconv.h:include/iconv.h.build.in" ;;
22847 "include/iconv.h.inst") CONFIG_FILES="$CONFIG_FILES include/iconv.h.inst:include/iconv.h.in" ;;
22848  
22849 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22850 esac
22851 done
22852  
22853  
22854 # If the user did not use the arguments to specify the items to instantiate,
22855 # then the envvar interface is used. Set only those that are not.
22856 # We use the long form for the default assignment because of an extremely
22857 # bizarre bug on SunOS 4.1.3.
22858 if $ac_need_defaults; then
22859 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22860 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22861 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22862 fi
22863  
22864 # Have a temporary directory for convenience. Make it in the build tree
22865 # simply because there is no reason against having it here, and in addition,
22866 # creating and moving files from /tmp can sometimes cause problems.
22867 # Hook for its removal unless debugging.
22868 # Note that there is a small window in which the directory will not be cleaned:
22869 # after its creation but before its name has been assigned to `$tmp'.
22870 $debug ||
22871 {
22872 tmp= ac_tmp=
22873 trap 'exit_status=$?
22874 : "${ac_tmp:=$tmp}"
22875 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22876 ' 0
22877 trap 'as_fn_exit 1' 1 2 13 15
22878 }
22879 # Create a (secure) tmp directory for tmp files.
22880  
22881 {
22882 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22883 test -d "$tmp"
22884 } ||
22885 {
22886 tmp=./conf$$-$RANDOM
22887 (umask 077 && mkdir "$tmp")
22888 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22889 ac_tmp=$tmp
22890  
22891 # Set up the scripts for CONFIG_FILES section.
22892 # No need to generate them if there are no CONFIG_FILES.
22893 # This happens for instance with `./config.status config.h'.
22894 if test -n "$CONFIG_FILES"; then
22895  
22896  
22897 ac_cr=`echo X | tr X '\015'`
22898 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22899 # But we know of no other shell where ac_cr would be empty at this
22900 # point, so we can use a bashism as a fallback.
22901 if test "x$ac_cr" = x; then
22902 eval ac_cr=\$\'\\r\'
22903 fi
22904 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22905 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22906 ac_cs_awk_cr='\\r'
22907 else
22908 ac_cs_awk_cr=$ac_cr
22909 fi
22910  
22911 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22912 _ACEOF
22913  
22914  
22915 {
22916 echo "cat >conf$$subs.awk <<_ACEOF" &&
22917 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22918 echo "_ACEOF"
22919 } >conf$$subs.sh ||
22920 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22921 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22922 ac_delim='%!_!# '
22923 for ac_last_try in false false false false false :; do
22924 . ./conf$$subs.sh ||
22925 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22926  
22927 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22928 if test $ac_delim_n = $ac_delim_num; then
22929 break
22930 elif $ac_last_try; then
22931 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22932 else
22933 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22934 fi
22935 done
22936 rm -f conf$$subs.sh
22937  
22938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22939 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22940 _ACEOF
22941 sed -n '
22942 h
22943 s/^/S["/; s/!.*/"]=/
22944 p
22945 g
22946 s/^[^!]*!//
22947 :repl
22948 t repl
22949 s/'"$ac_delim"'$//
22950 t delim
22951 :nl
22952 h
22953 s/\(.\{148\}\)..*/\1/
22954 t more1
22955 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22956 p
22957 n
22958 b repl
22959 :more1
22960 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22961 p
22962 g
22963 s/.\{148\}//
22964 t nl
22965 :delim
22966 h
22967 s/\(.\{148\}\)..*/\1/
22968 t more2
22969 s/["\\]/\\&/g; s/^/"/; s/$/"/
22970 p
22971 b
22972 :more2
22973 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22974 p
22975 g
22976 s/.\{148\}//
22977 t delim
22978 ' <conf$$subs.awk | sed '
22979 /^[^""]/{
22980 N
22981 s/\n//
22982 }
22983 ' >>$CONFIG_STATUS || ac_write_fail=1
22984 rm -f conf$$subs.awk
22985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22986 _ACAWK
22987 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22988 for (key in S) S_is_set[key] = 1
22989 FS = ""
22990  
22991 }
22992 {
22993 line = $ 0
22994 nfields = split(line, field, "@")
22995 substed = 0
22996 len = length(field[1])
22997 for (i = 2; i < nfields; i++) {
22998 key = field[i]
22999 keylen = length(key)
23000 if (S_is_set[key]) {
23001 value = S[key]
23002 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23003 len += length(value) + length(field[++i])
23004 substed = 1
23005 } else
23006 len += 1 + keylen
23007 }
23008  
23009 print line
23010 }
23011  
23012 _ACAWK
23013 _ACEOF
23014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23015 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23016 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23017 else
23018 cat
23019 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23020 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23021 _ACEOF
23022  
23023 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23024 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23025 # trailing colons and then remove the whole line if VPATH becomes empty
23026 # (actually we leave an empty line to preserve line numbers).
23027 if test "x$srcdir" = x.; then
23028 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23029 h
23030 s///
23031 s/^/:/
23032 s/[ ]*$/:/
23033 s/:\$(srcdir):/:/g
23034 s/:\${srcdir}:/:/g
23035 s/:@srcdir@:/:/g
23036 s/^:*//
23037 s/:*$//
23038 x
23039 s/\(=[ ]*\).*/\1/
23040 G
23041 s/\n//
23042 s/^[^=]*=[ ]*$//
23043 }'
23044 fi
23045  
23046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23047 fi # test -n "$CONFIG_FILES"
23048  
23049 # Set up the scripts for CONFIG_HEADERS section.
23050 # No need to generate them if there are no CONFIG_HEADERS.
23051 # This happens for instance with `./config.status Makefile'.
23052 if test -n "$CONFIG_HEADERS"; then
23053 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23054 BEGIN {
23055 _ACEOF
23056  
23057 # Transform confdefs.h into an awk script `defines.awk', embedded as
23058 # here-document in config.status, that substitutes the proper values into
23059 # config.h.in to produce config.h.
23060  
23061 # Create a delimiter string that does not exist in confdefs.h, to ease
23062 # handling of long lines.
23063 ac_delim='%!_!# '
23064 for ac_last_try in false false :; do
23065 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23066 if test -z "$ac_tt"; then
23067 break
23068 elif $ac_last_try; then
23069 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23070 else
23071 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23072 fi
23073 done
23074  
23075 # For the awk script, D is an array of macro values keyed by name,
23076 # likewise P contains macro parameters if any. Preserve backslash
23077 # newline sequences.
23078  
23079 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23080 sed -n '
23081 s/.\{148\}/&'"$ac_delim"'/g
23082 t rset
23083 :rset
23084 s/^[ ]*#[ ]*define[ ][ ]*/ /
23085 t def
23086 d
23087 :def
23088 s/\\$//
23089 t bsnl
23090 s/["\\]/\\&/g
23091 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23092 D["\1"]=" \3"/p
23093 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23094 d
23095 :bsnl
23096 s/["\\]/\\&/g
23097 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23098 D["\1"]=" \3\\\\\\n"\\/p
23099 t cont
23100 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23101 t cont
23102 d
23103 :cont
23104 n
23105 s/.\{148\}/&'"$ac_delim"'/g
23106 t clear
23107 :clear
23108 s/\\$//
23109 t bsnlc
23110 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23111 d
23112 :bsnlc
23113 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23114 b cont
23115 ' <confdefs.h | sed '
23116 s/'"$ac_delim"'/"\\\
23117 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23118  
23119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23120 for (key in D) D_is_set[key] = 1
23121 FS = ""
23122 }
23123 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23124 line = \$ 0
23125 split(line, arg, " ")
23126 if (arg[1] == "#") {
23127 defundef = arg[2]
23128 mac1 = arg[3]
23129 } else {
23130 defundef = substr(arg[1], 2)
23131 mac1 = arg[2]
23132 }
23133 split(mac1, mac2, "(") #)
23134 macro = mac2[1]
23135 prefix = substr(line, 1, index(line, defundef) - 1)
23136 if (D_is_set[macro]) {
23137 # Preserve the white space surrounding the "#".
23138 print prefix "define", macro P[macro] D[macro]
23139 next
23140 } else {
23141 # Replace #undef with comments. This is necessary, for example,
23142 # in the case of _POSIX_SOURCE, which is predefined and required
23143 # on some systems where configure will not decide to define it.
23144 if (defundef == "undef") {
23145 print "/*", prefix defundef, macro, "*/"
23146 next
23147 }
23148 }
23149 }
23150 { print }
23151 _ACAWK
23152 _ACEOF
23153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23154 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23155 fi # test -n "$CONFIG_HEADERS"
23156  
23157  
23158 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23159 shift
23160 for ac_tag
23161 do
23162 case $ac_tag in
23163 :[FHLC]) ac_mode=$ac_tag; continue;;
23164 esac
23165 case $ac_mode$ac_tag in
23166 :[FHL]*:*);;
23167 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23168 :[FH]-) ac_tag=-:-;;
23169 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23170 esac
23171 ac_save_IFS=$IFS
23172 IFS=:
23173 set x $ac_tag
23174 IFS=$ac_save_IFS
23175 shift
23176 ac_file=$1
23177 shift
23178  
23179 case $ac_mode in
23180 :L) ac_source=$1;;
23181 :[FH])
23182 ac_file_inputs=
23183 for ac_f
23184 do
23185 case $ac_f in
23186 -) ac_f="$ac_tmp/stdin";;
23187 *) # Look for the file first in the build tree, then in the source tree
23188 # (if the path is not absolute). The absolute path cannot be DOS-style,
23189 # because $ac_f cannot contain `:'.
23190 test -f "$ac_f" ||
23191 case $ac_f in
23192 [\\/$]*) false;;
23193 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23194 esac ||
23195 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23196 esac
23197 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23198 as_fn_append ac_file_inputs " '$ac_f'"
23199 done
23200  
23201 # Let's still pretend it is `configure' which instantiates (i.e., don't
23202 # use $as_me), people would be surprised to read:
23203 # /* config.h. Generated by config.status. */
23204 configure_input='Generated from '`
23205 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23206 `' by configure.'
23207 if test x"$ac_file" != x-; then
23208 configure_input="$ac_file. $configure_input"
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23210 $as_echo "$as_me: creating $ac_file" >&6;}
23211 fi
23212 # Neutralize special characters interpreted by sed in replacement strings.
23213 case $configure_input in #(
23214 *\&* | *\|* | *\\* )
23215 ac_sed_conf_input=`$as_echo "$configure_input" |
23216 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23217 *) ac_sed_conf_input=$configure_input;;
23218 esac
23219  
23220 case $ac_tag in
23221 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23222 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23223 esac
23224 ;;
23225 esac
23226  
23227 ac_dir=`$as_dirname -- "$ac_file" ||
23228 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23229 X"$ac_file" : 'X\(//\)[^/]' \| \
23230 X"$ac_file" : 'X\(//\)$' \| \
23231 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23232 $as_echo X"$ac_file" |
23233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23234 s//\1/
23235 q
23236 }
23237 /^X\(\/\/\)[^/].*/{
23238 s//\1/
23239 q
23240 }
23241 /^X\(\/\/\)$/{
23242 s//\1/
23243 q
23244 }
23245 /^X\(\/\).*/{
23246 s//\1/
23247 q
23248 }
23249 s/.*/./; q'`
23250 as_dir="$ac_dir"; as_fn_mkdir_p
23251 ac_builddir=.
23252  
23253 case "$ac_dir" in
23254 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23255 *)
23256 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23257 # A ".." for each directory in $ac_dir_suffix.
23258 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23259 case $ac_top_builddir_sub in
23260 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23261 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23262 esac ;;
23263 esac
23264 ac_abs_top_builddir=$ac_pwd
23265 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23266 # for backward compatibility:
23267 ac_top_builddir=$ac_top_build_prefix
23268  
23269 case $srcdir in
23270 .) # We are building in place.
23271 ac_srcdir=.
23272 ac_top_srcdir=$ac_top_builddir_sub
23273 ac_abs_top_srcdir=$ac_pwd ;;
23274 [\\/]* | ?:[\\/]* ) # Absolute name.
23275 ac_srcdir=$srcdir$ac_dir_suffix;
23276 ac_top_srcdir=$srcdir
23277 ac_abs_top_srcdir=$srcdir ;;
23278 *) # Relative name.
23279 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23280 ac_top_srcdir=$ac_top_build_prefix$srcdir
23281 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23282 esac
23283 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23284  
23285  
23286 case $ac_mode in
23287 :F)
23288 #
23289 # CONFIG_FILE
23290 #
23291  
23292 case $INSTALL in
23293 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23294 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23295 esac
23296 ac_MKDIR_P=$MKDIR_P
23297 case $MKDIR_P in
23298 [\\/$]* | ?:[\\/]* ) ;;
23299 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23300 esac
23301 _ACEOF
23302  
23303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23304 # If the template does not know about datarootdir, expand it.
23305 # FIXME: This hack should be removed a few years after 2.60.
23306 ac_datarootdir_hack=; ac_datarootdir_seen=
23307 ac_sed_dataroot='
23308 /datarootdir/ {
23309 p
23310 q
23311 }
23312 /@datadir@/p
23313 /@docdir@/p
23314 /@infodir@/p
23315 /@localedir@/p
23316 /@mandir@/p'
23317 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23318 *datarootdir*) ac_datarootdir_seen=yes;;
23319 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23321 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23322 _ACEOF
23323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23324 ac_datarootdir_hack='
23325 s&@datadir@&$datadir&g
23326 s&@docdir@&$docdir&g
23327 s&@infodir@&$infodir&g
23328 s&@localedir@&$localedir&g
23329 s&@mandir@&$mandir&g
23330 s&\\\${datarootdir}&$datarootdir&g' ;;
23331 esac
23332 _ACEOF
23333  
23334 # Neutralize VPATH when `$srcdir' = `.'.
23335 # Shell code in configure.ac might set extrasub.
23336 # FIXME: do we really want to maintain this feature?
23337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23338 ac_sed_extra="$ac_vpsub
23339 $extrasub
23340 _ACEOF
23341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23342 :t
23343 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23344 s|@configure_input@|$ac_sed_conf_input|;t t
23345 s&@top_builddir@&$ac_top_builddir_sub&;t t
23346 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23347 s&@srcdir@&$ac_srcdir&;t t
23348 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23349 s&@top_srcdir@&$ac_top_srcdir&;t t
23350 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23351 s&@builddir@&$ac_builddir&;t t
23352 s&@abs_builddir@&$ac_abs_builddir&;t t
23353 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23354 s&@INSTALL@&$ac_INSTALL&;t t
23355 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23356 $ac_datarootdir_hack
23357 "
23358 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23359 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23360  
23361 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23362 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23363 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23364 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23366 which seems to be undefined. Please make sure it is defined" >&5
23367 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23368 which seems to be undefined. Please make sure it is defined" >&2;}
23369  
23370 rm -f "$ac_tmp/stdin"
23371 case $ac_file in
23372 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23373 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23374 esac \
23375 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23376 ;;
23377 :H)
23378 #
23379 # CONFIG_HEADER
23380 #
23381 if test x"$ac_file" != x-; then
23382 {
23383 $as_echo "/* $configure_input */" \
23384 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23385 } >"$ac_tmp/config.h" \
23386 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23387 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23389 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23390 else
23391 rm -f "$ac_file"
23392 mv "$ac_tmp/config.h" "$ac_file" \
23393 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23394 fi
23395 else
23396 $as_echo "/* $configure_input */" \
23397 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23398 || as_fn_error $? "could not create -" "$LINENO" 5
23399 fi
23400 # Compute "$ac_file"'s index in $config_headers.
23401 _am_arg="$ac_file"
23402 _am_stamp_count=1
23403 for _am_header in $config_headers :; do
23404 case $_am_header in
23405 $_am_arg | $_am_arg:* )
23406 break ;;
23407 * )
23408 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23409 esac
23410 done
23411 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23412 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23413 X"$_am_arg" : 'X\(//\)[^/]' \| \
23414 X"$_am_arg" : 'X\(//\)$' \| \
23415 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23416 $as_echo X"$_am_arg" |
23417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23418 s//\1/
23419 q
23420 }
23421 /^X\(\/\/\)[^/].*/{
23422 s//\1/
23423 q
23424 }
23425 /^X\(\/\/\)$/{
23426 s//\1/
23427 q
23428 }
23429 /^X\(\/\).*/{
23430 s//\1/
23431 q
23432 }
23433 s/.*/./; q'`/stamp-h$_am_stamp_count
23434 ;;
23435  
23436 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23437 $as_echo "$as_me: executing $ac_file commands" >&6;}
23438 ;;
23439 esac
23440  
23441  
23442 case $ac_file$ac_mode in
23443 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23444 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23445 # are listed without --file. Let's play safe and only enable the eval
23446 # if we detect the quoting.
23447 case $CONFIG_FILES in
23448 *\'*) eval set x "$CONFIG_FILES" ;;
23449 *) set x $CONFIG_FILES ;;
23450 esac
23451 shift
23452 for mf
23453 do
23454 # Strip MF so we end up with the name of the file.
23455 mf=`echo "$mf" | sed -e 's/:.*$//'`
23456 # Check whether this is an Automake generated Makefile or not.
23457 # We used to match only the files named `Makefile.in', but
23458 # some people rename them; so instead we look at the file content.
23459 # Grep'ing the first line is not enough: some people post-process
23460 # each Makefile.in and add a new line on top of each file to say so.
23461 # Grep'ing the whole file is not good either: AIX grep has a line
23462 # limit of 2048, but all sed's we know have understand at least 4000.
23463 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23464 dirpart=`$as_dirname -- "$mf" ||
23465 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23466 X"$mf" : 'X\(//\)[^/]' \| \
23467 X"$mf" : 'X\(//\)$' \| \
23468 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23469 $as_echo X"$mf" |
23470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23471 s//\1/
23472 q
23473 }
23474 /^X\(\/\/\)[^/].*/{
23475 s//\1/
23476 q
23477 }
23478 /^X\(\/\/\)$/{
23479 s//\1/
23480 q
23481 }
23482 /^X\(\/\).*/{
23483 s//\1/
23484 q
23485 }
23486 s/.*/./; q'`
23487 else
23488 continue
23489 fi
23490 # Extract the definition of DEPDIR, am__include, and am__quote
23491 # from the Makefile without running `make'.
23492 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23493 test -z "$DEPDIR" && continue
23494 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23495 test -z "am__include" && continue
23496 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23497 # When using ansi2knr, U may be empty or an underscore; expand it
23498 U=`sed -n 's/^U = //p' < "$mf"`
23499 # Find all dependency output files, they are included files with
23500 # $(DEPDIR) in their names. We invoke sed twice because it is the
23501 # simplest approach to changing $(DEPDIR) to its actual value in the
23502 # expansion.
23503 for file in `sed -n "
23504 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23505 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23506 # Make sure the directory exists.
23507 test -f "$dirpart/$file" && continue
23508 fdir=`$as_dirname -- "$file" ||
23509 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23510 X"$file" : 'X\(//\)[^/]' \| \
23511 X"$file" : 'X\(//\)$' \| \
23512 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23513 $as_echo X"$file" |
23514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23515 s//\1/
23516 q
23517 }
23518 /^X\(\/\/\)[^/].*/{
23519 s//\1/
23520 q
23521 }
23522 /^X\(\/\/\)$/{
23523 s//\1/
23524 q
23525 }
23526 /^X\(\/\).*/{
23527 s//\1/
23528 q
23529 }
23530 s/.*/./; q'`
23531 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23532 # echo "creating $dirpart/$file"
23533 echo '# dummy' > "$dirpart/$file"
23534 done
23535 done
23536 }
23537 ;;
23538 "libtool":C)
23539  
23540 # See if we are running on zsh, and set the options which allow our
23541 # commands through without removal of \ escapes.
23542 if test -n "${ZSH_VERSION+set}" ; then
23543 setopt NO_GLOB_SUBST
23544 fi
23545  
23546 cfgfile="${ofile}T"
23547 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23548 $RM "$cfgfile"
23549  
23550 cat <<_LT_EOF >> "$cfgfile"
23551 #! $SHELL
23552  
23553 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23554 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23555 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23556 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23557 #
23558 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23559 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
23560 # Inc.
23561 # Written by Gordon Matzigkeit, 1996
23562 #
23563 # This file is part of GNU Libtool.
23564 #
23565 # GNU Libtool is free software; you can redistribute it and/or
23566 # modify it under the terms of the GNU General Public License as
23567 # published by the Free Software Foundation; either version 2 of
23568 # the License, or (at your option) any later version.
23569 #
23570 # As a special exception to the GNU General Public License,
23571 # if you distribute this file as part of a program or library that
23572 # is built using GNU Libtool, you may include this file under the
23573 # same distribution terms that you use for the rest of that program.
23574 #
23575 # GNU Libtool is distributed in the hope that it will be useful,
23576 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23577 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23578 # GNU General Public License for more details.
23579 #
23580 # You should have received a copy of the GNU General Public License
23581 # along with GNU Libtool; see the file COPYING. If not, a copy
23582 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23583 # obtained by writing to the Free Software Foundation, Inc.,
23584 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23585  
23586  
23587 # The names of the tagged configurations supported by this script.
23588 available_tags="RC "
23589  
23590 # ### BEGIN LIBTOOL CONFIG
23591  
23592 # Which release of libtool.m4 was used?
23593 macro_version=$macro_version
23594 macro_revision=$macro_revision
23595  
23596 # Whether or not to build static libraries.
23597 build_old_libs=$enable_static
23598  
23599 # Assembler program.
23600 AS=$lt_AS
23601  
23602 # DLL creation program.
23603 DLLTOOL=$lt_DLLTOOL
23604  
23605 # Object dumper program.
23606 OBJDUMP=$lt_OBJDUMP
23607  
23608 # Whether or not to build shared libraries.
23609 build_libtool_libs=$enable_shared
23610  
23611 # What type of objects to build.
23612 pic_mode=$pic_mode
23613  
23614 # Whether or not to optimize for fast installation.
23615 fast_install=$enable_fast_install
23616  
23617 # Shell to use when invoking shell scripts.
23618 SHELL=$lt_SHELL
23619  
23620 # An echo program that protects backslashes.
23621 ECHO=$lt_ECHO
23622  
23623 # The host system.
23624 host_alias=$host_alias
23625 host=$host
23626 host_os=$host_os
23627  
23628 # The build system.
23629 build_alias=$build_alias
23630 build=$build
23631 build_os=$build_os
23632  
23633 # A sed program that does not truncate output.
23634 SED=$lt_SED
23635  
23636 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23637 Xsed="\$SED -e 1s/^X//"
23638  
23639 # A grep program that handles long lines.
23640 GREP=$lt_GREP
23641  
23642 # An ERE matcher.
23643 EGREP=$lt_EGREP
23644  
23645 # A literal string matcher.
23646 FGREP=$lt_FGREP
23647  
23648 # A BSD- or MS-compatible name lister.
23649 NM=$lt_NM
23650  
23651 # Whether we need soft or hard links.
23652 LN_S=$lt_LN_S
23653  
23654 # What is the maximum length of a command?
23655 max_cmd_len=$max_cmd_len
23656  
23657 # Object file suffix (normally "o").
23658 objext=$ac_objext
23659  
23660 # Executable file suffix (normally "").
23661 exeext=$exeext
23662  
23663 # whether the shell understands "unset".
23664 lt_unset=$lt_unset
23665  
23666 # turn spaces into newlines.
23667 SP2NL=$lt_lt_SP2NL
23668  
23669 # turn newlines into spaces.
23670 NL2SP=$lt_lt_NL2SP
23671  
23672 # convert \$build file names to \$host format.
23673 to_host_file_cmd=$lt_cv_to_host_file_cmd
23674  
23675 # convert \$build files to toolchain format.
23676 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23677  
23678 # Method to check whether dependent libraries are shared objects.
23679 deplibs_check_method=$lt_deplibs_check_method
23680  
23681 # Command to use when deplibs_check_method = "file_magic".
23682 file_magic_cmd=$lt_file_magic_cmd
23683  
23684 # How to find potential files when deplibs_check_method = "file_magic".
23685 file_magic_glob=$lt_file_magic_glob
23686  
23687 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23688 want_nocaseglob=$lt_want_nocaseglob
23689  
23690 # Command to associate shared and link libraries.
23691 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23692  
23693 # The archiver.
23694 AR=$lt_AR
23695  
23696 # Flags to create an archive.
23697 AR_FLAGS=$lt_AR_FLAGS
23698  
23699 # How to feed a file listing to the archiver.
23700 archiver_list_spec=$lt_archiver_list_spec
23701  
23702 # A symbol stripping program.
23703 STRIP=$lt_STRIP
23704  
23705 # Commands used to install an old-style archive.
23706 RANLIB=$lt_RANLIB
23707 old_postinstall_cmds=$lt_old_postinstall_cmds
23708 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23709  
23710 # Whether to use a lock for old archive extraction.
23711 lock_old_archive_extraction=$lock_old_archive_extraction
23712  
23713 # A C compiler.
23714 LTCC=$lt_CC
23715  
23716 # LTCC compiler flags.
23717 LTCFLAGS=$lt_CFLAGS
23718  
23719 # Take the output of nm and produce a listing of raw symbols and C names.
23720 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23721  
23722 # Transform the output of nm in a proper C declaration.
23723 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23724  
23725 # Transform the output of nm in a C name address pair.
23726 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23727  
23728 # Transform the output of nm in a C name address pair when lib prefix is needed.
23729 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23730  
23731 # Specify filename containing input files for \$NM.
23732 nm_file_list_spec=$lt_nm_file_list_spec
23733  
23734 # The root where to search for dependent libraries,and in which our libraries should be installed.
23735 lt_sysroot=$lt_sysroot
23736  
23737 # The name of the directory that contains temporary libtool files.
23738 objdir=$objdir
23739  
23740 # Used to examine libraries when file_magic_cmd begins with "file".
23741 MAGIC_CMD=$MAGIC_CMD
23742  
23743 # Must we lock files when doing compilation?
23744 need_locks=$lt_need_locks
23745  
23746 # Manifest tool.
23747 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23748  
23749 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23750 DSYMUTIL=$lt_DSYMUTIL
23751  
23752 # Tool to change global to local symbols on Mac OS X.
23753 NMEDIT=$lt_NMEDIT
23754  
23755 # Tool to manipulate fat objects and archives on Mac OS X.
23756 LIPO=$lt_LIPO
23757  
23758 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23759 OTOOL=$lt_OTOOL
23760  
23761 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23762 OTOOL64=$lt_OTOOL64
23763  
23764 # Old archive suffix (normally "a").
23765 libext=$libext
23766  
23767 # Shared library suffix (normally ".so").
23768 shrext_cmds=$lt_shrext_cmds
23769  
23770 # The commands to extract the exported symbol list from a shared archive.
23771 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23772  
23773 # Variables whose values should be saved in libtool wrapper scripts and
23774 # restored at link time.
23775 variables_saved_for_relink=$lt_variables_saved_for_relink
23776  
23777 # Do we need the "lib" prefix for modules?
23778 need_lib_prefix=$need_lib_prefix
23779  
23780 # Do we need a version for libraries?
23781 need_version=$need_version
23782  
23783 # Library versioning type.
23784 version_type=$version_type
23785  
23786 # Shared library runtime path variable.
23787 runpath_var=$runpath_var
23788  
23789 # Shared library path variable.
23790 shlibpath_var=$shlibpath_var
23791  
23792 # Is shlibpath searched before the hard-coded library search path?
23793 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23794  
23795 # Format of library name prefix.
23796 libname_spec=$lt_libname_spec
23797  
23798 # List of archive names. First name is the real one, the rest are links.
23799 # The last name is the one that the linker finds with -lNAME
23800 library_names_spec=$lt_library_names_spec
23801  
23802 # The coded name of the library, if different from the real name.
23803 soname_spec=$lt_soname_spec
23804  
23805 # Permission mode override for installation of shared libraries.
23806 install_override_mode=$lt_install_override_mode
23807  
23808 # Command to use after installation of a shared archive.
23809 postinstall_cmds=$lt_postinstall_cmds
23810  
23811 # Command to use after uninstallation of a shared archive.
23812 postuninstall_cmds=$lt_postuninstall_cmds
23813  
23814 # Commands used to finish a libtool library installation in a directory.
23815 finish_cmds=$lt_finish_cmds
23816  
23817 # As "finish_cmds", except a single script fragment to be evaled but
23818 # not shown.
23819 finish_eval=$lt_finish_eval
23820  
23821 # Whether we should hardcode library paths into libraries.
23822 hardcode_into_libs=$hardcode_into_libs
23823  
23824 # Compile-time system search path for libraries.
23825 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23826  
23827 # Run-time system search path for libraries.
23828 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23829  
23830 # Whether dlopen is supported.
23831 dlopen_support=$enable_dlopen
23832  
23833 # Whether dlopen of programs is supported.
23834 dlopen_self=$enable_dlopen_self
23835  
23836 # Whether dlopen of statically linked programs is supported.
23837 dlopen_self_static=$enable_dlopen_self_static
23838  
23839 # Commands to strip libraries.
23840 old_striplib=$lt_old_striplib
23841 striplib=$lt_striplib
23842  
23843  
23844 # The linker used to build libraries.
23845 LD=$lt_LD
23846  
23847 # How to create reloadable object files.
23848 reload_flag=$lt_reload_flag
23849 reload_cmds=$lt_reload_cmds
23850  
23851 # Commands used to build an old-style archive.
23852 old_archive_cmds=$lt_old_archive_cmds
23853  
23854 # A language specific compiler.
23855 CC=$lt_compiler
23856  
23857 # Is the compiler the GNU compiler?
23858 with_gcc=$GCC
23859  
23860 # Compiler flag to turn off builtin functions.
23861 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23862  
23863 # Additional compiler flags for building library objects.
23864 pic_flag=$lt_lt_prog_compiler_pic
23865  
23866 # How to pass a linker flag through the compiler.
23867 wl=$lt_lt_prog_compiler_wl
23868  
23869 # Compiler flag to prevent dynamic linking.
23870 link_static_flag=$lt_lt_prog_compiler_static
23871  
23872 # Does compiler simultaneously support -c and -o options?
23873 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23874  
23875 # Whether or not to add -lc for building shared libraries.
23876 build_libtool_need_lc=$archive_cmds_need_lc
23877  
23878 # Whether or not to disallow shared libs when runtime libs are static.
23879 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23880  
23881 # Compiler flag to allow reflexive dlopens.
23882 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23883  
23884 # Compiler flag to generate shared objects directly from archives.
23885 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23886  
23887 # Whether the compiler copes with passing no objects directly.
23888 compiler_needs_object=$lt_compiler_needs_object
23889  
23890 # Create an old-style archive from a shared archive.
23891 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23892  
23893 # Create a temporary old-style archive to link instead of a shared archive.
23894 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23895  
23896 # Commands used to build a shared archive.
23897 archive_cmds=$lt_archive_cmds
23898 archive_expsym_cmds=$lt_archive_expsym_cmds
23899  
23900 # Commands used to build a loadable module if different from building
23901 # a shared archive.
23902 module_cmds=$lt_module_cmds
23903 module_expsym_cmds=$lt_module_expsym_cmds
23904  
23905 # Whether we are building with GNU ld or not.
23906 with_gnu_ld=$lt_with_gnu_ld
23907  
23908 # Flag that allows shared libraries with undefined symbols to be built.
23909 allow_undefined_flag=$lt_allow_undefined_flag
23910  
23911 # Flag that enforces no undefined symbols.
23912 no_undefined_flag=$lt_no_undefined_flag
23913  
23914 # Flag to hardcode \$libdir into a binary during linking.
23915 # This must work even if \$libdir does not exist
23916 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23917  
23918 # If ld is used when linking, flag to hardcode \$libdir into a binary
23919 # during linking. This must work even if \$libdir does not exist.
23920 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23921  
23922 # Whether we need a single "-rpath" flag with a separated argument.
23923 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23924  
23925 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23926 # DIR into the resulting binary.
23927 hardcode_direct=$hardcode_direct
23928  
23929 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23930 # DIR into the resulting binary and the resulting library dependency is
23931 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23932 # library is relocated.
23933 hardcode_direct_absolute=$hardcode_direct_absolute
23934  
23935 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23936 # into the resulting binary.
23937 hardcode_minus_L=$hardcode_minus_L
23938  
23939 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23940 # into the resulting binary.
23941 hardcode_shlibpath_var=$hardcode_shlibpath_var
23942  
23943 # Set to "yes" if building a shared library automatically hardcodes DIR
23944 # into the library and all subsequent libraries and executables linked
23945 # against it.
23946 hardcode_automatic=$hardcode_automatic
23947  
23948 # Set to yes if linker adds runtime paths of dependent libraries
23949 # to runtime path list.
23950 inherit_rpath=$inherit_rpath
23951  
23952 # Whether libtool must link a program against all its dependency libraries.
23953 link_all_deplibs=$link_all_deplibs
23954  
23955 # Set to "yes" if exported symbols are required.
23956 always_export_symbols=$always_export_symbols
23957  
23958 # The commands to list exported symbols.
23959 export_symbols_cmds=$lt_export_symbols_cmds
23960  
23961 # Symbols that should not be listed in the preloaded symbols.
23962 exclude_expsyms=$lt_exclude_expsyms
23963  
23964 # Symbols that must always be exported.
23965 include_expsyms=$lt_include_expsyms
23966  
23967 # Commands necessary for linking programs (against libraries) with templates.
23968 prelink_cmds=$lt_prelink_cmds
23969  
23970 # Commands necessary for finishing linking programs.
23971 postlink_cmds=$lt_postlink_cmds
23972  
23973 # Specify filename containing input files.
23974 file_list_spec=$lt_file_list_spec
23975  
23976 # How to hardcode a shared library path into an executable.
23977 hardcode_action=$hardcode_action
23978  
23979 # ### END LIBTOOL CONFIG
23980  
23981 _LT_EOF
23982  
23983 case $host_os in
23984 aix3*)
23985 cat <<\_LT_EOF >> "$cfgfile"
23986 # AIX sometimes has problems with the GCC collect2 program. For some
23987 # reason, if we set the COLLECT_NAMES environment variable, the problems
23988 # vanish in a puff of smoke.
23989 if test "X${COLLECT_NAMES+set}" != Xset; then
23990 COLLECT_NAMES=
23991 export COLLECT_NAMES
23992 fi
23993 _LT_EOF
23994 ;;
23995 esac
23996  
23997  
23998 ltmain="$ac_aux_dir/ltmain.sh"
23999  
24000  
24001 # We use sed instead of cat because bash on DJGPP gets confused if
24002 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24003 # text mode, it properly converts lines to CR/LF. This bash problem
24004 # is reportedly fixed, but why not run on old versions too?
24005 sed '$q' "$ltmain" >> "$cfgfile" \
24006 || (rm -f "$cfgfile"; exit 1)
24007  
24008 if test x"$xsi_shell" = xyes; then
24009 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
24010 func_dirname ()\
24011 {\
24012 \ case ${1} in\
24013 \ */*) func_dirname_result="${1%/*}${2}" ;;\
24014 \ * ) func_dirname_result="${3}" ;;\
24015 \ esac\
24016 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
24017 && mv -f "$cfgfile.tmp" "$cfgfile" \
24018 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24019 test 0 -eq $? || _lt_function_replace_fail=:
24020  
24021  
24022 sed -e '/^func_basename ()$/,/^} # func_basename /c\
24023 func_basename ()\
24024 {\
24025 \ func_basename_result="${1##*/}"\
24026 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
24027 && mv -f "$cfgfile.tmp" "$cfgfile" \
24028 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24029 test 0 -eq $? || _lt_function_replace_fail=:
24030  
24031  
24032 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
24033 func_dirname_and_basename ()\
24034 {\
24035 \ case ${1} in\
24036 \ */*) func_dirname_result="${1%/*}${2}" ;;\
24037 \ * ) func_dirname_result="${3}" ;;\
24038 \ esac\
24039 \ func_basename_result="${1##*/}"\
24040 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
24041 && mv -f "$cfgfile.tmp" "$cfgfile" \
24042 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24043 test 0 -eq $? || _lt_function_replace_fail=:
24044  
24045  
24046 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
24047 func_stripname ()\
24048 {\
24049 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
24050 \ # positional parameters, so assign one to ordinary parameter first.\
24051 \ func_stripname_result=${3}\
24052 \ func_stripname_result=${func_stripname_result#"${1}"}\
24053 \ func_stripname_result=${func_stripname_result%"${2}"}\
24054 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
24055 && mv -f "$cfgfile.tmp" "$cfgfile" \
24056 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24057 test 0 -eq $? || _lt_function_replace_fail=:
24058  
24059  
24060 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
24061 func_split_long_opt ()\
24062 {\
24063 \ func_split_long_opt_name=${1%%=*}\
24064 \ func_split_long_opt_arg=${1#*=}\
24065 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
24066 && mv -f "$cfgfile.tmp" "$cfgfile" \
24067 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24068 test 0 -eq $? || _lt_function_replace_fail=:
24069  
24070  
24071 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
24072 func_split_short_opt ()\
24073 {\
24074 \ func_split_short_opt_arg=${1#??}\
24075 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
24076 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
24077 && mv -f "$cfgfile.tmp" "$cfgfile" \
24078 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24079 test 0 -eq $? || _lt_function_replace_fail=:
24080  
24081  
24082 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
24083 func_lo2o ()\
24084 {\
24085 \ case ${1} in\
24086 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
24087 \ *) func_lo2o_result=${1} ;;\
24088 \ esac\
24089 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
24090 && mv -f "$cfgfile.tmp" "$cfgfile" \
24091 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24092 test 0 -eq $? || _lt_function_replace_fail=:
24093  
24094  
24095 sed -e '/^func_xform ()$/,/^} # func_xform /c\
24096 func_xform ()\
24097 {\
24098 func_xform_result=${1%.*}.lo\
24099 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
24100 && mv -f "$cfgfile.tmp" "$cfgfile" \
24101 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24102 test 0 -eq $? || _lt_function_replace_fail=:
24103  
24104  
24105 sed -e '/^func_arith ()$/,/^} # func_arith /c\
24106 func_arith ()\
24107 {\
24108 func_arith_result=$(( $* ))\
24109 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
24110 && mv -f "$cfgfile.tmp" "$cfgfile" \
24111 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24112 test 0 -eq $? || _lt_function_replace_fail=:
24113  
24114  
24115 sed -e '/^func_len ()$/,/^} # func_len /c\
24116 func_len ()\
24117 {\
24118 func_len_result=${#1}\
24119 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
24120 && mv -f "$cfgfile.tmp" "$cfgfile" \
24121 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24122 test 0 -eq $? || _lt_function_replace_fail=:
24123  
24124 fi
24125  
24126 if test x"$lt_shell_append" = xyes; then
24127 sed -e '/^func_append ()$/,/^} # func_append /c\
24128 func_append ()\
24129 {\
24130 eval "${1}+=\\${2}"\
24131 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
24132 && mv -f "$cfgfile.tmp" "$cfgfile" \
24133 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24134 test 0 -eq $? || _lt_function_replace_fail=:
24135  
24136  
24137 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
24138 func_append_quoted ()\
24139 {\
24140 \ func_quote_for_eval "${2}"\
24141 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
24142 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
24143 && mv -f "$cfgfile.tmp" "$cfgfile" \
24144 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24145 test 0 -eq $? || _lt_function_replace_fail=:
24146  
24147  
24148 # Save a `func_append' function call where possible by direct use of '+='
24149 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
24150 && mv -f "$cfgfile.tmp" "$cfgfile" \
24151 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24152 test 0 -eq $? || _lt_function_replace_fail=:
24153 else
24154 # Save a `func_append' function call even when '+=' is not available
24155 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
24156 && mv -f "$cfgfile.tmp" "$cfgfile" \
24157 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24158 test 0 -eq $? || _lt_function_replace_fail=:
24159 fi
24160  
24161 if test x"$_lt_function_replace_fail" = x":"; then
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
24163 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
24164 fi
24165  
24166  
24167 mv -f "$cfgfile" "$ofile" ||
24168 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24169 chmod +x "$ofile"
24170  
24171  
24172 cat <<_LT_EOF >> "$ofile"
24173  
24174 # ### BEGIN LIBTOOL TAG CONFIG: RC
24175  
24176 # The linker used to build libraries.
24177 LD=$lt_LD_RC
24178  
24179 # How to create reloadable object files.
24180 reload_flag=$lt_reload_flag_RC
24181 reload_cmds=$lt_reload_cmds_RC
24182  
24183 # Commands used to build an old-style archive.
24184 old_archive_cmds=$lt_old_archive_cmds_RC
24185  
24186 # A language specific compiler.
24187 CC=$lt_compiler_RC
24188  
24189 # Is the compiler the GNU compiler?
24190 with_gcc=$GCC_RC
24191  
24192 # Compiler flag to turn off builtin functions.
24193 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24194  
24195 # Additional compiler flags for building library objects.
24196 pic_flag=$lt_lt_prog_compiler_pic_RC
24197  
24198 # How to pass a linker flag through the compiler.
24199 wl=$lt_lt_prog_compiler_wl_RC
24200  
24201 # Compiler flag to prevent dynamic linking.
24202 link_static_flag=$lt_lt_prog_compiler_static_RC
24203  
24204 # Does compiler simultaneously support -c and -o options?
24205 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24206  
24207 # Whether or not to add -lc for building shared libraries.
24208 build_libtool_need_lc=$archive_cmds_need_lc_RC
24209  
24210 # Whether or not to disallow shared libs when runtime libs are static.
24211 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24212  
24213 # Compiler flag to allow reflexive dlopens.
24214 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24215  
24216 # Compiler flag to generate shared objects directly from archives.
24217 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24218  
24219 # Whether the compiler copes with passing no objects directly.
24220 compiler_needs_object=$lt_compiler_needs_object_RC
24221  
24222 # Create an old-style archive from a shared archive.
24223 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24224  
24225 # Create a temporary old-style archive to link instead of a shared archive.
24226 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24227  
24228 # Commands used to build a shared archive.
24229 archive_cmds=$lt_archive_cmds_RC
24230 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24231  
24232 # Commands used to build a loadable module if different from building
24233 # a shared archive.
24234 module_cmds=$lt_module_cmds_RC
24235 module_expsym_cmds=$lt_module_expsym_cmds_RC
24236  
24237 # Whether we are building with GNU ld or not.
24238 with_gnu_ld=$lt_with_gnu_ld_RC
24239  
24240 # Flag that allows shared libraries with undefined symbols to be built.
24241 allow_undefined_flag=$lt_allow_undefined_flag_RC
24242  
24243 # Flag that enforces no undefined symbols.
24244 no_undefined_flag=$lt_no_undefined_flag_RC
24245  
24246 # Flag to hardcode \$libdir into a binary during linking.
24247 # This must work even if \$libdir does not exist
24248 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24249  
24250 # If ld is used when linking, flag to hardcode \$libdir into a binary
24251 # during linking. This must work even if \$libdir does not exist.
24252 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24253  
24254 # Whether we need a single "-rpath" flag with a separated argument.
24255 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24256  
24257 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24258 # DIR into the resulting binary.
24259 hardcode_direct=$hardcode_direct_RC
24260  
24261 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24262 # DIR into the resulting binary and the resulting library dependency is
24263 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24264 # library is relocated.
24265 hardcode_direct_absolute=$hardcode_direct_absolute_RC
24266  
24267 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24268 # into the resulting binary.
24269 hardcode_minus_L=$hardcode_minus_L_RC
24270  
24271 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24272 # into the resulting binary.
24273 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24274  
24275 # Set to "yes" if building a shared library automatically hardcodes DIR
24276 # into the library and all subsequent libraries and executables linked
24277 # against it.
24278 hardcode_automatic=$hardcode_automatic_RC
24279  
24280 # Set to yes if linker adds runtime paths of dependent libraries
24281 # to runtime path list.
24282 inherit_rpath=$inherit_rpath_RC
24283  
24284 # Whether libtool must link a program against all its dependency libraries.
24285 link_all_deplibs=$link_all_deplibs_RC
24286  
24287 # Set to "yes" if exported symbols are required.
24288 always_export_symbols=$always_export_symbols_RC
24289  
24290 # The commands to list exported symbols.
24291 export_symbols_cmds=$lt_export_symbols_cmds_RC
24292  
24293 # Symbols that should not be listed in the preloaded symbols.
24294 exclude_expsyms=$lt_exclude_expsyms_RC
24295  
24296 # Symbols that must always be exported.
24297 include_expsyms=$lt_include_expsyms_RC
24298  
24299 # Commands necessary for linking programs (against libraries) with templates.
24300 prelink_cmds=$lt_prelink_cmds_RC
24301  
24302 # Commands necessary for finishing linking programs.
24303 postlink_cmds=$lt_postlink_cmds_RC
24304  
24305 # Specify filename containing input files.
24306 file_list_spec=$lt_file_list_spec_RC
24307  
24308 # How to hardcode a shared library path into an executable.
24309 hardcode_action=$hardcode_action_RC
24310  
24311 # ### END LIBTOOL TAG CONFIG: RC
24312 _LT_EOF
24313  
24314 ;;
24315 "po-directories":C)
24316 for ac_file in $CONFIG_FILES; do
24317 # Support "outfile[:infile[:infile...]]"
24318 case "$ac_file" in
24319 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24320 esac
24321 # PO directories have a Makefile.in generated from Makefile.in.in.
24322 case "$ac_file" in */Makefile.in)
24323 # Adjust a relative srcdir.
24324 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24325 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24326 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24327 # In autoconf-2.13 it is called $ac_given_srcdir.
24328 # In autoconf-2.50 it is called $srcdir.
24329 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24330 case "$ac_given_srcdir" in
24331 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24332 /*) top_srcdir="$ac_given_srcdir" ;;
24333 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24334 esac
24335 # Treat a directory as a PO directory if and only if it has a
24336 # POTFILES.in file. This allows packages to have multiple PO
24337 # directories under different names or in different locations.
24338 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24339 rm -f "$ac_dir/POTFILES"
24340 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24341 gt_tab=`printf '\t'`
24342 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24343 POMAKEFILEDEPS="POTFILES.in"
24344 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24345 # on $ac_dir but don't depend on user-specified configuration
24346 # parameters.
24347 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24348 # The LINGUAS file contains the set of available languages.
24349 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24350 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24351 fi
24352 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24353 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24354 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24355 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24356 else
24357 # The set of available languages was given in configure.in.
24358 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24359 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24360 fi
24361 # Compute POFILES
24362 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24363 # Compute UPDATEPOFILES
24364 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24365 # Compute DUMMYPOFILES
24366 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24367 # Compute GMOFILES
24368 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24369 case "$ac_given_srcdir" in
24370 .) srcdirpre= ;;
24371 *) srcdirpre='$(srcdir)/' ;;
24372 esac
24373 POFILES=
24374 UPDATEPOFILES=
24375 DUMMYPOFILES=
24376 GMOFILES=
24377 for lang in $ALL_LINGUAS; do
24378 POFILES="$POFILES $srcdirpre$lang.po"
24379 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24380 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24381 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24382 done
24383 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24384 # environment variable.
24385 INST_LINGUAS=
24386 if test -n "$ALL_LINGUAS"; then
24387 for presentlang in $ALL_LINGUAS; do
24388 useit=no
24389 if test "%UNSET%" != "$LINGUAS"; then
24390 desiredlanguages="$LINGUAS"
24391 else
24392 desiredlanguages="$ALL_LINGUAS"
24393 fi
24394 for desiredlang in $desiredlanguages; do
24395 # Use the presentlang catalog if desiredlang is
24396 # a. equal to presentlang, or
24397 # b. a variant of presentlang (because in this case,
24398 # presentlang can be used as a fallback for messages
24399 # which are not translated in the desiredlang catalog).
24400 case "$desiredlang" in
24401 "$presentlang"*) useit=yes;;
24402 esac
24403 done
24404 if test $useit = yes; then
24405 INST_LINGUAS="$INST_LINGUAS $presentlang"
24406 fi
24407 done
24408 fi
24409 CATALOGS=
24410 if test -n "$INST_LINGUAS"; then
24411 for lang in $INST_LINGUAS; do
24412 CATALOGS="$CATALOGS $lang.gmo"
24413 done
24414 fi
24415 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24416 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
24417 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24418 if test -f "$f"; then
24419 case "$f" in
24420 *.orig | *.bak | *~) ;;
24421 *) cat "$f" >> "$ac_dir/Makefile" ;;
24422 esac
24423 fi
24424 done
24425 fi
24426 ;;
24427 esac
24428 done ;;
24429  
24430 esac
24431 done # for ac_tag
24432  
24433  
24434 as_fn_exit 0
24435 _ACEOF
24436 ac_clean_files=$ac_clean_files_save
24437  
24438 test $ac_write_fail = 0 ||
24439 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24440  
24441  
24442 # configure is writing to config.log, and then calls config.status.
24443 # config.status does its own redirection, appending to config.log.
24444 # Unfortunately, on DOS this fails, as config.log is still kept open
24445 # by configure, so config.status won't be able to write to it; its
24446 # output is simply discarded. So we exec the FD to /dev/null,
24447 # effectively closing config.log, so it can be properly (re)opened and
24448 # appended to by config.status. When coming back to configure, we
24449 # need to make the FD available again.
24450 if test "$no_create" != yes; then
24451 ac_cs_success=:
24452 ac_config_status_args=
24453 test "$silent" = yes &&
24454 ac_config_status_args="$ac_config_status_args --quiet"
24455 exec 5>/dev/null
24456 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24457 exec 5>>config.log
24458 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24459 # would make configure fail if this is the last instruction.
24460 $ac_cs_success || as_fn_exit 1
24461 fi
24462  
24463 #
24464 # CONFIG_SUBDIRS section.
24465 #
24466 if test "$no_recursion" != yes; then
24467  
24468 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
24469 # so they do not pile up.
24470 ac_sub_configure_args=
24471 ac_prev=
24472 eval "set x $ac_configure_args"
24473 shift
24474 for ac_arg
24475 do
24476 if test -n "$ac_prev"; then
24477 ac_prev=
24478 continue
24479 fi
24480 case $ac_arg in
24481 -cache-file | --cache-file | --cache-fil | --cache-fi \
24482 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24483 ac_prev=cache_file ;;
24484 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24485 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24486 | --c=*)
24487 ;;
24488 --config-cache | -C)
24489 ;;
24490 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24491 ac_prev=srcdir ;;
24492 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24493 ;;
24494 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24495 ac_prev=prefix ;;
24496 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24497 ;;
24498 --disable-option-checking)
24499 ;;
24500 *)
24501 case $ac_arg in
24502 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24503 esac
24504 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
24505 esac
24506 done
24507  
24508 # Always prepend --prefix to ensure using the same prefix
24509 # in subdir configurations.
24510 ac_arg="--prefix=$prefix"
24511 case $ac_arg in
24512 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24513 esac
24514 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
24515  
24516 # Pass --silent
24517 if test "$silent" = yes; then
24518 ac_sub_configure_args="--silent $ac_sub_configure_args"
24519 fi
24520  
24521 # Always prepend --disable-option-checking to silence warnings, since
24522 # different subdirs can have different --enable and --with options.
24523 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
24524  
24525 ac_popdir=`pwd`
24526 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24527  
24528 # Do not complain, so a configure script can configure whichever
24529 # parts of a large source tree are present.
24530 test -d "$srcdir/$ac_dir" || continue
24531  
24532 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24533 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
24534 $as_echo "$ac_msg" >&6
24535 as_dir="$ac_dir"; as_fn_mkdir_p
24536 ac_builddir=.
24537  
24538 case "$ac_dir" in
24539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24540 *)
24541 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24542 # A ".." for each directory in $ac_dir_suffix.
24543 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24544 case $ac_top_builddir_sub in
24545 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24546 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24547 esac ;;
24548 esac
24549 ac_abs_top_builddir=$ac_pwd
24550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24551 # for backward compatibility:
24552 ac_top_builddir=$ac_top_build_prefix
24553  
24554 case $srcdir in
24555 .) # We are building in place.
24556 ac_srcdir=.
24557 ac_top_srcdir=$ac_top_builddir_sub
24558 ac_abs_top_srcdir=$ac_pwd ;;
24559 [\\/]* | ?:[\\/]* ) # Absolute name.
24560 ac_srcdir=$srcdir$ac_dir_suffix;
24561 ac_top_srcdir=$srcdir
24562 ac_abs_top_srcdir=$srcdir ;;
24563 *) # Relative name.
24564 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24565 ac_top_srcdir=$ac_top_build_prefix$srcdir
24566 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24567 esac
24568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24569  
24570  
24571 cd "$ac_dir"
24572  
24573 # Check for guested configure; otherwise get Cygnus style configure.
24574 if test -f "$ac_srcdir/configure.gnu"; then
24575 ac_sub_configure=$ac_srcdir/configure.gnu
24576 elif test -f "$ac_srcdir/configure"; then
24577 ac_sub_configure=$ac_srcdir/configure
24578 elif test -f "$ac_srcdir/configure.in"; then
24579 # This should be Cygnus configure.
24580 ac_sub_configure=$ac_aux_dir/configure
24581 else
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
24583 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24584 ac_sub_configure=
24585 fi
24586  
24587 # The recursion is here.
24588 if test -n "$ac_sub_configure"; then
24589 # Make the cache file name correct relative to the subdirectory.
24590 case $cache_file in
24591 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24592 *) # Relative name.
24593 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24594 esac
24595  
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24597 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24598 # The eval makes quoting arguments work.
24599 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24600 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24601 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
24602 fi
24603  
24604 cd "$ac_popdir"
24605 done
24606 fi
24607 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24609 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24610 fi
24611