248813895fd29c396024e00e48f305012308381b
[platform/upstream/libunistring.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # 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 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254   { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263   return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366   as_status=$?; test $as_status -eq 0 && as_status=1
367   if test "$3"; then
368     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370   fi
371   $as_echo "$as_me: error: $1" >&2
372   as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
461 *)
462   ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in #(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535   # Remove one level of quotation (which was required for Make).
536   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537   ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542   # Discard the --no-reexec flag, and continue.
543   shift
544 elif test "X$1" = X--fallback-echo; then
545   # Avoid inline document here, it may be left over
546   :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548   # Yippee, $ECHO works!
549   :
550 else
551   # Restart under the correct shell.
552   exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556   # used as fallback echo
557   shift
558   cat <<_LT_EOF
559 $*
560 _LT_EOF
561   exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569   if test "X${echo_test_string+set}" != Xset; then
570     # find a string as large as possible, as long as the shell can cope with it
571     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575       then
576         break
577       fi
578     done
579   fi
580
581   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583      test "X$echo_testing_string" = "X$echo_test_string"; then
584     :
585   else
586     # The Solaris, AIX, and Digital Unix default echo programs unquote
587     # backslashes.  This makes it impossible to quote backslashes using
588     #   echo "$something" | sed 's/\\/\\\\/g'
589     #
590     # So, first we look for a working echo in the user's PATH.
591
592     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593     for dir in $PATH /usr/ucb; do
594       IFS="$lt_save_ifs"
595       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598          test "X$echo_testing_string" = "X$echo_test_string"; then
599         ECHO="$dir/echo"
600         break
601       fi
602     done
603     IFS="$lt_save_ifs"
604
605     if test "X$ECHO" = Xecho; then
606       # We didn't find a better echo, so look for alternatives.
607       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609          test "X$echo_testing_string" = "X$echo_test_string"; then
610         # This shell has a builtin print -r that does the trick.
611         ECHO='print -r'
612       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613            test "X$CONFIG_SHELL" != X/bin/ksh; then
614         # If we have ksh, try running configure again with it.
615         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616         export ORIGINAL_CONFIG_SHELL
617         CONFIG_SHELL=/bin/ksh
618         export CONFIG_SHELL
619         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620       else
621         # Try using printf.
622         ECHO='printf %s\n'
623         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625            test "X$echo_testing_string" = "X$echo_test_string"; then
626           # Cool, printf works
627           :
628         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629              test "X$echo_testing_string" = 'X\t' &&
630              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631              test "X$echo_testing_string" = "X$echo_test_string"; then
632           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633           export CONFIG_SHELL
634           SHELL="$CONFIG_SHELL"
635           export SHELL
636           ECHO="$CONFIG_SHELL $0 --fallback-echo"
637         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638              test "X$echo_testing_string" = 'X\t' &&
639              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640              test "X$echo_testing_string" = "X$echo_test_string"; then
641           ECHO="$CONFIG_SHELL $0 --fallback-echo"
642         else
643           # maybe with a smaller string...
644           prev=:
645
646           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648             then
649               break
650             fi
651             prev="$cmd"
652           done
653
654           if test "$prev" != 'sed 50q "$0"'; then
655             echo_test_string=`eval $prev`
656             export echo_test_string
657             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658           else
659             # Oops.  We lost completely, so just stick with echo.
660             ECHO=echo
661           fi
662         fi
663       fi
664     fi
665   fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME=
700 PACKAGE_TARNAME=
701 PACKAGE_VERSION=
702 PACKAGE_STRING=
703 PACKAGE_BUGREPORT=
704 PACKAGE_URL=
705
706 ac_unique_file="lib/unistring/version.in.h"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 #  include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 #  include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 gl_use_threads_default=
744 ac_header_list=
745 ac_func_list=
746 ac_subst_vars='gltests_LTLIBOBJS
747 gltests_LIBOBJS
748 gl_LTLIBOBJS
749 gl_LIBOBJS
750 am__EXEEXT_FALSE
751 am__EXEEXT_TRUE
752 LTLIBOBJS
753 LIBOBJS
754 PERL
755 DVIPS
756 TEXI2DVI
757 HEXVERSION
758 HAVE_GLOBAL_SYMBOL_PIPE
759 GLOBAL_SYMBOL_PIPE
760 NAMESPACING
761 DLL_VARIABLE
762 WOE32DLL_FALSE
763 WOE32DLL_TRUE
764 LIBTESTS_LIBDEPS
765 YIELD_LIB
766 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
767 NEXT_LOCALE_H
768 HAVE_XLOCALE_H
769 REPLACE_DUPLOCALE
770 HAVE_DUPLOCALE
771 GNULIB_DUPLOCALE
772 LTLIBINTL
773 LIBINTL
774 LOCALE_TR_UTF8
775 LOCALE_FR
776 gltests_WITNESS
777 REPLACE_ISWCNTRL
778 HAVE_WCTYPE_H
779 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
780 NEXT_WCTYPE_H
781 HAVE_ISWBLANK
782 HAVE_ISWCNTRL
783 HAVE_WINT_T
784 HAVE_WCHAR_H
785 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
786 NEXT_WCHAR_H
787 HAVE_UNISTD_H
788 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
789 NEXT_UNISTD_H
790 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
791 UNISTD_H_HAVE_WINSOCK2_H
792 REPLACE_WRITE
793 REPLACE_USLEEP
794 REPLACE_UNLINKAT
795 REPLACE_UNLINK
796 REPLACE_TTYNAME_R
797 REPLACE_SYMLINK
798 REPLACE_SLEEP
799 REPLACE_RMDIR
800 REPLACE_READLINK
801 REPLACE_PREAD
802 REPLACE_LSEEK
803 REPLACE_LINKAT
804 REPLACE_LINK
805 REPLACE_LCHOWN
806 REPLACE_GETPAGESIZE
807 REPLACE_GETGROUPS
808 REPLACE_GETCWD
809 REPLACE_FCHOWNAT
810 REPLACE_DUP2
811 REPLACE_DUP
812 REPLACE_CLOSE
813 REPLACE_CHOWN
814 HAVE_SYS_PARAM_H
815 HAVE_OS_H
816 HAVE_DECL_GETUSERSHELL
817 HAVE_DECL_GETPAGESIZE
818 HAVE_DECL_GETLOGIN_R
819 HAVE_DECL_ENVIRON
820 HAVE_USLEEP
821 HAVE_UNLINKAT
822 HAVE_TTYNAME_R
823 HAVE_SYMLINKAT
824 HAVE_SYMLINK
825 HAVE_SLEEP
826 HAVE_READLINKAT
827 HAVE_READLINK
828 HAVE_PREAD
829 HAVE_PIPE2
830 HAVE_LINKAT
831 HAVE_LINK
832 HAVE_LCHOWN
833 HAVE_GETPAGESIZE
834 HAVE_GETLOGIN
835 HAVE_GETHOSTNAME
836 HAVE_GETGROUPS
837 HAVE_GETDTABLESIZE
838 HAVE_GETDOMAINNAME
839 HAVE_FTRUNCATE
840 HAVE_FSYNC
841 HAVE_FCHOWNAT
842 HAVE_FCHDIR
843 HAVE_FACCESSAT
844 HAVE_EUIDACCESS
845 HAVE_DUP3
846 HAVE_DUP2
847 HAVE_CHOWN
848 GNULIB_WRITE
849 GNULIB_USLEEP
850 GNULIB_UNLINKAT
851 GNULIB_UNLINK
852 GNULIB_UNISTD_H_SIGPIPE
853 GNULIB_UNISTD_H_GETOPT
854 GNULIB_TTYNAME_R
855 GNULIB_SYMLINKAT
856 GNULIB_SYMLINK
857 GNULIB_SLEEP
858 GNULIB_RMDIR
859 GNULIB_READLINKAT
860 GNULIB_READLINK
861 GNULIB_PREAD
862 GNULIB_PIPE2
863 GNULIB_LSEEK
864 GNULIB_LINKAT
865 GNULIB_LINK
866 GNULIB_LCHOWN
867 GNULIB_GETUSERSHELL
868 GNULIB_GETPAGESIZE
869 GNULIB_GETLOGIN_R
870 GNULIB_GETLOGIN
871 GNULIB_GETHOSTNAME
872 GNULIB_GETGROUPS
873 GNULIB_GETDTABLESIZE
874 GNULIB_GETDOMAINNAME
875 GNULIB_GETCWD
876 GNULIB_FTRUNCATE
877 GNULIB_FSYNC
878 GNULIB_FCHOWNAT
879 GNULIB_FCHDIR
880 GNULIB_FACCESSAT
881 GNULIB_EUIDACCESS
882 GNULIB_ENVIRON
883 GNULIB_DUP3
884 GNULIB_DUP2
885 GNULIB_CLOSE
886 GNULIB_CHOWN
887 NEXT_AS_FIRST_DIRECTIVE_STRING_H
888 NEXT_STRING_H
889 HAVE_RANDOM_H
890 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
891 NEXT_STDLIB_H
892 STDINT_H
893 WINT_T_SUFFIX
894 WCHAR_T_SUFFIX
895 SIG_ATOMIC_T_SUFFIX
896 SIZE_T_SUFFIX
897 PTRDIFF_T_SUFFIX
898 HAVE_SIGNED_WINT_T
899 HAVE_SIGNED_WCHAR_T
900 HAVE_SIGNED_SIG_ATOMIC_T
901 BITSIZEOF_WINT_T
902 BITSIZEOF_WCHAR_T
903 BITSIZEOF_SIG_ATOMIC_T
904 BITSIZEOF_SIZE_T
905 BITSIZEOF_PTRDIFF_T
906 HAVE_SYS_BITYPES_H
907 HAVE_SYS_INTTYPES_H
908 HAVE_STDINT_H
909 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
910 NEXT_STDINT_H
911 HAVE_SYS_TYPES_H
912 HAVE_INTTYPES_H
913 HAVE_UNSIGNED_LONG_LONG_INT
914 HAVE_LONG_LONG_INT
915 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
916 NEXT_STDDEF_H
917 STDDEF_H
918 HAVE_WCHAR_T
919 REPLACE_NULL
920 HAVE__BOOL
921 STDBOOL_H
922 RELOCATABLE
923 APPLE_UNIVERSAL_BUILD
924 UNDEFINE_STRTOK_R
925 REPLACE_STRTOK_R
926 REPLACE_STRSIGNAL
927 REPLACE_STRNLEN
928 REPLACE_STRNDUP
929 REPLACE_STRNCAT
930 REPLACE_STRERROR
931 REPLACE_STRCASESTR
932 REPLACE_STRSTR
933 REPLACE_STRDUP
934 REPLACE_STPNCPY
935 REPLACE_MEMMEM
936 REPLACE_MEMCHR
937 HAVE_STRVERSCMP
938 HAVE_DECL_STRSIGNAL
939 HAVE_DECL_STRTOK_R
940 HAVE_STRCASESTR
941 HAVE_STRSEP
942 HAVE_STRPBRK
943 HAVE_DECL_STRNLEN
944 HAVE_DECL_STRNDUP
945 HAVE_DECL_STRDUP
946 HAVE_STRCHRNUL
947 HAVE_STPNCPY
948 HAVE_STPCPY
949 HAVE_RAWMEMCHR
950 HAVE_DECL_MEMRCHR
951 HAVE_MEMPCPY
952 HAVE_DECL_MEMMEM
953 HAVE_MEMCHR
954 HAVE_MBSLEN
955 GNULIB_STRVERSCMP
956 GNULIB_STRSIGNAL
957 GNULIB_STRERROR
958 GNULIB_MBSTOK_R
959 GNULIB_MBSSEP
960 GNULIB_MBSSPN
961 GNULIB_MBSPBRK
962 GNULIB_MBSCSPN
963 GNULIB_MBSCASESTR
964 GNULIB_MBSPCASECMP
965 GNULIB_MBSNCASECMP
966 GNULIB_MBSCASECMP
967 GNULIB_MBSSTR
968 GNULIB_MBSRCHR
969 GNULIB_MBSCHR
970 GNULIB_MBSNLEN
971 GNULIB_MBSLEN
972 GNULIB_STRTOK_R
973 GNULIB_STRCASESTR
974 GNULIB_STRSTR
975 GNULIB_STRSEP
976 GNULIB_STRPBRK
977 GNULIB_STRNLEN
978 GNULIB_STRNDUP
979 GNULIB_STRNCAT
980 GNULIB_STRDUP
981 GNULIB_STRCHRNUL
982 GNULIB_STPNCPY
983 GNULIB_STPCPY
984 GNULIB_RAWMEMCHR
985 GNULIB_MEMRCHR
986 GNULIB_MEMPCPY
987 GNULIB_MEMMEM
988 GNULIB_MEMCHR
989 LOCALE_FR_UTF8
990 LOCALE_ZH_CN
991 LOCALE_JA
992 REPLACE_WCWIDTH
993 REPLACE_WCSNRTOMBS
994 REPLACE_WCSRTOMBS
995 REPLACE_WCRTOMB
996 REPLACE_MBSNRTOWCS
997 REPLACE_MBSRTOWCS
998 REPLACE_MBRLEN
999 REPLACE_MBRTOWC
1000 REPLACE_MBSINIT
1001 REPLACE_WCTOB
1002 REPLACE_BTOWC
1003 REPLACE_MBSTATE_T
1004 HAVE_DECL_WCWIDTH
1005 HAVE_DECL_WCTOB
1006 HAVE_WCSNRTOMBS
1007 HAVE_WCSRTOMBS
1008 HAVE_WCRTOMB
1009 HAVE_MBSNRTOWCS
1010 HAVE_MBSRTOWCS
1011 HAVE_MBRLEN
1012 HAVE_MBRTOWC
1013 HAVE_MBSINIT
1014 HAVE_BTOWC
1015 GNULIB_WCWIDTH
1016 GNULIB_WCSNRTOMBS
1017 GNULIB_WCSRTOMBS
1018 GNULIB_WCRTOMB
1019 GNULIB_MBSNRTOWCS
1020 GNULIB_MBSRTOWCS
1021 GNULIB_MBRLEN
1022 GNULIB_MBRTOWC
1023 GNULIB_MBSINIT
1024 GNULIB_WCTOB
1025 GNULIB_BTOWC
1026 NEXT_AS_FIRST_DIRECTIVE_MATH_H
1027 NEXT_MATH_H
1028 REPLACE_UNSETENV
1029 REPLACE_STRTOD
1030 REPLACE_SETENV
1031 REPLACE_REALPATH
1032 REPLACE_PUTENV
1033 REPLACE_MKSTEMP
1034 REPLACE_CANONICALIZE_FILE_NAME
1035 HAVE_UNSETENV
1036 HAVE_UNLOCKPT
1037 HAVE_SYS_LOADAVG_H
1038 HAVE_STRUCT_RANDOM_DATA
1039 HAVE_STRTOULL
1040 HAVE_STRTOLL
1041 HAVE_STRTOD
1042 HAVE_SETENV
1043 HAVE_RPMATCH
1044 HAVE_REALPATH
1045 HAVE_REALLOC_POSIX
1046 HAVE_RANDOM_R
1047 HAVE_PTSNAME
1048 HAVE_MKSTEMPS
1049 HAVE_MKSTEMP
1050 HAVE_MKOSTEMPS
1051 HAVE_MKOSTEMP
1052 HAVE_MKDTEMP
1053 HAVE_GRANTPT
1054 HAVE_GETSUBOPT
1055 HAVE_DECL_GETLOADAVG
1056 HAVE_CANONICALIZE_FILE_NAME
1057 HAVE_CALLOC_POSIX
1058 HAVE_ATOLL
1059 GNULIB_UNSETENV
1060 GNULIB_UNLOCKPT
1061 GNULIB_STRTOULL
1062 GNULIB_STRTOLL
1063 GNULIB_STRTOD
1064 GNULIB_SETENV
1065 GNULIB_RPMATCH
1066 GNULIB_REALPATH
1067 GNULIB_REALLOC_POSIX
1068 GNULIB_RANDOM_R
1069 GNULIB_PUTENV
1070 GNULIB_PTSNAME
1071 GNULIB_MKSTEMPS
1072 GNULIB_MKSTEMP
1073 GNULIB_MKOSTEMPS
1074 GNULIB_MKOSTEMP
1075 GNULIB_MKDTEMP
1076 GNULIB_MALLOC_POSIX
1077 GNULIB_GRANTPT
1078 GNULIB_GETSUBOPT
1079 GNULIB_GETLOADAVG
1080 GNULIB_CANONICALIZE_FILE_NAME
1081 GNULIB_CALLOC_POSIX
1082 GNULIB_ATOLL
1083 HAVE_MALLOC_POSIX
1084 LTLIBMULTITHREAD
1085 LIBMULTITHREAD
1086 LTLIBTHREAD
1087 LIBTHREAD
1088 LIBPTH_PREFIX
1089 LTLIBPTH
1090 LIBPTH
1091 INTL_MACOSX_LIBS
1092 LOCALCHARSET_TESTS_ENVIRONMENT
1093 GLIBC21
1094 NEXT_AS_FIRST_DIRECTIVE_ICONV_H
1095 NEXT_ICONV_H
1096 ICONV_H
1097 REPLACE_ICONV_UTF
1098 REPLACE_ICONV_OPEN
1099 REPLACE_ICONV
1100 LTLIBICONV
1101 LIBICONV
1102 REPLACE_TRUNCL
1103 REPLACE_SIGNBIT_USING_GCC
1104 REPLACE_SIGNBIT
1105 REPLACE_ROUNDL
1106 REPLACE_ROUNDF
1107 REPLACE_ROUND
1108 REPLACE_NAN
1109 REPLACE_LDEXPL
1110 REPLACE_ISNAN
1111 REPLACE_ISINF
1112 REPLACE_ISFINITE
1113 REPLACE_HUGE_VAL
1114 REPLACE_FREXPL
1115 REPLACE_FREXP
1116 REPLACE_FLOORL
1117 REPLACE_FLOORF
1118 REPLACE_CEILL
1119 REPLACE_CEILF
1120 HAVE_DECL_TRUNCL
1121 HAVE_DECL_TRUNCF
1122 HAVE_DECL_TRUNC
1123 HAVE_DECL_TANL
1124 HAVE_DECL_SQRTL
1125 HAVE_DECL_SINL
1126 HAVE_DECL_ROUNDL
1127 HAVE_DECL_ROUNDF
1128 HAVE_DECL_ROUND
1129 HAVE_DECL_LOGL
1130 HAVE_DECL_LOGB
1131 HAVE_DECL_LDEXPL
1132 HAVE_DECL_FREXPL
1133 HAVE_DECL_FLOORL
1134 HAVE_DECL_FLOORF
1135 HAVE_DECL_EXPL
1136 HAVE_DECL_COSL
1137 HAVE_DECL_CEILL
1138 HAVE_DECL_CEILF
1139 HAVE_DECL_ATANL
1140 HAVE_DECL_ASINL
1141 HAVE_DECL_ACOSL
1142 HAVE_TANL
1143 HAVE_SQRTL
1144 HAVE_SINL
1145 HAVE_LOGL
1146 HAVE_ISNANL
1147 HAVE_ISNAND
1148 HAVE_ISNANF
1149 HAVE_EXPL
1150 HAVE_COSL
1151 HAVE_ATANL
1152 HAVE_ASINL
1153 HAVE_ACOSL
1154 GNULIB_TRUNCL
1155 GNULIB_TRUNCF
1156 GNULIB_TRUNC
1157 GNULIB_TANL
1158 GNULIB_SQRTL
1159 GNULIB_SINL
1160 GNULIB_SIGNBIT
1161 GNULIB_ROUNDL
1162 GNULIB_ROUNDF
1163 GNULIB_ROUND
1164 GNULIB_LOGL
1165 GNULIB_LOGB
1166 GNULIB_LDEXPL
1167 GNULIB_ISNANL
1168 GNULIB_ISNAND
1169 GNULIB_ISNANF
1170 GNULIB_ISNAN
1171 GNULIB_ISINF
1172 GNULIB_ISFINITE
1173 GNULIB_FREXPL
1174 GNULIB_FREXP
1175 GNULIB_FLOORL
1176 GNULIB_FLOORF
1177 GNULIB_EXPL
1178 GNULIB_COSL
1179 GNULIB_CEILL
1180 GNULIB_CEILF
1181 GNULIB_ATANL
1182 GNULIB_ASINL
1183 GNULIB_ACOSL
1184 FLOAT_H
1185 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1186 NEXT_FLOAT_H
1187 EOVERFLOW_VALUE
1188 EOVERFLOW_HIDDEN
1189 ENOLINK_VALUE
1190 ENOLINK_HIDDEN
1191 EMULTIHOP_VALUE
1192 EMULTIHOP_HIDDEN
1193 ERRNO_H
1194 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1195 NEXT_ERRNO_H
1196 PRAGMA_SYSTEM_HEADER
1197 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1198 INCLUDE_NEXT
1199 ALLOCA_H
1200 ALLOCA
1201 GL_COND_LIBTOOL_FALSE
1202 GL_COND_LIBTOOL_TRUE
1203 WOE32_FALSE
1204 WOE32_TRUE
1205 RC
1206 OTOOL64
1207 OTOOL
1208 LIPO
1209 NMEDIT
1210 DSYMUTIL
1211 lt_ECHO
1212 AR
1213 LN_S
1214 NM
1215 ac_ct_DUMPBIN
1216 DUMPBIN
1217 LD
1218 FGREP
1219 SED
1220 LIBTOOL
1221 OBJDUMP
1222 DLLTOOL
1223 AS
1224 EGREP
1225 GREP
1226 RANLIB
1227 host_os
1228 host_vendor
1229 host_cpu
1230 host
1231 build_os
1232 build_vendor
1233 build_cpu
1234 build
1235 CPP
1236 am__fastdepCC_FALSE
1237 am__fastdepCC_TRUE
1238 CCDEPMODE
1239 AMDEPBACKSLASH
1240 AMDEP_FALSE
1241 AMDEP_TRUE
1242 am__quote
1243 am__include
1244 DEPDIR
1245 OBJEXT
1246 EXEEXT
1247 ac_ct_CC
1248 CPPFLAGS
1249 LDFLAGS
1250 CFLAGS
1251 CC
1252 AM_BACKSLASH
1253 AM_DEFAULT_VERBOSITY
1254 am__untar
1255 am__tar
1256 AMTAR
1257 am__leading_dot
1258 SET_MAKE
1259 AWK
1260 mkdir_p
1261 MKDIR_P
1262 INSTALL_STRIP_PROGRAM
1263 STRIP
1264 install_sh
1265 MAKEINFO
1266 AUTOHEADER
1267 AUTOMAKE
1268 AUTOCONF
1269 ACLOCAL
1270 VERSION
1271 PACKAGE
1272 CYGPATH_W
1273 am__isrc
1274 INSTALL_DATA
1275 INSTALL_SCRIPT
1276 INSTALL_PROGRAM
1277 target_alias
1278 host_alias
1279 build_alias
1280 LIBS
1281 ECHO_T
1282 ECHO_N
1283 ECHO_C
1284 DEFS
1285 mandir
1286 localedir
1287 libdir
1288 psdir
1289 pdfdir
1290 dvidir
1291 htmldir
1292 infodir
1293 docdir
1294 oldincludedir
1295 includedir
1296 localstatedir
1297 sharedstatedir
1298 sysconfdir
1299 datadir
1300 datarootdir
1301 libexecdir
1302 sbindir
1303 bindir
1304 program_transform_name
1305 prefix
1306 exec_prefix
1307 PACKAGE_URL
1308 PACKAGE_BUGREPORT
1309 PACKAGE_STRING
1310 PACKAGE_VERSION
1311 PACKAGE_TARNAME
1312 PACKAGE_NAME
1313 PATH_SEPARATOR
1314 SHELL'
1315 ac_subst_files=''
1316 ac_user_opts='
1317 enable_option_checking
1318 enable_silent_rules
1319 enable_dependency_tracking
1320 enable_threads
1321 enable_shared
1322 enable_static
1323 with_pic
1324 enable_fast_install
1325 with_gnu_ld
1326 enable_libtool_lock
1327 enable_rpath
1328 with_libiconv_prefix
1329 with_libpth_prefix
1330 enable_relocatable
1331 enable_namespacing
1332 '
1333       ac_precious_vars='build_alias
1334 host_alias
1335 target_alias
1336 CC
1337 CFLAGS
1338 LDFLAGS
1339 LIBS
1340 CPPFLAGS
1341 CPP'
1342
1343
1344 # Initialize some variables set by options.
1345 ac_init_help=
1346 ac_init_version=false
1347 ac_unrecognized_opts=
1348 ac_unrecognized_sep=
1349 # The variables have the same names as the options, with
1350 # dashes changed to underlines.
1351 cache_file=/dev/null
1352 exec_prefix=NONE
1353 no_create=
1354 no_recursion=
1355 prefix=NONE
1356 program_prefix=NONE
1357 program_suffix=NONE
1358 program_transform_name=s,x,x,
1359 silent=
1360 site=
1361 srcdir=
1362 verbose=
1363 x_includes=NONE
1364 x_libraries=NONE
1365
1366 # Installation directory options.
1367 # These are left unexpanded so users can "make install exec_prefix=/foo"
1368 # and all the variables that are supposed to be based on exec_prefix
1369 # by default will actually change.
1370 # Use braces instead of parens because sh, perl, etc. also accept them.
1371 # (The list follows the same order as the GNU Coding Standards.)
1372 bindir='${exec_prefix}/bin'
1373 sbindir='${exec_prefix}/sbin'
1374 libexecdir='${exec_prefix}/libexec'
1375 datarootdir='${prefix}/share'
1376 datadir='${datarootdir}'
1377 sysconfdir='${prefix}/etc'
1378 sharedstatedir='${prefix}/com'
1379 localstatedir='${prefix}/var'
1380 includedir='${prefix}/include'
1381 oldincludedir='/usr/include'
1382 docdir='${datarootdir}/doc/${PACKAGE}'
1383 infodir='${datarootdir}/info'
1384 htmldir='${docdir}'
1385 dvidir='${docdir}'
1386 pdfdir='${docdir}'
1387 psdir='${docdir}'
1388 libdir='${exec_prefix}/lib'
1389 localedir='${datarootdir}/locale'
1390 mandir='${datarootdir}/man'
1391
1392 ac_prev=
1393 ac_dashdash=
1394 for ac_option
1395 do
1396   # If the previous option needs an argument, assign it.
1397   if test -n "$ac_prev"; then
1398     eval $ac_prev=\$ac_option
1399     ac_prev=
1400     continue
1401   fi
1402
1403   case $ac_option in
1404   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1405   *)    ac_optarg=yes ;;
1406   esac
1407
1408   # Accept the important Cygnus configure options, so we can diagnose typos.
1409
1410   case $ac_dashdash$ac_option in
1411   --)
1412     ac_dashdash=yes ;;
1413
1414   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1415     ac_prev=bindir ;;
1416   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1417     bindir=$ac_optarg ;;
1418
1419   -build | --build | --buil | --bui | --bu)
1420     ac_prev=build_alias ;;
1421   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1422     build_alias=$ac_optarg ;;
1423
1424   -cache-file | --cache-file | --cache-fil | --cache-fi \
1425   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1426     ac_prev=cache_file ;;
1427   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1428   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1429     cache_file=$ac_optarg ;;
1430
1431   --config-cache | -C)
1432     cache_file=config.cache ;;
1433
1434   -datadir | --datadir | --datadi | --datad)
1435     ac_prev=datadir ;;
1436   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1437     datadir=$ac_optarg ;;
1438
1439   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1440   | --dataroo | --dataro | --datar)
1441     ac_prev=datarootdir ;;
1442   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1443   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1444     datarootdir=$ac_optarg ;;
1445
1446   -disable-* | --disable-*)
1447     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1448     # Reject names that are not valid shell variable names.
1449     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1450       as_fn_error "invalid feature name: $ac_useropt"
1451     ac_useropt_orig=$ac_useropt
1452     ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'`
1453     case $ac_user_opts in
1454       *"
1455 "enable_$ac_useropt"
1456 "*) ;;
1457       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1458          ac_unrecognized_sep=', ';;
1459     esac
1460     eval enable_$ac_useropt=no ;;
1461
1462   -docdir | --docdir | --docdi | --doc | --do)
1463     ac_prev=docdir ;;
1464   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1465     docdir=$ac_optarg ;;
1466
1467   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1468     ac_prev=dvidir ;;
1469   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1470     dvidir=$ac_optarg ;;
1471
1472   -enable-* | --enable-*)
1473     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1474     # Reject names that are not valid shell variable names.
1475     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1476       as_fn_error "invalid feature name: $ac_useropt"
1477     ac_useropt_orig=$ac_useropt
1478     ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'`
1479     case $ac_user_opts in
1480       *"
1481 "enable_$ac_useropt"
1482 "*) ;;
1483       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1484          ac_unrecognized_sep=', ';;
1485     esac
1486     eval enable_$ac_useropt=\$ac_optarg ;;
1487
1488   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1489   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1490   | --exec | --exe | --ex)
1491     ac_prev=exec_prefix ;;
1492   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1493   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1494   | --exec=* | --exe=* | --ex=*)
1495     exec_prefix=$ac_optarg ;;
1496
1497   -gas | --gas | --ga | --g)
1498     # Obsolete; use --with-gas.
1499     with_gas=yes ;;
1500
1501   -help | --help | --hel | --he | -h)
1502     ac_init_help=long ;;
1503   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1504     ac_init_help=recursive ;;
1505   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1506     ac_init_help=short ;;
1507
1508   -host | --host | --hos | --ho)
1509     ac_prev=host_alias ;;
1510   -host=* | --host=* | --hos=* | --ho=*)
1511     host_alias=$ac_optarg ;;
1512
1513   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1514     ac_prev=htmldir ;;
1515   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1516   | --ht=*)
1517     htmldir=$ac_optarg ;;
1518
1519   -includedir | --includedir | --includedi | --included | --include \
1520   | --includ | --inclu | --incl | --inc)
1521     ac_prev=includedir ;;
1522   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1523   | --includ=* | --inclu=* | --incl=* | --inc=*)
1524     includedir=$ac_optarg ;;
1525
1526   -infodir | --infodir | --infodi | --infod | --info | --inf)
1527     ac_prev=infodir ;;
1528   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1529     infodir=$ac_optarg ;;
1530
1531   -libdir | --libdir | --libdi | --libd)
1532     ac_prev=libdir ;;
1533   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1534     libdir=$ac_optarg ;;
1535
1536   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1537   | --libexe | --libex | --libe)
1538     ac_prev=libexecdir ;;
1539   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1540   | --libexe=* | --libex=* | --libe=*)
1541     libexecdir=$ac_optarg ;;
1542
1543   -localedir | --localedir | --localedi | --localed | --locale)
1544     ac_prev=localedir ;;
1545   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1546     localedir=$ac_optarg ;;
1547
1548   -localstatedir | --localstatedir | --localstatedi | --localstated \
1549   | --localstate | --localstat | --localsta | --localst | --locals)
1550     ac_prev=localstatedir ;;
1551   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1552   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1553     localstatedir=$ac_optarg ;;
1554
1555   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1556     ac_prev=mandir ;;
1557   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1558     mandir=$ac_optarg ;;
1559
1560   -nfp | --nfp | --nf)
1561     # Obsolete; use --without-fp.
1562     with_fp=no ;;
1563
1564   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1565   | --no-cr | --no-c | -n)
1566     no_create=yes ;;
1567
1568   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1569   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1570     no_recursion=yes ;;
1571
1572   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1573   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1574   | --oldin | --oldi | --old | --ol | --o)
1575     ac_prev=oldincludedir ;;
1576   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1577   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1578   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1579     oldincludedir=$ac_optarg ;;
1580
1581   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1582     ac_prev=prefix ;;
1583   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1584     prefix=$ac_optarg ;;
1585
1586   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1587   | --program-pre | --program-pr | --program-p)
1588     ac_prev=program_prefix ;;
1589   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1590   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1591     program_prefix=$ac_optarg ;;
1592
1593   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1594   | --program-suf | --program-su | --program-s)
1595     ac_prev=program_suffix ;;
1596   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1597   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1598     program_suffix=$ac_optarg ;;
1599
1600   -program-transform-name | --program-transform-name \
1601   | --program-transform-nam | --program-transform-na \
1602   | --program-transform-n | --program-transform- \
1603   | --program-transform | --program-transfor \
1604   | --program-transfo | --program-transf \
1605   | --program-trans | --program-tran \
1606   | --progr-tra | --program-tr | --program-t)
1607     ac_prev=program_transform_name ;;
1608   -program-transform-name=* | --program-transform-name=* \
1609   | --program-transform-nam=* | --program-transform-na=* \
1610   | --program-transform-n=* | --program-transform-=* \
1611   | --program-transform=* | --program-transfor=* \
1612   | --program-transfo=* | --program-transf=* \
1613   | --program-trans=* | --program-tran=* \
1614   | --progr-tra=* | --program-tr=* | --program-t=*)
1615     program_transform_name=$ac_optarg ;;
1616
1617   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1618     ac_prev=pdfdir ;;
1619   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1620     pdfdir=$ac_optarg ;;
1621
1622   -psdir | --psdir | --psdi | --psd | --ps)
1623     ac_prev=psdir ;;
1624   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1625     psdir=$ac_optarg ;;
1626
1627   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1628   | -silent | --silent | --silen | --sile | --sil)
1629     silent=yes ;;
1630
1631   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1632     ac_prev=sbindir ;;
1633   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1634   | --sbi=* | --sb=*)
1635     sbindir=$ac_optarg ;;
1636
1637   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1638   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1639   | --sharedst | --shareds | --shared | --share | --shar \
1640   | --sha | --sh)
1641     ac_prev=sharedstatedir ;;
1642   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1643   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1644   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1645   | --sha=* | --sh=*)
1646     sharedstatedir=$ac_optarg ;;
1647
1648   -site | --site | --sit)
1649     ac_prev=site ;;
1650   -site=* | --site=* | --sit=*)
1651     site=$ac_optarg ;;
1652
1653   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1654     ac_prev=srcdir ;;
1655   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1656     srcdir=$ac_optarg ;;
1657
1658   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1659   | --syscon | --sysco | --sysc | --sys | --sy)
1660     ac_prev=sysconfdir ;;
1661   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1662   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1663     sysconfdir=$ac_optarg ;;
1664
1665   -target | --target | --targe | --targ | --tar | --ta | --t)
1666     ac_prev=target_alias ;;
1667   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1668     target_alias=$ac_optarg ;;
1669
1670   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1671     verbose=yes ;;
1672
1673   -version | --version | --versio | --versi | --vers | -V)
1674     ac_init_version=: ;;
1675
1676   -with-* | --with-*)
1677     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1678     # Reject names that are not valid shell variable names.
1679     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1680       as_fn_error "invalid package name: $ac_useropt"
1681     ac_useropt_orig=$ac_useropt
1682     ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'`
1683     case $ac_user_opts in
1684       *"
1685 "with_$ac_useropt"
1686 "*) ;;
1687       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1688          ac_unrecognized_sep=', ';;
1689     esac
1690     eval with_$ac_useropt=\$ac_optarg ;;
1691
1692   -without-* | --without-*)
1693     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1694     # Reject names that are not valid shell variable names.
1695     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1696       as_fn_error "invalid package name: $ac_useropt"
1697     ac_useropt_orig=$ac_useropt
1698     ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'`
1699     case $ac_user_opts in
1700       *"
1701 "with_$ac_useropt"
1702 "*) ;;
1703       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1704          ac_unrecognized_sep=', ';;
1705     esac
1706     eval with_$ac_useropt=no ;;
1707
1708   --x)
1709     # Obsolete; use --with-x.
1710     with_x=yes ;;
1711
1712   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1713   | --x-incl | --x-inc | --x-in | --x-i)
1714     ac_prev=x_includes ;;
1715   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1716   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1717     x_includes=$ac_optarg ;;
1718
1719   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1720   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1721     ac_prev=x_libraries ;;
1722   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1723   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1724     x_libraries=$ac_optarg ;;
1725
1726   -*) as_fn_error "unrecognized option: \`$ac_option'
1727 Try \`$0 --help' for more information."
1728     ;;
1729
1730   *=*)
1731     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1732     # Reject names that are not valid shell variable names.
1733     case $ac_envvar in #(
1734       '' | [0-9]* | *[!_$as_cr_alnum]* )
1735       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1736     esac
1737     eval $ac_envvar=\$ac_optarg
1738     export $ac_envvar ;;
1739
1740   *)
1741     # FIXME: should be removed in autoconf 3.0.
1742     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1743     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1744       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1745     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1746     ;;
1747
1748   esac
1749 done
1750
1751 if test -n "$ac_prev"; then
1752   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1753   as_fn_error "missing argument to $ac_option"
1754 fi
1755
1756 if test -n "$ac_unrecognized_opts"; then
1757   case $enable_option_checking in
1758     no) ;;
1759     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1760     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1761   esac
1762 fi
1763
1764 # Check all directory arguments for consistency.
1765 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1766                 datadir sysconfdir sharedstatedir localstatedir includedir \
1767                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1768                 libdir localedir mandir
1769 do
1770   eval ac_val=\$$ac_var
1771   # Remove trailing slashes.
1772   case $ac_val in
1773     */ )
1774       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1775       eval $ac_var=\$ac_val;;
1776   esac
1777   # Be sure to have absolute directory names.
1778   case $ac_val in
1779     [\\/$]* | ?:[\\/]* )  continue;;
1780     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1781   esac
1782   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1783 done
1784
1785 # There might be people who depend on the old broken behavior: `$host'
1786 # used to hold the argument of --host etc.
1787 # FIXME: To remove some day.
1788 build=$build_alias
1789 host=$host_alias
1790 target=$target_alias
1791
1792 # FIXME: To remove some day.
1793 if test "x$host_alias" != x; then
1794   if test "x$build_alias" = x; then
1795     cross_compiling=maybe
1796     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1797     If a cross compiler is detected then cross compile mode will be used." >&2
1798   elif test "x$build_alias" != "x$host_alias"; then
1799     cross_compiling=yes
1800   fi
1801 fi
1802
1803 ac_tool_prefix=
1804 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1805
1806 test "$silent" = yes && exec 6>/dev/null
1807
1808
1809 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1810 ac_ls_di=`ls -di .` &&
1811 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1812   as_fn_error "working directory cannot be determined"
1813 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1814   as_fn_error "pwd does not report name of working directory"
1815
1816
1817 # Find the source files, if location was not specified.
1818 if test -z "$srcdir"; then
1819   ac_srcdir_defaulted=yes
1820   # Try the directory containing this script, then the parent directory.
1821   ac_confdir=`$as_dirname -- "$as_myself" ||
1822 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1823          X"$as_myself" : 'X\(//\)[^/]' \| \
1824          X"$as_myself" : 'X\(//\)$' \| \
1825          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1826 $as_echo X"$as_myself" |
1827     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1828             s//\1/
1829             q
1830           }
1831           /^X\(\/\/\)[^/].*/{
1832             s//\1/
1833             q
1834           }
1835           /^X\(\/\/\)$/{
1836             s//\1/
1837             q
1838           }
1839           /^X\(\/\).*/{
1840             s//\1/
1841             q
1842           }
1843           s/.*/./; q'`
1844   srcdir=$ac_confdir
1845   if test ! -r "$srcdir/$ac_unique_file"; then
1846     srcdir=..
1847   fi
1848 else
1849   ac_srcdir_defaulted=no
1850 fi
1851 if test ! -r "$srcdir/$ac_unique_file"; then
1852   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1853   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1854 fi
1855 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1856 ac_abs_confdir=`(
1857         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1858         pwd)`
1859 # When building in place, set srcdir=.
1860 if test "$ac_abs_confdir" = "$ac_pwd"; then
1861   srcdir=.
1862 fi
1863 # Remove unnecessary trailing slashes from srcdir.
1864 # Double slashes in file names in object file debugging info
1865 # mess up M-x gdb in Emacs.
1866 case $srcdir in
1867 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1868 esac
1869 for ac_var in $ac_precious_vars; do
1870   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1871   eval ac_env_${ac_var}_value=\$${ac_var}
1872   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1873   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1874 done
1875
1876 #
1877 # Report the --help message.
1878 #
1879 if test "$ac_init_help" = "long"; then
1880   # Omit some internal or obsolete options to make the list less imposing.
1881   # This message is too long to be a string in the A/UX 3.1 sh.
1882   cat <<_ACEOF
1883 \`configure' configures this package to adapt to many kinds of systems.
1884
1885 Usage: $0 [OPTION]... [VAR=VALUE]...
1886
1887 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1888 VAR=VALUE.  See below for descriptions of some of the useful variables.
1889
1890 Defaults for the options are specified in brackets.
1891
1892 Configuration:
1893   -h, --help              display this help and exit
1894       --help=short        display options specific to this package
1895       --help=recursive    display the short help of all the included packages
1896   -V, --version           display version information and exit
1897   -q, --quiet, --silent   do not print \`checking...' messages
1898       --cache-file=FILE   cache test results in FILE [disabled]
1899   -C, --config-cache      alias for \`--cache-file=config.cache'
1900   -n, --no-create         do not create output files
1901       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1902
1903 Installation directories:
1904   --prefix=PREFIX         install architecture-independent files in PREFIX
1905                           [$ac_default_prefix]
1906   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1907                           [PREFIX]
1908
1909 By default, \`make install' will install all the files in
1910 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1911 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1912 for instance \`--prefix=\$HOME'.
1913
1914 For better control, use the options below.
1915
1916 Fine tuning of the installation directories:
1917   --bindir=DIR            user executables [EPREFIX/bin]
1918   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1919   --libexecdir=DIR        program executables [EPREFIX/libexec]
1920   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1921   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1922   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1923   --libdir=DIR            object code libraries [EPREFIX/lib]
1924   --includedir=DIR        C header files [PREFIX/include]
1925   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1926   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1927   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1928   --infodir=DIR           info documentation [DATAROOTDIR/info]
1929   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1930   --mandir=DIR            man documentation [DATAROOTDIR/man]
1931   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1932   --htmldir=DIR           html documentation [DOCDIR]
1933   --dvidir=DIR            dvi documentation [DOCDIR]
1934   --pdfdir=DIR            pdf documentation [DOCDIR]
1935   --psdir=DIR             ps documentation [DOCDIR]
1936 _ACEOF
1937
1938   cat <<\_ACEOF
1939
1940 Program names:
1941   --program-prefix=PREFIX            prepend PREFIX to installed program names
1942   --program-suffix=SUFFIX            append SUFFIX to installed program names
1943   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1944
1945 System types:
1946   --build=BUILD     configure for building on BUILD [guessed]
1947   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1948 _ACEOF
1949 fi
1950
1951 if test -n "$ac_init_help"; then
1952
1953   cat <<\_ACEOF
1954
1955 Optional Features:
1956   --disable-option-checking  ignore unrecognized --enable/--with options
1957   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1958   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1959   --enable-silent-rules          less verbose build output (undo: `make V=1')
1960   --disable-silent-rules         verbose build output (undo: `make V=0')
1961   --disable-dependency-tracking  speeds up one-time build
1962   --enable-dependency-tracking   do not reject slow dependency extractors
1963   --enable-threads={posix|solaris|pth|win32}
1964                           specify multithreading API
1965   --disable-threads       build without multithread safety
1966   --enable-shared[=PKGS]  build shared libraries [default=yes]
1967   --enable-static[=PKGS]  build static libraries [default=yes]
1968   --enable-fast-install[=PKGS]
1969                           optimize for fast installation [default=yes]
1970   --disable-libtool-lock  avoid locking (might break parallel builds)
1971   --disable-rpath         do not hardcode runtime library paths
1972   --enable-relocatable    install a package that can be moved in the file
1973                           system
1974   --disable-namespacing   build a library that exports undesired symbols
1975
1976 Optional Packages:
1977   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1978   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1979   --with-pic              try to use only PIC/non-PIC objects [default=use
1980                           both]
1981   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1982   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1983   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1984   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1985   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1986   --without-libpth-prefix     don't search for libpth in includedir and libdir
1987
1988 Some influential environment variables:
1989   CC          C compiler command
1990   CFLAGS      C compiler flags
1991   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1992               nonstandard directory <lib dir>
1993   LIBS        libraries to pass to the linker, e.g. -l<library>
1994   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1995               you have headers in a nonstandard directory <include dir>
1996   CPP         C preprocessor
1997
1998 Use these variables to override the choices made by `configure' or to help
1999 it to find libraries and programs with nonstandard names/locations.
2000
2001 Report bugs to the package provider.
2002 _ACEOF
2003 ac_status=$?
2004 fi
2005
2006 if test "$ac_init_help" = "recursive"; then
2007   # If there are subdirs, report their specific --help.
2008   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2009     test -d "$ac_dir" ||
2010       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2011       continue
2012     ac_builddir=.
2013
2014 case "$ac_dir" in
2015 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2016 *)
2017   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2018   # A ".." for each directory in $ac_dir_suffix.
2019   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2020   case $ac_top_builddir_sub in
2021   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2022   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2023   esac ;;
2024 esac
2025 ac_abs_top_builddir=$ac_pwd
2026 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2027 # for backward compatibility:
2028 ac_top_builddir=$ac_top_build_prefix
2029
2030 case $srcdir in
2031   .)  # We are building in place.
2032     ac_srcdir=.
2033     ac_top_srcdir=$ac_top_builddir_sub
2034     ac_abs_top_srcdir=$ac_pwd ;;
2035   [\\/]* | ?:[\\/]* )  # Absolute name.
2036     ac_srcdir=$srcdir$ac_dir_suffix;
2037     ac_top_srcdir=$srcdir
2038     ac_abs_top_srcdir=$srcdir ;;
2039   *) # Relative name.
2040     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2041     ac_top_srcdir=$ac_top_build_prefix$srcdir
2042     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2043 esac
2044 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2045
2046     cd "$ac_dir" || { ac_status=$?; continue; }
2047     # Check for guested configure.
2048     if test -f "$ac_srcdir/configure.gnu"; then
2049       echo &&
2050       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2051     elif test -f "$ac_srcdir/configure"; then
2052       echo &&
2053       $SHELL "$ac_srcdir/configure" --help=recursive
2054     else
2055       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2056     fi || ac_status=$?
2057     cd "$ac_pwd" || { ac_status=$?; break; }
2058   done
2059 fi
2060
2061 test -n "$ac_init_help" && exit $ac_status
2062 if $ac_init_version; then
2063   cat <<\_ACEOF
2064 configure
2065 generated by GNU Autoconf 2.65
2066
2067 Copyright (C) 2009 Free Software Foundation, Inc.
2068 This configure script is free software; the Free Software Foundation
2069 gives unlimited permission to copy, distribute and modify it.
2070 _ACEOF
2071   exit
2072 fi
2073
2074 ## ------------------------ ##
2075 ## Autoconf initialization. ##
2076 ## ------------------------ ##
2077
2078 # ac_fn_c_try_compile LINENO
2079 # --------------------------
2080 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2081 ac_fn_c_try_compile ()
2082 {
2083   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084   rm -f conftest.$ac_objext
2085   if { { ac_try="$ac_compile"
2086 case "(($ac_try" in
2087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088   *) ac_try_echo=$ac_try;;
2089 esac
2090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091 $as_echo "$ac_try_echo"; } >&5
2092   (eval "$ac_compile") 2>conftest.err
2093   ac_status=$?
2094   if test -s conftest.err; then
2095     grep -v '^ *+' conftest.err >conftest.er1
2096     cat conftest.er1 >&5
2097     mv -f conftest.er1 conftest.err
2098   fi
2099   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2100   test $ac_status = 0; } && {
2101          test -z "$ac_c_werror_flag" ||
2102          test ! -s conftest.err
2103        } && test -s conftest.$ac_objext; then :
2104   ac_retval=0
2105 else
2106   $as_echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2108
2109         ac_retval=1
2110 fi
2111   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2112   as_fn_set_status $ac_retval
2113
2114 } # ac_fn_c_try_compile
2115
2116 # ac_fn_c_try_cpp LINENO
2117 # ----------------------
2118 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2119 ac_fn_c_try_cpp ()
2120 {
2121   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122   if { { ac_try="$ac_cpp conftest.$ac_ext"
2123 case "(($ac_try" in
2124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125   *) ac_try_echo=$ac_try;;
2126 esac
2127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2128 $as_echo "$ac_try_echo"; } >&5
2129   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2130   ac_status=$?
2131   if test -s conftest.err; then
2132     grep -v '^ *+' conftest.err >conftest.er1
2133     cat conftest.er1 >&5
2134     mv -f conftest.er1 conftest.err
2135   fi
2136   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137   test $ac_status = 0; } >/dev/null && {
2138          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2139          test ! -s conftest.err
2140        }; then :
2141   ac_retval=0
2142 else
2143   $as_echo "$as_me: failed program was:" >&5
2144 sed 's/^/| /' conftest.$ac_ext >&5
2145
2146     ac_retval=1
2147 fi
2148   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2149   as_fn_set_status $ac_retval
2150
2151 } # ac_fn_c_try_cpp
2152
2153 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2154 # -------------------------------------------------------
2155 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2156 # the include files in INCLUDES and setting the cache variable VAR
2157 # accordingly.
2158 ac_fn_c_check_header_mongrel ()
2159 {
2160   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2163 $as_echo_n "checking for $2... " >&6; }
2164 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2165   $as_echo_n "(cached) " >&6
2166 fi
2167 eval ac_res=\$$3
2168                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169 $as_echo "$ac_res" >&6; }
2170 else
2171   # Is the header compilable?
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2173 $as_echo_n "checking $2 usability... " >&6; }
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h.  */
2176 $4
2177 #include <$2>
2178 _ACEOF
2179 if ac_fn_c_try_compile "$LINENO"; then :
2180   ac_header_compiler=yes
2181 else
2182   ac_header_compiler=no
2183 fi
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2186 $as_echo "$ac_header_compiler" >&6; }
2187
2188 # Is the header present?
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2190 $as_echo_n "checking $2 presence... " >&6; }
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h.  */
2193 #include <$2>
2194 _ACEOF
2195 if ac_fn_c_try_cpp "$LINENO"; then :
2196   ac_header_preproc=yes
2197 else
2198   ac_header_preproc=no
2199 fi
2200 rm -f conftest.err conftest.$ac_ext
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2202 $as_echo "$ac_header_preproc" >&6; }
2203
2204 # So?  What about this header?
2205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2206   yes:no: )
2207     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2208 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2209     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2210 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2211     ;;
2212   no:yes:* )
2213     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2214 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2215     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2216 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2217     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2218 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2219     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2220 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2221     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2222 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2223     ;;
2224 esac
2225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226 $as_echo_n "checking for $2... " >&6; }
2227 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2228   $as_echo_n "(cached) " >&6
2229 else
2230   eval "$3=\$ac_header_compiler"
2231 fi
2232 eval ac_res=\$$3
2233                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2234 $as_echo "$ac_res" >&6; }
2235 fi
2236   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2237
2238 } # ac_fn_c_check_header_mongrel
2239
2240 # ac_fn_c_try_run LINENO
2241 # ----------------------
2242 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2243 # that executables *can* be run.
2244 ac_fn_c_try_run ()
2245 {
2246   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247   if { { ac_try="$ac_link"
2248 case "(($ac_try" in
2249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2250   *) ac_try_echo=$ac_try;;
2251 esac
2252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2253 $as_echo "$ac_try_echo"; } >&5
2254   (eval "$ac_link") 2>&5
2255   ac_status=$?
2256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2257   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2258   { { case "(($ac_try" in
2259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260   *) ac_try_echo=$ac_try;;
2261 esac
2262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2263 $as_echo "$ac_try_echo"; } >&5
2264   (eval "$ac_try") 2>&5
2265   ac_status=$?
2266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267   test $ac_status = 0; }; }; then :
2268   ac_retval=0
2269 else
2270   $as_echo "$as_me: program exited with status $ac_status" >&5
2271        $as_echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2273
2274        ac_retval=$ac_status
2275 fi
2276   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2277   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2278   as_fn_set_status $ac_retval
2279
2280 } # ac_fn_c_try_run
2281
2282 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2283 # -------------------------------------------------------
2284 # Tests whether HEADER exists and can be compiled using the include files in
2285 # INCLUDES, setting the cache variable VAR accordingly.
2286 ac_fn_c_check_header_compile ()
2287 {
2288   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2290 $as_echo_n "checking for $2... " >&6; }
2291 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2292   $as_echo_n "(cached) " >&6
2293 else
2294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h.  */
2296 $4
2297 #include <$2>
2298 _ACEOF
2299 if ac_fn_c_try_compile "$LINENO"; then :
2300   eval "$3=yes"
2301 else
2302   eval "$3=no"
2303 fi
2304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 fi
2306 eval ac_res=\$$3
2307                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2308 $as_echo "$ac_res" >&6; }
2309   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2310
2311 } # ac_fn_c_check_header_compile
2312
2313 # ac_fn_c_try_link LINENO
2314 # -----------------------
2315 # Try to link conftest.$ac_ext, and return whether this succeeded.
2316 ac_fn_c_try_link ()
2317 {
2318   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2319   rm -f conftest.$ac_objext conftest$ac_exeext
2320   if { { ac_try="$ac_link"
2321 case "(($ac_try" in
2322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323   *) ac_try_echo=$ac_try;;
2324 esac
2325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2326 $as_echo "$ac_try_echo"; } >&5
2327   (eval "$ac_link") 2>conftest.err
2328   ac_status=$?
2329   if test -s conftest.err; then
2330     grep -v '^ *+' conftest.err >conftest.er1
2331     cat conftest.er1 >&5
2332     mv -f conftest.er1 conftest.err
2333   fi
2334   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2335   test $ac_status = 0; } && {
2336          test -z "$ac_c_werror_flag" ||
2337          test ! -s conftest.err
2338        } && test -s conftest$ac_exeext && {
2339          test "$cross_compiling" = yes ||
2340          $as_test_x conftest$ac_exeext
2341        }; then :
2342   ac_retval=0
2343 else
2344   $as_echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2346
2347         ac_retval=1
2348 fi
2349   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2350   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2351   # interfere with the next link command; also delete a directory that is
2352   # left behind by Apple's compiler.  We do this before executing the actions.
2353   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2354   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2355   as_fn_set_status $ac_retval
2356
2357 } # ac_fn_c_try_link
2358
2359 # ac_fn_c_check_func LINENO FUNC VAR
2360 # ----------------------------------
2361 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2362 ac_fn_c_check_func ()
2363 {
2364   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2366 $as_echo_n "checking for $2... " >&6; }
2367 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2368   $as_echo_n "(cached) " >&6
2369 else
2370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h.  */
2372 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2373    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2374 #define $2 innocuous_$2
2375
2376 /* System header to define __stub macros and hopefully few prototypes,
2377     which can conflict with char $2 (); below.
2378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2379     <limits.h> exists even on freestanding compilers.  */
2380
2381 #ifdef __STDC__
2382 # include <limits.h>
2383 #else
2384 # include <assert.h>
2385 #endif
2386
2387 #undef $2
2388
2389 /* Override any GCC internal prototype to avoid an error.
2390    Use char because int might match the return type of a GCC
2391    builtin and then its argument prototype would still apply.  */
2392 #ifdef __cplusplus
2393 extern "C"
2394 #endif
2395 char $2 ();
2396 /* The GNU C library defines this for functions which it implements
2397     to always fail with ENOSYS.  Some functions are actually named
2398     something starting with __ and the normal name is an alias.  */
2399 #if defined __stub_$2 || defined __stub___$2
2400 choke me
2401 #endif
2402
2403 int
2404 main ()
2405 {
2406 return $2 ();
2407   ;
2408   return 0;
2409 }
2410 _ACEOF
2411 if ac_fn_c_try_link "$LINENO"; then :
2412   eval "$3=yes"
2413 else
2414   eval "$3=no"
2415 fi
2416 rm -f core conftest.err conftest.$ac_objext \
2417     conftest$ac_exeext conftest.$ac_ext
2418 fi
2419 eval ac_res=\$$3
2420                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2421 $as_echo "$ac_res" >&6; }
2422   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2423
2424 } # ac_fn_c_check_func
2425
2426 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2427 # --------------------------------------------
2428 # Tries to find the compile-time value of EXPR in a program that includes
2429 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2430 # computed
2431 ac_fn_c_compute_int ()
2432 {
2433   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2434   if test "$cross_compiling" = yes; then
2435     # Depending upon the size, compute the lo and hi bounds.
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h.  */
2438 $4
2439 int
2440 main ()
2441 {
2442 static int test_array [1 - 2 * !(($2) >= 0)];
2443 test_array [0] = 0
2444
2445   ;
2446   return 0;
2447 }
2448 _ACEOF
2449 if ac_fn_c_try_compile "$LINENO"; then :
2450   ac_lo=0 ac_mid=0
2451   while :; do
2452     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h.  */
2454 $4
2455 int
2456 main ()
2457 {
2458 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2459 test_array [0] = 0
2460
2461   ;
2462   return 0;
2463 }
2464 _ACEOF
2465 if ac_fn_c_try_compile "$LINENO"; then :
2466   ac_hi=$ac_mid; break
2467 else
2468   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2469                         if test $ac_lo -le $ac_mid; then
2470                           ac_lo= ac_hi=
2471                           break
2472                         fi
2473                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2474 fi
2475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2476   done
2477 else
2478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479 /* end confdefs.h.  */
2480 $4
2481 int
2482 main ()
2483 {
2484 static int test_array [1 - 2 * !(($2) < 0)];
2485 test_array [0] = 0
2486
2487   ;
2488   return 0;
2489 }
2490 _ACEOF
2491 if ac_fn_c_try_compile "$LINENO"; then :
2492   ac_hi=-1 ac_mid=-1
2493   while :; do
2494     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495 /* end confdefs.h.  */
2496 $4
2497 int
2498 main ()
2499 {
2500 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2501 test_array [0] = 0
2502
2503   ;
2504   return 0;
2505 }
2506 _ACEOF
2507 if ac_fn_c_try_compile "$LINENO"; then :
2508   ac_lo=$ac_mid; break
2509 else
2510   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2511                         if test $ac_mid -le $ac_hi; then
2512                           ac_lo= ac_hi=
2513                           break
2514                         fi
2515                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2516 fi
2517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2518   done
2519 else
2520   ac_lo= ac_hi=
2521 fi
2522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2523 fi
2524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525 # Binary search between lo and hi bounds.
2526 while test "x$ac_lo" != "x$ac_hi"; do
2527   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h.  */
2530 $4
2531 int
2532 main ()
2533 {
2534 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2535 test_array [0] = 0
2536
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 if ac_fn_c_try_compile "$LINENO"; then :
2542   ac_hi=$ac_mid
2543 else
2544   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2545 fi
2546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2547 done
2548 case $ac_lo in #((
2549 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2550 '') ac_retval=1 ;;
2551 esac
2552   else
2553     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h.  */
2555 $4
2556 static long int longval () { return $2; }
2557 static unsigned long int ulongval () { return $2; }
2558 #include <stdio.h>
2559 #include <stdlib.h>
2560 int
2561 main ()
2562 {
2563
2564   FILE *f = fopen ("conftest.val", "w");
2565   if (! f)
2566     return 1;
2567   if (($2) < 0)
2568     {
2569       long int i = longval ();
2570       if (i != ($2))
2571         return 1;
2572       fprintf (f, "%ld", i);
2573     }
2574   else
2575     {
2576       unsigned long int i = ulongval ();
2577       if (i != ($2))
2578         return 1;
2579       fprintf (f, "%lu", i);
2580     }
2581   /* Do not output a trailing newline, as this causes \r\n confusion
2582      on some platforms.  */
2583   return ferror (f) || fclose (f) != 0;
2584
2585   ;
2586   return 0;
2587 }
2588 _ACEOF
2589 if ac_fn_c_try_run "$LINENO"; then :
2590   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2591 else
2592   ac_retval=1
2593 fi
2594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2595   conftest.$ac_objext conftest.beam conftest.$ac_ext
2596 rm -f conftest.val
2597
2598   fi
2599   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2600   as_fn_set_status $ac_retval
2601
2602 } # ac_fn_c_compute_int
2603
2604 # ac_fn_c_check_decl LINENO SYMBOL VAR
2605 # ------------------------------------
2606 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2607 ac_fn_c_check_decl ()
2608 {
2609   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2611 $as_echo_n "checking whether $2 is declared... " >&6; }
2612 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2613   $as_echo_n "(cached) " >&6
2614 else
2615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2616 /* end confdefs.h.  */
2617 $4
2618 int
2619 main ()
2620 {
2621 #ifndef $2
2622   (void) $2;
2623 #endif
2624
2625   ;
2626   return 0;
2627 }
2628 _ACEOF
2629 if ac_fn_c_try_compile "$LINENO"; then :
2630   eval "$3=yes"
2631 else
2632   eval "$3=no"
2633 fi
2634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2635 fi
2636 eval ac_res=\$$3
2637                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2638 $as_echo "$ac_res" >&6; }
2639   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2640
2641 } # ac_fn_c_check_decl
2642
2643 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2644 # -------------------------------------------
2645 # Tests whether TYPE exists after having included INCLUDES, setting cache
2646 # variable VAR accordingly.
2647 ac_fn_c_check_type ()
2648 {
2649   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2651 $as_echo_n "checking for $2... " >&6; }
2652 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2653   $as_echo_n "(cached) " >&6
2654 else
2655   eval "$3=no"
2656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2657 /* end confdefs.h.  */
2658 $4
2659 int
2660 main ()
2661 {
2662 if (sizeof ($2))
2663          return 0;
2664   ;
2665   return 0;
2666 }
2667 _ACEOF
2668 if ac_fn_c_try_compile "$LINENO"; then :
2669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2670 /* end confdefs.h.  */
2671 $4
2672 int
2673 main ()
2674 {
2675 if (sizeof (($2)))
2676             return 0;
2677   ;
2678   return 0;
2679 }
2680 _ACEOF
2681 if ac_fn_c_try_compile "$LINENO"; then :
2682
2683 else
2684   eval "$3=yes"
2685 fi
2686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687 fi
2688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2689 fi
2690 eval ac_res=\$$3
2691                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692 $as_echo "$ac_res" >&6; }
2693   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2694
2695 } # ac_fn_c_check_type
2696 cat >config.log <<_ACEOF
2697 This file contains any messages produced by compilers while
2698 running configure, to aid debugging if configure makes a mistake.
2699
2700 It was created by $as_me, which was
2701 generated by GNU Autoconf 2.65.  Invocation command line was
2702
2703   $ $0 $@
2704
2705 _ACEOF
2706 exec 5>>config.log
2707 {
2708 cat <<_ASUNAME
2709 ## --------- ##
2710 ## Platform. ##
2711 ## --------- ##
2712
2713 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2714 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2715 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2716 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2717 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2718
2719 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2720 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2721
2722 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2723 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2724 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2725 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2726 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2727 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2728 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2729
2730 _ASUNAME
2731
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735   IFS=$as_save_IFS
2736   test -z "$as_dir" && as_dir=.
2737     $as_echo "PATH: $as_dir"
2738   done
2739 IFS=$as_save_IFS
2740
2741 } >&5
2742
2743 cat >&5 <<_ACEOF
2744
2745
2746 ## ----------- ##
2747 ## Core tests. ##
2748 ## ----------- ##
2749
2750 _ACEOF
2751
2752
2753 # Keep a trace of the command line.
2754 # Strip out --no-create and --no-recursion so they do not pile up.
2755 # Strip out --silent because we don't want to record it for future runs.
2756 # Also quote any args containing shell meta-characters.
2757 # Make two passes to allow for proper duplicate-argument suppression.
2758 ac_configure_args=
2759 ac_configure_args0=
2760 ac_configure_args1=
2761 ac_must_keep_next=false
2762 for ac_pass in 1 2
2763 do
2764   for ac_arg
2765   do
2766     case $ac_arg in
2767     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2768     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2769     | -silent | --silent | --silen | --sile | --sil)
2770       continue ;;
2771     *\'*)
2772       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2773     esac
2774     case $ac_pass in
2775     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2776     2)
2777       as_fn_append ac_configure_args1 " '$ac_arg'"
2778       if test $ac_must_keep_next = true; then
2779         ac_must_keep_next=false # Got value, back to normal.
2780       else
2781         case $ac_arg in
2782           *=* | --config-cache | -C | -disable-* | --disable-* \
2783           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2784           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2785           | -with-* | --with-* | -without-* | --without-* | --x)
2786             case "$ac_configure_args0 " in
2787               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2788             esac
2789             ;;
2790           -* ) ac_must_keep_next=true ;;
2791         esac
2792       fi
2793       as_fn_append ac_configure_args " '$ac_arg'"
2794       ;;
2795     esac
2796   done
2797 done
2798 { ac_configure_args0=; unset ac_configure_args0;}
2799 { ac_configure_args1=; unset ac_configure_args1;}
2800
2801 # When interrupted or exit'd, cleanup temporary files, and complete
2802 # config.log.  We remove comments because anyway the quotes in there
2803 # would cause problems or look ugly.
2804 # WARNING: Use '\'' to represent an apostrophe within the trap.
2805 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2806 trap 'exit_status=$?
2807   # Save into config.log some information that might help in debugging.
2808   {
2809     echo
2810
2811     cat <<\_ASBOX
2812 ## ---------------- ##
2813 ## Cache variables. ##
2814 ## ---------------- ##
2815 _ASBOX
2816     echo
2817     # The following way of writing the cache mishandles newlines in values,
2818 (
2819   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2820     eval ac_val=\$$ac_var
2821     case $ac_val in #(
2822     *${as_nl}*)
2823       case $ac_var in #(
2824       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2825 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2826       esac
2827       case $ac_var in #(
2828       _ | IFS | as_nl) ;; #(
2829       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2830       *) { eval $ac_var=; unset $ac_var;} ;;
2831       esac ;;
2832     esac
2833   done
2834   (set) 2>&1 |
2835     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2836     *${as_nl}ac_space=\ *)
2837       sed -n \
2838         "s/'\''/'\''\\\\'\'''\''/g;
2839           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2840       ;; #(
2841     *)
2842       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2843       ;;
2844     esac |
2845     sort
2846 )
2847     echo
2848
2849     cat <<\_ASBOX
2850 ## ----------------- ##
2851 ## Output variables. ##
2852 ## ----------------- ##
2853 _ASBOX
2854     echo
2855     for ac_var in $ac_subst_vars
2856     do
2857       eval ac_val=\$$ac_var
2858       case $ac_val in
2859       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2860       esac
2861       $as_echo "$ac_var='\''$ac_val'\''"
2862     done | sort
2863     echo
2864
2865     if test -n "$ac_subst_files"; then
2866       cat <<\_ASBOX
2867 ## ------------------- ##
2868 ## File substitutions. ##
2869 ## ------------------- ##
2870 _ASBOX
2871       echo
2872       for ac_var in $ac_subst_files
2873       do
2874         eval ac_val=\$$ac_var
2875         case $ac_val in
2876         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2877         esac
2878         $as_echo "$ac_var='\''$ac_val'\''"
2879       done | sort
2880       echo
2881     fi
2882
2883     if test -s confdefs.h; then
2884       cat <<\_ASBOX
2885 ## ----------- ##
2886 ## confdefs.h. ##
2887 ## ----------- ##
2888 _ASBOX
2889       echo
2890       cat confdefs.h
2891       echo
2892     fi
2893     test "$ac_signal" != 0 &&
2894       $as_echo "$as_me: caught signal $ac_signal"
2895     $as_echo "$as_me: exit $exit_status"
2896   } >&5
2897   rm -f core *.core core.conftest.* &&
2898     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2899     exit $exit_status
2900 ' 0
2901 for ac_signal in 1 2 13 15; do
2902   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2903 done
2904 ac_signal=0
2905
2906 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2907 rm -f -r conftest* confdefs.h
2908
2909 $as_echo "/* confdefs.h */" > confdefs.h
2910
2911 # Predefined preprocessor variables.
2912
2913 cat >>confdefs.h <<_ACEOF
2914 #define PACKAGE_NAME "$PACKAGE_NAME"
2915 _ACEOF
2916
2917 cat >>confdefs.h <<_ACEOF
2918 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2919 _ACEOF
2920
2921 cat >>confdefs.h <<_ACEOF
2922 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2923 _ACEOF
2924
2925 cat >>confdefs.h <<_ACEOF
2926 #define PACKAGE_STRING "$PACKAGE_STRING"
2927 _ACEOF
2928
2929 cat >>confdefs.h <<_ACEOF
2930 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2931 _ACEOF
2932
2933 cat >>confdefs.h <<_ACEOF
2934 #define PACKAGE_URL "$PACKAGE_URL"
2935 _ACEOF
2936
2937
2938 # Let the site file select an alternate cache file if it wants to.
2939 # Prefer an explicitly selected file to automatically selected ones.
2940 ac_site_file1=NONE
2941 ac_site_file2=NONE
2942 if test -n "$CONFIG_SITE"; then
2943   ac_site_file1=$CONFIG_SITE
2944 elif test "x$prefix" != xNONE; then
2945   ac_site_file1=$prefix/share/config.site
2946   ac_site_file2=$prefix/etc/config.site
2947 else
2948   ac_site_file1=$ac_default_prefix/share/config.site
2949   ac_site_file2=$ac_default_prefix/etc/config.site
2950 fi
2951 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2952 do
2953   test "x$ac_site_file" = xNONE && continue
2954   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2955     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2956 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2957     sed 's/^/| /' "$ac_site_file" >&5
2958     . "$ac_site_file"
2959   fi
2960 done
2961
2962 if test -r "$cache_file"; then
2963   # Some versions of bash will fail to source /dev/null (special files
2964   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2965   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2966     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2967 $as_echo "$as_me: loading cache $cache_file" >&6;}
2968     case $cache_file in
2969       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2970       *)                      . "./$cache_file";;
2971     esac
2972   fi
2973 else
2974   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2975 $as_echo "$as_me: creating cache $cache_file" >&6;}
2976   >$cache_file
2977 fi
2978
2979 as_fn_append ac_header_list " errno.h"
2980 as_fn_append ac_header_list " float.h"
2981 as_fn_append ac_header_list " iconv.h"
2982 as_fn_append ac_header_list " math.h"
2983 as_fn_append ac_func_list " mbsinit"
2984 as_fn_append ac_func_list " mbrtowc"
2985 as_fn_append ac_header_list " sys/mman.h"
2986 as_fn_append ac_func_list " mprotect"
2987 as_fn_append ac_func_list " memchr"
2988 gl_printf_safe=yes
2989 as_fn_append ac_header_list " stddef.h"
2990 as_fn_append ac_header_list " stdint.h"
2991 as_fn_append ac_header_list " wchar.h"
2992 as_fn_append ac_header_list " stdlib.h"
2993 as_fn_append ac_header_list " string.h"
2994 as_fn_append ac_header_list " unistd.h"
2995 as_fn_append ac_func_list " stpcpy"
2996 as_fn_append ac_func_list " strdup"
2997 as_fn_append ac_func_list " iswcntrl"
2998 as_fn_append ac_func_list " iswblank"
2999 as_fn_append ac_header_list " wctype.h"
3000 as_fn_append ac_func_list " wcwidth"
3001 as_fn_append ac_header_list " xlocale.h"
3002 as_fn_append ac_header_list " locale.h"
3003 as_fn_append ac_func_list " newlocale"
3004 as_fn_append ac_func_list " setenv"
3005 as_fn_append ac_header_list " sys/socket.h"
3006 as_fn_append ac_func_list " wctob"
3007 # Check that the precious variables saved in the cache have kept the same
3008 # value.
3009 ac_cache_corrupted=false
3010 for ac_var in $ac_precious_vars; do
3011   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3012   eval ac_new_set=\$ac_env_${ac_var}_set
3013   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3014   eval ac_new_val=\$ac_env_${ac_var}_value
3015   case $ac_old_set,$ac_new_set in
3016     set,)
3017       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3018 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3019       ac_cache_corrupted=: ;;
3020     ,set)
3021       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3022 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3023       ac_cache_corrupted=: ;;
3024     ,);;
3025     *)
3026       if test "x$ac_old_val" != "x$ac_new_val"; then
3027         # differences in whitespace do not lead to failure.
3028         ac_old_val_w=`echo x $ac_old_val`
3029         ac_new_val_w=`echo x $ac_new_val`
3030         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3031           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3032 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3033           ac_cache_corrupted=:
3034         else
3035           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3036 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3037           eval $ac_var=\$ac_old_val
3038         fi
3039         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3040 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3041         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3042 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3043       fi;;
3044   esac
3045   # Pass precious variables to config.status.
3046   if test "$ac_new_set" = set; then
3047     case $ac_new_val in
3048     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3049     *) ac_arg=$ac_var=$ac_new_val ;;
3050     esac
3051     case " $ac_configure_args " in
3052       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3053       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3054     esac
3055   fi
3056 done
3057 if $ac_cache_corrupted; then
3058   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3061 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3062   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3063 fi
3064 ## -------------------- ##
3065 ## Main body of script. ##
3066 ## -------------------- ##
3067
3068 ac_ext=c
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073
3074
3075
3076 ac_aux_dir=
3077 for ac_dir in build-aux "$srcdir"/build-aux; do
3078   for ac_t in install-sh install.sh shtool; do
3079     if test -f "$ac_dir/$ac_t"; then
3080       ac_aux_dir=$ac_dir
3081       ac_install_sh="$ac_aux_dir/$ac_t -c"
3082       break 2
3083     fi
3084   done
3085 done
3086 if test -z "$ac_aux_dir"; then
3087   as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3088 fi
3089
3090 # These three variables are undocumented and unsupported,
3091 # and are intended to be withdrawn in a future Autoconf release.
3092 # They can cause serious problems if a builder's source tree is in a directory
3093 # whose full name contains unusual characters.
3094 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3095 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3096 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3097
3098
3099 . $srcdir/version.sh
3100
3101
3102
3103
3104
3105 am__api_version='1.11'
3106
3107 # Find a good install program.  We prefer a C program (faster),
3108 # so one script is as good as another.  But avoid the broken or
3109 # incompatible versions:
3110 # SysV /etc/install, /usr/sbin/install
3111 # SunOS /usr/etc/install
3112 # IRIX /sbin/install
3113 # AIX /bin/install
3114 # AmigaOS /C/install, which installs bootblocks on floppy discs
3115 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3116 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3117 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3118 # OS/2's system install, which has a completely different semantic
3119 # ./install, which can be erroneously created by make from ./install.sh.
3120 # Reject install programs that cannot install multiple files.
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3122 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3123 if test -z "$INSTALL"; then
3124 if test "${ac_cv_path_install+set}" = set; then :
3125   $as_echo_n "(cached) " >&6
3126 else
3127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130   IFS=$as_save_IFS
3131   test -z "$as_dir" && as_dir=.
3132     # Account for people who put trailing slashes in PATH elements.
3133 case $as_dir/ in #((
3134   ./ | .// | /[cC]/* | \
3135   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3136   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3137   /usr/ucb/* ) ;;
3138   *)
3139     # OSF1 and SCO ODT 3.0 have their own names for install.
3140     # Don't use installbsd from OSF since it installs stuff as root
3141     # by default.
3142     for ac_prog in ginstall scoinst install; do
3143       for ac_exec_ext in '' $ac_executable_extensions; do
3144         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3145           if test $ac_prog = install &&
3146             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3147             # AIX install.  It has an incompatible calling convention.
3148             :
3149           elif test $ac_prog = install &&
3150             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3151             # program-specific install script used by HP pwplus--don't use.
3152             :
3153           else
3154             rm -rf conftest.one conftest.two conftest.dir
3155             echo one > conftest.one
3156             echo two > conftest.two
3157             mkdir conftest.dir
3158             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3159               test -s conftest.one && test -s conftest.two &&
3160               test -s conftest.dir/conftest.one &&
3161               test -s conftest.dir/conftest.two
3162             then
3163               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3164               break 3
3165             fi
3166           fi
3167         fi
3168       done
3169     done
3170     ;;
3171 esac
3172
3173   done
3174 IFS=$as_save_IFS
3175
3176 rm -rf conftest.one conftest.two conftest.dir
3177
3178 fi
3179   if test "${ac_cv_path_install+set}" = set; then
3180     INSTALL=$ac_cv_path_install
3181   else
3182     # As a last resort, use the slow shell script.  Don't cache a
3183     # value for INSTALL within a source directory, because that will
3184     # break other packages using the cache if that directory is
3185     # removed, or if the value is a relative name.
3186     INSTALL=$ac_install_sh
3187   fi
3188 fi
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3190 $as_echo "$INSTALL" >&6; }
3191
3192 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3193 # It thinks the first close brace ends the variable substitution.
3194 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3195
3196 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3197
3198 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3199
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3201 $as_echo_n "checking whether build environment is sane... " >&6; }
3202 # Just in case
3203 sleep 1
3204 echo timestamp > conftest.file
3205 # Reject unsafe characters in $srcdir or the absolute working directory
3206 # name.  Accept space and tab only in the latter.
3207 am_lf='
3208 '
3209 case `pwd` in
3210   *[\\\"\#\$\&\'\`$am_lf]*)
3211     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3212 esac
3213 case $srcdir in
3214   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3215     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3216 esac
3217
3218 # Do `set' in a subshell so we don't clobber the current shell's
3219 # arguments.  Must try -L first in case configure is actually a
3220 # symlink; some systems play weird games with the mod time of symlinks
3221 # (eg FreeBSD returns the mod time of the symlink's containing
3222 # directory).
3223 if (
3224    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3225    if test "$*" = "X"; then
3226       # -L didn't work.
3227       set X `ls -t "$srcdir/configure" conftest.file`
3228    fi
3229    rm -f conftest.file
3230    if test "$*" != "X $srcdir/configure conftest.file" \
3231       && test "$*" != "X conftest.file $srcdir/configure"; then
3232
3233       # If neither matched, then we have a broken ls.  This can happen
3234       # if, for instance, CONFIG_SHELL is bash and it inherits a
3235       # broken ls alias from the environment.  This has actually
3236       # happened.  Such a system could not be considered "sane".
3237       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3238 alias in your environment" "$LINENO" 5
3239    fi
3240
3241    test "$2" = conftest.file
3242    )
3243 then
3244    # Ok.
3245    :
3246 else
3247    as_fn_error "newly created file is older than distributed files!
3248 Check your system clock" "$LINENO" 5
3249 fi
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3251 $as_echo "yes" >&6; }
3252 test "$program_prefix" != NONE &&
3253   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3254 # Use a double $ so make ignores it.
3255 test "$program_suffix" != NONE &&
3256   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3257 # Double any \ or $.
3258 # By default was `s,x,x', remove it if useless.
3259 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3260 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3261
3262 # expand $ac_aux_dir to an absolute path
3263 am_aux_dir=`cd $ac_aux_dir && pwd`
3264
3265 if test x"${MISSING+set}" != xset; then
3266   case $am_aux_dir in
3267   *\ * | *\     *)
3268     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3269   *)
3270     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3271   esac
3272 fi
3273 # Use eval to expand $SHELL
3274 if eval "$MISSING --run true"; then
3275   am_missing_run="$MISSING --run "
3276 else
3277   am_missing_run=
3278   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3279 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3280 fi
3281
3282 if test x"${install_sh}" != xset; then
3283   case $am_aux_dir in
3284   *\ * | *\     *)
3285     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3286   *)
3287     install_sh="\${SHELL} $am_aux_dir/install-sh"
3288   esac
3289 fi
3290
3291 # Installed binaries are usually stripped using `strip' when the user
3292 # run `make install-strip'.  However `strip' might not be the right
3293 # tool to use in cross-compilation environments, therefore Automake
3294 # will honor the `STRIP' environment variable to overrule this program.
3295 if test "$cross_compiling" != no; then
3296   if test -n "$ac_tool_prefix"; then
3297   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3298 set dummy ${ac_tool_prefix}strip; ac_word=$2
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300 $as_echo_n "checking for $ac_word... " >&6; }
3301 if test "${ac_cv_prog_STRIP+set}" = set; then :
3302   $as_echo_n "(cached) " >&6
3303 else
3304   if test -n "$STRIP"; then
3305   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3306 else
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3309 do
3310   IFS=$as_save_IFS
3311   test -z "$as_dir" && as_dir=.
3312     for ac_exec_ext in '' $ac_executable_extensions; do
3313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3314     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316     break 2
3317   fi
3318 done
3319   done
3320 IFS=$as_save_IFS
3321
3322 fi
3323 fi
3324 STRIP=$ac_cv_prog_STRIP
3325 if test -n "$STRIP"; then
3326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3327 $as_echo "$STRIP" >&6; }
3328 else
3329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 fi
3332
3333
3334 fi
3335 if test -z "$ac_cv_prog_STRIP"; then
3336   ac_ct_STRIP=$STRIP
3337   # Extract the first word of "strip", so it can be a program name with args.
3338 set dummy strip; ac_word=$2
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3340 $as_echo_n "checking for $ac_word... " >&6; }
3341 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3342   $as_echo_n "(cached) " >&6
3343 else
3344   if test -n "$ac_ct_STRIP"; then
3345   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3346 else
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3349 do
3350   IFS=$as_save_IFS
3351   test -z "$as_dir" && as_dir=.
3352     for ac_exec_ext in '' $ac_executable_extensions; do
3353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3354     ac_cv_prog_ac_ct_STRIP="strip"
3355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3356     break 2
3357   fi
3358 done
3359   done
3360 IFS=$as_save_IFS
3361
3362 fi
3363 fi
3364 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3365 if test -n "$ac_ct_STRIP"; then
3366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3367 $as_echo "$ac_ct_STRIP" >&6; }
3368 else
3369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3371 fi
3372
3373   if test "x$ac_ct_STRIP" = x; then
3374     STRIP=":"
3375   else
3376     case $cross_compiling:$ac_tool_warned in
3377 yes:)
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3380 ac_tool_warned=yes ;;
3381 esac
3382     STRIP=$ac_ct_STRIP
3383   fi
3384 else
3385   STRIP="$ac_cv_prog_STRIP"
3386 fi
3387
3388 fi
3389 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3390
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3392 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3393 if test -z "$MKDIR_P"; then
3394   if test "${ac_cv_path_mkdir+set}" = set; then :
3395   $as_echo_n "(cached) " >&6
3396 else
3397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3399 do
3400   IFS=$as_save_IFS
3401   test -z "$as_dir" && as_dir=.
3402     for ac_prog in mkdir gmkdir; do
3403          for ac_exec_ext in '' $ac_executable_extensions; do
3404            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3405            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3406              'mkdir (GNU coreutils) '* | \
3407              'mkdir (coreutils) '* | \
3408              'mkdir (fileutils) '4.1*)
3409                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3410                break 3;;
3411            esac
3412          done
3413        done
3414   done
3415 IFS=$as_save_IFS
3416
3417 fi
3418
3419   test -d ./--version && rmdir ./--version
3420   if test "${ac_cv_path_mkdir+set}" = set; then
3421     MKDIR_P="$ac_cv_path_mkdir -p"
3422   else
3423     # As a last resort, use the slow shell script.  Don't cache a
3424     # value for MKDIR_P within a source directory, because that will
3425     # break other packages using the cache if that directory is
3426     # removed, or if the value is a relative name.
3427     MKDIR_P="$ac_install_sh -d"
3428   fi
3429 fi
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3431 $as_echo "$MKDIR_P" >&6; }
3432
3433
3434 mkdir_p="$MKDIR_P"
3435 case $mkdir_p in
3436   [\\/$]* | ?:[\\/]*) ;;
3437   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3438 esac
3439
3440 for ac_prog in gawk mawk nawk awk
3441 do
3442   # Extract the first word of "$ac_prog", so it can be a program name with args.
3443 set dummy $ac_prog; ac_word=$2
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445 $as_echo_n "checking for $ac_word... " >&6; }
3446 if test "${ac_cv_prog_AWK+set}" = set; then :
3447   $as_echo_n "(cached) " >&6
3448 else
3449   if test -n "$AWK"; then
3450   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3451 else
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH
3454 do
3455   IFS=$as_save_IFS
3456   test -z "$as_dir" && as_dir=.
3457     for ac_exec_ext in '' $ac_executable_extensions; do
3458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3459     ac_cv_prog_AWK="$ac_prog"
3460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461     break 2
3462   fi
3463 done
3464   done
3465 IFS=$as_save_IFS
3466
3467 fi
3468 fi
3469 AWK=$ac_cv_prog_AWK
3470 if test -n "$AWK"; then
3471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3472 $as_echo "$AWK" >&6; }
3473 else
3474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3476 fi
3477
3478
3479   test -n "$AWK" && break
3480 done
3481
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3483 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3484 set x ${MAKE-make}
3485 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3486 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3487   $as_echo_n "(cached) " >&6
3488 else
3489   cat >conftest.make <<\_ACEOF
3490 SHELL = /bin/sh
3491 all:
3492         @echo '@@@%%%=$(MAKE)=@@@%%%'
3493 _ACEOF
3494 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3495 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3496   *@@@%%%=?*=@@@%%%*)
3497     eval ac_cv_prog_make_${ac_make}_set=yes;;
3498   *)
3499     eval ac_cv_prog_make_${ac_make}_set=no;;
3500 esac
3501 rm -f conftest.make
3502 fi
3503 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3505 $as_echo "yes" >&6; }
3506   SET_MAKE=
3507 else
3508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509 $as_echo "no" >&6; }
3510   SET_MAKE="MAKE=${MAKE-make}"
3511 fi
3512
3513 rm -rf .tst 2>/dev/null
3514 mkdir .tst 2>/dev/null
3515 if test -d .tst; then
3516   am__leading_dot=.
3517 else
3518   am__leading_dot=_
3519 fi
3520 rmdir .tst 2>/dev/null
3521
3522 # Check whether --enable-silent-rules was given.
3523 if test "${enable_silent_rules+set}" = set; then :
3524   enableval=$enable_silent_rules;
3525 fi
3526
3527 case $enable_silent_rules in
3528 yes) AM_DEFAULT_VERBOSITY=0;;
3529 no)  AM_DEFAULT_VERBOSITY=1;;
3530 *)   AM_DEFAULT_VERBOSITY=1;;
3531 esac
3532 AM_BACKSLASH='\'
3533
3534
3535
3536   if test "`cd $srcdir && pwd`" != "`pwd`"; then
3537   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3538   # is not polluted with repeated "-I."
3539   am__isrc=' -I$(srcdir)'
3540   # test to see if srcdir already configured
3541   if test -f $srcdir/config.status; then
3542     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3543   fi
3544 fi
3545
3546 # test whether we have cygpath
3547 if test -z "$CYGPATH_W"; then
3548   if (cygpath --version) >/dev/null 2>/dev/null; then
3549     CYGPATH_W='cygpath -w'
3550   else
3551     CYGPATH_W=echo
3552   fi
3553 fi
3554
3555
3556 # Define the identity of the package.
3557  PACKAGE=''
3558  VERSION=''
3559
3560
3561 # Some tools Automake needs.
3562
3563 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3564
3565
3566 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3567
3568
3569 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3570
3571
3572 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3573
3574
3575 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3576
3577 # We need awk for the "check" target.  The system "awk" is bad on
3578 # some platforms.
3579 # Always define AMTAR for backward compatibility.
3580
3581 AMTAR=${AMTAR-"${am_missing_run}tar"}
3582
3583 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3584
3585
3586
3587
3588
3589     PACKAGE=libunistring
3590
3591      VERSION=$VERSION_NUMBER
3592
3593
3594
3595 cat >>confdefs.h <<_ACEOF
3596 #define PACKAGE "$PACKAGE"
3597 _ACEOF
3598
3599
3600 cat >>confdefs.h <<_ACEOF
3601 #define VERSION "$VERSION"
3602 _ACEOF
3603
3604
3605
3606 ac_config_headers="$ac_config_headers config.h"
3607
3608
3609 am__tar='${AMTAR} chof - --owner=root --group=root "$$tardir"'
3610
3611
3612 ac_ext=c
3613 ac_cpp='$CPP $CPPFLAGS'
3614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617 if test -n "$ac_tool_prefix"; then
3618   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3619 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3621 $as_echo_n "checking for $ac_word... " >&6; }
3622 if test "${ac_cv_prog_CC+set}" = set; then :
3623   $as_echo_n "(cached) " >&6
3624 else
3625   if test -n "$CC"; then
3626   ac_cv_prog_CC="$CC" # Let the user override the test.
3627 else
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH
3630 do
3631   IFS=$as_save_IFS
3632   test -z "$as_dir" && as_dir=.
3633     for ac_exec_ext in '' $ac_executable_extensions; do
3634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3635     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3637     break 2
3638   fi
3639 done
3640   done
3641 IFS=$as_save_IFS
3642
3643 fi
3644 fi
3645 CC=$ac_cv_prog_CC
3646 if test -n "$CC"; then
3647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3648 $as_echo "$CC" >&6; }
3649 else
3650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 $as_echo "no" >&6; }
3652 fi
3653
3654
3655 fi
3656 if test -z "$ac_cv_prog_CC"; then
3657   ac_ct_CC=$CC
3658   # Extract the first word of "gcc", so it can be a program name with args.
3659 set dummy gcc; ac_word=$2
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3661 $as_echo_n "checking for $ac_word... " >&6; }
3662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3663   $as_echo_n "(cached) " >&6
3664 else
3665   if test -n "$ac_ct_CC"; then
3666   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3667 else
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH
3670 do
3671   IFS=$as_save_IFS
3672   test -z "$as_dir" && as_dir=.
3673     for ac_exec_ext in '' $ac_executable_extensions; do
3674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3675     ac_cv_prog_ac_ct_CC="gcc"
3676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3677     break 2
3678   fi
3679 done
3680   done
3681 IFS=$as_save_IFS
3682
3683 fi
3684 fi
3685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3686 if test -n "$ac_ct_CC"; then
3687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3688 $as_echo "$ac_ct_CC" >&6; }
3689 else
3690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 $as_echo "no" >&6; }
3692 fi
3693
3694   if test "x$ac_ct_CC" = x; then
3695     CC=""
3696   else
3697     case $cross_compiling:$ac_tool_warned in
3698 yes:)
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3701 ac_tool_warned=yes ;;
3702 esac
3703     CC=$ac_ct_CC
3704   fi
3705 else
3706   CC="$ac_cv_prog_CC"
3707 fi
3708
3709 if test -z "$CC"; then
3710           if test -n "$ac_tool_prefix"; then
3711     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3712 set dummy ${ac_tool_prefix}cc; ac_word=$2
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3714 $as_echo_n "checking for $ac_word... " >&6; }
3715 if test "${ac_cv_prog_CC+set}" = set; then :
3716   $as_echo_n "(cached) " >&6
3717 else
3718   if test -n "$CC"; then
3719   ac_cv_prog_CC="$CC" # Let the user override the test.
3720 else
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH
3723 do
3724   IFS=$as_save_IFS
3725   test -z "$as_dir" && as_dir=.
3726     for ac_exec_ext in '' $ac_executable_extensions; do
3727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3728     ac_cv_prog_CC="${ac_tool_prefix}cc"
3729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3730     break 2
3731   fi
3732 done
3733   done
3734 IFS=$as_save_IFS
3735
3736 fi
3737 fi
3738 CC=$ac_cv_prog_CC
3739 if test -n "$CC"; then
3740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3741 $as_echo "$CC" >&6; }
3742 else
3743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744 $as_echo "no" >&6; }
3745 fi
3746
3747
3748   fi
3749 fi
3750 if test -z "$CC"; then
3751   # Extract the first word of "cc", so it can be a program name with args.
3752 set dummy cc; ac_word=$2
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754 $as_echo_n "checking for $ac_word... " >&6; }
3755 if test "${ac_cv_prog_CC+set}" = set; then :
3756   $as_echo_n "(cached) " >&6
3757 else
3758   if test -n "$CC"; then
3759   ac_cv_prog_CC="$CC" # Let the user override the test.
3760 else
3761   ac_prog_rejected=no
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3764 do
3765   IFS=$as_save_IFS
3766   test -z "$as_dir" && as_dir=.
3767     for ac_exec_ext in '' $ac_executable_extensions; do
3768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3769     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3770        ac_prog_rejected=yes
3771        continue
3772      fi
3773     ac_cv_prog_CC="cc"
3774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3775     break 2
3776   fi
3777 done
3778   done
3779 IFS=$as_save_IFS
3780
3781 if test $ac_prog_rejected = yes; then
3782   # We found a bogon in the path, so make sure we never use it.
3783   set dummy $ac_cv_prog_CC
3784   shift
3785   if test $# != 0; then
3786     # We chose a different compiler from the bogus one.
3787     # However, it has the same basename, so the bogon will be chosen
3788     # first if we set CC to just the basename; use the full file name.
3789     shift
3790     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3791   fi
3792 fi
3793 fi
3794 fi
3795 CC=$ac_cv_prog_CC
3796 if test -n "$CC"; then
3797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3798 $as_echo "$CC" >&6; }
3799 else
3800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801 $as_echo "no" >&6; }
3802 fi
3803
3804
3805 fi
3806 if test -z "$CC"; then
3807   if test -n "$ac_tool_prefix"; then
3808   for ac_prog in cl.exe
3809   do
3810     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if test "${ac_cv_prog_CC+set}" = set; then :
3815   $as_echo_n "(cached) " >&6
3816 else
3817   if test -n "$CC"; then
3818   ac_cv_prog_CC="$CC" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823   IFS=$as_save_IFS
3824   test -z "$as_dir" && as_dir=.
3825     for ac_exec_ext in '' $ac_executable_extensions; do
3826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3827     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829     break 2
3830   fi
3831 done
3832   done
3833 IFS=$as_save_IFS
3834
3835 fi
3836 fi
3837 CC=$ac_cv_prog_CC
3838 if test -n "$CC"; then
3839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3840 $as_echo "$CC" >&6; }
3841 else
3842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3844 fi
3845
3846
3847     test -n "$CC" && break
3848   done
3849 fi
3850 if test -z "$CC"; then
3851   ac_ct_CC=$CC
3852   for ac_prog in cl.exe
3853 do
3854   # Extract the first word of "$ac_prog", so it can be a program name with args.
3855 set dummy $ac_prog; ac_word=$2
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857 $as_echo_n "checking for $ac_word... " >&6; }
3858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3859   $as_echo_n "(cached) " >&6
3860 else
3861   if test -n "$ac_ct_CC"; then
3862   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3863 else
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH
3866 do
3867   IFS=$as_save_IFS
3868   test -z "$as_dir" && as_dir=.
3869     for ac_exec_ext in '' $ac_executable_extensions; do
3870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3871     ac_cv_prog_ac_ct_CC="$ac_prog"
3872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3873     break 2
3874   fi
3875 done
3876   done
3877 IFS=$as_save_IFS
3878
3879 fi
3880 fi
3881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3882 if test -n "$ac_ct_CC"; then
3883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3884 $as_echo "$ac_ct_CC" >&6; }
3885 else
3886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3888 fi
3889
3890
3891   test -n "$ac_ct_CC" && break
3892 done
3893
3894   if test "x$ac_ct_CC" = x; then
3895     CC=""
3896   else
3897     case $cross_compiling:$ac_tool_warned in
3898 yes:)
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3901 ac_tool_warned=yes ;;
3902 esac
3903     CC=$ac_ct_CC
3904   fi
3905 fi
3906
3907 fi
3908
3909
3910 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912 as_fn_error "no acceptable C compiler found in \$PATH
3913 See \`config.log' for more details." "$LINENO" 5; }
3914
3915 # Provide some information about the compiler.
3916 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3917 set X $ac_compile
3918 ac_compiler=$2
3919 for ac_option in --version -v -V -qversion; do
3920   { { ac_try="$ac_compiler $ac_option >&5"
3921 case "(($ac_try" in
3922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923   *) ac_try_echo=$ac_try;;
3924 esac
3925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926 $as_echo "$ac_try_echo"; } >&5
3927   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3928   ac_status=$?
3929   if test -s conftest.err; then
3930     sed '10a\
3931 ... rest of stderr output deleted ...
3932          10q' conftest.err >conftest.er1
3933     cat conftest.er1 >&5
3934   fi
3935   rm -f conftest.er1 conftest.err
3936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937   test $ac_status = 0; }
3938 done
3939
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h.  */
3942
3943 int
3944 main ()
3945 {
3946
3947   ;
3948   return 0;
3949 }
3950 _ACEOF
3951 ac_clean_files_save=$ac_clean_files
3952 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3953 # Try to create an executable without -o first, disregard a.out.
3954 # It will help us diagnose broken compilers, and finding out an intuition
3955 # of exeext.
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3957 $as_echo_n "checking whether the C compiler works... " >&6; }
3958 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3959
3960 # The possible output files:
3961 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3962
3963 ac_rmfiles=
3964 for ac_file in $ac_files
3965 do
3966   case $ac_file in
3967     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3968     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3969   esac
3970 done
3971 rm -f $ac_rmfiles
3972
3973 if { { ac_try="$ac_link_default"
3974 case "(($ac_try" in
3975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976   *) ac_try_echo=$ac_try;;
3977 esac
3978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3979 $as_echo "$ac_try_echo"; } >&5
3980   (eval "$ac_link_default") 2>&5
3981   ac_status=$?
3982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3983   test $ac_status = 0; }; then :
3984   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3985 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3986 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3987 # so that the user can short-circuit this test for compilers unknown to
3988 # Autoconf.
3989 for ac_file in $ac_files ''
3990 do
3991   test -f "$ac_file" || continue
3992   case $ac_file in
3993     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3994         ;;
3995     [ab].out )
3996         # We found the default executable, but exeext='' is most
3997         # certainly right.
3998         break;;
3999     *.* )
4000         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4001         then :; else
4002            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4003         fi
4004         # We set ac_cv_exeext here because the later test for it is not
4005         # safe: cross compilers may not add the suffix if given an `-o'
4006         # argument, so we may need to know it at that point already.
4007         # Even if this section looks crufty: it has the advantage of
4008         # actually working.
4009         break;;
4010     * )
4011         break;;
4012   esac
4013 done
4014 test "$ac_cv_exeext" = no && ac_cv_exeext=
4015
4016 else
4017   ac_file=''
4018 fi
4019 if test -z "$ac_file"; then :
4020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 $as_echo "no" >&6; }
4022 $as_echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4024
4025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4027 { as_fn_set_status 77
4028 as_fn_error "C compiler cannot create executables
4029 See \`config.log' for more details." "$LINENO" 5; }; }
4030 else
4031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4032 $as_echo "yes" >&6; }
4033 fi
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4035 $as_echo_n "checking for C compiler default output file name... " >&6; }
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4037 $as_echo "$ac_file" >&6; }
4038 ac_exeext=$ac_cv_exeext
4039
4040 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4041 ac_clean_files=$ac_clean_files_save
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4043 $as_echo_n "checking for suffix of executables... " >&6; }
4044 if { { ac_try="$ac_link"
4045 case "(($ac_try" in
4046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047   *) ac_try_echo=$ac_try;;
4048 esac
4049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4050 $as_echo "$ac_try_echo"; } >&5
4051   (eval "$ac_link") 2>&5
4052   ac_status=$?
4053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4054   test $ac_status = 0; }; then :
4055   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4056 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4057 # work properly (i.e., refer to `conftest.exe'), while it won't with
4058 # `rm'.
4059 for ac_file in conftest.exe conftest conftest.*; do
4060   test -f "$ac_file" || continue
4061   case $ac_file in
4062     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4063     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4064           break;;
4065     * ) break;;
4066   esac
4067 done
4068 else
4069   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071 as_fn_error "cannot compute suffix of executables: cannot compile and link
4072 See \`config.log' for more details." "$LINENO" 5; }
4073 fi
4074 rm -f conftest conftest$ac_cv_exeext
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4076 $as_echo "$ac_cv_exeext" >&6; }
4077
4078 rm -f conftest.$ac_ext
4079 EXEEXT=$ac_cv_exeext
4080 ac_exeext=$EXEEXT
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h.  */
4083 #include <stdio.h>
4084 int
4085 main ()
4086 {
4087 FILE *f = fopen ("conftest.out", "w");
4088  return ferror (f) || fclose (f) != 0;
4089
4090   ;
4091   return 0;
4092 }
4093 _ACEOF
4094 ac_clean_files="$ac_clean_files conftest.out"
4095 # Check that the compiler produces executables we can run.  If not, either
4096 # the compiler is broken, or we cross compile.
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4098 $as_echo_n "checking whether we are cross compiling... " >&6; }
4099 if test "$cross_compiling" != yes; then
4100   { { ac_try="$ac_link"
4101 case "(($ac_try" in
4102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103   *) ac_try_echo=$ac_try;;
4104 esac
4105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106 $as_echo "$ac_try_echo"; } >&5
4107   (eval "$ac_link") 2>&5
4108   ac_status=$?
4109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110   test $ac_status = 0; }
4111   if { ac_try='./conftest$ac_cv_exeext'
4112   { { case "(($ac_try" in
4113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114   *) ac_try_echo=$ac_try;;
4115 esac
4116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4117 $as_echo "$ac_try_echo"; } >&5
4118   (eval "$ac_try") 2>&5
4119   ac_status=$?
4120   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4121   test $ac_status = 0; }; }; then
4122     cross_compiling=no
4123   else
4124     if test "$cross_compiling" = maybe; then
4125         cross_compiling=yes
4126     else
4127         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4129 as_fn_error "cannot run C compiled programs.
4130 If you meant to cross compile, use \`--host'.
4131 See \`config.log' for more details." "$LINENO" 5; }
4132     fi
4133   fi
4134 fi
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4136 $as_echo "$cross_compiling" >&6; }
4137
4138 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4139 ac_clean_files=$ac_clean_files_save
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4141 $as_echo_n "checking for suffix of object files... " >&6; }
4142 if test "${ac_cv_objext+set}" = set; then :
4143   $as_echo_n "(cached) " >&6
4144 else
4145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h.  */
4147
4148 int
4149 main ()
4150 {
4151
4152   ;
4153   return 0;
4154 }
4155 _ACEOF
4156 rm -f conftest.o conftest.obj
4157 if { { ac_try="$ac_compile"
4158 case "(($ac_try" in
4159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160   *) ac_try_echo=$ac_try;;
4161 esac
4162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4163 $as_echo "$ac_try_echo"; } >&5
4164   (eval "$ac_compile") 2>&5
4165   ac_status=$?
4166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4167   test $ac_status = 0; }; then :
4168   for ac_file in conftest.o conftest.obj conftest.*; do
4169   test -f "$ac_file" || continue;
4170   case $ac_file in
4171     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4172     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4173        break;;
4174   esac
4175 done
4176 else
4177   $as_echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4179
4180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4182 as_fn_error "cannot compute suffix of object files: cannot compile
4183 See \`config.log' for more details." "$LINENO" 5; }
4184 fi
4185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4186 fi
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4188 $as_echo "$ac_cv_objext" >&6; }
4189 OBJEXT=$ac_cv_objext
4190 ac_objext=$OBJEXT
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4192 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4193 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4194   $as_echo_n "(cached) " >&6
4195 else
4196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h.  */
4198
4199 int
4200 main ()
4201 {
4202 #ifndef __GNUC__
4203        choke me
4204 #endif
4205
4206   ;
4207   return 0;
4208 }
4209 _ACEOF
4210 if ac_fn_c_try_compile "$LINENO"; then :
4211   ac_compiler_gnu=yes
4212 else
4213   ac_compiler_gnu=no
4214 fi
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4217
4218 fi
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4220 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4221 if test $ac_compiler_gnu = yes; then
4222   GCC=yes
4223 else
4224   GCC=
4225 fi
4226 ac_test_CFLAGS=${CFLAGS+set}
4227 ac_save_CFLAGS=$CFLAGS
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4229 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4230 if test "${ac_cv_prog_cc_g+set}" = set; then :
4231   $as_echo_n "(cached) " >&6
4232 else
4233   ac_save_c_werror_flag=$ac_c_werror_flag
4234    ac_c_werror_flag=yes
4235    ac_cv_prog_cc_g=no
4236    CFLAGS="-g"
4237    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h.  */
4239
4240 int
4241 main ()
4242 {
4243
4244   ;
4245   return 0;
4246 }
4247 _ACEOF
4248 if ac_fn_c_try_compile "$LINENO"; then :
4249   ac_cv_prog_cc_g=yes
4250 else
4251   CFLAGS=""
4252       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h.  */
4254
4255 int
4256 main ()
4257 {
4258
4259   ;
4260   return 0;
4261 }
4262 _ACEOF
4263 if ac_fn_c_try_compile "$LINENO"; then :
4264
4265 else
4266   ac_c_werror_flag=$ac_save_c_werror_flag
4267          CFLAGS="-g"
4268          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h.  */
4270
4271 int
4272 main ()
4273 {
4274
4275   ;
4276   return 0;
4277 }
4278 _ACEOF
4279 if ac_fn_c_try_compile "$LINENO"; then :
4280   ac_cv_prog_cc_g=yes
4281 fi
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283 fi
4284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285 fi
4286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287    ac_c_werror_flag=$ac_save_c_werror_flag
4288 fi
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4290 $as_echo "$ac_cv_prog_cc_g" >&6; }
4291 if test "$ac_test_CFLAGS" = set; then
4292   CFLAGS=$ac_save_CFLAGS
4293 elif test $ac_cv_prog_cc_g = yes; then
4294   if test "$GCC" = yes; then
4295     CFLAGS="-g -O2"
4296   else
4297     CFLAGS="-g"
4298   fi
4299 else
4300   if test "$GCC" = yes; then
4301     CFLAGS="-O2"
4302   else
4303     CFLAGS=
4304   fi
4305 fi
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4307 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4308 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4309   $as_echo_n "(cached) " >&6
4310 else
4311   ac_cv_prog_cc_c89=no
4312 ac_save_CC=$CC
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h.  */
4315 #include <stdarg.h>
4316 #include <stdio.h>
4317 #include <sys/types.h>
4318 #include <sys/stat.h>
4319 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4320 struct buf { int x; };
4321 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4322 static char *e (p, i)
4323      char **p;
4324      int i;
4325 {
4326   return p[i];
4327 }
4328 static char *f (char * (*g) (char **, int), char **p, ...)
4329 {
4330   char *s;
4331   va_list v;
4332   va_start (v,p);
4333   s = g (p, va_arg (v,int));
4334   va_end (v);
4335   return s;
4336 }
4337
4338 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4339    function prototypes and stuff, but not '\xHH' hex character constants.
4340    These don't provoke an error unfortunately, instead are silently treated
4341    as 'x'.  The following induces an error, until -std is added to get
4342    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4343    array size at least.  It's necessary to write '\x00'==0 to get something
4344    that's true only with -std.  */
4345 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4346
4347 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4348    inside strings and character constants.  */
4349 #define FOO(x) 'x'
4350 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4351
4352 int test (int i, double x);
4353 struct s1 {int (*f) (int a);};
4354 struct s2 {int (*f) (double a);};
4355 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4356 int argc;
4357 char **argv;
4358 int
4359 main ()
4360 {
4361 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4362   ;
4363   return 0;
4364 }
4365 _ACEOF
4366 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4367         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4368 do
4369   CC="$ac_save_CC $ac_arg"
4370   if ac_fn_c_try_compile "$LINENO"; then :
4371   ac_cv_prog_cc_c89=$ac_arg
4372 fi
4373 rm -f core conftest.err conftest.$ac_objext
4374   test "x$ac_cv_prog_cc_c89" != "xno" && break
4375 done
4376 rm -f conftest.$ac_ext
4377 CC=$ac_save_CC
4378
4379 fi
4380 # AC_CACHE_VAL
4381 case "x$ac_cv_prog_cc_c89" in
4382   x)
4383     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4384 $as_echo "none needed" >&6; } ;;
4385   xno)
4386     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4387 $as_echo "unsupported" >&6; } ;;
4388   *)
4389     CC="$CC $ac_cv_prog_cc_c89"
4390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4391 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4392 esac
4393 if test "x$ac_cv_prog_cc_c89" != xno; then :
4394
4395 fi
4396
4397 ac_ext=c
4398 ac_cpp='$CPP $CPPFLAGS'
4399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4402 DEPDIR="${am__leading_dot}deps"
4403
4404 ac_config_commands="$ac_config_commands depfiles"
4405
4406
4407 am_make=${MAKE-make}
4408 cat > confinc << 'END'
4409 am__doit:
4410         @echo this is the am__doit target
4411 .PHONY: am__doit
4412 END
4413 # If we don't find an include directive, just comment out the code.
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4415 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4416 am__include="#"
4417 am__quote=
4418 _am_result=none
4419 # First try GNU make style include.
4420 echo "include confinc" > confmf
4421 # Ignore all kinds of additional output from `make'.
4422 case `$am_make -s -f confmf 2> /dev/null` in #(
4423 *the\ am__doit\ target*)
4424   am__include=include
4425   am__quote=
4426   _am_result=GNU
4427   ;;
4428 esac
4429 # Now try BSD make style include.
4430 if test "$am__include" = "#"; then
4431    echo '.include "confinc"' > confmf
4432    case `$am_make -s -f confmf 2> /dev/null` in #(
4433    *the\ am__doit\ target*)
4434      am__include=.include
4435      am__quote="\""
4436      _am_result=BSD
4437      ;;
4438    esac
4439 fi
4440
4441
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4443 $as_echo "$_am_result" >&6; }
4444 rm -f confinc confmf
4445
4446 # Check whether --enable-dependency-tracking was given.
4447 if test "${enable_dependency_tracking+set}" = set; then :
4448   enableval=$enable_dependency_tracking;
4449 fi
4450
4451 if test "x$enable_dependency_tracking" != xno; then
4452   am_depcomp="$ac_aux_dir/depcomp"
4453   AMDEPBACKSLASH='\'
4454 fi
4455  if test "x$enable_dependency_tracking" != xno; then
4456   AMDEP_TRUE=
4457   AMDEP_FALSE='#'
4458 else
4459   AMDEP_TRUE='#'
4460   AMDEP_FALSE=
4461 fi
4462
4463
4464
4465 depcc="$CC"   am_compiler_list=
4466
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4468 $as_echo_n "checking dependency style of $depcc... " >&6; }
4469 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4470   $as_echo_n "(cached) " >&6
4471 else
4472   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4473   # We make a subdir and do the tests there.  Otherwise we can end up
4474   # making bogus files that we don't know about and never remove.  For
4475   # instance it was reported that on HP-UX the gcc test will end up
4476   # making a dummy file named `D' -- because `-MD' means `put the output
4477   # in D'.
4478   mkdir conftest.dir
4479   # Copy depcomp to subdir because otherwise we won't find it if we're
4480   # using a relative directory.
4481   cp "$am_depcomp" conftest.dir
4482   cd conftest.dir
4483   # We will build objects and dependencies in a subdirectory because
4484   # it helps to detect inapplicable dependency modes.  For instance
4485   # both Tru64's cc and ICC support -MD to output dependencies as a
4486   # side effect of compilation, but ICC will put the dependencies in
4487   # the current directory while Tru64 will put them in the object
4488   # directory.
4489   mkdir sub
4490
4491   am_cv_CC_dependencies_compiler_type=none
4492   if test "$am_compiler_list" = ""; then
4493      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4494   fi
4495   am__universal=false
4496   case " $depcc " in #(
4497      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4498      esac
4499
4500   for depmode in $am_compiler_list; do
4501     # Setup a source with many dependencies, because some compilers
4502     # like to wrap large dependency lists on column 80 (with \), and
4503     # we should not choose a depcomp mode which is confused by this.
4504     #
4505     # We need to recreate these files for each test, as the compiler may
4506     # overwrite some of them when testing with obscure command lines.
4507     # This happens at least with the AIX C compiler.
4508     : > sub/conftest.c
4509     for i in 1 2 3 4 5 6; do
4510       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4511       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4512       # Solaris 8's {/usr,}/bin/sh.
4513       touch sub/conftst$i.h
4514     done
4515     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4516
4517     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4518     # mode.  It turns out that the SunPro C++ compiler does not properly
4519     # handle `-M -o', and we need to detect this.  Also, some Intel
4520     # versions had trouble with output in subdirs
4521     am__obj=sub/conftest.${OBJEXT-o}
4522     am__minus_obj="-o $am__obj"
4523     case $depmode in
4524     gcc)
4525       # This depmode causes a compiler race in universal mode.
4526       test "$am__universal" = false || continue
4527       ;;
4528     nosideeffect)
4529       # after this tag, mechanisms are not by side-effect, so they'll
4530       # only be used when explicitly requested
4531       if test "x$enable_dependency_tracking" = xyes; then
4532         continue
4533       else
4534         break
4535       fi
4536       ;;
4537     msvisualcpp | msvcmsys)
4538       # This compiler won't grok `-c -o', but also, the minuso test has
4539       # not run yet.  These depmodes are late enough in the game, and
4540       # so weak that their functioning should not be impacted.
4541       am__obj=conftest.${OBJEXT-o}
4542       am__minus_obj=
4543       ;;
4544     none) break ;;
4545     esac
4546     if depmode=$depmode \
4547        source=sub/conftest.c object=$am__obj \
4548        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4549        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4550          >/dev/null 2>conftest.err &&
4551        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4552        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4553        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4554        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4555       # icc doesn't choke on unknown options, it will just issue warnings
4556       # or remarks (even with -Werror).  So we grep stderr for any message
4557       # that says an option was ignored or not supported.
4558       # When given -MP, icc 7.0 and 7.1 complain thusly:
4559       #   icc: Command line warning: ignoring option '-M'; no argument required
4560       # The diagnosis changed in icc 8.0:
4561       #   icc: Command line remark: option '-MP' not supported
4562       if (grep 'ignoring option' conftest.err ||
4563           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4564         am_cv_CC_dependencies_compiler_type=$depmode
4565         break
4566       fi
4567     fi
4568   done
4569
4570   cd ..
4571   rm -rf conftest.dir
4572 else
4573   am_cv_CC_dependencies_compiler_type=none
4574 fi
4575
4576 fi
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4578 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4579 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4580
4581  if
4582   test "x$enable_dependency_tracking" != xno \
4583   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4584   am__fastdepCC_TRUE=
4585   am__fastdepCC_FALSE='#'
4586 else
4587   am__fastdepCC_TRUE='#'
4588   am__fastdepCC_FALSE=
4589 fi
4590
4591
4592 ac_ext=c
4593 ac_cpp='$CPP $CPPFLAGS'
4594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4598 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4599 # On Suns, sometimes $CPP names a directory.
4600 if test -n "$CPP" && test -d "$CPP"; then
4601   CPP=
4602 fi
4603 if test -z "$CPP"; then
4604   if test "${ac_cv_prog_CPP+set}" = set; then :
4605   $as_echo_n "(cached) " >&6
4606 else
4607       # Double quotes because CPP needs to be expanded
4608     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4609     do
4610       ac_preproc_ok=false
4611 for ac_c_preproc_warn_flag in '' yes
4612 do
4613   # Use a header file that comes with gcc, so configuring glibc
4614   # with a fresh cross-compiler works.
4615   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4616   # <limits.h> exists even on freestanding compilers.
4617   # On the NeXT, cc -E runs the code through the compiler's parser,
4618   # not just through cpp. "Syntax error" is here to catch this case.
4619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h.  */
4621 #ifdef __STDC__
4622 # include <limits.h>
4623 #else
4624 # include <assert.h>
4625 #endif
4626                      Syntax error
4627 _ACEOF
4628 if ac_fn_c_try_cpp "$LINENO"; then :
4629
4630 else
4631   # Broken: fails on valid input.
4632 continue
4633 fi
4634 rm -f conftest.err conftest.$ac_ext
4635
4636   # OK, works on sane cases.  Now check whether nonexistent headers
4637   # can be detected and how.
4638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h.  */
4640 #include <ac_nonexistent.h>
4641 _ACEOF
4642 if ac_fn_c_try_cpp "$LINENO"; then :
4643   # Broken: success on invalid input.
4644 continue
4645 else
4646   # Passes both tests.
4647 ac_preproc_ok=:
4648 break
4649 fi
4650 rm -f conftest.err conftest.$ac_ext
4651
4652 done
4653 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4654 rm -f conftest.err conftest.$ac_ext
4655 if $ac_preproc_ok; then :
4656   break
4657 fi
4658
4659     done
4660     ac_cv_prog_CPP=$CPP
4661
4662 fi
4663   CPP=$ac_cv_prog_CPP
4664 else
4665   ac_cv_prog_CPP=$CPP
4666 fi
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4668 $as_echo "$CPP" >&6; }
4669 ac_preproc_ok=false
4670 for ac_c_preproc_warn_flag in '' yes
4671 do
4672   # Use a header file that comes with gcc, so configuring glibc
4673   # with a fresh cross-compiler works.
4674   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4675   # <limits.h> exists even on freestanding compilers.
4676   # On the NeXT, cc -E runs the code through the compiler's parser,
4677   # not just through cpp. "Syntax error" is here to catch this case.
4678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h.  */
4680 #ifdef __STDC__
4681 # include <limits.h>
4682 #else
4683 # include <assert.h>
4684 #endif
4685                      Syntax error
4686 _ACEOF
4687 if ac_fn_c_try_cpp "$LINENO"; then :
4688
4689 else
4690   # Broken: fails on valid input.
4691 continue
4692 fi
4693 rm -f conftest.err conftest.$ac_ext
4694
4695   # OK, works on sane cases.  Now check whether nonexistent headers
4696   # can be detected and how.
4697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h.  */
4699 #include <ac_nonexistent.h>
4700 _ACEOF
4701 if ac_fn_c_try_cpp "$LINENO"; then :
4702   # Broken: success on invalid input.
4703 continue
4704 else
4705   # Passes both tests.
4706 ac_preproc_ok=:
4707 break
4708 fi
4709 rm -f conftest.err conftest.$ac_ext
4710
4711 done
4712 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4713 rm -f conftest.err conftest.$ac_ext
4714 if $ac_preproc_ok; then :
4715
4716 else
4717   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4719 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4720 See \`config.log' for more details." "$LINENO" 5; }
4721 fi
4722
4723 ac_ext=c
4724 ac_cpp='$CPP $CPPFLAGS'
4725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4728
4729
4730
4731
4732
4733 # Make sure we can run config.sub.
4734 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4735   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4736
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4738 $as_echo_n "checking build system type... " >&6; }
4739 if test "${ac_cv_build+set}" = set; then :
4740   $as_echo_n "(cached) " >&6
4741 else
4742   ac_build_alias=$build_alias
4743 test "x$ac_build_alias" = x &&
4744   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4745 test "x$ac_build_alias" = x &&
4746   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4747 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4748   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4749
4750 fi
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4752 $as_echo "$ac_cv_build" >&6; }
4753 case $ac_cv_build in
4754 *-*-*) ;;
4755 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4756 esac
4757 build=$ac_cv_build
4758 ac_save_IFS=$IFS; IFS='-'
4759 set x $ac_cv_build
4760 shift
4761 build_cpu=$1
4762 build_vendor=$2
4763 shift; shift
4764 # Remember, the first character of IFS is used to create $*,
4765 # except with old shells:
4766 build_os=$*
4767 IFS=$ac_save_IFS
4768 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4769
4770
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4772 $as_echo_n "checking host system type... " >&6; }
4773 if test "${ac_cv_host+set}" = set; then :
4774   $as_echo_n "(cached) " >&6
4775 else
4776   if test "x$host_alias" = x; then
4777   ac_cv_host=$ac_cv_build
4778 else
4779   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4780     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4781 fi
4782
4783 fi
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4785 $as_echo "$ac_cv_host" >&6; }
4786 case $ac_cv_host in
4787 *-*-*) ;;
4788 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4789 esac
4790 host=$ac_cv_host
4791 ac_save_IFS=$IFS; IFS='-'
4792 set x $ac_cv_host
4793 shift
4794 host_cpu=$1
4795 host_vendor=$2
4796 shift; shift
4797 # Remember, the first character of IFS is used to create $*,
4798 # except with old shells:
4799 host_os=$*
4800 IFS=$ac_save_IFS
4801 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4802
4803
4804
4805
4806 if test -n "$ac_tool_prefix"; then
4807   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4808 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 $as_echo_n "checking for $ac_word... " >&6; }
4811 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4812   $as_echo_n "(cached) " >&6
4813 else
4814   if test -n "$RANLIB"; then
4815   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4816 else
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4819 do
4820   IFS=$as_save_IFS
4821   test -z "$as_dir" && as_dir=.
4822     for ac_exec_ext in '' $ac_executable_extensions; do
4823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826     break 2
4827   fi
4828 done
4829   done
4830 IFS=$as_save_IFS
4831
4832 fi
4833 fi
4834 RANLIB=$ac_cv_prog_RANLIB
4835 if test -n "$RANLIB"; then
4836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4837 $as_echo "$RANLIB" >&6; }
4838 else
4839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4841 fi
4842
4843
4844 fi
4845 if test -z "$ac_cv_prog_RANLIB"; then
4846   ac_ct_RANLIB=$RANLIB
4847   # Extract the first word of "ranlib", so it can be a program name with args.
4848 set dummy ranlib; ac_word=$2
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850 $as_echo_n "checking for $ac_word... " >&6; }
4851 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4852   $as_echo_n "(cached) " >&6
4853 else
4854   if test -n "$ac_ct_RANLIB"; then
4855   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4856 else
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4859 do
4860   IFS=$as_save_IFS
4861   test -z "$as_dir" && as_dir=.
4862     for ac_exec_ext in '' $ac_executable_extensions; do
4863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4864     ac_cv_prog_ac_ct_RANLIB="ranlib"
4865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4866     break 2
4867   fi
4868 done
4869   done
4870 IFS=$as_save_IFS
4871
4872 fi
4873 fi
4874 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4875 if test -n "$ac_ct_RANLIB"; then
4876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4877 $as_echo "$ac_ct_RANLIB" >&6; }
4878 else
4879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880 $as_echo "no" >&6; }
4881 fi
4882
4883   if test "x$ac_ct_RANLIB" = x; then
4884     RANLIB=":"
4885   else
4886     case $cross_compiling:$ac_tool_warned in
4887 yes:)
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4890 ac_tool_warned=yes ;;
4891 esac
4892     RANLIB=$ac_ct_RANLIB
4893   fi
4894 else
4895   RANLIB="$ac_cv_prog_RANLIB"
4896 fi
4897
4898 if test "x$CC" != xcc; then
4899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4900 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4901 else
4902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4903 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4904 fi
4905 set dummy $CC; ac_cc=`$as_echo "$2" |
4906                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4907 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4908   $as_echo_n "(cached) " >&6
4909 else
4910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h.  */
4912
4913 int
4914 main ()
4915 {
4916
4917   ;
4918   return 0;
4919 }
4920 _ACEOF
4921 # Make sure it works both with $CC and with simple cc.
4922 # We do the test twice because some compilers refuse to overwrite an
4923 # existing .o file with -o, though they will create one.
4924 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4925 rm -f conftest2.*
4926 if { { case "(($ac_try" in
4927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928   *) ac_try_echo=$ac_try;;
4929 esac
4930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4931 $as_echo "$ac_try_echo"; } >&5
4932   (eval "$ac_try") 2>&5
4933   ac_status=$?
4934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4935   test $ac_status = 0; } &&
4936    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938   *) ac_try_echo=$ac_try;;
4939 esac
4940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4941 $as_echo "$ac_try_echo"; } >&5
4942   (eval "$ac_try") 2>&5
4943   ac_status=$?
4944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4945   test $ac_status = 0; };
4946 then
4947   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4948   if test "x$CC" != xcc; then
4949     # Test first that cc exists at all.
4950     if { ac_try='cc -c conftest.$ac_ext >&5'
4951   { { case "(($ac_try" in
4952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953   *) ac_try_echo=$ac_try;;
4954 esac
4955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4956 $as_echo "$ac_try_echo"; } >&5
4957   (eval "$ac_try") 2>&5
4958   ac_status=$?
4959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4960   test $ac_status = 0; }; }; then
4961       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4962       rm -f conftest2.*
4963       if { { case "(($ac_try" in
4964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965   *) ac_try_echo=$ac_try;;
4966 esac
4967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4968 $as_echo "$ac_try_echo"; } >&5
4969   (eval "$ac_try") 2>&5
4970   ac_status=$?
4971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4972   test $ac_status = 0; } &&
4973          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975   *) ac_try_echo=$ac_try;;
4976 esac
4977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4978 $as_echo "$ac_try_echo"; } >&5
4979   (eval "$ac_try") 2>&5
4980   ac_status=$?
4981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4982   test $ac_status = 0; };
4983       then
4984         # cc works too.
4985         :
4986       else
4987         # cc exists but doesn't like -o.
4988         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4989       fi
4990     fi
4991   fi
4992 else
4993   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4994 fi
4995 rm -f core conftest*
4996
4997 fi
4998 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5000 $as_echo "yes" >&6; }
5001 else
5002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003 $as_echo "no" >&6; }
5004
5005 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5006
5007 fi
5008
5009 # FIXME: we rely on the cache variable name because
5010 # there is no other way.
5011 set dummy $CC
5012 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5013 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5014 if test "$am_t" != yes; then
5015    # Losing compiler, so override with the script.
5016    # FIXME: It is wrong to rewrite CC.
5017    # But if we don't then we get into trouble of one sort or another.
5018    # A longer-term fix would be to have automake use am__CC in this case,
5019    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5020    CC="$am_aux_dir/compile $CC"
5021 fi
5022
5023
5024
5025
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5027 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5028 if test "${ac_cv_path_GREP+set}" = set; then :
5029   $as_echo_n "(cached) " >&6
5030 else
5031   if test -z "$GREP"; then
5032   ac_path_GREP_found=false
5033   # Loop through the user's path and test for each of PROGNAME-LIST
5034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5036 do
5037   IFS=$as_save_IFS
5038   test -z "$as_dir" && as_dir=.
5039     for ac_prog in grep ggrep; do
5040     for ac_exec_ext in '' $ac_executable_extensions; do
5041       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5042       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5043 # Check for GNU ac_path_GREP and select it if it is found.
5044   # Check for GNU $ac_path_GREP
5045 case `"$ac_path_GREP" --version 2>&1` in
5046 *GNU*)
5047   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5048 *)
5049   ac_count=0
5050   $as_echo_n 0123456789 >"conftest.in"
5051   while :
5052   do
5053     cat "conftest.in" "conftest.in" >"conftest.tmp"
5054     mv "conftest.tmp" "conftest.in"
5055     cp "conftest.in" "conftest.nl"
5056     $as_echo 'GREP' >> "conftest.nl"
5057     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5058     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5059     as_fn_arith $ac_count + 1 && ac_count=$as_val
5060     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5061       # Best one so far, save it but keep looking for a better one
5062       ac_cv_path_GREP="$ac_path_GREP"
5063       ac_path_GREP_max=$ac_count
5064     fi
5065     # 10*(2^10) chars as input seems more than enough
5066     test $ac_count -gt 10 && break
5067   done
5068   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5069 esac
5070
5071       $ac_path_GREP_found && break 3
5072     done
5073   done
5074   done
5075 IFS=$as_save_IFS
5076   if test -z "$ac_cv_path_GREP"; then
5077     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5078   fi
5079 else
5080   ac_cv_path_GREP=$GREP
5081 fi
5082
5083 fi
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5085 $as_echo "$ac_cv_path_GREP" >&6; }
5086  GREP="$ac_cv_path_GREP"
5087
5088
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5090 $as_echo_n "checking for egrep... " >&6; }
5091 if test "${ac_cv_path_EGREP+set}" = set; then :
5092   $as_echo_n "(cached) " >&6
5093 else
5094   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5095    then ac_cv_path_EGREP="$GREP -E"
5096    else
5097      if test -z "$EGREP"; then
5098   ac_path_EGREP_found=false
5099   # Loop through the user's path and test for each of PROGNAME-LIST
5100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5102 do
5103   IFS=$as_save_IFS
5104   test -z "$as_dir" && as_dir=.
5105     for ac_prog in egrep; do
5106     for ac_exec_ext in '' $ac_executable_extensions; do
5107       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5108       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5109 # Check for GNU ac_path_EGREP and select it if it is found.
5110   # Check for GNU $ac_path_EGREP
5111 case `"$ac_path_EGREP" --version 2>&1` in
5112 *GNU*)
5113   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5114 *)
5115   ac_count=0
5116   $as_echo_n 0123456789 >"conftest.in"
5117   while :
5118   do
5119     cat "conftest.in" "conftest.in" >"conftest.tmp"
5120     mv "conftest.tmp" "conftest.in"
5121     cp "conftest.in" "conftest.nl"
5122     $as_echo 'EGREP' >> "conftest.nl"
5123     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5124     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5125     as_fn_arith $ac_count + 1 && ac_count=$as_val
5126     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5127       # Best one so far, save it but keep looking for a better one
5128       ac_cv_path_EGREP="$ac_path_EGREP"
5129       ac_path_EGREP_max=$ac_count
5130     fi
5131     # 10*(2^10) chars as input seems more than enough
5132     test $ac_count -gt 10 && break
5133   done
5134   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5135 esac
5136
5137       $ac_path_EGREP_found && break 3
5138     done
5139   done
5140   done
5141 IFS=$as_save_IFS
5142   if test -z "$ac_cv_path_EGREP"; then
5143     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5144   fi
5145 else
5146   ac_cv_path_EGREP=$EGREP
5147 fi
5148
5149    fi
5150 fi
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5152 $as_echo "$ac_cv_path_EGREP" >&6; }
5153  EGREP="$ac_cv_path_EGREP"
5154
5155
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5157 $as_echo_n "checking for ANSI C header files... " >&6; }
5158 if test "${ac_cv_header_stdc+set}" = set; then :
5159   $as_echo_n "(cached) " >&6
5160 else
5161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h.  */
5163 #include <stdlib.h>
5164 #include <stdarg.h>
5165 #include <string.h>
5166 #include <float.h>
5167
5168 int
5169 main ()
5170 {
5171
5172   ;
5173   return 0;
5174 }
5175 _ACEOF
5176 if ac_fn_c_try_compile "$LINENO"; then :
5177   ac_cv_header_stdc=yes
5178 else
5179   ac_cv_header_stdc=no
5180 fi
5181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182
5183 if test $ac_cv_header_stdc = yes; then
5184   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h.  */
5187 #include <string.h>
5188
5189 _ACEOF
5190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5191   $EGREP "memchr" >/dev/null 2>&1; then :
5192
5193 else
5194   ac_cv_header_stdc=no
5195 fi
5196 rm -f conftest*
5197
5198 fi
5199
5200 if test $ac_cv_header_stdc = yes; then
5201   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h.  */
5204 #include <stdlib.h>
5205
5206 _ACEOF
5207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5208   $EGREP "free" >/dev/null 2>&1; then :
5209
5210 else
5211   ac_cv_header_stdc=no
5212 fi
5213 rm -f conftest*
5214
5215 fi
5216
5217 if test $ac_cv_header_stdc = yes; then
5218   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5219   if test "$cross_compiling" = yes; then :
5220   :
5221 else
5222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5223 /* end confdefs.h.  */
5224 #include <ctype.h>
5225 #include <stdlib.h>
5226 #if ((' ' & 0x0FF) == 0x020)
5227 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5228 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5229 #else
5230 # define ISLOWER(c) \
5231                    (('a' <= (c) && (c) <= 'i') \
5232                      || ('j' <= (c) && (c) <= 'r') \
5233                      || ('s' <= (c) && (c) <= 'z'))
5234 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5235 #endif
5236
5237 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5238 int
5239 main ()
5240 {
5241   int i;
5242   for (i = 0; i < 256; i++)
5243     if (XOR (islower (i), ISLOWER (i))
5244         || toupper (i) != TOUPPER (i))
5245       return 2;
5246   return 0;
5247 }
5248 _ACEOF
5249 if ac_fn_c_try_run "$LINENO"; then :
5250
5251 else
5252   ac_cv_header_stdc=no
5253 fi
5254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5255   conftest.$ac_objext conftest.beam conftest.$ac_ext
5256 fi
5257
5258 fi
5259 fi
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5261 $as_echo "$ac_cv_header_stdc" >&6; }
5262 if test $ac_cv_header_stdc = yes; then
5263
5264 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5265
5266 fi
5267
5268 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5269 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5270                   inttypes.h stdint.h unistd.h
5271 do :
5272   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5273 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5274 "
5275 eval as_val=\$$as_ac_Header
5276    if test "x$as_val" = x""yes; then :
5277   cat >>confdefs.h <<_ACEOF
5278 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5279 _ACEOF
5280
5281 fi
5282
5283 done
5284
5285
5286
5287
5288
5289   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5290 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5291   MINIX=yes
5292 else
5293   MINIX=
5294 fi
5295
5296
5297   if test "$MINIX" = yes; then
5298
5299 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5300
5301
5302 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5303
5304
5305 $as_echo "#define _MINIX 1" >>confdefs.h
5306
5307   fi
5308
5309         case "$host_os" in
5310     hpux*)
5311
5312 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5313
5314       ;;
5315   esac
5316
5317
5318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5319 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5320 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5321   $as_echo_n "(cached) " >&6
5322 else
5323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h.  */
5325
5326 #         define __EXTENSIONS__ 1
5327           $ac_includes_default
5328 int
5329 main ()
5330 {
5331
5332   ;
5333   return 0;
5334 }
5335 _ACEOF
5336 if ac_fn_c_try_compile "$LINENO"; then :
5337   ac_cv_safe_to_define___extensions__=yes
5338 else
5339   ac_cv_safe_to_define___extensions__=no
5340 fi
5341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5342 fi
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5344 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5345   test $ac_cv_safe_to_define___extensions__ = yes &&
5346     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5347
5348   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5349
5350   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5351
5352   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5353
5354   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366   # IEEE behaviour is the default on all CPUs except Alpha and SH
5367   # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5368   # and the GCC 4.1.2 manual).
5369   case "$host_cpu" in
5370     alpha*)
5371       # On Alpha systems, a compiler option provides the behaviour.
5372       # See the ieee(3) manual page, also available at
5373       # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5374       if test -n "$GCC"; then
5375         # GCC has the option -mieee.
5376         CPPFLAGS="$CPPFLAGS -mieee"
5377       else
5378         # Compaq (ex-DEC) C has the option -ieee.
5379         CPPFLAGS="$CPPFLAGS -ieee"
5380       fi
5381       ;;
5382     sh*)
5383       if test -n "$GCC"; then
5384         # GCC has the option -mieee.
5385         CPPFLAGS="$CPPFLAGS -mieee"
5386       fi
5387       ;;
5388   esac
5389
5390
5391
5392
5393
5394
5395   # Check whether --enable-threads was given.
5396 if test "${enable_threads+set}" = set; then :
5397   enableval=$enable_threads; gl_use_threads=$enableval
5398 else
5399   if test -n "$gl_use_threads_default"; then
5400        gl_use_threads="$gl_use_threads_default"
5401      else
5402        case "$host_os" in
5403                                                                osf*) gl_use_threads=no ;;
5404          cygwin*)
5405                case `uname -r` in
5406                  1.[0-5].*) gl_use_threads=no ;;
5407                  *)         gl_use_threads=yes ;;
5408                esac
5409                ;;
5410          *)    gl_use_threads=yes ;;
5411        esac
5412      fi
5413
5414 fi
5415
5416   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5417     # For using <pthread.h>:
5418     case "$host_os" in
5419       osf*)
5420         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5421         # groks <pthread.h>. cc also understands the flag -pthread, but
5422         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5423         # 2. putting a flag into CPPFLAGS that has an effect on the linker
5424         # causes the AC_TRY_LINK test below to succeed unexpectedly,
5425         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5426         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5427         ;;
5428     esac
5429     # Some systems optimize for single-threaded programs by default, and
5430     # need special flags to disable these optimizations. For example, the
5431     # definition of 'errno' in <errno.h>.
5432     case "$host_os" in
5433       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
5434       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
5435     esac
5436   fi
5437
5438
5439
5440
5441   # Code from module alloca-opt:
5442   # Code from module alloca-opt-tests:
5443   # Code from module arg-nonnull:
5444   # Code from module array-mergesort:
5445   # Code from module array-mergesort-tests:
5446   # Code from module c++defs:
5447   # Code from module c-ctype:
5448   # Code from module c-ctype-tests:
5449   # Code from module c-strcase:
5450   # Code from module c-strcase-tests:
5451   # Code from module c-strcaseeq:
5452   # Code from module configmake:
5453   # Code from module environ:
5454   # Code from module environ-tests:
5455   # Code from module errno:
5456   # Code from module errno-tests:
5457   # Code from module error:
5458   # Code from module exitfail:
5459   # Code from module extensions:
5460
5461   # Code from module float:
5462   # Code from module fpieee:
5463
5464   # Code from module fpucw:
5465   # Code from module frexpl-nolibm:
5466   # Code from module frexpl-nolibm-tests:
5467   # Code from module fseterr:
5468   # Code from module fseterr-tests:
5469   # Code from module getpagesize:
5470   # Code from module gettext-h:
5471   # Code from module gperf:
5472   # Code from module havelib:
5473   # Code from module iconv:
5474   # Code from module iconv-h:
5475   # Code from module iconv-h-tests:
5476   # Code from module iconv-tests:
5477   # Code from module iconv_open:
5478   # Code from module include_next:
5479   # Code from module inline:
5480   # Code from module intprops:
5481   # Code from module isnand-nolibm:
5482   # Code from module isnand-nolibm-tests:
5483   # Code from module isnanf-nolibm:
5484   # Code from module isnanf-nolibm-tests:
5485   # Code from module isnanl-nolibm:
5486   # Code from module isnanl-nolibm-tests:
5487   # Code from module localcharset:
5488   # Code from module locale:
5489   # Code from module locale-tests:
5490   # Code from module localename:
5491   # Code from module localename-tests:
5492   # Code from module lock:
5493   # Code from module lock-tests:
5494   # Code from module malloc-posix:
5495   # Code from module malloca:
5496   # Code from module malloca-tests:
5497   # Code from module math:
5498   # Code from module math-tests:
5499   # Code from module mbchar:
5500   # Code from module mbiter:
5501   # Code from module mbrtowc:
5502   # Code from module mbrtowc-tests:
5503   # Code from module mbsinit:
5504   # Code from module mbsinit-tests:
5505   # Code from module mbsnlen:
5506   # Code from module memchr:
5507   # Code from module memchr-tests:
5508   # Code from module memcmp2:
5509   # Code from module memxfrm:
5510   # Code from module minmax:
5511   # Code from module multiarch:
5512   # Code from module nocrash:
5513   # Code from module printf-frexp:
5514   # Code from module printf-frexp-tests:
5515   # Code from module printf-frexpl:
5516   # Code from module printf-frexpl-tests:
5517   # Code from module printf-safe:
5518   # Code from module progname:
5519   # Code from module putenv:
5520   # Code from module relocatable-lib-lgpl:
5521   # Code from module setenv:
5522   # Code from module setenv-tests:
5523   # Code from module signbit:
5524   # Code from module signbit-tests:
5525   # Code from module size_max:
5526   # Code from module stdbool:
5527   # Code from module stdbool-tests:
5528   # Code from module stddef:
5529   # Code from module stddef-tests:
5530   # Code from module stdint:
5531   # Code from module stdint-tests:
5532   # Code from module stdlib:
5533   # Code from module stdlib-tests:
5534   # Code from module streq:
5535   # Code from module strerror:
5536   # Code from module strerror-tests:
5537   # Code from module striconveh:
5538   # Code from module striconveh-tests:
5539   # Code from module striconveha:
5540   # Code from module striconveha-tests:
5541   # Code from module string:
5542   # Code from module string-tests:
5543   # Code from module strncat:
5544   # Code from module strncat-tests:
5545   # Code from module thread:
5546   # Code from module threadlib:
5547
5548
5549
5550   # Code from module unicase/base:
5551   # Code from module unicase/cased:
5552   # Code from module unicase/cased-tests:
5553   # Code from module unicase/empty-prefix-context:
5554   # Code from module unicase/empty-suffix-context:
5555   # Code from module unicase/ignorable:
5556   # Code from module unicase/ignorable-tests:
5557   # Code from module unicase/locale-language:
5558   # Code from module unicase/locale-language-tests:
5559   # Code from module unicase/special-casing:
5560   # Code from module unicase/tocasefold:
5561   # Code from module unicase/tolower:
5562   # Code from module unicase/tolower-tests:
5563   # Code from module unicase/totitle:
5564   # Code from module unicase/totitle-tests:
5565   # Code from module unicase/toupper:
5566   # Code from module unicase/toupper-tests:
5567   # Code from module unicase/u16-casecmp:
5568   # Code from module unicase/u16-casecmp-tests:
5569   # Code from module unicase/u16-casecoll:
5570   # Code from module unicase/u16-casecoll-tests:
5571   # Code from module unicase/u16-casefold:
5572   # Code from module unicase/u16-casefold-tests:
5573   # Code from module unicase/u16-casemap:
5574   # Code from module unicase/u16-casexfrm:
5575   # Code from module unicase/u16-ct-casefold:
5576   # Code from module unicase/u16-ct-tolower:
5577   # Code from module unicase/u16-ct-totitle:
5578   # Code from module unicase/u16-ct-toupper:
5579   # Code from module unicase/u16-is-cased:
5580   # Code from module unicase/u16-is-cased-tests:
5581   # Code from module unicase/u16-is-casefolded:
5582   # Code from module unicase/u16-is-casefolded-tests:
5583   # Code from module unicase/u16-is-invariant:
5584   # Code from module unicase/u16-is-lowercase:
5585   # Code from module unicase/u16-is-lowercase-tests:
5586   # Code from module unicase/u16-is-titlecase:
5587   # Code from module unicase/u16-is-titlecase-tests:
5588   # Code from module unicase/u16-is-uppercase:
5589   # Code from module unicase/u16-is-uppercase-tests:
5590   # Code from module unicase/u16-tolower:
5591   # Code from module unicase/u16-tolower-tests:
5592   # Code from module unicase/u16-totitle:
5593   # Code from module unicase/u16-totitle-tests:
5594   # Code from module unicase/u16-toupper:
5595   # Code from module unicase/u16-toupper-tests:
5596   # Code from module unicase/u32-casecmp:
5597   # Code from module unicase/u32-casecmp-tests:
5598   # Code from module unicase/u32-casecoll:
5599   # Code from module unicase/u32-casecoll-tests:
5600   # Code from module unicase/u32-casefold:
5601   # Code from module unicase/u32-casefold-tests:
5602   # Code from module unicase/u32-casemap:
5603   # Code from module unicase/u32-casexfrm:
5604   # Code from module unicase/u32-ct-casefold:
5605   # Code from module unicase/u32-ct-tolower:
5606   # Code from module unicase/u32-ct-totitle:
5607   # Code from module unicase/u32-ct-toupper:
5608   # Code from module unicase/u32-is-cased:
5609   # Code from module unicase/u32-is-cased-tests:
5610   # Code from module unicase/u32-is-casefolded:
5611   # Code from module unicase/u32-is-casefolded-tests:
5612   # Code from module unicase/u32-is-invariant:
5613   # Code from module unicase/u32-is-lowercase:
5614   # Code from module unicase/u32-is-lowercase-tests:
5615   # Code from module unicase/u32-is-titlecase:
5616   # Code from module unicase/u32-is-titlecase-tests:
5617   # Code from module unicase/u32-is-uppercase:
5618   # Code from module unicase/u32-is-uppercase-tests:
5619   # Code from module unicase/u32-tolower:
5620   # Code from module unicase/u32-tolower-tests:
5621   # Code from module unicase/u32-totitle:
5622   # Code from module unicase/u32-totitle-tests:
5623   # Code from module unicase/u32-toupper:
5624   # Code from module unicase/u32-toupper-tests:
5625   # Code from module unicase/u8-casecmp:
5626   # Code from module unicase/u8-casecmp-tests:
5627   # Code from module unicase/u8-casecoll:
5628   # Code from module unicase/u8-casecoll-tests:
5629   # Code from module unicase/u8-casefold:
5630   # Code from module unicase/u8-casefold-tests:
5631   # Code from module unicase/u8-casemap:
5632   # Code from module unicase/u8-casexfrm:
5633   # Code from module unicase/u8-ct-casefold:
5634   # Code from module unicase/u8-ct-tolower:
5635   # Code from module unicase/u8-ct-totitle:
5636   # Code from module unicase/u8-ct-toupper:
5637   # Code from module unicase/u8-is-cased:
5638   # Code from module unicase/u8-is-cased-tests:
5639   # Code from module unicase/u8-is-casefolded:
5640   # Code from module unicase/u8-is-casefolded-tests:
5641   # Code from module unicase/u8-is-invariant:
5642   # Code from module unicase/u8-is-lowercase:
5643   # Code from module unicase/u8-is-lowercase-tests:
5644   # Code from module unicase/u8-is-titlecase:
5645   # Code from module unicase/u8-is-titlecase-tests:
5646   # Code from module unicase/u8-is-uppercase:
5647   # Code from module unicase/u8-is-uppercase-tests:
5648   # Code from module unicase/u8-tolower:
5649   # Code from module unicase/u8-tolower-tests:
5650   # Code from module unicase/u8-totitle:
5651   # Code from module unicase/u8-totitle-tests:
5652   # Code from module unicase/u8-toupper:
5653   # Code from module unicase/u8-toupper-tests:
5654   # Code from module unicase/ulc-casecmp:
5655   # Code from module unicase/ulc-casecmp-tests:
5656   # Code from module unicase/ulc-casecoll:
5657   # Code from module unicase/ulc-casecoll-tests:
5658   # Code from module unicase/ulc-casexfrm:
5659   # Code from module uniconv/base:
5660   # Code from module uniconv/u16-conv-from-enc:
5661   # Code from module uniconv/u16-conv-from-enc-tests:
5662   # Code from module uniconv/u16-conv-to-enc:
5663   # Code from module uniconv/u16-conv-to-enc-tests:
5664   # Code from module uniconv/u16-strconv-from-enc:
5665   # Code from module uniconv/u16-strconv-from-enc-tests:
5666   # Code from module uniconv/u16-strconv-from-locale:
5667   # Code from module uniconv/u16-strconv-to-enc:
5668   # Code from module uniconv/u16-strconv-to-enc-tests:
5669   # Code from module uniconv/u16-strconv-to-locale:
5670   # Code from module uniconv/u32-conv-from-enc:
5671   # Code from module uniconv/u32-conv-from-enc-tests:
5672   # Code from module uniconv/u32-conv-to-enc:
5673   # Code from module uniconv/u32-conv-to-enc-tests:
5674   # Code from module uniconv/u32-strconv-from-enc:
5675   # Code from module uniconv/u32-strconv-from-enc-tests:
5676   # Code from module uniconv/u32-strconv-from-locale:
5677   # Code from module uniconv/u32-strconv-to-enc:
5678   # Code from module uniconv/u32-strconv-to-enc-tests:
5679   # Code from module uniconv/u32-strconv-to-locale:
5680   # Code from module uniconv/u8-conv-from-enc:
5681   # Code from module uniconv/u8-conv-from-enc-tests:
5682   # Code from module uniconv/u8-conv-to-enc:
5683   # Code from module uniconv/u8-conv-to-enc-tests:
5684   # Code from module uniconv/u8-strconv-from-enc:
5685   # Code from module uniconv/u8-strconv-from-enc-tests:
5686   # Code from module uniconv/u8-strconv-from-locale:
5687   # Code from module uniconv/u8-strconv-to-enc:
5688   # Code from module uniconv/u8-strconv-to-enc-tests:
5689   # Code from module uniconv/u8-strconv-to-locale:
5690   # Code from module unictype/base:
5691   # Code from module unictype/bidicategory-all:
5692   # Code from module unictype/bidicategory-byname:
5693   # Code from module unictype/bidicategory-byname-tests:
5694   # Code from module unictype/bidicategory-name:
5695   # Code from module unictype/bidicategory-name-tests:
5696   # Code from module unictype/bidicategory-of:
5697   # Code from module unictype/bidicategory-of-tests:
5698   # Code from module unictype/bidicategory-test:
5699   # Code from module unictype/bidicategory-test-tests:
5700   # Code from module unictype/block-all:
5701   # Code from module unictype/block-list:
5702   # Code from module unictype/block-list-tests:
5703   # Code from module unictype/block-of:
5704   # Code from module unictype/block-of-tests:
5705   # Code from module unictype/block-test:
5706   # Code from module unictype/block-test-tests:
5707   # Code from module unictype/category-C:
5708   # Code from module unictype/category-C-tests:
5709   # Code from module unictype/category-Cc:
5710   # Code from module unictype/category-Cc-tests:
5711   # Code from module unictype/category-Cf:
5712   # Code from module unictype/category-Cf-tests:
5713   # Code from module unictype/category-Cn:
5714   # Code from module unictype/category-Cn-tests:
5715   # Code from module unictype/category-Co:
5716   # Code from module unictype/category-Co-tests:
5717   # Code from module unictype/category-Cs:
5718   # Code from module unictype/category-Cs-tests:
5719   # Code from module unictype/category-L:
5720   # Code from module unictype/category-L-tests:
5721   # Code from module unictype/category-Ll:
5722   # Code from module unictype/category-Ll-tests:
5723   # Code from module unictype/category-Lm:
5724   # Code from module unictype/category-Lm-tests:
5725   # Code from module unictype/category-Lo:
5726   # Code from module unictype/category-Lo-tests:
5727   # Code from module unictype/category-Lt:
5728   # Code from module unictype/category-Lt-tests:
5729   # Code from module unictype/category-Lu:
5730   # Code from module unictype/category-Lu-tests:
5731   # Code from module unictype/category-M:
5732   # Code from module unictype/category-M-tests:
5733   # Code from module unictype/category-Mc:
5734   # Code from module unictype/category-Mc-tests:
5735   # Code from module unictype/category-Me:
5736   # Code from module unictype/category-Me-tests:
5737   # Code from module unictype/category-Mn:
5738   # Code from module unictype/category-Mn-tests:
5739   # Code from module unictype/category-N:
5740   # Code from module unictype/category-N-tests:
5741   # Code from module unictype/category-Nd:
5742   # Code from module unictype/category-Nd-tests:
5743   # Code from module unictype/category-Nl:
5744   # Code from module unictype/category-Nl-tests:
5745   # Code from module unictype/category-No:
5746   # Code from module unictype/category-No-tests:
5747   # Code from module unictype/category-P:
5748   # Code from module unictype/category-P-tests:
5749   # Code from module unictype/category-Pc:
5750   # Code from module unictype/category-Pc-tests:
5751   # Code from module unictype/category-Pd:
5752   # Code from module unictype/category-Pd-tests:
5753   # Code from module unictype/category-Pe:
5754   # Code from module unictype/category-Pe-tests:
5755   # Code from module unictype/category-Pf:
5756   # Code from module unictype/category-Pf-tests:
5757   # Code from module unictype/category-Pi:
5758   # Code from module unictype/category-Pi-tests:
5759   # Code from module unictype/category-Po:
5760   # Code from module unictype/category-Po-tests:
5761   # Code from module unictype/category-Ps:
5762   # Code from module unictype/category-Ps-tests:
5763   # Code from module unictype/category-S:
5764   # Code from module unictype/category-S-tests:
5765   # Code from module unictype/category-Sc:
5766   # Code from module unictype/category-Sc-tests:
5767   # Code from module unictype/category-Sk:
5768   # Code from module unictype/category-Sk-tests:
5769   # Code from module unictype/category-Sm:
5770   # Code from module unictype/category-Sm-tests:
5771   # Code from module unictype/category-So:
5772   # Code from module unictype/category-So-tests:
5773   # Code from module unictype/category-Z:
5774   # Code from module unictype/category-Z-tests:
5775   # Code from module unictype/category-Zl:
5776   # Code from module unictype/category-Zl-tests:
5777   # Code from module unictype/category-Zp:
5778   # Code from module unictype/category-Zp-tests:
5779   # Code from module unictype/category-Zs:
5780   # Code from module unictype/category-Zs-tests:
5781   # Code from module unictype/category-all:
5782   # Code from module unictype/category-and:
5783   # Code from module unictype/category-and-not:
5784   # Code from module unictype/category-and-not-tests:
5785   # Code from module unictype/category-and-tests:
5786   # Code from module unictype/category-byname:
5787   # Code from module unictype/category-byname-tests:
5788   # Code from module unictype/category-name:
5789   # Code from module unictype/category-name-tests:
5790   # Code from module unictype/category-none:
5791   # Code from module unictype/category-none-tests:
5792   # Code from module unictype/category-of:
5793   # Code from module unictype/category-of-tests:
5794   # Code from module unictype/category-or:
5795   # Code from module unictype/category-or-tests:
5796   # Code from module unictype/category-test:
5797   # Code from module unictype/category-test-withtable:
5798   # Code from module unictype/category-test-withtable-tests:
5799   # Code from module unictype/combining-class:
5800   # Code from module unictype/combining-class-tests:
5801   # Code from module unictype/ctype-alnum:
5802   # Code from module unictype/ctype-alnum-tests:
5803   # Code from module unictype/ctype-alpha:
5804   # Code from module unictype/ctype-alpha-tests:
5805   # Code from module unictype/ctype-blank:
5806   # Code from module unictype/ctype-blank-tests:
5807   # Code from module unictype/ctype-cntrl:
5808   # Code from module unictype/ctype-cntrl-tests:
5809   # Code from module unictype/ctype-digit:
5810   # Code from module unictype/ctype-digit-tests:
5811   # Code from module unictype/ctype-graph:
5812   # Code from module unictype/ctype-graph-tests:
5813   # Code from module unictype/ctype-lower:
5814   # Code from module unictype/ctype-lower-tests:
5815   # Code from module unictype/ctype-print:
5816   # Code from module unictype/ctype-print-tests:
5817   # Code from module unictype/ctype-punct:
5818   # Code from module unictype/ctype-punct-tests:
5819   # Code from module unictype/ctype-space:
5820   # Code from module unictype/ctype-space-tests:
5821   # Code from module unictype/ctype-upper:
5822   # Code from module unictype/ctype-upper-tests:
5823   # Code from module unictype/ctype-xdigit:
5824   # Code from module unictype/ctype-xdigit-tests:
5825   # Code from module unictype/decimal-digit:
5826   # Code from module unictype/decimal-digit-tests:
5827   # Code from module unictype/digit:
5828   # Code from module unictype/digit-tests:
5829   # Code from module unictype/mirror:
5830   # Code from module unictype/mirror-tests:
5831   # Code from module unictype/numeric:
5832   # Code from module unictype/numeric-tests:
5833   # Code from module unictype/property-all:
5834   # Code from module unictype/property-alphabetic:
5835   # Code from module unictype/property-alphabetic-tests:
5836   # Code from module unictype/property-ascii-hex-digit:
5837   # Code from module unictype/property-ascii-hex-digit-tests:
5838   # Code from module unictype/property-bidi-arabic-digit:
5839   # Code from module unictype/property-bidi-arabic-digit-tests:
5840   # Code from module unictype/property-bidi-arabic-right-to-left:
5841   # Code from module unictype/property-bidi-arabic-right-to-left-tests:
5842   # Code from module unictype/property-bidi-block-separator:
5843   # Code from module unictype/property-bidi-block-separator-tests:
5844   # Code from module unictype/property-bidi-boundary-neutral:
5845   # Code from module unictype/property-bidi-boundary-neutral-tests:
5846   # Code from module unictype/property-bidi-common-separator:
5847   # Code from module unictype/property-bidi-common-separator-tests:
5848   # Code from module unictype/property-bidi-control:
5849   # Code from module unictype/property-bidi-control-tests:
5850   # Code from module unictype/property-bidi-embedding-or-override:
5851   # Code from module unictype/property-bidi-embedding-or-override-tests:
5852   # Code from module unictype/property-bidi-eur-num-separator:
5853   # Code from module unictype/property-bidi-eur-num-separator-tests:
5854   # Code from module unictype/property-bidi-eur-num-terminator:
5855   # Code from module unictype/property-bidi-eur-num-terminator-tests:
5856   # Code from module unictype/property-bidi-european-digit:
5857   # Code from module unictype/property-bidi-european-digit-tests:
5858   # Code from module unictype/property-bidi-hebrew-right-to-left:
5859   # Code from module unictype/property-bidi-hebrew-right-to-left-tests:
5860   # Code from module unictype/property-bidi-left-to-right:
5861   # Code from module unictype/property-bidi-left-to-right-tests:
5862   # Code from module unictype/property-bidi-non-spacing-mark:
5863   # Code from module unictype/property-bidi-non-spacing-mark-tests:
5864   # Code from module unictype/property-bidi-other-neutral:
5865   # Code from module unictype/property-bidi-other-neutral-tests:
5866   # Code from module unictype/property-bidi-pdf:
5867   # Code from module unictype/property-bidi-pdf-tests:
5868   # Code from module unictype/property-bidi-segment-separator:
5869   # Code from module unictype/property-bidi-segment-separator-tests:
5870   # Code from module unictype/property-bidi-whitespace:
5871   # Code from module unictype/property-bidi-whitespace-tests:
5872   # Code from module unictype/property-byname:
5873   # Code from module unictype/property-byname-tests:
5874   # Code from module unictype/property-combining:
5875   # Code from module unictype/property-combining-tests:
5876   # Code from module unictype/property-composite:
5877   # Code from module unictype/property-composite-tests:
5878   # Code from module unictype/property-currency-symbol:
5879   # Code from module unictype/property-currency-symbol-tests:
5880   # Code from module unictype/property-dash:
5881   # Code from module unictype/property-dash-tests:
5882   # Code from module unictype/property-decimal-digit:
5883   # Code from module unictype/property-decimal-digit-tests:
5884   # Code from module unictype/property-default-ignorable-code-point:
5885   # Code from module unictype/property-default-ignorable-code-point-tests:
5886   # Code from module unictype/property-deprecated:
5887   # Code from module unictype/property-deprecated-tests:
5888   # Code from module unictype/property-diacritic:
5889   # Code from module unictype/property-diacritic-tests:
5890   # Code from module unictype/property-extender:
5891   # Code from module unictype/property-extender-tests:
5892   # Code from module unictype/property-format-control:
5893   # Code from module unictype/property-format-control-tests:
5894   # Code from module unictype/property-grapheme-base:
5895   # Code from module unictype/property-grapheme-base-tests:
5896   # Code from module unictype/property-grapheme-extend:
5897   # Code from module unictype/property-grapheme-extend-tests:
5898   # Code from module unictype/property-grapheme-link:
5899   # Code from module unictype/property-grapheme-link-tests:
5900   # Code from module unictype/property-hex-digit:
5901   # Code from module unictype/property-hex-digit-tests:
5902   # Code from module unictype/property-hyphen:
5903   # Code from module unictype/property-hyphen-tests:
5904   # Code from module unictype/property-id-continue:
5905   # Code from module unictype/property-id-continue-tests:
5906   # Code from module unictype/property-id-start:
5907   # Code from module unictype/property-id-start-tests:
5908   # Code from module unictype/property-ideographic:
5909   # Code from module unictype/property-ideographic-tests:
5910   # Code from module unictype/property-ids-binary-operator:
5911   # Code from module unictype/property-ids-binary-operator-tests:
5912   # Code from module unictype/property-ids-trinary-operator:
5913   # Code from module unictype/property-ids-trinary-operator-tests:
5914   # Code from module unictype/property-ignorable-control:
5915   # Code from module unictype/property-ignorable-control-tests:
5916   # Code from module unictype/property-iso-control:
5917   # Code from module unictype/property-iso-control-tests:
5918   # Code from module unictype/property-join-control:
5919   # Code from module unictype/property-join-control-tests:
5920   # Code from module unictype/property-left-of-pair:
5921   # Code from module unictype/property-left-of-pair-tests:
5922   # Code from module unictype/property-line-separator:
5923   # Code from module unictype/property-line-separator-tests:
5924   # Code from module unictype/property-logical-order-exception:
5925   # Code from module unictype/property-logical-order-exception-tests:
5926   # Code from module unictype/property-lowercase:
5927   # Code from module unictype/property-lowercase-tests:
5928   # Code from module unictype/property-math:
5929   # Code from module unictype/property-math-tests:
5930   # Code from module unictype/property-non-break:
5931   # Code from module unictype/property-non-break-tests:
5932   # Code from module unictype/property-not-a-character:
5933   # Code from module unictype/property-not-a-character-tests:
5934   # Code from module unictype/property-numeric:
5935   # Code from module unictype/property-numeric-tests:
5936   # Code from module unictype/property-other-alphabetic:
5937   # Code from module unictype/property-other-alphabetic-tests:
5938   # Code from module unictype/property-other-default-ignorable-code-point:
5939   # Code from module unictype/property-other-default-ignorable-code-point-tests:
5940   # Code from module unictype/property-other-grapheme-extend:
5941   # Code from module unictype/property-other-grapheme-extend-tests:
5942   # Code from module unictype/property-other-id-continue:
5943   # Code from module unictype/property-other-id-continue-tests:
5944   # Code from module unictype/property-other-id-start:
5945   # Code from module unictype/property-other-id-start-tests:
5946   # Code from module unictype/property-other-lowercase:
5947   # Code from module unictype/property-other-lowercase-tests:
5948   # Code from module unictype/property-other-math:
5949   # Code from module unictype/property-other-math-tests:
5950   # Code from module unictype/property-other-uppercase:
5951   # Code from module unictype/property-other-uppercase-tests:
5952   # Code from module unictype/property-paired-punctuation:
5953   # Code from module unictype/property-paired-punctuation-tests:
5954   # Code from module unictype/property-paragraph-separator:
5955   # Code from module unictype/property-paragraph-separator-tests:
5956   # Code from module unictype/property-pattern-syntax:
5957   # Code from module unictype/property-pattern-syntax-tests:
5958   # Code from module unictype/property-pattern-white-space:
5959   # Code from module unictype/property-pattern-white-space-tests:
5960   # Code from module unictype/property-private-use:
5961   # Code from module unictype/property-private-use-tests:
5962   # Code from module unictype/property-punctuation:
5963   # Code from module unictype/property-punctuation-tests:
5964   # Code from module unictype/property-quotation-mark:
5965   # Code from module unictype/property-quotation-mark-tests:
5966   # Code from module unictype/property-radical:
5967   # Code from module unictype/property-radical-tests:
5968   # Code from module unictype/property-sentence-terminal:
5969   # Code from module unictype/property-sentence-terminal-tests:
5970   # Code from module unictype/property-soft-dotted:
5971   # Code from module unictype/property-soft-dotted-tests:
5972   # Code from module unictype/property-space:
5973   # Code from module unictype/property-space-tests:
5974   # Code from module unictype/property-terminal-punctuation:
5975   # Code from module unictype/property-terminal-punctuation-tests:
5976   # Code from module unictype/property-test:
5977   # Code from module unictype/property-test-tests:
5978   # Code from module unictype/property-titlecase:
5979   # Code from module unictype/property-titlecase-tests:
5980   # Code from module unictype/property-unassigned-code-value:
5981   # Code from module unictype/property-unassigned-code-value-tests:
5982   # Code from module unictype/property-unified-ideograph:
5983   # Code from module unictype/property-unified-ideograph-tests:
5984   # Code from module unictype/property-uppercase:
5985   # Code from module unictype/property-uppercase-tests:
5986   # Code from module unictype/property-variation-selector:
5987   # Code from module unictype/property-variation-selector-tests:
5988   # Code from module unictype/property-white-space:
5989   # Code from module unictype/property-white-space-tests:
5990   # Code from module unictype/property-xid-continue:
5991   # Code from module unictype/property-xid-continue-tests:
5992   # Code from module unictype/property-xid-start:
5993   # Code from module unictype/property-xid-start-tests:
5994   # Code from module unictype/property-zero-width:
5995   # Code from module unictype/property-zero-width-tests:
5996   # Code from module unictype/scripts:
5997   # Code from module unictype/scripts-all:
5998   # Code from module unictype/scripts-tests:
5999   # Code from module unictype/syntax-c-ident:
6000   # Code from module unictype/syntax-c-ident-tests:
6001   # Code from module unictype/syntax-c-whitespace:
6002   # Code from module unictype/syntax-c-whitespace-tests:
6003   # Code from module unictype/syntax-java-ident:
6004   # Code from module unictype/syntax-java-ident-tests:
6005   # Code from module unictype/syntax-java-whitespace:
6006   # Code from module unictype/syntax-java-whitespace-tests:
6007   # Code from module unilbrk/base:
6008   # Code from module unilbrk/tables:
6009   # Code from module unilbrk/u16-possible-linebreaks:
6010   # Code from module unilbrk/u16-possible-linebreaks-tests:
6011   # Code from module unilbrk/u16-width-linebreaks:
6012   # Code from module unilbrk/u16-width-linebreaks-tests:
6013   # Code from module unilbrk/u32-possible-linebreaks:
6014   # Code from module unilbrk/u32-possible-linebreaks-tests:
6015   # Code from module unilbrk/u32-width-linebreaks:
6016   # Code from module unilbrk/u32-width-linebreaks-tests:
6017   # Code from module unilbrk/u8-possible-linebreaks:
6018   # Code from module unilbrk/u8-possible-linebreaks-tests:
6019   # Code from module unilbrk/u8-width-linebreaks:
6020   # Code from module unilbrk/u8-width-linebreaks-tests:
6021   # Code from module unilbrk/ulc-common:
6022   # Code from module unilbrk/ulc-possible-linebreaks:
6023   # Code from module unilbrk/ulc-possible-linebreaks-tests:
6024   # Code from module unilbrk/ulc-width-linebreaks:
6025   # Code from module unilbrk/ulc-width-linebreaks-tests:
6026   # Code from module uniname/base:
6027   # Code from module uniname/uniname:
6028   # Code from module uniname/uniname-tests:
6029   # Code from module uninorm/base:
6030   # Code from module uninorm/canonical-decomposition:
6031   # Code from module uninorm/canonical-decomposition-tests:
6032   # Code from module uninorm/compat-decomposition:
6033   # Code from module uninorm/compat-decomposition-tests:
6034   # Code from module uninorm/composition:
6035   # Code from module uninorm/composition-tests:
6036   # Code from module uninorm/decompose-internal:
6037   # Code from module uninorm/decomposing-form:
6038   # Code from module uninorm/decomposing-form-tests:
6039   # Code from module uninorm/decomposition:
6040   # Code from module uninorm/decomposition-table:
6041   # Code from module uninorm/decomposition-tests:
6042   # Code from module uninorm/filter:
6043   # Code from module uninorm/filter-tests:
6044   # Code from module uninorm/nfc:
6045   # Code from module uninorm/nfc-tests:
6046   # Code from module uninorm/nfd:
6047   # Code from module uninorm/nfd-tests:
6048   # Code from module uninorm/nfkc:
6049   # Code from module uninorm/nfkc-tests:
6050   # Code from module uninorm/nfkd:
6051   # Code from module uninorm/nfkd-tests:
6052   # Code from module uninorm/u16-normalize:
6053   # Code from module uninorm/u16-normcmp:
6054   # Code from module uninorm/u16-normcmp-tests:
6055   # Code from module uninorm/u16-normcoll:
6056   # Code from module uninorm/u16-normcoll-tests:
6057   # Code from module uninorm/u16-normxfrm:
6058   # Code from module uninorm/u32-normalize:
6059   # Code from module uninorm/u32-normcmp:
6060   # Code from module uninorm/u32-normcmp-tests:
6061   # Code from module uninorm/u32-normcoll:
6062   # Code from module uninorm/u32-normcoll-tests:
6063   # Code from module uninorm/u32-normxfrm:
6064   # Code from module uninorm/u8-normalize:
6065   # Code from module uninorm/u8-normcmp:
6066   # Code from module uninorm/u8-normcmp-tests:
6067   # Code from module uninorm/u8-normcoll:
6068   # Code from module uninorm/u8-normcoll-tests:
6069   # Code from module uninorm/u8-normxfrm:
6070   # Code from module unistd:
6071   # Code from module unistd-tests:
6072   # Code from module unistdio/base:
6073   # Code from module unistdio/u-printf-args:
6074   # Code from module unistdio/u16-asnprintf:
6075   # Code from module unistdio/u16-asnprintf-tests:
6076   # Code from module unistdio/u16-asprintf:
6077   # Code from module unistdio/u16-printf-parse:
6078   # Code from module unistdio/u16-snprintf:
6079   # Code from module unistdio/u16-sprintf:
6080   # Code from module unistdio/u16-u16-asnprintf:
6081   # Code from module unistdio/u16-u16-asprintf:
6082   # Code from module unistdio/u16-u16-snprintf:
6083   # Code from module unistdio/u16-u16-sprintf:
6084   # Code from module unistdio/u16-u16-vasnprintf:
6085   # Code from module unistdio/u16-u16-vasprintf:
6086   # Code from module unistdio/u16-u16-vsnprintf:
6087   # Code from module unistdio/u16-u16-vsprintf:
6088   # Code from module unistdio/u16-vasnprintf:
6089   # Code from module unistdio/u16-vasnprintf-tests:
6090   # Code from module unistdio/u16-vasprintf:
6091   # Code from module unistdio/u16-vasprintf-tests:
6092   # Code from module unistdio/u16-vsnprintf:
6093   # Code from module unistdio/u16-vsnprintf-tests:
6094   # Code from module unistdio/u16-vsprintf:
6095   # Code from module unistdio/u16-vsprintf-tests:
6096   # Code from module unistdio/u32-asnprintf:
6097   # Code from module unistdio/u32-asnprintf-tests:
6098   # Code from module unistdio/u32-asprintf:
6099   # Code from module unistdio/u32-printf-parse:
6100   # Code from module unistdio/u32-snprintf:
6101   # Code from module unistdio/u32-sprintf:
6102   # Code from module unistdio/u32-u32-asnprintf:
6103   # Code from module unistdio/u32-u32-asprintf:
6104   # Code from module unistdio/u32-u32-snprintf:
6105   # Code from module unistdio/u32-u32-sprintf:
6106   # Code from module unistdio/u32-u32-vasnprintf:
6107   # Code from module unistdio/u32-u32-vasprintf:
6108   # Code from module unistdio/u32-u32-vsnprintf:
6109   # Code from module unistdio/u32-u32-vsprintf:
6110   # Code from module unistdio/u32-vasnprintf:
6111   # Code from module unistdio/u32-vasnprintf-tests:
6112   # Code from module unistdio/u32-vasprintf:
6113   # Code from module unistdio/u32-vasprintf-tests:
6114   # Code from module unistdio/u32-vsnprintf:
6115   # Code from module unistdio/u32-vsnprintf-tests:
6116   # Code from module unistdio/u32-vsprintf:
6117   # Code from module unistdio/u32-vsprintf-tests:
6118   # Code from module unistdio/u8-asnprintf:
6119   # Code from module unistdio/u8-asnprintf-tests:
6120   # Code from module unistdio/u8-asprintf:
6121   # Code from module unistdio/u8-printf-parse:
6122   # Code from module unistdio/u8-snprintf:
6123   # Code from module unistdio/u8-sprintf:
6124   # Code from module unistdio/u8-u8-asnprintf:
6125   # Code from module unistdio/u8-u8-asprintf:
6126   # Code from module unistdio/u8-u8-snprintf:
6127   # Code from module unistdio/u8-u8-sprintf:
6128   # Code from module unistdio/u8-u8-vasnprintf:
6129   # Code from module unistdio/u8-u8-vasprintf:
6130   # Code from module unistdio/u8-u8-vsnprintf:
6131   # Code from module unistdio/u8-u8-vsprintf:
6132   # Code from module unistdio/u8-vasnprintf:
6133   # Code from module unistdio/u8-vasnprintf-tests:
6134   # Code from module unistdio/u8-vasprintf:
6135   # Code from module unistdio/u8-vasprintf-tests:
6136   # Code from module unistdio/u8-vsnprintf:
6137   # Code from module unistdio/u8-vsnprintf-tests:
6138   # Code from module unistdio/u8-vsprintf:
6139   # Code from module unistdio/u8-vsprintf-tests:
6140   # Code from module unistdio/ulc-asnprintf:
6141   # Code from module unistdio/ulc-asnprintf-tests:
6142   # Code from module unistdio/ulc-asprintf:
6143   # Code from module unistdio/ulc-fprintf:
6144   # Code from module unistdio/ulc-printf-parse:
6145   # Code from module unistdio/ulc-snprintf:
6146   # Code from module unistdio/ulc-sprintf:
6147   # Code from module unistdio/ulc-vasnprintf:
6148   # Code from module unistdio/ulc-vasnprintf-tests:
6149   # Code from module unistdio/ulc-vasprintf:
6150   # Code from module unistdio/ulc-vasprintf-tests:
6151   # Code from module unistdio/ulc-vfprintf:
6152   # Code from module unistdio/ulc-vsnprintf:
6153   # Code from module unistdio/ulc-vsnprintf-tests:
6154   # Code from module unistdio/ulc-vsprintf:
6155   # Code from module unistdio/ulc-vsprintf-tests:
6156   # Code from module unistr/base:
6157   # Code from module unistr/u16-check:
6158   # Code from module unistr/u16-check-tests:
6159   # Code from module unistr/u16-chr:
6160   # Code from module unistr/u16-chr-tests:
6161   # Code from module unistr/u16-cmp:
6162   # Code from module unistr/u16-cmp-tests:
6163   # Code from module unistr/u16-cmp2:
6164   # Code from module unistr/u16-cmp2-tests:
6165   # Code from module unistr/u16-cpy:
6166   # Code from module unistr/u16-cpy-alloc:
6167   # Code from module unistr/u16-cpy-alloc-tests:
6168   # Code from module unistr/u16-cpy-tests:
6169   # Code from module unistr/u16-endswith:
6170   # Code from module unistr/u16-mblen:
6171   # Code from module unistr/u16-mblen-tests:
6172   # Code from module unistr/u16-mbsnlen:
6173   # Code from module unistr/u16-mbsnlen-tests:
6174   # Code from module unistr/u16-mbtouc:
6175   # Code from module unistr/u16-mbtouc-tests:
6176   # Code from module unistr/u16-mbtouc-unsafe:
6177   # Code from module unistr/u16-mbtouc-unsafe-tests:
6178   # Code from module unistr/u16-mbtoucr:
6179   # Code from module unistr/u16-mbtoucr-tests:
6180   # Code from module unistr/u16-move:
6181   # Code from module unistr/u16-move-tests:
6182   # Code from module unistr/u16-next:
6183   # Code from module unistr/u16-next-tests:
6184   # Code from module unistr/u16-prev:
6185   # Code from module unistr/u16-prev-tests:
6186   # Code from module unistr/u16-set:
6187   # Code from module unistr/u16-set-tests:
6188   # Code from module unistr/u16-startswith:
6189   # Code from module unistr/u16-stpcpy:
6190   # Code from module unistr/u16-stpcpy-tests:
6191   # Code from module unistr/u16-stpncpy:
6192   # Code from module unistr/u16-stpncpy-tests:
6193   # Code from module unistr/u16-strcat:
6194   # Code from module unistr/u16-strcat-tests:
6195   # Code from module unistr/u16-strchr:
6196   # Code from module unistr/u16-strcmp:
6197   # Code from module unistr/u16-strcmp-tests:
6198   # Code from module unistr/u16-strcoll:
6199   # Code from module unistr/u16-strcoll-tests:
6200   # Code from module unistr/u16-strcpy:
6201   # Code from module unistr/u16-strcpy-tests:
6202   # Code from module unistr/u16-strcspn:
6203   # Code from module unistr/u16-strdup:
6204   # Code from module unistr/u16-strdup-tests:
6205   # Code from module unistr/u16-strlen:
6206   # Code from module unistr/u16-strlen-tests:
6207   # Code from module unistr/u16-strmblen:
6208   # Code from module unistr/u16-strmblen-tests:
6209   # Code from module unistr/u16-strmbtouc:
6210   # Code from module unistr/u16-strmbtouc-tests:
6211   # Code from module unistr/u16-strncat:
6212   # Code from module unistr/u16-strncat-tests:
6213   # Code from module unistr/u16-strncmp:
6214   # Code from module unistr/u16-strncmp-tests:
6215   # Code from module unistr/u16-strncpy:
6216   # Code from module unistr/u16-strncpy-tests:
6217   # Code from module unistr/u16-strnlen:
6218   # Code from module unistr/u16-strnlen-tests:
6219   # Code from module unistr/u16-strpbrk:
6220   # Code from module unistr/u16-strrchr:
6221   # Code from module unistr/u16-strspn:
6222   # Code from module unistr/u16-strstr:
6223   # Code from module unistr/u16-strtok:
6224   # Code from module unistr/u16-to-u32:
6225   # Code from module unistr/u16-to-u32-tests:
6226   # Code from module unistr/u16-to-u8:
6227   # Code from module unistr/u16-to-u8-tests:
6228   # Code from module unistr/u16-uctomb:
6229   # Code from module unistr/u16-uctomb-tests:
6230   # Code from module unistr/u32-check:
6231   # Code from module unistr/u32-check-tests:
6232   # Code from module unistr/u32-chr:
6233   # Code from module unistr/u32-chr-tests:
6234   # Code from module unistr/u32-cmp:
6235   # Code from module unistr/u32-cmp-tests:
6236   # Code from module unistr/u32-cmp2:
6237   # Code from module unistr/u32-cmp2-tests:
6238   # Code from module unistr/u32-cpy:
6239   # Code from module unistr/u32-cpy-alloc:
6240   # Code from module unistr/u32-cpy-alloc-tests:
6241   # Code from module unistr/u32-cpy-tests:
6242   # Code from module unistr/u32-endswith:
6243   # Code from module unistr/u32-mblen:
6244   # Code from module unistr/u32-mblen-tests:
6245   # Code from module unistr/u32-mbsnlen:
6246   # Code from module unistr/u32-mbsnlen-tests:
6247   # Code from module unistr/u32-mbtouc:
6248   # Code from module unistr/u32-mbtouc-tests:
6249   # Code from module unistr/u32-mbtouc-unsafe:
6250   # Code from module unistr/u32-mbtouc-unsafe-tests:
6251   # Code from module unistr/u32-mbtoucr:
6252   # Code from module unistr/u32-mbtoucr-tests:
6253   # Code from module unistr/u32-move:
6254   # Code from module unistr/u32-move-tests:
6255   # Code from module unistr/u32-next:
6256   # Code from module unistr/u32-next-tests:
6257   # Code from module unistr/u32-prev:
6258   # Code from module unistr/u32-prev-tests:
6259   # Code from module unistr/u32-set:
6260   # Code from module unistr/u32-set-tests:
6261   # Code from module unistr/u32-startswith:
6262   # Code from module unistr/u32-stpcpy:
6263   # Code from module unistr/u32-stpcpy-tests:
6264   # Code from module unistr/u32-stpncpy:
6265   # Code from module unistr/u32-stpncpy-tests:
6266   # Code from module unistr/u32-strcat:
6267   # Code from module unistr/u32-strcat-tests:
6268   # Code from module unistr/u32-strchr:
6269   # Code from module unistr/u32-strcmp:
6270   # Code from module unistr/u32-strcmp-tests:
6271   # Code from module unistr/u32-strcoll:
6272   # Code from module unistr/u32-strcoll-tests:
6273   # Code from module unistr/u32-strcpy:
6274   # Code from module unistr/u32-strcpy-tests:
6275   # Code from module unistr/u32-strcspn:
6276   # Code from module unistr/u32-strdup:
6277   # Code from module unistr/u32-strdup-tests:
6278   # Code from module unistr/u32-strlen:
6279   # Code from module unistr/u32-strlen-tests:
6280   # Code from module unistr/u32-strmblen:
6281   # Code from module unistr/u32-strmblen-tests:
6282   # Code from module unistr/u32-strmbtouc:
6283   # Code from module unistr/u32-strmbtouc-tests:
6284   # Code from module unistr/u32-strncat:
6285   # Code from module unistr/u32-strncat-tests:
6286   # Code from module unistr/u32-strncmp:
6287   # Code from module unistr/u32-strncmp-tests:
6288   # Code from module unistr/u32-strncpy:
6289   # Code from module unistr/u32-strncpy-tests:
6290   # Code from module unistr/u32-strnlen:
6291   # Code from module unistr/u32-strnlen-tests:
6292   # Code from module unistr/u32-strpbrk:
6293   # Code from module unistr/u32-strrchr:
6294   # Code from module unistr/u32-strspn:
6295   # Code from module unistr/u32-strstr:
6296   # Code from module unistr/u32-strtok:
6297   # Code from module unistr/u32-to-u16:
6298   # Code from module unistr/u32-to-u16-tests:
6299   # Code from module unistr/u32-to-u8:
6300   # Code from module unistr/u32-to-u8-tests:
6301   # Code from module unistr/u32-uctomb:
6302   # Code from module unistr/u32-uctomb-tests:
6303   # Code from module unistr/u8-check:
6304   # Code from module unistr/u8-check-tests:
6305   # Code from module unistr/u8-chr:
6306   # Code from module unistr/u8-chr-tests:
6307   # Code from module unistr/u8-cmp:
6308   # Code from module unistr/u8-cmp-tests:
6309   # Code from module unistr/u8-cmp2:
6310   # Code from module unistr/u8-cmp2-tests:
6311   # Code from module unistr/u8-cpy:
6312   # Code from module unistr/u8-cpy-alloc:
6313   # Code from module unistr/u8-cpy-alloc-tests:
6314   # Code from module unistr/u8-cpy-tests:
6315   # Code from module unistr/u8-endswith:
6316   # Code from module unistr/u8-mblen:
6317   # Code from module unistr/u8-mblen-tests:
6318   # Code from module unistr/u8-mbsnlen:
6319   # Code from module unistr/u8-mbsnlen-tests:
6320   # Code from module unistr/u8-mbtouc:
6321   # Code from module unistr/u8-mbtouc-tests:
6322   # Code from module unistr/u8-mbtouc-unsafe:
6323   # Code from module unistr/u8-mbtouc-unsafe-tests:
6324   # Code from module unistr/u8-mbtoucr:
6325   # Code from module unistr/u8-mbtoucr-tests:
6326   # Code from module unistr/u8-move:
6327   # Code from module unistr/u8-move-tests:
6328   # Code from module unistr/u8-next:
6329   # Code from module unistr/u8-next-tests:
6330   # Code from module unistr/u8-prev:
6331   # Code from module unistr/u8-prev-tests:
6332   # Code from module unistr/u8-set:
6333   # Code from module unistr/u8-set-tests:
6334   # Code from module unistr/u8-startswith:
6335   # Code from module unistr/u8-stpcpy:
6336   # Code from module unistr/u8-stpcpy-tests:
6337   # Code from module unistr/u8-stpncpy:
6338   # Code from module unistr/u8-stpncpy-tests:
6339   # Code from module unistr/u8-strcat:
6340   # Code from module unistr/u8-strcat-tests:
6341   # Code from module unistr/u8-strchr:
6342   # Code from module unistr/u8-strcmp:
6343   # Code from module unistr/u8-strcmp-tests:
6344   # Code from module unistr/u8-strcoll:
6345   # Code from module unistr/u8-strcoll-tests:
6346   # Code from module unistr/u8-strcpy:
6347   # Code from module unistr/u8-strcpy-tests:
6348   # Code from module unistr/u8-strcspn:
6349   # Code from module unistr/u8-strdup:
6350   # Code from module unistr/u8-strdup-tests:
6351   # Code from module unistr/u8-strlen:
6352   # Code from module unistr/u8-strlen-tests:
6353   # Code from module unistr/u8-strmblen:
6354   # Code from module unistr/u8-strmblen-tests:
6355   # Code from module unistr/u8-strmbtouc:
6356   # Code from module unistr/u8-strmbtouc-tests:
6357   # Code from module unistr/u8-strncat:
6358   # Code from module unistr/u8-strncat-tests:
6359   # Code from module unistr/u8-strncmp:
6360   # Code from module unistr/u8-strncmp-tests:
6361   # Code from module unistr/u8-strncpy:
6362   # Code from module unistr/u8-strncpy-tests:
6363   # Code from module unistr/u8-strnlen:
6364   # Code from module unistr/u8-strnlen-tests:
6365   # Code from module unistr/u8-strpbrk:
6366   # Code from module unistr/u8-strrchr:
6367   # Code from module unistr/u8-strspn:
6368   # Code from module unistr/u8-strstr:
6369   # Code from module unistr/u8-strtok:
6370   # Code from module unistr/u8-to-u16:
6371   # Code from module unistr/u8-to-u16-tests:
6372   # Code from module unistr/u8-to-u32:
6373   # Code from module unistr/u8-to-u32-tests:
6374   # Code from module unistr/u8-uctomb:
6375   # Code from module unistr/u8-uctomb-tests:
6376   # Code from module unitypes:
6377   # Code from module uniwbrk/base:
6378   # Code from module uniwbrk/table:
6379   # Code from module uniwbrk/u16-wordbreaks:
6380   # Code from module uniwbrk/u16-wordbreaks-tests:
6381   # Code from module uniwbrk/u32-wordbreaks:
6382   # Code from module uniwbrk/u32-wordbreaks-tests:
6383   # Code from module uniwbrk/u8-wordbreaks:
6384   # Code from module uniwbrk/u8-wordbreaks-tests:
6385   # Code from module uniwbrk/ulc-wordbreaks:
6386   # Code from module uniwbrk/ulc-wordbreaks-tests:
6387   # Code from module uniwbrk/wordbreak-property:
6388   # Code from module uniwidth/base:
6389   # Code from module uniwidth/u16-strwidth:
6390   # Code from module uniwidth/u16-strwidth-tests:
6391   # Code from module uniwidth/u16-width:
6392   # Code from module uniwidth/u16-width-tests:
6393   # Code from module uniwidth/u32-strwidth:
6394   # Code from module uniwidth/u32-strwidth-tests:
6395   # Code from module uniwidth/u32-width:
6396   # Code from module uniwidth/u32-width-tests:
6397   # Code from module uniwidth/u8-strwidth:
6398   # Code from module uniwidth/u8-strwidth-tests:
6399   # Code from module uniwidth/u8-width:
6400   # Code from module uniwidth/u8-width-tests:
6401   # Code from module uniwidth/width:
6402   # Code from module uniwidth/width-tests:
6403   # Code from module unsetenv:
6404   # Code from module unsetenv-tests:
6405   # Code from module unused-parameter:
6406   # Code from module verify:
6407   # Code from module warn-on-use:
6408   # Code from module wchar:
6409   # Code from module wchar-tests:
6410   # Code from module wctob:
6411   # Code from module wctype:
6412   # Code from module wctype-tests:
6413   # Code from module wcwidth:
6414   # Code from module wcwidth-tests:
6415   # Code from module xalloc:
6416   # Code from module xalloc-die:
6417   # Code from module xalloc-die-tests:
6418   # Code from module xsize:
6419   # Code from module yield:
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429   case "$host_os" in
6430     mingw* | cygwin*)
6431       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for auto-import of symbols" >&5
6432 $as_echo_n "checking for auto-import of symbols... " >&6; }
6433       if test "${gl_cv_ld_autoimport+set}" = set; then :
6434   $as_echo_n "(cached) " >&6
6435 else
6436
6437         gl_save_LDFLAGS="$LDFLAGS"
6438         LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
6439         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h.  */
6441
6442 int
6443 main ()
6444 {
6445
6446   ;
6447   return 0;
6448 }
6449 _ACEOF
6450 if ac_fn_c_try_link "$LINENO"; then :
6451   gl_cv_ld_autoimport=yes
6452 else
6453   gl_cv_ld_autoimport=no
6454 fi
6455 rm -f core conftest.err conftest.$ac_objext \
6456     conftest$ac_exeext conftest.$ac_ext
6457         LDFLAGS="$gl_save_LDFLAGS"
6458 fi
6459
6460       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_autoimport" >&5
6461 $as_echo "$gl_cv_ld_autoimport" >&6; }
6462       if test $gl_cv_ld_autoimport = yes; then
6463         LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
6464       fi
6465       ;;
6466   esac
6467
6468
6469 case `pwd` in
6470   *\ * | *\     *)
6471     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6472 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6473 esac
6474
6475
6476
6477 macro_version='2.2.6'
6478 macro_revision='1.3012'
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492 ltmain="$ac_aux_dir/ltmain.sh"
6493
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6495 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6496 if test "${ac_cv_path_SED+set}" = set; then :
6497   $as_echo_n "(cached) " >&6
6498 else
6499             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6500      for ac_i in 1 2 3 4 5 6 7; do
6501        ac_script="$ac_script$as_nl$ac_script"
6502      done
6503      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6504      { ac_script=; unset ac_script;}
6505      if test -z "$SED"; then
6506   ac_path_SED_found=false
6507   # Loop through the user's path and test for each of PROGNAME-LIST
6508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH
6510 do
6511   IFS=$as_save_IFS
6512   test -z "$as_dir" && as_dir=.
6513     for ac_prog in sed gsed; do
6514     for ac_exec_ext in '' $ac_executable_extensions; do
6515       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6516       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6517 # Check for GNU ac_path_SED and select it if it is found.
6518   # Check for GNU $ac_path_SED
6519 case `"$ac_path_SED" --version 2>&1` in
6520 *GNU*)
6521   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6522 *)
6523   ac_count=0
6524   $as_echo_n 0123456789 >"conftest.in"
6525   while :
6526   do
6527     cat "conftest.in" "conftest.in" >"conftest.tmp"
6528     mv "conftest.tmp" "conftest.in"
6529     cp "conftest.in" "conftest.nl"
6530     $as_echo '' >> "conftest.nl"
6531     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6532     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6533     as_fn_arith $ac_count + 1 && ac_count=$as_val
6534     if test $ac_count -gt ${ac_path_SED_max-0}; then
6535       # Best one so far, save it but keep looking for a better one
6536       ac_cv_path_SED="$ac_path_SED"
6537       ac_path_SED_max=$ac_count
6538     fi
6539     # 10*(2^10) chars as input seems more than enough
6540     test $ac_count -gt 10 && break
6541   done
6542   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6543 esac
6544
6545       $ac_path_SED_found && break 3
6546     done
6547   done
6548   done
6549 IFS=$as_save_IFS
6550   if test -z "$ac_cv_path_SED"; then
6551     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6552   fi
6553 else
6554   ac_cv_path_SED=$SED
6555 fi
6556
6557 fi
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6559 $as_echo "$ac_cv_path_SED" >&6; }
6560  SED="$ac_cv_path_SED"
6561   rm -f conftest.sed
6562
6563 test -z "$SED" && SED=sed
6564 Xsed="$SED -e 1s/^X//"
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6577 $as_echo_n "checking for fgrep... " >&6; }
6578 if test "${ac_cv_path_FGREP+set}" = set; then :
6579   $as_echo_n "(cached) " >&6
6580 else
6581   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6582    then ac_cv_path_FGREP="$GREP -F"
6583    else
6584      if test -z "$FGREP"; then
6585   ac_path_FGREP_found=false
6586   # Loop through the user's path and test for each of PROGNAME-LIST
6587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6589 do
6590   IFS=$as_save_IFS
6591   test -z "$as_dir" && as_dir=.
6592     for ac_prog in fgrep; do
6593     for ac_exec_ext in '' $ac_executable_extensions; do
6594       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6595       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6596 # Check for GNU ac_path_FGREP and select it if it is found.
6597   # Check for GNU $ac_path_FGREP
6598 case `"$ac_path_FGREP" --version 2>&1` in
6599 *GNU*)
6600   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6601 *)
6602   ac_count=0
6603   $as_echo_n 0123456789 >"conftest.in"
6604   while :
6605   do
6606     cat "conftest.in" "conftest.in" >"conftest.tmp"
6607     mv "conftest.tmp" "conftest.in"
6608     cp "conftest.in" "conftest.nl"
6609     $as_echo 'FGREP' >> "conftest.nl"
6610     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6611     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6612     as_fn_arith $ac_count + 1 && ac_count=$as_val
6613     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6614       # Best one so far, save it but keep looking for a better one
6615       ac_cv_path_FGREP="$ac_path_FGREP"
6616       ac_path_FGREP_max=$ac_count
6617     fi
6618     # 10*(2^10) chars as input seems more than enough
6619     test $ac_count -gt 10 && break
6620   done
6621   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6622 esac
6623
6624       $ac_path_FGREP_found && break 3
6625     done
6626   done
6627   done
6628 IFS=$as_save_IFS
6629   if test -z "$ac_cv_path_FGREP"; then
6630     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6631   fi
6632 else
6633   ac_cv_path_FGREP=$FGREP
6634 fi
6635
6636    fi
6637 fi
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6639 $as_echo "$ac_cv_path_FGREP" >&6; }
6640  FGREP="$ac_cv_path_FGREP"
6641
6642
6643 test -z "$GREP" && GREP=grep
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663 # Check whether --with-gnu-ld was given.
6664 if test "${with_gnu_ld+set}" = set; then :
6665   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6666 else
6667   with_gnu_ld=no
6668 fi
6669
6670 ac_prog=ld
6671 if test "$GCC" = yes; then
6672   # Check if gcc -print-prog-name=ld gives a path.
6673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6674 $as_echo_n "checking for ld used by $CC... " >&6; }
6675   case $host in
6676   *-*-mingw*)
6677     # gcc leaves a trailing carriage return which upsets mingw
6678     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6679   *)
6680     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6681   esac
6682   case $ac_prog in
6683     # Accept absolute paths.
6684     [\\/]* | ?:[\\/]*)
6685       re_direlt='/[^/][^/]*/\.\./'
6686       # Canonicalize the pathname of ld
6687       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6688       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6689         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6690       done
6691       test -z "$LD" && LD="$ac_prog"
6692       ;;
6693   "")
6694     # If it fails, then pretend we aren't using GCC.
6695     ac_prog=ld
6696     ;;
6697   *)
6698     # If it is relative, then search for the first ld in PATH.
6699     with_gnu_ld=unknown
6700     ;;
6701   esac
6702 elif test "$with_gnu_ld" = yes; then
6703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6704 $as_echo_n "checking for GNU ld... " >&6; }
6705 else
6706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6707 $as_echo_n "checking for non-GNU ld... " >&6; }
6708 fi
6709 if test "${lt_cv_path_LD+set}" = set; then :
6710   $as_echo_n "(cached) " >&6
6711 else
6712   if test -z "$LD"; then
6713   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6714   for ac_dir in $PATH; do
6715     IFS="$lt_save_ifs"
6716     test -z "$ac_dir" && ac_dir=.
6717     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6718       lt_cv_path_LD="$ac_dir/$ac_prog"
6719       # Check to see if the program is GNU ld.  I'd rather use --version,
6720       # but apparently some variants of GNU ld only accept -v.
6721       # Break only if it was the GNU/non-GNU ld that we prefer.
6722       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6723       *GNU* | *'with BFD'*)
6724         test "$with_gnu_ld" != no && break
6725         ;;
6726       *)
6727         test "$with_gnu_ld" != yes && break
6728         ;;
6729       esac
6730     fi
6731   done
6732   IFS="$lt_save_ifs"
6733 else
6734   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6735 fi
6736 fi
6737
6738 LD="$lt_cv_path_LD"
6739 if test -n "$LD"; then
6740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6741 $as_echo "$LD" >&6; }
6742 else
6743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744 $as_echo "no" >&6; }
6745 fi
6746 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6748 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6749 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6750   $as_echo_n "(cached) " >&6
6751 else
6752   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6753 case `$LD -v 2>&1 </dev/null` in
6754 *GNU* | *'with BFD'*)
6755   lt_cv_prog_gnu_ld=yes
6756   ;;
6757 *)
6758   lt_cv_prog_gnu_ld=no
6759   ;;
6760 esac
6761 fi
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6763 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6764 with_gnu_ld=$lt_cv_prog_gnu_ld
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6775 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6776 if test "${lt_cv_path_NM+set}" = set; then :
6777   $as_echo_n "(cached) " >&6
6778 else
6779   if test -n "$NM"; then
6780   # Let the user override the test.
6781   lt_cv_path_NM="$NM"
6782 else
6783   lt_nm_to_check="${ac_tool_prefix}nm"
6784   if test -n "$ac_tool_prefix" \
6785      && { test "$build" = "$host" \
6786           || { test "$build_os" = cygwin && test "$host_os" = mingw32; }; \
6787         }; then
6788     lt_nm_to_check="$lt_nm_to_check nm"
6789   fi
6790   for lt_tmp_nm in $lt_nm_to_check; do
6791     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6792     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6793       IFS="$lt_save_ifs"
6794       test -z "$ac_dir" && ac_dir=.
6795       tmp_nm="$ac_dir/$lt_tmp_nm"
6796       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6797         # Check to see if the nm accepts a BSD-compat flag.
6798         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6799         #   nm: unknown option "B" ignored
6800         # Tru64's nm complains that /dev/null is an invalid object file
6801         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6802         */dev/null* | *'Invalid file or object type'*)
6803           lt_cv_path_NM="$tmp_nm -B"
6804           break
6805           ;;
6806         *)
6807           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6808           */dev/null*)
6809             lt_cv_path_NM="$tmp_nm -p"
6810             break
6811             ;;
6812           *)
6813             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6814             continue # so that we can try to find one that supports BSD flags
6815             ;;
6816           esac
6817           ;;
6818         esac
6819       fi
6820     done
6821     IFS="$lt_save_ifs"
6822   done
6823   : ${lt_cv_path_NM=no}
6824 fi
6825 fi
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6827 $as_echo "$lt_cv_path_NM" >&6; }
6828 if test "$lt_cv_path_NM" != "no"; then
6829   NM="$lt_cv_path_NM"
6830 else
6831   # Didn't find any BSD compatible name lister, look for dumpbin.
6832   if test -n "$DUMPBIN"; then :
6833     # Let the user override the test.
6834   else
6835     if test -n "$ac_tool_prefix"; then
6836   for ac_prog in dumpbin "link -dump"
6837   do
6838     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6839 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6843   $as_echo_n "(cached) " >&6
6844 else
6845   if test -n "$DUMPBIN"; then
6846   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6850 do
6851   IFS=$as_save_IFS
6852   test -z "$as_dir" && as_dir=.
6853     for ac_exec_ext in '' $ac_executable_extensions; do
6854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6855     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857     break 2
6858   fi
6859 done
6860   done
6861 IFS=$as_save_IFS
6862
6863 fi
6864 fi
6865 DUMPBIN=$ac_cv_prog_DUMPBIN
6866 if test -n "$DUMPBIN"; then
6867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6868 $as_echo "$DUMPBIN" >&6; }
6869 else
6870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871 $as_echo "no" >&6; }
6872 fi
6873
6874
6875     test -n "$DUMPBIN" && break
6876   done
6877 fi
6878 if test -z "$DUMPBIN"; then
6879   ac_ct_DUMPBIN=$DUMPBIN
6880   for ac_prog in dumpbin "link -dump"
6881 do
6882   # Extract the first word of "$ac_prog", so it can be a program name with args.
6883 set dummy $ac_prog; ac_word=$2
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885 $as_echo_n "checking for $ac_word... " >&6; }
6886 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6887   $as_echo_n "(cached) " >&6
6888 else
6889   if test -n "$ac_ct_DUMPBIN"; then
6890   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6891 else
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6894 do
6895   IFS=$as_save_IFS
6896   test -z "$as_dir" && as_dir=.
6897     for ac_exec_ext in '' $ac_executable_extensions; do
6898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6899     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6901     break 2
6902   fi
6903 done
6904   done
6905 IFS=$as_save_IFS
6906
6907 fi
6908 fi
6909 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6910 if test -n "$ac_ct_DUMPBIN"; then
6911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6912 $as_echo "$ac_ct_DUMPBIN" >&6; }
6913 else
6914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915 $as_echo "no" >&6; }
6916 fi
6917
6918
6919   test -n "$ac_ct_DUMPBIN" && break
6920 done
6921
6922   if test "x$ac_ct_DUMPBIN" = x; then
6923     DUMPBIN=":"
6924   else
6925     case $cross_compiling:$ac_tool_warned in
6926 yes:)
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6929 ac_tool_warned=yes ;;
6930 esac
6931     DUMPBIN=$ac_ct_DUMPBIN
6932   fi
6933 fi
6934
6935     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6936     *COFF*)
6937       DUMPBIN="$DUMPBIN -symbols"
6938       ;;
6939     *)
6940       DUMPBIN=:
6941       ;;
6942     esac
6943   fi
6944
6945   if test "$DUMPBIN" != ":"; then
6946     NM="$DUMPBIN"
6947   fi
6948 fi
6949 test -z "$NM" && NM=nm
6950
6951
6952
6953
6954
6955
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6957 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6958 if test "${lt_cv_nm_interface+set}" = set; then :
6959   $as_echo_n "(cached) " >&6
6960 else
6961   lt_cv_nm_interface="BSD nm"
6962   echo "int some_variable = 0;" > conftest.$ac_ext
6963   (eval echo "\"\$as_me:6963: $ac_compile\"" >&5)
6964   (eval "$ac_compile" 2>conftest.err)
6965   cat conftest.err >&5
6966   (eval echo "\"\$as_me:6966: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6967   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6968   cat conftest.err >&5
6969   (eval echo "\"\$as_me:6969: output\"" >&5)
6970   cat conftest.out >&5
6971   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6972     lt_cv_nm_interface="MS dumpbin"
6973   fi
6974   rm -f conftest*
6975 fi
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6977 $as_echo "$lt_cv_nm_interface" >&6; }
6978
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6980 $as_echo_n "checking whether ln -s works... " >&6; }
6981 LN_S=$as_ln_s
6982 if test "$LN_S" = "ln -s"; then
6983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6984 $as_echo "yes" >&6; }
6985 else
6986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6987 $as_echo "no, using $LN_S" >&6; }
6988 fi
6989
6990 # find the maximum length of command line arguments
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6992 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6993 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6994   $as_echo_n "(cached) " >&6
6995 else
6996     i=0
6997   teststring="ABCD"
6998
6999   case $build_os in
7000   msdosdjgpp*)
7001     # On DJGPP, this test can blow up pretty badly due to problems in libc
7002     # (any single argument exceeding 2000 bytes causes a buffer overrun
7003     # during glob expansion).  Even if it were fixed, the result of this
7004     # check would be larger than it should be.
7005     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7006     ;;
7007
7008   gnu*)
7009     # Under GNU Hurd, this test is not required because there is
7010     # no limit to the length of command line arguments.
7011     # Libtool will interpret -1 as no limit whatsoever
7012     lt_cv_sys_max_cmd_len=-1;
7013     ;;
7014
7015   cygwin* | mingw* | cegcc*)
7016     # On Win9x/ME, this test blows up -- it succeeds, but takes
7017     # about 5 minutes as the teststring grows exponentially.
7018     # Worse, since 9x/ME are not pre-emptively multitasking,
7019     # you end up with a "frozen" computer, even though with patience
7020     # the test eventually succeeds (with a max line length of 256k).
7021     # Instead, let's just punt: use the minimum linelength reported by
7022     # all of the supported platforms: 8192 (on NT/2K/XP).
7023     lt_cv_sys_max_cmd_len=8192;
7024     ;;
7025
7026   amigaos*)
7027     # On AmigaOS with pdksh, this test takes hours, literally.
7028     # So we just punt and use a minimum line length of 8192.
7029     lt_cv_sys_max_cmd_len=8192;
7030     ;;
7031
7032   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7033     # This has been around since 386BSD, at least.  Likely further.
7034     if test -x /sbin/sysctl; then
7035       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7036     elif test -x /usr/sbin/sysctl; then
7037       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7038     else
7039       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7040     fi
7041     # And add a safety zone
7042     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7043     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7044     ;;
7045
7046   interix*)
7047     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7048     lt_cv_sys_max_cmd_len=196608
7049     ;;
7050
7051   osf*)
7052     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7053     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7054     # nice to cause kernel panics so lets avoid the loop below.
7055     # First set a reasonable default.
7056     lt_cv_sys_max_cmd_len=16384
7057     #
7058     if test -x /sbin/sysconfig; then
7059       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7060         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7061       esac
7062     fi
7063     ;;
7064   sco3.2v5*)
7065     lt_cv_sys_max_cmd_len=102400
7066     ;;
7067   sysv5* | sco5v6* | sysv4.2uw2*)
7068     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7069     if test -n "$kargmax"; then
7070       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7071     else
7072       lt_cv_sys_max_cmd_len=32768
7073     fi
7074     ;;
7075   *)
7076     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7077     if test -n "$lt_cv_sys_max_cmd_len"; then
7078       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7079       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7080     else
7081       # Make teststring a little bigger before we do anything with it.
7082       # a 1K string should be a reasonable start.
7083       for i in 1 2 3 4 5 6 7 8 ; do
7084         teststring=$teststring$teststring
7085       done
7086       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7087       # If test is not a shell built-in, we'll probably end up computing a
7088       # maximum length that is only half of the actual maximum length, but
7089       # we can't tell.
7090       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7091                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7092               test $i != 17 # 1/2 MB should be enough
7093       do
7094         i=`expr $i + 1`
7095         teststring=$teststring$teststring
7096       done
7097       # Only check the string length outside the loop.
7098       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7099       teststring=
7100       # Add a significant safety factor because C++ compilers can tack on
7101       # massive amounts of additional arguments before passing them to the
7102       # linker.  It appears as though 1/2 is a usable value.
7103       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7104     fi
7105     ;;
7106   esac
7107
7108 fi
7109
7110 if test -n $lt_cv_sys_max_cmd_len ; then
7111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7112 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7113 else
7114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7115 $as_echo "none" >&6; }
7116 fi
7117 max_cmd_len=$lt_cv_sys_max_cmd_len
7118
7119
7120
7121
7122
7123
7124 : ${CP="cp -f"}
7125 : ${MV="mv -f"}
7126 : ${RM="rm -f"}
7127
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7129 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7130 # Try some XSI features
7131 xsi_shell=no
7132 ( _lt_dummy="a/b/c"
7133   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7134       = c,a/b,, \
7135     && eval 'test $(( 1 + 1 )) -eq 2 \
7136     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7137   && xsi_shell=yes
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7139 $as_echo "$xsi_shell" >&6; }
7140
7141
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7143 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7144 lt_shell_append=no
7145 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7146     >/dev/null 2>&1 \
7147   && lt_shell_append=yes
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7149 $as_echo "$lt_shell_append" >&6; }
7150
7151
7152 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7153   lt_unset=unset
7154 else
7155   lt_unset=false
7156 fi
7157
7158
7159
7160
7161
7162 # test EBCDIC or ASCII
7163 case `echo X|tr X '\101'` in
7164  A) # ASCII based system
7165     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7166   lt_SP2NL='tr \040 \012'
7167   lt_NL2SP='tr \015\012 \040\040'
7168   ;;
7169  *) # EBCDIC based system
7170   lt_SP2NL='tr \100 \n'
7171   lt_NL2SP='tr \r\n \100\100'
7172   ;;
7173 esac
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7184 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7185 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7186   $as_echo_n "(cached) " >&6
7187 else
7188   lt_cv_ld_reload_flag='-r'
7189 fi
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7191 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7192 reload_flag=$lt_cv_ld_reload_flag
7193 case $reload_flag in
7194 "" | " "*) ;;
7195 *) reload_flag=" $reload_flag" ;;
7196 esac
7197 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7198 case $host_os in
7199   darwin*)
7200     if test "$GCC" = yes; then
7201       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7202     else
7203       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7204     fi
7205     ;;
7206 esac
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216 if test -n "$ac_tool_prefix"; then
7217   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7218 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7222   $as_echo_n "(cached) " >&6
7223 else
7224   if test -n "$OBJDUMP"; then
7225   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7226 else
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7229 do
7230   IFS=$as_save_IFS
7231   test -z "$as_dir" && as_dir=.
7232     for ac_exec_ext in '' $ac_executable_extensions; do
7233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7234     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236     break 2
7237   fi
7238 done
7239   done
7240 IFS=$as_save_IFS
7241
7242 fi
7243 fi
7244 OBJDUMP=$ac_cv_prog_OBJDUMP
7245 if test -n "$OBJDUMP"; then
7246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7247 $as_echo "$OBJDUMP" >&6; }
7248 else
7249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7251 fi
7252
7253
7254 fi
7255 if test -z "$ac_cv_prog_OBJDUMP"; then
7256   ac_ct_OBJDUMP=$OBJDUMP
7257   # Extract the first word of "objdump", so it can be a program name with args.
7258 set dummy objdump; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7262   $as_echo_n "(cached) " >&6
7263 else
7264   if test -n "$ac_ct_OBJDUMP"; then
7265   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7266 else
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 for as_dir in $PATH
7269 do
7270   IFS=$as_save_IFS
7271   test -z "$as_dir" && as_dir=.
7272     for ac_exec_ext in '' $ac_executable_extensions; do
7273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7274     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276     break 2
7277   fi
7278 done
7279   done
7280 IFS=$as_save_IFS
7281
7282 fi
7283 fi
7284 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7285 if test -n "$ac_ct_OBJDUMP"; then
7286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7287 $as_echo "$ac_ct_OBJDUMP" >&6; }
7288 else
7289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7291 fi
7292
7293   if test "x$ac_ct_OBJDUMP" = x; then
7294     OBJDUMP="false"
7295   else
7296     case $cross_compiling:$ac_tool_warned in
7297 yes:)
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7300 ac_tool_warned=yes ;;
7301 esac
7302     OBJDUMP=$ac_ct_OBJDUMP
7303   fi
7304 else
7305   OBJDUMP="$ac_cv_prog_OBJDUMP"
7306 fi
7307
7308 test -z "$OBJDUMP" && OBJDUMP=objdump
7309
7310
7311
7312
7313
7314
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7316 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7317 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7318   $as_echo_n "(cached) " >&6
7319 else
7320   lt_cv_file_magic_cmd='$MAGIC_CMD'
7321 lt_cv_file_magic_test_file=
7322 lt_cv_deplibs_check_method='unknown'
7323 # Need to set the preceding variable on all platforms that support
7324 # interlibrary dependencies.
7325 # 'none' -- dependencies not supported.
7326 # `unknown' -- same as none, but documents that we really don't know.
7327 # 'pass_all' -- all dependencies passed with no checks.
7328 # 'test_compile' -- check by making test program.
7329 # 'file_magic [[regex]]' -- check by looking for files in library path
7330 # which responds to the $file_magic_cmd with a given extended regex.
7331 # If you have `file' or equivalent on your system and you're not sure
7332 # whether `pass_all' will *always* work, you probably want this one.
7333
7334 case $host_os in
7335 aix[4-9]*)
7336   lt_cv_deplibs_check_method=pass_all
7337   ;;
7338
7339 beos*)
7340   lt_cv_deplibs_check_method=pass_all
7341   ;;
7342
7343 bsdi[45]*)
7344   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7345   lt_cv_file_magic_cmd='/usr/bin/file -L'
7346   lt_cv_file_magic_test_file=/shlib/libc.so
7347   ;;
7348
7349 cygwin*)
7350   # func_win32_libid is a shell function defined in ltmain.sh
7351   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7352   lt_cv_file_magic_cmd='func_win32_libid'
7353   ;;
7354
7355 mingw* | pw32*)
7356   # Base MSYS/MinGW do not provide the 'file' command needed by
7357   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7358   # unless we find 'file', for example because we are cross-compiling.
7359   if ( file / ) >/dev/null 2>&1; then
7360     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7361     lt_cv_file_magic_cmd='func_win32_libid'
7362   else
7363     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7364     lt_cv_file_magic_cmd='$OBJDUMP -f'
7365   fi
7366   ;;
7367
7368 cegcc)
7369   # use the weaker test based on 'objdump'. See mingw*.
7370   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7371   lt_cv_file_magic_cmd='$OBJDUMP -f'
7372   ;;
7373
7374 darwin* | rhapsody*)
7375   lt_cv_deplibs_check_method=pass_all
7376   ;;
7377
7378 freebsd* | dragonfly*)
7379   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7380     case $host_cpu in
7381     i*86 )
7382       # Not sure whether the presence of OpenBSD here was a mistake.
7383       # Let's accept both of them until this is cleared up.
7384       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7385       lt_cv_file_magic_cmd=/usr/bin/file
7386       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7387       ;;
7388     esac
7389   else
7390     lt_cv_deplibs_check_method=pass_all
7391   fi
7392   ;;
7393
7394 gnu*)
7395   lt_cv_deplibs_check_method=pass_all
7396   ;;
7397
7398 hpux10.20* | hpux11*)
7399   lt_cv_file_magic_cmd=/usr/bin/file
7400   case $host_cpu in
7401   ia64*)
7402     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7403     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7404     ;;
7405   hppa*64*)
7406     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
7407     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7408     ;;
7409   *)
7410     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7411     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7412     ;;
7413   esac
7414   ;;
7415
7416 interix[3-9]*)
7417   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7418   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7419   ;;
7420
7421 irix5* | irix6* | nonstopux*)
7422   case $LD in
7423   *-32|*"-32 ") libmagic=32-bit;;
7424   *-n32|*"-n32 ") libmagic=N32;;
7425   *-64|*"-64 ") libmagic=64-bit;;
7426   *) libmagic=never-match;;
7427   esac
7428   lt_cv_deplibs_check_method=pass_all
7429   ;;
7430
7431 # This must be Linux ELF.
7432 linux* | k*bsd*-gnu)
7433   lt_cv_deplibs_check_method=pass_all
7434   ;;
7435
7436 netbsd*)
7437   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7438     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7439   else
7440     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7441   fi
7442   ;;
7443
7444 newos6*)
7445   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7446   lt_cv_file_magic_cmd=/usr/bin/file
7447   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7448   ;;
7449
7450 *nto* | *qnx*)
7451   lt_cv_deplibs_check_method=pass_all
7452   ;;
7453
7454 openbsd*)
7455   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7456     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7457   else
7458     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7459   fi
7460   ;;
7461
7462 osf3* | osf4* | osf5*)
7463   lt_cv_deplibs_check_method=pass_all
7464   ;;
7465
7466 rdos*)
7467   lt_cv_deplibs_check_method=pass_all
7468   ;;
7469
7470 solaris*)
7471   lt_cv_deplibs_check_method=pass_all
7472   ;;
7473
7474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7475   lt_cv_deplibs_check_method=pass_all
7476   ;;
7477
7478 sysv4 | sysv4.3*)
7479   case $host_vendor in
7480   motorola)
7481     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]'
7482     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7483     ;;
7484   ncr)
7485     lt_cv_deplibs_check_method=pass_all
7486     ;;
7487   sequent)
7488     lt_cv_file_magic_cmd='/bin/file'
7489     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7490     ;;
7491   sni)
7492     lt_cv_file_magic_cmd='/bin/file'
7493     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7494     lt_cv_file_magic_test_file=/lib/libc.so
7495     ;;
7496   siemens)
7497     lt_cv_deplibs_check_method=pass_all
7498     ;;
7499   pc)
7500     lt_cv_deplibs_check_method=pass_all
7501     ;;
7502   esac
7503   ;;
7504
7505 tpf*)
7506   lt_cv_deplibs_check_method=pass_all
7507   ;;
7508 esac
7509
7510 fi
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7512 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7513 file_magic_cmd=$lt_cv_file_magic_cmd
7514 deplibs_check_method=$lt_cv_deplibs_check_method
7515 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528 if test -n "$ac_tool_prefix"; then
7529   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7530 set dummy ${ac_tool_prefix}ar; ac_word=$2
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532 $as_echo_n "checking for $ac_word... " >&6; }
7533 if test "${ac_cv_prog_AR+set}" = set; then :
7534   $as_echo_n "(cached) " >&6
7535 else
7536   if test -n "$AR"; then
7537   ac_cv_prog_AR="$AR" # Let the user override the test.
7538 else
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 for as_dir in $PATH
7541 do
7542   IFS=$as_save_IFS
7543   test -z "$as_dir" && as_dir=.
7544     for ac_exec_ext in '' $ac_executable_extensions; do
7545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7546     ac_cv_prog_AR="${ac_tool_prefix}ar"
7547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7548     break 2
7549   fi
7550 done
7551   done
7552 IFS=$as_save_IFS
7553
7554 fi
7555 fi
7556 AR=$ac_cv_prog_AR
7557 if test -n "$AR"; then
7558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7559 $as_echo "$AR" >&6; }
7560 else
7561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562 $as_echo "no" >&6; }
7563 fi
7564
7565
7566 fi
7567 if test -z "$ac_cv_prog_AR"; then
7568   ac_ct_AR=$AR
7569   # Extract the first word of "ar", so it can be a program name with args.
7570 set dummy ar; ac_word=$2
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7572 $as_echo_n "checking for $ac_word... " >&6; }
7573 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7574   $as_echo_n "(cached) " >&6
7575 else
7576   if test -n "$ac_ct_AR"; then
7577   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7578 else
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 for as_dir in $PATH
7581 do
7582   IFS=$as_save_IFS
7583   test -z "$as_dir" && as_dir=.
7584     for ac_exec_ext in '' $ac_executable_extensions; do
7585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7586     ac_cv_prog_ac_ct_AR="ar"
7587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588     break 2
7589   fi
7590 done
7591   done
7592 IFS=$as_save_IFS
7593
7594 fi
7595 fi
7596 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7597 if test -n "$ac_ct_AR"; then
7598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7599 $as_echo "$ac_ct_AR" >&6; }
7600 else
7601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7603 fi
7604
7605   if test "x$ac_ct_AR" = x; then
7606     AR="false"
7607   else
7608     case $cross_compiling:$ac_tool_warned in
7609 yes:)
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7612 ac_tool_warned=yes ;;
7613 esac
7614     AR=$ac_ct_AR
7615   fi
7616 else
7617   AR="$ac_cv_prog_AR"
7618 fi
7619
7620 test -z "$AR" && AR=ar
7621 test -z "$AR_FLAGS" && AR_FLAGS=cru
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633 if test -n "$ac_tool_prefix"; then
7634   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7635 set dummy ${ac_tool_prefix}strip; ac_word=$2
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637 $as_echo_n "checking for $ac_word... " >&6; }
7638 if test "${ac_cv_prog_STRIP+set}" = set; then :
7639   $as_echo_n "(cached) " >&6
7640 else
7641   if test -n "$STRIP"; then
7642   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7643 else
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 for as_dir in $PATH
7646 do
7647   IFS=$as_save_IFS
7648   test -z "$as_dir" && as_dir=.
7649     for ac_exec_ext in '' $ac_executable_extensions; do
7650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7651     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7653     break 2
7654   fi
7655 done
7656   done
7657 IFS=$as_save_IFS
7658
7659 fi
7660 fi
7661 STRIP=$ac_cv_prog_STRIP
7662 if test -n "$STRIP"; then
7663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7664 $as_echo "$STRIP" >&6; }
7665 else
7666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667 $as_echo "no" >&6; }
7668 fi
7669
7670
7671 fi
7672 if test -z "$ac_cv_prog_STRIP"; then
7673   ac_ct_STRIP=$STRIP
7674   # Extract the first word of "strip", so it can be a program name with args.
7675 set dummy strip; ac_word=$2
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7679   $as_echo_n "(cached) " >&6
7680 else
7681   if test -n "$ac_ct_STRIP"; then
7682   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7683 else
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 for as_dir in $PATH
7686 do
7687   IFS=$as_save_IFS
7688   test -z "$as_dir" && as_dir=.
7689     for ac_exec_ext in '' $ac_executable_extensions; do
7690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7691     ac_cv_prog_ac_ct_STRIP="strip"
7692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693     break 2
7694   fi
7695 done
7696   done
7697 IFS=$as_save_IFS
7698
7699 fi
7700 fi
7701 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7702 if test -n "$ac_ct_STRIP"; then
7703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7704 $as_echo "$ac_ct_STRIP" >&6; }
7705 else
7706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 $as_echo "no" >&6; }
7708 fi
7709
7710   if test "x$ac_ct_STRIP" = x; then
7711     STRIP=":"
7712   else
7713     case $cross_compiling:$ac_tool_warned in
7714 yes:)
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7717 ac_tool_warned=yes ;;
7718 esac
7719     STRIP=$ac_ct_STRIP
7720   fi
7721 else
7722   STRIP="$ac_cv_prog_STRIP"
7723 fi
7724
7725 test -z "$STRIP" && STRIP=:
7726
7727
7728
7729
7730
7731
7732 if test -n "$ac_tool_prefix"; then
7733   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7734 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7736 $as_echo_n "checking for $ac_word... " >&6; }
7737 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7738   $as_echo_n "(cached) " >&6
7739 else
7740   if test -n "$RANLIB"; then
7741   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7742 else
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744 for as_dir in $PATH
7745 do
7746   IFS=$as_save_IFS
7747   test -z "$as_dir" && as_dir=.
7748     for ac_exec_ext in '' $ac_executable_extensions; do
7749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7750     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7752     break 2
7753   fi
7754 done
7755   done
7756 IFS=$as_save_IFS
7757
7758 fi
7759 fi
7760 RANLIB=$ac_cv_prog_RANLIB
7761 if test -n "$RANLIB"; then
7762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7763 $as_echo "$RANLIB" >&6; }
7764 else
7765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7767 fi
7768
7769
7770 fi
7771 if test -z "$ac_cv_prog_RANLIB"; then
7772   ac_ct_RANLIB=$RANLIB
7773   # Extract the first word of "ranlib", so it can be a program name with args.
7774 set dummy ranlib; ac_word=$2
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 $as_echo_n "checking for $ac_word... " >&6; }
7777 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7778   $as_echo_n "(cached) " >&6
7779 else
7780   if test -n "$ac_ct_RANLIB"; then
7781   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7782 else
7783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 for as_dir in $PATH
7785 do
7786   IFS=$as_save_IFS
7787   test -z "$as_dir" && as_dir=.
7788     for ac_exec_ext in '' $ac_executable_extensions; do
7789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7790     ac_cv_prog_ac_ct_RANLIB="ranlib"
7791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7792     break 2
7793   fi
7794 done
7795   done
7796 IFS=$as_save_IFS
7797
7798 fi
7799 fi
7800 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7801 if test -n "$ac_ct_RANLIB"; then
7802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7803 $as_echo "$ac_ct_RANLIB" >&6; }
7804 else
7805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806 $as_echo "no" >&6; }
7807 fi
7808
7809   if test "x$ac_ct_RANLIB" = x; then
7810     RANLIB=":"
7811   else
7812     case $cross_compiling:$ac_tool_warned in
7813 yes:)
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7816 ac_tool_warned=yes ;;
7817 esac
7818     RANLIB=$ac_ct_RANLIB
7819   fi
7820 else
7821   RANLIB="$ac_cv_prog_RANLIB"
7822 fi
7823
7824 test -z "$RANLIB" && RANLIB=:
7825
7826
7827
7828
7829
7830
7831 # Determine commands to create old-style static archives.
7832 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7833 old_postinstall_cmds='chmod 644 $oldlib'
7834 old_postuninstall_cmds=
7835
7836 if test -n "$RANLIB"; then
7837   case $host_os in
7838   openbsd*)
7839     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7840     ;;
7841   *)
7842     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7843     ;;
7844   esac
7845   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7846 fi
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881 # If no C compiler was specified, use CC.
7882 LTCC=${LTCC-"$CC"}
7883
7884 # If no C compiler flags were specified, use CFLAGS.
7885 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7886
7887 # Allow CC to be a program name with arguments.
7888 compiler=$CC
7889
7890
7891 # Check for command to grab the raw symbol name followed by C symbol from nm.
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7893 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7894 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7895   $as_echo_n "(cached) " >&6
7896 else
7897
7898 # These are sane defaults that work on at least a few old systems.
7899 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7900
7901 # Character class describing NM global symbol codes.
7902 symcode='[BCDEGRST]'
7903
7904 # Regexp to match symbols that can be accessed directly from C.
7905 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7906
7907 # Define system-specific variables.
7908 case $host_os in
7909 aix*)
7910   symcode='[BCDT]'
7911   ;;
7912 cygwin* | mingw* | pw32* | cegcc*)
7913   symcode='[ABCDGISTW]'
7914   ;;
7915 hpux*)
7916   if test "$host_cpu" = ia64; then
7917     symcode='[ABCDEGRST]'
7918   fi
7919   ;;
7920 irix* | nonstopux*)
7921   symcode='[BCDEGRST]'
7922   ;;
7923 osf*)
7924   symcode='[BCDEGQRST]'
7925   ;;
7926 solaris*)
7927   symcode='[BDRT]'
7928   ;;
7929 sco3.2v5*)
7930   symcode='[DT]'
7931   ;;
7932 sysv4.2uw2*)
7933   symcode='[DT]'
7934   ;;
7935 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7936   symcode='[ABDT]'
7937   ;;
7938 sysv4)
7939   symcode='[DFNSTU]'
7940   ;;
7941 esac
7942
7943 # If we're using GNU nm, then use its standard symbol codes.
7944 case `$NM -V 2>&1` in
7945 *GNU* | *'with BFD'*)
7946   symcode='[ABCDGIRSTW]' ;;
7947 esac
7948
7949 # Transform an extracted symbol line into a proper C declaration.
7950 # Some systems (esp. on ia64) link data and code symbols differently,
7951 # so use this general approach.
7952 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7953
7954 # Transform an extracted symbol line into symbol name and symbol address
7955 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7956 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'"
7957
7958 # Handle CRLF in mingw tool chain
7959 opt_cr=
7960 case $build_os in
7961 mingw*)
7962   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7963   ;;
7964 esac
7965
7966 # Try without a prefix underscore, then with it.
7967 for ac_symprfx in "" "_"; do
7968
7969   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7970   symxfrm="\\1 $ac_symprfx\\2 \\2"
7971
7972   # Write the raw and C identifiers.
7973   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7974     # Fake it for dumpbin and say T for any non-static function
7975     # and D for any global variable.
7976     # Also find C++ and __fastcall symbols from MSVC++,
7977     # which start with @ or ?.
7978     lt_cv_sys_global_symbol_pipe="$AWK '"\
7979 "     {last_section=section; section=\$ 3};"\
7980 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7981 "     \$ 0!~/External *\|/{next};"\
7982 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7983 "     {if(hide[section]) next};"\
7984 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7985 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7986 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7987 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7988 "     ' prfx=^$ac_symprfx"
7989   else
7990     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7991   fi
7992
7993   # Check to see that the pipe works correctly.
7994   pipe_works=no
7995
7996   rm -f conftest*
7997   cat > conftest.$ac_ext <<_LT_EOF
7998 #ifdef __cplusplus
7999 extern "C" {
8000 #endif
8001 char nm_test_var;
8002 void nm_test_func(void);
8003 void nm_test_func(void){}
8004 #ifdef __cplusplus
8005 }
8006 #endif
8007 int main(){nm_test_var='a';nm_test_func();return(0);}
8008 _LT_EOF
8009
8010   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8011   (eval $ac_compile) 2>&5
8012   ac_status=$?
8013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8014   test $ac_status = 0; }; then
8015     # Now try to grab the symbols.
8016     nlist=conftest.nm
8017     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8018   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8019   ac_status=$?
8020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8021   test $ac_status = 0; } && test -s "$nlist"; then
8022       # Try sorting and uniquifying the output.
8023       if sort "$nlist" | uniq > "$nlist"T; then
8024         mv -f "$nlist"T "$nlist"
8025       else
8026         rm -f "$nlist"T
8027       fi
8028
8029       # Make sure that we snagged all the symbols we need.
8030       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8031         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8032           cat <<_LT_EOF > conftest.$ac_ext
8033 #ifdef __cplusplus
8034 extern "C" {
8035 #endif
8036
8037 _LT_EOF
8038           # Now generate the symbol file.
8039           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8040
8041           cat <<_LT_EOF >> conftest.$ac_ext
8042
8043 /* The mapping between symbol names and symbols.  */
8044 const struct {
8045   const char *name;
8046   void       *address;
8047 }
8048 lt__PROGRAM__LTX_preloaded_symbols[] =
8049 {
8050   { "@PROGRAM@", (void *) 0 },
8051 _LT_EOF
8052           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8053           cat <<\_LT_EOF >> conftest.$ac_ext
8054   {0, (void *) 0}
8055 };
8056
8057 /* This works around a problem in FreeBSD linker */
8058 #ifdef FREEBSD_WORKAROUND
8059 static const void *lt_preloaded_setup() {
8060   return lt__PROGRAM__LTX_preloaded_symbols;
8061 }
8062 #endif
8063
8064 #ifdef __cplusplus
8065 }
8066 #endif
8067 _LT_EOF
8068           # Now try linking the two files.
8069           mv conftest.$ac_objext conftstm.$ac_objext
8070           lt_save_LIBS="$LIBS"
8071           lt_save_CFLAGS="$CFLAGS"
8072           LIBS="conftstm.$ac_objext"
8073           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8074           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8075   (eval $ac_link) 2>&5
8076   ac_status=$?
8077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8078   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8079             pipe_works=yes
8080           fi
8081           LIBS="$lt_save_LIBS"
8082           CFLAGS="$lt_save_CFLAGS"
8083         else
8084           echo "cannot find nm_test_func in $nlist" >&5
8085         fi
8086       else
8087         echo "cannot find nm_test_var in $nlist" >&5
8088       fi
8089     else
8090       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8091     fi
8092   else
8093     echo "$progname: failed program was:" >&5
8094     cat conftest.$ac_ext >&5
8095   fi
8096   rm -rf conftest* conftst*
8097
8098   # Do not use the global_symbol_pipe unless it works.
8099   if test "$pipe_works" = yes; then
8100     break
8101   else
8102     lt_cv_sys_global_symbol_pipe=
8103   fi
8104 done
8105
8106 fi
8107
8108 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8109   lt_cv_sys_global_symbol_to_cdecl=
8110 fi
8111 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8113 $as_echo "failed" >&6; }
8114 else
8115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8116 $as_echo "ok" >&6; }
8117 fi
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140 # Check whether --enable-libtool-lock was given.
8141 if test "${enable_libtool_lock+set}" = set; then :
8142   enableval=$enable_libtool_lock;
8143 fi
8144
8145 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8146
8147 # Some flags need to be propagated to the compiler or linker for good
8148 # libtool support.
8149 case $host in
8150 ia64-*-hpux*)
8151   # Find out which ABI we are using.
8152   echo 'int i;' > conftest.$ac_ext
8153   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8154   (eval $ac_compile) 2>&5
8155   ac_status=$?
8156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8157   test $ac_status = 0; }; then
8158     case `/usr/bin/file conftest.$ac_objext` in
8159       *ELF-32*)
8160         HPUX_IA64_MODE="32"
8161         ;;
8162       *ELF-64*)
8163         HPUX_IA64_MODE="64"
8164         ;;
8165     esac
8166   fi
8167   rm -rf conftest*
8168   ;;
8169 *-*-irix6*)
8170   # Find out which ABI we are using.
8171   echo '#line 8171 "configure"' > conftest.$ac_ext
8172   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8173   (eval $ac_compile) 2>&5
8174   ac_status=$?
8175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8176   test $ac_status = 0; }; then
8177     if test "$lt_cv_prog_gnu_ld" = yes; then
8178       case `/usr/bin/file conftest.$ac_objext` in
8179         *32-bit*)
8180           LD="${LD-ld} -melf32bsmip"
8181           ;;
8182         *N32*)
8183           LD="${LD-ld} -melf32bmipn32"
8184           ;;
8185         *64-bit*)
8186           LD="${LD-ld} -melf64bmip"
8187         ;;
8188       esac
8189     else
8190       case `/usr/bin/file conftest.$ac_objext` in
8191         *32-bit*)
8192           LD="${LD-ld} -32"
8193           ;;
8194         *N32*)
8195           LD="${LD-ld} -n32"
8196           ;;
8197         *64-bit*)
8198           LD="${LD-ld} -64"
8199           ;;
8200       esac
8201     fi
8202   fi
8203   rm -rf conftest*
8204   ;;
8205
8206 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8207 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8208   # Find out which ABI we are using.
8209   echo 'int i;' > conftest.$ac_ext
8210   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8211   (eval $ac_compile) 2>&5
8212   ac_status=$?
8213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8214   test $ac_status = 0; }; then
8215     case `/usr/bin/file conftest.o` in
8216       *32-bit*)
8217         case $host in
8218           x86_64-*kfreebsd*-gnu)
8219             LD="${LD-ld} -m elf_i386_fbsd"
8220             ;;
8221           x86_64-*linux*)
8222             LD="${LD-ld} -m elf_i386"
8223             ;;
8224           ppc64-*linux*|powerpc64-*linux*)
8225             LD="${LD-ld} -m elf32ppclinux"
8226             ;;
8227           s390x-*linux*)
8228             LD="${LD-ld} -m elf_s390"
8229             ;;
8230           sparc64-*linux*)
8231             LD="${LD-ld} -m elf32_sparc"
8232             ;;
8233         esac
8234         ;;
8235       *64-bit*)
8236         case $host in
8237           x86_64-*kfreebsd*-gnu)
8238             LD="${LD-ld} -m elf_x86_64_fbsd"
8239             ;;
8240           x86_64-*linux*)
8241             LD="${LD-ld} -m elf_x86_64"
8242             ;;
8243           ppc*-*linux*|powerpc*-*linux*)
8244             LD="${LD-ld} -m elf64ppc"
8245             ;;
8246           s390*-*linux*|s390*-*tpf*)
8247             LD="${LD-ld} -m elf64_s390"
8248             ;;
8249           sparc*-*linux*)
8250             LD="${LD-ld} -m elf64_sparc"
8251             ;;
8252         esac
8253         ;;
8254     esac
8255   fi
8256   rm -rf conftest*
8257   ;;
8258
8259 *-*-sco3.2v5*)
8260   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8261   SAVE_CFLAGS="$CFLAGS"
8262   CFLAGS="$CFLAGS -belf"
8263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8264 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8265 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8266   $as_echo_n "(cached) " >&6
8267 else
8268   ac_ext=c
8269 ac_cpp='$CPP $CPPFLAGS'
8270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8273
8274      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275 /* end confdefs.h.  */
8276
8277 int
8278 main ()
8279 {
8280
8281   ;
8282   return 0;
8283 }
8284 _ACEOF
8285 if ac_fn_c_try_link "$LINENO"; then :
8286   lt_cv_cc_needs_belf=yes
8287 else
8288   lt_cv_cc_needs_belf=no
8289 fi
8290 rm -f core conftest.err conftest.$ac_objext \
8291     conftest$ac_exeext conftest.$ac_ext
8292      ac_ext=c
8293 ac_cpp='$CPP $CPPFLAGS'
8294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8297
8298 fi
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8300 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8301   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8302     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8303     CFLAGS="$SAVE_CFLAGS"
8304   fi
8305   ;;
8306 sparc*-*solaris*)
8307   # Find out which ABI we are using.
8308   echo 'int i;' > conftest.$ac_ext
8309   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8310   (eval $ac_compile) 2>&5
8311   ac_status=$?
8312   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8313   test $ac_status = 0; }; then
8314     case `/usr/bin/file conftest.o` in
8315     *64-bit*)
8316       case $lt_cv_prog_gnu_ld in
8317       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8318       *)
8319         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8320           LD="${LD-ld} -64"
8321         fi
8322         ;;
8323       esac
8324       ;;
8325     esac
8326   fi
8327   rm -rf conftest*
8328   ;;
8329 esac
8330
8331 need_locks="$enable_libtool_lock"
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 test "${ac_cv_prog_DSYMUTIL+set}" = set; 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 test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; 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 test "${ac_cv_prog_NMEDIT+set}" = set; 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 test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; 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 test "${ac_cv_prog_LIPO+set}" = set; 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 test "${ac_cv_prog_ac_ct_LIPO+set}" = set; 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 test "${ac_cv_prog_OTOOL+set}" = set; 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 test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; 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 test "${ac_cv_prog_OTOOL64+set}" = set; 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 test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; 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 test "${lt_cv_apple_cc_single_mod+set}" = set; 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 test "${lt_cv_ld_exported_symbols_list+set}" = set; 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     case $host_os in
8884     rhapsody* | darwin1.[012])
8885       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8886     darwin1.*)
8887       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8888     darwin*) # darwin 5.x on
8889       # if running on 10.5 or later, the deployment target defaults
8890       # to the OS version, if on x86, and 10.4, the deployment
8891       # target defaults to 10.4. Don't you love it?
8892       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8893         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8894           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8895         10.[012]*)
8896           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8897         10.*)
8898           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8899       esac
8900     ;;
8901   esac
8902     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8903       _lt_dar_single_mod='$single_module'
8904     fi
8905     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8906       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8907     else
8908       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8909     fi
8910     if test "$DSYMUTIL" != ":"; then
8911       _lt_dsymutil='~$DSYMUTIL $lib || :'
8912     else
8913       _lt_dsymutil=
8914     fi
8915     ;;
8916   esac
8917
8918 for ac_header in dlfcn.h
8919 do :
8920   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8921 "
8922 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8923   cat >>confdefs.h <<_ACEOF
8924 #define HAVE_DLFCN_H 1
8925 _ACEOF
8926
8927 fi
8928
8929 done
8930
8931
8932
8933 # Set options
8934 enable_win32_dll=yes
8935
8936 case $host in
8937 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8938   if test -n "$ac_tool_prefix"; then
8939   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8940 set dummy ${ac_tool_prefix}as; ac_word=$2
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8942 $as_echo_n "checking for $ac_word... " >&6; }
8943 if test "${ac_cv_prog_AS+set}" = set; then :
8944   $as_echo_n "(cached) " >&6
8945 else
8946   if test -n "$AS"; then
8947   ac_cv_prog_AS="$AS" # Let the user override the test.
8948 else
8949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 for as_dir in $PATH
8951 do
8952   IFS=$as_save_IFS
8953   test -z "$as_dir" && as_dir=.
8954     for ac_exec_ext in '' $ac_executable_extensions; do
8955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8956     ac_cv_prog_AS="${ac_tool_prefix}as"
8957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8958     break 2
8959   fi
8960 done
8961   done
8962 IFS=$as_save_IFS
8963
8964 fi
8965 fi
8966 AS=$ac_cv_prog_AS
8967 if test -n "$AS"; then
8968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8969 $as_echo "$AS" >&6; }
8970 else
8971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972 $as_echo "no" >&6; }
8973 fi
8974
8975
8976 fi
8977 if test -z "$ac_cv_prog_AS"; then
8978   ac_ct_AS=$AS
8979   # Extract the first word of "as", so it can be a program name with args.
8980 set dummy as; ac_word=$2
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8982 $as_echo_n "checking for $ac_word... " >&6; }
8983 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
8984   $as_echo_n "(cached) " >&6
8985 else
8986   if test -n "$ac_ct_AS"; then
8987   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8988 else
8989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990 for as_dir in $PATH
8991 do
8992   IFS=$as_save_IFS
8993   test -z "$as_dir" && as_dir=.
8994     for ac_exec_ext in '' $ac_executable_extensions; do
8995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8996     ac_cv_prog_ac_ct_AS="as"
8997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8998     break 2
8999   fi
9000 done
9001   done
9002 IFS=$as_save_IFS
9003
9004 fi
9005 fi
9006 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9007 if test -n "$ac_ct_AS"; then
9008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9009 $as_echo "$ac_ct_AS" >&6; }
9010 else
9011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012 $as_echo "no" >&6; }
9013 fi
9014
9015   if test "x$ac_ct_AS" = x; then
9016     AS="false"
9017   else
9018     case $cross_compiling:$ac_tool_warned in
9019 yes:)
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9022 ac_tool_warned=yes ;;
9023 esac
9024     AS=$ac_ct_AS
9025   fi
9026 else
9027   AS="$ac_cv_prog_AS"
9028 fi
9029
9030   if test -n "$ac_tool_prefix"; then
9031   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9032 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9034 $as_echo_n "checking for $ac_word... " >&6; }
9035 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
9036   $as_echo_n "(cached) " >&6
9037 else
9038   if test -n "$DLLTOOL"; then
9039   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9040 else
9041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9042 for as_dir in $PATH
9043 do
9044   IFS=$as_save_IFS
9045   test -z "$as_dir" && as_dir=.
9046     for ac_exec_ext in '' $ac_executable_extensions; do
9047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9048     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9050     break 2
9051   fi
9052 done
9053   done
9054 IFS=$as_save_IFS
9055
9056 fi
9057 fi
9058 DLLTOOL=$ac_cv_prog_DLLTOOL
9059 if test -n "$DLLTOOL"; then
9060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9061 $as_echo "$DLLTOOL" >&6; }
9062 else
9063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064 $as_echo "no" >&6; }
9065 fi
9066
9067
9068 fi
9069 if test -z "$ac_cv_prog_DLLTOOL"; then
9070   ac_ct_DLLTOOL=$DLLTOOL
9071   # Extract the first word of "dlltool", so it can be a program name with args.
9072 set dummy dlltool; ac_word=$2
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9074 $as_echo_n "checking for $ac_word... " >&6; }
9075 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
9076   $as_echo_n "(cached) " >&6
9077 else
9078   if test -n "$ac_ct_DLLTOOL"; then
9079   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9080 else
9081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082 for as_dir in $PATH
9083 do
9084   IFS=$as_save_IFS
9085   test -z "$as_dir" && as_dir=.
9086     for ac_exec_ext in '' $ac_executable_extensions; do
9087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9088     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9090     break 2
9091   fi
9092 done
9093   done
9094 IFS=$as_save_IFS
9095
9096 fi
9097 fi
9098 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9099 if test -n "$ac_ct_DLLTOOL"; then
9100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9101 $as_echo "$ac_ct_DLLTOOL" >&6; }
9102 else
9103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104 $as_echo "no" >&6; }
9105 fi
9106
9107   if test "x$ac_ct_DLLTOOL" = x; then
9108     DLLTOOL="false"
9109   else
9110     case $cross_compiling:$ac_tool_warned in
9111 yes:)
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9114 ac_tool_warned=yes ;;
9115 esac
9116     DLLTOOL=$ac_ct_DLLTOOL
9117   fi
9118 else
9119   DLLTOOL="$ac_cv_prog_DLLTOOL"
9120 fi
9121
9122   if test -n "$ac_tool_prefix"; then
9123   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9124 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9126 $as_echo_n "checking for $ac_word... " >&6; }
9127 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9128   $as_echo_n "(cached) " >&6
9129 else
9130   if test -n "$OBJDUMP"; then
9131   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9132 else
9133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9134 for as_dir in $PATH
9135 do
9136   IFS=$as_save_IFS
9137   test -z "$as_dir" && as_dir=.
9138     for ac_exec_ext in '' $ac_executable_extensions; do
9139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9140     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9142     break 2
9143   fi
9144 done
9145   done
9146 IFS=$as_save_IFS
9147
9148 fi
9149 fi
9150 OBJDUMP=$ac_cv_prog_OBJDUMP
9151 if test -n "$OBJDUMP"; then
9152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9153 $as_echo "$OBJDUMP" >&6; }
9154 else
9155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9156 $as_echo "no" >&6; }
9157 fi
9158
9159
9160 fi
9161 if test -z "$ac_cv_prog_OBJDUMP"; then
9162   ac_ct_OBJDUMP=$OBJDUMP
9163   # Extract the first word of "objdump", so it can be a program name with args.
9164 set dummy objdump; ac_word=$2
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9166 $as_echo_n "checking for $ac_word... " >&6; }
9167 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
9168   $as_echo_n "(cached) " >&6
9169 else
9170   if test -n "$ac_ct_OBJDUMP"; then
9171   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9172 else
9173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9174 for as_dir in $PATH
9175 do
9176   IFS=$as_save_IFS
9177   test -z "$as_dir" && as_dir=.
9178     for ac_exec_ext in '' $ac_executable_extensions; do
9179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9180     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9182     break 2
9183   fi
9184 done
9185   done
9186 IFS=$as_save_IFS
9187
9188 fi
9189 fi
9190 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9191 if test -n "$ac_ct_OBJDUMP"; then
9192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9193 $as_echo "$ac_ct_OBJDUMP" >&6; }
9194 else
9195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9196 $as_echo "no" >&6; }
9197 fi
9198
9199   if test "x$ac_ct_OBJDUMP" = x; then
9200     OBJDUMP="false"
9201   else
9202     case $cross_compiling:$ac_tool_warned in
9203 yes:)
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9206 ac_tool_warned=yes ;;
9207 esac
9208     OBJDUMP=$ac_ct_OBJDUMP
9209   fi
9210 else
9211   OBJDUMP="$ac_cv_prog_OBJDUMP"
9212 fi
9213
9214   ;;
9215 esac
9216
9217 test -z "$AS" && AS=as
9218
9219
9220
9221
9222
9223 test -z "$DLLTOOL" && DLLTOOL=dlltool
9224
9225
9226
9227
9228
9229 test -z "$OBJDUMP" && OBJDUMP=objdump
9230
9231
9232
9233
9234
9235
9236
9237         enable_dlopen=no
9238
9239
9240
9241             # Check whether --enable-shared was given.
9242 if test "${enable_shared+set}" = set; then :
9243   enableval=$enable_shared; p=${PACKAGE-default}
9244     case $enableval in
9245     yes) enable_shared=yes ;;
9246     no) enable_shared=no ;;
9247     *)
9248       enable_shared=no
9249       # Look at the argument we got.  We use all the common list separators.
9250       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9251       for pkg in $enableval; do
9252         IFS="$lt_save_ifs"
9253         if test "X$pkg" = "X$p"; then
9254           enable_shared=yes
9255         fi
9256       done
9257       IFS="$lt_save_ifs"
9258       ;;
9259     esac
9260 else
9261   enable_shared=yes
9262 fi
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272   # Check whether --enable-static was given.
9273 if test "${enable_static+set}" = set; then :
9274   enableval=$enable_static; p=${PACKAGE-default}
9275     case $enableval in
9276     yes) enable_static=yes ;;
9277     no) enable_static=no ;;
9278     *)
9279      enable_static=no
9280       # Look at the argument we got.  We use all the common list separators.
9281       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9282       for pkg in $enableval; do
9283         IFS="$lt_save_ifs"
9284         if test "X$pkg" = "X$p"; then
9285           enable_static=yes
9286         fi
9287       done
9288       IFS="$lt_save_ifs"
9289       ;;
9290     esac
9291 else
9292   enable_static=yes
9293 fi
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304 # Check whether --with-pic was given.
9305 if test "${with_pic+set}" = set; then :
9306   withval=$with_pic; pic_mode="$withval"
9307 else
9308   pic_mode=default
9309 fi
9310
9311
9312 test -z "$pic_mode" && pic_mode=default
9313
9314
9315
9316
9317
9318
9319
9320   # Check whether --enable-fast-install was given.
9321 if test "${enable_fast_install+set}" = set; then :
9322   enableval=$enable_fast_install; p=${PACKAGE-default}
9323     case $enableval in
9324     yes) enable_fast_install=yes ;;
9325     no) enable_fast_install=no ;;
9326     *)
9327       enable_fast_install=no
9328       # Look at the argument we got.  We use all the common list separators.
9329       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9330       for pkg in $enableval; do
9331         IFS="$lt_save_ifs"
9332         if test "X$pkg" = "X$p"; then
9333           enable_fast_install=yes
9334         fi
9335       done
9336       IFS="$lt_save_ifs"
9337       ;;
9338     esac
9339 else
9340   enable_fast_install=yes
9341 fi
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353 # This can be used to rebuild libtool when needed
9354 LIBTOOL_DEPS="$ltmain"
9355
9356 # Always use our own libtool.
9357 LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383 test -z "$LN_S" && LN_S="ln -s"
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398 if test -n "${ZSH_VERSION+set}" ; then
9399    setopt NO_GLOB_SUBST
9400 fi
9401
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9403 $as_echo_n "checking for objdir... " >&6; }
9404 if test "${lt_cv_objdir+set}" = set; then :
9405   $as_echo_n "(cached) " >&6
9406 else
9407   rm -f .libs 2>/dev/null
9408 mkdir .libs 2>/dev/null
9409 if test -d .libs; then
9410   lt_cv_objdir=.libs
9411 else
9412   # MS-DOS does not allow filenames that begin with a dot.
9413   lt_cv_objdir=_libs
9414 fi
9415 rmdir .libs 2>/dev/null
9416 fi
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9418 $as_echo "$lt_cv_objdir" >&6; }
9419 objdir=$lt_cv_objdir
9420
9421
9422
9423
9424
9425 cat >>confdefs.h <<_ACEOF
9426 #define LT_OBJDIR "$lt_cv_objdir/"
9427 _ACEOF
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445 case $host_os in
9446 aix3*)
9447   # AIX sometimes has problems with the GCC collect2 program.  For some
9448   # reason, if we set the COLLECT_NAMES environment variable, the problems
9449   # vanish in a puff of smoke.
9450   if test "X${COLLECT_NAMES+set}" != Xset; then
9451     COLLECT_NAMES=
9452     export COLLECT_NAMES
9453   fi
9454   ;;
9455 esac
9456
9457 # Sed substitution that helps us do robust quoting.  It backslashifies
9458 # metacharacters that are still active within double-quoted strings.
9459 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9460
9461 # Same as above, but do not quote variable references.
9462 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9463
9464 # Sed substitution to delay expansion of an escaped shell variable in a
9465 # double_quote_subst'ed string.
9466 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9467
9468 # Sed substitution to delay expansion of an escaped single quote.
9469 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9470
9471 # Sed substitution to avoid accidental globbing in evaled expressions
9472 no_glob_subst='s/\*/\\\*/g'
9473
9474 # Global variables:
9475 ofile=libtool
9476 can_build_shared=yes
9477
9478 # All known linkers require a `.a' archive for static linking (except MSVC,
9479 # which needs '.lib').
9480 libext=a
9481
9482 with_gnu_ld="$lt_cv_prog_gnu_ld"
9483
9484 old_CC="$CC"
9485 old_CFLAGS="$CFLAGS"
9486
9487 # Set sane defaults for various variables
9488 test -z "$CC" && CC=cc
9489 test -z "$LTCC" && LTCC=$CC
9490 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9491 test -z "$LD" && LD=ld
9492 test -z "$ac_objext" && ac_objext=o
9493
9494 for cc_temp in $compiler""; do
9495   case $cc_temp in
9496     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9497     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9498     \-*) ;;
9499     *) break;;
9500   esac
9501 done
9502 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9503
9504
9505 # Only perform the check for file, if the check method requires it
9506 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9507 case $deplibs_check_method in
9508 file_magic*)
9509   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9510     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9511 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9512 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9513   $as_echo_n "(cached) " >&6
9514 else
9515   case $MAGIC_CMD in
9516 [\\/*] |  ?:[\\/]*)
9517   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9518   ;;
9519 *)
9520   lt_save_MAGIC_CMD="$MAGIC_CMD"
9521   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9522   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9523   for ac_dir in $ac_dummy; do
9524     IFS="$lt_save_ifs"
9525     test -z "$ac_dir" && ac_dir=.
9526     if test -f $ac_dir/${ac_tool_prefix}file; then
9527       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9528       if test -n "$file_magic_test_file"; then
9529         case $deplibs_check_method in
9530         "file_magic "*)
9531           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9532           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9533           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9534             $EGREP "$file_magic_regex" > /dev/null; then
9535             :
9536           else
9537             cat <<_LT_EOF 1>&2
9538
9539 *** Warning: the command libtool uses to detect shared libraries,
9540 *** $file_magic_cmd, produces output that libtool cannot recognize.
9541 *** The result is that libtool may fail to recognize shared libraries
9542 *** as such.  This will affect the creation of libtool libraries that
9543 *** depend on shared libraries, but programs linked with such libtool
9544 *** libraries will work regardless of this problem.  Nevertheless, you
9545 *** may want to report the problem to your system manager and/or to
9546 *** bug-libtool@gnu.org
9547
9548 _LT_EOF
9549           fi ;;
9550         esac
9551       fi
9552       break
9553     fi
9554   done
9555   IFS="$lt_save_ifs"
9556   MAGIC_CMD="$lt_save_MAGIC_CMD"
9557   ;;
9558 esac
9559 fi
9560
9561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9562 if test -n "$MAGIC_CMD"; then
9563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9564 $as_echo "$MAGIC_CMD" >&6; }
9565 else
9566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567 $as_echo "no" >&6; }
9568 fi
9569
9570
9571
9572
9573
9574 if test -z "$lt_cv_path_MAGIC_CMD"; then
9575   if test -n "$ac_tool_prefix"; then
9576     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9577 $as_echo_n "checking for file... " >&6; }
9578 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9579   $as_echo_n "(cached) " >&6
9580 else
9581   case $MAGIC_CMD in
9582 [\\/*] |  ?:[\\/]*)
9583   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9584   ;;
9585 *)
9586   lt_save_MAGIC_CMD="$MAGIC_CMD"
9587   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9588   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9589   for ac_dir in $ac_dummy; do
9590     IFS="$lt_save_ifs"
9591     test -z "$ac_dir" && ac_dir=.
9592     if test -f $ac_dir/file; then
9593       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9594       if test -n "$file_magic_test_file"; then
9595         case $deplibs_check_method in
9596         "file_magic "*)
9597           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9598           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9599           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9600             $EGREP "$file_magic_regex" > /dev/null; then
9601             :
9602           else
9603             cat <<_LT_EOF 1>&2
9604
9605 *** Warning: the command libtool uses to detect shared libraries,
9606 *** $file_magic_cmd, produces output that libtool cannot recognize.
9607 *** The result is that libtool may fail to recognize shared libraries
9608 *** as such.  This will affect the creation of libtool libraries that
9609 *** depend on shared libraries, but programs linked with such libtool
9610 *** libraries will work regardless of this problem.  Nevertheless, you
9611 *** may want to report the problem to your system manager and/or to
9612 *** bug-libtool@gnu.org
9613
9614 _LT_EOF
9615           fi ;;
9616         esac
9617       fi
9618       break
9619     fi
9620   done
9621   IFS="$lt_save_ifs"
9622   MAGIC_CMD="$lt_save_MAGIC_CMD"
9623   ;;
9624 esac
9625 fi
9626
9627 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9628 if test -n "$MAGIC_CMD"; then
9629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9630 $as_echo "$MAGIC_CMD" >&6; }
9631 else
9632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633 $as_echo "no" >&6; }
9634 fi
9635
9636
9637   else
9638     MAGIC_CMD=:
9639   fi
9640 fi
9641
9642   fi
9643   ;;
9644 esac
9645
9646 # Use C for the default configuration in the libtool script
9647
9648 lt_save_CC="$CC"
9649 ac_ext=c
9650 ac_cpp='$CPP $CPPFLAGS'
9651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9654
9655
9656 # Source file extension for C test sources.
9657 ac_ext=c
9658
9659 # Object file extension for compiled C test sources.
9660 objext=o
9661 objext=$objext
9662
9663 # Code to be used in simple compile tests
9664 lt_simple_compile_test_code="int some_variable = 0;"
9665
9666 # Code to be used in simple link tests
9667 lt_simple_link_test_code='int main(){return(0);}'
9668
9669
9670
9671
9672
9673
9674
9675 # If no C compiler was specified, use CC.
9676 LTCC=${LTCC-"$CC"}
9677
9678 # If no C compiler flags were specified, use CFLAGS.
9679 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9680
9681 # Allow CC to be a program name with arguments.
9682 compiler=$CC
9683
9684 # Save the default compiler, since it gets overwritten when the other
9685 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9686 compiler_DEFAULT=$CC
9687
9688 # save warnings/boilerplate of simple test code
9689 ac_outfile=conftest.$ac_objext
9690 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9691 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9692 _lt_compiler_boilerplate=`cat conftest.err`
9693 $RM conftest*
9694
9695 ac_outfile=conftest.$ac_objext
9696 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9697 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9698 _lt_linker_boilerplate=`cat conftest.err`
9699 $RM -r conftest*
9700
9701
9702 ## CAVEAT EMPTOR:
9703 ## There is no encapsulation within the following macros, do not change
9704 ## the running order or otherwise move them around unless you know exactly
9705 ## what you are doing...
9706 if test -n "$compiler"; then
9707
9708 lt_prog_compiler_no_builtin_flag=
9709
9710 if test "$GCC" = yes; then
9711   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9712
9713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9714 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9715 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9716   $as_echo_n "(cached) " >&6
9717 else
9718   lt_cv_prog_compiler_rtti_exceptions=no
9719    ac_outfile=conftest.$ac_objext
9720    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9721    lt_compiler_flag="-fno-rtti -fno-exceptions"
9722    # Insert the option either (1) after the last *FLAGS variable, or
9723    # (2) before a word containing "conftest.", or (3) at the end.
9724    # Note that $ac_compile itself does not contain backslashes and begins
9725    # with a dollar sign (not a hyphen), so the echo should work correctly.
9726    # The option is referenced via a variable to avoid confusing sed.
9727    lt_compile=`echo "$ac_compile" | $SED \
9728    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9729    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9730    -e 's:$: $lt_compiler_flag:'`
9731    (eval echo "\"\$as_me:9731: $lt_compile\"" >&5)
9732    (eval "$lt_compile" 2>conftest.err)
9733    ac_status=$?
9734    cat conftest.err >&5
9735    echo "$as_me:9735: \$? = $ac_status" >&5
9736    if (exit $ac_status) && test -s "$ac_outfile"; then
9737      # The compiler can only warn and ignore the option if not recognized
9738      # So say no if there are warnings other than the usual output.
9739      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9740      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9741      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9742        lt_cv_prog_compiler_rtti_exceptions=yes
9743      fi
9744    fi
9745    $RM conftest*
9746
9747 fi
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9749 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9750
9751 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9752     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9753 else
9754     :
9755 fi
9756
9757 fi
9758
9759
9760
9761
9762
9763
9764   lt_prog_compiler_wl=
9765 lt_prog_compiler_pic=
9766 lt_prog_compiler_static=
9767
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9769 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9770
9771   if test "$GCC" = yes; then
9772     lt_prog_compiler_wl='-Wl,'
9773     lt_prog_compiler_static='-static'
9774
9775     case $host_os in
9776       aix*)
9777       # All AIX code is PIC.
9778       if test "$host_cpu" = ia64; then
9779         # AIX 5 now supports IA64 processor
9780         lt_prog_compiler_static='-Bstatic'
9781       fi
9782       ;;
9783
9784     amigaos*)
9785       case $host_cpu in
9786       powerpc)
9787             # see comment about AmigaOS4 .so support
9788             lt_prog_compiler_pic='-fPIC'
9789         ;;
9790       m68k)
9791             # FIXME: we need at least 68020 code to build shared libraries, but
9792             # adding the `-m68020' flag to GCC prevents building anything better,
9793             # like `-m68040'.
9794             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9795         ;;
9796       esac
9797       ;;
9798
9799     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9800       # PIC is the default for these OSes.
9801       ;;
9802
9803     mingw* | cygwin* | pw32* | os2* | cegcc*)
9804       # This hack is so that the source file can tell whether it is being
9805       # built for inclusion in a dll (and should export symbols for example).
9806       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9807       # (--disable-auto-import) libraries
9808       lt_prog_compiler_pic='-DDLL_EXPORT'
9809       ;;
9810
9811     darwin* | rhapsody*)
9812       # PIC is the default on this platform
9813       # Common symbols not allowed in MH_DYLIB files
9814       lt_prog_compiler_pic='-fno-common'
9815       ;;
9816
9817     hpux*)
9818       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9819       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9820       # sets the default TLS model and affects inlining.
9821       case $host_cpu in
9822       hppa*64*)
9823         # +Z the default
9824         ;;
9825       *)
9826         lt_prog_compiler_pic='-fPIC'
9827         ;;
9828       esac
9829       ;;
9830
9831     interix[3-9]*)
9832       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9833       # Instead, we relocate shared libraries at runtime.
9834       ;;
9835
9836     msdosdjgpp*)
9837       # Just because we use GCC doesn't mean we suddenly get shared libraries
9838       # on systems that don't support them.
9839       lt_prog_compiler_can_build_shared=no
9840       enable_shared=no
9841       ;;
9842
9843     *nto* | *qnx*)
9844       # QNX uses GNU C++, but need to define -shared option too, otherwise
9845       # it will coredump.
9846       lt_prog_compiler_pic='-fPIC -shared'
9847       ;;
9848
9849     sysv4*MP*)
9850       if test -d /usr/nec; then
9851         lt_prog_compiler_pic=-Kconform_pic
9852       fi
9853       ;;
9854
9855     *)
9856       lt_prog_compiler_pic='-fPIC'
9857       ;;
9858     esac
9859   else
9860     # PORTME Check for flag to pass linker flags through the system compiler.
9861     case $host_os in
9862     aix*)
9863       lt_prog_compiler_wl='-Wl,'
9864       if test "$host_cpu" = ia64; then
9865         # AIX 5 now supports IA64 processor
9866         lt_prog_compiler_static='-Bstatic'
9867       else
9868         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9869       fi
9870       ;;
9871
9872     mingw* | cygwin* | pw32* | os2* | cegcc*)
9873       # This hack is so that the source file can tell whether it is being
9874       # built for inclusion in a dll (and should export symbols for example).
9875       lt_prog_compiler_pic='-DDLL_EXPORT'
9876       ;;
9877
9878     hpux9* | hpux10* | hpux11*)
9879       lt_prog_compiler_wl='-Wl,'
9880       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9881       # not for PA HP-UX.
9882       case $host_cpu in
9883       hppa*64*|ia64*)
9884         # +Z the default
9885         ;;
9886       *)
9887         lt_prog_compiler_pic='+Z'
9888         ;;
9889       esac
9890       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9891       lt_prog_compiler_static='${wl}-a ${wl}archive'
9892       ;;
9893
9894     irix5* | irix6* | nonstopux*)
9895       lt_prog_compiler_wl='-Wl,'
9896       # PIC (with -KPIC) is the default.
9897       lt_prog_compiler_static='-non_shared'
9898       ;;
9899
9900     linux* | k*bsd*-gnu)
9901       case $cc_basename in
9902       # old Intel for x86_64 which still supported -KPIC.
9903       ecc*)
9904         lt_prog_compiler_wl='-Wl,'
9905         lt_prog_compiler_pic='-KPIC'
9906         lt_prog_compiler_static='-static'
9907         ;;
9908       # icc used to be incompatible with GCC.
9909       # ICC 10 doesn't accept -KPIC any more.
9910       icc* | ifort*)
9911         lt_prog_compiler_wl='-Wl,'
9912         lt_prog_compiler_pic='-fPIC'
9913         lt_prog_compiler_static='-static'
9914         ;;
9915       # Lahey Fortran 8.1.
9916       lf95*)
9917         lt_prog_compiler_wl='-Wl,'
9918         lt_prog_compiler_pic='--shared'
9919         lt_prog_compiler_static='--static'
9920         ;;
9921       pgcc* | pgf77* | pgf90* | pgf95*)
9922         # Portland Group compilers (*not* the Pentium gcc compiler,
9923         # which looks to be a dead project)
9924         lt_prog_compiler_wl='-Wl,'
9925         lt_prog_compiler_pic='-fpic'
9926         lt_prog_compiler_static='-Bstatic'
9927         ;;
9928       ccc*)
9929         lt_prog_compiler_wl='-Wl,'
9930         # All Alpha code is PIC.
9931         lt_prog_compiler_static='-non_shared'
9932         ;;
9933       xl*)
9934         # IBM XL C 8.0/Fortran 10.1 on PPC
9935         lt_prog_compiler_wl='-Wl,'
9936         lt_prog_compiler_pic='-qpic'
9937         lt_prog_compiler_static='-qstaticlink'
9938         ;;
9939       *)
9940         case `$CC -V 2>&1 | sed 5q` in
9941         *Sun\ C*)
9942           # Sun C 5.9
9943           lt_prog_compiler_pic='-KPIC'
9944           lt_prog_compiler_static='-Bstatic'
9945           lt_prog_compiler_wl='-Wl,'
9946           ;;
9947         *Sun\ F*)
9948           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9949           lt_prog_compiler_pic='-KPIC'
9950           lt_prog_compiler_static='-Bstatic'
9951           lt_prog_compiler_wl=''
9952           ;;
9953         esac
9954         ;;
9955       esac
9956       ;;
9957
9958     newsos6)
9959       lt_prog_compiler_pic='-KPIC'
9960       lt_prog_compiler_static='-Bstatic'
9961       ;;
9962
9963     *nto* | *qnx*)
9964       # QNX uses GNU C++, but need to define -shared option too, otherwise
9965       # it will coredump.
9966       lt_prog_compiler_pic='-fPIC -shared'
9967       ;;
9968
9969     osf3* | osf4* | osf5*)
9970       lt_prog_compiler_wl='-Wl,'
9971       # All OSF/1 code is PIC.
9972       lt_prog_compiler_static='-non_shared'
9973       ;;
9974
9975     rdos*)
9976       lt_prog_compiler_static='-non_shared'
9977       ;;
9978
9979     solaris*)
9980       lt_prog_compiler_pic='-KPIC'
9981       lt_prog_compiler_static='-Bstatic'
9982       case $cc_basename in
9983       f77* | f90* | f95*)
9984         lt_prog_compiler_wl='-Qoption ld ';;
9985       *)
9986         lt_prog_compiler_wl='-Wl,';;
9987       esac
9988       ;;
9989
9990     sunos4*)
9991       lt_prog_compiler_wl='-Qoption ld '
9992       lt_prog_compiler_pic='-PIC'
9993       lt_prog_compiler_static='-Bstatic'
9994       ;;
9995
9996     sysv4 | sysv4.2uw2* | sysv4.3*)
9997       lt_prog_compiler_wl='-Wl,'
9998       lt_prog_compiler_pic='-KPIC'
9999       lt_prog_compiler_static='-Bstatic'
10000       ;;
10001
10002     sysv4*MP*)
10003       if test -d /usr/nec ;then
10004         lt_prog_compiler_pic='-Kconform_pic'
10005         lt_prog_compiler_static='-Bstatic'
10006       fi
10007       ;;
10008
10009     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10010       lt_prog_compiler_wl='-Wl,'
10011       lt_prog_compiler_pic='-KPIC'
10012       lt_prog_compiler_static='-Bstatic'
10013       ;;
10014
10015     unicos*)
10016       lt_prog_compiler_wl='-Wl,'
10017       lt_prog_compiler_can_build_shared=no
10018       ;;
10019
10020     uts4*)
10021       lt_prog_compiler_pic='-pic'
10022       lt_prog_compiler_static='-Bstatic'
10023       ;;
10024
10025     *)
10026       lt_prog_compiler_can_build_shared=no
10027       ;;
10028     esac
10029   fi
10030
10031 case $host_os in
10032   # For platforms which do not support PIC, -DPIC is meaningless:
10033   *djgpp*)
10034     lt_prog_compiler_pic=
10035     ;;
10036   *)
10037     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10038     ;;
10039 esac
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10041 $as_echo "$lt_prog_compiler_pic" >&6; }
10042
10043
10044
10045
10046
10047
10048 #
10049 # Check to make sure the PIC flag actually works.
10050 #
10051 if test -n "$lt_prog_compiler_pic"; then
10052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10053 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10054 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10055   $as_echo_n "(cached) " >&6
10056 else
10057   lt_cv_prog_compiler_pic_works=no
10058    ac_outfile=conftest.$ac_objext
10059    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10060    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10061    # Insert the option either (1) after the last *FLAGS variable, or
10062    # (2) before a word containing "conftest.", or (3) at the end.
10063    # Note that $ac_compile itself does not contain backslashes and begins
10064    # with a dollar sign (not a hyphen), so the echo should work correctly.
10065    # The option is referenced via a variable to avoid confusing sed.
10066    lt_compile=`echo "$ac_compile" | $SED \
10067    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10068    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10069    -e 's:$: $lt_compiler_flag:'`
10070    (eval echo "\"\$as_me:10070: $lt_compile\"" >&5)
10071    (eval "$lt_compile" 2>conftest.err)
10072    ac_status=$?
10073    cat conftest.err >&5
10074    echo "$as_me:10074: \$? = $ac_status" >&5
10075    if (exit $ac_status) && test -s "$ac_outfile"; then
10076      # The compiler can only warn and ignore the option if not recognized
10077      # So say no if there are warnings other than the usual output.
10078      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10079      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10080      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10081        lt_cv_prog_compiler_pic_works=yes
10082      fi
10083    fi
10084    $RM conftest*
10085
10086 fi
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10088 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10089
10090 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10091     case $lt_prog_compiler_pic in
10092      "" | " "*) ;;
10093      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10094      esac
10095 else
10096     lt_prog_compiler_pic=
10097      lt_prog_compiler_can_build_shared=no
10098 fi
10099
10100 fi
10101
10102
10103
10104
10105
10106
10107 #
10108 # Check to make sure the static flag actually works.
10109 #
10110 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10112 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10113 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10114   $as_echo_n "(cached) " >&6
10115 else
10116   lt_cv_prog_compiler_static_works=no
10117    save_LDFLAGS="$LDFLAGS"
10118    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10119    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10120    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10121      # The linker can only warn and ignore the option if not recognized
10122      # So say no if there are warnings
10123      if test -s conftest.err; then
10124        # Append any errors to the config.log.
10125        cat conftest.err 1>&5
10126        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10127        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10128        if diff conftest.exp conftest.er2 >/dev/null; then
10129          lt_cv_prog_compiler_static_works=yes
10130        fi
10131      else
10132        lt_cv_prog_compiler_static_works=yes
10133      fi
10134    fi
10135    $RM -r conftest*
10136    LDFLAGS="$save_LDFLAGS"
10137
10138 fi
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10140 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10141
10142 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10143     :
10144 else
10145     lt_prog_compiler_static=
10146 fi
10147
10148
10149
10150
10151
10152
10153
10154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10155 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10156 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10157   $as_echo_n "(cached) " >&6
10158 else
10159   lt_cv_prog_compiler_c_o=no
10160    $RM -r conftest 2>/dev/null
10161    mkdir conftest
10162    cd conftest
10163    mkdir out
10164    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10165
10166    lt_compiler_flag="-o out/conftest2.$ac_objext"
10167    # Insert the option either (1) after the last *FLAGS variable, or
10168    # (2) before a word containing "conftest.", or (3) at the end.
10169    # Note that $ac_compile itself does not contain backslashes and begins
10170    # with a dollar sign (not a hyphen), so the echo should work correctly.
10171    lt_compile=`echo "$ac_compile" | $SED \
10172    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10173    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10174    -e 's:$: $lt_compiler_flag:'`
10175    (eval echo "\"\$as_me:10175: $lt_compile\"" >&5)
10176    (eval "$lt_compile" 2>out/conftest.err)
10177    ac_status=$?
10178    cat out/conftest.err >&5
10179    echo "$as_me:10179: \$? = $ac_status" >&5
10180    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10181    then
10182      # The compiler can only warn and ignore the option if not recognized
10183      # So say no if there are warnings
10184      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10185      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10186      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10187        lt_cv_prog_compiler_c_o=yes
10188      fi
10189    fi
10190    chmod u+w . 2>&5
10191    $RM conftest*
10192    # SGI C++ compiler will create directory out/ii_files/ for
10193    # template instantiation
10194    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10195    $RM out/* && rmdir out
10196    cd ..
10197    $RM -r conftest
10198    $RM conftest*
10199
10200 fi
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10202 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10203
10204
10205
10206
10207
10208
10209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10210 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10211 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10212   $as_echo_n "(cached) " >&6
10213 else
10214   lt_cv_prog_compiler_c_o=no
10215    $RM -r conftest 2>/dev/null
10216    mkdir conftest
10217    cd conftest
10218    mkdir out
10219    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10220
10221    lt_compiler_flag="-o out/conftest2.$ac_objext"
10222    # Insert the option either (1) after the last *FLAGS variable, or
10223    # (2) before a word containing "conftest.", or (3) at the end.
10224    # Note that $ac_compile itself does not contain backslashes and begins
10225    # with a dollar sign (not a hyphen), so the echo should work correctly.
10226    lt_compile=`echo "$ac_compile" | $SED \
10227    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10228    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10229    -e 's:$: $lt_compiler_flag:'`
10230    (eval echo "\"\$as_me:10230: $lt_compile\"" >&5)
10231    (eval "$lt_compile" 2>out/conftest.err)
10232    ac_status=$?
10233    cat out/conftest.err >&5
10234    echo "$as_me:10234: \$? = $ac_status" >&5
10235    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10236    then
10237      # The compiler can only warn and ignore the option if not recognized
10238      # So say no if there are warnings
10239      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10240      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10241      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10242        lt_cv_prog_compiler_c_o=yes
10243      fi
10244    fi
10245    chmod u+w . 2>&5
10246    $RM conftest*
10247    # SGI C++ compiler will create directory out/ii_files/ for
10248    # template instantiation
10249    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10250    $RM out/* && rmdir out
10251    cd ..
10252    $RM -r conftest
10253    $RM conftest*
10254
10255 fi
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10257 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10258
10259
10260
10261
10262 hard_links="nottested"
10263 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10264   # do not overwrite the value of need_locks provided by the user
10265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10266 $as_echo_n "checking if we can lock with hard links... " >&6; }
10267   hard_links=yes
10268   $RM conftest*
10269   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10270   touch conftest.a
10271   ln conftest.a conftest.b 2>&5 || hard_links=no
10272   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10274 $as_echo "$hard_links" >&6; }
10275   if test "$hard_links" = no; then
10276     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10277 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10278     need_locks=warn
10279   fi
10280 else
10281   need_locks=no
10282 fi
10283
10284
10285
10286
10287
10288
10289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10290 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10291
10292   runpath_var=
10293   allow_undefined_flag=
10294   always_export_symbols=no
10295   archive_cmds=
10296   archive_expsym_cmds=
10297   compiler_needs_object=no
10298   enable_shared_with_static_runtimes=no
10299   export_dynamic_flag_spec=
10300   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10301   hardcode_automatic=no
10302   hardcode_direct=no
10303   hardcode_direct_absolute=no
10304   hardcode_libdir_flag_spec=
10305   hardcode_libdir_flag_spec_ld=
10306   hardcode_libdir_separator=
10307   hardcode_minus_L=no
10308   hardcode_shlibpath_var=unsupported
10309   inherit_rpath=no
10310   link_all_deplibs=unknown
10311   module_cmds=
10312   module_expsym_cmds=
10313   old_archive_from_new_cmds=
10314   old_archive_from_expsyms_cmds=
10315   thread_safe_flag_spec=
10316   whole_archive_flag_spec=
10317   # include_expsyms should be a list of space-separated symbols to be *always*
10318   # included in the symbol list
10319   include_expsyms=
10320   # exclude_expsyms can be an extended regexp of symbols to exclude
10321   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10322   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10323   # as well as any symbol that contains `d'.
10324   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10325   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10326   # platforms (ab)use it in PIC code, but their linkers get confused if
10327   # the symbol is explicitly referenced.  Since portable code cannot
10328   # rely on this symbol name, it's probably fine to never include it in
10329   # preloaded symbol tables.
10330   # Exclude shared library initialization/finalization symbols.
10331   extract_expsyms_cmds=
10332
10333   case $host_os in
10334   cygwin* | mingw* | pw32* | cegcc*)
10335     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10336     # When not using gcc, we currently assume that we are using
10337     # Microsoft Visual C++.
10338     if test "$GCC" != yes; then
10339       with_gnu_ld=no
10340     fi
10341     ;;
10342   interix*)
10343     # we just hope/assume this is gcc and not c89 (= MSVC++)
10344     with_gnu_ld=yes
10345     ;;
10346   openbsd*)
10347     with_gnu_ld=no
10348     ;;
10349   esac
10350
10351   ld_shlibs=yes
10352   if test "$with_gnu_ld" = yes; then
10353     # If archive_cmds runs LD, not CC, wlarc should be empty
10354     wlarc='${wl}'
10355
10356     # Set some defaults for GNU ld with shared library support. These
10357     # are reset later if shared libraries are not supported. Putting them
10358     # here allows them to be overridden if necessary.
10359     runpath_var=LD_RUN_PATH
10360     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10361     export_dynamic_flag_spec='${wl}--export-dynamic'
10362     # ancient GNU ld didn't support --whole-archive et. al.
10363     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10364       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10365     else
10366       whole_archive_flag_spec=
10367     fi
10368     supports_anon_versioning=no
10369     case `$LD -v 2>&1` in
10370       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10371       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10372       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10373       *\ 2.11.*) ;; # other 2.11 versions
10374       *) supports_anon_versioning=yes ;;
10375     esac
10376
10377     # See if GNU ld supports shared libraries.
10378     case $host_os in
10379     aix[3-9]*)
10380       # On AIX/PPC, the GNU linker is very broken
10381       if test "$host_cpu" != ia64; then
10382         ld_shlibs=no
10383         cat <<_LT_EOF 1>&2
10384
10385 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10386 *** to be unable to reliably create shared libraries on AIX.
10387 *** Therefore, libtool is disabling shared libraries support.  If you
10388 *** really care for shared libraries, you may want to modify your PATH
10389 *** so that a non-GNU linker is found, and then restart.
10390
10391 _LT_EOF
10392       fi
10393       ;;
10394
10395     amigaos*)
10396       case $host_cpu in
10397       powerpc)
10398             # see comment about AmigaOS4 .so support
10399             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10400             archive_expsym_cmds=''
10401         ;;
10402       m68k)
10403             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)'
10404             hardcode_libdir_flag_spec='-L$libdir'
10405             hardcode_minus_L=yes
10406         ;;
10407       esac
10408       ;;
10409
10410     beos*)
10411       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10412         allow_undefined_flag=unsupported
10413         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10414         # support --undefined.  This deserves some investigation.  FIXME
10415         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10416       else
10417         ld_shlibs=no
10418       fi
10419       ;;
10420
10421     cygwin* | mingw* | pw32* | cegcc*)
10422       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10423       # as there is no search path for DLLs.
10424       hardcode_libdir_flag_spec='-L$libdir'
10425       allow_undefined_flag=unsupported
10426       always_export_symbols=no
10427       enable_shared_with_static_runtimes=yes
10428       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10429
10430       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10431         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10432         # If the export-symbols file already is a .def file (1st line
10433         # is EXPORTS), use it as is; otherwise, prepend...
10434         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10435           cp $export_symbols $output_objdir/$soname.def;
10436         else
10437           echo EXPORTS > $output_objdir/$soname.def;
10438           cat $export_symbols >> $output_objdir/$soname.def;
10439         fi~
10440         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10441       else
10442         ld_shlibs=no
10443       fi
10444       ;;
10445
10446     interix[3-9]*)
10447       hardcode_direct=no
10448       hardcode_shlibpath_var=no
10449       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10450       export_dynamic_flag_spec='${wl}-E'
10451       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10452       # Instead, shared libraries are loaded at an image base (0x10000000 by
10453       # default) and relocated if they conflict, which is a slow very memory
10454       # consuming and fragmenting process.  To avoid this, we pick a random,
10455       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10456       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10457       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10458       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'
10459       ;;
10460
10461     gnu* | linux* | tpf* | k*bsd*-gnu)
10462       tmp_diet=no
10463       if test "$host_os" = linux-dietlibc; then
10464         case $cc_basename in
10465           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10466         esac
10467       fi
10468       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10469          && test "$tmp_diet" = no
10470       then
10471         tmp_addflag=
10472         tmp_sharedflag='-shared'
10473         case $cc_basename,$host_cpu in
10474         pgcc*)                          # Portland Group C compiler
10475           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10476           tmp_addflag=' $pic_flag'
10477           ;;
10478         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10479           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10480           tmp_addflag=' $pic_flag -Mnomain' ;;
10481         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10482           tmp_addflag=' -i_dynamic' ;;
10483         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10484           tmp_addflag=' -i_dynamic -nofor_main' ;;
10485         ifc* | ifort*)                  # Intel Fortran compiler
10486           tmp_addflag=' -nofor_main' ;;
10487         lf95*)                          # Lahey Fortran 8.1
10488           whole_archive_flag_spec=
10489           tmp_sharedflag='--shared' ;;
10490         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10491           tmp_sharedflag='-qmkshrobj'
10492           tmp_addflag= ;;
10493         esac
10494         case `$CC -V 2>&1 | sed 5q` in
10495         *Sun\ C*)                       # Sun C 5.9
10496           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10497           compiler_needs_object=yes
10498           tmp_sharedflag='-G' ;;
10499         *Sun\ F*)                       # Sun Fortran 8.3
10500           tmp_sharedflag='-G' ;;
10501         esac
10502         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10503
10504         if test "x$supports_anon_versioning" = xyes; then
10505           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10506             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10507             echo "local: *; };" >> $output_objdir/$libname.ver~
10508             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10509         fi
10510
10511         case $cc_basename in
10512         xlf*)
10513           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10514           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10515           hardcode_libdir_flag_spec=
10516           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10517           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10518           if test "x$supports_anon_versioning" = xyes; then
10519             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10520               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10521               echo "local: *; };" >> $output_objdir/$libname.ver~
10522               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10523           fi
10524           ;;
10525         esac
10526       else
10527         ld_shlibs=no
10528       fi
10529       ;;
10530
10531     netbsd*)
10532       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10533         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10534         wlarc=
10535       else
10536         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10537         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10538       fi
10539       ;;
10540
10541     solaris*)
10542       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10543         ld_shlibs=no
10544         cat <<_LT_EOF 1>&2
10545
10546 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10547 *** create shared libraries on Solaris systems.  Therefore, libtool
10548 *** is disabling shared libraries support.  We urge you to upgrade GNU
10549 *** binutils to release 2.9.1 or newer.  Another option is to modify
10550 *** your PATH or compiler configuration so that the native linker is
10551 *** used, and then restart.
10552
10553 _LT_EOF
10554       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10555         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10556         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10557       else
10558         ld_shlibs=no
10559       fi
10560       ;;
10561
10562     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10563       case `$LD -v 2>&1` in
10564         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10565         ld_shlibs=no
10566         cat <<_LT_EOF 1>&2
10567
10568 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10569 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10570 *** is disabling shared libraries support.  We urge you to upgrade GNU
10571 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10572 *** your PATH or compiler configuration so that the native linker is
10573 *** used, and then restart.
10574
10575 _LT_EOF
10576         ;;
10577         *)
10578           # For security reasons, it is highly recommended that you always
10579           # use absolute paths for naming shared libraries, and exclude the
10580           # DT_RUNPATH tag from executables and libraries.  But doing so
10581           # requires that you compile everything twice, which is a pain.
10582           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10583             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10584             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10585             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10586           else
10587             ld_shlibs=no
10588           fi
10589         ;;
10590       esac
10591       ;;
10592
10593     sunos4*)
10594       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10595       wlarc=
10596       hardcode_direct=yes
10597       hardcode_shlibpath_var=no
10598       ;;
10599
10600     *)
10601       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10602         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10603         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10604       else
10605         ld_shlibs=no
10606       fi
10607       ;;
10608     esac
10609
10610     if test "$ld_shlibs" = no; then
10611       runpath_var=
10612       hardcode_libdir_flag_spec=
10613       export_dynamic_flag_spec=
10614       whole_archive_flag_spec=
10615     fi
10616   else
10617     # PORTME fill in a description of your system's linker (not GNU ld)
10618     case $host_os in
10619     aix3*)
10620       allow_undefined_flag=unsupported
10621       always_export_symbols=yes
10622       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'
10623       # Note: this linker hardcodes the directories in LIBPATH if there
10624       # are no directories specified by -L.
10625       hardcode_minus_L=yes
10626       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10627         # Neither direct hardcoding nor static linking is supported with a
10628         # broken collect2.
10629         hardcode_direct=unsupported
10630       fi
10631       ;;
10632
10633     aix[4-9]*)
10634       if test "$host_cpu" = ia64; then
10635         # On IA64, the linker does run time linking by default, so we don't
10636         # have to do anything special.
10637         aix_use_runtimelinking=no
10638         exp_sym_flag='-Bexport'
10639         no_entry_flag=""
10640       else
10641         # If we're using GNU nm, then we don't want the "-C" option.
10642         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10643         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10644           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10645         else
10646           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'
10647         fi
10648         aix_use_runtimelinking=no
10649
10650         # Test if we are trying to use run time linking or normal
10651         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10652         # need to do runtime linking.
10653         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10654           for ld_flag in $LDFLAGS; do
10655           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10656             aix_use_runtimelinking=yes
10657             break
10658           fi
10659           done
10660           ;;
10661         esac
10662
10663         exp_sym_flag='-bexport'
10664         no_entry_flag='-bnoentry'
10665       fi
10666
10667       # When large executables or shared objects are built, AIX ld can
10668       # have problems creating the table of contents.  If linking a library
10669       # or program results in "error TOC overflow" add -mminimal-toc to
10670       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10671       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10672
10673       archive_cmds=''
10674       hardcode_direct=yes
10675       hardcode_direct_absolute=yes
10676       hardcode_libdir_separator=':'
10677       link_all_deplibs=yes
10678       file_list_spec='${wl}-f,'
10679
10680       if test "$GCC" = yes; then
10681         case $host_os in aix4.[012]|aix4.[012].*)
10682         # We only want to do this on AIX 4.2 and lower, the check
10683         # below for broken collect2 doesn't work under 4.3+
10684           collect2name=`${CC} -print-prog-name=collect2`
10685           if test -f "$collect2name" &&
10686            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10687           then
10688           # We have reworked collect2
10689           :
10690           else
10691           # We have old collect2
10692           hardcode_direct=unsupported
10693           # It fails to find uninstalled libraries when the uninstalled
10694           # path is not listed in the libpath.  Setting hardcode_minus_L
10695           # to unsupported forces relinking
10696           hardcode_minus_L=yes
10697           hardcode_libdir_flag_spec='-L$libdir'
10698           hardcode_libdir_separator=
10699           fi
10700           ;;
10701         esac
10702         shared_flag='-shared'
10703         if test "$aix_use_runtimelinking" = yes; then
10704           shared_flag="$shared_flag "'${wl}-G'
10705         fi
10706       else
10707         # not using gcc
10708         if test "$host_cpu" = ia64; then
10709         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10710         # chokes on -Wl,-G. The following line is correct:
10711           shared_flag='-G'
10712         else
10713           if test "$aix_use_runtimelinking" = yes; then
10714             shared_flag='${wl}-G'
10715           else
10716             shared_flag='${wl}-bM:SRE'
10717           fi
10718         fi
10719       fi
10720
10721       export_dynamic_flag_spec='${wl}-bexpall'
10722       # It seems that -bexpall does not export symbols beginning with
10723       # underscore (_), so it is better to generate a list of symbols to export.
10724       always_export_symbols=yes
10725       if test "$aix_use_runtimelinking" = yes; then
10726         # Warning - without using the other runtime loading flags (-brtl),
10727         # -berok will link without error, but may produce a broken library.
10728         allow_undefined_flag='-berok'
10729         # Determine the default libpath from the value encoded in an
10730         # empty executable.
10731         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h.  */
10733
10734 int
10735 main ()
10736 {
10737
10738   ;
10739   return 0;
10740 }
10741 _ACEOF
10742 if ac_fn_c_try_link "$LINENO"; then :
10743
10744 lt_aix_libpath_sed='
10745     /Import File Strings/,/^$/ {
10746         /^0/ {
10747             s/^0  *\(.*\)$/\1/
10748             p
10749         }
10750     }'
10751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10752 # Check for a 64-bit object if we didn't find anything.
10753 if test -z "$aix_libpath"; then
10754   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10755 fi
10756 fi
10757 rm -f core conftest.err conftest.$ac_objext \
10758     conftest$ac_exeext conftest.$ac_ext
10759 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10760
10761         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10762         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10763       else
10764         if test "$host_cpu" = ia64; then
10765           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10766           allow_undefined_flag="-z nodefs"
10767           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"
10768         else
10769          # Determine the default libpath from the value encoded in an
10770          # empty executable.
10771          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h.  */
10773
10774 int
10775 main ()
10776 {
10777
10778   ;
10779   return 0;
10780 }
10781 _ACEOF
10782 if ac_fn_c_try_link "$LINENO"; then :
10783
10784 lt_aix_libpath_sed='
10785     /Import File Strings/,/^$/ {
10786         /^0/ {
10787             s/^0  *\(.*\)$/\1/
10788             p
10789         }
10790     }'
10791 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10792 # Check for a 64-bit object if we didn't find anything.
10793 if test -z "$aix_libpath"; then
10794   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10795 fi
10796 fi
10797 rm -f core conftest.err conftest.$ac_objext \
10798     conftest$ac_exeext conftest.$ac_ext
10799 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10800
10801          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10802           # Warning - without using the other run time loading flags,
10803           # -berok will link without error, but may produce a broken library.
10804           no_undefined_flag=' ${wl}-bernotok'
10805           allow_undefined_flag=' ${wl}-berok'
10806           # Exported symbols can be pulled into shared objects from archives
10807           whole_archive_flag_spec='$convenience'
10808           archive_cmds_need_lc=yes
10809           # This is similar to how AIX traditionally builds its shared libraries.
10810           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'
10811         fi
10812       fi
10813       ;;
10814
10815     amigaos*)
10816       case $host_cpu in
10817       powerpc)
10818             # see comment about AmigaOS4 .so support
10819             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10820             archive_expsym_cmds=''
10821         ;;
10822       m68k)
10823             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)'
10824             hardcode_libdir_flag_spec='-L$libdir'
10825             hardcode_minus_L=yes
10826         ;;
10827       esac
10828       ;;
10829
10830     bsdi[45]*)
10831       export_dynamic_flag_spec=-rdynamic
10832       ;;
10833
10834     cygwin* | mingw* | pw32* | cegcc*)
10835       # When not using gcc, we currently assume that we are using
10836       # Microsoft Visual C++.
10837       # hardcode_libdir_flag_spec is actually meaningless, as there is
10838       # no search path for DLLs.
10839       hardcode_libdir_flag_spec=' '
10840       allow_undefined_flag=unsupported
10841       # Tell ltmain to make .lib files, not .a files.
10842       libext=lib
10843       # Tell ltmain to make .dll files, not .so files.
10844       shrext_cmds=".dll"
10845       # FIXME: Setting linknames here is a bad hack.
10846       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10847       # The linker will automatically build a .lib file if we build a DLL.
10848       old_archive_from_new_cmds='true'
10849       # FIXME: Should let the user specify the lib program.
10850       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10851       fix_srcfile_path='`cygpath -w "$srcfile"`'
10852       enable_shared_with_static_runtimes=yes
10853       ;;
10854
10855     darwin* | rhapsody*)
10856
10857
10858   archive_cmds_need_lc=no
10859   hardcode_direct=no
10860   hardcode_automatic=yes
10861   hardcode_shlibpath_var=unsupported
10862   whole_archive_flag_spec=''
10863   link_all_deplibs=yes
10864   allow_undefined_flag="$_lt_dar_allow_undefined"
10865   case $cc_basename in
10866      ifort*) _lt_dar_can_shared=yes ;;
10867      *) _lt_dar_can_shared=$GCC ;;
10868   esac
10869   if test "$_lt_dar_can_shared" = "yes"; then
10870     output_verbose_link_cmd=echo
10871     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10872     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10873     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}"
10874     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}"
10875
10876   else
10877   ld_shlibs=no
10878   fi
10879
10880       ;;
10881
10882     dgux*)
10883       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10884       hardcode_libdir_flag_spec='-L$libdir'
10885       hardcode_shlibpath_var=no
10886       ;;
10887
10888     freebsd1*)
10889       ld_shlibs=no
10890       ;;
10891
10892     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10893     # support.  Future versions do this automatically, but an explicit c++rt0.o
10894     # does not break anything, and helps significantly (at the cost of a little
10895     # extra space).
10896     freebsd2.2*)
10897       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10898       hardcode_libdir_flag_spec='-R$libdir'
10899       hardcode_direct=yes
10900       hardcode_shlibpath_var=no
10901       ;;
10902
10903     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10904     freebsd2*)
10905       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10906       hardcode_direct=yes
10907       hardcode_minus_L=yes
10908       hardcode_shlibpath_var=no
10909       ;;
10910
10911     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10912     freebsd* | dragonfly*)
10913       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10914       hardcode_libdir_flag_spec='-R$libdir'
10915       hardcode_direct=yes
10916       hardcode_shlibpath_var=no
10917       ;;
10918
10919     hpux9*)
10920       if test "$GCC" = yes; then
10921         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10922       else
10923         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'
10924       fi
10925       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10926       hardcode_libdir_separator=:
10927       hardcode_direct=yes
10928
10929       # hardcode_minus_L: Not really in the search PATH,
10930       # but as the default location of the library.
10931       hardcode_minus_L=yes
10932       export_dynamic_flag_spec='${wl}-E'
10933       ;;
10934
10935     hpux10*)
10936       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10937         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10938       else
10939         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10940       fi
10941       if test "$with_gnu_ld" = no; then
10942         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10943         hardcode_libdir_flag_spec_ld='+b $libdir'
10944         hardcode_libdir_separator=:
10945         hardcode_direct=yes
10946         hardcode_direct_absolute=yes
10947         export_dynamic_flag_spec='${wl}-E'
10948         # hardcode_minus_L: Not really in the search PATH,
10949         # but as the default location of the library.
10950         hardcode_minus_L=yes
10951       fi
10952       ;;
10953
10954     hpux11*)
10955       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10956         case $host_cpu in
10957         hppa*64*)
10958           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10959           ;;
10960         ia64*)
10961           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10962           ;;
10963         *)
10964           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10965           ;;
10966         esac
10967       else
10968         case $host_cpu in
10969         hppa*64*)
10970           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10971           ;;
10972         ia64*)
10973           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10974           ;;
10975         *)
10976           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10977           ;;
10978         esac
10979       fi
10980       if test "$with_gnu_ld" = no; then
10981         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10982         hardcode_libdir_separator=:
10983
10984         case $host_cpu in
10985         hppa*64*|ia64*)
10986           hardcode_direct=no
10987           hardcode_shlibpath_var=no
10988           ;;
10989         *)
10990           hardcode_direct=yes
10991           hardcode_direct_absolute=yes
10992           export_dynamic_flag_spec='${wl}-E'
10993
10994           # hardcode_minus_L: Not really in the search PATH,
10995           # but as the default location of the library.
10996           hardcode_minus_L=yes
10997           ;;
10998         esac
10999       fi
11000       ;;
11001
11002     irix5* | irix6* | nonstopux*)
11003       if test "$GCC" = yes; then
11004         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11005         # Try to use the -exported_symbol ld option, if it does not
11006         # work, assume that -exports_file does not work either and
11007         # implicitly export all symbols.
11008         save_LDFLAGS="$LDFLAGS"
11009         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11010         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11011 /* end confdefs.h.  */
11012 int foo(void) {}
11013 _ACEOF
11014 if ac_fn_c_try_link "$LINENO"; then :
11015   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11016
11017 fi
11018 rm -f core conftest.err conftest.$ac_objext \
11019     conftest$ac_exeext conftest.$ac_ext
11020         LDFLAGS="$save_LDFLAGS"
11021       else
11022         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11023         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11024       fi
11025       archive_cmds_need_lc='no'
11026       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11027       hardcode_libdir_separator=:
11028       inherit_rpath=yes
11029       link_all_deplibs=yes
11030       ;;
11031
11032     netbsd*)
11033       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11034         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11035       else
11036         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11037       fi
11038       hardcode_libdir_flag_spec='-R$libdir'
11039       hardcode_direct=yes
11040       hardcode_shlibpath_var=no
11041       ;;
11042
11043     newsos6)
11044       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11045       hardcode_direct=yes
11046       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11047       hardcode_libdir_separator=:
11048       hardcode_shlibpath_var=no
11049       ;;
11050
11051     *nto* | *qnx*)
11052       ;;
11053
11054     openbsd*)
11055       if test -f /usr/libexec/ld.so; then
11056         hardcode_direct=yes
11057         hardcode_shlibpath_var=no
11058         hardcode_direct_absolute=yes
11059         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11060           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11061           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11062           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11063           export_dynamic_flag_spec='${wl}-E'
11064         else
11065           case $host_os in
11066            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11067              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11068              hardcode_libdir_flag_spec='-R$libdir'
11069              ;;
11070            *)
11071              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11072              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11073              ;;
11074           esac
11075         fi
11076       else
11077         ld_shlibs=no
11078       fi
11079       ;;
11080
11081     os2*)
11082       hardcode_libdir_flag_spec='-L$libdir'
11083       hardcode_minus_L=yes
11084       allow_undefined_flag=unsupported
11085       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'
11086       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11087       ;;
11088
11089     osf3*)
11090       if test "$GCC" = yes; then
11091         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11092         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11093       else
11094         allow_undefined_flag=' -expect_unresolved \*'
11095         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11096       fi
11097       archive_cmds_need_lc='no'
11098       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11099       hardcode_libdir_separator=:
11100       ;;
11101
11102     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11103       if test "$GCC" = yes; then
11104         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11105         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11106         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11107       else
11108         allow_undefined_flag=' -expect_unresolved \*'
11109         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11110         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~
11111         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11112
11113         # Both c and cxx compiler support -rpath directly
11114         hardcode_libdir_flag_spec='-rpath $libdir'
11115       fi
11116       archive_cmds_need_lc='no'
11117       hardcode_libdir_separator=:
11118       ;;
11119
11120     solaris*)
11121       no_undefined_flag=' -z defs'
11122       if test "$GCC" = yes; then
11123         wlarc='${wl}'
11124         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11125         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11126           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11127       else
11128         case `$CC -V 2>&1` in
11129         *"Compilers 5.0"*)
11130           wlarc=''
11131           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11132           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11133           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11134           ;;
11135         *)
11136           wlarc='${wl}'
11137           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11138           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11139           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11140           ;;
11141         esac
11142       fi
11143       hardcode_libdir_flag_spec='-R$libdir'
11144       hardcode_shlibpath_var=no
11145       case $host_os in
11146       solaris2.[0-5] | solaris2.[0-5].*) ;;
11147       *)
11148         # The compiler driver will combine and reorder linker options,
11149         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11150         # but is careful enough not to reorder.
11151         # Supported since Solaris 2.6 (maybe 2.5.1?)
11152         if test "$GCC" = yes; then
11153           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11154         else
11155           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11156         fi
11157         ;;
11158       esac
11159       link_all_deplibs=yes
11160       ;;
11161
11162     sunos4*)
11163       if test "x$host_vendor" = xsequent; then
11164         # Use $CC to link under sequent, because it throws in some extra .o
11165         # files that make .init and .fini sections work.
11166         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11167       else
11168         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11169       fi
11170       hardcode_libdir_flag_spec='-L$libdir'
11171       hardcode_direct=yes
11172       hardcode_minus_L=yes
11173       hardcode_shlibpath_var=no
11174       ;;
11175
11176     sysv4)
11177       case $host_vendor in
11178         sni)
11179           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11180           hardcode_direct=yes # is this really true???
11181         ;;
11182         siemens)
11183           ## LD is ld it makes a PLAMLIB
11184           ## CC just makes a GrossModule.
11185           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11186           reload_cmds='$CC -r -o $output$reload_objs'
11187           hardcode_direct=no
11188         ;;
11189         motorola)
11190           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11191           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11192         ;;
11193       esac
11194       runpath_var='LD_RUN_PATH'
11195       hardcode_shlibpath_var=no
11196       ;;
11197
11198     sysv4.3*)
11199       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11200       hardcode_shlibpath_var=no
11201       export_dynamic_flag_spec='-Bexport'
11202       ;;
11203
11204     sysv4*MP*)
11205       if test -d /usr/nec; then
11206         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11207         hardcode_shlibpath_var=no
11208         runpath_var=LD_RUN_PATH
11209         hardcode_runpath_var=yes
11210         ld_shlibs=yes
11211       fi
11212       ;;
11213
11214     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11215       no_undefined_flag='${wl}-z,text'
11216       archive_cmds_need_lc=no
11217       hardcode_shlibpath_var=no
11218       runpath_var='LD_RUN_PATH'
11219
11220       if test "$GCC" = yes; then
11221         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11222         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11223       else
11224         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11225         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11226       fi
11227       ;;
11228
11229     sysv5* | sco3.2v5* | sco5v6*)
11230       # Note: We can NOT use -z defs as we might desire, because we do not
11231       # link with -lc, and that would cause any symbols used from libc to
11232       # always be unresolved, which means just about no library would
11233       # ever link correctly.  If we're not using GNU ld we use -z text
11234       # though, which does catch some bad symbols but isn't as heavy-handed
11235       # as -z defs.
11236       no_undefined_flag='${wl}-z,text'
11237       allow_undefined_flag='${wl}-z,nodefs'
11238       archive_cmds_need_lc=no
11239       hardcode_shlibpath_var=no
11240       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11241       hardcode_libdir_separator=':'
11242       link_all_deplibs=yes
11243       export_dynamic_flag_spec='${wl}-Bexport'
11244       runpath_var='LD_RUN_PATH'
11245
11246       if test "$GCC" = yes; then
11247         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11248         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11249       else
11250         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11251         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11252       fi
11253       ;;
11254
11255     uts4*)
11256       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11257       hardcode_libdir_flag_spec='-L$libdir'
11258       hardcode_shlibpath_var=no
11259       ;;
11260
11261     *)
11262       ld_shlibs=no
11263       ;;
11264     esac
11265
11266     if test x$host_vendor = xsni; then
11267       case $host in
11268       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11269         export_dynamic_flag_spec='${wl}-Blargedynsym'
11270         ;;
11271       esac
11272     fi
11273   fi
11274
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11276 $as_echo "$ld_shlibs" >&6; }
11277 test "$ld_shlibs" = no && can_build_shared=no
11278
11279 with_gnu_ld=$with_gnu_ld
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295 #
11296 # Do we need to explicitly link libc?
11297 #
11298 case "x$archive_cmds_need_lc" in
11299 x|xyes)
11300   # Assume -lc should be added
11301   archive_cmds_need_lc=yes
11302
11303   if test "$enable_shared" = yes && test "$GCC" = yes; then
11304     case $archive_cmds in
11305     *'~'*)
11306       # FIXME: we may have to deal with multi-command sequences.
11307       ;;
11308     '$CC '*)
11309       # Test whether the compiler implicitly links with -lc since on some
11310       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11311       # to ld, don't add -lc before -lgcc.
11312       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11313 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11314       $RM conftest*
11315       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11316
11317       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11318   (eval $ac_compile) 2>&5
11319   ac_status=$?
11320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11321   test $ac_status = 0; } 2>conftest.err; then
11322         soname=conftest
11323         lib=conftest
11324         libobjs=conftest.$ac_objext
11325         deplibs=
11326         wl=$lt_prog_compiler_wl
11327         pic_flag=$lt_prog_compiler_pic
11328         compiler_flags=-v
11329         linker_flags=-v
11330         verstring=
11331         output_objdir=.
11332         libname=conftest
11333         lt_save_allow_undefined_flag=$allow_undefined_flag
11334         allow_undefined_flag=
11335         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11336   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11337   ac_status=$?
11338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11339   test $ac_status = 0; }
11340         then
11341           archive_cmds_need_lc=no
11342         else
11343           archive_cmds_need_lc=yes
11344         fi
11345         allow_undefined_flag=$lt_save_allow_undefined_flag
11346       else
11347         cat conftest.err 1>&5
11348       fi
11349       $RM conftest*
11350       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11351 $as_echo "$archive_cmds_need_lc" >&6; }
11352       ;;
11353     esac
11354   fi
11355   ;;
11356 esac
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11515 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11516
11517 if test "$GCC" = yes; then
11518   case $host_os in
11519     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11520     *) lt_awk_arg="/^libraries:/" ;;
11521   esac
11522   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11523   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11524     # if the path contains ";" then we assume it to be the separator
11525     # otherwise default to the standard path separator (i.e. ":") - it is
11526     # assumed that no part of a normal pathname contains ";" but that should
11527     # okay in the real world where ";" in dirpaths is itself problematic.
11528     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11529   else
11530     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11531   fi
11532   # Ok, now we have the path, separated by spaces, we can step through it
11533   # and add multilib dir if necessary.
11534   lt_tmp_lt_search_path_spec=
11535   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11536   for lt_sys_path in $lt_search_path_spec; do
11537     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11538       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11539     else
11540       test -d "$lt_sys_path" && \
11541         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11542     fi
11543   done
11544   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11545 BEGIN {RS=" "; FS="/|\n";} {
11546   lt_foo="";
11547   lt_count=0;
11548   for (lt_i = NF; lt_i > 0; lt_i--) {
11549     if ($lt_i != "" && $lt_i != ".") {
11550       if ($lt_i == "..") {
11551         lt_count++;
11552       } else {
11553         if (lt_count == 0) {
11554           lt_foo="/" $lt_i lt_foo;
11555         } else {
11556           lt_count--;
11557         }
11558       }
11559     }
11560   }
11561   if (lt_foo != "") { lt_freq[lt_foo]++; }
11562   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11563 }'`
11564   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11565 else
11566   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11567 fi
11568 library_names_spec=
11569 libname_spec='lib$name'
11570 soname_spec=
11571 shrext_cmds=".so"
11572 postinstall_cmds=
11573 postuninstall_cmds=
11574 finish_cmds=
11575 finish_eval=
11576 shlibpath_var=
11577 shlibpath_overrides_runpath=unknown
11578 version_type=none
11579 dynamic_linker="$host_os ld.so"
11580 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11581 need_lib_prefix=unknown
11582 hardcode_into_libs=no
11583
11584 # when you set need_version to no, make sure it does not cause -set_version
11585 # flags to be left without arguments
11586 need_version=unknown
11587
11588 case $host_os in
11589 aix3*)
11590   version_type=linux
11591   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11592   shlibpath_var=LIBPATH
11593
11594   # AIX 3 has no versioning support, so we append a major version to the name.
11595   soname_spec='${libname}${release}${shared_ext}$major'
11596   ;;
11597
11598 aix[4-9]*)
11599   version_type=linux
11600   need_lib_prefix=no
11601   need_version=no
11602   hardcode_into_libs=yes
11603   if test "$host_cpu" = ia64; then
11604     # AIX 5 supports IA64
11605     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11606     shlibpath_var=LD_LIBRARY_PATH
11607   else
11608     # With GCC up to 2.95.x, collect2 would create an import file
11609     # for dependence libraries.  The import file would start with
11610     # the line `#! .'.  This would cause the generated library to
11611     # depend on `.', always an invalid library.  This was fixed in
11612     # development snapshots of GCC prior to 3.0.
11613     case $host_os in
11614       aix4 | aix4.[01] | aix4.[01].*)
11615       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11616            echo ' yes '
11617            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11618         :
11619       else
11620         can_build_shared=no
11621       fi
11622       ;;
11623     esac
11624     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11625     # soname into executable. Probably we can add versioning support to
11626     # collect2, so additional links can be useful in future.
11627     if test "$aix_use_runtimelinking" = yes; then
11628       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11629       # instead of lib<name>.a to let people know that these are not
11630       # typical AIX shared libraries.
11631       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632     else
11633       # We preserve .a as extension for shared libraries through AIX4.2
11634       # and later when we are not doing run time linking.
11635       library_names_spec='${libname}${release}.a $libname.a'
11636       soname_spec='${libname}${release}${shared_ext}$major'
11637     fi
11638     shlibpath_var=LIBPATH
11639   fi
11640   ;;
11641
11642 amigaos*)
11643   case $host_cpu in
11644   powerpc)
11645     # Since July 2007 AmigaOS4 officially supports .so libraries.
11646     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11647     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11648     ;;
11649   m68k)
11650     library_names_spec='$libname.ixlibrary $libname.a'
11651     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11652     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
11653     ;;
11654   esac
11655   ;;
11656
11657 beos*)
11658   library_names_spec='${libname}${shared_ext}'
11659   dynamic_linker="$host_os ld.so"
11660   shlibpath_var=LIBRARY_PATH
11661   ;;
11662
11663 bsdi[45]*)
11664   version_type=linux
11665   need_version=no
11666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11667   soname_spec='${libname}${release}${shared_ext}$major'
11668   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11669   shlibpath_var=LD_LIBRARY_PATH
11670   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11671   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11672   # the default ld.so.conf also contains /usr/contrib/lib and
11673   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11674   # libtool to hard-code these into programs
11675   ;;
11676
11677 cygwin* | mingw* | pw32* | cegcc*)
11678   version_type=windows
11679   shrext_cmds=".dll"
11680   need_version=no
11681   need_lib_prefix=no
11682
11683   case $GCC,$host_os in
11684   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11685     library_names_spec='$libname.dll.a'
11686     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11687     postinstall_cmds='base_file=`basename \${file}`~
11688       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11689       dldir=$destdir/`dirname \$dlpath`~
11690       test -d \$dldir || mkdir -p \$dldir~
11691       $install_prog $dir/$dlname \$dldir/$dlname~
11692       chmod a+x \$dldir/$dlname~
11693       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11694         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11695       fi'
11696     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11697       dlpath=$dir/\$dldll~
11698        $RM \$dlpath'
11699     shlibpath_overrides_runpath=yes
11700
11701     case $host_os in
11702     cygwin*)
11703       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11704       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11705       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11706       ;;
11707     mingw* | cegcc*)
11708       # MinGW DLLs use traditional 'lib' prefix
11709       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11710       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11711       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11712         # It is most probably a Windows format PATH printed by
11713         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11714         # path with ; separators, and with drive letters. We can handle the
11715         # drive letters (cygwin fileutils understands them), so leave them,
11716         # especially as we might pass files found there to a mingw objdump,
11717         # which wouldn't understand a cygwinified path. Ahh.
11718         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11719       else
11720         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11721       fi
11722       ;;
11723     pw32*)
11724       # pw32 DLLs use 'pw' prefix rather than 'lib'
11725       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11726       ;;
11727     esac
11728     ;;
11729
11730   *)
11731     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11732     ;;
11733   esac
11734   dynamic_linker='Win32 ld.exe'
11735   # FIXME: first we should search . and the directory the executable is in
11736   shlibpath_var=PATH
11737   ;;
11738
11739 darwin* | rhapsody*)
11740   dynamic_linker="$host_os dyld"
11741   version_type=darwin
11742   need_lib_prefix=no
11743   need_version=no
11744   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11745   soname_spec='${libname}${release}${major}$shared_ext'
11746   shlibpath_overrides_runpath=yes
11747   shlibpath_var=DYLD_LIBRARY_PATH
11748   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11749
11750   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11751   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11752   ;;
11753
11754 dgux*)
11755   version_type=linux
11756   need_lib_prefix=no
11757   need_version=no
11758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11759   soname_spec='${libname}${release}${shared_ext}$major'
11760   shlibpath_var=LD_LIBRARY_PATH
11761   ;;
11762
11763 freebsd1*)
11764   dynamic_linker=no
11765   ;;
11766
11767 freebsd* | dragonfly*)
11768   # DragonFly does not have aout.  When/if they implement a new
11769   # versioning mechanism, adjust this.
11770   if test -x /usr/bin/objformat; then
11771     objformat=`/usr/bin/objformat`
11772   else
11773     case $host_os in
11774     freebsd[123]*) objformat=aout ;;
11775     *) objformat=elf ;;
11776     esac
11777   fi
11778   version_type=freebsd-$objformat
11779   case $version_type in
11780     freebsd-elf*)
11781       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11782       need_version=no
11783       need_lib_prefix=no
11784       ;;
11785     freebsd-*)
11786       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11787       need_version=yes
11788       ;;
11789   esac
11790   shlibpath_var=LD_LIBRARY_PATH
11791   case $host_os in
11792   freebsd2*)
11793     shlibpath_overrides_runpath=yes
11794     ;;
11795   freebsd3.[01]* | freebsdelf3.[01]*)
11796     shlibpath_overrides_runpath=yes
11797     hardcode_into_libs=yes
11798     ;;
11799   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11800   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11801     shlibpath_overrides_runpath=no
11802     hardcode_into_libs=yes
11803     ;;
11804   *) # from 4.6 on, and DragonFly
11805     shlibpath_overrides_runpath=yes
11806     hardcode_into_libs=yes
11807     ;;
11808   esac
11809   ;;
11810
11811 gnu*)
11812   version_type=linux
11813   need_lib_prefix=no
11814   need_version=no
11815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11816   soname_spec='${libname}${release}${shared_ext}$major'
11817   shlibpath_var=LD_LIBRARY_PATH
11818   hardcode_into_libs=yes
11819   ;;
11820
11821 hpux9* | hpux10* | hpux11*)
11822   # Give a soname corresponding to the major version so that dld.sl refuses to
11823   # link against other versions.
11824   version_type=sunos
11825   need_lib_prefix=no
11826   need_version=no
11827   case $host_cpu in
11828   ia64*)
11829     shrext_cmds='.so'
11830     hardcode_into_libs=yes
11831     dynamic_linker="$host_os dld.so"
11832     shlibpath_var=LD_LIBRARY_PATH
11833     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11834     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11835     soname_spec='${libname}${release}${shared_ext}$major'
11836     if test "X$HPUX_IA64_MODE" = X32; then
11837       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11838     else
11839       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11840     fi
11841     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11842     ;;
11843   hppa*64*)
11844     shrext_cmds='.sl'
11845     hardcode_into_libs=yes
11846     dynamic_linker="$host_os dld.sl"
11847     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11848     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11849     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11850     soname_spec='${libname}${release}${shared_ext}$major'
11851     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11852     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11853     ;;
11854   *)
11855     shrext_cmds='.sl'
11856     dynamic_linker="$host_os dld.sl"
11857     shlibpath_var=SHLIB_PATH
11858     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11859     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11860     soname_spec='${libname}${release}${shared_ext}$major'
11861     ;;
11862   esac
11863   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11864   postinstall_cmds='chmod 555 $lib'
11865   ;;
11866
11867 interix[3-9]*)
11868   version_type=linux
11869   need_lib_prefix=no
11870   need_version=no
11871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11872   soname_spec='${libname}${release}${shared_ext}$major'
11873   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11874   shlibpath_var=LD_LIBRARY_PATH
11875   shlibpath_overrides_runpath=no
11876   hardcode_into_libs=yes
11877   ;;
11878
11879 irix5* | irix6* | nonstopux*)
11880   case $host_os in
11881     nonstopux*) version_type=nonstopux ;;
11882     *)
11883         if test "$lt_cv_prog_gnu_ld" = yes; then
11884                 version_type=linux
11885         else
11886                 version_type=irix
11887         fi ;;
11888   esac
11889   need_lib_prefix=no
11890   need_version=no
11891   soname_spec='${libname}${release}${shared_ext}$major'
11892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11893   case $host_os in
11894   irix5* | nonstopux*)
11895     libsuff= shlibsuff=
11896     ;;
11897   *)
11898     case $LD in # libtool.m4 will add one of these switches to LD
11899     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11900       libsuff= shlibsuff= libmagic=32-bit;;
11901     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11902       libsuff=32 shlibsuff=N32 libmagic=N32;;
11903     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11904       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11905     *) libsuff= shlibsuff= libmagic=never-match;;
11906     esac
11907     ;;
11908   esac
11909   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11910   shlibpath_overrides_runpath=no
11911   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11912   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11913   hardcode_into_libs=yes
11914   ;;
11915
11916 # No shared lib support for Linux oldld, aout, or coff.
11917 linux*oldld* | linux*aout* | linux*coff*)
11918   dynamic_linker=no
11919   ;;
11920
11921 # This must be Linux ELF.
11922 linux* | k*bsd*-gnu)
11923   version_type=linux
11924   need_lib_prefix=no
11925   need_version=no
11926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11927   soname_spec='${libname}${release}${shared_ext}$major'
11928   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11929   shlibpath_var=LD_LIBRARY_PATH
11930   shlibpath_overrides_runpath=no
11931   # Some binutils ld are patched to set DT_RUNPATH
11932   save_LDFLAGS=$LDFLAGS
11933   save_libdir=$libdir
11934   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11935        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h.  */
11938
11939 int
11940 main ()
11941 {
11942
11943   ;
11944   return 0;
11945 }
11946 _ACEOF
11947 if ac_fn_c_try_link "$LINENO"; then :
11948   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11949   shlibpath_overrides_runpath=yes
11950 fi
11951 fi
11952 rm -f core conftest.err conftest.$ac_objext \
11953     conftest$ac_exeext conftest.$ac_ext
11954   LDFLAGS=$save_LDFLAGS
11955   libdir=$save_libdir
11956
11957   # This implies no fast_install, which is unacceptable.
11958   # Some rework will be needed to allow for fast_install
11959   # before this can be enabled.
11960   hardcode_into_libs=yes
11961
11962   # Append ld.so.conf contents to the search path
11963   if test -f /etc/ld.so.conf; then
11964     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;/^$/d' | tr '\n' ' '`
11965     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11966   fi
11967
11968   # We used to test for /lib/ld.so.1 and disable shared libraries on
11969   # powerpc, because MkLinux only supported shared libraries with the
11970   # GNU dynamic linker.  Since this was broken with cross compilers,
11971   # most powerpc-linux boxes support dynamic linking these days and
11972   # people can always --disable-shared, the test was removed, and we
11973   # assume the GNU/Linux dynamic linker is in use.
11974   dynamic_linker='GNU/Linux ld.so'
11975   ;;
11976
11977 netbsd*)
11978   version_type=sunos
11979   need_lib_prefix=no
11980   need_version=no
11981   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11982     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11983     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11984     dynamic_linker='NetBSD (a.out) ld.so'
11985   else
11986     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11987     soname_spec='${libname}${release}${shared_ext}$major'
11988     dynamic_linker='NetBSD ld.elf_so'
11989   fi
11990   shlibpath_var=LD_LIBRARY_PATH
11991   shlibpath_overrides_runpath=yes
11992   hardcode_into_libs=yes
11993   ;;
11994
11995 newsos6)
11996   version_type=linux
11997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11998   shlibpath_var=LD_LIBRARY_PATH
11999   shlibpath_overrides_runpath=yes
12000   ;;
12001
12002 *nto* | *qnx*)
12003   version_type=qnx
12004   need_lib_prefix=no
12005   need_version=no
12006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12007   soname_spec='${libname}${release}${shared_ext}$major'
12008   shlibpath_var=LD_LIBRARY_PATH
12009   shlibpath_overrides_runpath=no
12010   hardcode_into_libs=yes
12011   dynamic_linker='ldqnx.so'
12012   ;;
12013
12014 openbsd*)
12015   version_type=sunos
12016   sys_lib_dlsearch_path_spec="/usr/lib"
12017   need_lib_prefix=no
12018   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12019   case $host_os in
12020     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12021     *)                          need_version=no  ;;
12022   esac
12023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12024   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12025   shlibpath_var=LD_LIBRARY_PATH
12026   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12027     case $host_os in
12028       openbsd2.[89] | openbsd2.[89].*)
12029         shlibpath_overrides_runpath=no
12030         ;;
12031       *)
12032         shlibpath_overrides_runpath=yes
12033         ;;
12034       esac
12035   else
12036     shlibpath_overrides_runpath=yes
12037   fi
12038   ;;
12039
12040 os2*)
12041   libname_spec='$name'
12042   shrext_cmds=".dll"
12043   need_lib_prefix=no
12044   library_names_spec='$libname${shared_ext} $libname.a'
12045   dynamic_linker='OS/2 ld.exe'
12046   shlibpath_var=LIBPATH
12047   ;;
12048
12049 osf3* | osf4* | osf5*)
12050   version_type=osf
12051   need_lib_prefix=no
12052   need_version=no
12053   soname_spec='${libname}${release}${shared_ext}$major'
12054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12055   shlibpath_var=LD_LIBRARY_PATH
12056   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12057   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12058   ;;
12059
12060 rdos*)
12061   dynamic_linker=no
12062   ;;
12063
12064 solaris*)
12065   version_type=linux
12066   need_lib_prefix=no
12067   need_version=no
12068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12069   soname_spec='${libname}${release}${shared_ext}$major'
12070   shlibpath_var=LD_LIBRARY_PATH
12071   shlibpath_overrides_runpath=yes
12072   hardcode_into_libs=yes
12073   # ldd complains unless libraries are executable
12074   postinstall_cmds='chmod +x $lib'
12075   ;;
12076
12077 sunos4*)
12078   version_type=sunos
12079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12080   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12081   shlibpath_var=LD_LIBRARY_PATH
12082   shlibpath_overrides_runpath=yes
12083   if test "$with_gnu_ld" = yes; then
12084     need_lib_prefix=no
12085   fi
12086   need_version=yes
12087   ;;
12088
12089 sysv4 | sysv4.3*)
12090   version_type=linux
12091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12092   soname_spec='${libname}${release}${shared_ext}$major'
12093   shlibpath_var=LD_LIBRARY_PATH
12094   case $host_vendor in
12095     sni)
12096       shlibpath_overrides_runpath=no
12097       need_lib_prefix=no
12098       runpath_var=LD_RUN_PATH
12099       ;;
12100     siemens)
12101       need_lib_prefix=no
12102       ;;
12103     motorola)
12104       need_lib_prefix=no
12105       need_version=no
12106       shlibpath_overrides_runpath=no
12107       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12108       ;;
12109   esac
12110   ;;
12111
12112 sysv4*MP*)
12113   if test -d /usr/nec ;then
12114     version_type=linux
12115     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12116     soname_spec='$libname${shared_ext}.$major'
12117     shlibpath_var=LD_LIBRARY_PATH
12118   fi
12119   ;;
12120
12121 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12122   version_type=freebsd-elf
12123   need_lib_prefix=no
12124   need_version=no
12125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12126   soname_spec='${libname}${release}${shared_ext}$major'
12127   shlibpath_var=LD_LIBRARY_PATH
12128   shlibpath_overrides_runpath=yes
12129   hardcode_into_libs=yes
12130   if test "$with_gnu_ld" = yes; then
12131     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12132   else
12133     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12134     case $host_os in
12135       sco3.2v5*)
12136         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12137         ;;
12138     esac
12139   fi
12140   sys_lib_dlsearch_path_spec='/usr/lib'
12141   ;;
12142
12143 tpf*)
12144   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12145   version_type=linux
12146   need_lib_prefix=no
12147   need_version=no
12148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12149   shlibpath_var=LD_LIBRARY_PATH
12150   shlibpath_overrides_runpath=no
12151   hardcode_into_libs=yes
12152   ;;
12153
12154 uts4*)
12155   version_type=linux
12156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12157   soname_spec='${libname}${release}${shared_ext}$major'
12158   shlibpath_var=LD_LIBRARY_PATH
12159   ;;
12160
12161 *)
12162   dynamic_linker=no
12163   ;;
12164 esac
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12166 $as_echo "$dynamic_linker" >&6; }
12167 test "$dynamic_linker" = no && can_build_shared=no
12168
12169 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12170 if test "$GCC" = yes; then
12171   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12172 fi
12173
12174 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12175   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12176 fi
12177 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12178   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12179 fi
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12268 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12269 hardcode_action=
12270 if test -n "$hardcode_libdir_flag_spec" ||
12271    test -n "$runpath_var" ||
12272    test "X$hardcode_automatic" = "Xyes" ; then
12273
12274   # We can hardcode non-existent directories.
12275   if test "$hardcode_direct" != no &&
12276      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12277      # have to relink, otherwise we might link with an installed library
12278      # when we should be linking with a yet-to-be-installed one
12279      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12280      test "$hardcode_minus_L" != no; then
12281     # Linking always hardcodes the temporary library directory.
12282     hardcode_action=relink
12283   else
12284     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12285     hardcode_action=immediate
12286   fi
12287 else
12288   # We cannot hardcode anything, or else we can only hardcode existing
12289   # directories.
12290   hardcode_action=unsupported
12291 fi
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12293 $as_echo "$hardcode_action" >&6; }
12294
12295 if test "$hardcode_action" = relink ||
12296    test "$inherit_rpath" = yes; then
12297   # Fast installation is not supported
12298   enable_fast_install=no
12299 elif test "$shlibpath_overrides_runpath" = yes ||
12300      test "$enable_shared" = no; then
12301   # Fast installation is not necessary
12302   enable_fast_install=needless
12303 fi
12304
12305
12306
12307
12308
12309
12310   if test "x$enable_dlopen" != xyes; then
12311   enable_dlopen=unknown
12312   enable_dlopen_self=unknown
12313   enable_dlopen_self_static=unknown
12314 else
12315   lt_cv_dlopen=no
12316   lt_cv_dlopen_libs=
12317
12318   case $host_os in
12319   beos*)
12320     lt_cv_dlopen="load_add_on"
12321     lt_cv_dlopen_libs=
12322     lt_cv_dlopen_self=yes
12323     ;;
12324
12325   mingw* | pw32* | cegcc*)
12326     lt_cv_dlopen="LoadLibrary"
12327     lt_cv_dlopen_libs=
12328     ;;
12329
12330   cygwin*)
12331     lt_cv_dlopen="dlopen"
12332     lt_cv_dlopen_libs=
12333     ;;
12334
12335   darwin*)
12336   # if libdl is installed we need to link against it
12337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12338 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12339 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12340   $as_echo_n "(cached) " >&6
12341 else
12342   ac_check_lib_save_LIBS=$LIBS
12343 LIBS="-ldl  $LIBS"
12344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h.  */
12346
12347 /* Override any GCC internal prototype to avoid an error.
12348    Use char because int might match the return type of a GCC
12349    builtin and then its argument prototype would still apply.  */
12350 #ifdef __cplusplus
12351 extern "C"
12352 #endif
12353 char dlopen ();
12354 int
12355 main ()
12356 {
12357 return dlopen ();
12358   ;
12359   return 0;
12360 }
12361 _ACEOF
12362 if ac_fn_c_try_link "$LINENO"; then :
12363   ac_cv_lib_dl_dlopen=yes
12364 else
12365   ac_cv_lib_dl_dlopen=no
12366 fi
12367 rm -f core conftest.err conftest.$ac_objext \
12368     conftest$ac_exeext conftest.$ac_ext
12369 LIBS=$ac_check_lib_save_LIBS
12370 fi
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12372 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12373 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12374   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12375 else
12376
12377     lt_cv_dlopen="dyld"
12378     lt_cv_dlopen_libs=
12379     lt_cv_dlopen_self=yes
12380
12381 fi
12382
12383     ;;
12384
12385   *)
12386     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12387 if test "x$ac_cv_func_shl_load" = x""yes; then :
12388   lt_cv_dlopen="shl_load"
12389 else
12390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12391 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12392 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12393   $as_echo_n "(cached) " >&6
12394 else
12395   ac_check_lib_save_LIBS=$LIBS
12396 LIBS="-ldld  $LIBS"
12397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12398 /* end confdefs.h.  */
12399
12400 /* Override any GCC internal prototype to avoid an error.
12401    Use char because int might match the return type of a GCC
12402    builtin and then its argument prototype would still apply.  */
12403 #ifdef __cplusplus
12404 extern "C"
12405 #endif
12406 char shl_load ();
12407 int
12408 main ()
12409 {
12410 return shl_load ();
12411   ;
12412   return 0;
12413 }
12414 _ACEOF
12415 if ac_fn_c_try_link "$LINENO"; then :
12416   ac_cv_lib_dld_shl_load=yes
12417 else
12418   ac_cv_lib_dld_shl_load=no
12419 fi
12420 rm -f core conftest.err conftest.$ac_objext \
12421     conftest$ac_exeext conftest.$ac_ext
12422 LIBS=$ac_check_lib_save_LIBS
12423 fi
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12425 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12426 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12427   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12428 else
12429   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12430 if test "x$ac_cv_func_dlopen" = x""yes; then :
12431   lt_cv_dlopen="dlopen"
12432 else
12433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12434 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12435 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12436   $as_echo_n "(cached) " >&6
12437 else
12438   ac_check_lib_save_LIBS=$LIBS
12439 LIBS="-ldl  $LIBS"
12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h.  */
12442
12443 /* Override any GCC internal prototype to avoid an error.
12444    Use char because int might match the return type of a GCC
12445    builtin and then its argument prototype would still apply.  */
12446 #ifdef __cplusplus
12447 extern "C"
12448 #endif
12449 char dlopen ();
12450 int
12451 main ()
12452 {
12453 return dlopen ();
12454   ;
12455   return 0;
12456 }
12457 _ACEOF
12458 if ac_fn_c_try_link "$LINENO"; then :
12459   ac_cv_lib_dl_dlopen=yes
12460 else
12461   ac_cv_lib_dl_dlopen=no
12462 fi
12463 rm -f core conftest.err conftest.$ac_objext \
12464     conftest$ac_exeext conftest.$ac_ext
12465 LIBS=$ac_check_lib_save_LIBS
12466 fi
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12468 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12469 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12470   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12471 else
12472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12473 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12474 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12475   $as_echo_n "(cached) " >&6
12476 else
12477   ac_check_lib_save_LIBS=$LIBS
12478 LIBS="-lsvld  $LIBS"
12479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480 /* end confdefs.h.  */
12481
12482 /* Override any GCC internal prototype to avoid an error.
12483    Use char because int might match the return type of a GCC
12484    builtin and then its argument prototype would still apply.  */
12485 #ifdef __cplusplus
12486 extern "C"
12487 #endif
12488 char dlopen ();
12489 int
12490 main ()
12491 {
12492 return dlopen ();
12493   ;
12494   return 0;
12495 }
12496 _ACEOF
12497 if ac_fn_c_try_link "$LINENO"; then :
12498   ac_cv_lib_svld_dlopen=yes
12499 else
12500   ac_cv_lib_svld_dlopen=no
12501 fi
12502 rm -f core conftest.err conftest.$ac_objext \
12503     conftest$ac_exeext conftest.$ac_ext
12504 LIBS=$ac_check_lib_save_LIBS
12505 fi
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12507 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12508 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12509   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12510 else
12511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12512 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12513 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12514   $as_echo_n "(cached) " >&6
12515 else
12516   ac_check_lib_save_LIBS=$LIBS
12517 LIBS="-ldld  $LIBS"
12518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h.  */
12520
12521 /* Override any GCC internal prototype to avoid an error.
12522    Use char because int might match the return type of a GCC
12523    builtin and then its argument prototype would still apply.  */
12524 #ifdef __cplusplus
12525 extern "C"
12526 #endif
12527 char dld_link ();
12528 int
12529 main ()
12530 {
12531 return dld_link ();
12532   ;
12533   return 0;
12534 }
12535 _ACEOF
12536 if ac_fn_c_try_link "$LINENO"; then :
12537   ac_cv_lib_dld_dld_link=yes
12538 else
12539   ac_cv_lib_dld_dld_link=no
12540 fi
12541 rm -f core conftest.err conftest.$ac_objext \
12542     conftest$ac_exeext conftest.$ac_ext
12543 LIBS=$ac_check_lib_save_LIBS
12544 fi
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12546 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12547 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12548   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12549 fi
12550
12551
12552 fi
12553
12554
12555 fi
12556
12557
12558 fi
12559
12560
12561 fi
12562
12563
12564 fi
12565
12566     ;;
12567   esac
12568
12569   if test "x$lt_cv_dlopen" != xno; then
12570     enable_dlopen=yes
12571   else
12572     enable_dlopen=no
12573   fi
12574
12575   case $lt_cv_dlopen in
12576   dlopen)
12577     save_CPPFLAGS="$CPPFLAGS"
12578     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12579
12580     save_LDFLAGS="$LDFLAGS"
12581     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12582
12583     save_LIBS="$LIBS"
12584     LIBS="$lt_cv_dlopen_libs $LIBS"
12585
12586     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12587 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12588 if test "${lt_cv_dlopen_self+set}" = set; then :
12589   $as_echo_n "(cached) " >&6
12590 else
12591           if test "$cross_compiling" = yes; then :
12592   lt_cv_dlopen_self=cross
12593 else
12594   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12595   lt_status=$lt_dlunknown
12596   cat > conftest.$ac_ext <<_LT_EOF
12597 #line 12597 "configure"
12598 #include "confdefs.h"
12599
12600 #if HAVE_DLFCN_H
12601 #include <dlfcn.h>
12602 #endif
12603
12604 #include <stdio.h>
12605
12606 #ifdef RTLD_GLOBAL
12607 #  define LT_DLGLOBAL           RTLD_GLOBAL
12608 #else
12609 #  ifdef DL_GLOBAL
12610 #    define LT_DLGLOBAL         DL_GLOBAL
12611 #  else
12612 #    define LT_DLGLOBAL         0
12613 #  endif
12614 #endif
12615
12616 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12617    find out it does not work in some platform. */
12618 #ifndef LT_DLLAZY_OR_NOW
12619 #  ifdef RTLD_LAZY
12620 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12621 #  else
12622 #    ifdef DL_LAZY
12623 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12624 #    else
12625 #      ifdef RTLD_NOW
12626 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12627 #      else
12628 #        ifdef DL_NOW
12629 #          define LT_DLLAZY_OR_NOW      DL_NOW
12630 #        else
12631 #          define LT_DLLAZY_OR_NOW      0
12632 #        endif
12633 #      endif
12634 #    endif
12635 #  endif
12636 #endif
12637
12638 void fnord() { int i=42;}
12639 int main ()
12640 {
12641   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12642   int status = $lt_dlunknown;
12643
12644   if (self)
12645     {
12646       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12647       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12648       /* dlclose (self); */
12649     }
12650   else
12651     puts (dlerror ());
12652
12653   return status;
12654 }
12655 _LT_EOF
12656   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12657   (eval $ac_link) 2>&5
12658   ac_status=$?
12659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12660   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12661     (./conftest; exit; ) >&5 2>/dev/null
12662     lt_status=$?
12663     case x$lt_status in
12664       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12665       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12666       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12667     esac
12668   else :
12669     # compilation failed
12670     lt_cv_dlopen_self=no
12671   fi
12672 fi
12673 rm -fr conftest*
12674
12675
12676 fi
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12678 $as_echo "$lt_cv_dlopen_self" >&6; }
12679
12680     if test "x$lt_cv_dlopen_self" = xyes; then
12681       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12682       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12683 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12684 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12685   $as_echo_n "(cached) " >&6
12686 else
12687           if test "$cross_compiling" = yes; then :
12688   lt_cv_dlopen_self_static=cross
12689 else
12690   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12691   lt_status=$lt_dlunknown
12692   cat > conftest.$ac_ext <<_LT_EOF
12693 #line 12693 "configure"
12694 #include "confdefs.h"
12695
12696 #if HAVE_DLFCN_H
12697 #include <dlfcn.h>
12698 #endif
12699
12700 #include <stdio.h>
12701
12702 #ifdef RTLD_GLOBAL
12703 #  define LT_DLGLOBAL           RTLD_GLOBAL
12704 #else
12705 #  ifdef DL_GLOBAL
12706 #    define LT_DLGLOBAL         DL_GLOBAL
12707 #  else
12708 #    define LT_DLGLOBAL         0
12709 #  endif
12710 #endif
12711
12712 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12713    find out it does not work in some platform. */
12714 #ifndef LT_DLLAZY_OR_NOW
12715 #  ifdef RTLD_LAZY
12716 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12717 #  else
12718 #    ifdef DL_LAZY
12719 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12720 #    else
12721 #      ifdef RTLD_NOW
12722 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12723 #      else
12724 #        ifdef DL_NOW
12725 #          define LT_DLLAZY_OR_NOW      DL_NOW
12726 #        else
12727 #          define LT_DLLAZY_OR_NOW      0
12728 #        endif
12729 #      endif
12730 #    endif
12731 #  endif
12732 #endif
12733
12734 void fnord() { int i=42;}
12735 int main ()
12736 {
12737   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12738   int status = $lt_dlunknown;
12739
12740   if (self)
12741     {
12742       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12743       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12744       /* dlclose (self); */
12745     }
12746   else
12747     puts (dlerror ());
12748
12749   return status;
12750 }
12751 _LT_EOF
12752   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12753   (eval $ac_link) 2>&5
12754   ac_status=$?
12755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12756   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12757     (./conftest; exit; ) >&5 2>/dev/null
12758     lt_status=$?
12759     case x$lt_status in
12760       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12761       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12762       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12763     esac
12764   else :
12765     # compilation failed
12766     lt_cv_dlopen_self_static=no
12767   fi
12768 fi
12769 rm -fr conftest*
12770
12771
12772 fi
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12774 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12775     fi
12776
12777     CPPFLAGS="$save_CPPFLAGS"
12778     LDFLAGS="$save_LDFLAGS"
12779     LIBS="$save_LIBS"
12780     ;;
12781   esac
12782
12783   case $lt_cv_dlopen_self in
12784   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12785   *) enable_dlopen_self=unknown ;;
12786   esac
12787
12788   case $lt_cv_dlopen_self_static in
12789   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12790   *) enable_dlopen_self_static=unknown ;;
12791   esac
12792 fi
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810 striplib=
12811 old_striplib=
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12813 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12814 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12815   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12816   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12818 $as_echo "yes" >&6; }
12819 else
12820 # FIXME - insert some real tests, host_os isn't really good enough
12821   case $host_os in
12822   darwin*)
12823     if test -n "$STRIP" ; then
12824       striplib="$STRIP -x"
12825       old_striplib="$STRIP -S"
12826       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12827 $as_echo "yes" >&6; }
12828     else
12829       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830 $as_echo "no" >&6; }
12831     fi
12832     ;;
12833   *)
12834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835 $as_echo "no" >&6; }
12836     ;;
12837   esac
12838 fi
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851   # Report which library types will actually be built
12852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12853 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12855 $as_echo "$can_build_shared" >&6; }
12856
12857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12858 $as_echo_n "checking whether to build shared libraries... " >&6; }
12859   test "$can_build_shared" = "no" && enable_shared=no
12860
12861   # On AIX, shared libraries and static libraries use the same namespace, and
12862   # are all built from PIC.
12863   case $host_os in
12864   aix3*)
12865     test "$enable_shared" = yes && enable_static=no
12866     if test -n "$RANLIB"; then
12867       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12868       postinstall_cmds='$RANLIB $lib'
12869     fi
12870     ;;
12871
12872   aix[4-9]*)
12873     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12874       test "$enable_shared" = yes && enable_static=no
12875     fi
12876     ;;
12877   esac
12878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12879 $as_echo "$enable_shared" >&6; }
12880
12881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12882 $as_echo_n "checking whether to build static libraries... " >&6; }
12883   # Make sure either enable_shared or enable_static is yes.
12884   test "$enable_shared" = yes || enable_static=yes
12885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12886 $as_echo "$enable_static" >&6; }
12887
12888
12889
12890
12891 fi
12892 ac_ext=c
12893 ac_cpp='$CPP $CPPFLAGS'
12894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12897
12898 CC="$lt_save_CC"
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912         ac_config_commands="$ac_config_commands libtool"
12913
12914
12915
12916
12917 # Only expand once:
12918
12919
12920
12921 if test -n "$ac_tool_prefix"; then
12922   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12923 set dummy ${ac_tool_prefix}windres; ac_word=$2
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12925 $as_echo_n "checking for $ac_word... " >&6; }
12926 if test "${ac_cv_prog_RC+set}" = set; then :
12927   $as_echo_n "(cached) " >&6
12928 else
12929   if test -n "$RC"; then
12930   ac_cv_prog_RC="$RC" # Let the user override the test.
12931 else
12932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12933 for as_dir in $PATH
12934 do
12935   IFS=$as_save_IFS
12936   test -z "$as_dir" && as_dir=.
12937     for ac_exec_ext in '' $ac_executable_extensions; do
12938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12939     ac_cv_prog_RC="${ac_tool_prefix}windres"
12940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12941     break 2
12942   fi
12943 done
12944   done
12945 IFS=$as_save_IFS
12946
12947 fi
12948 fi
12949 RC=$ac_cv_prog_RC
12950 if test -n "$RC"; then
12951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
12952 $as_echo "$RC" >&6; }
12953 else
12954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12955 $as_echo "no" >&6; }
12956 fi
12957
12958
12959 fi
12960 if test -z "$ac_cv_prog_RC"; then
12961   ac_ct_RC=$RC
12962   # Extract the first word of "windres", so it can be a program name with args.
12963 set dummy windres; ac_word=$2
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12965 $as_echo_n "checking for $ac_word... " >&6; }
12966 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
12967   $as_echo_n "(cached) " >&6
12968 else
12969   if test -n "$ac_ct_RC"; then
12970   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
12971 else
12972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12973 for as_dir in $PATH
12974 do
12975   IFS=$as_save_IFS
12976   test -z "$as_dir" && as_dir=.
12977     for ac_exec_ext in '' $ac_executable_extensions; do
12978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12979     ac_cv_prog_ac_ct_RC="windres"
12980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12981     break 2
12982   fi
12983 done
12984   done
12985 IFS=$as_save_IFS
12986
12987 fi
12988 fi
12989 ac_ct_RC=$ac_cv_prog_ac_ct_RC
12990 if test -n "$ac_ct_RC"; then
12991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
12992 $as_echo "$ac_ct_RC" >&6; }
12993 else
12994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12995 $as_echo "no" >&6; }
12996 fi
12997
12998   if test "x$ac_ct_RC" = x; then
12999     RC=""
13000   else
13001     case $cross_compiling:$ac_tool_warned in
13002 yes:)
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13005 ac_tool_warned=yes ;;
13006 esac
13007     RC=$ac_ct_RC
13008   fi
13009 else
13010   RC="$ac_cv_prog_RC"
13011 fi
13012
13013
13014
13015
13016 # Source file extension for RC test sources.
13017 ac_ext=rc
13018
13019 # Object file extension for compiled RC test sources.
13020 objext=o
13021 objext_RC=$objext
13022
13023 # Code to be used in simple compile tests
13024 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
13025
13026 # Code to be used in simple link tests
13027 lt_simple_link_test_code="$lt_simple_compile_test_code"
13028
13029 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13030
13031
13032
13033
13034
13035
13036 # If no C compiler was specified, use CC.
13037 LTCC=${LTCC-"$CC"}
13038
13039 # If no C compiler flags were specified, use CFLAGS.
13040 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13041
13042 # Allow CC to be a program name with arguments.
13043 compiler=$CC
13044
13045
13046 # save warnings/boilerplate of simple test code
13047 ac_outfile=conftest.$ac_objext
13048 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13049 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13050 _lt_compiler_boilerplate=`cat conftest.err`
13051 $RM conftest*
13052
13053 ac_outfile=conftest.$ac_objext
13054 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13055 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13056 _lt_linker_boilerplate=`cat conftest.err`
13057 $RM -r conftest*
13058
13059
13060 # Allow CC to be a program name with arguments.
13061 lt_save_CC="$CC"
13062 lt_save_GCC=$GCC
13063 GCC=
13064 CC=${RC-"windres"}
13065 compiler=$CC
13066 compiler_RC=$CC
13067 for cc_temp in $compiler""; do
13068   case $cc_temp in
13069     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13070     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13071     \-*) ;;
13072     *) break;;
13073   esac
13074 done
13075 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13076
13077 lt_cv_prog_compiler_c_o_RC=yes
13078
13079 if test -n "$compiler"; then
13080   :
13081
13082
13083
13084 fi
13085
13086 GCC=$lt_save_GCC
13087 ac_ext=c
13088 ac_cpp='$CPP $CPPFLAGS'
13089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13092
13093 CC="$lt_save_CC"
13094
13095
13096 case "$host_os" in
13097   mingw* | cygwin*) is_woe32=yes ;;
13098   *) is_woe32=no ;;
13099 esac
13100  if test $is_woe32 = yes; then
13101   WOE32_TRUE=
13102   WOE32_FALSE='#'
13103 else
13104   WOE32_TRUE='#'
13105   WOE32_FALSE=
13106 fi
13107
13108
13109
13110
13111
13112
13113
13114           LIBC_FATAL_STDERR_=1
13115   export LIBC_FATAL_STDERR_
13116
13117 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13118 # for constant arguments.  Useless!
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13120 $as_echo_n "checking for working alloca.h... " >&6; }
13121 if test "${ac_cv_working_alloca_h+set}" = set; then :
13122   $as_echo_n "(cached) " >&6
13123 else
13124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13125 /* end confdefs.h.  */
13126 #include <alloca.h>
13127 int
13128 main ()
13129 {
13130 char *p = (char *) alloca (2 * sizeof (int));
13131                           if (p) return 0;
13132   ;
13133   return 0;
13134 }
13135 _ACEOF
13136 if ac_fn_c_try_link "$LINENO"; then :
13137   ac_cv_working_alloca_h=yes
13138 else
13139   ac_cv_working_alloca_h=no
13140 fi
13141 rm -f core conftest.err conftest.$ac_objext \
13142     conftest$ac_exeext conftest.$ac_ext
13143 fi
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13145 $as_echo "$ac_cv_working_alloca_h" >&6; }
13146 if test $ac_cv_working_alloca_h = yes; then
13147
13148 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13149
13150 fi
13151
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13153 $as_echo_n "checking for alloca... " >&6; }
13154 if test "${ac_cv_func_alloca_works+set}" = set; then :
13155   $as_echo_n "(cached) " >&6
13156 else
13157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158 /* end confdefs.h.  */
13159 #ifdef __GNUC__
13160 # define alloca __builtin_alloca
13161 #else
13162 # ifdef _MSC_VER
13163 #  include <malloc.h>
13164 #  define alloca _alloca
13165 # else
13166 #  ifdef HAVE_ALLOCA_H
13167 #   include <alloca.h>
13168 #  else
13169 #   ifdef _AIX
13170  #pragma alloca
13171 #   else
13172 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13173 char *alloca ();
13174 #    endif
13175 #   endif
13176 #  endif
13177 # endif
13178 #endif
13179
13180 int
13181 main ()
13182 {
13183 char *p = (char *) alloca (1);
13184                                     if (p) return 0;
13185   ;
13186   return 0;
13187 }
13188 _ACEOF
13189 if ac_fn_c_try_link "$LINENO"; then :
13190   ac_cv_func_alloca_works=yes
13191 else
13192   ac_cv_func_alloca_works=no
13193 fi
13194 rm -f core conftest.err conftest.$ac_objext \
13195     conftest$ac_exeext conftest.$ac_ext
13196 fi
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13198 $as_echo "$ac_cv_func_alloca_works" >&6; }
13199
13200 if test $ac_cv_func_alloca_works = yes; then
13201
13202 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13203
13204 else
13205   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13206 # that cause trouble.  Some versions do not even contain alloca or
13207 # contain a buggy version.  If you still want to use their alloca,
13208 # use ar to extract alloca.o from them instead of compiling alloca.c.
13209
13210
13211
13212
13213
13214 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13215
13216 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13217
13218
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13220 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13221 if test "${ac_cv_os_cray+set}" = set; then :
13222   $as_echo_n "(cached) " >&6
13223 else
13224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h.  */
13226 #if defined CRAY && ! defined CRAY2
13227 webecray
13228 #else
13229 wenotbecray
13230 #endif
13231
13232 _ACEOF
13233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13234   $EGREP "webecray" >/dev/null 2>&1; then :
13235   ac_cv_os_cray=yes
13236 else
13237   ac_cv_os_cray=no
13238 fi
13239 rm -f conftest*
13240
13241 fi
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13243 $as_echo "$ac_cv_os_cray" >&6; }
13244 if test $ac_cv_os_cray = yes; then
13245   for ac_func in _getb67 GETB67 getb67; do
13246     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13247 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13248 eval as_val=\$$as_ac_var
13249    if test "x$as_val" = x""yes; then :
13250
13251 cat >>confdefs.h <<_ACEOF
13252 #define CRAY_STACKSEG_END $ac_func
13253 _ACEOF
13254
13255     break
13256 fi
13257
13258   done
13259 fi
13260
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13262 $as_echo_n "checking stack direction for C alloca... " >&6; }
13263 if test "${ac_cv_c_stack_direction+set}" = set; then :
13264   $as_echo_n "(cached) " >&6
13265 else
13266   if test "$cross_compiling" = yes; then :
13267   ac_cv_c_stack_direction=0
13268 else
13269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270 /* end confdefs.h.  */
13271 $ac_includes_default
13272 int
13273 find_stack_direction ()
13274 {
13275   static char *addr = 0;
13276   auto char dummy;
13277   if (addr == 0)
13278     {
13279       addr = &dummy;
13280       return find_stack_direction ();
13281     }
13282   else
13283     return (&dummy > addr) ? 1 : -1;
13284 }
13285
13286 int
13287 main ()
13288 {
13289   return find_stack_direction () < 0;
13290 }
13291 _ACEOF
13292 if ac_fn_c_try_run "$LINENO"; then :
13293   ac_cv_c_stack_direction=1
13294 else
13295   ac_cv_c_stack_direction=-1
13296 fi
13297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13298   conftest.$ac_objext conftest.beam conftest.$ac_ext
13299 fi
13300
13301 fi
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13303 $as_echo "$ac_cv_c_stack_direction" >&6; }
13304 cat >>confdefs.h <<_ACEOF
13305 #define STACK_DIRECTION $ac_cv_c_stack_direction
13306 _ACEOF
13307
13308
13309 fi
13310
13311
13312
13313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13314 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13315 if test "${gl_cv_have_include_next+set}" = set; then :
13316   $as_echo_n "(cached) " >&6
13317 else
13318   rm -rf conftestd1a conftestd1b conftestd2
13319      mkdir conftestd1a conftestd1b conftestd2
13320                                                   cat <<EOF > conftestd1a/conftest.h
13321 #define DEFINED_IN_CONFTESTD1
13322 #include_next <conftest.h>
13323 #ifdef DEFINED_IN_CONFTESTD2
13324 int foo;
13325 #else
13326 #error "include_next doesn't work"
13327 #endif
13328 EOF
13329      cat <<EOF > conftestd1b/conftest.h
13330 #define DEFINED_IN_CONFTESTD1
13331 #include <stdio.h>
13332 #include_next <conftest.h>
13333 #ifdef DEFINED_IN_CONFTESTD2
13334 int foo;
13335 #else
13336 #error "include_next doesn't work"
13337 #endif
13338 EOF
13339      cat <<EOF > conftestd2/conftest.h
13340 #ifndef DEFINED_IN_CONFTESTD1
13341 #error "include_next test doesn't work"
13342 #endif
13343 #define DEFINED_IN_CONFTESTD2
13344 EOF
13345      gl_save_CPPFLAGS="$CPPFLAGS"
13346      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13347      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h.  */
13349 #include <conftest.h>
13350 _ACEOF
13351 if ac_fn_c_try_compile "$LINENO"; then :
13352   gl_cv_have_include_next=yes
13353 else
13354   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13355         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356 /* end confdefs.h.  */
13357 #include <conftest.h>
13358 _ACEOF
13359 if ac_fn_c_try_compile "$LINENO"; then :
13360   gl_cv_have_include_next=buggy
13361 else
13362   gl_cv_have_include_next=no
13363 fi
13364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13365
13366 fi
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368      CPPFLAGS="$gl_save_CPPFLAGS"
13369      rm -rf conftestd1a conftestd1b conftestd2
13370
13371 fi
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13373 $as_echo "$gl_cv_have_include_next" >&6; }
13374   PRAGMA_SYSTEM_HEADER=
13375   if test $gl_cv_have_include_next = yes; then
13376     INCLUDE_NEXT=include_next
13377     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13378     if test -n "$GCC"; then
13379       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
13380     fi
13381   else
13382     if test $gl_cv_have_include_next = buggy; then
13383       INCLUDE_NEXT=include
13384       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13385     else
13386       INCLUDE_NEXT=include
13387       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
13388     fi
13389   fi
13390
13391
13392
13393
13394
13395
13396
13397   for ac_header in $ac_header_list
13398 do :
13399   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13400 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13401 "
13402 eval as_val=\$$as_ac_Header
13403    if test "x$as_val" = x""yes; then :
13404   cat >>confdefs.h <<_ACEOF
13405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13406 _ACEOF
13407
13408 fi
13409
13410 done
13411
13412
13413
13414
13415
13416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
13417 $as_echo_n "checking for complete errno.h... " >&6; }
13418 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
13419   $as_echo_n "(cached) " >&6
13420 else
13421
13422     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13423 /* end confdefs.h.  */
13424
13425 #include <errno.h>
13426 #if !defined ENOMSG
13427 booboo
13428 #endif
13429 #if !defined EIDRM
13430 booboo
13431 #endif
13432 #if !defined ENOLINK
13433 booboo
13434 #endif
13435 #if !defined EPROTO
13436 booboo
13437 #endif
13438 #if !defined EMULTIHOP
13439 booboo
13440 #endif
13441 #if !defined EBADMSG
13442 booboo
13443 #endif
13444 #if !defined EOVERFLOW
13445 booboo
13446 #endif
13447 #if !defined ENOTSUP
13448 booboo
13449 #endif
13450 #if !defined ESTALE
13451 booboo
13452 #endif
13453 #if !defined ECANCELED
13454 booboo
13455 #endif
13456
13457 _ACEOF
13458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13459   $EGREP "booboo" >/dev/null 2>&1; then :
13460   gl_cv_header_errno_h_complete=no
13461 else
13462   gl_cv_header_errno_h_complete=yes
13463 fi
13464 rm -f conftest*
13465
13466
13467 fi
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
13469 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
13470   if test $gl_cv_header_errno_h_complete = yes; then
13471     ERRNO_H=''
13472   else
13473
13474
13475
13476
13477
13478
13479      if test $gl_cv_have_include_next = yes; then
13480        gl_cv_next_errno_h='<'errno.h'>'
13481      else
13482        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
13483 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
13484 if test "${gl_cv_next_errno_h+set}" = set; then :
13485   $as_echo_n "(cached) " >&6
13486 else
13487
13488           if test $ac_cv_header_errno_h = yes; then
13489             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h.  */
13491 #include <errno.h>
13492
13493 _ACEOF
13494                                                                                                 case "$host_os" in
13495               aix*) gl_absname_cpp="$ac_cpp -C" ;;
13496               *)    gl_absname_cpp="$ac_cpp" ;;
13497             esac
13498                                                 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13499                sed -n '\#/errno.h#{
13500                  s#.*"\(.*/errno.h\)".*#\1#
13501                  s#^/[^/]#//&#
13502                  p
13503                  q
13504                }'`'"'
13505           else
13506             gl_cv_next_errno_h='<'errno.h'>'
13507           fi
13508
13509 fi
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
13511 $as_echo "$gl_cv_next_errno_h" >&6; }
13512      fi
13513      NEXT_ERRNO_H=$gl_cv_next_errno_h
13514
13515      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13516        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13517        gl_next_as_first_directive='<'errno.h'>'
13518      else
13519        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13520        gl_next_as_first_directive=$gl_cv_next_errno_h
13521      fi
13522      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
13523
13524
13525
13526     ERRNO_H='errno.h'
13527   fi
13528
13529
13530   if test -n "$ERRNO_H"; then
13531     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
13532 $as_echo_n "checking for EMULTIHOP value... " >&6; }
13533 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
13534   $as_echo_n "(cached) " >&6
13535 else
13536
13537       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13538 /* end confdefs.h.  */
13539
13540 #include <errno.h>
13541 #ifdef EMULTIHOP
13542 yes
13543 #endif
13544
13545 _ACEOF
13546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13547   $EGREP "yes" >/dev/null 2>&1; then :
13548   gl_cv_header_errno_h_EMULTIHOP=yes
13549 else
13550   gl_cv_header_errno_h_EMULTIHOP=no
13551 fi
13552 rm -f conftest*
13553
13554       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
13555         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h.  */
13557
13558 #define _XOPEN_SOURCE_EXTENDED 1
13559 #include <errno.h>
13560 #ifdef EMULTIHOP
13561 yes
13562 #endif
13563
13564 _ACEOF
13565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13566   $EGREP "yes" >/dev/null 2>&1; then :
13567   gl_cv_header_errno_h_EMULTIHOP=hidden
13568 fi
13569 rm -f conftest*
13570
13571         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
13572                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
13573 #define _XOPEN_SOURCE_EXTENDED 1
13574 #include <errno.h>
13575 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13576 #include <stdio.h>
13577 #include <stdlib.h>
13578 "; then :
13579
13580 fi
13581
13582         fi
13583       fi
13584
13585 fi
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
13587 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
13588     case $gl_cv_header_errno_h_EMULTIHOP in
13589       yes | no)
13590         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
13591         ;;
13592       *)
13593         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
13594         ;;
13595     esac
13596
13597
13598   fi
13599
13600
13601   if test -n "$ERRNO_H"; then
13602     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
13603 $as_echo_n "checking for ENOLINK value... " >&6; }
13604 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
13605   $as_echo_n "(cached) " >&6
13606 else
13607
13608       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h.  */
13610
13611 #include <errno.h>
13612 #ifdef ENOLINK
13613 yes
13614 #endif
13615
13616 _ACEOF
13617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13618   $EGREP "yes" >/dev/null 2>&1; then :
13619   gl_cv_header_errno_h_ENOLINK=yes
13620 else
13621   gl_cv_header_errno_h_ENOLINK=no
13622 fi
13623 rm -f conftest*
13624
13625       if test $gl_cv_header_errno_h_ENOLINK = no; then
13626         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h.  */
13628
13629 #define _XOPEN_SOURCE_EXTENDED 1
13630 #include <errno.h>
13631 #ifdef ENOLINK
13632 yes
13633 #endif
13634
13635 _ACEOF
13636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13637   $EGREP "yes" >/dev/null 2>&1; then :
13638   gl_cv_header_errno_h_ENOLINK=hidden
13639 fi
13640 rm -f conftest*
13641
13642         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
13643                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
13644 #define _XOPEN_SOURCE_EXTENDED 1
13645 #include <errno.h>
13646 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13647 #include <stdio.h>
13648 #include <stdlib.h>
13649 "; then :
13650
13651 fi
13652
13653         fi
13654       fi
13655
13656 fi
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
13658 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
13659     case $gl_cv_header_errno_h_ENOLINK in
13660       yes | no)
13661         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
13662         ;;
13663       *)
13664         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
13665         ;;
13666     esac
13667
13668
13669   fi
13670
13671
13672   if test -n "$ERRNO_H"; then
13673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
13674 $as_echo_n "checking for EOVERFLOW value... " >&6; }
13675 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
13676   $as_echo_n "(cached) " >&6
13677 else
13678
13679       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h.  */
13681
13682 #include <errno.h>
13683 #ifdef EOVERFLOW
13684 yes
13685 #endif
13686
13687 _ACEOF
13688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13689   $EGREP "yes" >/dev/null 2>&1; then :
13690   gl_cv_header_errno_h_EOVERFLOW=yes
13691 else
13692   gl_cv_header_errno_h_EOVERFLOW=no
13693 fi
13694 rm -f conftest*
13695
13696       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
13697         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h.  */
13699
13700 #define _XOPEN_SOURCE_EXTENDED 1
13701 #include <errno.h>
13702 #ifdef EOVERFLOW
13703 yes
13704 #endif
13705
13706 _ACEOF
13707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13708   $EGREP "yes" >/dev/null 2>&1; then :
13709   gl_cv_header_errno_h_EOVERFLOW=hidden
13710 fi
13711 rm -f conftest*
13712
13713         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
13714                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
13715 #define _XOPEN_SOURCE_EXTENDED 1
13716 #include <errno.h>
13717 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13718 #include <stdio.h>
13719 #include <stdlib.h>
13720 "; then :
13721
13722 fi
13723
13724         fi
13725       fi
13726
13727 fi
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
13729 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
13730     case $gl_cv_header_errno_h_EOVERFLOW in
13731       yes | no)
13732         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
13733         ;;
13734       *)
13735         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
13736         ;;
13737     esac
13738
13739
13740   fi
13741
13742
13743
13744
13745
13746   GNULIB_ACOSL=0;
13747   GNULIB_ASINL=0;
13748   GNULIB_ATANL=0;
13749   GNULIB_CEILF=0;
13750   GNULIB_CEILL=0;
13751   GNULIB_COSL=0;
13752   GNULIB_EXPL=0;
13753   GNULIB_FLOORF=0;
13754   GNULIB_FLOORL=0;
13755   GNULIB_FREXP=0;
13756   GNULIB_FREXPL=0;
13757   GNULIB_ISFINITE=0;
13758   GNULIB_ISINF=0;
13759   GNULIB_ISNAN=0;
13760   GNULIB_ISNANF=0;
13761   GNULIB_ISNAND=0;
13762   GNULIB_ISNANL=0;
13763   GNULIB_LDEXPL=0;
13764   GNULIB_LOGB=0;
13765   GNULIB_LOGL=0;
13766   GNULIB_ROUND=0;
13767   GNULIB_ROUNDF=0;
13768   GNULIB_ROUNDL=0;
13769   GNULIB_SIGNBIT=0;
13770   GNULIB_SINL=0;
13771   GNULIB_SQRTL=0;
13772   GNULIB_TANL=0;
13773   GNULIB_TRUNC=0;
13774   GNULIB_TRUNCF=0;
13775   GNULIB_TRUNCL=0;
13776     HAVE_ACOSL=1;
13777   HAVE_ASINL=1;
13778   HAVE_ATANL=1;
13779   HAVE_COSL=1;
13780   HAVE_EXPL=1;
13781   HAVE_ISNANF=1;
13782   HAVE_ISNAND=1;
13783   HAVE_ISNANL=1;
13784   HAVE_LOGL=1;
13785   HAVE_SINL=1;
13786   HAVE_SQRTL=1;
13787   HAVE_TANL=1;
13788   HAVE_DECL_ACOSL=1;
13789   HAVE_DECL_ASINL=1;
13790   HAVE_DECL_ATANL=1;
13791   HAVE_DECL_CEILF=1;
13792   HAVE_DECL_CEILL=1;
13793   HAVE_DECL_COSL=1;
13794   HAVE_DECL_EXPL=1;
13795   HAVE_DECL_FLOORF=1;
13796   HAVE_DECL_FLOORL=1;
13797   HAVE_DECL_FREXPL=1;
13798   HAVE_DECL_LDEXPL=1;
13799   HAVE_DECL_LOGB=1;
13800   HAVE_DECL_LOGL=1;
13801   HAVE_DECL_ROUND=1;
13802   HAVE_DECL_ROUNDF=1;
13803   HAVE_DECL_ROUNDL=1;
13804   HAVE_DECL_SINL=1;
13805   HAVE_DECL_SQRTL=1;
13806   HAVE_DECL_TANL=1;
13807   HAVE_DECL_TRUNC=1;
13808   HAVE_DECL_TRUNCF=1;
13809   HAVE_DECL_TRUNCL=1;
13810   REPLACE_CEILF=0;
13811   REPLACE_CEILL=0;
13812   REPLACE_FLOORF=0;
13813   REPLACE_FLOORL=0;
13814   REPLACE_FREXP=0;
13815   REPLACE_FREXPL=0;
13816   REPLACE_HUGE_VAL=0;
13817   REPLACE_ISFINITE=0;
13818   REPLACE_ISINF=0;
13819   REPLACE_ISNAN=0;
13820   REPLACE_LDEXPL=0;
13821   REPLACE_NAN=0;
13822   REPLACE_ROUND=0;
13823   REPLACE_ROUNDF=0;
13824   REPLACE_ROUNDL=0;
13825   REPLACE_SIGNBIT=0;
13826   REPLACE_SIGNBIT_USING_GCC=0;
13827   REPLACE_TRUNCL=0;
13828
13829
13830       if test "X$prefix" = "XNONE"; then
13831     acl_final_prefix="$ac_default_prefix"
13832   else
13833     acl_final_prefix="$prefix"
13834   fi
13835   if test "X$exec_prefix" = "XNONE"; then
13836     acl_final_exec_prefix='${prefix}'
13837   else
13838     acl_final_exec_prefix="$exec_prefix"
13839   fi
13840   acl_save_prefix="$prefix"
13841   prefix="$acl_final_prefix"
13842   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13843   prefix="$acl_save_prefix"
13844
13845
13846 # Check whether --with-gnu-ld was given.
13847 if test "${with_gnu_ld+set}" = set; then :
13848   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13849 else
13850   with_gnu_ld=no
13851 fi
13852
13853 # Prepare PATH_SEPARATOR.
13854 # The user is always right.
13855 if test "${PATH_SEPARATOR+set}" != set; then
13856   echo "#! /bin/sh" >conf$$.sh
13857   echo  "exit 0"   >>conf$$.sh
13858   chmod +x conf$$.sh
13859   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13860     PATH_SEPARATOR=';'
13861   else
13862     PATH_SEPARATOR=:
13863   fi
13864   rm -f conf$$.sh
13865 fi
13866 ac_prog=ld
13867 if test "$GCC" = yes; then
13868   # Check if gcc -print-prog-name=ld gives a path.
13869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13870 $as_echo_n "checking for ld used by GCC... " >&6; }
13871   case $host in
13872   *-*-mingw*)
13873     # gcc leaves a trailing carriage return which upsets mingw
13874     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13875   *)
13876     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13877   esac
13878   case $ac_prog in
13879     # Accept absolute paths.
13880     [\\/]* | [A-Za-z]:[\\/]*)
13881       re_direlt='/[^/][^/]*/\.\./'
13882       # Canonicalize the path of ld
13883       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13884       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13885         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13886       done
13887       test -z "$LD" && LD="$ac_prog"
13888       ;;
13889   "")
13890     # If it fails, then pretend we aren't using GCC.
13891     ac_prog=ld
13892     ;;
13893   *)
13894     # If it is relative, then search for the first ld in PATH.
13895     with_gnu_ld=unknown
13896     ;;
13897   esac
13898 elif test "$with_gnu_ld" = yes; then
13899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13900 $as_echo_n "checking for GNU ld... " >&6; }
13901 else
13902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13903 $as_echo_n "checking for non-GNU ld... " >&6; }
13904 fi
13905 if test "${acl_cv_path_LD+set}" = set; then :
13906   $as_echo_n "(cached) " >&6
13907 else
13908   if test -z "$LD"; then
13909   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13910   for ac_dir in $PATH; do
13911     test -z "$ac_dir" && ac_dir=.
13912     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13913       acl_cv_path_LD="$ac_dir/$ac_prog"
13914       # Check to see if the program is GNU ld.  I'd rather use --version,
13915       # but apparently some GNU ld's only accept -v.
13916       # Break only if it was the GNU/non-GNU ld that we prefer.
13917       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13918       *GNU* | *'with BFD'*)
13919         test "$with_gnu_ld" != no && break ;;
13920       *)
13921         test "$with_gnu_ld" != yes && break ;;
13922       esac
13923     fi
13924   done
13925   IFS="$ac_save_ifs"
13926 else
13927   acl_cv_path_LD="$LD" # Let the user override the test with a path.
13928 fi
13929 fi
13930
13931 LD="$acl_cv_path_LD"
13932 if test -n "$LD"; then
13933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13934 $as_echo "$LD" >&6; }
13935 else
13936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13937 $as_echo "no" >&6; }
13938 fi
13939 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13941 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13942 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
13943   $as_echo_n "(cached) " >&6
13944 else
13945   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13946 case `$LD -v 2>&1 </dev/null` in
13947 *GNU* | *'with BFD'*)
13948   acl_cv_prog_gnu_ld=yes ;;
13949 *)
13950   acl_cv_prog_gnu_ld=no ;;
13951 esac
13952 fi
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13954 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13955 with_gnu_ld=$acl_cv_prog_gnu_ld
13956
13957
13958
13959
13960                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13961 $as_echo_n "checking for shared library run path origin... " >&6; }
13962 if test "${acl_cv_rpath+set}" = set; then :
13963   $as_echo_n "(cached) " >&6
13964 else
13965
13966     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13967     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13968     . ./conftest.sh
13969     rm -f ./conftest.sh
13970     acl_cv_rpath=done
13971
13972 fi
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13974 $as_echo "$acl_cv_rpath" >&6; }
13975   wl="$acl_cv_wl"
13976   acl_libext="$acl_cv_libext"
13977   acl_shlibext="$acl_cv_shlibext"
13978   acl_libname_spec="$acl_cv_libname_spec"
13979   acl_library_names_spec="$acl_cv_library_names_spec"
13980   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13981   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13982   acl_hardcode_direct="$acl_cv_hardcode_direct"
13983   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13984     # Check whether --enable-rpath was given.
13985 if test "${enable_rpath+set}" = set; then :
13986   enableval=$enable_rpath; :
13987 else
13988   enable_rpath=yes
13989 fi
13990
13991
13992
13993
13994   acl_libdirstem=lib
13995   acl_libdirstem2=
13996   case "$host_os" in
13997     solaris*)
13998                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13999 $as_echo_n "checking for 64-bit host... " >&6; }
14000 if test "${gl_cv_solaris_64bit+set}" = set; then :
14001   $as_echo_n "(cached) " >&6
14002 else
14003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004 /* end confdefs.h.  */
14005
14006 #ifdef _LP64
14007 sixtyfour bits
14008 #endif
14009
14010 _ACEOF
14011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14012   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
14013   gl_cv_solaris_64bit=yes
14014 else
14015   gl_cv_solaris_64bit=no
14016 fi
14017 rm -f conftest*
14018
14019
14020 fi
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
14022 $as_echo "$gl_cv_solaris_64bit" >&6; }
14023       if test $gl_cv_solaris_64bit = yes; then
14024         acl_libdirstem=lib/64
14025         case "$host_cpu" in
14026           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
14027           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
14028         esac
14029       fi
14030       ;;
14031     *)
14032       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14033       if test -n "$searchpath"; then
14034         acl_save_IFS="${IFS=    }"; IFS=":"
14035         for searchdir in $searchpath; do
14036           if test -d "$searchdir"; then
14037             case "$searchdir" in
14038               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14039               */../ | */.. )
14040                 # Better ignore directories of this form. They are misleading.
14041                 ;;
14042               *) searchdir=`cd "$searchdir" && pwd`
14043                  case "$searchdir" in
14044                    */lib64 ) acl_libdirstem=lib64 ;;
14045                  esac ;;
14046             esac
14047           fi
14048         done
14049         IFS="$acl_save_IFS"
14050       fi
14051       ;;
14052   esac
14053   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066     use_additional=yes
14067
14068   acl_save_prefix="$prefix"
14069   prefix="$acl_final_prefix"
14070   acl_save_exec_prefix="$exec_prefix"
14071   exec_prefix="$acl_final_exec_prefix"
14072
14073     eval additional_includedir=\"$includedir\"
14074     eval additional_libdir=\"$libdir\"
14075
14076   exec_prefix="$acl_save_exec_prefix"
14077   prefix="$acl_save_prefix"
14078
14079
14080 # Check whether --with-libiconv-prefix was given.
14081 if test "${with_libiconv_prefix+set}" = set; then :
14082   withval=$with_libiconv_prefix;
14083     if test "X$withval" = "Xno"; then
14084       use_additional=no
14085     else
14086       if test "X$withval" = "X"; then
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
14093           eval additional_includedir=\"$includedir\"
14094           eval additional_libdir=\"$libdir\"
14095
14096   exec_prefix="$acl_save_exec_prefix"
14097   prefix="$acl_save_prefix"
14098
14099       else
14100         additional_includedir="$withval/include"
14101         additional_libdir="$withval/$acl_libdirstem"
14102         if test "$acl_libdirstem2" != "$acl_libdirstem" \
14103            && ! test -d "$withval/$acl_libdirstem"; then
14104           additional_libdir="$withval/$acl_libdirstem2"
14105         fi
14106       fi
14107     fi
14108
14109 fi
14110
14111       LIBICONV=
14112   LTLIBICONV=
14113   INCICONV=
14114   LIBICONV_PREFIX=
14115       HAVE_LIBICONV=
14116   rpathdirs=
14117   ltrpathdirs=
14118   names_already_handled=
14119   names_next_round='iconv '
14120   while test -n "$names_next_round"; do
14121     names_this_round="$names_next_round"
14122     names_next_round=
14123     for name in $names_this_round; do
14124       already_handled=
14125       for n in $names_already_handled; do
14126         if test "$n" = "$name"; then
14127           already_handled=yes
14128           break
14129         fi
14130       done
14131       if test -z "$already_handled"; then
14132         names_already_handled="$names_already_handled $name"
14133                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14134         eval value=\"\$HAVE_LIB$uppername\"
14135         if test -n "$value"; then
14136           if test "$value" = yes; then
14137             eval value=\"\$LIB$uppername\"
14138             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14139             eval value=\"\$LTLIB$uppername\"
14140             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14141           else
14142                                     :
14143           fi
14144         else
14145                               found_dir=
14146           found_la=
14147           found_so=
14148           found_a=
14149           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14150           if test -n "$acl_shlibext"; then
14151             shrext=".$acl_shlibext"             # typically: shrext=.so
14152           else
14153             shrext=
14154           fi
14155           if test $use_additional = yes; then
14156             dir="$additional_libdir"
14157                                     if test -n "$acl_shlibext"; then
14158               if test -f "$dir/$libname$shrext"; then
14159                 found_dir="$dir"
14160                 found_so="$dir/$libname$shrext"
14161               else
14162                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14163                   ver=`(cd "$dir" && \
14164                         for f in "$libname$shrext".*; do echo "$f"; done \
14165                         | sed -e "s,^$libname$shrext\\\\.,," \
14166                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14167                         | sed 1q ) 2>/dev/null`
14168                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14169                     found_dir="$dir"
14170                     found_so="$dir/$libname$shrext.$ver"
14171                   fi
14172                 else
14173                   eval library_names=\"$acl_library_names_spec\"
14174                   for f in $library_names; do
14175                     if test -f "$dir/$f"; then
14176                       found_dir="$dir"
14177                       found_so="$dir/$f"
14178                       break
14179                     fi
14180                   done
14181                 fi
14182               fi
14183             fi
14184                         if test "X$found_dir" = "X"; then
14185               if test -f "$dir/$libname.$acl_libext"; then
14186                 found_dir="$dir"
14187                 found_a="$dir/$libname.$acl_libext"
14188               fi
14189             fi
14190             if test "X$found_dir" != "X"; then
14191               if test -f "$dir/$libname.la"; then
14192                 found_la="$dir/$libname.la"
14193               fi
14194             fi
14195           fi
14196           if test "X$found_dir" = "X"; then
14197             for x in $LDFLAGS $LTLIBICONV; 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               case "$x" in
14208                 -L*)
14209                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14210                                     if test -n "$acl_shlibext"; then
14211                     if test -f "$dir/$libname$shrext"; then
14212                       found_dir="$dir"
14213                       found_so="$dir/$libname$shrext"
14214                     else
14215                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14216                         ver=`(cd "$dir" && \
14217                               for f in "$libname$shrext".*; do echo "$f"; done \
14218                               | sed -e "s,^$libname$shrext\\\\.,," \
14219                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14220                               | sed 1q ) 2>/dev/null`
14221                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14222                           found_dir="$dir"
14223                           found_so="$dir/$libname$shrext.$ver"
14224                         fi
14225                       else
14226                         eval library_names=\"$acl_library_names_spec\"
14227                         for f in $library_names; do
14228                           if test -f "$dir/$f"; then
14229                             found_dir="$dir"
14230                             found_so="$dir/$f"
14231                             break
14232                           fi
14233                         done
14234                       fi
14235                     fi
14236                   fi
14237                                     if test "X$found_dir" = "X"; then
14238                     if test -f "$dir/$libname.$acl_libext"; then
14239                       found_dir="$dir"
14240                       found_a="$dir/$libname.$acl_libext"
14241                     fi
14242                   fi
14243                   if test "X$found_dir" != "X"; then
14244                     if test -f "$dir/$libname.la"; then
14245                       found_la="$dir/$libname.la"
14246                     fi
14247                   fi
14248                   ;;
14249               esac
14250               if test "X$found_dir" != "X"; then
14251                 break
14252               fi
14253             done
14254           fi
14255           if test "X$found_dir" != "X"; then
14256                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14257             if test "X$found_so" != "X"; then
14258                                                         if test "$enable_rpath" = no \
14259                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14260                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14261                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14262               else
14263                                                                                 haveit=
14264                 for x in $ltrpathdirs; do
14265                   if test "X$x" = "X$found_dir"; then
14266                     haveit=yes
14267                     break
14268                   fi
14269                 done
14270                 if test -z "$haveit"; then
14271                   ltrpathdirs="$ltrpathdirs $found_dir"
14272                 fi
14273                                 if test "$acl_hardcode_direct" = yes; then
14274                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14275                 else
14276                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14277                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14278                                                             haveit=
14279                     for x in $rpathdirs; do
14280                       if test "X$x" = "X$found_dir"; then
14281                         haveit=yes
14282                         break
14283                       fi
14284                     done
14285                     if test -z "$haveit"; then
14286                       rpathdirs="$rpathdirs $found_dir"
14287                     fi
14288                   else
14289                                                                                 haveit=
14290                     for x in $LDFLAGS $LIBICONV; do
14291
14292   acl_save_prefix="$prefix"
14293   prefix="$acl_final_prefix"
14294   acl_save_exec_prefix="$exec_prefix"
14295   exec_prefix="$acl_final_exec_prefix"
14296   eval x=\"$x\"
14297   exec_prefix="$acl_save_exec_prefix"
14298   prefix="$acl_save_prefix"
14299
14300                       if test "X$x" = "X-L$found_dir"; then
14301                         haveit=yes
14302                         break
14303                       fi
14304                     done
14305                     if test -z "$haveit"; then
14306                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14307                     fi
14308                     if test "$acl_hardcode_minus_L" != no; then
14309                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14310                     else
14311                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14312                     fi
14313                   fi
14314                 fi
14315               fi
14316             else
14317               if test "X$found_a" != "X"; then
14318                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14319               else
14320                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14321               fi
14322             fi
14323                         additional_includedir=
14324             case "$found_dir" in
14325               */$acl_libdirstem | */$acl_libdirstem/)
14326                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14327                 if test "$name" = 'iconv'; then
14328                   LIBICONV_PREFIX="$basedir"
14329                 fi
14330                 additional_includedir="$basedir/include"
14331                 ;;
14332               */$acl_libdirstem2 | */$acl_libdirstem2/)
14333                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14334                 if test "$name" = 'iconv'; then
14335                   LIBICONV_PREFIX="$basedir"
14336                 fi
14337                 additional_includedir="$basedir/include"
14338                 ;;
14339             esac
14340             if test "X$additional_includedir" != "X"; then
14341                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14342                 haveit=
14343                 if test "X$additional_includedir" = "X/usr/local/include"; then
14344                   if test -n "$GCC"; then
14345                     case $host_os in
14346                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14347                     esac
14348                   fi
14349                 fi
14350                 if test -z "$haveit"; then
14351                   for x in $CPPFLAGS $INCICONV; do
14352
14353   acl_save_prefix="$prefix"
14354   prefix="$acl_final_prefix"
14355   acl_save_exec_prefix="$exec_prefix"
14356   exec_prefix="$acl_final_exec_prefix"
14357   eval x=\"$x\"
14358   exec_prefix="$acl_save_exec_prefix"
14359   prefix="$acl_save_prefix"
14360
14361                     if test "X$x" = "X-I$additional_includedir"; then
14362                       haveit=yes
14363                       break
14364                     fi
14365                   done
14366                   if test -z "$haveit"; then
14367                     if test -d "$additional_includedir"; then
14368                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14369                     fi
14370                   fi
14371                 fi
14372               fi
14373             fi
14374                         if test -n "$found_la"; then
14375                                                         save_libdir="$libdir"
14376               case "$found_la" in
14377                 */* | *\\*) . "$found_la" ;;
14378                 *) . "./$found_la" ;;
14379               esac
14380               libdir="$save_libdir"
14381                             for dep in $dependency_libs; do
14382                 case "$dep" in
14383                   -L*)
14384                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14385                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14386                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14387                       haveit=
14388                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14389                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14390                         if test -n "$GCC"; then
14391                           case $host_os in
14392                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14393                           esac
14394                         fi
14395                       fi
14396                       if test -z "$haveit"; then
14397                         haveit=
14398                         for x in $LDFLAGS $LIBICONV; do
14399
14400   acl_save_prefix="$prefix"
14401   prefix="$acl_final_prefix"
14402   acl_save_exec_prefix="$exec_prefix"
14403   exec_prefix="$acl_final_exec_prefix"
14404   eval x=\"$x\"
14405   exec_prefix="$acl_save_exec_prefix"
14406   prefix="$acl_save_prefix"
14407
14408                           if test "X$x" = "X-L$additional_libdir"; then
14409                             haveit=yes
14410                             break
14411                           fi
14412                         done
14413                         if test -z "$haveit"; then
14414                           if test -d "$additional_libdir"; then
14415                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14416                           fi
14417                         fi
14418                         haveit=
14419                         for x in $LDFLAGS $LTLIBICONV; do
14420
14421   acl_save_prefix="$prefix"
14422   prefix="$acl_final_prefix"
14423   acl_save_exec_prefix="$exec_prefix"
14424   exec_prefix="$acl_final_exec_prefix"
14425   eval x=\"$x\"
14426   exec_prefix="$acl_save_exec_prefix"
14427   prefix="$acl_save_prefix"
14428
14429                           if test "X$x" = "X-L$additional_libdir"; then
14430                             haveit=yes
14431                             break
14432                           fi
14433                         done
14434                         if test -z "$haveit"; then
14435                           if test -d "$additional_libdir"; then
14436                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14437                           fi
14438                         fi
14439                       fi
14440                     fi
14441                     ;;
14442                   -R*)
14443                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14444                     if test "$enable_rpath" != no; then
14445                                                                   haveit=
14446                       for x in $rpathdirs; do
14447                         if test "X$x" = "X$dir"; then
14448                           haveit=yes
14449                           break
14450                         fi
14451                       done
14452                       if test -z "$haveit"; then
14453                         rpathdirs="$rpathdirs $dir"
14454                       fi
14455                                                                   haveit=
14456                       for x in $ltrpathdirs; do
14457                         if test "X$x" = "X$dir"; then
14458                           haveit=yes
14459                           break
14460                         fi
14461                       done
14462                       if test -z "$haveit"; then
14463                         ltrpathdirs="$ltrpathdirs $dir"
14464                       fi
14465                     fi
14466                     ;;
14467                   -l*)
14468                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14469                     ;;
14470                   *.la)
14471                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14472                     ;;
14473                   *)
14474                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14475                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14476                     ;;
14477                 esac
14478               done
14479             fi
14480           else
14481                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14482             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14483           fi
14484         fi
14485       fi
14486     done
14487   done
14488   if test "X$rpathdirs" != "X"; then
14489     if test -n "$acl_hardcode_libdir_separator"; then
14490                         alldirs=
14491       for found_dir in $rpathdirs; do
14492         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14493       done
14494             acl_save_libdir="$libdir"
14495       libdir="$alldirs"
14496       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14497       libdir="$acl_save_libdir"
14498       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14499     else
14500             for found_dir in $rpathdirs; do
14501         acl_save_libdir="$libdir"
14502         libdir="$found_dir"
14503         eval flag=\"$acl_hardcode_libdir_flag_spec\"
14504         libdir="$acl_save_libdir"
14505         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14506       done
14507     fi
14508   fi
14509   if test "X$ltrpathdirs" != "X"; then
14510             for found_dir in $ltrpathdirs; do
14511       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14512     done
14513   fi
14514
14515
14516
14517
14518
14519
14520
14521
14522     REPLACE_ICONV=0;
14523   REPLACE_ICONV_OPEN=0;
14524   REPLACE_ICONV_UTF=0;
14525   ICONV_H='';
14526
14527
14528
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14530 $as_echo_n "checking for inline... " >&6; }
14531 if test "${ac_cv_c_inline+set}" = set; then :
14532   $as_echo_n "(cached) " >&6
14533 else
14534   ac_cv_c_inline=no
14535 for ac_kw in inline __inline__ __inline; do
14536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14537 /* end confdefs.h.  */
14538 #ifndef __cplusplus
14539 typedef int foo_t;
14540 static $ac_kw foo_t static_foo () {return 0; }
14541 $ac_kw foo_t foo () {return 0; }
14542 #endif
14543
14544 _ACEOF
14545 if ac_fn_c_try_compile "$LINENO"; then :
14546   ac_cv_c_inline=$ac_kw
14547 fi
14548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14549   test "$ac_cv_c_inline" != no && break
14550 done
14551
14552 fi
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14554 $as_echo "$ac_cv_c_inline" >&6; }
14555
14556 case $ac_cv_c_inline in
14557   inline | yes) ;;
14558   *)
14559     case $ac_cv_c_inline in
14560       no) ac_val=;;
14561       *) ac_val=$ac_cv_c_inline;;
14562     esac
14563     cat >>confdefs.h <<_ACEOF
14564 #ifndef __cplusplus
14565 #define inline $ac_val
14566 #endif
14567 _ACEOF
14568     ;;
14569 esac
14570
14571
14572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
14573 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
14574 if test "${gl_cv_cc_float_expbit0+set}" = set; then :
14575   $as_echo_n "(cached) " >&6
14576 else
14577
14578       if test "$cross_compiling" = yes; then :
14579   gl_cv_cc_float_expbit0="word 0 bit 23"
14580 else
14581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582 /* end confdefs.h.  */
14583
14584 #include <float.h>
14585 #include <stddef.h>
14586 #include <stdio.h>
14587 #include <string.h>
14588 #define NWORDS \
14589   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14590 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
14591 static unsigned int ored_words[NWORDS];
14592 static unsigned int anded_words[NWORDS];
14593 static void add_to_ored_words (float x)
14594 {
14595   memory_float m;
14596   size_t i;
14597   /* Clear it first, in case
14598      sizeof (float) < sizeof (memory_float).  */
14599   memset (&m, 0, sizeof (memory_float));
14600   m.value = x;
14601   for (i = 0; i < NWORDS; i++)
14602     {
14603       ored_words[i] |= m.word[i];
14604       anded_words[i] &= m.word[i];
14605     }
14606 }
14607 int main ()
14608 {
14609   size_t j;
14610   FILE *fp = fopen ("conftest.out", "w");
14611   if (fp == NULL)
14612     return 1;
14613   for (j = 0; j < NWORDS; j++)
14614     anded_words[j] = ~ (unsigned int) 0;
14615   add_to_ored_words (0.25f);
14616   add_to_ored_words (0.5f);
14617   add_to_ored_words (1.0f);
14618   add_to_ored_words (2.0f);
14619   add_to_ored_words (4.0f);
14620   /* Remove bits that are common (e.g. if representation of the first mantissa
14621      bit is explicit).  */
14622   for (j = 0; j < NWORDS; j++)
14623     ored_words[j] &= ~anded_words[j];
14624   /* Now find the nonzero word.  */
14625   for (j = 0; j < NWORDS; j++)
14626     if (ored_words[j] != 0)
14627       break;
14628   if (j < NWORDS)
14629     {
14630       size_t i;
14631       for (i = j + 1; i < NWORDS; i++)
14632         if (ored_words[i] != 0)
14633           {
14634             fprintf (fp, "unknown");
14635             return (fclose (fp) != 0);
14636           }
14637       for (i = 0; ; i++)
14638         if ((ored_words[j] >> i) & 1)
14639           {
14640             fprintf (fp, "word %d bit %d", (int) j, (int) i);
14641             return (fclose (fp) != 0);
14642           }
14643     }
14644   fprintf (fp, "unknown");
14645   return (fclose (fp) != 0);
14646 }
14647
14648 _ACEOF
14649 if ac_fn_c_try_run "$LINENO"; then :
14650   gl_cv_cc_float_expbit0=`cat conftest.out`
14651 else
14652   gl_cv_cc_float_expbit0="unknown"
14653 fi
14654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14655   conftest.$ac_objext conftest.beam conftest.$ac_ext
14656 fi
14657
14658       rm -f conftest.out
14659
14660 fi
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
14662 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
14663   case "$gl_cv_cc_float_expbit0" in
14664     word*bit*)
14665       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
14666       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
14667
14668 cat >>confdefs.h <<_ACEOF
14669 #define FLT_EXPBIT0_WORD $word
14670 _ACEOF
14671
14672
14673 cat >>confdefs.h <<_ACEOF
14674 #define FLT_EXPBIT0_BIT $bit
14675 _ACEOF
14676
14677       ;;
14678   esac
14679
14680
14681    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14682 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14683 if test "${ac_cv_c_bigendian+set}" = set; then :
14684   $as_echo_n "(cached) " >&6
14685 else
14686   ac_cv_c_bigendian=unknown
14687     # See if we're dealing with a universal compiler.
14688     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689 /* end confdefs.h.  */
14690 #ifndef __APPLE_CC__
14691                not a universal capable compiler
14692              #endif
14693              typedef int dummy;
14694
14695 _ACEOF
14696 if ac_fn_c_try_compile "$LINENO"; then :
14697
14698         # Check for potential -arch flags.  It is not universal unless
14699         # there are at least two -arch flags with different values.
14700         ac_arch=
14701         ac_prev=
14702         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14703          if test -n "$ac_prev"; then
14704            case $ac_word in
14705              i?86 | x86_64 | ppc | ppc64)
14706                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14707                  ac_arch=$ac_word
14708                else
14709                  ac_cv_c_bigendian=universal
14710                  break
14711                fi
14712                ;;
14713            esac
14714            ac_prev=
14715          elif test "x$ac_word" = "x-arch"; then
14716            ac_prev=arch
14717          fi
14718        done
14719 fi
14720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14721     if test $ac_cv_c_bigendian = unknown; then
14722       # See if sys/param.h defines the BYTE_ORDER macro.
14723       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14724 /* end confdefs.h.  */
14725 #include <sys/types.h>
14726              #include <sys/param.h>
14727
14728 int
14729 main ()
14730 {
14731 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14732                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14733                      && LITTLE_ENDIAN)
14734               bogus endian macros
14735              #endif
14736
14737   ;
14738   return 0;
14739 }
14740 _ACEOF
14741 if ac_fn_c_try_compile "$LINENO"; then :
14742   # It does; now see whether it defined to BIG_ENDIAN or not.
14743          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14744 /* end confdefs.h.  */
14745 #include <sys/types.h>
14746                 #include <sys/param.h>
14747
14748 int
14749 main ()
14750 {
14751 #if BYTE_ORDER != BIG_ENDIAN
14752                  not big endian
14753                 #endif
14754
14755   ;
14756   return 0;
14757 }
14758 _ACEOF
14759 if ac_fn_c_try_compile "$LINENO"; then :
14760   ac_cv_c_bigendian=yes
14761 else
14762   ac_cv_c_bigendian=no
14763 fi
14764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14765 fi
14766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14767     fi
14768     if test $ac_cv_c_bigendian = unknown; then
14769       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14770       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14771 /* end confdefs.h.  */
14772 #include <limits.h>
14773
14774 int
14775 main ()
14776 {
14777 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14778               bogus endian macros
14779              #endif
14780
14781   ;
14782   return 0;
14783 }
14784 _ACEOF
14785 if ac_fn_c_try_compile "$LINENO"; then :
14786   # It does; now see whether it defined to _BIG_ENDIAN or not.
14787          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h.  */
14789 #include <limits.h>
14790
14791 int
14792 main ()
14793 {
14794 #ifndef _BIG_ENDIAN
14795                  not big endian
14796                 #endif
14797
14798   ;
14799   return 0;
14800 }
14801 _ACEOF
14802 if ac_fn_c_try_compile "$LINENO"; then :
14803   ac_cv_c_bigendian=yes
14804 else
14805   ac_cv_c_bigendian=no
14806 fi
14807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14808 fi
14809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14810     fi
14811     if test $ac_cv_c_bigendian = unknown; then
14812       # Compile a test program.
14813       if test "$cross_compiling" = yes; then :
14814   # Try to guess by grepping values from an object file.
14815          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h.  */
14817 short int ascii_mm[] =
14818                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14819                 short int ascii_ii[] =
14820                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14821                 int use_ascii (int i) {
14822                   return ascii_mm[i] + ascii_ii[i];
14823                 }
14824                 short int ebcdic_ii[] =
14825                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14826                 short int ebcdic_mm[] =
14827                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14828                 int use_ebcdic (int i) {
14829                   return ebcdic_mm[i] + ebcdic_ii[i];
14830                 }
14831                 extern int foo;
14832
14833 int
14834 main ()
14835 {
14836 return use_ascii (foo) == use_ebcdic (foo);
14837   ;
14838   return 0;
14839 }
14840 _ACEOF
14841 if ac_fn_c_try_compile "$LINENO"; then :
14842   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14843               ac_cv_c_bigendian=yes
14844             fi
14845             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14846               if test "$ac_cv_c_bigendian" = unknown; then
14847                 ac_cv_c_bigendian=no
14848               else
14849                 # finding both strings is unlikely to happen, but who knows?
14850                 ac_cv_c_bigendian=unknown
14851               fi
14852             fi
14853 fi
14854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14855 else
14856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14857 /* end confdefs.h.  */
14858 $ac_includes_default
14859 int
14860 main ()
14861 {
14862
14863              /* Are we little or big endian?  From Harbison&Steele.  */
14864              union
14865              {
14866                long int l;
14867                char c[sizeof (long int)];
14868              } u;
14869              u.l = 1;
14870              return u.c[sizeof (long int) - 1] == 1;
14871
14872   ;
14873   return 0;
14874 }
14875 _ACEOF
14876 if ac_fn_c_try_run "$LINENO"; then :
14877   ac_cv_c_bigendian=no
14878 else
14879   ac_cv_c_bigendian=yes
14880 fi
14881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14882   conftest.$ac_objext conftest.beam conftest.$ac_ext
14883 fi
14884
14885     fi
14886 fi
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14888 $as_echo "$ac_cv_c_bigendian" >&6; }
14889  case $ac_cv_c_bigendian in #(
14890    yes)
14891      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14892 ;; #(
14893    no)
14894       ;; #(
14895    universal)
14896
14897 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14898
14899      ;; #(
14900    *)
14901      as_fn_error "unknown endianness
14902  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14903  esac
14904
14905
14906
14907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14908 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14909 if test "${am_cv_langinfo_codeset+set}" = set; then :
14910   $as_echo_n "(cached) " >&6
14911 else
14912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14913 /* end confdefs.h.  */
14914 #include <langinfo.h>
14915 int
14916 main ()
14917 {
14918 char* cs = nl_langinfo(CODESET); return !cs;
14919   ;
14920   return 0;
14921 }
14922 _ACEOF
14923 if ac_fn_c_try_link "$LINENO"; then :
14924   am_cv_langinfo_codeset=yes
14925 else
14926   am_cv_langinfo_codeset=no
14927 fi
14928 rm -f core conftest.err conftest.$ac_objext \
14929     conftest$ac_exeext conftest.$ac_ext
14930
14931 fi
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
14933 $as_echo "$am_cv_langinfo_codeset" >&6; }
14934   if test $am_cv_langinfo_codeset = yes; then
14935
14936 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14937
14938   fi
14939
14940
14941
14942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
14943 $as_echo_n "checking for working fcntl.h... " >&6; }
14944 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
14945   $as_echo_n "(cached) " >&6
14946 else
14947   if test "$cross_compiling" = yes; then :
14948   gl_cv_header_working_fcntl_h=cross-compiling
14949 else
14950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14951 /* end confdefs.h.  */
14952 #include <sys/types.h>
14953            #include <sys/stat.h>
14954            #include <unistd.h>
14955            #include <fcntl.h>
14956            #ifndef O_NOATIME
14957             #define O_NOATIME 0
14958            #endif
14959            #ifndef O_NOFOLLOW
14960             #define O_NOFOLLOW 0
14961            #endif
14962            static int const constants[] =
14963             {
14964               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
14965               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
14966             };
14967
14968 int
14969 main ()
14970 {
14971
14972             int status = !constants;
14973             {
14974               static char const sym[] = "conftest.sym";
14975               if (symlink (".", sym) != 0
14976                   || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
14977                 status |= 32;
14978               unlink (sym);
14979             }
14980             {
14981               static char const file[] = "confdefs.h";
14982               int fd = open (file, O_RDONLY | O_NOATIME);
14983               char c;
14984               struct stat st0, st1;
14985               if (fd < 0
14986                   || fstat (fd, &st0) != 0
14987                   || sleep (1) != 0
14988                   || read (fd, &c, 1) != 1
14989                   || close (fd) != 0
14990                   || stat (file, &st1) != 0
14991                   || st0.st_atime != st1.st_atime)
14992                 status |= 64;
14993             }
14994             return status;
14995   ;
14996   return 0;
14997 }
14998 _ACEOF
14999 if ac_fn_c_try_run "$LINENO"; then :
15000   gl_cv_header_working_fcntl_h=yes
15001 else
15002   case $? in #(
15003         32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
15004         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
15005         96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
15006          *) gl_cv_header_working_fcntl_h='no';;
15007         esac
15008 fi
15009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15010   conftest.$ac_objext conftest.beam conftest.$ac_ext
15011 fi
15012
15013 fi
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
15015 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
15016
15017   case $gl_cv_header_working_fcntl_h in #(
15018   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
15019   *) ac_val=1;;
15020   esac
15021
15022 cat >>confdefs.h <<_ACEOF
15023 #define HAVE_WORKING_O_NOATIME $ac_val
15024 _ACEOF
15025
15026
15027   case $gl_cv_header_working_fcntl_h in #(
15028   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
15029   *) ac_val=1;;
15030   esac
15031
15032 cat >>confdefs.h <<_ACEOF
15033 #define HAVE_WORKING_O_NOFOLLOW $ac_val
15034 _ACEOF
15035
15036
15037 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
15038 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
15039   ac_have_decl=1
15040 else
15041   ac_have_decl=0
15042 fi
15043
15044 cat >>confdefs.h <<_ACEOF
15045 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
15046 _ACEOF
15047
15048
15049     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
15050 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
15051 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
15052   $as_echo_n "(cached) " >&6
15053 else
15054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055 /* end confdefs.h.  */
15056
15057 #include <features.h>
15058 #ifdef __GNU_LIBRARY__
15059  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15060   Lucky GNU user
15061  #endif
15062 #endif
15063
15064 _ACEOF
15065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15066   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
15067   ac_cv_gnu_library_2_1=yes
15068 else
15069   ac_cv_gnu_library_2_1=no
15070 fi
15071 rm -f conftest*
15072
15073
15074
15075 fi
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
15077 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
15078
15079     GLIBC21="$ac_cv_gnu_library_2_1"
15080
15081
15082
15083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15084 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15085 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
15086   $as_echo_n "(cached) " >&6
15087 else
15088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089 /* end confdefs.h.  */
15090 #include <locale.h>
15091 int
15092 main ()
15093 {
15094 return LC_MESSAGES
15095   ;
15096   return 0;
15097 }
15098 _ACEOF
15099 if ac_fn_c_try_link "$LINENO"; then :
15100   gt_cv_val_LC_MESSAGES=yes
15101 else
15102   gt_cv_val_LC_MESSAGES=no
15103 fi
15104 rm -f core conftest.err conftest.$ac_objext \
15105     conftest$ac_exeext conftest.$ac_ext
15106 fi
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
15108 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
15109   if test $gt_cv_val_LC_MESSAGES = yes; then
15110
15111 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15112
15113   fi
15114
15115
15116     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15117 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15118 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
15119   $as_echo_n "(cached) " >&6
15120 else
15121   gt_save_LIBS="$LIBS"
15122      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15123      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15124 /* end confdefs.h.  */
15125 #include <CoreFoundation/CFPreferences.h>
15126 int
15127 main ()
15128 {
15129 CFPreferencesCopyAppValue(NULL, NULL)
15130   ;
15131   return 0;
15132 }
15133 _ACEOF
15134 if ac_fn_c_try_link "$LINENO"; then :
15135   gt_cv_func_CFPreferencesCopyAppValue=yes
15136 else
15137   gt_cv_func_CFPreferencesCopyAppValue=no
15138 fi
15139 rm -f core conftest.err conftest.$ac_objext \
15140     conftest$ac_exeext conftest.$ac_ext
15141      LIBS="$gt_save_LIBS"
15142 fi
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15144 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15145   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15146
15147 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15148
15149   fi
15150     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15151 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15152 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
15153   $as_echo_n "(cached) " >&6
15154 else
15155   gt_save_LIBS="$LIBS"
15156      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15157      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h.  */
15159 #include <CoreFoundation/CFLocale.h>
15160 int
15161 main ()
15162 {
15163 CFLocaleCopyCurrent();
15164   ;
15165   return 0;
15166 }
15167 _ACEOF
15168 if ac_fn_c_try_link "$LINENO"; then :
15169   gt_cv_func_CFLocaleCopyCurrent=yes
15170 else
15171   gt_cv_func_CFLocaleCopyCurrent=no
15172 fi
15173 rm -f core conftest.err conftest.$ac_objext \
15174     conftest$ac_exeext conftest.$ac_ext
15175      LIBS="$gt_save_LIBS"
15176 fi
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15178 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15179   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15180
15181 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15182
15183   fi
15184   INTL_MACOSX_LIBS=
15185   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15186     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15187   fi
15188
15189
15190
15191
15192   gl_threads_api=none
15193   LIBTHREAD=
15194   LTLIBTHREAD=
15195   LIBMULTITHREAD=
15196   LTLIBMULTITHREAD=
15197   if test "$gl_use_threads" != no; then
15198         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
15199 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
15200 if test "${gl_cv_have_weak+set}" = set; then :
15201   $as_echo_n "(cached) " >&6
15202 else
15203   gl_cv_have_weak=no
15204               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15205 /* end confdefs.h.  */
15206 extern void xyzzy ();
15207 #pragma weak xyzzy
15208 int
15209 main ()
15210 {
15211 xyzzy();
15212   ;
15213   return 0;
15214 }
15215 _ACEOF
15216 if ac_fn_c_try_link "$LINENO"; then :
15217   gl_cv_have_weak=maybe
15218 fi
15219 rm -f core conftest.err conftest.$ac_objext \
15220     conftest$ac_exeext conftest.$ac_ext
15221        if test $gl_cv_have_weak = maybe; then
15222                            if test "$cross_compiling" = yes; then :
15223                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15224 /* end confdefs.h.  */
15225 #ifdef __ELF__
15226                Extensible Linking Format
15227                #endif
15228
15229 _ACEOF
15230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15231   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
15232   gl_cv_have_weak="guessing yes"
15233 else
15234   gl_cv_have_weak="guessing no"
15235 fi
15236 rm -f conftest*
15237
15238
15239 else
15240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241 /* end confdefs.h.  */
15242
15243 #include <stdio.h>
15244 #pragma weak fputs
15245 int main ()
15246 {
15247   return (fputs == NULL);
15248 }
15249 _ACEOF
15250 if ac_fn_c_try_run "$LINENO"; then :
15251   gl_cv_have_weak=yes
15252 else
15253   gl_cv_have_weak=no
15254 fi
15255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15256   conftest.$ac_objext conftest.beam conftest.$ac_ext
15257 fi
15258
15259        fi
15260
15261 fi
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
15263 $as_echo "$gl_cv_have_weak" >&6; }
15264     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
15265       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
15266       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
15267       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15268 if test "x$ac_cv_header_pthread_h" = x""yes; then :
15269   gl_have_pthread_h=yes
15270 else
15271   gl_have_pthread_h=no
15272 fi
15273
15274
15275       if test "$gl_have_pthread_h" = yes; then
15276         # Other possible tests:
15277         #   -lpthreads (FSU threads, PCthreads)
15278         #   -lgthreads
15279         gl_have_pthread=
15280         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
15281         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
15282         # the second one only in libpthread, and lock.c needs it.
15283         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15284 /* end confdefs.h.  */
15285 #include <pthread.h>
15286 int
15287 main ()
15288 {
15289 pthread_mutex_lock((pthread_mutex_t*)0);
15290            pthread_mutexattr_init((pthread_mutexattr_t*)0);
15291   ;
15292   return 0;
15293 }
15294 _ACEOF
15295 if ac_fn_c_try_link "$LINENO"; then :
15296   gl_have_pthread=yes
15297 fi
15298 rm -f core conftest.err conftest.$ac_objext \
15299     conftest$ac_exeext conftest.$ac_ext
15300         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
15301         # since it is defined as a macro on OSF/1.)
15302         if test -n "$gl_have_pthread"; then
15303           # The program links fine without libpthread. But it may actually
15304           # need to link with libpthread in order to create multiple threads.
15305           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
15306 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
15307 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
15308   $as_echo_n "(cached) " >&6
15309 else
15310   ac_check_lib_save_LIBS=$LIBS
15311 LIBS="-lpthread  $LIBS"
15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313 /* end confdefs.h.  */
15314
15315 /* Override any GCC internal prototype to avoid an error.
15316    Use char because int might match the return type of a GCC
15317    builtin and then its argument prototype would still apply.  */
15318 #ifdef __cplusplus
15319 extern "C"
15320 #endif
15321 char pthread_kill ();
15322 int
15323 main ()
15324 {
15325 return pthread_kill ();
15326   ;
15327   return 0;
15328 }
15329 _ACEOF
15330 if ac_fn_c_try_link "$LINENO"; then :
15331   ac_cv_lib_pthread_pthread_kill=yes
15332 else
15333   ac_cv_lib_pthread_pthread_kill=no
15334 fi
15335 rm -f core conftest.err conftest.$ac_objext \
15336     conftest$ac_exeext conftest.$ac_ext
15337 LIBS=$ac_check_lib_save_LIBS
15338 fi
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
15340 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
15341 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
15342   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
15343              # On Solaris and HP-UX, most pthread functions exist also in libc.
15344              # Therefore pthread_in_use() needs to actually try to create a
15345              # thread: pthread_create from libc will fail, whereas
15346              # pthread_create will actually create a thread.
15347              case "$host_os" in
15348                solaris* | hpux*)
15349
15350 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
15351
15352              esac
15353
15354 fi
15355
15356         else
15357           # Some library is needed. Try libpthread and libc_r.
15358           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
15359 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
15360 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
15361   $as_echo_n "(cached) " >&6
15362 else
15363   ac_check_lib_save_LIBS=$LIBS
15364 LIBS="-lpthread  $LIBS"
15365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15366 /* end confdefs.h.  */
15367
15368 /* Override any GCC internal prototype to avoid an error.
15369    Use char because int might match the return type of a GCC
15370    builtin and then its argument prototype would still apply.  */
15371 #ifdef __cplusplus
15372 extern "C"
15373 #endif
15374 char pthread_kill ();
15375 int
15376 main ()
15377 {
15378 return pthread_kill ();
15379   ;
15380   return 0;
15381 }
15382 _ACEOF
15383 if ac_fn_c_try_link "$LINENO"; then :
15384   ac_cv_lib_pthread_pthread_kill=yes
15385 else
15386   ac_cv_lib_pthread_pthread_kill=no
15387 fi
15388 rm -f core conftest.err conftest.$ac_objext \
15389     conftest$ac_exeext conftest.$ac_ext
15390 LIBS=$ac_check_lib_save_LIBS
15391 fi
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
15393 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
15394 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
15395   gl_have_pthread=yes
15396              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
15397              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
15398 fi
15399
15400           if test -z "$gl_have_pthread"; then
15401             # For FreeBSD 4.
15402             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
15403 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
15404 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
15405   $as_echo_n "(cached) " >&6
15406 else
15407   ac_check_lib_save_LIBS=$LIBS
15408 LIBS="-lc_r  $LIBS"
15409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h.  */
15411
15412 /* Override any GCC internal prototype to avoid an error.
15413    Use char because int might match the return type of a GCC
15414    builtin and then its argument prototype would still apply.  */
15415 #ifdef __cplusplus
15416 extern "C"
15417 #endif
15418 char pthread_kill ();
15419 int
15420 main ()
15421 {
15422 return pthread_kill ();
15423   ;
15424   return 0;
15425 }
15426 _ACEOF
15427 if ac_fn_c_try_link "$LINENO"; then :
15428   ac_cv_lib_c_r_pthread_kill=yes
15429 else
15430   ac_cv_lib_c_r_pthread_kill=no
15431 fi
15432 rm -f core conftest.err conftest.$ac_objext \
15433     conftest$ac_exeext conftest.$ac_ext
15434 LIBS=$ac_check_lib_save_LIBS
15435 fi
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
15437 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
15438 if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
15439   gl_have_pthread=yes
15440                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
15441                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
15442 fi
15443
15444           fi
15445         fi
15446         if test -n "$gl_have_pthread"; then
15447           gl_threads_api=posix
15448
15449 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
15450
15451           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
15452             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
15453
15454 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
15455
15456               LIBTHREAD=
15457               LTLIBTHREAD=
15458             fi
15459           fi
15460         fi
15461       fi
15462     fi
15463     if test -z "$gl_have_pthread"; then
15464       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
15465         gl_have_solaristhread=
15466         gl_save_LIBS="$LIBS"
15467         LIBS="$LIBS -lthread"
15468         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15469 /* end confdefs.h.  */
15470 #include <thread.h>
15471 #include <synch.h>
15472 int
15473 main ()
15474 {
15475 thr_self();
15476   ;
15477   return 0;
15478 }
15479 _ACEOF
15480 if ac_fn_c_try_link "$LINENO"; then :
15481   gl_have_solaristhread=yes
15482 fi
15483 rm -f core conftest.err conftest.$ac_objext \
15484     conftest$ac_exeext conftest.$ac_ext
15485         LIBS="$gl_save_LIBS"
15486         if test -n "$gl_have_solaristhread"; then
15487           gl_threads_api=solaris
15488           LIBTHREAD=-lthread
15489           LTLIBTHREAD=-lthread
15490           LIBMULTITHREAD="$LIBTHREAD"
15491           LTLIBMULTITHREAD="$LTLIBTHREAD"
15492
15493 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
15494
15495           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
15496
15497 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
15498
15499             LIBTHREAD=
15500             LTLIBTHREAD=
15501           fi
15502         fi
15503       fi
15504     fi
15505     if test "$gl_use_threads" = pth; then
15506       gl_save_CPPFLAGS="$CPPFLAGS"
15507
15508
15509
15510
15511
15512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
15513 $as_echo_n "checking how to link with libpth... " >&6; }
15514 if test "${ac_cv_libpth_libs+set}" = set; then :
15515   $as_echo_n "(cached) " >&6
15516 else
15517
15518
15519
15520
15521
15522
15523
15524
15525     use_additional=yes
15526
15527   acl_save_prefix="$prefix"
15528   prefix="$acl_final_prefix"
15529   acl_save_exec_prefix="$exec_prefix"
15530   exec_prefix="$acl_final_exec_prefix"
15531
15532     eval additional_includedir=\"$includedir\"
15533     eval additional_libdir=\"$libdir\"
15534
15535   exec_prefix="$acl_save_exec_prefix"
15536   prefix="$acl_save_prefix"
15537
15538
15539 # Check whether --with-libpth-prefix was given.
15540 if test "${with_libpth_prefix+set}" = set; then :
15541   withval=$with_libpth_prefix;
15542     if test "X$withval" = "Xno"; then
15543       use_additional=no
15544     else
15545       if test "X$withval" = "X"; then
15546
15547   acl_save_prefix="$prefix"
15548   prefix="$acl_final_prefix"
15549   acl_save_exec_prefix="$exec_prefix"
15550   exec_prefix="$acl_final_exec_prefix"
15551
15552           eval additional_includedir=\"$includedir\"
15553           eval additional_libdir=\"$libdir\"
15554
15555   exec_prefix="$acl_save_exec_prefix"
15556   prefix="$acl_save_prefix"
15557
15558       else
15559         additional_includedir="$withval/include"
15560         additional_libdir="$withval/$acl_libdirstem"
15561         if test "$acl_libdirstem2" != "$acl_libdirstem" \
15562            && ! test -d "$withval/$acl_libdirstem"; then
15563           additional_libdir="$withval/$acl_libdirstem2"
15564         fi
15565       fi
15566     fi
15567
15568 fi
15569
15570       LIBPTH=
15571   LTLIBPTH=
15572   INCPTH=
15573   LIBPTH_PREFIX=
15574       HAVE_LIBPTH=
15575   rpathdirs=
15576   ltrpathdirs=
15577   names_already_handled=
15578   names_next_round='pth '
15579   while test -n "$names_next_round"; do
15580     names_this_round="$names_next_round"
15581     names_next_round=
15582     for name in $names_this_round; do
15583       already_handled=
15584       for n in $names_already_handled; do
15585         if test "$n" = "$name"; then
15586           already_handled=yes
15587           break
15588         fi
15589       done
15590       if test -z "$already_handled"; then
15591         names_already_handled="$names_already_handled $name"
15592                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15593         eval value=\"\$HAVE_LIB$uppername\"
15594         if test -n "$value"; then
15595           if test "$value" = yes; then
15596             eval value=\"\$LIB$uppername\"
15597             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
15598             eval value=\"\$LTLIB$uppername\"
15599             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
15600           else
15601                                     :
15602           fi
15603         else
15604                               found_dir=
15605           found_la=
15606           found_so=
15607           found_a=
15608           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15609           if test -n "$acl_shlibext"; then
15610             shrext=".$acl_shlibext"             # typically: shrext=.so
15611           else
15612             shrext=
15613           fi
15614           if test $use_additional = yes; then
15615             dir="$additional_libdir"
15616                                     if test -n "$acl_shlibext"; then
15617               if test -f "$dir/$libname$shrext"; then
15618                 found_dir="$dir"
15619                 found_so="$dir/$libname$shrext"
15620               else
15621                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15622                   ver=`(cd "$dir" && \
15623                         for f in "$libname$shrext".*; do echo "$f"; done \
15624                         | sed -e "s,^$libname$shrext\\\\.,," \
15625                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15626                         | sed 1q ) 2>/dev/null`
15627                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15628                     found_dir="$dir"
15629                     found_so="$dir/$libname$shrext.$ver"
15630                   fi
15631                 else
15632                   eval library_names=\"$acl_library_names_spec\"
15633                   for f in $library_names; do
15634                     if test -f "$dir/$f"; then
15635                       found_dir="$dir"
15636                       found_so="$dir/$f"
15637                       break
15638                     fi
15639                   done
15640                 fi
15641               fi
15642             fi
15643                         if test "X$found_dir" = "X"; then
15644               if test -f "$dir/$libname.$acl_libext"; then
15645                 found_dir="$dir"
15646                 found_a="$dir/$libname.$acl_libext"
15647               fi
15648             fi
15649             if test "X$found_dir" != "X"; then
15650               if test -f "$dir/$libname.la"; then
15651                 found_la="$dir/$libname.la"
15652               fi
15653             fi
15654           fi
15655           if test "X$found_dir" = "X"; then
15656             for x in $LDFLAGS $LTLIBPTH; do
15657
15658   acl_save_prefix="$prefix"
15659   prefix="$acl_final_prefix"
15660   acl_save_exec_prefix="$exec_prefix"
15661   exec_prefix="$acl_final_exec_prefix"
15662   eval x=\"$x\"
15663   exec_prefix="$acl_save_exec_prefix"
15664   prefix="$acl_save_prefix"
15665
15666               case "$x" in
15667                 -L*)
15668                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15669                                     if test -n "$acl_shlibext"; then
15670                     if test -f "$dir/$libname$shrext"; then
15671                       found_dir="$dir"
15672                       found_so="$dir/$libname$shrext"
15673                     else
15674                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15675                         ver=`(cd "$dir" && \
15676                               for f in "$libname$shrext".*; do echo "$f"; done \
15677                               | sed -e "s,^$libname$shrext\\\\.,," \
15678                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15679                               | sed 1q ) 2>/dev/null`
15680                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15681                           found_dir="$dir"
15682                           found_so="$dir/$libname$shrext.$ver"
15683                         fi
15684                       else
15685                         eval library_names=\"$acl_library_names_spec\"
15686                         for f in $library_names; do
15687                           if test -f "$dir/$f"; then
15688                             found_dir="$dir"
15689                             found_so="$dir/$f"
15690                             break
15691                           fi
15692                         done
15693                       fi
15694                     fi
15695                   fi
15696                                     if test "X$found_dir" = "X"; then
15697                     if test -f "$dir/$libname.$acl_libext"; then
15698                       found_dir="$dir"
15699                       found_a="$dir/$libname.$acl_libext"
15700                     fi
15701                   fi
15702                   if test "X$found_dir" != "X"; then
15703                     if test -f "$dir/$libname.la"; then
15704                       found_la="$dir/$libname.la"
15705                     fi
15706                   fi
15707                   ;;
15708               esac
15709               if test "X$found_dir" != "X"; then
15710                 break
15711               fi
15712             done
15713           fi
15714           if test "X$found_dir" != "X"; then
15715                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
15716             if test "X$found_so" != "X"; then
15717                                                         if test "$enable_rpath" = no \
15718                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15719                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15720                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
15721               else
15722                                                                                 haveit=
15723                 for x in $ltrpathdirs; do
15724                   if test "X$x" = "X$found_dir"; then
15725                     haveit=yes
15726                     break
15727                   fi
15728                 done
15729                 if test -z "$haveit"; then
15730                   ltrpathdirs="$ltrpathdirs $found_dir"
15731                 fi
15732                                 if test "$acl_hardcode_direct" = yes; then
15733                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
15734                 else
15735                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15736                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
15737                                                             haveit=
15738                     for x in $rpathdirs; do
15739                       if test "X$x" = "X$found_dir"; then
15740                         haveit=yes
15741                         break
15742                       fi
15743                     done
15744                     if test -z "$haveit"; then
15745                       rpathdirs="$rpathdirs $found_dir"
15746                     fi
15747                   else
15748                                                                                 haveit=
15749                     for x in $LDFLAGS $LIBPTH; do
15750
15751   acl_save_prefix="$prefix"
15752   prefix="$acl_final_prefix"
15753   acl_save_exec_prefix="$exec_prefix"
15754   exec_prefix="$acl_final_exec_prefix"
15755   eval x=\"$x\"
15756   exec_prefix="$acl_save_exec_prefix"
15757   prefix="$acl_save_prefix"
15758
15759                       if test "X$x" = "X-L$found_dir"; then
15760                         haveit=yes
15761                         break
15762                       fi
15763                     done
15764                     if test -z "$haveit"; then
15765                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
15766                     fi
15767                     if test "$acl_hardcode_minus_L" != no; then
15768                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
15769                     else
15770                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
15771                     fi
15772                   fi
15773                 fi
15774               fi
15775             else
15776               if test "X$found_a" != "X"; then
15777                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
15778               else
15779                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
15780               fi
15781             fi
15782                         additional_includedir=
15783             case "$found_dir" in
15784               */$acl_libdirstem | */$acl_libdirstem/)
15785                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15786                 if test "$name" = 'pth'; then
15787                   LIBPTH_PREFIX="$basedir"
15788                 fi
15789                 additional_includedir="$basedir/include"
15790                 ;;
15791               */$acl_libdirstem2 | */$acl_libdirstem2/)
15792                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15793                 if test "$name" = 'pth'; then
15794                   LIBPTH_PREFIX="$basedir"
15795                 fi
15796                 additional_includedir="$basedir/include"
15797                 ;;
15798             esac
15799             if test "X$additional_includedir" != "X"; then
15800                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15801                 haveit=
15802                 if test "X$additional_includedir" = "X/usr/local/include"; then
15803                   if test -n "$GCC"; then
15804                     case $host_os in
15805                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15806                     esac
15807                   fi
15808                 fi
15809                 if test -z "$haveit"; then
15810                   for x in $CPPFLAGS $INCPTH; do
15811
15812   acl_save_prefix="$prefix"
15813   prefix="$acl_final_prefix"
15814   acl_save_exec_prefix="$exec_prefix"
15815   exec_prefix="$acl_final_exec_prefix"
15816   eval x=\"$x\"
15817   exec_prefix="$acl_save_exec_prefix"
15818   prefix="$acl_save_prefix"
15819
15820                     if test "X$x" = "X-I$additional_includedir"; then
15821                       haveit=yes
15822                       break
15823                     fi
15824                   done
15825                   if test -z "$haveit"; then
15826                     if test -d "$additional_includedir"; then
15827                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
15828                     fi
15829                   fi
15830                 fi
15831               fi
15832             fi
15833                         if test -n "$found_la"; then
15834                                                         save_libdir="$libdir"
15835               case "$found_la" in
15836                 */* | *\\*) . "$found_la" ;;
15837                 *) . "./$found_la" ;;
15838               esac
15839               libdir="$save_libdir"
15840                             for dep in $dependency_libs; do
15841                 case "$dep" in
15842                   -L*)
15843                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15844                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15845                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15846                       haveit=
15847                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15848                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15849                         if test -n "$GCC"; then
15850                           case $host_os in
15851                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15852                           esac
15853                         fi
15854                       fi
15855                       if test -z "$haveit"; then
15856                         haveit=
15857                         for x in $LDFLAGS $LIBPTH; do
15858
15859   acl_save_prefix="$prefix"
15860   prefix="$acl_final_prefix"
15861   acl_save_exec_prefix="$exec_prefix"
15862   exec_prefix="$acl_final_exec_prefix"
15863   eval x=\"$x\"
15864   exec_prefix="$acl_save_exec_prefix"
15865   prefix="$acl_save_prefix"
15866
15867                           if test "X$x" = "X-L$additional_libdir"; then
15868                             haveit=yes
15869                             break
15870                           fi
15871                         done
15872                         if test -z "$haveit"; then
15873                           if test -d "$additional_libdir"; then
15874                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
15875                           fi
15876                         fi
15877                         haveit=
15878                         for x in $LDFLAGS $LTLIBPTH; do
15879
15880   acl_save_prefix="$prefix"
15881   prefix="$acl_final_prefix"
15882   acl_save_exec_prefix="$exec_prefix"
15883   exec_prefix="$acl_final_exec_prefix"
15884   eval x=\"$x\"
15885   exec_prefix="$acl_save_exec_prefix"
15886   prefix="$acl_save_prefix"
15887
15888                           if test "X$x" = "X-L$additional_libdir"; then
15889                             haveit=yes
15890                             break
15891                           fi
15892                         done
15893                         if test -z "$haveit"; then
15894                           if test -d "$additional_libdir"; then
15895                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
15896                           fi
15897                         fi
15898                       fi
15899                     fi
15900                     ;;
15901                   -R*)
15902                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15903                     if test "$enable_rpath" != no; then
15904                                                                   haveit=
15905                       for x in $rpathdirs; do
15906                         if test "X$x" = "X$dir"; then
15907                           haveit=yes
15908                           break
15909                         fi
15910                       done
15911                       if test -z "$haveit"; then
15912                         rpathdirs="$rpathdirs $dir"
15913                       fi
15914                                                                   haveit=
15915                       for x in $ltrpathdirs; do
15916                         if test "X$x" = "X$dir"; then
15917                           haveit=yes
15918                           break
15919                         fi
15920                       done
15921                       if test -z "$haveit"; then
15922                         ltrpathdirs="$ltrpathdirs $dir"
15923                       fi
15924                     fi
15925                     ;;
15926                   -l*)
15927                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15928                     ;;
15929                   *.la)
15930                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15931                     ;;
15932                   *)
15933                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
15934                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
15935                     ;;
15936                 esac
15937               done
15938             fi
15939           else
15940                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
15941             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
15942           fi
15943         fi
15944       fi
15945     done
15946   done
15947   if test "X$rpathdirs" != "X"; then
15948     if test -n "$acl_hardcode_libdir_separator"; then
15949                         alldirs=
15950       for found_dir in $rpathdirs; do
15951         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15952       done
15953             acl_save_libdir="$libdir"
15954       libdir="$alldirs"
15955       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15956       libdir="$acl_save_libdir"
15957       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
15958     else
15959             for found_dir in $rpathdirs; do
15960         acl_save_libdir="$libdir"
15961         libdir="$found_dir"
15962         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15963         libdir="$acl_save_libdir"
15964         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
15965       done
15966     fi
15967   fi
15968   if test "X$ltrpathdirs" != "X"; then
15969             for found_dir in $ltrpathdirs; do
15970       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
15971     done
15972   fi
15973
15974
15975
15976
15977
15978
15979     ac_cv_libpth_libs="$LIBPTH"
15980     ac_cv_libpth_ltlibs="$LTLIBPTH"
15981     ac_cv_libpth_cppflags="$INCPTH"
15982     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
15983
15984 fi
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
15986 $as_echo "$ac_cv_libpth_libs" >&6; }
15987   LIBPTH="$ac_cv_libpth_libs"
15988   LTLIBPTH="$ac_cv_libpth_ltlibs"
15989   INCPTH="$ac_cv_libpth_cppflags"
15990   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
15991
15992   for element in $INCPTH; do
15993     haveit=
15994     for x in $CPPFLAGS; do
15995
15996   acl_save_prefix="$prefix"
15997   prefix="$acl_final_prefix"
15998   acl_save_exec_prefix="$exec_prefix"
15999   exec_prefix="$acl_final_exec_prefix"
16000   eval x=\"$x\"
16001   exec_prefix="$acl_save_exec_prefix"
16002   prefix="$acl_save_prefix"
16003
16004       if test "X$x" = "X$element"; then
16005         haveit=yes
16006         break
16007       fi
16008     done
16009     if test -z "$haveit"; then
16010       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16011     fi
16012   done
16013
16014
16015
16016
16017       HAVE_LIBPTH=yes
16018
16019
16020
16021       gl_have_pth=
16022       gl_save_LIBS="$LIBS"
16023       LIBS="$LIBS -lpth"
16024       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16025 /* end confdefs.h.  */
16026 #include <pth.h>
16027 int
16028 main ()
16029 {
16030 pth_self();
16031   ;
16032   return 0;
16033 }
16034 _ACEOF
16035 if ac_fn_c_try_link "$LINENO"; then :
16036   gl_have_pth=yes
16037 fi
16038 rm -f core conftest.err conftest.$ac_objext \
16039     conftest$ac_exeext conftest.$ac_ext
16040       LIBS="$gl_save_LIBS"
16041       if test -n "$gl_have_pth"; then
16042         gl_threads_api=pth
16043         LIBTHREAD="$LIBPTH"
16044         LTLIBTHREAD="$LTLIBPTH"
16045         LIBMULTITHREAD="$LIBTHREAD"
16046         LTLIBMULTITHREAD="$LTLIBTHREAD"
16047
16048 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
16049
16050         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
16051           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16052
16053 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
16054
16055             LIBTHREAD=
16056             LTLIBTHREAD=
16057           fi
16058         fi
16059       else
16060         CPPFLAGS="$gl_save_CPPFLAGS"
16061       fi
16062     fi
16063     if test -z "$gl_have_pthread"; then
16064       if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
16065         if { case "$host_os" in
16066                mingw*) true;;
16067                *) false;;
16068              esac
16069            }; then
16070           gl_threads_api=win32
16071
16072 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
16073
16074         fi
16075       fi
16076     fi
16077   fi
16078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
16079 $as_echo_n "checking for multithread API to use... " >&6; }
16080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
16081 $as_echo "$gl_threads_api" >&6; }
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
16093 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
16094 if test "${gl_cv_func_malloc_posix+set}" = set; then :
16095   $as_echo_n "(cached) " >&6
16096 else
16097
16098                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16099 /* end confdefs.h.  */
16100
16101 int
16102 main ()
16103 {
16104 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16105          choke me
16106          #endif
16107
16108   ;
16109   return 0;
16110 }
16111 _ACEOF
16112 if ac_fn_c_try_compile "$LINENO"; then :
16113   gl_cv_func_malloc_posix=yes
16114 else
16115   gl_cv_func_malloc_posix=no
16116 fi
16117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16118
16119 fi
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
16121 $as_echo "$gl_cv_func_malloc_posix" >&6; }
16122
16123
16124   GNULIB_ATOLL=0;
16125   GNULIB_CALLOC_POSIX=0;
16126   GNULIB_CANONICALIZE_FILE_NAME=0;
16127   GNULIB_GETLOADAVG=0;
16128   GNULIB_GETSUBOPT=0;
16129   GNULIB_GRANTPT=0;
16130   GNULIB_MALLOC_POSIX=0;
16131   GNULIB_MKDTEMP=0;
16132   GNULIB_MKOSTEMP=0;
16133   GNULIB_MKOSTEMPS=0;
16134   GNULIB_MKSTEMP=0;
16135   GNULIB_MKSTEMPS=0;
16136   GNULIB_PTSNAME=0;
16137   GNULIB_PUTENV=0;
16138   GNULIB_RANDOM_R=0;
16139   GNULIB_REALLOC_POSIX=0;
16140   GNULIB_REALPATH=0;
16141   GNULIB_RPMATCH=0;
16142   GNULIB_SETENV=0;
16143   GNULIB_STRTOD=0;
16144   GNULIB_STRTOLL=0;
16145   GNULIB_STRTOULL=0;
16146   GNULIB_UNLOCKPT=0;
16147   GNULIB_UNSETENV=0;
16148     HAVE_ATOLL=1;
16149   HAVE_CALLOC_POSIX=1;
16150   HAVE_CANONICALIZE_FILE_NAME=1;
16151   HAVE_DECL_GETLOADAVG=1;
16152   HAVE_GETSUBOPT=1;
16153   HAVE_GRANTPT=1;
16154   HAVE_MALLOC_POSIX=1;
16155   HAVE_MKDTEMP=1;
16156   HAVE_MKOSTEMP=1;
16157   HAVE_MKOSTEMPS=1;
16158   HAVE_MKSTEMP=1;
16159   HAVE_MKSTEMPS=1;
16160   HAVE_PTSNAME=1;
16161   HAVE_RANDOM_R=1;
16162   HAVE_REALLOC_POSIX=1;
16163   HAVE_REALPATH=1;
16164   HAVE_RPMATCH=1;
16165   HAVE_SETENV=1;
16166   HAVE_STRTOD=1;
16167   HAVE_STRTOLL=1;
16168   HAVE_STRTOULL=1;
16169   HAVE_STRUCT_RANDOM_DATA=1;
16170   HAVE_SYS_LOADAVG_H=0;
16171   HAVE_UNLOCKPT=1;
16172   HAVE_UNSETENV=1;
16173   REPLACE_CANONICALIZE_FILE_NAME=0;
16174   REPLACE_MKSTEMP=0;
16175   REPLACE_PUTENV=0;
16176   REPLACE_REALPATH=0;
16177   REPLACE_SETENV=0;
16178   REPLACE_STRTOD=0;
16179   REPLACE_UNSETENV=0;
16180
16181
16182   for ac_header in stdlib.h
16183 do :
16184   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16185 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
16186   cat >>confdefs.h <<_ACEOF
16187 #define HAVE_STDLIB_H 1
16188 _ACEOF
16189
16190 fi
16191
16192 done
16193
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16195 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16196 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
16197   $as_echo_n "(cached) " >&6
16198 else
16199   if test "$cross_compiling" = yes; then :
16200   ac_cv_func_malloc_0_nonnull=no
16201 else
16202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16203 /* end confdefs.h.  */
16204 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16205 # include <stdlib.h>
16206 #else
16207 char *malloc ();
16208 #endif
16209
16210 int
16211 main ()
16212 {
16213 return ! malloc (0);
16214   ;
16215   return 0;
16216 }
16217 _ACEOF
16218 if ac_fn_c_try_run "$LINENO"; then :
16219   ac_cv_func_malloc_0_nonnull=yes
16220 else
16221   ac_cv_func_malloc_0_nonnull=no
16222 fi
16223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16224   conftest.$ac_objext conftest.beam conftest.$ac_ext
16225 fi
16226
16227 fi
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
16229 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
16230 if test $ac_cv_func_malloc_0_nonnull = yes; then :
16231   gl_cv_func_malloc_0_nonnull=1
16232 else
16233   gl_cv_func_malloc_0_nonnull=0
16234 fi
16235
16236
16237 cat >>confdefs.h <<_ACEOF
16238 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
16239 _ACEOF
16240
16241
16242
16243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16244 $as_echo_n "checking for long long int... " >&6; }
16245 if test "${ac_cv_type_long_long_int+set}" = set; then :
16246   $as_echo_n "(cached) " >&6
16247 else
16248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249 /* end confdefs.h.  */
16250
16251   /* For now, do not test the preprocessor; as of 2007 there are too many
16252          implementations with broken preprocessors.  Perhaps this can
16253          be revisited in 2012.  In the meantime, code should not expect
16254          #if to work with literals wider than 32 bits.  */
16255       /* Test literals.  */
16256       long long int ll = 9223372036854775807ll;
16257       long long int nll = -9223372036854775807LL;
16258       unsigned long long int ull = 18446744073709551615ULL;
16259       /* Test constant expressions.   */
16260       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16261                      ? 1 : -1)];
16262       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16263                      ? 1 : -1)];
16264       int i = 63;
16265 int
16266 main ()
16267 {
16268 /* Test availability of runtime routines for shift and division.  */
16269       long long int llmax = 9223372036854775807ll;
16270       unsigned long long int ullmax = 18446744073709551615ull;
16271       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16272               | (llmax / ll) | (llmax % ll)
16273               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16274               | (ullmax / ull) | (ullmax % ull));
16275   ;
16276   return 0;
16277 }
16278
16279 _ACEOF
16280 if ac_fn_c_try_link "$LINENO"; then :
16281                           if test "$cross_compiling" = yes; then :
16282   ac_cv_type_long_long_int=yes
16283 else
16284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16285 /* end confdefs.h.  */
16286 #include <limits.h>
16287                #ifndef LLONG_MAX
16288                # define HALF \
16289                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16290                # define LLONG_MAX (HALF - 1 + HALF)
16291                #endif
16292 int
16293 main ()
16294 {
16295 long long int n = 1;
16296                int i;
16297                for (i = 0; ; i++)
16298                  {
16299                    long long int m = n << i;
16300                    if (m >> i != n)
16301                      return 1;
16302                    if (LLONG_MAX / 2 < m)
16303                      break;
16304                  }
16305                return 0;
16306   ;
16307   return 0;
16308 }
16309 _ACEOF
16310 if ac_fn_c_try_run "$LINENO"; then :
16311   ac_cv_type_long_long_int=yes
16312 else
16313   ac_cv_type_long_long_int=no
16314 fi
16315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16316   conftest.$ac_objext conftest.beam conftest.$ac_ext
16317 fi
16318
16319 else
16320   ac_cv_type_long_long_int=no
16321 fi
16322 rm -f core conftest.err conftest.$ac_objext \
16323     conftest$ac_exeext conftest.$ac_ext
16324 fi
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16326 $as_echo "$ac_cv_type_long_long_int" >&6; }
16327   if test $ac_cv_type_long_long_int = yes; then
16328
16329 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16330
16331   fi
16332
16333
16334
16335
16336
16337    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16338 $as_echo_n "checking for mbstate_t... " >&6; }
16339 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16340   $as_echo_n "(cached) " >&6
16341 else
16342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16343 /* end confdefs.h.  */
16344 $ac_includes_default
16345 #           include <wchar.h>
16346 int
16347 main ()
16348 {
16349 mbstate_t x; return sizeof x;
16350   ;
16351   return 0;
16352 }
16353 _ACEOF
16354 if ac_fn_c_try_compile "$LINENO"; then :
16355   ac_cv_type_mbstate_t=yes
16356 else
16357   ac_cv_type_mbstate_t=no
16358 fi
16359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16360 fi
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16362 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16363    if test $ac_cv_type_mbstate_t = yes; then
16364
16365 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16366
16367    else
16368
16369 $as_echo "#define mbstate_t int" >>confdefs.h
16370
16371    fi
16372
16373
16374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
16375 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
16376 if test "${ac_cv_func_mbrtowc+set}" = set; then :
16377   $as_echo_n "(cached) " >&6
16378 else
16379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16380 /* end confdefs.h.  */
16381 #include <wchar.h>
16382 int
16383 main ()
16384 {
16385 wchar_t wc;
16386               char const s[] = "";
16387               size_t n = 1;
16388               mbstate_t state;
16389               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
16390   ;
16391   return 0;
16392 }
16393 _ACEOF
16394 if ac_fn_c_try_link "$LINENO"; then :
16395   ac_cv_func_mbrtowc=yes
16396 else
16397   ac_cv_func_mbrtowc=no
16398 fi
16399 rm -f core conftest.err conftest.$ac_objext \
16400     conftest$ac_exeext conftest.$ac_ext
16401 fi
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
16403 $as_echo "$ac_cv_func_mbrtowc" >&6; }
16404   if test $ac_cv_func_mbrtowc = yes; then
16405
16406 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
16407
16408   fi
16409
16410
16411   GNULIB_BTOWC=0;
16412   GNULIB_WCTOB=0;
16413   GNULIB_MBSINIT=0;
16414   GNULIB_MBRTOWC=0;
16415   GNULIB_MBRLEN=0;
16416   GNULIB_MBSRTOWCS=0;
16417   GNULIB_MBSNRTOWCS=0;
16418   GNULIB_WCRTOMB=0;
16419   GNULIB_WCSRTOMBS=0;
16420   GNULIB_WCSNRTOMBS=0;
16421   GNULIB_WCWIDTH=0;
16422     HAVE_BTOWC=1;
16423   HAVE_MBSINIT=1;
16424   HAVE_MBRTOWC=1;
16425   HAVE_MBRLEN=1;
16426   HAVE_MBSRTOWCS=1;
16427   HAVE_MBSNRTOWCS=1;
16428   HAVE_WCRTOMB=1;
16429   HAVE_WCSRTOMBS=1;
16430   HAVE_WCSNRTOMBS=1;
16431   HAVE_DECL_WCTOB=1;
16432   HAVE_DECL_WCWIDTH=1;
16433   REPLACE_MBSTATE_T=0;
16434   REPLACE_BTOWC=0;
16435   REPLACE_WCTOB=0;
16436   REPLACE_MBSINIT=0;
16437   REPLACE_MBRTOWC=0;
16438   REPLACE_MBRLEN=0;
16439   REPLACE_MBSRTOWCS=0;
16440   REPLACE_MBSNRTOWCS=0;
16441   REPLACE_WCRTOMB=0;
16442   REPLACE_WCSRTOMBS=0;
16443   REPLACE_WCSNRTOMBS=0;
16444   REPLACE_WCWIDTH=0;
16445
16446
16447
16448
16449   for ac_func in $ac_func_list
16450 do :
16451   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16452 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16453 eval as_val=\$$as_ac_var
16454    if test "x$as_val" = x""yes; then :
16455   cat >>confdefs.h <<_ACEOF
16456 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16457 _ACEOF
16458
16459 fi
16460 done
16461
16462
16463
16464
16465
16466
16467
16468
16469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
16470 $as_echo_n "checking for a traditional japanese locale... " >&6; }
16471 if test "${gt_cv_locale_ja+set}" = set; then :
16472   $as_echo_n "(cached) " >&6
16473 else
16474
16475     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h.  */
16477
16478 #include <locale.h>
16479 #include <time.h>
16480 #if HAVE_LANGINFO_CODESET
16481 # include <langinfo.h>
16482 #endif
16483 #include <stdlib.h>
16484 #include <string.h>
16485 struct tm t;
16486 char buf[16];
16487 int main ()
16488 {
16489   const char *p;
16490   /* Check whether the given locale name is recognized by the system.  */
16491   if (setlocale (LC_ALL, "") == NULL) return 1;
16492   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16493      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16494      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16495      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16496      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16497      some unit tests fail.  */
16498 #if HAVE_LANGINFO_CODESET
16499   {
16500     const char *cs = nl_langinfo (CODESET);
16501     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16502       return 1;
16503   }
16504 #endif
16505 #ifdef __CYGWIN__
16506   /* On Cygwin, avoid locale names without encoding suffix, because the
16507      locale_charset() function relies on the encoding suffix.  Note that
16508      LC_ALL is set on the command line.  */
16509   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16510 #endif
16511   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
16512      on Cygwin 1.5.x.  */
16513   if (MB_CUR_MAX == 1)
16514     return 1;
16515   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
16516      This excludes the UTF-8 encoding.  */
16517   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16518   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
16519   for (p = buf; *p != '\0'; p++)
16520     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
16521       return 1;
16522   return 0;
16523 }
16524
16525 _ACEOF
16526     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16527   (eval $ac_link) 2>&5
16528   ac_status=$?
16529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16530   test $ac_status = 0; } && test -s conftest$ac_exeext; then
16531       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16532       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16533       # configure script would override the LC_ALL setting. Likewise for
16534       # LC_CTYPE, which is also set at the beginning of the configure script.
16535       # Test for the AIX locale name.
16536       if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16537         gt_cv_locale_ja=ja_JP
16538       else
16539         # Test for the locale name with explicit encoding suffix.
16540         if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16541           gt_cv_locale_ja=ja_JP.EUC-JP
16542         else
16543           # Test for the HP-UX, OSF/1, NetBSD locale name.
16544           if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16545             gt_cv_locale_ja=ja_JP.eucJP
16546           else
16547             # Test for the IRIX, FreeBSD locale name.
16548             if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16549               gt_cv_locale_ja=ja_JP.EUC
16550             else
16551               # Test for the Solaris 7 locale name.
16552               if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16553                 gt_cv_locale_ja=ja
16554               else
16555                 # Special test for NetBSD 1.6.
16556                 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
16557                   gt_cv_locale_ja=ja_JP.eucJP
16558                 else
16559                   # None found.
16560                   gt_cv_locale_ja=none
16561                 fi
16562               fi
16563             fi
16564           fi
16565         fi
16566       fi
16567     fi
16568     rm -fr conftest*
16569
16570 fi
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
16572 $as_echo "$gt_cv_locale_ja" >&6; }
16573   LOCALE_JA=$gt_cv_locale_ja
16574
16575
16576
16577
16578
16579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
16580 $as_echo_n "checking for a transitional chinese locale... " >&6; }
16581 if test "${gt_cv_locale_zh_CN+set}" = set; then :
16582   $as_echo_n "(cached) " >&6
16583 else
16584
16585     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586 /* end confdefs.h.  */
16587
16588 #include <locale.h>
16589 #include <stdlib.h>
16590 #include <time.h>
16591 #if HAVE_LANGINFO_CODESET
16592 # include <langinfo.h>
16593 #endif
16594 #include <stdlib.h>
16595 #include <string.h>
16596 struct tm t;
16597 char buf[16];
16598 int main ()
16599 {
16600   const char *p;
16601   /* Check whether the given locale name is recognized by the system.  */
16602   if (setlocale (LC_ALL, "") == NULL) return 1;
16603   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16604      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16605      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16606      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16607      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16608      some unit tests fail.  */
16609 #if HAVE_LANGINFO_CODESET
16610   {
16611     const char *cs = nl_langinfo (CODESET);
16612     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16613       return 1;
16614   }
16615 #endif
16616 #ifdef __CYGWIN__
16617   /* On Cygwin, avoid locale names without encoding suffix, because the
16618      locale_charset() function relies on the encoding suffix.  Note that
16619      LC_ALL is set on the command line.  */
16620   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16621 #endif
16622   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
16623      This excludes the UTF-8 encoding.  */
16624   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16625   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
16626   for (p = buf; *p != '\0'; p++)
16627     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
16628       return 1;
16629   /* Check whether a typical GB18030 multibyte sequence is recognized as a
16630      single wide character.  This excludes the GB2312 and GBK encodings.  */
16631   if (mblen ("\203\062\332\066", 5) != 4)
16632     return 1;
16633   return 0;
16634 }
16635
16636 _ACEOF
16637     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16638   (eval $ac_link) 2>&5
16639   ac_status=$?
16640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16641   test $ac_status = 0; } && test -s conftest$ac_exeext; then
16642       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16643       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16644       # configure script would override the LC_ALL setting. Likewise for
16645       # LC_CTYPE, which is also set at the beginning of the configure script.
16646       # Test for the locale name without encoding suffix.
16647       if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16648         gt_cv_locale_zh_CN=zh_CN
16649       else
16650         # Test for the locale name with explicit encoding suffix.
16651         if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16652           gt_cv_locale_zh_CN=zh_CN.GB18030
16653         else
16654           # None found.
16655           gt_cv_locale_zh_CN=none
16656         fi
16657       fi
16658     else
16659       # If there was a link error, due to mblen(), the system is so old that
16660       # it certainly doesn't have a chinese locale.
16661       gt_cv_locale_zh_CN=none
16662     fi
16663     rm -fr conftest*
16664
16665 fi
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
16667 $as_echo "$gt_cv_locale_zh_CN" >&6; }
16668   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
16669
16670
16671
16672
16673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
16674 $as_echo_n "checking for a french Unicode locale... " >&6; }
16675 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
16676   $as_echo_n "(cached) " >&6
16677 else
16678
16679     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16680 /* end confdefs.h.  */
16681
16682 #include <locale.h>
16683 #include <time.h>
16684 #if HAVE_LANGINFO_CODESET
16685 # include <langinfo.h>
16686 #endif
16687 #include <stdlib.h>
16688 #include <string.h>
16689 struct tm t;
16690 char buf[16];
16691 int main () {
16692   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
16693      imitates locale dependent behaviour by looking at the environment
16694      variables, and all locales use the UTF-8 encoding.  */
16695 #if !(defined __BEOS__ || defined __HAIKU__)
16696   /* Check whether the given locale name is recognized by the system.  */
16697   if (setlocale (LC_ALL, "") == NULL) return 1;
16698   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16699      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16700      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16701      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16702      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16703      some unit tests fail.  */
16704 # if HAVE_LANGINFO_CODESET
16705   {
16706     const char *cs = nl_langinfo (CODESET);
16707     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16708       return 1;
16709   }
16710 # endif
16711 # ifdef __CYGWIN__
16712   /* On Cygwin, avoid locale names without encoding suffix, because the
16713      locale_charset() function relies on the encoding suffix.  Note that
16714      LC_ALL is set on the command line.  */
16715   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16716 # endif
16717   /* Check whether in the abbreviation of the second month, the second
16718      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
16719      two bytes long, with UTF-8 encoding.  */
16720   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16721   if (strftime (buf, sizeof (buf), "%b", &t) < 4
16722       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
16723     return 1;
16724 #endif
16725   /* Check whether the decimal separator is a comma.
16726      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
16727      are nl_langinfo(RADIXCHAR) are both ".".  */
16728   if (localeconv () ->decimal_point[0] != ',') return 1;
16729   return 0;
16730 }
16731
16732 _ACEOF
16733     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16734   (eval $ac_link) 2>&5
16735   ac_status=$?
16736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16737   test $ac_status = 0; } && test -s conftest$ac_exeext; then
16738       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16739       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16740       # configure script would override the LC_ALL setting. Likewise for
16741       # LC_CTYPE, which is also set at the beginning of the configure script.
16742       # Test for the usual locale name.
16743       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16744         gt_cv_locale_fr_utf8=fr_FR
16745       else
16746         # Test for the locale name with explicit encoding suffix.
16747         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16748           gt_cv_locale_fr_utf8=fr_FR.UTF-8
16749         else
16750           # Test for the Solaris 7 locale name.
16751           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16752             gt_cv_locale_fr_utf8=fr.UTF-8
16753           else
16754             # None found.
16755             gt_cv_locale_fr_utf8=none
16756           fi
16757         fi
16758       fi
16759     fi
16760     rm -fr conftest*
16761
16762 fi
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
16764 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
16765   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
16766
16767
16768
16769   GNULIB_MEMCHR=0;
16770   GNULIB_MEMMEM=0;
16771   GNULIB_MEMPCPY=0;
16772   GNULIB_MEMRCHR=0;
16773   GNULIB_RAWMEMCHR=0;
16774   GNULIB_STPCPY=0;
16775   GNULIB_STPNCPY=0;
16776   GNULIB_STRCHRNUL=0;
16777   GNULIB_STRDUP=0;
16778   GNULIB_STRNCAT=0;
16779   GNULIB_STRNDUP=0;
16780   GNULIB_STRNLEN=0;
16781   GNULIB_STRPBRK=0;
16782   GNULIB_STRSEP=0;
16783   GNULIB_STRSTR=0;
16784   GNULIB_STRCASESTR=0;
16785   GNULIB_STRTOK_R=0;
16786   GNULIB_MBSLEN=0;
16787   GNULIB_MBSNLEN=0;
16788   GNULIB_MBSCHR=0;
16789   GNULIB_MBSRCHR=0;
16790   GNULIB_MBSSTR=0;
16791   GNULIB_MBSCASECMP=0;
16792   GNULIB_MBSNCASECMP=0;
16793   GNULIB_MBSPCASECMP=0;
16794   GNULIB_MBSCASESTR=0;
16795   GNULIB_MBSCSPN=0;
16796   GNULIB_MBSPBRK=0;
16797   GNULIB_MBSSPN=0;
16798   GNULIB_MBSSEP=0;
16799   GNULIB_MBSTOK_R=0;
16800   GNULIB_STRERROR=0;
16801   GNULIB_STRSIGNAL=0;
16802   GNULIB_STRVERSCMP=0;
16803   HAVE_MBSLEN=0;
16804     HAVE_MEMCHR=1;
16805   HAVE_DECL_MEMMEM=1;
16806   HAVE_MEMPCPY=1;
16807   HAVE_DECL_MEMRCHR=1;
16808   HAVE_RAWMEMCHR=1;
16809   HAVE_STPCPY=1;
16810   HAVE_STPNCPY=1;
16811   HAVE_STRCHRNUL=1;
16812   HAVE_DECL_STRDUP=1;
16813   HAVE_DECL_STRNDUP=1;
16814   HAVE_DECL_STRNLEN=1;
16815   HAVE_STRPBRK=1;
16816   HAVE_STRSEP=1;
16817   HAVE_STRCASESTR=1;
16818   HAVE_DECL_STRTOK_R=1;
16819   HAVE_DECL_STRSIGNAL=1;
16820   HAVE_STRVERSCMP=1;
16821   REPLACE_MEMCHR=0;
16822   REPLACE_MEMMEM=0;
16823   REPLACE_STPNCPY=0;
16824   REPLACE_STRDUP=0;
16825   REPLACE_STRSTR=0;
16826   REPLACE_STRCASESTR=0;
16827   REPLACE_STRERROR=0;
16828   REPLACE_STRNCAT=0;
16829   REPLACE_STRNDUP=0;
16830   REPLACE_STRNLEN=0;
16831   REPLACE_STRSIGNAL=0;
16832   REPLACE_STRTOK_R=0;
16833   UNDEFINE_STRTOK_R=0;
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
16849   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
16850   # irrelevant for anonymous mappings.
16851   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16852 if test "x$ac_cv_func_mmap" = x""yes; then :
16853   gl_have_mmap=yes
16854 else
16855   gl_have_mmap=no
16856 fi
16857
16858
16859   # Try to allow MAP_ANONYMOUS.
16860   gl_have_mmap_anonymous=no
16861   if test $gl_have_mmap = yes; then
16862     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
16863 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
16864     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865 /* end confdefs.h.  */
16866
16867 #include <sys/mman.h>
16868 #ifdef MAP_ANONYMOUS
16869     I cant identify this map.
16870 #endif
16871
16872 _ACEOF
16873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16874   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
16875   gl_have_mmap_anonymous=yes
16876 fi
16877 rm -f conftest*
16878
16879     if test $gl_have_mmap_anonymous != yes; then
16880       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16881 /* end confdefs.h.  */
16882
16883 #include <sys/mman.h>
16884 #ifdef MAP_ANON
16885     I cant identify this map.
16886 #endif
16887
16888 _ACEOF
16889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16890   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
16891
16892 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
16893
16894          gl_have_mmap_anonymous=yes
16895 fi
16896 rm -f conftest*
16897
16898     fi
16899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
16900 $as_echo "$gl_have_mmap_anonymous" >&6; }
16901     if test $gl_have_mmap_anonymous = yes; then
16902
16903 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
16904
16905     fi
16906   fi
16907
16908
16909
16910
16911
16912
16913   if test $ac_cv_func_memchr = yes; then
16914     # Detect platform-specific bugs in some versions of glibc:
16915     # memchr should not dereference anything with length 0
16916     #   http://bugzilla.redhat.com/499689
16917     # memchr should not dereference overestimated length after a match
16918     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
16919     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
16920     # Assume that memchr works on platforms that lack mprotect.
16921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
16922 $as_echo_n "checking whether memchr works... " >&6; }
16923 if test "${gl_cv_func_memchr_works+set}" = set; then :
16924   $as_echo_n "(cached) " >&6
16925 else
16926   if test "$cross_compiling" = yes; then :
16927          gl_cv_func_memchr_works="guessing no"
16928 else
16929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16930 /* end confdefs.h.  */
16931
16932 #include <string.h>
16933 #if HAVE_SYS_MMAN_H
16934 # include <fcntl.h>
16935 # include <unistd.h>
16936 # include <sys/types.h>
16937 # include <sys/mman.h>
16938 # ifndef MAP_FILE
16939 #  define MAP_FILE 0
16940 # endif
16941 #endif
16942
16943 int
16944 main ()
16945 {
16946
16947   char *fence = NULL;
16948 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
16949 # if HAVE_MAP_ANONYMOUS
16950   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
16951   const int fd = -1;
16952 # else /* !HAVE_MAP_ANONYMOUS */
16953   const int flags = MAP_FILE | MAP_PRIVATE;
16954   int fd = open ("/dev/zero", O_RDONLY, 0666);
16955   if (fd >= 0)
16956 # endif
16957     {
16958       int pagesize = getpagesize ();
16959       char *two_pages =
16960         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
16961                        flags, fd, 0);
16962       if (two_pages != (char *)(-1)
16963           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
16964         fence = two_pages + pagesize;
16965     }
16966 #endif
16967   if (fence)
16968     {
16969       if (memchr (fence, 0, 0))
16970         return 1;
16971       strcpy (fence - 9, "12345678");
16972       if (memchr (fence - 9, 0, 79) != fence - 1)
16973         return 2;
16974     }
16975   return 0;
16976
16977   ;
16978   return 0;
16979 }
16980 _ACEOF
16981 if ac_fn_c_try_run "$LINENO"; then :
16982   gl_cv_func_memchr_works=yes
16983 else
16984   gl_cv_func_memchr_works=no
16985 fi
16986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16987   conftest.$ac_objext conftest.beam conftest.$ac_ext
16988 fi
16989
16990 fi
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
16992 $as_echo "$gl_cv_func_memchr_works" >&6; }
16993     if test "$gl_cv_func_memchr_works" != yes; then
16994       REPLACE_MEMCHR=1
16995     fi
16996   else
16997     HAVE_MEMCHR=0
16998   fi
16999   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
17000
17001
17002
17003
17004
17005
17006
17007
17008   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
17009
17010
17011   for ac_header in bp-sym.h
17012 do :
17013   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
17014 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
17015   cat >>confdefs.h <<_ACEOF
17016 #define HAVE_BP_SYM_H 1
17017 _ACEOF
17018
17019 fi
17020
17021 done
17022
17023
17024   fi
17025
17026
17027
17028
17029
17030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
17031 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
17032 if test "${gl_cv_minmax_in_limits_h+set}" = set; then :
17033   $as_echo_n "(cached) " >&6
17034 else
17035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h.  */
17037 #include <limits.h>
17038 int x = MIN (42, 17);
17039 int
17040 main ()
17041 {
17042
17043   ;
17044   return 0;
17045 }
17046 _ACEOF
17047 if ac_fn_c_try_compile "$LINENO"; then :
17048   gl_cv_minmax_in_limits_h=yes
17049 else
17050   gl_cv_minmax_in_limits_h=no
17051 fi
17052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17053 fi
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
17055 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
17056   if test $gl_cv_minmax_in_limits_h = yes; then
17057
17058 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
17059
17060   fi
17061
17062
17063
17064
17065
17066
17067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
17068 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
17069 if test "${gl_cv_minmax_in_sys_param_h+set}" = set; then :
17070   $as_echo_n "(cached) " >&6
17071 else
17072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17073 /* end confdefs.h.  */
17074 #include <sys/param.h>
17075 int x = MIN (42, 17);
17076 int
17077 main ()
17078 {
17079
17080   ;
17081   return 0;
17082 }
17083 _ACEOF
17084 if ac_fn_c_try_compile "$LINENO"; then :
17085   gl_cv_minmax_in_sys_param_h=yes
17086 else
17087   gl_cv_minmax_in_sys_param_h=no
17088 fi
17089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17090 fi
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
17092 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
17093   if test $gl_cv_minmax_in_sys_param_h = yes; then
17094
17095 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
17096
17097   fi
17098
17099
17100
17101
17102
17103     gl_cv_c_multiarch=no
17104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17105 /* end confdefs.h.  */
17106 #ifndef __APPLE_CC__
17107          not a universal capable compiler
17108         #endif
17109         typedef int dummy;
17110
17111 _ACEOF
17112 if ac_fn_c_try_compile "$LINENO"; then :
17113
17114                arch=
17115      prev=
17116      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17117        if test -n "$prev"; then
17118          case $word in
17119            i?86 | x86_64 | ppc | ppc64)
17120              if test -z "$arch" || test "$arch" = "$word"; then
17121                arch="$word"
17122              else
17123                gl_cv_c_multiarch=yes
17124              fi
17125              ;;
17126          esac
17127          prev=
17128        else
17129          if test "x$word" = "x-arch"; then
17130            prev=arch
17131          fi
17132        fi
17133      done
17134
17135 fi
17136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17137   if test $gl_cv_c_multiarch = yes; then
17138
17139 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17140
17141     APPLE_UNIVERSAL_BUILD=1
17142   else
17143     APPLE_UNIVERSAL_BUILD=0
17144   fi
17145
17146
17147
17148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
17149 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
17150   # Check whether --enable-relocatable was given.
17151 if test "${enable_relocatable+set}" = set; then :
17152   enableval=$enable_relocatable; if test "$enableval" != no; then
17153        RELOCATABLE=yes
17154      else
17155        RELOCATABLE=no
17156      fi
17157
17158 else
17159   RELOCATABLE=no
17160 fi
17161
17162
17163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
17164 $as_echo "$RELOCATABLE" >&6; }
17165
17166
17167
17168     if test "X$prefix" = "XNONE"; then
17169     reloc_final_prefix="$ac_default_prefix"
17170   else
17171     reloc_final_prefix="$prefix"
17172   fi
17173
17174 cat >>confdefs.h <<_ACEOF
17175 #define INSTALLPREFIX "${reloc_final_prefix}"
17176 _ACEOF
17177
17178   if test $RELOCATABLE = yes; then
17179
17180 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
17181
17182   fi
17183
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17185 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17186 if test "${ac_cv_header_stdbool_h+set}" = set; then :
17187   $as_echo_n "(cached) " >&6
17188 else
17189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17190 /* end confdefs.h.  */
17191
17192           #include <stdbool.h>
17193           #ifndef bool
17194            "error: bool is not defined"
17195           #endif
17196           #ifndef false
17197            "error: false is not defined"
17198           #endif
17199           #if false
17200            "error: false is not 0"
17201           #endif
17202           #ifndef true
17203            "error: true is not defined"
17204           #endif
17205           #if true != 1
17206            "error: true is not 1"
17207           #endif
17208           #ifndef __bool_true_false_are_defined
17209            "error: __bool_true_false_are_defined is not defined"
17210           #endif
17211
17212           struct s { _Bool s: 1; _Bool t; } s;
17213
17214           char a[true == 1 ? 1 : -1];
17215           char b[false == 0 ? 1 : -1];
17216           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17217           char d[(bool) 0.5 == true ? 1 : -1];
17218           bool e = &s;
17219           char f[(_Bool) 0.0 == false ? 1 : -1];
17220           char g[true];
17221           char h[sizeof (_Bool)];
17222           char i[sizeof s.t];
17223           enum { j = false, k = true, l = false * true, m = true * 256 };
17224           _Bool n[m];
17225           char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17226           char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17227           #if defined __xlc__ || defined __GNUC__
17228            /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
17229               reported by James Lemley on 2005-10-05; see
17230               http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
17231               This test is not quite right, since xlc is allowed to
17232               reject this program, as the initializer for xlcbug is
17233               not one of the forms that C requires support for.
17234               However, doing the test right would require a run-time
17235               test, and that would make cross-compilation harder.
17236               Let us hope that IBM fixes the xlc bug, and also adds
17237               support for this kind of constant expression.  In the
17238               meantime, this test will reject xlc, which is OK, since
17239               our stdbool.h substitute should suffice.  We also test
17240               this with GCC, where it should work, to detect more
17241               quickly whether someone messes up the test in the
17242               future.  */
17243            char digs[] = "0123456789";
17244            int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
17245           #endif
17246           /* Catch a bug in an HP-UX C compiler.  See
17247              http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17248              http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17249            */
17250           _Bool q = true;
17251           _Bool *pq = &q;
17252
17253 int
17254 main ()
17255 {
17256
17257           *pq |= q;
17258           *pq |= ! q;
17259           /* Refer to every declared value, to avoid compiler optimizations.  */
17260           return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17261                   + !m + !n + !o + !p + !q + !pq);
17262
17263   ;
17264   return 0;
17265 }
17266 _ACEOF
17267 if ac_fn_c_try_compile "$LINENO"; then :
17268   ac_cv_header_stdbool_h=yes
17269 else
17270   ac_cv_header_stdbool_h=no
17271 fi
17272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17273 fi
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17275 $as_echo "$ac_cv_header_stdbool_h" >&6; }
17276    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17277 if test "x$ac_cv_type__Bool" = x""yes; then :
17278
17279 cat >>confdefs.h <<_ACEOF
17280 #define HAVE__BOOL 1
17281 _ACEOF
17282
17283
17284 fi
17285
17286    if test $ac_cv_header_stdbool_h = yes; then
17287
17288 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
17289
17290    fi
17291
17292     REPLACE_NULL=0;
17293   HAVE_WCHAR_T=1;
17294   STDDEF_H='';
17295
17296
17297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
17298 $as_echo_n "checking for wchar_t... " >&6; }
17299 if test "${gt_cv_c_wchar_t+set}" = set; then :
17300   $as_echo_n "(cached) " >&6
17301 else
17302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17303 /* end confdefs.h.  */
17304 #include <stddef.h>
17305        wchar_t foo = (wchar_t)'\0';
17306 int
17307 main ()
17308 {
17309
17310   ;
17311   return 0;
17312 }
17313 _ACEOF
17314 if ac_fn_c_try_compile "$LINENO"; then :
17315   gt_cv_c_wchar_t=yes
17316 else
17317   gt_cv_c_wchar_t=no
17318 fi
17319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17320 fi
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
17322 $as_echo "$gt_cv_c_wchar_t" >&6; }
17323   if test $gt_cv_c_wchar_t = yes; then
17324
17325 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
17326
17327   fi
17328
17329
17330
17331
17332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17333 $as_echo_n "checking for unsigned long long int... " >&6; }
17334 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17335   $as_echo_n "(cached) " >&6
17336 else
17337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17338 /* end confdefs.h.  */
17339
17340   /* For now, do not test the preprocessor; as of 2007 there are too many
17341          implementations with broken preprocessors.  Perhaps this can
17342          be revisited in 2012.  In the meantime, code should not expect
17343          #if to work with literals wider than 32 bits.  */
17344       /* Test literals.  */
17345       long long int ll = 9223372036854775807ll;
17346       long long int nll = -9223372036854775807LL;
17347       unsigned long long int ull = 18446744073709551615ULL;
17348       /* Test constant expressions.   */
17349       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17350                      ? 1 : -1)];
17351       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17352                      ? 1 : -1)];
17353       int i = 63;
17354 int
17355 main ()
17356 {
17357 /* Test availability of runtime routines for shift and division.  */
17358       long long int llmax = 9223372036854775807ll;
17359       unsigned long long int ullmax = 18446744073709551615ull;
17360       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17361               | (llmax / ll) | (llmax % ll)
17362               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17363               | (ullmax / ull) | (ullmax % ull));
17364   ;
17365   return 0;
17366 }
17367
17368 _ACEOF
17369 if ac_fn_c_try_link "$LINENO"; then :
17370   ac_cv_type_unsigned_long_long_int=yes
17371 else
17372   ac_cv_type_unsigned_long_long_int=no
17373 fi
17374 rm -f core conftest.err conftest.$ac_objext \
17375     conftest$ac_exeext conftest.$ac_ext
17376 fi
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17378 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17379   if test $ac_cv_type_unsigned_long_long_int = yes; then
17380
17381 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17382
17383   fi
17384
17385
17386
17387
17388
17389
17390
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17392 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17393 if test "${ac_cv_c_restrict+set}" = set; then :
17394   $as_echo_n "(cached) " >&6
17395 else
17396   ac_cv_c_restrict=no
17397    # The order here caters to the fact that C++ does not require restrict.
17398    for ac_kw in __restrict __restrict__ _Restrict restrict; do
17399      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17400 /* end confdefs.h.  */
17401 typedef int * int_ptr;
17402         int foo (int_ptr $ac_kw ip) {
17403         return ip[0];
17404        }
17405 int
17406 main ()
17407 {
17408 int s[1];
17409         int * $ac_kw t = s;
17410         t[0] = 0;
17411         return foo(t)
17412   ;
17413   return 0;
17414 }
17415 _ACEOF
17416 if ac_fn_c_try_compile "$LINENO"; then :
17417   ac_cv_c_restrict=$ac_kw
17418 fi
17419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17420      test "$ac_cv_c_restrict" != no && break
17421    done
17422
17423 fi
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17425 $as_echo "$ac_cv_c_restrict" >&6; }
17426
17427  case $ac_cv_c_restrict in
17428    restrict) ;;
17429    no) $as_echo "#define restrict /**/" >>confdefs.h
17430  ;;
17431    *)  cat >>confdefs.h <<_ACEOF
17432 #define restrict $ac_cv_c_restrict
17433 _ACEOF
17434  ;;
17435  esac
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448      if test $gl_cv_have_include_next = yes; then
17449        gl_cv_next_string_h='<'string.h'>'
17450      else
17451        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
17452 $as_echo_n "checking absolute name of <string.h>... " >&6; }
17453 if test "${gl_cv_next_string_h+set}" = set; then :
17454   $as_echo_n "(cached) " >&6
17455 else
17456
17457           if test $ac_cv_header_string_h = yes; then
17458             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17459 /* end confdefs.h.  */
17460 #include <string.h>
17461
17462 _ACEOF
17463                                                                                                 case "$host_os" in
17464               aix*) gl_absname_cpp="$ac_cpp -C" ;;
17465               *)    gl_absname_cpp="$ac_cpp" ;;
17466             esac
17467                                                 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17468                sed -n '\#/string.h#{
17469                  s#.*"\(.*/string.h\)".*#\1#
17470                  s#^/[^/]#//&#
17471                  p
17472                  q
17473                }'`'"'
17474           else
17475             gl_cv_next_string_h='<'string.h'>'
17476           fi
17477
17478 fi
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
17480 $as_echo "$gl_cv_next_string_h" >&6; }
17481      fi
17482      NEXT_STRING_H=$gl_cv_next_string_h
17483
17484      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17485        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17486        gl_next_as_first_directive='<'string.h'>'
17487      else
17488        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17489        gl_next_as_first_directive=$gl_cv_next_string_h
17490      fi
17491      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
17492
17493
17494
17495
17496
17497     for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup      strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal      strverscmp; do
17498     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17499     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17500 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17501 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17502   $as_echo_n "(cached) " >&6
17503 else
17504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17505 /* end confdefs.h.  */
17506 #include <string.h>
17507
17508 int
17509 main ()
17510 {
17511 #undef $gl_func
17512   (void) $gl_func;
17513   ;
17514   return 0;
17515 }
17516 _ACEOF
17517 if ac_fn_c_try_compile "$LINENO"; then :
17518   eval "$as_gl_Symbol=yes"
17519 else
17520   eval "$as_gl_Symbol=no"
17521 fi
17522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523 fi
17524 eval ac_res=\$$as_gl_Symbol
17525                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17526 $as_echo "$ac_res" >&6; }
17527      eval as_val=\$$as_gl_Symbol
17528    if test "x$as_val" = x""yes; then :
17529   cat >>confdefs.h <<_ACEOF
17530 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17531 _ACEOF
17532
17533                      eval ac_cv_have_decl_$gl_func=yes
17534 fi
17535       done
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
17549   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
17550   # irrelevant for anonymous mappings.
17551   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
17552 if test "x$ac_cv_func_mmap" = x""yes; then :
17553   gl_have_mmap=yes
17554 else
17555   gl_have_mmap=no
17556 fi
17557
17558
17559   # Try to allow MAP_ANONYMOUS.
17560   gl_have_mmap_anonymous=no
17561   if test $gl_have_mmap = yes; then
17562     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
17563 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
17564     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17565 /* end confdefs.h.  */
17566
17567 #include <sys/mman.h>
17568 #ifdef MAP_ANONYMOUS
17569     I cant identify this map.
17570 #endif
17571
17572 _ACEOF
17573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17574   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
17575   gl_have_mmap_anonymous=yes
17576 fi
17577 rm -f conftest*
17578
17579     if test $gl_have_mmap_anonymous != yes; then
17580       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17581 /* end confdefs.h.  */
17582
17583 #include <sys/mman.h>
17584 #ifdef MAP_ANON
17585     I cant identify this map.
17586 #endif
17587
17588 _ACEOF
17589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17590   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
17591
17592 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
17593
17594          gl_have_mmap_anonymous=yes
17595 fi
17596 rm -f conftest*
17597
17598     fi
17599     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
17600 $as_echo "$gl_have_mmap_anonymous" >&6; }
17601     if test $gl_have_mmap_anonymous = yes; then
17602
17603 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
17604
17605     fi
17606   fi
17607
17608
17609
17610
17611           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strncat works" >&5
17612 $as_echo_n "checking whether strncat works... " >&6; }
17613 if test "${gl_cv_func_strncat_works+set}" = set; then :
17614   $as_echo_n "(cached) " >&6
17615 else
17616   if test "$cross_compiling" = yes; then :
17617
17618         case "$host_os" in
17619                     # Guess no on Solaris.
17620           solaris*) gl_cv_func_strncat_works="guessing no";;
17621                     # Guess yes otherwise.
17622           *)        gl_cv_func_strncat_works="guessing yes";;
17623         esac
17624
17625 else
17626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17627 /* end confdefs.h.  */
17628
17629 #include <string.h>
17630 #if HAVE_SYS_MMAN_H
17631 # include <fcntl.h>
17632 # include <unistd.h>
17633 # include <sys/types.h>
17634 # include <sys/mman.h>
17635 # ifndef MAP_FILE
17636 #  define MAP_FILE 0
17637 # endif
17638 #endif
17639
17640 int
17641 main ()
17642 {
17643
17644   char *fence = NULL;
17645 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
17646 # if HAVE_MAP_ANONYMOUS
17647   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
17648   const int fd = -1;
17649 # else /* !HAVE_MAP_ANONYMOUS */
17650   const int flags = MAP_FILE | MAP_PRIVATE;
17651   int fd = open ("/dev/zero", O_RDONLY, 0666);
17652   if (fd >= 0)
17653 # endif
17654     {
17655       int pagesize = getpagesize ();
17656       char *two_pages =
17657         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
17658                        flags, fd, 0);
17659       if (two_pages != (char *)(-1)
17660           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
17661         fence = two_pages + pagesize;
17662     }
17663 #endif
17664   if (fence)
17665     {
17666       char dest[8];
17667
17668       dest[0] = '*';
17669       dest[1] = 'a';
17670       dest[2] = '\0';
17671       dest[3] = 'w';
17672       dest[4] = 'x';
17673       dest[5] = 'y';
17674       dest[6] = 'z';
17675
17676       *(fence - 3) = '7';
17677       *(fence - 2) = '2';
17678       *(fence - 1) = '9';
17679
17680       if (strncat (dest + 1, fence - 3, 3) != dest + 1)
17681         return 1;
17682       if (dest[0] != '*')
17683         return 2;
17684       if (dest[1] != 'a'
17685           || dest[2] != '7' || dest[3] != '2' || dest[4] != '9'
17686           || dest[5] != '\0')
17687         return 3;
17688       if (dest[6] != 'z')
17689         return 4;
17690     }
17691   return 0;
17692
17693   ;
17694   return 0;
17695 }
17696 _ACEOF
17697 if ac_fn_c_try_run "$LINENO"; then :
17698   gl_cv_func_strncat_works=yes
17699 else
17700   gl_cv_func_strncat_works=no
17701 fi
17702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17703   conftest.$ac_objext conftest.beam conftest.$ac_ext
17704 fi
17705
17706
17707 fi
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strncat_works" >&5
17709 $as_echo "$gl_cv_func_strncat_works" >&6; }
17710   case "$gl_cv_func_strncat_works" in
17711     *yes) ;;
17712     *)
17713       REPLACE_STRNCAT=1
17714
17715
17716
17717
17718
17719
17720
17721
17722   gl_LIBOBJS="$gl_LIBOBJS strncat.$ac_objext"
17723
17724
17725   :
17726
17727       ;;
17728   esac
17729
17730
17731   GNULIB_CHOWN=0;
17732   GNULIB_CLOSE=0;
17733   GNULIB_DUP2=0;
17734   GNULIB_DUP3=0;
17735   GNULIB_ENVIRON=0;
17736   GNULIB_EUIDACCESS=0;
17737   GNULIB_FACCESSAT=0;
17738   GNULIB_FCHDIR=0;
17739   GNULIB_FCHOWNAT=0;
17740   GNULIB_FSYNC=0;
17741   GNULIB_FTRUNCATE=0;
17742   GNULIB_GETCWD=0;
17743   GNULIB_GETDOMAINNAME=0;
17744   GNULIB_GETDTABLESIZE=0;
17745   GNULIB_GETGROUPS=0;
17746   GNULIB_GETHOSTNAME=0;
17747   GNULIB_GETLOGIN=0;
17748   GNULIB_GETLOGIN_R=0;
17749   GNULIB_GETPAGESIZE=0;
17750   GNULIB_GETUSERSHELL=0;
17751   GNULIB_LCHOWN=0;
17752   GNULIB_LINK=0;
17753   GNULIB_LINKAT=0;
17754   GNULIB_LSEEK=0;
17755   GNULIB_PIPE2=0;
17756   GNULIB_PREAD=0;
17757   GNULIB_READLINK=0;
17758   GNULIB_READLINKAT=0;
17759   GNULIB_RMDIR=0;
17760   GNULIB_SLEEP=0;
17761   GNULIB_SYMLINK=0;
17762   GNULIB_SYMLINKAT=0;
17763   GNULIB_TTYNAME_R=0;
17764   GNULIB_UNISTD_H_GETOPT=0;
17765   GNULIB_UNISTD_H_SIGPIPE=0;
17766   GNULIB_UNLINK=0;
17767   GNULIB_UNLINKAT=0;
17768   GNULIB_USLEEP=0;
17769   GNULIB_WRITE=0;
17770     HAVE_CHOWN=1;
17771   HAVE_DUP2=1;
17772   HAVE_DUP3=1;
17773   HAVE_EUIDACCESS=1;
17774   HAVE_FACCESSAT=1;
17775   HAVE_FCHDIR=1;
17776   HAVE_FCHOWNAT=1;
17777   HAVE_FSYNC=1;
17778   HAVE_FTRUNCATE=1;
17779   HAVE_GETDOMAINNAME=1;
17780   HAVE_GETDTABLESIZE=1;
17781   HAVE_GETGROUPS=1;
17782   HAVE_GETHOSTNAME=1;
17783   HAVE_GETLOGIN=1;
17784   HAVE_GETPAGESIZE=1;
17785   HAVE_LCHOWN=1;
17786   HAVE_LINK=1;
17787   HAVE_LINKAT=1;
17788   HAVE_PIPE2=1;
17789   HAVE_PREAD=1;
17790   HAVE_READLINK=1;
17791   HAVE_READLINKAT=1;
17792   HAVE_SLEEP=1;
17793   HAVE_SYMLINK=1;
17794   HAVE_SYMLINKAT=1;
17795   HAVE_TTYNAME_R=1;
17796   HAVE_UNLINKAT=1;
17797   HAVE_USLEEP=1;
17798   HAVE_DECL_ENVIRON=1;
17799   HAVE_DECL_GETLOGIN_R=1;
17800   HAVE_DECL_GETPAGESIZE=1;
17801   HAVE_DECL_GETUSERSHELL=1;
17802   HAVE_OS_H=0;
17803   HAVE_SYS_PARAM_H=0;
17804   REPLACE_CHOWN=0;
17805   REPLACE_CLOSE=0;
17806   REPLACE_DUP=0;
17807   REPLACE_DUP2=0;
17808   REPLACE_FCHOWNAT=0;
17809   REPLACE_GETCWD=0;
17810   REPLACE_GETGROUPS=0;
17811   REPLACE_GETPAGESIZE=0;
17812   REPLACE_LCHOWN=0;
17813   REPLACE_LINK=0;
17814   REPLACE_LINKAT=0;
17815   REPLACE_LSEEK=0;
17816   REPLACE_PREAD=0;
17817   REPLACE_READLINK=0;
17818   REPLACE_RMDIR=0;
17819   REPLACE_SLEEP=0;
17820   REPLACE_SYMLINK=0;
17821   REPLACE_TTYNAME_R=0;
17822   REPLACE_UNLINK=0;
17823   REPLACE_UNLINKAT=0;
17824   REPLACE_USLEEP=0;
17825   REPLACE_WRITE=0;
17826   UNISTD_H_HAVE_WINSOCK2_H=0;
17827   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
17828
17829
17830
17831
17832
17833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
17834 $as_echo_n "checking for wint_t... " >&6; }
17835 if test "${gt_cv_c_wint_t+set}" = set; then :
17836   $as_echo_n "(cached) " >&6
17837 else
17838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17839 /* end confdefs.h.  */
17840
17841 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17842    <wchar.h>.
17843    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
17844    before <wchar.h>.  */
17845 #include <stddef.h>
17846 #include <stdio.h>
17847 #include <time.h>
17848 #include <wchar.h>
17849        wint_t foo = (wchar_t)'\0';
17850 int
17851 main ()
17852 {
17853
17854   ;
17855   return 0;
17856 }
17857 _ACEOF
17858 if ac_fn_c_try_compile "$LINENO"; then :
17859   gt_cv_c_wint_t=yes
17860 else
17861   gt_cv_c_wint_t=no
17862 fi
17863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17864 fi
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
17866 $as_echo "$gt_cv_c_wint_t" >&6; }
17867   if test $gt_cv_c_wint_t = yes; then
17868
17869 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
17870
17871   fi
17872
17873 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17874 if test "x$ac_cv_type_size_t" = x""yes; then :
17875
17876 else
17877
17878 cat >>confdefs.h <<_ACEOF
17879 #define size_t unsigned int
17880 _ACEOF
17881
17882 fi
17883
17884
17885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
17886 $as_echo_n "checking for inttypes.h... " >&6; }
17887 if test "${gl_cv_header_inttypes_h+set}" = set; then :
17888   $as_echo_n "(cached) " >&6
17889 else
17890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h.  */
17892 #include <sys/types.h>
17893 #include <inttypes.h>
17894 int
17895 main ()
17896 {
17897 uintmax_t i = (uintmax_t) -1; return !i;
17898   ;
17899   return 0;
17900 }
17901 _ACEOF
17902 if ac_fn_c_try_compile "$LINENO"; then :
17903   gl_cv_header_inttypes_h=yes
17904 else
17905   gl_cv_header_inttypes_h=no
17906 fi
17907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17908 fi
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
17910 $as_echo "$gl_cv_header_inttypes_h" >&6; }
17911   if test $gl_cv_header_inttypes_h = yes; then
17912
17913 cat >>confdefs.h <<_ACEOF
17914 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
17915 _ACEOF
17916
17917   fi
17918
17919
17920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
17921 $as_echo_n "checking for stdint.h... " >&6; }
17922 if test "${gl_cv_header_stdint_h+set}" = set; then :
17923   $as_echo_n "(cached) " >&6
17924 else
17925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17926 /* end confdefs.h.  */
17927 #include <sys/types.h>
17928 #include <stdint.h>
17929 int
17930 main ()
17931 {
17932 uintmax_t i = (uintmax_t) -1; return !i;
17933   ;
17934   return 0;
17935 }
17936 _ACEOF
17937 if ac_fn_c_try_compile "$LINENO"; then :
17938   gl_cv_header_stdint_h=yes
17939 else
17940   gl_cv_header_stdint_h=no
17941 fi
17942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17943 fi
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
17945 $as_echo "$gl_cv_header_stdint_h" >&6; }
17946   if test $gl_cv_header_stdint_h = yes; then
17947
17948 cat >>confdefs.h <<_ACEOF
17949 #define HAVE_STDINT_H_WITH_UINTMAX 1
17950 _ACEOF
17951
17952   fi
17953
17954
17955
17956
17957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
17958 $as_echo_n "checking for intmax_t... " >&6; }
17959 if test "${gt_cv_c_intmax_t+set}" = set; then :
17960   $as_echo_n "(cached) " >&6
17961 else
17962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17963 /* end confdefs.h.  */
17964
17965 #include <stddef.h>
17966 #include <stdlib.h>
17967 #if HAVE_STDINT_H_WITH_UINTMAX
17968 #include <stdint.h>
17969 #endif
17970 #if HAVE_INTTYPES_H_WITH_UINTMAX
17971 #include <inttypes.h>
17972 #endif
17973
17974 int
17975 main ()
17976 {
17977 intmax_t x = -1; return !x;
17978   ;
17979   return 0;
17980 }
17981 _ACEOF
17982 if ac_fn_c_try_compile "$LINENO"; then :
17983   gt_cv_c_intmax_t=yes
17984 else
17985   gt_cv_c_intmax_t=no
17986 fi
17987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17988 fi
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
17990 $as_echo "$gt_cv_c_intmax_t" >&6; }
17991   if test $gt_cv_c_intmax_t = yes; then
17992
17993 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
17994
17995   else
17996
17997     test $ac_cv_type_long_long_int = yes \
17998       && ac_type='long long' \
17999       || ac_type='long'
18000
18001 cat >>confdefs.h <<_ACEOF
18002 #define intmax_t $ac_type
18003 _ACEOF
18004
18005   fi
18006
18007
18008
18009      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
18010 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
18011 if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then :
18012   $as_echo_n "(cached) " >&6
18013 else
18014
18015       if test "$cross_compiling" = yes; then :
18016
18017        case "$host_os" in
18018                                # Guess yes on glibc systems.
18019          *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
18020                                # Guess yes on FreeBSD >= 5.
18021          freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
18022          freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18023                                # Guess yes on MacOS X >= 10.3.
18024          darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
18025          darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
18026                                # Guess yes on OpenBSD >= 3.9.
18027          openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
18028                                gl_cv_func_snprintf_retval_c99="guessing no";;
18029          openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
18030                                # Guess yes on Solaris >= 2.6.
18031          solaris2.[0-5]*)      gl_cv_func_snprintf_retval_c99="guessing no";;
18032          solaris*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
18033                                # Guess yes on AIX >= 4.
18034          aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
18035          aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
18036                                # Guess yes on NetBSD >= 3.
18037          netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
18038                                gl_cv_func_snprintf_retval_c99="guessing no";;
18039          netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
18040                                # Guess yes on BeOS.
18041          beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
18042                                # If we don't know, assume the worst.
18043          *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
18044        esac
18045
18046 else
18047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048 /* end confdefs.h.  */
18049
18050 #include <stdio.h>
18051 #include <string.h>
18052 static char buf[100];
18053 int main ()
18054 {
18055   strcpy (buf, "ABCDEF");
18056   if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
18057     return 1;
18058   return 0;
18059 }
18060 _ACEOF
18061 if ac_fn_c_try_run "$LINENO"; then :
18062   gl_cv_func_snprintf_retval_c99=yes
18063 else
18064   gl_cv_func_snprintf_retval_c99=no
18065 fi
18066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18067   conftest.$ac_objext conftest.beam conftest.$ac_ext
18068 fi
18069
18070
18071 fi
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
18073 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
18074
18075
18076
18077
18078
18079
18080
18081   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
18082 do :
18083   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18084 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18085 eval as_val=\$$as_ac_var
18086    if test "x$as_val" = x""yes; then :
18087   cat >>confdefs.h <<_ACEOF
18088 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18089 _ACEOF
18090
18091 fi
18092 done
18093
18094       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
18095 "
18096 if test "x$ac_cv_have_decl__snprintf" = x""yes; then :
18097   ac_have_decl=1
18098 else
18099   ac_have_decl=0
18100 fi
18101
18102 cat >>confdefs.h <<_ACEOF
18103 #define HAVE_DECL__SNPRINTF $ac_have_decl
18104 _ACEOF
18105
18106
18107   case "$gl_cv_func_snprintf_retval_c99" in
18108     *yes)
18109
18110 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
18111
18112       ;;
18113   esac
18114
18115
18116
18117      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports 'long double' arguments" >&5
18118 $as_echo_n "checking whether printf supports 'long double' arguments... " >&6; }
18119 if test "${gl_cv_func_printf_long_double+set}" = set; then :
18120   $as_echo_n "(cached) " >&6
18121 else
18122
18123       if test "$cross_compiling" = yes; then :
18124
18125        case "$host_os" in
18126          beos*)        gl_cv_func_printf_long_double="guessing no";;
18127          mingw* | pw*) gl_cv_func_printf_long_double="guessing no";;
18128          *)            gl_cv_func_printf_long_double="guessing yes";;
18129        esac
18130
18131 else
18132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18133 /* end confdefs.h.  */
18134
18135 #include <stdio.h>
18136 #include <string.h>
18137 static char buf[10000];
18138 int main ()
18139 {
18140   buf[0] = '\0';
18141   if (sprintf (buf, "%Lf %d", 1.75L, 33, 44, 55) < 0
18142       || strcmp (buf, "1.750000 33") != 0)
18143     return 1;
18144   buf[0] = '\0';
18145   if (sprintf (buf, "%Le %d", 1.75L, 33, 44, 55) < 0
18146       || strcmp (buf, "1.750000e+00 33") != 0)
18147     return 1;
18148   buf[0] = '\0';
18149   if (sprintf (buf, "%Lg %d", 1.75L, 33, 44, 55) < 0
18150       || strcmp (buf, "1.75 33") != 0)
18151     return 1;
18152   return 0;
18153 }
18154 _ACEOF
18155 if ac_fn_c_try_run "$LINENO"; then :
18156   gl_cv_func_printf_long_double=yes
18157 else
18158   gl_cv_func_printf_long_double=no
18159 fi
18160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18161   conftest.$ac_objext conftest.beam conftest.$ac_ext
18162 fi
18163
18164
18165 fi
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_long_double" >&5
18167 $as_echo "$gl_cv_func_printf_long_double" >&6; }
18168
18169
18170
18171   case "$gl_cv_func_printf_long_double" in
18172     *yes)
18173       ;;
18174     *)
18175
18176 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
18177
18178       ;;
18179   esac
18180
18181
18182
18183      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'double' arguments" >&5
18184 $as_echo_n "checking whether printf supports infinite 'double' arguments... " >&6; }
18185 if test "${gl_cv_func_printf_infinite+set}" = set; then :
18186   $as_echo_n "(cached) " >&6
18187 else
18188
18189       if test "$cross_compiling" = yes; then :
18190
18191        case "$host_os" in
18192                                # Guess yes on glibc systems.
18193          *-gnu*)               gl_cv_func_printf_infinite="guessing yes";;
18194                                # Guess yes on FreeBSD >= 6.
18195          freebsd[1-5]*)        gl_cv_func_printf_infinite="guessing no";;
18196          freebsd* | kfreebsd*) gl_cv_func_printf_infinite="guessing yes";;
18197                                # Guess yes on MacOS X >= 10.3.
18198          darwin[1-6].*)        gl_cv_func_printf_infinite="guessing no";;
18199          darwin*)              gl_cv_func_printf_infinite="guessing yes";;
18200                                # Guess yes on HP-UX >= 11.
18201          hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite="guessing no";;
18202          hpux*)                gl_cv_func_printf_infinite="guessing yes";;
18203                                # Guess yes on NetBSD >= 3.
18204          netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
18205                                gl_cv_func_printf_infinite="guessing no";;
18206          netbsd*)              gl_cv_func_printf_infinite="guessing yes";;
18207                                # Guess yes on BeOS.
18208          beos*)                gl_cv_func_printf_infinite="guessing yes";;
18209                                # If we don't know, assume the worst.
18210          *)                    gl_cv_func_printf_infinite="guessing no";;
18211        esac
18212
18213 else
18214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18215 /* end confdefs.h.  */
18216
18217 #include <stdio.h>
18218 #include <string.h>
18219 static int
18220 strisnan (const char *string, size_t start_index, size_t end_index)
18221 {
18222   if (start_index < end_index)
18223     {
18224       if (string[start_index] == '-')
18225         start_index++;
18226       if (start_index + 3 <= end_index
18227           && memcmp (string + start_index, "nan", 3) == 0)
18228         {
18229           start_index += 3;
18230           if (start_index == end_index
18231               || (string[start_index] == '(' && string[end_index - 1] == ')'))
18232             return 1;
18233         }
18234     }
18235   return 0;
18236 }
18237 static int
18238 have_minus_zero ()
18239 {
18240   static double plus_zero = 0.0;
18241   double minus_zero = - plus_zero;
18242   return memcmp (&plus_zero, &minus_zero, sizeof (double)) != 0;
18243 }
18244 static char buf[10000];
18245 static double zero = 0.0;
18246 int main ()
18247 {
18248   if (sprintf (buf, "%f", 1.0 / 0.0) < 0
18249       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
18250     return 1;
18251   if (sprintf (buf, "%f", -1.0 / 0.0) < 0
18252       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
18253     return 1;
18254   if (sprintf (buf, "%f", zero / zero) < 0
18255       || !strisnan (buf, 0, strlen (buf)))
18256     return 1;
18257   if (sprintf (buf, "%e", 1.0 / 0.0) < 0
18258       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
18259     return 1;
18260   if (sprintf (buf, "%e", -1.0 / 0.0) < 0
18261       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
18262     return 1;
18263   if (sprintf (buf, "%e", zero / zero) < 0
18264       || !strisnan (buf, 0, strlen (buf)))
18265     return 1;
18266   if (sprintf (buf, "%g", 1.0 / 0.0) < 0
18267       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
18268     return 1;
18269   if (sprintf (buf, "%g", -1.0 / 0.0) < 0
18270       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
18271     return 1;
18272   if (sprintf (buf, "%g", zero / zero) < 0
18273       || !strisnan (buf, 0, strlen (buf)))
18274     return 1;
18275   /* This test fails on HP-UX 10.20.  */
18276   if (have_minus_zero ())
18277     if (sprintf (buf, "%g", - zero) < 0
18278         || strcmp (buf, "-0") != 0)
18279     return 1;
18280   return 0;
18281 }
18282 _ACEOF
18283 if ac_fn_c_try_run "$LINENO"; then :
18284   gl_cv_func_printf_infinite=yes
18285 else
18286   gl_cv_func_printf_infinite=no
18287 fi
18288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18289   conftest.$ac_objext conftest.beam conftest.$ac_ext
18290 fi
18291
18292
18293 fi
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite" >&5
18295 $as_echo "$gl_cv_func_printf_infinite" >&6; }
18296
18297
18298
18299
18300
18301          if test -n "$gl_printf_safe"; then
18302
18303 $as_echo "#define CHECK_PRINTF_SAFE 1" >>confdefs.h
18304
18305   fi
18306   case "$gl_cv_func_printf_long_double" in
18307     *yes)
18308       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'long double' arguments" >&5
18309 $as_echo_n "checking whether printf supports infinite 'long double' arguments... " >&6; }
18310 if test "${gl_cv_func_printf_infinite_long_double+set}" = set; then :
18311   $as_echo_n "(cached) " >&6
18312 else
18313
18314           if test "$cross_compiling" = yes; then :
18315
18316            case "$host_cpu" in
18317                                    # Guess no on ia64, x86_64, i386.
18318              ia64 | x86_64 | i*86) gl_cv_func_printf_infinite_long_double="guessing no";;
18319              *)
18320                case "$host_os" in
18321                                        # Guess yes on glibc systems.
18322                  *-gnu*)               gl_cv_func_printf_infinite_long_double="guessing yes";;
18323                                        # Guess yes on FreeBSD >= 6.
18324                  freebsd[1-5]*)        gl_cv_func_printf_infinite_long_double="guessing no";;
18325                  freebsd* | kfreebsd*) gl_cv_func_printf_infinite_long_double="guessing yes";;
18326                                        # Guess yes on MacOS X >= 10.3.
18327                  darwin[1-6].*)        gl_cv_func_printf_infinite_long_double="guessing no";;
18328                  darwin*)              gl_cv_func_printf_infinite_long_double="guessing yes";;
18329                                        # Guess yes on HP-UX >= 11.
18330                  hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite_long_double="guessing no";;
18331                  hpux*)                gl_cv_func_printf_infinite_long_double="guessing yes";;
18332                                        # Guess yes on NetBSD >= 3.
18333                  netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
18334                                        gl_cv_func_printf_infinite_long_double="guessing no";;
18335                  netbsd*)              gl_cv_func_printf_infinite_long_double="guessing yes";;
18336                                        # If we don't know, assume the worst.
18337                  *)                    gl_cv_func_printf_infinite_long_double="guessing no";;
18338                esac
18339                ;;
18340            esac
18341
18342 else
18343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344 /* end confdefs.h.  */
18345
18346
18347 #include <stdlib.h>
18348 #if defined __MACH__ && defined __APPLE__
18349 /* Avoid a crash on MacOS X.  */
18350 #include <mach/mach.h>
18351 #include <mach/mach_error.h>
18352 #include <mach/thread_status.h>
18353 #include <mach/exception.h>
18354 #include <mach/task.h>
18355 #include <pthread.h>
18356 /* The exception port on which our thread listens.  */
18357 static mach_port_t our_exception_port;
18358 /* The main function of the thread listening for exceptions of type
18359    EXC_BAD_ACCESS.  */
18360 static void *
18361 mach_exception_thread (void *arg)
18362 {
18363   /* Buffer for a message to be received.  */
18364   struct {
18365     mach_msg_header_t head;
18366     mach_msg_body_t msgh_body;
18367     char data[1024];
18368   } msg;
18369   mach_msg_return_t retval;
18370   /* Wait for a message on the exception port.  */
18371   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
18372                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
18373   if (retval != MACH_MSG_SUCCESS)
18374     abort ();
18375   exit (1);
18376 }
18377 static void
18378 nocrash_init (void)
18379 {
18380   mach_port_t self = mach_task_self ();
18381   /* Allocate a port on which the thread shall listen for exceptions.  */
18382   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
18383       == KERN_SUCCESS) {
18384     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
18385     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
18386                                 MACH_MSG_TYPE_MAKE_SEND)
18387         == KERN_SUCCESS) {
18388       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
18389          for us.  */
18390       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
18391       /* Create the thread listening on the exception port.  */
18392       pthread_attr_t attr;
18393       pthread_t thread;
18394       if (pthread_attr_init (&attr) == 0
18395           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
18396           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
18397         pthread_attr_destroy (&attr);
18398         /* Replace the exception port info for these exceptions with our own.
18399            Note that we replace the exception port for the entire task, not only
18400            for a particular thread.  This has the effect that when our exception
18401            port gets the message, the thread specific exception port has already
18402            been asked, and we don't need to bother about it.
18403            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
18404         task_set_exception_ports (self, mask, our_exception_port,
18405                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
18406       }
18407     }
18408   }
18409 }
18410 #else
18411 /* Avoid a crash on POSIX systems.  */
18412 #include <signal.h>
18413 /* A POSIX signal handler.  */
18414 static void
18415 exception_handler (int sig)
18416 {
18417   exit (1);
18418 }
18419 static void
18420 nocrash_init (void)
18421 {
18422 #ifdef SIGSEGV
18423   signal (SIGSEGV, exception_handler);
18424 #endif
18425 #ifdef SIGBUS
18426   signal (SIGBUS, exception_handler);
18427 #endif
18428 }
18429 #endif
18430
18431 #include <float.h>
18432 #include <stdio.h>
18433 #include <string.h>
18434 static int
18435 strisnan (const char *string, size_t start_index, size_t end_index)
18436 {
18437   if (start_index < end_index)
18438     {
18439       if (string[start_index] == '-')
18440         start_index++;
18441       if (start_index + 3 <= end_index
18442           && memcmp (string + start_index, "nan", 3) == 0)
18443         {
18444           start_index += 3;
18445           if (start_index == end_index
18446               || (string[start_index] == '(' && string[end_index - 1] == ')'))
18447             return 1;
18448         }
18449     }
18450   return 0;
18451 }
18452 static char buf[10000];
18453 static long double zeroL = 0.0L;
18454 int main ()
18455 {
18456   nocrash_init();
18457   if (sprintf (buf, "%Lf", 1.0L / 0.0L) < 0
18458       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
18459     return 1;
18460   if (sprintf (buf, "%Lf", -1.0L / 0.0L) < 0
18461       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
18462     return 1;
18463   if (sprintf (buf, "%Lf", zeroL / zeroL) < 0
18464       || !strisnan (buf, 0, strlen (buf)))
18465     return 1;
18466   if (sprintf (buf, "%Le", 1.0L / 0.0L) < 0
18467       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
18468     return 1;
18469   if (sprintf (buf, "%Le", -1.0L / 0.0L) < 0
18470       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
18471     return 1;
18472   if (sprintf (buf, "%Le", zeroL / zeroL) < 0
18473       || !strisnan (buf, 0, strlen (buf)))
18474     return 1;
18475   if (sprintf (buf, "%Lg", 1.0L / 0.0L) < 0
18476       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
18477     return 1;
18478   if (sprintf (buf, "%Lg", -1.0L / 0.0L) < 0
18479       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
18480     return 1;
18481   if (sprintf (buf, "%Lg", zeroL / zeroL) < 0
18482       || !strisnan (buf, 0, strlen (buf)))
18483     return 1;
18484 #if CHECK_PRINTF_SAFE && ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_))
18485 /* Representation of an 80-bit 'long double' as an initializer for a sequence
18486    of 'unsigned int' words.  */
18487 # ifdef WORDS_BIGENDIAN
18488 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
18489      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
18490        ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16),    \
18491        (unsigned int) (mantlo) << 16                                        \
18492      }
18493 # else
18494 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
18495      { mantlo, manthi, exponent }
18496 # endif
18497   { /* Quiet NaN.  */
18498     static union { unsigned int word[4]; long double value; } x =
18499       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
18500     if (sprintf (buf, "%Lf", x.value) < 0
18501         || !strisnan (buf, 0, strlen (buf)))
18502       return 1;
18503     if (sprintf (buf, "%Le", x.value) < 0
18504         || !strisnan (buf, 0, strlen (buf)))
18505       return 1;
18506     if (sprintf (buf, "%Lg", x.value) < 0
18507         || !strisnan (buf, 0, strlen (buf)))
18508       return 1;
18509   }
18510   {
18511     /* Signalling NaN.  */
18512     static union { unsigned int word[4]; long double value; } x =
18513       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
18514     if (sprintf (buf, "%Lf", x.value) < 0
18515         || !strisnan (buf, 0, strlen (buf)))
18516       return 1;
18517     if (sprintf (buf, "%Le", x.value) < 0
18518         || !strisnan (buf, 0, strlen (buf)))
18519       return 1;
18520     if (sprintf (buf, "%Lg", x.value) < 0
18521         || !strisnan (buf, 0, strlen (buf)))
18522       return 1;
18523   }
18524   { /* Pseudo-NaN.  */
18525     static union { unsigned int word[4]; long double value; } x =
18526       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
18527     if (sprintf (buf, "%Lf", x.value) < 0
18528         || !strisnan (buf, 0, strlen (buf)))
18529       return 1;
18530     if (sprintf (buf, "%Le", x.value) < 0
18531         || !strisnan (buf, 0, strlen (buf)))
18532       return 1;
18533     if (sprintf (buf, "%Lg", x.value) < 0
18534         || !strisnan (buf, 0, strlen (buf)))
18535       return 1;
18536   }
18537   { /* Pseudo-Infinity.  */
18538     static union { unsigned int word[4]; long double value; } x =
18539       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
18540     if (sprintf (buf, "%Lf", x.value) < 0
18541         || !strisnan (buf, 0, strlen (buf)))
18542       return 1;
18543     if (sprintf (buf, "%Le", x.value) < 0
18544         || !strisnan (buf, 0, strlen (buf)))
18545       return 1;
18546     if (sprintf (buf, "%Lg", x.value) < 0
18547         || !strisnan (buf, 0, strlen (buf)))
18548       return 1;
18549   }
18550   { /* Pseudo-Zero.  */
18551     static union { unsigned int word[4]; long double value; } x =
18552       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
18553     if (sprintf (buf, "%Lf", x.value) < 0
18554         || !strisnan (buf, 0, strlen (buf)))
18555       return 1;
18556     if (sprintf (buf, "%Le", x.value) < 0
18557         || !strisnan (buf, 0, strlen (buf)))
18558       return 1;
18559     if (sprintf (buf, "%Lg", x.value) < 0
18560         || !strisnan (buf, 0, strlen (buf)))
18561       return 1;
18562   }
18563   { /* Unnormalized number.  */
18564     static union { unsigned int word[4]; long double value; } x =
18565       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
18566     if (sprintf (buf, "%Lf", x.value) < 0
18567         || !strisnan (buf, 0, strlen (buf)))
18568       return 1;
18569     if (sprintf (buf, "%Le", x.value) < 0
18570         || !strisnan (buf, 0, strlen (buf)))
18571       return 1;
18572     if (sprintf (buf, "%Lg", x.value) < 0
18573         || !strisnan (buf, 0, strlen (buf)))
18574       return 1;
18575   }
18576   { /* Pseudo-Denormal.  */
18577     static union { unsigned int word[4]; long double value; } x =
18578       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
18579     if (sprintf (buf, "%Lf", x.value) < 0
18580         || !strisnan (buf, 0, strlen (buf)))
18581       return 1;
18582     if (sprintf (buf, "%Le", x.value) < 0
18583         || !strisnan (buf, 0, strlen (buf)))
18584       return 1;
18585     if (sprintf (buf, "%Lg", x.value) < 0
18586         || !strisnan (buf, 0, strlen (buf)))
18587       return 1;
18588   }
18589 #endif
18590   return 0;
18591 }
18592 _ACEOF
18593 if ac_fn_c_try_run "$LINENO"; then :
18594   gl_cv_func_printf_infinite_long_double=yes
18595 else
18596   gl_cv_func_printf_infinite_long_double=no
18597 fi
18598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18599   conftest.$ac_objext conftest.beam conftest.$ac_ext
18600 fi
18601
18602
18603 fi
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite_long_double" >&5
18605 $as_echo "$gl_cv_func_printf_infinite_long_double" >&6; }
18606       ;;
18607     *)
18608       gl_cv_func_printf_infinite_long_double="irrelevant"
18609       ;;
18610   esac
18611
18612
18613
18614      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'a' and 'A' directives" >&5
18615 $as_echo_n "checking whether printf supports the 'a' and 'A' directives... " >&6; }
18616 if test "${gl_cv_func_printf_directive_a+set}" = set; then :
18617   $as_echo_n "(cached) " >&6
18618 else
18619
18620       if test "$cross_compiling" = yes; then :
18621
18622        case "$host_os" in
18623                                # Guess yes on glibc >= 2.5 systems.
18624          *-gnu*)
18625            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18626 /* end confdefs.h.  */
18627
18628              #include <features.h>
18629              #ifdef __GNU_LIBRARY__
18630               #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 5) || (__GLIBC__ > 2)
18631                BZ2908
18632               #endif
18633              #endif
18634
18635 _ACEOF
18636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18637   $EGREP "BZ2908" >/dev/null 2>&1; then :
18638   gl_cv_func_printf_directive_a="guessing yes"
18639 else
18640   gl_cv_func_printf_directive_a="guessing no"
18641 fi
18642 rm -f conftest*
18643
18644            ;;
18645                                # If we don't know, assume the worst.
18646          *)                    gl_cv_func_printf_directive_a="guessing no";;
18647        esac
18648
18649 else
18650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18651 /* end confdefs.h.  */
18652
18653 #include <stdio.h>
18654 #include <string.h>
18655 static char buf[100];
18656 int main ()
18657 {
18658   if (sprintf (buf, "%a %d", 3.1416015625, 33, 44, 55) < 0
18659       || (strcmp (buf, "0x1.922p+1 33") != 0
18660           && strcmp (buf, "0x3.244p+0 33") != 0
18661           && strcmp (buf, "0x6.488p-1 33") != 0
18662           && strcmp (buf, "0xc.91p-2 33") != 0))
18663     return 1;
18664   if (sprintf (buf, "%A %d", -3.1416015625, 33, 44, 55) < 0
18665       || (strcmp (buf, "-0X1.922P+1 33") != 0
18666           && strcmp (buf, "-0X3.244P+0 33") != 0
18667           && strcmp (buf, "-0X6.488P-1 33") != 0
18668           && strcmp (buf, "-0XC.91P-2 33") != 0))
18669     return 1;
18670   /* This catches a FreeBSD 6.1 bug: it doesn't round.  */
18671   if (sprintf (buf, "%.2a %d", 1.51, 33, 44, 55) < 0
18672       || (strcmp (buf, "0x1.83p+0 33") != 0
18673           && strcmp (buf, "0x3.05p-1 33") != 0
18674           && strcmp (buf, "0x6.0ap-2 33") != 0
18675           && strcmp (buf, "0xc.14p-3 33") != 0))
18676     return 1;
18677   /* This catches a FreeBSD 6.1 bug.  See
18678      <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00107.html> */
18679   if (sprintf (buf, "%010a %d", 1.0 / 0.0, 33, 44, 55) < 0
18680       || buf[0] == '0')
18681     return 1;
18682   /* This catches a MacOS X 10.3.9 (Darwin 7.9) bug.  */
18683   if (sprintf (buf, "%.1a", 1.999) < 0
18684       || (strcmp (buf, "0x1.0p+1") != 0
18685           && strcmp (buf, "0x2.0p+0") != 0
18686           && strcmp (buf, "0x4.0p-1") != 0
18687           && strcmp (buf, "0x8.0p-2") != 0))
18688     return 1;
18689   /* This catches the same MacOS X 10.3.9 (Darwin 7.9) bug and also a
18690      glibc 2.4 bug <http://sourceware.org/bugzilla/show_bug.cgi?id=2908>.  */
18691   if (sprintf (buf, "%.1La", 1.999L) < 0
18692       || (strcmp (buf, "0x1.0p+1") != 0
18693           && strcmp (buf, "0x2.0p+0") != 0
18694           && strcmp (buf, "0x4.0p-1") != 0
18695           && strcmp (buf, "0x8.0p-2") != 0))
18696     return 1;
18697   return 0;
18698 }
18699 _ACEOF
18700 if ac_fn_c_try_run "$LINENO"; then :
18701   gl_cv_func_printf_directive_a=yes
18702 else
18703   gl_cv_func_printf_directive_a=no
18704 fi
18705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18706   conftest.$ac_objext conftest.beam conftest.$ac_ext
18707 fi
18708
18709
18710 fi
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_a" >&5
18712 $as_echo "$gl_cv_func_printf_directive_a" >&6; }
18713
18714
18715
18716      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'F' directive" >&5
18717 $as_echo_n "checking whether printf supports the 'F' directive... " >&6; }
18718 if test "${gl_cv_func_printf_directive_f+set}" = set; then :
18719   $as_echo_n "(cached) " >&6
18720 else
18721
18722       if test "$cross_compiling" = yes; then :
18723
18724        case "$host_os" in
18725                                # Guess yes on glibc systems.
18726          *-gnu*)               gl_cv_func_printf_directive_f="guessing yes";;
18727                                # Guess yes on FreeBSD >= 6.
18728          freebsd[1-5]*)        gl_cv_func_printf_directive_f="guessing no";;
18729          freebsd* | kfreebsd*) gl_cv_func_printf_directive_f="guessing yes";;
18730                                # Guess yes on MacOS X >= 10.3.
18731          darwin[1-6].*)        gl_cv_func_printf_directive_f="guessing no";;
18732          darwin*)              gl_cv_func_printf_directive_f="guessing yes";;
18733                                # Guess yes on Solaris >= 2.10.
18734          solaris2.[0-9]*)      gl_cv_func_printf_directive_f="guessing no";;
18735          solaris*)             gl_cv_func_printf_directive_f="guessing yes";;
18736                                # If we don't know, assume the worst.
18737          *)                    gl_cv_func_printf_directive_f="guessing no";;
18738        esac
18739
18740 else
18741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18742 /* end confdefs.h.  */
18743
18744 #include <stdio.h>
18745 #include <string.h>
18746 static char buf[100];
18747 int main ()
18748 {
18749   if (sprintf (buf, "%F %d", 1234567.0, 33, 44, 55) < 0
18750       || strcmp (buf, "1234567.000000 33") != 0)
18751     return 1;
18752   if (sprintf (buf, "%F", 1.0 / 0.0) < 0
18753       || (strcmp (buf, "INF") != 0 && strcmp (buf, "INFINITY") != 0))
18754     return 1;
18755   /* This catches a Cygwin 1.5.x bug.  */
18756   if (sprintf (buf, "%.F", 1234.0) < 0
18757       || strcmp (buf, "1234") != 0)
18758     return 1;
18759   return 0;
18760 }
18761 _ACEOF
18762 if ac_fn_c_try_run "$LINENO"; then :
18763   gl_cv_func_printf_directive_f=yes
18764 else
18765   gl_cv_func_printf_directive_f=no
18766 fi
18767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18768   conftest.$ac_objext conftest.beam conftest.$ac_ext
18769 fi
18770
18771
18772 fi
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_f" >&5
18774 $as_echo "$gl_cv_func_printf_directive_f" >&6; }
18775
18776
18777
18778      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'ls' directive" >&5
18779 $as_echo_n "checking whether printf supports the 'ls' directive... " >&6; }
18780 if test "${gl_cv_func_printf_directive_ls+set}" = set; then :
18781   $as_echo_n "(cached) " >&6
18782 else
18783
18784       if test "$cross_compiling" = yes; then :
18785
18786        case "$host_os" in
18787          openbsd*)        gl_cv_func_printf_directive_ls="guessing no";;
18788          irix*)           gl_cv_func_printf_directive_ls="guessing no";;
18789          solaris*)        gl_cv_func_printf_directive_ls="guessing no";;
18790          cygwin*)         gl_cv_func_printf_directive_ls="guessing no";;
18791          beos* | haiku*)  gl_cv_func_printf_directive_ls="guessing no";;
18792          *)               gl_cv_func_printf_directive_ls="guessing yes";;
18793        esac
18794
18795 else
18796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18797 /* end confdefs.h.  */
18798
18799 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18800    <wchar.h>.
18801    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18802    included before <wchar.h>.  */
18803 #include <stddef.h>
18804 #include <stdio.h>
18805 #include <time.h>
18806 #include <wchar.h>
18807 #include <string.h>
18808 int main ()
18809 {
18810   char buf[100];
18811   /* Test whether %ls works at all.
18812      This test fails on OpenBSD 4.0, IRIX 6.5, Solaris 2.6, Haiku, but not on
18813      Cygwin 1.5.  */
18814   {
18815     static const wchar_t wstring[] = { 'a', 'b', 'c', 0 };
18816     buf[0] = '\0';
18817     if (sprintf (buf, "%ls", wstring) < 0
18818         || strcmp (buf, "abc") != 0)
18819       return 1;
18820   }
18821   /* This test fails on IRIX 6.5, Solaris 2.6, Cygwin 1.5, Haiku (with an
18822      assertion failure inside libc), but not on OpenBSD 4.0.  */
18823   {
18824     static const wchar_t wstring[] = { 'a', 0 };
18825     buf[0] = '\0';
18826     if (sprintf (buf, "%ls", wstring) < 0
18827         || strcmp (buf, "a") != 0)
18828       return 1;
18829   }
18830   /* Test whether precisions in %ls are supported as specified in ISO C 99
18831      section 7.19.6.1:
18832        "If a precision is specified, no more than that many bytes are written
18833         (including shift sequences, if any), and the array shall contain a
18834         null wide character if, to equal the multibyte character sequence
18835         length given by the precision, the function would need to access a
18836         wide character one past the end of the array."
18837      This test fails on Solaris 10.  */
18838   {
18839     static const wchar_t wstring[] = { 'a', 'b', (wchar_t) 0xfdfdfdfd, 0 };
18840     buf[0] = '\0';
18841     if (sprintf (buf, "%.2ls", wstring) < 0
18842         || strcmp (buf, "ab") != 0)
18843       return 1;
18844   }
18845   return 0;
18846 }
18847 _ACEOF
18848 if ac_fn_c_try_run "$LINENO"; then :
18849   gl_cv_func_printf_directive_ls=yes
18850 else
18851   gl_cv_func_printf_directive_ls=no
18852 fi
18853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18854   conftest.$ac_objext conftest.beam conftest.$ac_ext
18855 fi
18856
18857
18858 fi
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_ls" >&5
18860 $as_echo "$gl_cv_func_printf_directive_ls" >&6; }
18861
18862
18863
18864      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the grouping flag" >&5
18865 $as_echo_n "checking whether printf supports the grouping flag... " >&6; }
18866 if test "${gl_cv_func_printf_flag_grouping+set}" = set; then :
18867   $as_echo_n "(cached) " >&6
18868 else
18869
18870       if test "$cross_compiling" = yes; then :
18871
18872        case "$host_os" in
18873          cygwin*)      gl_cv_func_printf_flag_grouping="guessing no";;
18874          netbsd*)      gl_cv_func_printf_flag_grouping="guessing no";;
18875          mingw* | pw*) gl_cv_func_printf_flag_grouping="guessing no";;
18876          *)            gl_cv_func_printf_flag_grouping="guessing yes";;
18877        esac
18878
18879 else
18880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18881 /* end confdefs.h.  */
18882
18883 #include <stdio.h>
18884 #include <string.h>
18885 static char buf[100];
18886 int main ()
18887 {
18888   if (sprintf (buf, "%'d %d", 1234567, 99) < 0
18889       || buf[strlen (buf) - 1] != '9')
18890     return 1;
18891   return 0;
18892 }
18893 _ACEOF
18894 if ac_fn_c_try_run "$LINENO"; then :
18895   gl_cv_func_printf_flag_grouping=yes
18896 else
18897   gl_cv_func_printf_flag_grouping=no
18898 fi
18899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18900   conftest.$ac_objext conftest.beam conftest.$ac_ext
18901 fi
18902
18903
18904 fi
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_grouping" >&5
18906 $as_echo "$gl_cv_func_printf_flag_grouping" >&6; }
18907
18908
18909
18910      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the left-adjust flag correctly" >&5
18911 $as_echo_n "checking whether printf supports the left-adjust flag correctly... " >&6; }
18912 if test "${gl_cv_func_printf_flag_leftadjust+set}" = set; then :
18913   $as_echo_n "(cached) " >&6
18914 else
18915
18916       if test "$cross_compiling" = yes; then :
18917
18918          case "$host_os" in
18919                     # Guess yes on HP-UX 11.
18920            hpux11*) gl_cv_func_printf_flag_leftadjust="guessing yes";;
18921                     # Guess no on HP-UX 10 and older.
18922            hpux*)   gl_cv_func_printf_flag_leftadjust="guessing no";;
18923                     # Guess yes otherwise.
18924            *)       gl_cv_func_printf_flag_leftadjust="guessing yes";;
18925          esac
18926
18927 else
18928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18929 /* end confdefs.h.  */
18930
18931 #include <stdio.h>
18932 #include <string.h>
18933 static char buf[100];
18934 int main ()
18935 {
18936   /* Check that a '-' flag is not annihilated by a negative width.  */
18937   if (sprintf (buf, "a%-*sc", -3, "b") < 0
18938       || strcmp (buf, "ab  c") != 0)
18939     return 1;
18940   return 0;
18941 }
18942 _ACEOF
18943 if ac_fn_c_try_run "$LINENO"; then :
18944   gl_cv_func_printf_flag_leftadjust=yes
18945 else
18946   gl_cv_func_printf_flag_leftadjust=no
18947 fi
18948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18949   conftest.$ac_objext conftest.beam conftest.$ac_ext
18950 fi
18951
18952
18953 fi
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_leftadjust" >&5
18955 $as_echo "$gl_cv_func_printf_flag_leftadjust" >&6; }
18956
18957
18958
18959      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the zero flag correctly" >&5
18960 $as_echo_n "checking whether printf supports the zero flag correctly... " >&6; }
18961 if test "${gl_cv_func_printf_flag_zero+set}" = set; then :
18962   $as_echo_n "(cached) " >&6
18963 else
18964
18965       if test "$cross_compiling" = yes; then :
18966
18967        case "$host_os" in
18968                  # Guess yes on glibc systems.
18969          *-gnu*) gl_cv_func_printf_flag_zero="guessing yes";;
18970                  # Guess yes on BeOS.
18971          beos*)  gl_cv_func_printf_flag_zero="guessing yes";;
18972                  # If we don't know, assume the worst.
18973          *)      gl_cv_func_printf_flag_zero="guessing no";;
18974        esac
18975
18976 else
18977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18978 /* end confdefs.h.  */
18979
18980 #include <stdio.h>
18981 #include <string.h>
18982 static char buf[100];
18983 int main ()
18984 {
18985   if (sprintf (buf, "%010f", 1.0 / 0.0, 33, 44, 55) < 0
18986       || (strcmp (buf, "       inf") != 0
18987           && strcmp (buf, "  infinity") != 0))
18988     return 1;
18989   return 0;
18990 }
18991 _ACEOF
18992 if ac_fn_c_try_run "$LINENO"; then :
18993   gl_cv_func_printf_flag_zero=yes
18994 else
18995   gl_cv_func_printf_flag_zero=no
18996 fi
18997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18998   conftest.$ac_objext conftest.beam conftest.$ac_ext
18999 fi
19000
19001
19002 fi
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_zero" >&5
19004 $as_echo "$gl_cv_func_printf_flag_zero" >&6; }
19005
19006
19007
19008      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports large precisions" >&5
19009 $as_echo_n "checking whether printf supports large precisions... " >&6; }
19010 if test "${gl_cv_func_printf_precision+set}" = set; then :
19011   $as_echo_n "(cached) " >&6
19012 else
19013
19014       if test "$cross_compiling" = yes; then :
19015
19016        case "$host_os" in
19017          # Guess no only on native Win32 and BeOS systems.
19018          mingw* | pw*) gl_cv_func_printf_precision="guessing no" ;;
19019          beos*)        gl_cv_func_printf_precision="guessing no" ;;
19020          *)            gl_cv_func_printf_precision="guessing yes" ;;
19021        esac
19022
19023 else
19024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19025 /* end confdefs.h.  */
19026
19027 #include <stdio.h>
19028 #include <string.h>
19029 static char buf[5000];
19030 int main ()
19031 {
19032 #ifdef __BEOS__
19033   /* On BeOS, this would crash and show a dialog box.  Avoid the crash.  */
19034   return 1;
19035 #endif
19036   if (sprintf (buf, "%.4000d %d", 1, 33, 44) < 4000 + 3)
19037     return 1;
19038   return 0;
19039 }
19040 _ACEOF
19041 if ac_fn_c_try_run "$LINENO"; then :
19042   gl_cv_func_printf_precision=yes
19043 else
19044   gl_cv_func_printf_precision=no
19045 fi
19046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19047   conftest.$ac_objext conftest.beam conftest.$ac_ext
19048 fi
19049
19050
19051 fi
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_precision" >&5
19053 $as_echo "$gl_cv_func_printf_precision" >&6; }
19054
19055
19056
19057
19058      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf survives out-of-memory conditions" >&5
19059 $as_echo_n "checking whether printf survives out-of-memory conditions... " >&6; }
19060 if test "${gl_cv_func_printf_enomem+set}" = set; then :
19061   $as_echo_n "(cached) " >&6
19062 else
19063
19064       gl_cv_func_printf_enomem="guessing no"
19065       if test "$cross_compiling" = no; then
19066         if test $APPLE_UNIVERSAL_BUILD = 0; then
19067           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19068 /* end confdefs.h.  */
19069
19070
19071 #include <stdlib.h>
19072 #if defined __MACH__ && defined __APPLE__
19073 /* Avoid a crash on MacOS X.  */
19074 #include <mach/mach.h>
19075 #include <mach/mach_error.h>
19076 #include <mach/thread_status.h>
19077 #include <mach/exception.h>
19078 #include <mach/task.h>
19079 #include <pthread.h>
19080 /* The exception port on which our thread listens.  */
19081 static mach_port_t our_exception_port;
19082 /* The main function of the thread listening for exceptions of type
19083    EXC_BAD_ACCESS.  */
19084 static void *
19085 mach_exception_thread (void *arg)
19086 {
19087   /* Buffer for a message to be received.  */
19088   struct {
19089     mach_msg_header_t head;
19090     mach_msg_body_t msgh_body;
19091     char data1024;
19092   } msg;
19093   mach_msg_return_t retval;
19094   /* Wait for a message on the exception port.  */
19095   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19096                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19097   if (retval != MACH_MSG_SUCCESS)
19098     abort ();
19099   exit (1);
19100 }
19101 static void
19102 nocrash_init (void)
19103 {
19104   mach_port_t self = mach_task_self ();
19105   /* Allocate a port on which the thread shall listen for exceptions.  */
19106   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19107       == KERN_SUCCESS) {
19108     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
19109     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19110                                 MACH_MSG_TYPE_MAKE_SEND)
19111         == KERN_SUCCESS) {
19112       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
19113          for us.  */
19114       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19115       /* Create the thread listening on the exception port.  */
19116       pthread_attr_t attr;
19117       pthread_t thread;
19118       if (pthread_attr_init (&attr) == 0
19119           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19120           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19121         pthread_attr_destroy (&attr);
19122         /* Replace the exception port info for these exceptions with our own.
19123            Note that we replace the exception port for the entire task, not only
19124            for a particular thread.  This has the effect that when our exception
19125            port gets the message, the thread specific exception port has already
19126            been asked, and we don't need to bother about it.
19127            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
19128         task_set_exception_ports (self, mask, our_exception_port,
19129                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19130       }
19131     }
19132   }
19133 }
19134 #else
19135 /* Avoid a crash on POSIX systems.  */
19136 #include <signal.h>
19137 /* A POSIX signal handler.  */
19138 static void
19139 exception_handler (int sig)
19140 {
19141   exit (1);
19142 }
19143 static void
19144 nocrash_init (void)
19145 {
19146 #ifdef SIGSEGV
19147   signal (SIGSEGV, exception_handler);
19148 #endif
19149 #ifdef SIGBUS
19150   signal (SIGBUS, exception_handler);
19151 #endif
19152 }
19153 #endif
19154
19155 #include <stdio.h>
19156 #include <sys/types.h>
19157 #include <sys/time.h>
19158 #include <sys/resource.h>
19159 #include <errno.h>
19160 int main()
19161 {
19162   struct rlimit limit;
19163   int ret;
19164   nocrash_init ();
19165   /* Some printf implementations allocate temporary space with malloc.  */
19166   /* On BSD systems, malloc() is limited by RLIMIT_DATA.  */
19167 #ifdef RLIMIT_DATA
19168   if (getrlimit (RLIMIT_DATA, &limit) < 0)
19169     return 77;
19170   if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
19171     limit.rlim_max = 5000000;
19172   limit.rlim_cur = limit.rlim_max;
19173   if (setrlimit (RLIMIT_DATA, &limit) < 0)
19174     return 77;
19175 #endif
19176   /* On Linux systems, malloc() is limited by RLIMIT_AS.  */
19177 #ifdef RLIMIT_AS
19178   if (getrlimit (RLIMIT_AS, &limit) < 0)
19179     return 77;
19180   if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
19181     limit.rlim_max = 5000000;
19182   limit.rlim_cur = limit.rlim_max;
19183   if (setrlimit (RLIMIT_AS, &limit) < 0)
19184     return 77;
19185 #endif
19186   /* Some printf implementations allocate temporary space on the stack.  */
19187 #ifdef RLIMIT_STACK
19188   if (getrlimit (RLIMIT_STACK, &limit) < 0)
19189     return 77;
19190   if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
19191     limit.rlim_max = 5000000;
19192   limit.rlim_cur = limit.rlim_max;
19193   if (setrlimit (RLIMIT_STACK, &limit) < 0)
19194     return 77;
19195 #endif
19196   ret = printf ("%.5000000f", 1.0);
19197   return !(ret == 5000002 || (ret < 0 && errno == ENOMEM));
19198 }
19199
19200 _ACEOF
19201           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19202   (eval $ac_link) 2>&5
19203   ac_status=$?
19204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19205   test $ac_status = 0; } && test -s conftest$ac_exeext; then
19206             (./conftest
19207              result=$?
19208              if test $result != 0 && test $result != 77; then result=1; fi
19209              exit $result
19210             ) >/dev/null 2>/dev/null
19211             case $? in
19212               0) gl_cv_func_printf_enomem="yes" ;;
19213               77) gl_cv_func_printf_enomem="guessing no" ;;
19214               *) gl_cv_func_printf_enomem="no" ;;
19215             esac
19216           else
19217             gl_cv_func_printf_enomem="guessing no"
19218           fi
19219           rm -fr conftest*
19220         else
19221                                         gl_cv_func_printf_enomem="guessing no"
19222         fi
19223       fi
19224       if test "$gl_cv_func_printf_enomem" = "guessing no"; then
19225         case "$host_os" in
19226                     # Guess yes on glibc systems.
19227           *-gnu*)   gl_cv_func_printf_enomem="guessing yes";;
19228                     # Guess yes on Solaris.
19229           solaris*) gl_cv_func_printf_enomem="guessing yes";;
19230                     # Guess yes on AIX.
19231           aix*)     gl_cv_func_printf_enomem="guessing yes";;
19232                     # Guess yes on HP-UX/hppa.
19233           hpux*)    case "$host_cpu" in
19234                       hppa*) gl_cv_func_printf_enomem="guessing yes";;
19235                       *)     gl_cv_func_printf_enomem="guessing no";;
19236                     esac
19237                     ;;
19238                     # Guess yes on IRIX.
19239           irix*)    gl_cv_func_printf_enomem="guessing yes";;
19240                     # Guess yes on OSF/1.
19241           osf*)     gl_cv_func_printf_enomem="guessing yes";;
19242                     # Guess yes on BeOS.
19243           beos*)    gl_cv_func_printf_enomem="guessing yes";;
19244                     # Guess yes on Haiku.
19245           haiku*)   gl_cv_func_printf_enomem="guessing yes";;
19246                     # If we don't know, assume the worst.
19247           *)        gl_cv_func_printf_enomem="guessing no";;
19248         esac
19249       fi
19250
19251 fi
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_enomem" >&5
19253 $as_echo "$gl_cv_func_printf_enomem" >&6; }
19254
19255
19256
19257
19258
19259
19260             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
19261 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
19262 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
19263   $as_echo_n "(cached) " >&6
19264 else
19265   gl_cv_header_wchar_h_correct_inline=yes
19266      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19267 /* end confdefs.h.  */
19268
19269        #define wcstod renamed_wcstod
19270 #include <wchar.h>
19271 extern int zero (void);
19272 int main () { return zero(); }
19273
19274 _ACEOF
19275      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19276   (eval $ac_compile) 2>&5
19277   ac_status=$?
19278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19279   test $ac_status = 0; }; then
19280        mv conftest.$ac_objext conftest1.$ac_objext
19281        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19282 /* end confdefs.h.  */
19283
19284          #define wcstod renamed_wcstod
19285 #include <wchar.h>
19286 int zero (void) { return 0; }
19287
19288 _ACEOF
19289        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19290   (eval $ac_compile) 2>&5
19291   ac_status=$?
19292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19293   test $ac_status = 0; }; then
19294          mv conftest.$ac_objext conftest2.$ac_objext
19295          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
19296            :
19297          else
19298            gl_cv_header_wchar_h_correct_inline=no
19299          fi
19300        fi
19301      fi
19302      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
19303
19304 fi
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
19306 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
19307   if test $gl_cv_header_wchar_h_correct_inline = no; then
19308     as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
19309 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
19310 C99 mode. You have four options:
19311   - Add the flag -fgnu89-inline to CC and reconfigure, or
19312   - Fix your include files, using parts of
19313     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
19314   - Use a gcc version older than 4.3, or
19315   - Don't use the flags -std=c99 or -std=gnu99.
19316 Configuration aborted." "$LINENO" 5
19317   fi
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
19333 $as_echo_n "checking if environ is properly declared... " >&6; }
19334   if test "${gt_cv_var_environ_declaration+set}" = set; then :
19335   $as_echo_n "(cached) " >&6
19336 else
19337
19338     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19339 /* end confdefs.h.  */
19340 #include <unistd.h>
19341       extern struct { int foo; } environ;
19342 int
19343 main ()
19344 {
19345 environ.foo = 1;
19346   ;
19347   return 0;
19348 }
19349 _ACEOF
19350 if ac_fn_c_try_compile "$LINENO"; then :
19351   gt_cv_var_environ_declaration=no
19352 else
19353   gt_cv_var_environ_declaration=yes
19354 fi
19355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19356 fi
19357
19358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
19359 $as_echo "$gt_cv_var_environ_declaration" >&6; }
19360   if test $gt_cv_var_environ_declaration = yes; then
19361
19362 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
19363
19364   fi
19365
19366
19367   if test $gt_cv_var_environ_declaration != yes; then
19368     HAVE_DECL_ENVIRON=0
19369   fi
19370
19371 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
19372 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
19373   ac_have_decl=1
19374 else
19375   ac_have_decl=0
19376 fi
19377
19378 cat >>confdefs.h <<_ACEOF
19379 #define HAVE_DECL_STRERROR_R $ac_have_decl
19380 _ACEOF
19381
19382 for ac_func in strerror_r
19383 do :
19384   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
19385 if test "x$ac_cv_func_strerror_r" = x""yes; then :
19386   cat >>confdefs.h <<_ACEOF
19387 #define HAVE_STRERROR_R 1
19388 _ACEOF
19389
19390 fi
19391 done
19392
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
19394 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
19395 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
19396   $as_echo_n "(cached) " >&6
19397 else
19398
19399     ac_cv_func_strerror_r_char_p=no
19400     if test $ac_cv_have_decl_strerror_r = yes; then
19401       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19402 /* end confdefs.h.  */
19403 $ac_includes_default
19404 int
19405 main ()
19406 {
19407
19408           char buf[100];
19409           char x = *strerror_r (0, buf, sizeof buf);
19410           char *p = strerror_r (0, buf, sizeof buf);
19411           return !p || x;
19412
19413   ;
19414   return 0;
19415 }
19416 _ACEOF
19417 if ac_fn_c_try_compile "$LINENO"; then :
19418   ac_cv_func_strerror_r_char_p=yes
19419 fi
19420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19421     else
19422       # strerror_r is not declared.  Choose between
19423       # systems that have relatively inaccessible declarations for the
19424       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
19425       # former has a strerror_r that returns char*, while the latter
19426       # has a strerror_r that returns `int'.
19427       # This test should segfault on the DEC system.
19428       if test "$cross_compiling" = yes; then :
19429   :
19430 else
19431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19432 /* end confdefs.h.  */
19433 $ac_includes_default
19434         extern char *strerror_r ();
19435 int
19436 main ()
19437 {
19438 char buf[100];
19439           char x = *strerror_r (0, buf, sizeof buf);
19440           return ! isalpha (x);
19441   ;
19442   return 0;
19443 }
19444 _ACEOF
19445 if ac_fn_c_try_run "$LINENO"; then :
19446   ac_cv_func_strerror_r_char_p=yes
19447 fi
19448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19449   conftest.$ac_objext conftest.beam conftest.$ac_ext
19450 fi
19451
19452     fi
19453
19454 fi
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
19456 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
19457 if test $ac_cv_func_strerror_r_char_p = yes; then
19458
19459 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
19460
19461 fi
19462
19463
19464   XGETTEXT_EXTRA_OPTIONS=
19465
19466
19467   GNULIB_DUPLOCALE=0;
19468     HAVE_DUPLOCALE=1;
19469   REPLACE_DUPLOCALE=0;
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482   if test $ac_cv_func_setenv = no; then
19483     HAVE_SETENV=0
19484   else
19485     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
19486 $as_echo_n "checking whether setenv validates arguments... " >&6; }
19487 if test "${gl_cv_func_setenv_works+set}" = set; then :
19488   $as_echo_n "(cached) " >&6
19489 else
19490   if test "$cross_compiling" = yes; then :
19491   gl_cv_func_setenv_works="guessing no"
19492 else
19493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19494 /* end confdefs.h.  */
19495
19496        #include <stdlib.h>
19497        #include <errno.h>
19498        #include <string.h>
19499
19500 int
19501 main ()
19502 {
19503
19504        if (setenv ("", "", 0) != -1) return 1;
19505        if (errno != EINVAL) return 2;
19506        if (setenv ("a", "=", 1) != 0) return 3;
19507        if (strcmp (getenv ("a"), "=") != 0) return 4;
19508
19509   ;
19510   return 0;
19511 }
19512 _ACEOF
19513 if ac_fn_c_try_run "$LINENO"; then :
19514   gl_cv_func_setenv_works=yes
19515 else
19516   gl_cv_func_setenv_works=no
19517 fi
19518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19519   conftest.$ac_objext conftest.beam conftest.$ac_ext
19520 fi
19521
19522 fi
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
19524 $as_echo "$gl_cv_func_setenv_works" >&6; }
19525     if test "$gl_cv_func_setenv_works" != yes; then
19526       REPLACE_SETENV=1
19527
19528
19529
19530
19531
19532
19533
19534
19535   gltests_LIBOBJS="$gltests_LIBOBJS setenv.$ac_objext"
19536
19537     fi
19538   fi
19539
19540
19541
19542
19543   for ac_header in search.h
19544 do :
19545   ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
19546 if test "x$ac_cv_header_search_h" = x""yes; then :
19547   cat >>confdefs.h <<_ACEOF
19548 #define HAVE_SEARCH_H 1
19549 _ACEOF
19550
19551 fi
19552
19553 done
19554
19555   for ac_func in tsearch
19556 do :
19557   ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
19558 if test "x$ac_cv_func_tsearch" = x""yes; then :
19559   cat >>confdefs.h <<_ACEOF
19560 #define HAVE_TSEARCH 1
19561 _ACEOF
19562
19563 fi
19564 done
19565
19566
19567
19568
19569
19570
19571
19572
19573   if test -z "$ERRNO_H"; then
19574     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
19575 $as_echo_n "checking for working strerror function... " >&6; }
19576 if test "${gl_cv_func_working_strerror+set}" = set; then :
19577   $as_echo_n "(cached) " >&6
19578 else
19579   if test "$cross_compiling" = yes; then :
19580            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19581 /* end confdefs.h.  */
19582 #include <string.h>
19583
19584 int
19585 main ()
19586 {
19587 return !*strerror (-2);
19588   ;
19589   return 0;
19590 }
19591 _ACEOF
19592 if ac_fn_c_try_compile "$LINENO"; then :
19593   gl_cv_func_working_strerror=yes
19594 else
19595   gl_cv_func_working_strerror=no
19596 fi
19597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19598
19599 else
19600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19601 /* end confdefs.h.  */
19602 #include <string.h>
19603
19604 int
19605 main ()
19606 {
19607 return !*strerror (-2);
19608   ;
19609   return 0;
19610 }
19611 _ACEOF
19612 if ac_fn_c_try_run "$LINENO"; then :
19613   gl_cv_func_working_strerror=yes
19614 else
19615   gl_cv_func_working_strerror=no
19616 fi
19617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19618   conftest.$ac_objext conftest.beam conftest.$ac_ext
19619 fi
19620
19621
19622 fi
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
19624 $as_echo "$gl_cv_func_working_strerror" >&6; }
19625     if test $gl_cv_func_working_strerror = no; then
19626                   REPLACE_STRERROR=1
19627     fi
19628   else
19629             REPLACE_STRERROR=1
19630   fi
19631   if test $REPLACE_STRERROR = 1; then
19632
19633   ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
19634 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
19635   ac_have_decl=1
19636 else
19637   ac_have_decl=0
19638 fi
19639
19640 cat >>confdefs.h <<_ACEOF
19641 #define HAVE_DECL_STRERROR $ac_have_decl
19642 _ACEOF
19643
19644
19645   if test $ac_cv_header_sys_socket_h != yes; then
19646                     for ac_header in winsock2.h
19647 do :
19648   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19649 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19650   cat >>confdefs.h <<_ACEOF
19651 #define HAVE_WINSOCK2_H 1
19652 _ACEOF
19653
19654 fi
19655
19656 done
19657
19658   fi
19659
19660   fi
19661
19662 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
19663 if test "x$ac_cv_have_decl_alarm" = x""yes; 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_ALARM $ac_have_decl
19671 _ACEOF
19672
19673
19674
19675
19676    if true; then
19677   GL_COND_LIBTOOL_TRUE=
19678   GL_COND_LIBTOOL_FALSE='#'
19679 else
19680   GL_COND_LIBTOOL_TRUE='#'
19681   GL_COND_LIBTOOL_FALSE=
19682 fi
19683
19684   gl_cond_libtool=true
19685   gl_m4_base='gnulib-m4'
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695   gl_source_base='lib'
19696   # Code from module alloca-opt:
19697
19698
19699
19700
19701
19702   if test $ac_cv_func_alloca_works = no; then
19703     :
19704   fi
19705
19706   # Define an additional variable used in the Makefile substitution.
19707   if test $ac_cv_working_alloca_h = yes; then
19708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19709 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19710 if test "${gl_cv_rpl_alloca+set}" = set; then :
19711   $as_echo_n "(cached) " >&6
19712 else
19713
19714       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19715 /* end confdefs.h.  */
19716
19717 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19718         Need own alloca
19719 #endif
19720
19721 _ACEOF
19722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19723   $EGREP "Need own alloca" >/dev/null 2>&1; then :
19724   gl_cv_rpl_alloca=yes
19725 else
19726   gl_cv_rpl_alloca=no
19727 fi
19728 rm -f conftest*
19729
19730
19731 fi
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19733 $as_echo "$gl_cv_rpl_alloca" >&6; }
19734     if test $gl_cv_rpl_alloca = yes; then
19735
19736 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19737
19738       ALLOCA_H=alloca.h
19739     else
19740                   ALLOCA_H=
19741     fi
19742   else
19743     ALLOCA_H=alloca.h
19744   fi
19745
19746
19747   # Code from module arg-nonnull:
19748   # Code from module array-mergesort:
19749   # Code from module c++defs:
19750   # Code from module c-ctype:
19751   # Code from module c-strcase:
19752   # Code from module c-strcaseeq:
19753   # Code from module configmake:
19754   # Code from module errno:
19755
19756   # Code from module extensions:
19757   # Code from module float:
19758
19759
19760
19761   FLOAT_H=
19762   case "$host_os" in
19763     beos* | openbsd*)
19764       FLOAT_H=float.h
19765
19766
19767
19768
19769
19770
19771      if test $gl_cv_have_include_next = yes; then
19772        gl_cv_next_float_h='<'float.h'>'
19773      else
19774        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
19775 $as_echo_n "checking absolute name of <float.h>... " >&6; }
19776 if test "${gl_cv_next_float_h+set}" = set; then :
19777   $as_echo_n "(cached) " >&6
19778 else
19779
19780           if test $ac_cv_header_float_h = yes; then
19781             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19782 /* end confdefs.h.  */
19783 #include <float.h>
19784
19785 _ACEOF
19786                                                                                                 case "$host_os" in
19787               aix*) gl_absname_cpp="$ac_cpp -C" ;;
19788               *)    gl_absname_cpp="$ac_cpp" ;;
19789             esac
19790                                                 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19791                sed -n '\#/float.h#{
19792                  s#.*"\(.*/float.h\)".*#\1#
19793                  s#^/[^/]#//&#
19794                  p
19795                  q
19796                }'`'"'
19797           else
19798             gl_cv_next_float_h='<'float.h'>'
19799           fi
19800
19801 fi
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
19803 $as_echo "$gl_cv_next_float_h" >&6; }
19804      fi
19805      NEXT_FLOAT_H=$gl_cv_next_float_h
19806
19807      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19808        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19809        gl_next_as_first_directive='<'float.h'>'
19810      else
19811        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19812        gl_next_as_first_directive=$gl_cv_next_float_h
19813      fi
19814      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
19815
19816
19817
19818       ;;
19819   esac
19820
19821
19822   # Code from module fpieee:
19823   # Code from module fpucw:
19824   # Code from module frexpl-nolibm:
19825
19826
19827       ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
19828 "
19829 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
19830
19831 else
19832   HAVE_DECL_FREXPL=0
19833 fi
19834
19835   if test $HAVE_DECL_FREXPL = 1; then
19836     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
19837 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
19838 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
19839   $as_echo_n "(cached) " >&6
19840 else
19841
19842         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19843 /* end confdefs.h.  */
19844 #include <math.h>
19845                      long double x;
19846 int
19847 main ()
19848 {
19849 int e; return frexpl (x, &e) > 0;
19850   ;
19851   return 0;
19852 }
19853 _ACEOF
19854 if ac_fn_c_try_link "$LINENO"; then :
19855   gl_cv_func_frexpl_no_libm=yes
19856 else
19857   gl_cv_func_frexpl_no_libm=no
19858 fi
19859 rm -f core conftest.err conftest.$ac_objext \
19860     conftest$ac_exeext conftest.$ac_ext
19861
19862 fi
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
19864 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
19865     if test $gl_cv_func_frexpl_no_libm = yes; then
19866
19867
19868      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
19869 $as_echo_n "checking whether frexpl works... " >&6; }
19870 if test "${gl_cv_func_frexpl_works+set}" = set; then :
19871   $as_echo_n "(cached) " >&6
19872 else
19873
19874       if test "$cross_compiling" = yes; then :
19875   case "$host_os" in
19876          aix* | beos* | darwin* | irix* | mingw* | pw*)
19877             gl_cv_func_frexpl_works="guessing no";;
19878          *) gl_cv_func_frexpl_works="guessing yes";;
19879        esac
19880
19881 else
19882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19883 /* end confdefs.h.  */
19884
19885 #include <float.h>
19886 #include <math.h>
19887 /* Override the values of <float.h>, like done in float.in.h.  */
19888 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
19889 # undef LDBL_MIN_EXP
19890 # define LDBL_MIN_EXP    (-16381)
19891 #endif
19892 extern long double frexpl (long double, int *);
19893 int main()
19894 {
19895   volatile long double x;
19896   /* Test on finite numbers that fails on AIX 5.1.  */
19897   x = 16.0L;
19898   {
19899     int exp = -9999;
19900     frexpl (x, &exp);
19901     if (exp != 5)
19902       return 1;
19903   }
19904   /* Test on finite numbers that fails on MacOS X 10.4, because its frexpl
19905      function returns an invalid (incorrectly normalized) value: it returns
19906                y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
19907      but the correct result is
19908           0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 }  */
19909   x = 1.01L;
19910   {
19911     int exp = -9999;
19912     long double y = frexpl (x, &exp);
19913     if (!(exp == 1 && y == 0.505L))
19914       return 1;
19915   }
19916   /* Test on large finite numbers.  This fails on BeOS at i = 16322, while
19917      LDBL_MAX_EXP = 16384.
19918      In the loop end test, we test x against Infinity, rather than comparing
19919      i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP.  */
19920   {
19921     int i;
19922     for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
19923       {
19924         int exp = -9999;
19925         frexpl (x, &exp);
19926         if (exp != i)
19927           return 1;
19928       }
19929   }
19930   /* Test on denormalized numbers.  */
19931   {
19932     int i;
19933     for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
19934       ;
19935     if (x > 0.0L)
19936       {
19937         int exp;
19938         long double y = frexpl (x, &exp);
19939         /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
19940            exp = -16382, y = 0.5.  On MacOS X 10.5: exp = -16384, y = 0.5.  */
19941         if (exp != LDBL_MIN_EXP - 1)
19942           return 1;
19943       }
19944   }
19945   /* Test on infinite numbers.  */
19946   x = 1.0L / 0.0L;
19947   {
19948     int exp;
19949     long double y = frexpl (x, &exp);
19950     if (y != x)
19951       return 1;
19952   }
19953   return 0;
19954 }
19955 _ACEOF
19956 if ac_fn_c_try_run "$LINENO"; then :
19957   gl_cv_func_frexpl_works=yes
19958 else
19959   gl_cv_func_frexpl_works=no
19960 fi
19961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19962   conftest.$ac_objext conftest.beam conftest.$ac_ext
19963 fi
19964
19965
19966 fi
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
19968 $as_echo "$gl_cv_func_frexpl_works" >&6; }
19969
19970       case "$gl_cv_func_frexpl_works" in
19971         *yes) gl_func_frexpl_no_libm=yes ;;
19972         *)    gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
19973       esac
19974     else
19975       gl_func_frexpl_no_libm=no
19976             REPLACE_FREXPL=1
19977     fi
19978     if test $gl_func_frexpl_no_libm = yes; then
19979
19980 $as_echo "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h
19981
19982     fi
19983   fi
19984   if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl_no_libm = no; then
19985
19986
19987
19988
19989
19990
19991
19992
19993   gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
19994
19995   fi
19996
19997
19998
19999
20000   GNULIB_FREXPL=1
20001
20002
20003
20004 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
20005
20006
20007
20008   # Code from module fseterr:
20009   # Code from module gperf:
20010   # Code from module havelib:
20011   # Code from module iconv:
20012
20013
20014
20015
20016
20017           am_save_CPPFLAGS="$CPPFLAGS"
20018
20019   for element in $INCICONV; do
20020     haveit=
20021     for x in $CPPFLAGS; do
20022
20023   acl_save_prefix="$prefix"
20024   prefix="$acl_final_prefix"
20025   acl_save_exec_prefix="$exec_prefix"
20026   exec_prefix="$acl_final_exec_prefix"
20027   eval x=\"$x\"
20028   exec_prefix="$acl_save_exec_prefix"
20029   prefix="$acl_save_prefix"
20030
20031       if test "X$x" = "X$element"; then
20032         haveit=yes
20033         break
20034       fi
20035     done
20036     if test -z "$haveit"; then
20037       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20038     fi
20039   done
20040
20041
20042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20043 $as_echo_n "checking for iconv... " >&6; }
20044 if test "${am_cv_func_iconv+set}" = set; then :
20045   $as_echo_n "(cached) " >&6
20046 else
20047
20048     am_cv_func_iconv="no, consider installing GNU libiconv"
20049     am_cv_lib_iconv=no
20050     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20051 /* end confdefs.h.  */
20052 #include <stdlib.h>
20053 #include <iconv.h>
20054 int
20055 main ()
20056 {
20057 iconv_t cd = iconv_open("","");
20058        iconv(cd,NULL,NULL,NULL,NULL);
20059        iconv_close(cd);
20060   ;
20061   return 0;
20062 }
20063 _ACEOF
20064 if ac_fn_c_try_link "$LINENO"; then :
20065   am_cv_func_iconv=yes
20066 fi
20067 rm -f core conftest.err conftest.$ac_objext \
20068     conftest$ac_exeext conftest.$ac_ext
20069     if test "$am_cv_func_iconv" != yes; then
20070       am_save_LIBS="$LIBS"
20071       LIBS="$LIBS $LIBICONV"
20072       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20073 /* end confdefs.h.  */
20074 #include <stdlib.h>
20075 #include <iconv.h>
20076 int
20077 main ()
20078 {
20079 iconv_t cd = iconv_open("","");
20080          iconv(cd,NULL,NULL,NULL,NULL);
20081          iconv_close(cd);
20082   ;
20083   return 0;
20084 }
20085 _ACEOF
20086 if ac_fn_c_try_link "$LINENO"; then :
20087   am_cv_lib_iconv=yes
20088         am_cv_func_iconv=yes
20089 fi
20090 rm -f core conftest.err conftest.$ac_objext \
20091     conftest$ac_exeext conftest.$ac_ext
20092       LIBS="$am_save_LIBS"
20093     fi
20094
20095 fi
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20097 $as_echo "$am_cv_func_iconv" >&6; }
20098   if test "$am_cv_func_iconv" = yes; then
20099     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
20100 $as_echo_n "checking for working iconv... " >&6; }
20101 if test "${am_cv_func_iconv_works+set}" = set; then :
20102   $as_echo_n "(cached) " >&6
20103 else
20104
20105             am_save_LIBS="$LIBS"
20106       if test $am_cv_lib_iconv = yes; then
20107         LIBS="$LIBS $LIBICONV"
20108       fi
20109       if test "$cross_compiling" = yes; then :
20110   case "$host_os" in
20111            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
20112            *)            am_cv_func_iconv_works="guessing yes" ;;
20113          esac
20114 else
20115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20116 /* end confdefs.h.  */
20117
20118 #include <iconv.h>
20119 #include <string.h>
20120 int main ()
20121 {
20122   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
20123      returns.  */
20124   {
20125     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
20126     if (cd_utf8_to_88591 != (iconv_t)(-1))
20127       {
20128         static const char input[] = "\342\202\254"; /* EURO SIGN */
20129         char buf[10];
20130         const char *inptr = input;
20131         size_t inbytesleft = strlen (input);
20132         char *outptr = buf;
20133         size_t outbytesleft = sizeof (buf);
20134         size_t res = iconv (cd_utf8_to_88591,
20135                             (char **) &inptr, &inbytesleft,
20136                             &outptr, &outbytesleft);
20137         if (res == 0)
20138           return 1;
20139       }
20140   }
20141   /* Test against Solaris 10 bug: Failures are not distinguishable from
20142      successful returns.  */
20143   {
20144     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
20145     if (cd_ascii_to_88591 != (iconv_t)(-1))
20146       {
20147         static const char input[] = "\263";
20148         char buf[10];
20149         const char *inptr = input;
20150         size_t inbytesleft = strlen (input);
20151         char *outptr = buf;
20152         size_t outbytesleft = sizeof (buf);
20153         size_t res = iconv (cd_ascii_to_88591,
20154                             (char **) &inptr, &inbytesleft,
20155                             &outptr, &outbytesleft);
20156         if (res == 0)
20157           return 1;
20158       }
20159   }
20160 #if 0 /* This bug could be worked around by the caller.  */
20161   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
20162   {
20163     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
20164     if (cd_88591_to_utf8 != (iconv_t)(-1))
20165       {
20166         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
20167         char buf[50];
20168         const char *inptr = input;
20169         size_t inbytesleft = strlen (input);
20170         char *outptr = buf;
20171         size_t outbytesleft = sizeof (buf);
20172         size_t res = iconv (cd_88591_to_utf8,
20173                             (char **) &inptr, &inbytesleft,
20174                             &outptr, &outbytesleft);
20175         if ((int)res > 0)
20176           return 1;
20177       }
20178   }
20179 #endif
20180   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
20181      provided.  */
20182   if (/* Try standardized names.  */
20183       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
20184       /* Try IRIX, OSF/1 names.  */
20185       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
20186       /* Try AIX names.  */
20187       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
20188       /* Try HP-UX names.  */
20189       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
20190     return 1;
20191   return 0;
20192 }
20193 _ACEOF
20194 if ac_fn_c_try_run "$LINENO"; then :
20195   am_cv_func_iconv_works=yes
20196 else
20197   am_cv_func_iconv_works=no
20198 fi
20199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20200   conftest.$ac_objext conftest.beam conftest.$ac_ext
20201 fi
20202
20203       LIBS="$am_save_LIBS"
20204
20205 fi
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
20207 $as_echo "$am_cv_func_iconv_works" >&6; }
20208     case "$am_cv_func_iconv_works" in
20209       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
20210       *)   am_func_iconv=yes ;;
20211     esac
20212   else
20213     am_func_iconv=no am_cv_lib_iconv=no
20214   fi
20215   if test "$am_func_iconv" = yes; then
20216
20217 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20218
20219   fi
20220   if test "$am_cv_lib_iconv" = yes; then
20221     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20222 $as_echo_n "checking how to link with libiconv... " >&6; }
20223     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20224 $as_echo "$LIBICONV" >&6; }
20225   else
20226             CPPFLAGS="$am_save_CPPFLAGS"
20227     LIBICONV=
20228     LTLIBICONV=
20229   fi
20230
20231
20232
20233   if test "$am_cv_func_iconv" = yes; then
20234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20235 $as_echo_n "checking for iconv declaration... " >&6; }
20236     if test "${am_cv_proto_iconv+set}" = set; then :
20237   $as_echo_n "(cached) " >&6
20238 else
20239
20240       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20241 /* end confdefs.h.  */
20242
20243 #include <stdlib.h>
20244 #include <iconv.h>
20245 extern
20246 #ifdef __cplusplus
20247 "C"
20248 #endif
20249 #if defined(__STDC__) || defined(__cplusplus)
20250 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20251 #else
20252 size_t iconv();
20253 #endif
20254
20255 int
20256 main ()
20257 {
20258
20259   ;
20260   return 0;
20261 }
20262 _ACEOF
20263 if ac_fn_c_try_compile "$LINENO"; then :
20264   am_cv_proto_iconv_arg1=""
20265 else
20266   am_cv_proto_iconv_arg1="const"
20267 fi
20268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20269       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);"
20270 fi
20271
20272     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20273     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
20274          $am_cv_proto_iconv" >&5
20275 $as_echo "
20276          $am_cv_proto_iconv" >&6; }
20277
20278 cat >>confdefs.h <<_ACEOF
20279 #define ICONV_CONST $am_cv_proto_iconv_arg1
20280 _ACEOF
20281
20282   fi
20283
20284   # Code from module iconv-h:
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294      if test $gl_cv_have_include_next = yes; then
20295        gl_cv_next_iconv_h='<'iconv.h'>'
20296      else
20297        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5
20298 $as_echo_n "checking absolute name of <iconv.h>... " >&6; }
20299 if test "${gl_cv_next_iconv_h+set}" = set; then :
20300   $as_echo_n "(cached) " >&6
20301 else
20302
20303           if test $ac_cv_header_iconv_h = yes; then
20304             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20305 /* end confdefs.h.  */
20306 #include <iconv.h>
20307
20308 _ACEOF
20309                                                                                                 case "$host_os" in
20310               aix*) gl_absname_cpp="$ac_cpp -C" ;;
20311               *)    gl_absname_cpp="$ac_cpp" ;;
20312             esac
20313                                                 gl_cv_next_iconv_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20314                sed -n '\#/iconv.h#{
20315                  s#.*"\(.*/iconv.h\)".*#\1#
20316                  s#^/[^/]#//&#
20317                  p
20318                  q
20319                }'`'"'
20320           else
20321             gl_cv_next_iconv_h='<'iconv.h'>'
20322           fi
20323
20324 fi
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5
20326 $as_echo "$gl_cv_next_iconv_h" >&6; }
20327      fi
20328      NEXT_ICONV_H=$gl_cv_next_iconv_h
20329
20330      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20331        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20332        gl_next_as_first_directive='<'iconv.h'>'
20333      else
20334        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20335        gl_next_as_first_directive=$gl_cv_next_iconv_h
20336      fi
20337      NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
20338
20339
20340
20341
20342   # Code from module iconv_open:
20343
20344
20345
20346
20347   if test "$am_cv_func_iconv" = yes; then
20348
20349
20350   ICONV_H='iconv.h'
20351
20352             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20353 /* end confdefs.h.  */
20354
20355       #include <iconv.h>
20356       #if defined _LIBICONV_VERSION || defined __GLIBC__
20357        gnu_iconv
20358       #endif
20359
20360 _ACEOF
20361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20362   $EGREP "gnu_iconv" >/dev/null 2>&1; then :
20363   gl_func_iconv_gnu=yes
20364 else
20365   gl_func_iconv_gnu=no
20366 fi
20367 rm -f conftest*
20368
20369     if test $gl_func_iconv_gnu = no; then
20370       iconv_flavor=
20371       case "$host_os" in
20372         aix*)     iconv_flavor=ICONV_FLAVOR_AIX ;;
20373         irix*)    iconv_flavor=ICONV_FLAVOR_IRIX ;;
20374         hpux*)    iconv_flavor=ICONV_FLAVOR_HPUX ;;
20375         osf*)     iconv_flavor=ICONV_FLAVOR_OSF ;;
20376         solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;;
20377       esac
20378       if test -n "$iconv_flavor"; then
20379
20380 cat >>confdefs.h <<_ACEOF
20381 #define ICONV_FLAVOR $iconv_flavor
20382 _ACEOF
20383
20384
20385
20386
20387   ICONV_H='iconv.h'
20388
20389   REPLACE_ICONV_OPEN=1
20390
20391
20392
20393
20394
20395
20396
20397
20398   gl_LIBOBJS="$gl_LIBOBJS iconv_open.$ac_objext"
20399
20400
20401       fi
20402     fi
20403   fi
20404
20405   # Code from module include_next:
20406   # Code from module inline:
20407
20408
20409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
20410 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
20411 if test "${gl_cv_c_inline_effective+set}" = set; then :
20412   $as_echo_n "(cached) " >&6
20413 else
20414   if test $ac_cv_c_inline = no; then
20415        gl_cv_c_inline_effective=no
20416      else
20417                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20418 /* end confdefs.h.  */
20419
20420 int
20421 main ()
20422 {
20423 #ifdef __NO_INLINE__
20424                #error "inline is not effective"
20425              #endif
20426   ;
20427   return 0;
20428 }
20429 _ACEOF
20430 if ac_fn_c_try_compile "$LINENO"; then :
20431   gl_cv_c_inline_effective=yes
20432 else
20433   gl_cv_c_inline_effective=no
20434 fi
20435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20436      fi
20437
20438 fi
20439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
20440 $as_echo "$gl_cv_c_inline_effective" >&6; }
20441   if test $gl_cv_c_inline_effective = yes; then
20442
20443 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
20444
20445   fi
20446
20447   # Code from module isnand-nolibm:
20448
20449
20450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
20451 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
20452 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
20453   $as_echo_n "(cached) " >&6
20454 else
20455
20456       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20457 /* end confdefs.h.  */
20458 #include <math.h>
20459                    #if __GNUC__ >= 4
20460                    # undef isnand
20461                    # define isnand(x) __builtin_isnan ((double)(x))
20462                    #else
20463                    # undef isnand
20464                    # define isnand(x) isnan ((double)(x))
20465                    #endif
20466                    double x;
20467 int
20468 main ()
20469 {
20470 return isnand (x);
20471   ;
20472   return 0;
20473 }
20474 _ACEOF
20475 if ac_fn_c_try_link "$LINENO"; then :
20476   gl_cv_func_isnand_no_libm=yes
20477 else
20478   gl_cv_func_isnand_no_libm=no
20479 fi
20480 rm -f core conftest.err conftest.$ac_objext \
20481     conftest$ac_exeext conftest.$ac_ext
20482
20483 fi
20484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
20485 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
20486
20487   if test $gl_cv_func_isnand_no_libm = yes; then
20488
20489 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
20490
20491   else
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501   gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
20502
20503
20504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
20505 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
20506 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
20507   $as_echo_n "(cached) " >&6
20508 else
20509
20510       if test "$cross_compiling" = yes; then :
20511
20512                                                             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20513 /* end confdefs.h.  */
20514
20515 #if defined arm || defined __arm || defined __arm__
20516   mixed_endianness
20517 #endif
20518
20519 _ACEOF
20520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20521   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
20522   gl_cv_cc_double_expbit0="unknown"
20523 else
20524
20525                                                          :
20526 if test "${ac_cv_c_bigendian+set}" = set; then :
20527   $as_echo_n "(cached) " >&6
20528 else
20529   ac_cv_c_bigendian=unknown
20530     # See if we're dealing with a universal compiler.
20531     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20532 /* end confdefs.h.  */
20533 #ifndef __APPLE_CC__
20534                not a universal capable compiler
20535              #endif
20536              typedef int dummy;
20537
20538 _ACEOF
20539 if ac_fn_c_try_compile "$LINENO"; then :
20540
20541         # Check for potential -arch flags.  It is not universal unless
20542         # there are at least two -arch flags with different values.
20543         ac_arch=
20544         ac_prev=
20545         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20546          if test -n "$ac_prev"; then
20547            case $ac_word in
20548              i?86 | x86_64 | ppc | ppc64)
20549                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20550                  ac_arch=$ac_word
20551                else
20552                  ac_cv_c_bigendian=universal
20553                  break
20554                fi
20555                ;;
20556            esac
20557            ac_prev=
20558          elif test "x$ac_word" = "x-arch"; then
20559            ac_prev=arch
20560          fi
20561        done
20562 fi
20563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20564     if test $ac_cv_c_bigendian = unknown; then
20565       # See if sys/param.h defines the BYTE_ORDER macro.
20566       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20567 /* end confdefs.h.  */
20568 #include <sys/types.h>
20569              #include <sys/param.h>
20570
20571 int
20572 main ()
20573 {
20574 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20575                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20576                      && LITTLE_ENDIAN)
20577               bogus endian macros
20578              #endif
20579
20580   ;
20581   return 0;
20582 }
20583 _ACEOF
20584 if ac_fn_c_try_compile "$LINENO"; then :
20585   # It does; now see whether it defined to BIG_ENDIAN or not.
20586          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20587 /* end confdefs.h.  */
20588 #include <sys/types.h>
20589                 #include <sys/param.h>
20590
20591 int
20592 main ()
20593 {
20594 #if BYTE_ORDER != BIG_ENDIAN
20595                  not big endian
20596                 #endif
20597
20598   ;
20599   return 0;
20600 }
20601 _ACEOF
20602 if ac_fn_c_try_compile "$LINENO"; then :
20603   ac_cv_c_bigendian=yes
20604 else
20605   ac_cv_c_bigendian=no
20606 fi
20607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20608 fi
20609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20610     fi
20611     if test $ac_cv_c_bigendian = unknown; then
20612       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20613       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20614 /* end confdefs.h.  */
20615 #include <limits.h>
20616
20617 int
20618 main ()
20619 {
20620 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20621               bogus endian macros
20622              #endif
20623
20624   ;
20625   return 0;
20626 }
20627 _ACEOF
20628 if ac_fn_c_try_compile "$LINENO"; then :
20629   # It does; now see whether it defined to _BIG_ENDIAN or not.
20630          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20631 /* end confdefs.h.  */
20632 #include <limits.h>
20633
20634 int
20635 main ()
20636 {
20637 #ifndef _BIG_ENDIAN
20638                  not big endian
20639                 #endif
20640
20641   ;
20642   return 0;
20643 }
20644 _ACEOF
20645 if ac_fn_c_try_compile "$LINENO"; then :
20646   ac_cv_c_bigendian=yes
20647 else
20648   ac_cv_c_bigendian=no
20649 fi
20650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20651 fi
20652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20653     fi
20654     if test $ac_cv_c_bigendian = unknown; then
20655       # Compile a test program.
20656       if test "$cross_compiling" = yes; then :
20657   # Try to guess by grepping values from an object file.
20658          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20659 /* end confdefs.h.  */
20660 short int ascii_mm[] =
20661                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20662                 short int ascii_ii[] =
20663                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20664                 int use_ascii (int i) {
20665                   return ascii_mm[i] + ascii_ii[i];
20666                 }
20667                 short int ebcdic_ii[] =
20668                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20669                 short int ebcdic_mm[] =
20670                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20671                 int use_ebcdic (int i) {
20672                   return ebcdic_mm[i] + ebcdic_ii[i];
20673                 }
20674                 extern int foo;
20675
20676 int
20677 main ()
20678 {
20679 return use_ascii (foo) == use_ebcdic (foo);
20680   ;
20681   return 0;
20682 }
20683 _ACEOF
20684 if ac_fn_c_try_compile "$LINENO"; then :
20685   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20686               ac_cv_c_bigendian=yes
20687             fi
20688             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20689               if test "$ac_cv_c_bigendian" = unknown; then
20690                 ac_cv_c_bigendian=no
20691               else
20692                 # finding both strings is unlikely to happen, but who knows?
20693                 ac_cv_c_bigendian=unknown
20694               fi
20695             fi
20696 fi
20697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20698 else
20699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20700 /* end confdefs.h.  */
20701 $ac_includes_default
20702 int
20703 main ()
20704 {
20705
20706              /* Are we little or big endian?  From Harbison&Steele.  */
20707              union
20708              {
20709                long int l;
20710                char c[sizeof (long int)];
20711              } u;
20712              u.l = 1;
20713              return u.c[sizeof (long int) - 1] == 1;
20714
20715   ;
20716   return 0;
20717 }
20718 _ACEOF
20719 if ac_fn_c_try_run "$LINENO"; then :
20720   ac_cv_c_bigendian=no
20721 else
20722   ac_cv_c_bigendian=yes
20723 fi
20724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20725   conftest.$ac_objext conftest.beam conftest.$ac_ext
20726 fi
20727
20728     fi
20729 fi
20730 :
20731  case $ac_cv_c_bigendian in #(
20732    yes)
20733      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
20734    no)
20735      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
20736    universal)
20737
20738 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20739
20740      ;; #(
20741    *)
20742      gl_cv_cc_double_expbit0="unknown" ;;
20743  esac
20744
20745
20746 fi
20747 rm -f conftest*
20748
20749
20750 else
20751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20752 /* end confdefs.h.  */
20753
20754 #include <float.h>
20755 #include <stddef.h>
20756 #include <stdio.h>
20757 #include <string.h>
20758 #define NWORDS \
20759   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
20760 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
20761 static unsigned int ored_words[NWORDS];
20762 static unsigned int anded_words[NWORDS];
20763 static void add_to_ored_words (double x)
20764 {
20765   memory_double m;
20766   size_t i;
20767   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
20768   memset (&m, 0, sizeof (memory_double));
20769   m.value = x;
20770   for (i = 0; i < NWORDS; i++)
20771     {
20772       ored_words[i] |= m.word[i];
20773       anded_words[i] &= m.word[i];
20774     }
20775 }
20776 int main ()
20777 {
20778   size_t j;
20779   FILE *fp = fopen ("conftest.out", "w");
20780   if (fp == NULL)
20781     return 1;
20782   for (j = 0; j < NWORDS; j++)
20783     anded_words[j] = ~ (unsigned int) 0;
20784   add_to_ored_words (0.25);
20785   add_to_ored_words (0.5);
20786   add_to_ored_words (1.0);
20787   add_to_ored_words (2.0);
20788   add_to_ored_words (4.0);
20789   /* Remove bits that are common (e.g. if representation of the first mantissa
20790      bit is explicit).  */
20791   for (j = 0; j < NWORDS; j++)
20792     ored_words[j] &= ~anded_words[j];
20793   /* Now find the nonzero word.  */
20794   for (j = 0; j < NWORDS; j++)
20795     if (ored_words[j] != 0)
20796       break;
20797   if (j < NWORDS)
20798     {
20799       size_t i;
20800       for (i = j + 1; i < NWORDS; i++)
20801         if (ored_words[i] != 0)
20802           {
20803             fprintf (fp, "unknown");
20804             return (fclose (fp) != 0);
20805           }
20806       for (i = 0; ; i++)
20807         if ((ored_words[j] >> i) & 1)
20808           {
20809             fprintf (fp, "word %d bit %d", (int) j, (int) i);
20810             return (fclose (fp) != 0);
20811           }
20812     }
20813   fprintf (fp, "unknown");
20814   return (fclose (fp) != 0);
20815 }
20816
20817 _ACEOF
20818 if ac_fn_c_try_run "$LINENO"; then :
20819   gl_cv_cc_double_expbit0=`cat conftest.out`
20820 else
20821   gl_cv_cc_double_expbit0="unknown"
20822 fi
20823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20824   conftest.$ac_objext conftest.beam conftest.$ac_ext
20825 fi
20826
20827       rm -f conftest.out
20828
20829 fi
20830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
20831 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
20832   case "$gl_cv_cc_double_expbit0" in
20833     word*bit*)
20834       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
20835       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
20836
20837 cat >>confdefs.h <<_ACEOF
20838 #define DBL_EXPBIT0_WORD $word
20839 _ACEOF
20840
20841
20842 cat >>confdefs.h <<_ACEOF
20843 #define DBL_EXPBIT0_BIT $bit
20844 _ACEOF
20845
20846       ;;
20847   esac
20848
20849
20850   fi
20851
20852   # Code from module isnanf-nolibm:
20853
20854
20855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
20856 $as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; }
20857 if test "${gl_cv_func_isnanf_no_libm+set}" = set; then :
20858   $as_echo_n "(cached) " >&6
20859 else
20860
20861       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20862 /* end confdefs.h.  */
20863 #include <math.h>
20864                    #if __GNUC__ >= 4
20865                    # undef isnanf
20866                    # define isnanf(x) __builtin_isnanf ((float)(x))
20867                    #elif defined isnan
20868                    # undef isnanf
20869                    # define isnanf(x) isnan ((float)(x))
20870                    #endif
20871                    float x;
20872 int
20873 main ()
20874 {
20875 return isnanf (x);
20876   ;
20877   return 0;
20878 }
20879 _ACEOF
20880 if ac_fn_c_try_link "$LINENO"; then :
20881   gl_cv_func_isnanf_no_libm=yes
20882 else
20883   gl_cv_func_isnanf_no_libm=no
20884 fi
20885 rm -f core conftest.err conftest.$ac_objext \
20886     conftest$ac_exeext conftest.$ac_ext
20887
20888 fi
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
20890 $as_echo "$gl_cv_func_isnanf_no_libm" >&6; }
20891
20892   if test $gl_cv_func_isnanf_no_libm = yes; then
20893
20894
20895
20896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
20897 $as_echo_n "checking whether isnan(float) works... " >&6; }
20898 if test "${gl_cv_func_isnanf_works+set}" = set; then :
20899   $as_echo_n "(cached) " >&6
20900 else
20901
20902       if test "$cross_compiling" = yes; then :
20903   case "$host_os" in
20904            irix* | solaris*) gl_cv_func_isnanf_works="guessing no";;
20905            *)                gl_cv_func_isnanf_works="guessing yes";;
20906          esac
20907
20908 else
20909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20910 /* end confdefs.h.  */
20911
20912 #include <math.h>
20913 #if __GNUC__ >= 4
20914 # undef isnanf
20915 # define isnanf(x) __builtin_isnanf ((float)(x))
20916 #elif defined isnan
20917 # undef isnanf
20918 # define isnanf(x) isnan ((float)(x))
20919 #endif
20920 /* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0.  */
20921 #ifdef __DECC
20922 static float
20923 NaN ()
20924 {
20925   static float zero = 0.0f;
20926   return zero / zero;
20927 }
20928 #else
20929 # define NaN() (0.0f / 0.0f)
20930 #endif
20931 #define NWORDS \
20932   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
20933 typedef union { unsigned int word[NWORDS]; float value; } memory_float;
20934 int main()
20935 {
20936   memory_float m;
20937
20938   if (isnanf (1.0f / 0.0f))
20939     return 1;
20940
20941   if (!isnanf (NaN ()))
20942     return 1;
20943
20944 #if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
20945   /* The isnanf function should be immune against changes in the sign bit and
20946      in the mantissa bits.  The xor operation twiddles a bit that can only be
20947      a sign bit or a mantissa bit.  */
20948   if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
20949     {
20950       m.value = NaN ();
20951       /* Set the bits below the exponent to 01111...111.  */
20952       m.word[0] &= -1U << FLT_EXPBIT0_BIT;
20953       m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
20954       if (!isnanf (m.value))
20955         return 1;
20956     }
20957 #endif
20958
20959   return 0;
20960 }
20961 _ACEOF
20962 if ac_fn_c_try_run "$LINENO"; then :
20963   gl_cv_func_isnanf_works=yes
20964 else
20965   gl_cv_func_isnanf_works=no
20966 fi
20967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20968   conftest.$ac_objext conftest.beam conftest.$ac_ext
20969 fi
20970
20971
20972 fi
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
20974 $as_echo "$gl_cv_func_isnanf_works" >&6; }
20975
20976   fi
20977   if test $gl_cv_func_isnanf_no_libm = yes \
20978      && { case "$gl_cv_func_isnanf_works" in
20979             *yes) true;;
20980             *) false;;
20981           esac
20982         }; then
20983
20984 $as_echo "#define HAVE_ISNANF_IN_LIBC 1" >>confdefs.h
20985
20986   else
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996   gl_LIBOBJS="$gl_LIBOBJS isnanf.$ac_objext"
20997
20998
20999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
21000 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
21001 if test "${gl_cv_cc_float_expbit0+set}" = set; then :
21002   $as_echo_n "(cached) " >&6
21003 else
21004
21005       if test "$cross_compiling" = yes; then :
21006   gl_cv_cc_float_expbit0="word 0 bit 23"
21007 else
21008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21009 /* end confdefs.h.  */
21010
21011 #include <float.h>
21012 #include <stddef.h>
21013 #include <stdio.h>
21014 #include <string.h>
21015 #define NWORDS \
21016   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21017 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
21018 static unsigned int ored_words[NWORDS];
21019 static unsigned int anded_words[NWORDS];
21020 static void add_to_ored_words (float x)
21021 {
21022   memory_float m;
21023   size_t i;
21024   /* Clear it first, in case
21025      sizeof (float) < sizeof (memory_float).  */
21026   memset (&m, 0, sizeof (memory_float));
21027   m.value = x;
21028   for (i = 0; i < NWORDS; i++)
21029     {
21030       ored_words[i] |= m.word[i];
21031       anded_words[i] &= m.word[i];
21032     }
21033 }
21034 int main ()
21035 {
21036   size_t j;
21037   FILE *fp = fopen ("conftest.out", "w");
21038   if (fp == NULL)
21039     return 1;
21040   for (j = 0; j < NWORDS; j++)
21041     anded_words[j] = ~ (unsigned int) 0;
21042   add_to_ored_words (0.25f);
21043   add_to_ored_words (0.5f);
21044   add_to_ored_words (1.0f);
21045   add_to_ored_words (2.0f);
21046   add_to_ored_words (4.0f);
21047   /* Remove bits that are common (e.g. if representation of the first mantissa
21048      bit is explicit).  */
21049   for (j = 0; j < NWORDS; j++)
21050     ored_words[j] &= ~anded_words[j];
21051   /* Now find the nonzero word.  */
21052   for (j = 0; j < NWORDS; j++)
21053     if (ored_words[j] != 0)
21054       break;
21055   if (j < NWORDS)
21056     {
21057       size_t i;
21058       for (i = j + 1; i < NWORDS; i++)
21059         if (ored_words[i] != 0)
21060           {
21061             fprintf (fp, "unknown");
21062             return (fclose (fp) != 0);
21063           }
21064       for (i = 0; ; i++)
21065         if ((ored_words[j] >> i) & 1)
21066           {
21067             fprintf (fp, "word %d bit %d", (int) j, (int) i);
21068             return (fclose (fp) != 0);
21069           }
21070     }
21071   fprintf (fp, "unknown");
21072   return (fclose (fp) != 0);
21073 }
21074
21075 _ACEOF
21076 if ac_fn_c_try_run "$LINENO"; then :
21077   gl_cv_cc_float_expbit0=`cat conftest.out`
21078 else
21079   gl_cv_cc_float_expbit0="unknown"
21080 fi
21081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21082   conftest.$ac_objext conftest.beam conftest.$ac_ext
21083 fi
21084
21085       rm -f conftest.out
21086
21087 fi
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
21089 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
21090   case "$gl_cv_cc_float_expbit0" in
21091     word*bit*)
21092       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
21093       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
21094
21095 cat >>confdefs.h <<_ACEOF
21096 #define FLT_EXPBIT0_WORD $word
21097 _ACEOF
21098
21099
21100 cat >>confdefs.h <<_ACEOF
21101 #define FLT_EXPBIT0_BIT $bit
21102 _ACEOF
21103
21104       ;;
21105   esac
21106
21107
21108   fi
21109
21110   # Code from module isnanl-nolibm:
21111
21112
21113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
21114 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
21115 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
21116   $as_echo_n "(cached) " >&6
21117 else
21118
21119       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21120 /* end confdefs.h.  */
21121 #include <math.h>
21122                    #if __GNUC__ >= 4
21123                    # undef isnanl
21124                    # define isnanl(x) __builtin_isnanl ((long double)(x))
21125                    #elif defined isnan
21126                    # undef isnanl
21127                    # define isnanl(x) isnan ((long double)(x))
21128                    #endif
21129                    long double x;
21130 int
21131 main ()
21132 {
21133 return isnanl (x);
21134   ;
21135   return 0;
21136 }
21137 _ACEOF
21138 if ac_fn_c_try_link "$LINENO"; then :
21139   gl_cv_func_isnanl_no_libm=yes
21140 else
21141   gl_cv_func_isnanl_no_libm=no
21142 fi
21143 rm -f core conftest.err conftest.$ac_objext \
21144     conftest$ac_exeext conftest.$ac_ext
21145
21146 fi
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
21148 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
21149
21150   gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
21151   if test $gl_func_isnanl_no_libm = yes; then
21152
21153
21154
21155      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
21156 $as_echo_n "checking whether isnanl works... " >&6; }
21157 if test "${gl_cv_func_isnanl_works+set}" = set; then :
21158   $as_echo_n "(cached) " >&6
21159 else
21160
21161       if test "$cross_compiling" = yes; then :
21162   case "$host_cpu" in
21163                                # Guess no on ia64, x86_64, i386.
21164          ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
21165          *)
21166            case "$host_os" in
21167              netbsd*) gl_cv_func_isnanl_works="guessing no";;
21168              *)       gl_cv_func_isnanl_works="guessing yes";;
21169            esac
21170            ;;
21171        esac
21172
21173 else
21174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21175 /* end confdefs.h.  */
21176
21177 #include <float.h>
21178 #include <limits.h>
21179 #include <math.h>
21180 #if __GNUC__ >= 4
21181 # undef isnanl
21182 # define isnanl(x) __builtin_isnanl ((long double)(x))
21183 #elif defined isnan
21184 # undef isnanl
21185 # define isnanl(x) isnan ((long double)(x))
21186 #endif
21187 #define NWORDS \
21188   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21189 typedef union { unsigned int word[NWORDS]; long double value; }
21190         memory_long_double;
21191 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
21192    runtime type conversion.  */
21193 #ifdef __sgi
21194 static long double NaNl ()
21195 {
21196   double zero = 0.0;
21197   return zero / zero;
21198 }
21199 #else
21200 # define NaNl() (0.0L / 0.0L)
21201 #endif
21202 int main ()
21203 {
21204   memory_long_double m;
21205   unsigned int i;
21206
21207   if (!isnanl (NaNl ()))
21208     return 1;
21209
21210   /* The isnanl function should be immune against changes in the sign bit and
21211      in the mantissa bits.  The xor operation twiddles a bit that can only be
21212      a sign bit or a mantissa bit (since the exponent never extends to
21213      bit 31).  */
21214   m.value = NaNl ();
21215   m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
21216   for (i = 0; i < NWORDS; i++)
21217     m.word[i] |= 1;
21218   if (!isnanl (m.value))
21219     return 1;
21220
21221 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_))
21222 /* Representation of an 80-bit 'long double' as an initializer for a sequence
21223    of 'unsigned int' words.  */
21224 # ifdef WORDS_BIGENDIAN
21225 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
21226      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
21227        ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16),    \
21228        (unsigned int) (mantlo) << 16                                        \
21229      }
21230 # else
21231 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
21232      { mantlo, manthi, exponent }
21233 # endif
21234   { /* Quiet NaN.  */
21235     static memory_long_double x =
21236       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
21237     if (!isnanl (x.value))
21238       return 1;
21239   }
21240   {
21241     /* Signalling NaN.  */
21242     static memory_long_double x =
21243       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
21244     if (!isnanl (x.value))
21245       return 1;
21246   }
21247   /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
21248      Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
21249        Intel IA-64 Architecture Software Developer's Manual, Volume 1:
21250        Application Architecture.
21251        Table 5-2 "Floating-Point Register Encodings"
21252        Figure 5-6 "Memory to Floating-Point Register Data Translation"
21253    */
21254   { /* Pseudo-NaN.  */
21255     static memory_long_double x =
21256       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
21257     if (!isnanl (x.value))
21258       return 1;
21259   }
21260   { /* Pseudo-Infinity.  */
21261     static memory_long_double x =
21262       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
21263     if (!isnanl (x.value))
21264       return 1;
21265   }
21266   { /* Pseudo-Zero.  */
21267     static memory_long_double x =
21268       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
21269     if (!isnanl (x.value))
21270       return 1;
21271   }
21272   { /* Unnormalized number.  */
21273     static memory_long_double x =
21274       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
21275     if (!isnanl (x.value))
21276       return 1;
21277   }
21278   { /* Pseudo-Denormal.  */
21279     static memory_long_double x =
21280       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
21281     if (!isnanl (x.value))
21282       return 1;
21283   }
21284 #endif
21285
21286   return 0;
21287 }
21288 _ACEOF
21289 if ac_fn_c_try_run "$LINENO"; then :
21290   gl_cv_func_isnanl_works=yes
21291 else
21292   gl_cv_func_isnanl_works=no
21293 fi
21294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21295   conftest.$ac_objext conftest.beam conftest.$ac_ext
21296 fi
21297
21298
21299 fi
21300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
21301 $as_echo "$gl_cv_func_isnanl_works" >&6; }
21302
21303     case "$gl_cv_func_isnanl_works" in
21304       *yes) ;;
21305       *)    gl_func_isnanl_no_libm=no ;;
21306     esac
21307   fi
21308   if test $gl_func_isnanl_no_libm = yes; then
21309
21310 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
21311
21312   else
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322   gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
21323
21324
21325
21326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
21327 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
21328 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
21329   $as_echo_n "(cached) " >&6
21330 else
21331
21332       if test "$cross_compiling" = yes; then :
21333
21334                               gl_cv_cc_long_double_expbit0="unknown"
21335
21336 else
21337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21338 /* end confdefs.h.  */
21339
21340 #include <float.h>
21341 #include <stddef.h>
21342 #include <stdio.h>
21343 #include <string.h>
21344 #define NWORDS \
21345   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21346 typedef union { long double value; unsigned int word[NWORDS]; }
21347         memory_long_double;
21348 static unsigned int ored_words[NWORDS];
21349 static unsigned int anded_words[NWORDS];
21350 static void add_to_ored_words (long double x)
21351 {
21352   memory_long_double m;
21353   size_t i;
21354   /* Clear it first, in case
21355      sizeof (long double) < sizeof (memory_long_double).  */
21356   memset (&m, 0, sizeof (memory_long_double));
21357   m.value = x;
21358   for (i = 0; i < NWORDS; i++)
21359     {
21360       ored_words[i] |= m.word[i];
21361       anded_words[i] &= m.word[i];
21362     }
21363 }
21364 int main ()
21365 {
21366   size_t j;
21367   FILE *fp = fopen ("conftest.out", "w");
21368   if (fp == NULL)
21369     return 1;
21370   for (j = 0; j < NWORDS; j++)
21371     anded_words[j] = ~ (unsigned int) 0;
21372   add_to_ored_words (0.25L);
21373   add_to_ored_words (0.5L);
21374   add_to_ored_words (1.0L);
21375   add_to_ored_words (2.0L);
21376   add_to_ored_words (4.0L);
21377   /* Remove bits that are common (e.g. if representation of the first mantissa
21378      bit is explicit).  */
21379   for (j = 0; j < NWORDS; j++)
21380     ored_words[j] &= ~anded_words[j];
21381   /* Now find the nonzero word.  */
21382   for (j = 0; j < NWORDS; j++)
21383     if (ored_words[j] != 0)
21384       break;
21385   if (j < NWORDS)
21386     {
21387       size_t i;
21388       for (i = j + 1; i < NWORDS; i++)
21389         if (ored_words[i] != 0)
21390           {
21391             fprintf (fp, "unknown");
21392             return (fclose (fp) != 0);
21393           }
21394       for (i = 0; ; i++)
21395         if ((ored_words[j] >> i) & 1)
21396           {
21397             fprintf (fp, "word %d bit %d", (int) j, (int) i);
21398             return (fclose (fp) != 0);
21399           }
21400     }
21401   fprintf (fp, "unknown");
21402   return (fclose (fp) != 0);
21403 }
21404
21405 _ACEOF
21406 if ac_fn_c_try_run "$LINENO"; then :
21407   gl_cv_cc_long_double_expbit0=`cat conftest.out`
21408 else
21409   gl_cv_cc_long_double_expbit0="unknown"
21410 fi
21411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21412   conftest.$ac_objext conftest.beam conftest.$ac_ext
21413 fi
21414
21415       rm -f conftest.out
21416
21417 fi
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
21419 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
21420   case "$gl_cv_cc_long_double_expbit0" in
21421     word*bit*)
21422       word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
21423       bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
21424
21425 cat >>confdefs.h <<_ACEOF
21426 #define LDBL_EXPBIT0_WORD $word
21427 _ACEOF
21428
21429
21430 cat >>confdefs.h <<_ACEOF
21431 #define LDBL_EXPBIT0_BIT $bit
21432 _ACEOF
21433
21434       ;;
21435   esac
21436
21437
21438   fi
21439
21440   # Code from module localcharset:
21441
21442
21443
21444
21445
21446
21447
21448
21449   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
21450
21451   # Code from module localename:
21452
21453
21454
21455   for ac_func in setlocale uselocale
21456 do :
21457   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21458 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21459 eval as_val=\$$as_ac_var
21460    if test "x$as_val" = x""yes; then :
21461   cat >>confdefs.h <<_ACEOF
21462 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21463 _ACEOF
21464
21465 fi
21466 done
21467
21468
21469   # Code from module lock:
21470
21471
21472   if test "$gl_threads_api" = posix; then
21473     # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
21474     # pthread_rwlock_* functions.
21475     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
21476 "
21477 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
21478
21479 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
21480
21481 fi
21482
21483     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
21484     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21485 /* end confdefs.h.  */
21486 #include <pthread.h>
21487 int
21488 main ()
21489 {
21490 #if __FreeBSD__ == 4
21491 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
21492 #else
21493 int x = (int)PTHREAD_MUTEX_RECURSIVE;
21494 return !x;
21495 #endif
21496   ;
21497   return 0;
21498 }
21499 _ACEOF
21500 if ac_fn_c_try_compile "$LINENO"; then :
21501
21502 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
21503
21504 fi
21505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21506   fi
21507
21508
21509
21510
21511   # Code from module malloc-posix:
21512
21513
21514   if test $gl_cv_func_malloc_posix = yes; then
21515     HAVE_MALLOC_POSIX=1
21516
21517 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
21518
21519   else
21520
21521
21522
21523
21524
21525
21526
21527
21528   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
21529
21530     HAVE_MALLOC_POSIX=0
21531   fi
21532
21533
21534
21535
21536
21537   GNULIB_MALLOC_POSIX=1
21538
21539
21540
21541 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
21542
21543
21544
21545   # Code from module malloca:
21546
21547
21548
21549
21550   # Code from module math:
21551
21552
21553
21554
21555
21556
21557
21558
21559      if test $gl_cv_have_include_next = yes; then
21560        gl_cv_next_math_h='<'math.h'>'
21561      else
21562        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
21563 $as_echo_n "checking absolute name of <math.h>... " >&6; }
21564 if test "${gl_cv_next_math_h+set}" = set; then :
21565   $as_echo_n "(cached) " >&6
21566 else
21567
21568           if test $ac_cv_header_math_h = yes; then
21569             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21570 /* end confdefs.h.  */
21571 #include <math.h>
21572
21573 _ACEOF
21574                                                                                                 case "$host_os" in
21575               aix*) gl_absname_cpp="$ac_cpp -C" ;;
21576               *)    gl_absname_cpp="$ac_cpp" ;;
21577             esac
21578                                                 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21579                sed -n '\#/math.h#{
21580                  s#.*"\(.*/math.h\)".*#\1#
21581                  s#^/[^/]#//&#
21582                  p
21583                  q
21584                }'`'"'
21585           else
21586             gl_cv_next_math_h='<'math.h'>'
21587           fi
21588
21589 fi
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
21591 $as_echo "$gl_cv_next_math_h" >&6; }
21592      fi
21593      NEXT_MATH_H=$gl_cv_next_math_h
21594
21595      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21596        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21597        gl_next_as_first_directive='<'math.h'>'
21598      else
21599        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21600        gl_next_as_first_directive=$gl_cv_next_math_h
21601      fi
21602      NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
21603
21604
21605
21606
21607
21608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
21609 $as_echo_n "checking whether NAN macro works... " >&6; }
21610 if test "${gl_cv_header_math_nan_works+set}" = set; then :
21611   $as_echo_n "(cached) " >&6
21612 else
21613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21614 /* end confdefs.h.  */
21615 #include <math.h>
21616 int
21617 main ()
21618 {
21619 /* Solaris 10 has a broken definition of NAN.  Other platforms
21620         fail to provide NAN, or provide it only in C99 mode; this
21621         test only needs to fail when NAN is provided but wrong.  */
21622          float f = 1.0f;
21623 #ifdef NAN
21624          f = NAN;
21625 #endif
21626          return f == 0;
21627   ;
21628   return 0;
21629 }
21630 _ACEOF
21631 if ac_fn_c_try_compile "$LINENO"; then :
21632   gl_cv_header_math_nan_works=yes
21633 else
21634   gl_cv_header_math_nan_works=no
21635 fi
21636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21637 fi
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
21639 $as_echo "$gl_cv_header_math_nan_works" >&6; }
21640   if test $gl_cv_header_math_nan_works = no; then
21641     REPLACE_NAN=1
21642   fi
21643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
21644 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
21645 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
21646   $as_echo_n "(cached) " >&6
21647 else
21648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21649 /* end confdefs.h.  */
21650 #include <math.h>
21651 int
21652 main ()
21653 {
21654 /* Solaris 10 has a broken definition of HUGE_VAL.  */
21655          double d = HUGE_VAL;
21656          return d == 0;
21657   ;
21658   return 0;
21659 }
21660 _ACEOF
21661 if ac_fn_c_try_compile "$LINENO"; then :
21662   gl_cv_header_math_huge_val_works=yes
21663 else
21664   gl_cv_header_math_huge_val_works=no
21665 fi
21666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21667 fi
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
21669 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
21670   if test $gl_cv_header_math_huge_val_works = no; then
21671     REPLACE_HUGE_VAL=1
21672   fi
21673
21674
21675     for gl_func in acosl asinl atanl ceilf ceill cosl expl floorf floorl frexpl     ldexpl logb logl round roundf roundl sinl sqrtl tanl trunc truncf truncl; do
21676     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21677     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21678 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21679 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
21680   $as_echo_n "(cached) " >&6
21681 else
21682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21683 /* end confdefs.h.  */
21684 #include <math.h>
21685
21686 int
21687 main ()
21688 {
21689 #undef $gl_func
21690   (void) $gl_func;
21691   ;
21692   return 0;
21693 }
21694 _ACEOF
21695 if ac_fn_c_try_compile "$LINENO"; then :
21696   eval "$as_gl_Symbol=yes"
21697 else
21698   eval "$as_gl_Symbol=no"
21699 fi
21700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21701 fi
21702 eval ac_res=\$$as_gl_Symbol
21703                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21704 $as_echo "$ac_res" >&6; }
21705      eval as_val=\$$as_gl_Symbol
21706    if test "x$as_val" = x""yes; then :
21707   cat >>confdefs.h <<_ACEOF
21708 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21709 _ACEOF
21710
21711                      eval ac_cv_have_decl_$gl_func=yes
21712 fi
21713       done
21714
21715
21716   # Code from module mbchar:
21717
21718
21719
21720
21721   # Code from module mbiter:
21722
21723
21724
21725
21726   :
21727
21728   # Code from module mbrtowc:
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
21740
21741
21742
21743      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
21744 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
21745 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
21746   $as_echo_n "(cached) " >&6
21747 else
21748
21749                   case "$host_os" in
21750               # Guess no on AIX and OSF/1.
21751         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
21752               # Guess yes otherwise.
21753         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
21754       esac
21755       if test $LOCALE_JA != none; then
21756         if test "$cross_compiling" = yes; then :
21757   :
21758 else
21759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21760 /* end confdefs.h.  */
21761
21762 #include <locale.h>
21763 #include <string.h>
21764 #include <wchar.h>
21765 int main ()
21766 {
21767   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21768     {
21769       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
21770       mbstate_t state;
21771       wchar_t wc;
21772
21773       memset (&state, '\0', sizeof (mbstate_t));
21774       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21775         if (mbsinit (&state))
21776           return 1;
21777     }
21778   return 0;
21779 }
21780 _ACEOF
21781 if ac_fn_c_try_run "$LINENO"; then :
21782   gl_cv_func_mbrtowc_incomplete_state=yes
21783 else
21784   gl_cv_func_mbrtowc_incomplete_state=no
21785 fi
21786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21787   conftest.$ac_objext conftest.beam conftest.$ac_ext
21788 fi
21789
21790       fi
21791
21792 fi
21793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
21794 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
21795
21796
21797
21798
21799      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
21800 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
21801 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
21802   $as_echo_n "(cached) " >&6
21803 else
21804
21805                   case "$host_os" in
21806                     # Guess no on Solaris 8.
21807         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
21808                     # Guess yes otherwise.
21809         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
21810       esac
21811       if test $LOCALE_ZH_CN != none; then
21812         if test "$cross_compiling" = yes; then :
21813   :
21814 else
21815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21816 /* end confdefs.h.  */
21817
21818 #include <locale.h>
21819 #include <stdlib.h>
21820 #include <string.h>
21821 #include <wchar.h>
21822 int main ()
21823 {
21824   /* This fails on Solaris 8:
21825      mbrtowc returns 2, and sets wc to 0x00F0.
21826      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
21827   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21828     {
21829       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
21830       mbstate_t state;
21831       wchar_t wc;
21832
21833       memset (&state, '\0', sizeof (mbstate_t));
21834       if (mbrtowc (&wc, input + 3, 6, &state) != 4
21835           && mbtowc (&wc, input + 3, 6) == 4)
21836         return 1;
21837     }
21838   return 0;
21839 }
21840 _ACEOF
21841 if ac_fn_c_try_run "$LINENO"; then :
21842   gl_cv_func_mbrtowc_sanitycheck=yes
21843 else
21844   gl_cv_func_mbrtowc_sanitycheck=no
21845 fi
21846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21847   conftest.$ac_objext conftest.beam conftest.$ac_ext
21848 fi
21849
21850       fi
21851
21852 fi
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
21854 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
21855
21856     REPLACE_MBSTATE_T=0
21857     case "$gl_cv_func_mbrtowc_incomplete_state" in
21858       *yes) ;;
21859       *) REPLACE_MBSTATE_T=1 ;;
21860     esac
21861     case "$gl_cv_func_mbrtowc_sanitycheck" in
21862       *yes) ;;
21863       *) REPLACE_MBSTATE_T=1 ;;
21864     esac
21865   else
21866     REPLACE_MBSTATE_T=1
21867   fi
21868   if test $REPLACE_MBSTATE_T = 1; then
21869
21870     :
21871
21872   fi
21873
21874
21875
21876   if test $ac_cv_func_mbrtowc = no; then
21877     HAVE_MBRTOWC=0
21878   else
21879     if test $REPLACE_MBSTATE_T = 1; then
21880       REPLACE_MBRTOWC=1
21881     else
21882
21883
21884
21885      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
21886 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
21887 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then :
21888   $as_echo_n "(cached) " >&6
21889 else
21890
21891                   case "$host_os" in
21892               # Guess no on OSF/1.
21893         osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
21894               # Guess yes otherwise.
21895         *)    gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
21896       esac
21897       if test $LOCALE_FR_UTF8 != none; then
21898         if test "$cross_compiling" = yes; then :
21899   :
21900 else
21901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21902 /* end confdefs.h.  */
21903
21904 #include <locale.h>
21905 #include <string.h>
21906 #include <wchar.h>
21907 int main ()
21908 {
21909   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
21910     {
21911       mbstate_t state;
21912       wchar_t wc;
21913       int ret;
21914
21915       memset (&state, '\0', sizeof (mbstate_t));
21916       wc = (wchar_t) 0xBADFACE;
21917       mbrtowc (&wc, NULL, 5, &state);
21918       /* Check that wc was not modified.  */
21919       if (wc != (wchar_t) 0xBADFACE)
21920         return 1;
21921     }
21922   return 0;
21923 }
21924 _ACEOF
21925 if ac_fn_c_try_run "$LINENO"; then :
21926   gl_cv_func_mbrtowc_null_arg=yes
21927 else
21928   gl_cv_func_mbrtowc_null_arg=no
21929 fi
21930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21931   conftest.$ac_objext conftest.beam conftest.$ac_ext
21932 fi
21933
21934       fi
21935
21936 fi
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5
21938 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
21939
21940
21941
21942
21943
21944      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
21945 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
21946 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
21947   $as_echo_n "(cached) " >&6
21948 else
21949
21950                   case "$host_os" in
21951                           # Guess no on HP-UX and Solaris.
21952         hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
21953                           # Guess yes otherwise.
21954         *)                gl_cv_func_mbrtowc_retval="guessing yes" ;;
21955       esac
21956       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
21957         if test "$cross_compiling" = yes; then :
21958   :
21959 else
21960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21961 /* end confdefs.h.  */
21962
21963 #include <locale.h>
21964 #include <string.h>
21965 #include <wchar.h>
21966 int main ()
21967 {
21968   /* This fails on Solaris.  */
21969   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
21970     {
21971       char input[] = "B\303\274\303\237er"; /* "Büßer" */
21972       mbstate_t state;
21973       wchar_t wc;
21974
21975       memset (&state, '\0', sizeof (mbstate_t));
21976       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21977         {
21978           input[1] = '\0';
21979           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
21980             return 1;
21981         }
21982     }
21983   /* This fails on HP-UX 11.11.  */
21984   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21985     {
21986       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
21987       mbstate_t state;
21988       wchar_t wc;
21989
21990       memset (&state, '\0', sizeof (mbstate_t));
21991       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21992         {
21993           input[1] = '\0';
21994           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
21995             return 1;
21996         }
21997     }
21998   return 0;
21999 }
22000 _ACEOF
22001 if ac_fn_c_try_run "$LINENO"; then :
22002   gl_cv_func_mbrtowc_retval=yes
22003 else
22004   gl_cv_func_mbrtowc_retval=no
22005 fi
22006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22007   conftest.$ac_objext conftest.beam conftest.$ac_ext
22008 fi
22009
22010       fi
22011
22012 fi
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
22014 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
22015
22016
22017
22018
22019      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
22020 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
22021 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
22022   $as_echo_n "(cached) " >&6
22023 else
22024
22025                   case "$host_os" in
22026                        # Guess no on Solaris 8 and 9.
22027         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
22028                        # Guess yes otherwise.
22029         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
22030       esac
22031       if test $LOCALE_ZH_CN != none; then
22032         if test "$cross_compiling" = yes; then :
22033   :
22034 else
22035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22036 /* end confdefs.h.  */
22037
22038 #include <locale.h>
22039 #include <string.h>
22040 #include <wchar.h>
22041 int main ()
22042 {
22043   /* This fails on Solaris 8 and 9.  */
22044   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22045     {
22046       mbstate_t state;
22047       wchar_t wc;
22048
22049       memset (&state, '\0', sizeof (mbstate_t));
22050       if (mbrtowc (&wc, "", 1, &state) != 0)
22051         return 1;
22052     }
22053   return 0;
22054 }
22055 _ACEOF
22056 if ac_fn_c_try_run "$LINENO"; then :
22057   gl_cv_func_mbrtowc_nul_retval=yes
22058 else
22059   gl_cv_func_mbrtowc_nul_retval=no
22060 fi
22061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22062   conftest.$ac_objext conftest.beam conftest.$ac_ext
22063 fi
22064
22065       fi
22066
22067 fi
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
22069 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
22070
22071       case "$gl_cv_func_mbrtowc_null_arg" in
22072         *yes) ;;
22073         *)
22074 $as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h
22075
22076            REPLACE_MBRTOWC=1
22077            ;;
22078       esac
22079       case "$gl_cv_func_mbrtowc_retval" in
22080         *yes) ;;
22081         *)
22082 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
22083
22084            REPLACE_MBRTOWC=1
22085            ;;
22086       esac
22087       case "$gl_cv_func_mbrtowc_nul_retval" in
22088         *yes) ;;
22089         *)
22090 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
22091
22092            REPLACE_MBRTOWC=1
22093            ;;
22094       esac
22095     fi
22096   fi
22097   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
22098
22099     :
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
22110
22111
22112   :
22113
22114   fi
22115
22116
22117
22118
22119   GNULIB_MBRTOWC=1
22120
22121
22122
22123 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
22124
22125
22126
22127   # Code from module mbsinit:
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
22139
22140
22141
22142      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
22143 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
22144 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
22145   $as_echo_n "(cached) " >&6
22146 else
22147
22148                   case "$host_os" in
22149               # Guess no on AIX and OSF/1.
22150         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
22151               # Guess yes otherwise.
22152         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
22153       esac
22154       if test $LOCALE_JA != none; then
22155         if test "$cross_compiling" = yes; then :
22156   :
22157 else
22158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22159 /* end confdefs.h.  */
22160
22161 #include <locale.h>
22162 #include <string.h>
22163 #include <wchar.h>
22164 int main ()
22165 {
22166   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22167     {
22168       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
22169       mbstate_t state;
22170       wchar_t wc;
22171
22172       memset (&state, '\0', sizeof (mbstate_t));
22173       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22174         if (mbsinit (&state))
22175           return 1;
22176     }
22177   return 0;
22178 }
22179 _ACEOF
22180 if ac_fn_c_try_run "$LINENO"; then :
22181   gl_cv_func_mbrtowc_incomplete_state=yes
22182 else
22183   gl_cv_func_mbrtowc_incomplete_state=no
22184 fi
22185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22186   conftest.$ac_objext conftest.beam conftest.$ac_ext
22187 fi
22188
22189       fi
22190
22191 fi
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
22193 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
22194
22195
22196
22197
22198      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
22199 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
22200 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
22201   $as_echo_n "(cached) " >&6
22202 else
22203
22204                   case "$host_os" in
22205                     # Guess no on Solaris 8.
22206         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
22207                     # Guess yes otherwise.
22208         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
22209       esac
22210       if test $LOCALE_ZH_CN != none; then
22211         if test "$cross_compiling" = yes; then :
22212   :
22213 else
22214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22215 /* end confdefs.h.  */
22216
22217 #include <locale.h>
22218 #include <stdlib.h>
22219 #include <string.h>
22220 #include <wchar.h>
22221 int main ()
22222 {
22223   /* This fails on Solaris 8:
22224      mbrtowc returns 2, and sets wc to 0x00F0.
22225      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
22226   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22227     {
22228       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
22229       mbstate_t state;
22230       wchar_t wc;
22231
22232       memset (&state, '\0', sizeof (mbstate_t));
22233       if (mbrtowc (&wc, input + 3, 6, &state) != 4
22234           && mbtowc (&wc, input + 3, 6) == 4)
22235         return 1;
22236     }
22237   return 0;
22238 }
22239 _ACEOF
22240 if ac_fn_c_try_run "$LINENO"; then :
22241   gl_cv_func_mbrtowc_sanitycheck=yes
22242 else
22243   gl_cv_func_mbrtowc_sanitycheck=no
22244 fi
22245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22246   conftest.$ac_objext conftest.beam conftest.$ac_ext
22247 fi
22248
22249       fi
22250
22251 fi
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
22253 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
22254
22255     REPLACE_MBSTATE_T=0
22256     case "$gl_cv_func_mbrtowc_incomplete_state" in
22257       *yes) ;;
22258       *) REPLACE_MBSTATE_T=1 ;;
22259     esac
22260     case "$gl_cv_func_mbrtowc_sanitycheck" in
22261       *yes) ;;
22262       *) REPLACE_MBSTATE_T=1 ;;
22263     esac
22264   else
22265     REPLACE_MBSTATE_T=1
22266   fi
22267   if test $REPLACE_MBSTATE_T = 1; then
22268
22269     :
22270
22271   fi
22272
22273
22274
22275   if test $ac_cv_func_mbsinit = no; then
22276     HAVE_MBSINIT=0
22277   else
22278     if test $REPLACE_MBSTATE_T = 1; then
22279       REPLACE_MBSINIT=1
22280     fi
22281   fi
22282   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
22283
22284     :
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
22295
22296
22297   :
22298
22299   fi
22300
22301
22302
22303
22304   GNULIB_MBSINIT=1
22305
22306
22307
22308 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
22309
22310
22311
22312   # Code from module mbsnlen:
22313
22314
22315
22316   GNULIB_MBSNLEN=1
22317
22318
22319
22320 $as_echo "#define GNULIB_TEST_MBSNLEN 1" >>confdefs.h
22321
22322
22323
22324   # Code from module memchr:
22325
22326
22327
22328
22329   GNULIB_MEMCHR=1
22330
22331
22332
22333 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
22334
22335
22336
22337   # Code from module memcmp2:
22338   # Code from module memxfrm:
22339   # Code from module minmax:
22340
22341
22342
22343   # Code from module multiarch:
22344
22345   # Code from module nocrash:
22346   # Code from module printf-frexp:
22347
22348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp can be used without linking with libm" >&5
22349 $as_echo_n "checking whether frexp can be used without linking with libm... " >&6; }
22350 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
22351   $as_echo_n "(cached) " >&6
22352 else
22353
22354       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22355 /* end confdefs.h.  */
22356 #include <math.h>
22357                    double x;
22358                    int y;
22359 int
22360 main ()
22361 {
22362 return frexp (x, &y) < 1;
22363   ;
22364   return 0;
22365 }
22366 _ACEOF
22367 if ac_fn_c_try_link "$LINENO"; then :
22368   gl_cv_func_frexp_no_libm=yes
22369 else
22370   gl_cv_func_frexp_no_libm=no
22371 fi
22372 rm -f core conftest.err conftest.$ac_objext \
22373     conftest$ac_exeext conftest.$ac_ext
22374
22375 fi
22376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
22377 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
22378   if test $gl_cv_func_frexp_no_libm = yes; then
22379
22380
22381      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
22382 $as_echo_n "checking whether frexp works... " >&6; }
22383 if test "${gl_cv_func_frexp_works+set}" = set; then :
22384   $as_echo_n "(cached) " >&6
22385 else
22386
22387       if test "$cross_compiling" = yes; then :
22388   case "$host_os" in
22389          netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
22390          *)                        gl_cv_func_frexp_works="guessing yes";;
22391        esac
22392
22393 else
22394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22395 /* end confdefs.h.  */
22396
22397 #include <float.h>
22398 #include <math.h>
22399 #include <string.h>
22400 int main()
22401 {
22402   int i;
22403   volatile double x;
22404 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
22405    So we use -zero instead.  */
22406   double zero = 0.0;
22407   /* Test on denormalized numbers.  */
22408   for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
22409     ;
22410   if (x > 0.0)
22411     {
22412       int exp;
22413       double y = frexp (x, &exp);
22414       /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
22415          On NetBSD: y = 0.75. Correct: y = 0.5.  */
22416       if (y != 0.5)
22417         return 1;
22418     }
22419   /* Test on infinite numbers.  */
22420   x = 1.0 / 0.0;
22421   {
22422     int exp;
22423     double y = frexp (x, &exp);
22424     if (y != x)
22425       return 1;
22426   }
22427   /* Test on negative zero.  */
22428   x = -zero;
22429   {
22430     int exp;
22431     double y = frexp (x, &exp);
22432     if (memcmp (&y, &x, sizeof x))
22433       return 1;
22434   }
22435   return 0;
22436 }
22437 _ACEOF
22438 if ac_fn_c_try_run "$LINENO"; then :
22439   gl_cv_func_frexp_works=yes
22440 else
22441   gl_cv_func_frexp_works=no
22442 fi
22443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22444   conftest.$ac_objext conftest.beam conftest.$ac_ext
22445 fi
22446
22447
22448 fi
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
22450 $as_echo "$gl_cv_func_frexp_works" >&6; }
22451
22452     case "$gl_cv_func_frexp_works" in
22453       *yes)
22454
22455 $as_echo "#define HAVE_FREXP_IN_LIBC 1" >>confdefs.h
22456
22457         ;;
22458     esac
22459   fi
22460
22461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexp can be used without linking with libm" >&5
22462 $as_echo_n "checking whether ldexp can be used without linking with libm... " >&6; }
22463 if test "${gl_cv_func_ldexp_no_libm+set}" = set; then :
22464   $as_echo_n "(cached) " >&6
22465 else
22466
22467       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22468 /* end confdefs.h.  */
22469 #include <math.h>
22470                    double x;
22471                    int y;
22472 int
22473 main ()
22474 {
22475 return ldexp (x, y) < 1;
22476   ;
22477   return 0;
22478 }
22479 _ACEOF
22480 if ac_fn_c_try_link "$LINENO"; then :
22481   gl_cv_func_ldexp_no_libm=yes
22482 else
22483   gl_cv_func_ldexp_no_libm=no
22484 fi
22485 rm -f core conftest.err conftest.$ac_objext \
22486     conftest$ac_exeext conftest.$ac_ext
22487
22488 fi
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexp_no_libm" >&5
22490 $as_echo "$gl_cv_func_ldexp_no_libm" >&6; }
22491   if test $gl_cv_func_ldexp_no_libm = yes; then
22492
22493 $as_echo "#define HAVE_LDEXP_IN_LIBC 1" >>confdefs.h
22494
22495   fi
22496
22497   # Code from module printf-frexpl:
22498
22499
22500     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl can be used without linking with libm" >&5
22501 $as_echo_n "checking whether frexpl can be used without linking with libm... " >&6; }
22502 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
22503   $as_echo_n "(cached) " >&6
22504 else
22505
22506       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22507 /* end confdefs.h.  */
22508 #include <math.h>
22509                    long double x;
22510                    int y;
22511 int
22512 main ()
22513 {
22514 return frexpl (x, &y) < 1;
22515   ;
22516   return 0;
22517 }
22518 _ACEOF
22519 if ac_fn_c_try_link "$LINENO"; then :
22520   gl_cv_func_frexpl_no_libm=yes
22521 else
22522   gl_cv_func_frexpl_no_libm=no
22523 fi
22524 rm -f core conftest.err conftest.$ac_objext \
22525     conftest$ac_exeext conftest.$ac_ext
22526
22527 fi
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
22529 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
22530   if test $gl_cv_func_frexpl_no_libm = yes; then
22531
22532
22533      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
22534 $as_echo_n "checking whether frexpl works... " >&6; }
22535 if test "${gl_cv_func_frexpl_works+set}" = set; then :
22536   $as_echo_n "(cached) " >&6
22537 else
22538
22539       if test "$cross_compiling" = yes; then :
22540   case "$host_os" in
22541          aix* | beos* | darwin* | irix* | mingw* | pw*)
22542             gl_cv_func_frexpl_works="guessing no";;
22543          *) gl_cv_func_frexpl_works="guessing yes";;
22544        esac
22545
22546 else
22547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22548 /* end confdefs.h.  */
22549
22550 #include <float.h>
22551 #include <math.h>
22552 /* Override the values of <float.h>, like done in float.in.h.  */
22553 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
22554 # undef LDBL_MIN_EXP
22555 # define LDBL_MIN_EXP    (-16381)
22556 #endif
22557 extern long double frexpl (long double, int *);
22558 int main()
22559 {
22560   volatile long double x;
22561   /* Test on finite numbers that fails on AIX 5.1.  */
22562   x = 16.0L;
22563   {
22564     int exp = -9999;
22565     frexpl (x, &exp);
22566     if (exp != 5)
22567       return 1;
22568   }
22569   /* Test on finite numbers that fails on MacOS X 10.4, because its frexpl
22570      function returns an invalid (incorrectly normalized) value: it returns
22571                y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
22572      but the correct result is
22573           0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 }  */
22574   x = 1.01L;
22575   {
22576     int exp = -9999;
22577     long double y = frexpl (x, &exp);
22578     if (!(exp == 1 && y == 0.505L))
22579       return 1;
22580   }
22581   /* Test on large finite numbers.  This fails on BeOS at i = 16322, while
22582      LDBL_MAX_EXP = 16384.
22583      In the loop end test, we test x against Infinity, rather than comparing
22584      i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP.  */
22585   {
22586     int i;
22587     for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
22588       {
22589         int exp = -9999;
22590         frexpl (x, &exp);
22591         if (exp != i)
22592           return 1;
22593       }
22594   }
22595   /* Test on denormalized numbers.  */
22596   {
22597     int i;
22598     for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
22599       ;
22600     if (x > 0.0L)
22601       {
22602         int exp;
22603         long double y = frexpl (x, &exp);
22604         /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
22605            exp = -16382, y = 0.5.  On MacOS X 10.5: exp = -16384, y = 0.5.  */
22606         if (exp != LDBL_MIN_EXP - 1)
22607           return 1;
22608       }
22609   }
22610   /* Test on infinite numbers.  */
22611   x = 1.0L / 0.0L;
22612   {
22613     int exp;
22614     long double y = frexpl (x, &exp);
22615     if (y != x)
22616       return 1;
22617   }
22618   return 0;
22619 }
22620 _ACEOF
22621 if ac_fn_c_try_run "$LINENO"; then :
22622   gl_cv_func_frexpl_works=yes
22623 else
22624   gl_cv_func_frexpl_works=no
22625 fi
22626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22627   conftest.$ac_objext conftest.beam conftest.$ac_ext
22628 fi
22629
22630
22631 fi
22632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
22633 $as_echo "$gl_cv_func_frexpl_works" >&6; }
22634
22635     case "$gl_cv_func_frexpl_works" in
22636       *yes) gl_func_frexpl_no_libm=yes ;;
22637       *)    gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
22638     esac
22639   else
22640     gl_func_frexpl_no_libm=no
22641         REPLACE_FREXPL=1
22642   fi
22643   if test $gl_func_frexpl_no_libm = yes; then
22644
22645 $as_echo "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h
22646
22647             ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
22648 "
22649 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
22650
22651 else
22652   HAVE_DECL_FREXPL=0
22653 fi
22654
22655   fi
22656
22657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl can be used without linking with libm" >&5
22658 $as_echo_n "checking whether ldexpl can be used without linking with libm... " >&6; }
22659 if test "${gl_cv_func_ldexpl_no_libm+set}" = set; then :
22660   $as_echo_n "(cached) " >&6
22661 else
22662
22663       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22664 /* end confdefs.h.  */
22665 #include <math.h>
22666                    long double x;
22667                    int y;
22668 int
22669 main ()
22670 {
22671 return ldexpl (x, y) < 1;
22672   ;
22673   return 0;
22674 }
22675 _ACEOF
22676 if ac_fn_c_try_link "$LINENO"; then :
22677   gl_cv_func_ldexpl_no_libm=yes
22678 else
22679   gl_cv_func_ldexpl_no_libm=no
22680 fi
22681 rm -f core conftest.err conftest.$ac_objext \
22682     conftest$ac_exeext conftest.$ac_ext
22683
22684 fi
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_no_libm" >&5
22686 $as_echo "$gl_cv_func_ldexpl_no_libm" >&6; }
22687   if test $gl_cv_func_ldexpl_no_libm = yes; then
22688
22689
22690      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl works" >&5
22691 $as_echo_n "checking whether ldexpl works... " >&6; }
22692 if test "${gl_cv_func_ldexpl_works+set}" = set; then :
22693   $as_echo_n "(cached) " >&6
22694 else
22695
22696       if test "$cross_compiling" = yes; then :
22697   case "$host_os" in
22698          aix*) gl_cv_func_ldexpl_works="guessing no";;
22699          *)    gl_cv_func_ldexpl_works="guessing yes";;
22700        esac
22701
22702 else
22703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22704 /* end confdefs.h.  */
22705
22706 #include <math.h>
22707 extern long double ldexpl (long double, int);
22708 int main()
22709 {
22710   volatile long double x1 = 1.0;
22711   volatile long double y1 = ldexpl (x1, -1);
22712   volatile long double x2 = 1.73205L;
22713   volatile long double y2 = ldexpl (x2, 0);
22714   return (y1 != 0.5L) || (y2 != x2);
22715 }
22716 _ACEOF
22717 if ac_fn_c_try_run "$LINENO"; then :
22718   gl_cv_func_ldexpl_works=yes
22719 else
22720   gl_cv_func_ldexpl_works=no
22721 fi
22722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22723   conftest.$ac_objext conftest.beam conftest.$ac_ext
22724 fi
22725
22726
22727 fi
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_works" >&5
22729 $as_echo "$gl_cv_func_ldexpl_works" >&6; }
22730
22731     case "$gl_cv_func_ldexpl_works" in
22732       *yes)
22733
22734 $as_echo "#define HAVE_LDEXPL_IN_LIBC 1" >>confdefs.h
22735
22736                         ac_fn_c_check_decl "$LINENO" "ldexpl" "ac_cv_have_decl_ldexpl" "#include <math.h>
22737 "
22738 if test "x$ac_cv_have_decl_ldexpl" = x""yes; then :
22739
22740 else
22741   HAVE_DECL_LDEXPL=0
22742 fi
22743
22744         ;;
22745     esac
22746   fi
22747
22748   # Code from module printf-safe:
22749
22750   # Code from module relocatable-lib-lgpl:
22751
22752
22753   if test $RELOCATABLE = yes; then
22754
22755
22756
22757
22758
22759
22760
22761
22762   gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext"
22763
22764   fi
22765
22766   # Code from module signbit:
22767
22768
22769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit macro" >&5
22770 $as_echo_n "checking for signbit macro... " >&6; }
22771 if test "${gl_cv_func_signbit+set}" = set; then :
22772   $as_echo_n "(cached) " >&6
22773 else
22774
22775       if test "$cross_compiling" = yes; then :
22776   gl_cv_func_signbit="guessing no"
22777 else
22778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22779 /* end confdefs.h.  */
22780
22781 #include <math.h>
22782 /* If signbit is defined as a function, don't use it, since calling it for
22783    'float' or 'long double' arguments would involve conversions.
22784    If signbit is not declared at all but exists as a library function, don't
22785    use it, since the prototype may not match.
22786    If signbit is not declared at all but exists as a compiler built-in, don't
22787    use it, since it's preferable to use __builtin_signbit* (no warnings,
22788    no conversions).  */
22789 #ifndef signbit
22790 # error "signbit should be a macro"
22791 #endif
22792 #include <string.h>
22793
22794 /* Global variables.
22795    Needed because GCC 4 constant-folds __builtin_signbitl (literal)
22796    but cannot constant-fold            __builtin_signbitl (variable).  */
22797 float vf;
22798 double vd;
22799 long double vl;
22800 int main ()
22801 {
22802 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
22803    So we use -p0f and -p0d instead.  */
22804 float p0f = 0.0f;
22805 float m0f = -p0f;
22806 double p0d = 0.0;
22807 double m0d = -p0d;
22808 /* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
22809    So we use another constant expression instead.
22810    But that expression does not work on other platforms, such as when
22811    cross-compiling to PowerPC on MacOS X 10.5.  */
22812 long double p0l = 0.0L;
22813 #if defined __hpux || defined __sgi
22814 long double m0l = -LDBL_MIN * LDBL_MIN;
22815 #else
22816 long double m0l = -p0l;
22817 #endif
22818   if (signbit (vf))
22819     vf++;
22820   {
22821     float plus_inf = 1.0f / p0f;
22822     float minus_inf = -1.0f / p0f;
22823     if (!(!signbit (255.0f)
22824           && signbit (-255.0f)
22825           && !signbit (p0f)
22826           && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
22827           && !signbit (plus_inf)
22828           && signbit (minus_inf)))
22829       return 1;
22830   }
22831   if (signbit (vd))
22832     vd++;
22833   {
22834     double plus_inf = 1.0 / p0d;
22835     double minus_inf = -1.0 / p0d;
22836     if (!(!signbit (255.0)
22837           && signbit (-255.0)
22838           && !signbit (p0d)
22839           && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
22840           && !signbit (plus_inf)
22841           && signbit (minus_inf)))
22842       return 1;
22843   }
22844   if (signbit (vl))
22845     vl++;
22846   {
22847     long double plus_inf = 1.0L / p0l;
22848     long double minus_inf = -1.0L / p0l;
22849     if (!(!signbit (255.0L)
22850           && signbit (-255.0L)
22851           && !signbit (p0l)
22852           && (memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l))
22853           && !signbit (plus_inf)
22854           && signbit (minus_inf)))
22855       return 1;
22856   }
22857   return 0;
22858 }
22859
22860
22861 _ACEOF
22862 if ac_fn_c_try_run "$LINENO"; then :
22863   gl_cv_func_signbit=yes
22864 else
22865   gl_cv_func_signbit=no
22866 fi
22867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22868   conftest.$ac_objext conftest.beam conftest.$ac_ext
22869 fi
22870
22871
22872 fi
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit" >&5
22874 $as_echo "$gl_cv_func_signbit" >&6; }
22875           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit compiler built-ins" >&5
22876 $as_echo_n "checking for signbit compiler built-ins... " >&6; }
22877 if test "${gl_cv_func_signbit_gcc+set}" = set; then :
22878   $as_echo_n "(cached) " >&6
22879 else
22880
22881       if test "$cross_compiling" = yes; then :
22882   gl_cv_func_signbit_gcc="guessing no"
22883 else
22884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22885 /* end confdefs.h.  */
22886
22887 #if __GNUC__ >= 4
22888 # define signbit(x) \
22889    (sizeof (x) == sizeof (long double) ? __builtin_signbitl (x) : \
22890     sizeof (x) == sizeof (double) ? __builtin_signbit (x) : \
22891     __builtin_signbitf (x))
22892 #else
22893 # error "signbit should be three compiler built-ins"
22894 #endif
22895 #include <string.h>
22896
22897 /* Global variables.
22898    Needed because GCC 4 constant-folds __builtin_signbitl (literal)
22899    but cannot constant-fold            __builtin_signbitl (variable).  */
22900 float vf;
22901 double vd;
22902 long double vl;
22903 int main ()
22904 {
22905 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
22906    So we use -p0f and -p0d instead.  */
22907 float p0f = 0.0f;
22908 float m0f = -p0f;
22909 double p0d = 0.0;
22910 double m0d = -p0d;
22911 /* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
22912    So we use another constant expression instead.
22913    But that expression does not work on other platforms, such as when
22914    cross-compiling to PowerPC on MacOS X 10.5.  */
22915 long double p0l = 0.0L;
22916 #if defined __hpux || defined __sgi
22917 long double m0l = -LDBL_MIN * LDBL_MIN;
22918 #else
22919 long double m0l = -p0l;
22920 #endif
22921   if (signbit (vf))
22922     vf++;
22923   {
22924     float plus_inf = 1.0f / p0f;
22925     float minus_inf = -1.0f / p0f;
22926     if (!(!signbit (255.0f)
22927           && signbit (-255.0f)
22928           && !signbit (p0f)
22929           && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
22930           && !signbit (plus_inf)
22931           && signbit (minus_inf)))
22932       return 1;
22933   }
22934   if (signbit (vd))
22935     vd++;
22936   {
22937     double plus_inf = 1.0 / p0d;
22938     double minus_inf = -1.0 / p0d;
22939     if (!(!signbit (255.0)
22940           && signbit (-255.0)
22941           && !signbit (p0d)
22942           && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
22943           && !signbit (plus_inf)
22944           && signbit (minus_inf)))
22945       return 1;
22946   }
22947   if (signbit (vl))
22948     vl++;
22949   {
22950     long double plus_inf = 1.0L / p0l;
22951     long double minus_inf = -1.0L / p0l;
22952     if (!(!signbit (255.0L)
22953           && signbit (-255.0L)
22954           && !signbit (p0l)
22955           && (memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l))
22956           && !signbit (plus_inf)
22957           && signbit (minus_inf)))
22958       return 1;
22959   }
22960   return 0;
22961 }
22962
22963
22964 _ACEOF
22965 if ac_fn_c_try_run "$LINENO"; then :
22966   gl_cv_func_signbit_gcc=yes
22967 else
22968   gl_cv_func_signbit_gcc=no
22969 fi
22970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22971   conftest.$ac_objext conftest.beam conftest.$ac_ext
22972 fi
22973
22974
22975 fi
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit_gcc" >&5
22977 $as_echo "$gl_cv_func_signbit_gcc" >&6; }
22978       if test "$gl_cv_func_signbit_gcc" = yes; then
22979     REPLACE_SIGNBIT_USING_GCC=1
22980   else
22981     if test "$gl_cv_func_signbit" != yes; then
22982       REPLACE_SIGNBIT=1
22983
22984
22985
22986
22987
22988
22989
22990
22991   gl_LIBOBJS="$gl_LIBOBJS signbitf.$ac_objext"
22992
22993
22994
22995
22996
22997
22998
22999
23000
23001   gl_LIBOBJS="$gl_LIBOBJS signbitd.$ac_objext"
23002
23003
23004
23005
23006
23007
23008
23009
23010
23011   gl_LIBOBJS="$gl_LIBOBJS signbitl.$ac_objext"
23012
23013
23014
23015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'float'" >&5
23016 $as_echo_n "checking where to find the sign bit in a 'float'... " >&6; }
23017 if test "${gl_cv_cc_float_signbit+set}" = set; then :
23018   $as_echo_n "(cached) " >&6
23019 else
23020
23021       if test "$cross_compiling" = yes; then :
23022
23023                               gl_cv_cc_float_signbit="unknown"
23024
23025 else
23026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23027 /* end confdefs.h.  */
23028
23029 #include <stddef.h>
23030 #include <stdio.h>
23031 #define NWORDS \
23032   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
23033 typedef union { float value; unsigned int word[NWORDS]; }
23034         memory_float;
23035 static memory_float plus = { 1.0f };
23036 static memory_float minus = { -1.0f };
23037 int main ()
23038 {
23039   size_t j, k, i;
23040   unsigned int m;
23041   FILE *fp = fopen ("conftest.out", "w");
23042   if (fp == NULL)
23043     return 1;
23044   /* Find the different bit.  */
23045   k = 0; m = 0;
23046   for (j = 0; j < NWORDS; j++)
23047     {
23048       unsigned int x = plus.word[j] ^ minus.word[j];
23049       if ((x & (x - 1)) || (x && m))
23050         {
23051           /* More than one bit difference.  */
23052           fprintf (fp, "unknown");
23053           return 1;
23054         }
23055       if (x)
23056         {
23057           k = j;
23058           m = x;
23059         }
23060     }
23061   if (m == 0)
23062     {
23063       /* No difference.  */
23064       fprintf (fp, "unknown");
23065       return 1;
23066     }
23067   /* Now m = plus.word[k] ^ ~minus.word[k].  */
23068   if (plus.word[k] & ~minus.word[k])
23069     {
23070       /* Oh? The sign bit is set in the positive and cleared in the negative
23071          numbers?  */
23072       fprintf (fp, "unknown");
23073       return 1;
23074     }
23075   for (i = 0; ; i++)
23076     if ((m >> i) & 1)
23077       break;
23078   fprintf (fp, "word %d bit %d", (int) k, (int) i);
23079   return (fclose (fp) != 0);
23080 }
23081
23082 _ACEOF
23083 if ac_fn_c_try_run "$LINENO"; then :
23084   gl_cv_cc_float_signbit=`cat conftest.out`
23085 else
23086   gl_cv_cc_float_signbit="unknown"
23087 fi
23088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23089   conftest.$ac_objext conftest.beam conftest.$ac_ext
23090 fi
23091
23092       rm -f conftest.out
23093
23094 fi
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_signbit" >&5
23096 $as_echo "$gl_cv_cc_float_signbit" >&6; }
23097   case "$gl_cv_cc_float_signbit" in
23098     word*bit*)
23099       word=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
23100       bit=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word.*bit //'`
23101
23102 cat >>confdefs.h <<_ACEOF
23103 #define FLT_SIGNBIT_WORD $word
23104 _ACEOF
23105
23106
23107 cat >>confdefs.h <<_ACEOF
23108 #define FLT_SIGNBIT_BIT $bit
23109 _ACEOF
23110
23111       ;;
23112   esac
23113
23114
23115
23116
23117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'double'" >&5
23118 $as_echo_n "checking where to find the sign bit in a 'double'... " >&6; }
23119 if test "${gl_cv_cc_double_signbit+set}" = set; then :
23120   $as_echo_n "(cached) " >&6
23121 else
23122
23123       if test "$cross_compiling" = yes; then :
23124
23125                               gl_cv_cc_double_signbit="unknown"
23126
23127 else
23128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23129 /* end confdefs.h.  */
23130
23131 #include <stddef.h>
23132 #include <stdio.h>
23133 #define NWORDS \
23134   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
23135 typedef union { double value; unsigned int word[NWORDS]; }
23136         memory_float;
23137 static memory_float plus = { 1.0 };
23138 static memory_float minus = { -1.0 };
23139 int main ()
23140 {
23141   size_t j, k, i;
23142   unsigned int m;
23143   FILE *fp = fopen ("conftest.out", "w");
23144   if (fp == NULL)
23145     return 1;
23146   /* Find the different bit.  */
23147   k = 0; m = 0;
23148   for (j = 0; j < NWORDS; j++)
23149     {
23150       unsigned int x = plus.word[j] ^ minus.word[j];
23151       if ((x & (x - 1)) || (x && m))
23152         {
23153           /* More than one bit difference.  */
23154           fprintf (fp, "unknown");
23155           return 1;
23156         }
23157       if (x)
23158         {
23159           k = j;
23160           m = x;
23161         }
23162     }
23163   if (m == 0)
23164     {
23165       /* No difference.  */
23166       fprintf (fp, "unknown");
23167       return 1;
23168     }
23169   /* Now m = plus.word[k] ^ ~minus.word[k].  */
23170   if (plus.word[k] & ~minus.word[k])
23171     {
23172       /* Oh? The sign bit is set in the positive and cleared in the negative
23173          numbers?  */
23174       fprintf (fp, "unknown");
23175       return 1;
23176     }
23177   for (i = 0; ; i++)
23178     if ((m >> i) & 1)
23179       break;
23180   fprintf (fp, "word %d bit %d", (int) k, (int) i);
23181   return (fclose (fp) != 0);
23182 }
23183
23184 _ACEOF
23185 if ac_fn_c_try_run "$LINENO"; then :
23186   gl_cv_cc_double_signbit=`cat conftest.out`
23187 else
23188   gl_cv_cc_double_signbit="unknown"
23189 fi
23190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23191   conftest.$ac_objext conftest.beam conftest.$ac_ext
23192 fi
23193
23194       rm -f conftest.out
23195
23196 fi
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_signbit" >&5
23198 $as_echo "$gl_cv_cc_double_signbit" >&6; }
23199   case "$gl_cv_cc_double_signbit" in
23200     word*bit*)
23201       word=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
23202       bit=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word.*bit //'`
23203
23204 cat >>confdefs.h <<_ACEOF
23205 #define DBL_SIGNBIT_WORD $word
23206 _ACEOF
23207
23208
23209 cat >>confdefs.h <<_ACEOF
23210 #define DBL_SIGNBIT_BIT $bit
23211 _ACEOF
23212
23213       ;;
23214   esac
23215
23216
23217
23218
23219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'long double'" >&5
23220 $as_echo_n "checking where to find the sign bit in a 'long double'... " >&6; }
23221 if test "${gl_cv_cc_long_double_signbit+set}" = set; then :
23222   $as_echo_n "(cached) " >&6
23223 else
23224
23225       if test "$cross_compiling" = yes; then :
23226
23227                               gl_cv_cc_long_double_signbit="unknown"
23228
23229 else
23230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23231 /* end confdefs.h.  */
23232
23233 #include <stddef.h>
23234 #include <stdio.h>
23235 #define NWORDS \
23236   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
23237 typedef union { long double value; unsigned int word[NWORDS]; }
23238         memory_float;
23239 static memory_float plus = { 1.0L };
23240 static memory_float minus = { -1.0L };
23241 int main ()
23242 {
23243   size_t j, k, i;
23244   unsigned int m;
23245   FILE *fp = fopen ("conftest.out", "w");
23246   if (fp == NULL)
23247     return 1;
23248   /* Find the different bit.  */
23249   k = 0; m = 0;
23250   for (j = 0; j < NWORDS; j++)
23251     {
23252       unsigned int x = plus.word[j] ^ minus.word[j];
23253       if ((x & (x - 1)) || (x && m))
23254         {
23255           /* More than one bit difference.  */
23256           fprintf (fp, "unknown");
23257           return 1;
23258         }
23259       if (x)
23260         {
23261           k = j;
23262           m = x;
23263         }
23264     }
23265   if (m == 0)
23266     {
23267       /* No difference.  */
23268       fprintf (fp, "unknown");
23269       return 1;
23270     }
23271   /* Now m = plus.word[k] ^ ~minus.word[k].  */
23272   if (plus.word[k] & ~minus.word[k])
23273     {
23274       /* Oh? The sign bit is set in the positive and cleared in the negative
23275          numbers?  */
23276       fprintf (fp, "unknown");
23277       return 1;
23278     }
23279   for (i = 0; ; i++)
23280     if ((m >> i) & 1)
23281       break;
23282   fprintf (fp, "word %d bit %d", (int) k, (int) i);
23283   return (fclose (fp) != 0);
23284 }
23285
23286 _ACEOF
23287 if ac_fn_c_try_run "$LINENO"; then :
23288   gl_cv_cc_long_double_signbit=`cat conftest.out`
23289 else
23290   gl_cv_cc_long_double_signbit="unknown"
23291 fi
23292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23293   conftest.$ac_objext conftest.beam conftest.$ac_ext
23294 fi
23295
23296       rm -f conftest.out
23297
23298 fi
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_signbit" >&5
23300 $as_echo "$gl_cv_cc_long_double_signbit" >&6; }
23301   case "$gl_cv_cc_long_double_signbit" in
23302     word*bit*)
23303       word=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
23304       bit=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word.*bit //'`
23305
23306 cat >>confdefs.h <<_ACEOF
23307 #define LDBL_SIGNBIT_WORD $word
23308 _ACEOF
23309
23310
23311 cat >>confdefs.h <<_ACEOF
23312 #define LDBL_SIGNBIT_BIT $bit
23313 _ACEOF
23314
23315       ;;
23316   esac
23317
23318
23319       if test "$gl_cv_cc_float_signbit" = unknown; then
23320                 ac_fn_c_check_decl "$LINENO" "copysignf" "ac_cv_have_decl_copysignf" "#include <math.h>
23321 "
23322 if test "x$ac_cv_have_decl_copysignf" = x""yes; then :
23323   ac_have_decl=1
23324 else
23325   ac_have_decl=0
23326 fi
23327
23328 cat >>confdefs.h <<_ACEOF
23329 #define HAVE_DECL_COPYSIGNF $ac_have_decl
23330 _ACEOF
23331
23332         if test "$ac_cv_have_decl_copysignf" = yes; then
23333                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignf can be used without linking with libm" >&5
23334 $as_echo_n "checking whether copysignf can be used without linking with libm... " >&6; }
23335 if test "${gl_cv_func_copysignf_no_libm+set}" = set; then :
23336   $as_echo_n "(cached) " >&6
23337 else
23338
23339               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23340 /* end confdefs.h.  */
23341 #include <math.h>
23342                            float x, y;
23343 int
23344 main ()
23345 {
23346 return copysignf (x, y) < 0;
23347   ;
23348   return 0;
23349 }
23350 _ACEOF
23351 if ac_fn_c_try_link "$LINENO"; then :
23352   gl_cv_func_copysignf_no_libm=yes
23353 else
23354   gl_cv_func_copysignf_no_libm=no
23355 fi
23356 rm -f core conftest.err conftest.$ac_objext \
23357     conftest$ac_exeext conftest.$ac_ext
23358
23359 fi
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignf_no_libm" >&5
23361 $as_echo "$gl_cv_func_copysignf_no_libm" >&6; }
23362           if test $gl_cv_func_copysignf_no_libm = yes; then
23363
23364 $as_echo "#define HAVE_COPYSIGNF_IN_LIBC 1" >>confdefs.h
23365
23366           fi
23367         fi
23368       fi
23369       if test "$gl_cv_cc_double_signbit" = unknown; then
23370                 ac_fn_c_check_decl "$LINENO" "copysign" "ac_cv_have_decl_copysign" "#include <math.h>
23371 "
23372 if test "x$ac_cv_have_decl_copysign" = x""yes; then :
23373   ac_have_decl=1
23374 else
23375   ac_have_decl=0
23376 fi
23377
23378 cat >>confdefs.h <<_ACEOF
23379 #define HAVE_DECL_COPYSIGN $ac_have_decl
23380 _ACEOF
23381
23382         if test "$ac_cv_have_decl_copysign" = yes; then
23383                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysign can be used without linking with libm" >&5
23384 $as_echo_n "checking whether copysign can be used without linking with libm... " >&6; }
23385 if test "${gl_cv_func_copysign_no_libm+set}" = set; then :
23386   $as_echo_n "(cached) " >&6
23387 else
23388
23389               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23390 /* end confdefs.h.  */
23391 #include <math.h>
23392                            double x, y;
23393 int
23394 main ()
23395 {
23396 return copysign (x, y) < 0;
23397   ;
23398   return 0;
23399 }
23400 _ACEOF
23401 if ac_fn_c_try_link "$LINENO"; then :
23402   gl_cv_func_copysign_no_libm=yes
23403 else
23404   gl_cv_func_copysign_no_libm=no
23405 fi
23406 rm -f core conftest.err conftest.$ac_objext \
23407     conftest$ac_exeext conftest.$ac_ext
23408
23409 fi
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysign_no_libm" >&5
23411 $as_echo "$gl_cv_func_copysign_no_libm" >&6; }
23412           if test $gl_cv_func_copysign_no_libm = yes; then
23413
23414 $as_echo "#define HAVE_COPYSIGN_IN_LIBC 1" >>confdefs.h
23415
23416           fi
23417         fi
23418       fi
23419       if test "$gl_cv_cc_long_double_signbit" = unknown; then
23420                 ac_fn_c_check_decl "$LINENO" "copysignl" "ac_cv_have_decl_copysignl" "#include <math.h>
23421 "
23422 if test "x$ac_cv_have_decl_copysignl" = x""yes; then :
23423   ac_have_decl=1
23424 else
23425   ac_have_decl=0
23426 fi
23427
23428 cat >>confdefs.h <<_ACEOF
23429 #define HAVE_DECL_COPYSIGNL $ac_have_decl
23430 _ACEOF
23431
23432         if test "$ac_cv_have_decl_copysignl" = yes; then
23433                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignl can be used without linking with libm" >&5
23434 $as_echo_n "checking whether copysignl can be used without linking with libm... " >&6; }
23435 if test "${gl_cv_func_copysignl_no_libm+set}" = set; then :
23436   $as_echo_n "(cached) " >&6
23437 else
23438
23439               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23440 /* end confdefs.h.  */
23441 #include <math.h>
23442                            long double x, y;
23443 int
23444 main ()
23445 {
23446 return copysignl (x, y) < 0;
23447   ;
23448   return 0;
23449 }
23450 _ACEOF
23451 if ac_fn_c_try_link "$LINENO"; then :
23452   gl_cv_func_copysignl_no_libm=yes
23453 else
23454   gl_cv_func_copysignl_no_libm=no
23455 fi
23456 rm -f core conftest.err conftest.$ac_objext \
23457     conftest$ac_exeext conftest.$ac_ext
23458
23459 fi
23460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignl_no_libm" >&5
23461 $as_echo "$gl_cv_func_copysignl_no_libm" >&6; }
23462           if test $gl_cv_func_copysignl_no_libm = yes; then
23463
23464 $as_echo "#define HAVE_COPYSIGNL_IN_LIBC 1" >>confdefs.h
23465
23466           fi
23467         fi
23468       fi
23469     fi
23470   fi
23471
23472
23473
23474
23475   GNULIB_SIGNBIT=1
23476
23477
23478
23479 $as_echo "#define GNULIB_TEST_SIGNBIT 1" >>confdefs.h
23480
23481
23482
23483   # Code from module size_max:
23484
23485   for ac_header in stdint.h
23486 do :
23487   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
23488 if test "x$ac_cv_header_stdint_h" = x""yes; then :
23489   cat >>confdefs.h <<_ACEOF
23490 #define HAVE_STDINT_H 1
23491 _ACEOF
23492
23493 fi
23494
23495 done
23496
23497     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
23498 $as_echo_n "checking for SIZE_MAX... " >&6; }
23499 if test "${gl_cv_size_max+set}" = set; then :
23500   $as_echo_n "(cached) " >&6
23501 else
23502
23503     gl_cv_size_max=
23504     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23505 /* end confdefs.h.  */
23506
23507 #include <limits.h>
23508 #if HAVE_STDINT_H
23509 #include <stdint.h>
23510 #endif
23511 #ifdef SIZE_MAX
23512 Found it
23513 #endif
23514
23515 _ACEOF
23516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23517   $EGREP "Found it" >/dev/null 2>&1; then :
23518   gl_cv_size_max=yes
23519 fi
23520 rm -f conftest*
23521
23522     if test -z "$gl_cv_size_max"; then
23523                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
23524 #include <limits.h>"; then :
23525
23526 else
23527   size_t_bits_minus_1=
23528 fi
23529
23530       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
23531
23532 else
23533   fits_in_uint=
23534 fi
23535
23536       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
23537         if test $fits_in_uint = 1; then
23538                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23539 /* end confdefs.h.  */
23540 #include <stddef.h>
23541             extern size_t foo;
23542             extern unsigned long foo;
23543
23544 int
23545 main ()
23546 {
23547
23548   ;
23549   return 0;
23550 }
23551 _ACEOF
23552 if ac_fn_c_try_compile "$LINENO"; then :
23553   fits_in_uint=0
23554 fi
23555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23556         fi
23557                                 if test $fits_in_uint = 1; then
23558           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
23559         else
23560           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
23561         fi
23562       else
23563                 gl_cv_size_max='((size_t)~(size_t)0)'
23564       fi
23565     fi
23566
23567 fi
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
23569 $as_echo "$gl_cv_size_max" >&6; }
23570   if test "$gl_cv_size_max" != yes; then
23571
23572 cat >>confdefs.h <<_ACEOF
23573 #define SIZE_MAX $gl_cv_size_max
23574 _ACEOF
23575
23576   fi
23577
23578
23579   # Code from module stdbool:
23580
23581
23582
23583   # Define two additional variables used in the Makefile substitution.
23584
23585   if test "$ac_cv_header_stdbool_h" = yes; then
23586     STDBOOL_H=''
23587   else
23588     STDBOOL_H='stdbool.h'
23589   fi
23590
23591
23592   if test "$ac_cv_type__Bool" = yes; then
23593     HAVE__BOOL=1
23594   else
23595     HAVE__BOOL=0
23596   fi
23597
23598
23599   # Code from module stddef:
23600
23601
23602
23603   if test $gt_cv_c_wchar_t = no; then
23604     HAVE_WCHAR_T=0
23605     STDDEF_H=stddef.h
23606   fi
23607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23608 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23609 if test "${gl_cv_decl_null_works+set}" = set; then :
23610   $as_echo_n "(cached) " >&6
23611 else
23612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23613 /* end confdefs.h.  */
23614 #include <stddef.h>
23615       int test[2 * (sizeof NULL == sizeof (void *)) -1];
23616
23617 int
23618 main ()
23619 {
23620
23621   ;
23622   return 0;
23623 }
23624 _ACEOF
23625 if ac_fn_c_try_compile "$LINENO"; then :
23626   gl_cv_decl_null_works=yes
23627 else
23628   gl_cv_decl_null_works=no
23629 fi
23630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23631 fi
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23633 $as_echo "$gl_cv_decl_null_works" >&6; }
23634   if test $gl_cv_decl_null_works = no; then
23635     REPLACE_NULL=1
23636     STDDEF_H=stddef.h
23637   fi
23638   if test -n "$STDDEF_H"; then
23639
23640
23641
23642
23643
23644
23645      if test $gl_cv_have_include_next = yes; then
23646        gl_cv_next_stddef_h='<'stddef.h'>'
23647      else
23648        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23649 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23650 if test "${gl_cv_next_stddef_h+set}" = set; then :
23651   $as_echo_n "(cached) " >&6
23652 else
23653
23654           if test $ac_cv_header_stddef_h = yes; then
23655             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23656 /* end confdefs.h.  */
23657 #include <stddef.h>
23658
23659 _ACEOF
23660                                                                                                 case "$host_os" in
23661               aix*) gl_absname_cpp="$ac_cpp -C" ;;
23662               *)    gl_absname_cpp="$ac_cpp" ;;
23663             esac
23664                                                 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23665                sed -n '\#/stddef.h#{
23666                  s#.*"\(.*/stddef.h\)".*#\1#
23667                  s#^/[^/]#//&#
23668                  p
23669                  q
23670                }'`'"'
23671           else
23672             gl_cv_next_stddef_h='<'stddef.h'>'
23673           fi
23674
23675 fi
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23677 $as_echo "$gl_cv_next_stddef_h" >&6; }
23678      fi
23679      NEXT_STDDEF_H=$gl_cv_next_stddef_h
23680
23681      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23682        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23683        gl_next_as_first_directive='<'stddef.h'>'
23684      else
23685        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23686        gl_next_as_first_directive=$gl_cv_next_stddef_h
23687      fi
23688      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
23689
23690
23691
23692   fi
23693
23694   # Code from module stdint:
23695
23696
23697
23698   if test $ac_cv_type_long_long_int = yes; then
23699     HAVE_LONG_LONG_INT=1
23700   else
23701     HAVE_LONG_LONG_INT=0
23702   fi
23703
23704
23705   if test $ac_cv_type_unsigned_long_long_int = yes; then
23706     HAVE_UNSIGNED_LONG_LONG_INT=1
23707   else
23708     HAVE_UNSIGNED_LONG_LONG_INT=0
23709   fi
23710
23711
23712       if test $ac_cv_header_inttypes_h = yes; then
23713     HAVE_INTTYPES_H=1
23714   else
23715     HAVE_INTTYPES_H=0
23716   fi
23717
23718
23719       if test $ac_cv_header_sys_types_h = yes; then
23720     HAVE_SYS_TYPES_H=1
23721   else
23722     HAVE_SYS_TYPES_H=0
23723   fi
23724
23725
23726
23727
23728
23729
23730
23731
23732      if test $gl_cv_have_include_next = yes; then
23733        gl_cv_next_stdint_h='<'stdint.h'>'
23734      else
23735        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
23736 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
23737 if test "${gl_cv_next_stdint_h+set}" = set; then :
23738   $as_echo_n "(cached) " >&6
23739 else
23740
23741           if test $ac_cv_header_stdint_h = yes; then
23742             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23743 /* end confdefs.h.  */
23744 #include <stdint.h>
23745
23746 _ACEOF
23747                                                                                                 case "$host_os" in
23748               aix*) gl_absname_cpp="$ac_cpp -C" ;;
23749               *)    gl_absname_cpp="$ac_cpp" ;;
23750             esac
23751                                                 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23752                sed -n '\#/stdint.h#{
23753                  s#.*"\(.*/stdint.h\)".*#\1#
23754                  s#^/[^/]#//&#
23755                  p
23756                  q
23757                }'`'"'
23758           else
23759             gl_cv_next_stdint_h='<'stdint.h'>'
23760           fi
23761
23762 fi
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
23764 $as_echo "$gl_cv_next_stdint_h" >&6; }
23765      fi
23766      NEXT_STDINT_H=$gl_cv_next_stdint_h
23767
23768      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23769        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23770        gl_next_as_first_directive='<'stdint.h'>'
23771      else
23772        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23773        gl_next_as_first_directive=$gl_cv_next_stdint_h
23774      fi
23775      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
23776
23777
23778
23779   if test $ac_cv_header_stdint_h = yes; then
23780     HAVE_STDINT_H=1
23781   else
23782     HAVE_STDINT_H=0
23783   fi
23784
23785
23786     if test $ac_cv_header_stdint_h = yes; then
23787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
23788 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
23789 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
23790   $as_echo_n "(cached) " >&6
23791 else
23792   gl_cv_header_working_stdint_h=no
23793        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23794 /* end confdefs.h.  */
23795
23796
23797 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
23798 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
23799 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
23800 #include <stdint.h>
23801 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
23802 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
23803 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
23804 #endif
23805
23806
23807   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23808      included before <wchar.h>.  */
23809   #include <stddef.h>
23810   #include <signal.h>
23811   #if HAVE_WCHAR_H
23812   # include <stdio.h>
23813   # include <time.h>
23814   # include <wchar.h>
23815   #endif
23816
23817
23818 #ifdef INT8_MAX
23819 int8_t a1 = INT8_MAX;
23820 int8_t a1min = INT8_MIN;
23821 #endif
23822 #ifdef INT16_MAX
23823 int16_t a2 = INT16_MAX;
23824 int16_t a2min = INT16_MIN;
23825 #endif
23826 #ifdef INT32_MAX
23827 int32_t a3 = INT32_MAX;
23828 int32_t a3min = INT32_MIN;
23829 #endif
23830 #ifdef INT64_MAX
23831 int64_t a4 = INT64_MAX;
23832 int64_t a4min = INT64_MIN;
23833 #endif
23834 #ifdef UINT8_MAX
23835 uint8_t b1 = UINT8_MAX;
23836 #else
23837 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
23838 #endif
23839 #ifdef UINT16_MAX
23840 uint16_t b2 = UINT16_MAX;
23841 #endif
23842 #ifdef UINT32_MAX
23843 uint32_t b3 = UINT32_MAX;
23844 #endif
23845 #ifdef UINT64_MAX
23846 uint64_t b4 = UINT64_MAX;
23847 #endif
23848 int_least8_t c1 = INT8_C (0x7f);
23849 int_least8_t c1max = INT_LEAST8_MAX;
23850 int_least8_t c1min = INT_LEAST8_MIN;
23851 int_least16_t c2 = INT16_C (0x7fff);
23852 int_least16_t c2max = INT_LEAST16_MAX;
23853 int_least16_t c2min = INT_LEAST16_MIN;
23854 int_least32_t c3 = INT32_C (0x7fffffff);
23855 int_least32_t c3max = INT_LEAST32_MAX;
23856 int_least32_t c3min = INT_LEAST32_MIN;
23857 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
23858 int_least64_t c4max = INT_LEAST64_MAX;
23859 int_least64_t c4min = INT_LEAST64_MIN;
23860 uint_least8_t d1 = UINT8_C (0xff);
23861 uint_least8_t d1max = UINT_LEAST8_MAX;
23862 uint_least16_t d2 = UINT16_C (0xffff);
23863 uint_least16_t d2max = UINT_LEAST16_MAX;
23864 uint_least32_t d3 = UINT32_C (0xffffffff);
23865 uint_least32_t d3max = UINT_LEAST32_MAX;
23866 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
23867 uint_least64_t d4max = UINT_LEAST64_MAX;
23868 int_fast8_t e1 = INT_FAST8_MAX;
23869 int_fast8_t e1min = INT_FAST8_MIN;
23870 int_fast16_t e2 = INT_FAST16_MAX;
23871 int_fast16_t e2min = INT_FAST16_MIN;
23872 int_fast32_t e3 = INT_FAST32_MAX;
23873 int_fast32_t e3min = INT_FAST32_MIN;
23874 int_fast64_t e4 = INT_FAST64_MAX;
23875 int_fast64_t e4min = INT_FAST64_MIN;
23876 uint_fast8_t f1 = UINT_FAST8_MAX;
23877 uint_fast16_t f2 = UINT_FAST16_MAX;
23878 uint_fast32_t f3 = UINT_FAST32_MAX;
23879 uint_fast64_t f4 = UINT_FAST64_MAX;
23880 #ifdef INTPTR_MAX
23881 intptr_t g = INTPTR_MAX;
23882 intptr_t gmin = INTPTR_MIN;
23883 #endif
23884 #ifdef UINTPTR_MAX
23885 uintptr_t h = UINTPTR_MAX;
23886 #endif
23887 intmax_t i = INTMAX_MAX;
23888 uintmax_t j = UINTMAX_MAX;
23889
23890 #include <limits.h> /* for CHAR_BIT */
23891 #define TYPE_MINIMUM(t) \
23892   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
23893 #define TYPE_MAXIMUM(t) \
23894   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
23895 struct s {
23896   int check_PTRDIFF:
23897       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
23898       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
23899       ? 1 : -1;
23900   /* Detect bug in FreeBSD 6.0 / ia64.  */
23901   int check_SIG_ATOMIC:
23902       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
23903       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
23904       ? 1 : -1;
23905   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
23906   int check_WCHAR:
23907       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
23908       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
23909       ? 1 : -1;
23910   /* Detect bug in mingw.  */
23911   int check_WINT:
23912       WINT_MIN == TYPE_MINIMUM (wint_t)
23913       && WINT_MAX == TYPE_MAXIMUM (wint_t)
23914       ? 1 : -1;
23915
23916   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
23917   int check_UINT8_C:
23918         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
23919   int check_UINT16_C:
23920         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
23921
23922   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
23923 #ifdef UINT8_MAX
23924   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
23925 #endif
23926 #ifdef UINT16_MAX
23927   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
23928 #endif
23929 #ifdef UINT32_MAX
23930   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
23931 #endif
23932 #ifdef UINT64_MAX
23933   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
23934 #endif
23935   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
23936   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
23937   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
23938   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
23939   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
23940   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
23941   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
23942   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
23943   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
23944   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
23945   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
23946 };
23947
23948 int
23949 main ()
23950 {
23951
23952   ;
23953   return 0;
23954 }
23955 _ACEOF
23956 if ac_fn_c_try_compile "$LINENO"; then :
23957                                                     if test "$cross_compiling" = yes; then :
23958                  gl_cv_header_working_stdint_h=yes
23959
23960 else
23961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23962 /* end confdefs.h.  */
23963
23964
23965 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
23966 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
23967 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
23968 #include <stdint.h>
23969
23970
23971   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23972      included before <wchar.h>.  */
23973   #include <stddef.h>
23974   #include <signal.h>
23975   #if HAVE_WCHAR_H
23976   # include <stdio.h>
23977   # include <time.h>
23978   # include <wchar.h>
23979   #endif
23980
23981
23982 #include <stdio.h>
23983 #include <string.h>
23984 #define MVAL(macro) MVAL1(macro)
23985 #define MVAL1(expression) #expression
23986 static const char *macro_values[] =
23987   {
23988 #ifdef INT8_MAX
23989     MVAL (INT8_MAX),
23990 #endif
23991 #ifdef INT16_MAX
23992     MVAL (INT16_MAX),
23993 #endif
23994 #ifdef INT32_MAX
23995     MVAL (INT32_MAX),
23996 #endif
23997 #ifdef INT64_MAX
23998     MVAL (INT64_MAX),
23999 #endif
24000 #ifdef UINT8_MAX
24001     MVAL (UINT8_MAX),
24002 #endif
24003 #ifdef UINT16_MAX
24004     MVAL (UINT16_MAX),
24005 #endif
24006 #ifdef UINT32_MAX
24007     MVAL (UINT32_MAX),
24008 #endif
24009 #ifdef UINT64_MAX
24010     MVAL (UINT64_MAX),
24011 #endif
24012     NULL
24013   };
24014
24015 int
24016 main ()
24017 {
24018
24019   const char **mv;
24020   for (mv = macro_values; *mv != NULL; mv++)
24021     {
24022       const char *value = *mv;
24023       /* Test whether it looks like a cast expression.  */
24024       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
24025           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
24026           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
24027           || strncmp (value, "((int)"/*)*/, 6) == 0
24028           || strncmp (value, "((signed short)"/*)*/, 15) == 0
24029           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
24030         return 1;
24031     }
24032   return 0;
24033
24034   ;
24035   return 0;
24036 }
24037 _ACEOF
24038 if ac_fn_c_try_run "$LINENO"; then :
24039   gl_cv_header_working_stdint_h=yes
24040 fi
24041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24042   conftest.$ac_objext conftest.beam conftest.$ac_ext
24043 fi
24044
24045
24046 fi
24047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24048
24049 fi
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
24051 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
24052   fi
24053   if test "$gl_cv_header_working_stdint_h" = yes; then
24054     STDINT_H=
24055   else
24056             for ac_header in sys/inttypes.h sys/bitypes.h
24057 do :
24058   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24059 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24060 eval as_val=\$$as_ac_Header
24061    if test "x$as_val" = x""yes; then :
24062   cat >>confdefs.h <<_ACEOF
24063 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24064 _ACEOF
24065
24066 fi
24067
24068 done
24069
24070     if test $ac_cv_header_sys_inttypes_h = yes; then
24071       HAVE_SYS_INTTYPES_H=1
24072     else
24073       HAVE_SYS_INTTYPES_H=0
24074     fi
24075
24076     if test $ac_cv_header_sys_bitypes_h = yes; then
24077       HAVE_SYS_BITYPES_H=1
24078     else
24079       HAVE_SYS_BITYPES_H=0
24080     fi
24081
24082
24083
24084
24085
24086
24087   if test $APPLE_UNIVERSAL_BUILD = 0; then
24088
24089
24090   for gltype in ptrdiff_t size_t ; do
24091     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
24092 $as_echo_n "checking for bit size of $gltype... " >&6; }
24093 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
24094   $as_echo_n "(cached) " >&6
24095 else
24096   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
24097   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24098      included before <wchar.h>.  */
24099   #include <stddef.h>
24100   #include <signal.h>
24101   #if HAVE_WCHAR_H
24102   # include <stdio.h>
24103   # include <time.h>
24104   # include <wchar.h>
24105   #endif
24106
24107 #include <limits.h>"; then :
24108
24109 else
24110   result=unknown
24111 fi
24112
24113        eval gl_cv_bitsizeof_${gltype}=\$result
24114
24115 fi
24116 eval ac_res=\$gl_cv_bitsizeof_${gltype}
24117                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24118 $as_echo "$ac_res" >&6; }
24119     eval result=\$gl_cv_bitsizeof_${gltype}
24120     if test $result = unknown; then
24121                                                 result=0
24122     fi
24123     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24124     cat >>confdefs.h <<_ACEOF
24125 #define BITSIZEOF_${GLTYPE} $result
24126 _ACEOF
24127
24128     eval BITSIZEOF_${GLTYPE}=\$result
24129   done
24130
24131
24132   fi
24133
24134
24135   for gltype in sig_atomic_t wchar_t wint_t ; do
24136     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
24137 $as_echo_n "checking for bit size of $gltype... " >&6; }
24138 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
24139   $as_echo_n "(cached) " >&6
24140 else
24141   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
24142   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24143      included before <wchar.h>.  */
24144   #include <stddef.h>
24145   #include <signal.h>
24146   #if HAVE_WCHAR_H
24147   # include <stdio.h>
24148   # include <time.h>
24149   # include <wchar.h>
24150   #endif
24151
24152 #include <limits.h>"; then :
24153
24154 else
24155   result=unknown
24156 fi
24157
24158        eval gl_cv_bitsizeof_${gltype}=\$result
24159
24160 fi
24161 eval ac_res=\$gl_cv_bitsizeof_${gltype}
24162                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24163 $as_echo "$ac_res" >&6; }
24164     eval result=\$gl_cv_bitsizeof_${gltype}
24165     if test $result = unknown; then
24166                                                 result=0
24167     fi
24168     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24169     cat >>confdefs.h <<_ACEOF
24170 #define BITSIZEOF_${GLTYPE} $result
24171 _ACEOF
24172
24173     eval BITSIZEOF_${GLTYPE}=\$result
24174   done
24175
24176
24177
24178
24179   for gltype in sig_atomic_t wchar_t wint_t ; do
24180     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
24181 $as_echo_n "checking whether $gltype is signed... " >&6; }
24182 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
24183   $as_echo_n "(cached) " >&6
24184 else
24185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24186 /* end confdefs.h.  */
24187
24188   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24189      included before <wchar.h>.  */
24190   #include <stddef.h>
24191   #include <signal.h>
24192   #if HAVE_WCHAR_H
24193   # include <stdio.h>
24194   # include <time.h>
24195   # include <wchar.h>
24196   #endif
24197
24198             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
24199 int
24200 main ()
24201 {
24202
24203   ;
24204   return 0;
24205 }
24206 _ACEOF
24207 if ac_fn_c_try_compile "$LINENO"; then :
24208   result=yes
24209 else
24210   result=no
24211 fi
24212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24213        eval gl_cv_type_${gltype}_signed=\$result
24214
24215 fi
24216 eval ac_res=\$gl_cv_type_${gltype}_signed
24217                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24218 $as_echo "$ac_res" >&6; }
24219     eval result=\$gl_cv_type_${gltype}_signed
24220     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24221     if test "$result" = yes; then
24222       cat >>confdefs.h <<_ACEOF
24223 #define HAVE_SIGNED_${GLTYPE} 1
24224 _ACEOF
24225
24226       eval HAVE_SIGNED_${GLTYPE}=1
24227     else
24228       eval HAVE_SIGNED_${GLTYPE}=0
24229     fi
24230   done
24231
24232
24233   gl_cv_type_ptrdiff_t_signed=yes
24234   gl_cv_type_size_t_signed=no
24235   if test $APPLE_UNIVERSAL_BUILD = 0; then
24236
24237
24238   for gltype in ptrdiff_t size_t ; do
24239     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
24240 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
24241 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
24242   $as_echo_n "(cached) " >&6
24243 else
24244   eval gl_cv_type_${gltype}_suffix=no
24245        eval result=\$gl_cv_type_${gltype}_signed
24246        if test "$result" = yes; then
24247          glsufu=
24248        else
24249          glsufu=u
24250        fi
24251        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
24252          case $glsuf in
24253            '')  gltype1='int';;
24254            l)   gltype1='long int';;
24255            ll)  gltype1='long long int';;
24256            i64) gltype1='__int64';;
24257            u)   gltype1='unsigned int';;
24258            ul)  gltype1='unsigned long int';;
24259            ull) gltype1='unsigned long long int';;
24260            ui64)gltype1='unsigned __int64';;
24261          esac
24262          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24263 /* end confdefs.h.  */
24264
24265   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24266      included before <wchar.h>.  */
24267   #include <stddef.h>
24268   #include <signal.h>
24269   #if HAVE_WCHAR_H
24270   # include <stdio.h>
24271   # include <time.h>
24272   # include <wchar.h>
24273   #endif
24274
24275               extern $gltype foo;
24276               extern $gltype1 foo;
24277 int
24278 main ()
24279 {
24280
24281   ;
24282   return 0;
24283 }
24284 _ACEOF
24285 if ac_fn_c_try_compile "$LINENO"; then :
24286   eval gl_cv_type_${gltype}_suffix=\$glsuf
24287 fi
24288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24289          eval result=\$gl_cv_type_${gltype}_suffix
24290          test "$result" != no && break
24291        done
24292 fi
24293 eval ac_res=\$gl_cv_type_${gltype}_suffix
24294                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24295 $as_echo "$ac_res" >&6; }
24296     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24297     eval result=\$gl_cv_type_${gltype}_suffix
24298     test "$result" = no && result=
24299     eval ${GLTYPE}_SUFFIX=\$result
24300     cat >>confdefs.h <<_ACEOF
24301 #define ${GLTYPE}_SUFFIX $result
24302 _ACEOF
24303
24304   done
24305
24306
24307   fi
24308
24309
24310   for gltype in sig_atomic_t wchar_t wint_t ; do
24311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
24312 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
24313 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
24314   $as_echo_n "(cached) " >&6
24315 else
24316   eval gl_cv_type_${gltype}_suffix=no
24317        eval result=\$gl_cv_type_${gltype}_signed
24318        if test "$result" = yes; then
24319          glsufu=
24320        else
24321          glsufu=u
24322        fi
24323        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
24324          case $glsuf in
24325            '')  gltype1='int';;
24326            l)   gltype1='long int';;
24327            ll)  gltype1='long long int';;
24328            i64) gltype1='__int64';;
24329            u)   gltype1='unsigned int';;
24330            ul)  gltype1='unsigned long int';;
24331            ull) gltype1='unsigned long long int';;
24332            ui64)gltype1='unsigned __int64';;
24333          esac
24334          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24335 /* end confdefs.h.  */
24336
24337   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24338      included before <wchar.h>.  */
24339   #include <stddef.h>
24340   #include <signal.h>
24341   #if HAVE_WCHAR_H
24342   # include <stdio.h>
24343   # include <time.h>
24344   # include <wchar.h>
24345   #endif
24346
24347               extern $gltype foo;
24348               extern $gltype1 foo;
24349 int
24350 main ()
24351 {
24352
24353   ;
24354   return 0;
24355 }
24356 _ACEOF
24357 if ac_fn_c_try_compile "$LINENO"; then :
24358   eval gl_cv_type_${gltype}_suffix=\$glsuf
24359 fi
24360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24361          eval result=\$gl_cv_type_${gltype}_suffix
24362          test "$result" != no && break
24363        done
24364 fi
24365 eval ac_res=\$gl_cv_type_${gltype}_suffix
24366                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24367 $as_echo "$ac_res" >&6; }
24368     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24369     eval result=\$gl_cv_type_${gltype}_suffix
24370     test "$result" = no && result=
24371     eval ${GLTYPE}_SUFFIX=\$result
24372     cat >>confdefs.h <<_ACEOF
24373 #define ${GLTYPE}_SUFFIX $result
24374 _ACEOF
24375
24376   done
24377
24378
24379
24380     STDINT_H=stdint.h
24381   fi
24382
24383
24384   # Code from module stdlib:
24385
24386
24387
24388
24389
24390
24391
24392
24393      if test $gl_cv_have_include_next = yes; then
24394        gl_cv_next_stdlib_h='<'stdlib.h'>'
24395      else
24396        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24397 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24398 if test "${gl_cv_next_stdlib_h+set}" = set; then :
24399   $as_echo_n "(cached) " >&6
24400 else
24401
24402           if test $ac_cv_header_stdlib_h = yes; then
24403             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24404 /* end confdefs.h.  */
24405 #include <stdlib.h>
24406
24407 _ACEOF
24408                                                                                                 case "$host_os" in
24409               aix*) gl_absname_cpp="$ac_cpp -C" ;;
24410               *)    gl_absname_cpp="$ac_cpp" ;;
24411             esac
24412                                                 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24413                sed -n '\#/stdlib.h#{
24414                  s#.*"\(.*/stdlib.h\)".*#\1#
24415                  s#^/[^/]#//&#
24416                  p
24417                  q
24418                }'`'"'
24419           else
24420             gl_cv_next_stdlib_h='<'stdlib.h'>'
24421           fi
24422
24423 fi
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24425 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24426      fi
24427      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
24428
24429      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24430        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24431        gl_next_as_first_directive='<'stdlib.h'>'
24432      else
24433        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24434        gl_next_as_first_directive=$gl_cv_next_stdlib_h
24435      fi
24436      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
24437
24438
24439
24440   for ac_header in random.h
24441 do :
24442   ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
24443 "
24444 if test "x$ac_cv_header_random_h" = x""yes; then :
24445   cat >>confdefs.h <<_ACEOF
24446 #define HAVE_RANDOM_H 1
24447 _ACEOF
24448
24449 fi
24450
24451 done
24452
24453   if test $ac_cv_header_random_h = yes; then
24454     HAVE_RANDOM_H=1
24455   else
24456     HAVE_RANDOM_H=0
24457   fi
24458
24459   ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
24460       #if HAVE_RANDOM_H
24461       # include <random.h>
24462       #endif
24463
24464 "
24465 if test "x$ac_cv_type_struct_random_data" = x""yes; then :
24466
24467 cat >>confdefs.h <<_ACEOF
24468 #define HAVE_STRUCT_RANDOM_DATA 1
24469 _ACEOF
24470
24471
24472 else
24473   HAVE_STRUCT_RANDOM_DATA=0
24474 fi
24475
24476
24477
24478     for gl_func in 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
24479     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24481 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24482 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
24483   $as_echo_n "(cached) " >&6
24484 else
24485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24486 /* end confdefs.h.  */
24487 #include <stdlib.h>
24488 #if HAVE_SYS_LOADAVG_H
24489 # include <sys/loadavg.h>
24490 #endif
24491 #if HAVE_RANDOM_H
24492 # include <random.h>
24493 #endif
24494
24495 int
24496 main ()
24497 {
24498 #undef $gl_func
24499   (void) $gl_func;
24500   ;
24501   return 0;
24502 }
24503 _ACEOF
24504 if ac_fn_c_try_compile "$LINENO"; then :
24505   eval "$as_gl_Symbol=yes"
24506 else
24507   eval "$as_gl_Symbol=no"
24508 fi
24509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24510 fi
24511 eval ac_res=\$$as_gl_Symbol
24512                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24513 $as_echo "$ac_res" >&6; }
24514      eval as_val=\$$as_gl_Symbol
24515    if test "x$as_val" = x""yes; then :
24516   cat >>confdefs.h <<_ACEOF
24517 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24518 _ACEOF
24519
24520                      eval ac_cv_have_decl_$gl_func=yes
24521 fi
24522       done
24523
24524
24525   # Code from module streq:
24526   # Code from module striconveh:
24527   if test $gl_cond_libtool = false; then
24528     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
24529     gl_libdeps="$gl_libdeps $LIBICONV"
24530   fi
24531   # Code from module striconveha:
24532   # Code from module string:
24533
24534
24535
24536   # Code from module strncat:
24537
24538
24539
24540
24541   GNULIB_STRNCAT=1
24542
24543
24544
24545 $as_echo "#define GNULIB_TEST_STRNCAT 1" >>confdefs.h
24546
24547
24548
24549   # Code from module threadlib:
24550
24551
24552
24553
24554   # Code from module unicase/base:
24555   # Code from module unicase/cased:
24556
24557   # Code from module unicase/empty-prefix-context:
24558   # Code from module unicase/empty-suffix-context:
24559   # Code from module unicase/ignorable:
24560
24561   # Code from module unicase/locale-language:
24562   # Code from module unicase/special-casing:
24563   # Code from module unicase/tocasefold:
24564   # Code from module unicase/tolower:
24565   # Code from module unicase/totitle:
24566   # Code from module unicase/toupper:
24567   # Code from module unicase/u16-casecmp:
24568   # Code from module unicase/u16-casecoll:
24569   # Code from module unicase/u16-casefold:
24570   # Code from module unicase/u16-casemap:
24571   # Code from module unicase/u16-casexfrm:
24572   # Code from module unicase/u16-ct-casefold:
24573   # Code from module unicase/u16-ct-tolower:
24574   # Code from module unicase/u16-ct-totitle:
24575   # Code from module unicase/u16-ct-toupper:
24576   # Code from module unicase/u16-is-cased:
24577   # Code from module unicase/u16-is-casefolded:
24578   # Code from module unicase/u16-is-invariant:
24579   # Code from module unicase/u16-is-lowercase:
24580   # Code from module unicase/u16-is-titlecase:
24581   # Code from module unicase/u16-is-uppercase:
24582   # Code from module unicase/u16-tolower:
24583   # Code from module unicase/u16-totitle:
24584   # Code from module unicase/u16-toupper:
24585   # Code from module unicase/u32-casecmp:
24586   # Code from module unicase/u32-casecoll:
24587   # Code from module unicase/u32-casefold:
24588   # Code from module unicase/u32-casemap:
24589   # Code from module unicase/u32-casexfrm:
24590   # Code from module unicase/u32-ct-casefold:
24591   # Code from module unicase/u32-ct-tolower:
24592   # Code from module unicase/u32-ct-totitle:
24593   # Code from module unicase/u32-ct-toupper:
24594   # Code from module unicase/u32-is-cased:
24595   # Code from module unicase/u32-is-casefolded:
24596   # Code from module unicase/u32-is-invariant:
24597   # Code from module unicase/u32-is-lowercase:
24598   # Code from module unicase/u32-is-titlecase:
24599   # Code from module unicase/u32-is-uppercase:
24600   # Code from module unicase/u32-tolower:
24601   # Code from module unicase/u32-totitle:
24602   # Code from module unicase/u32-toupper:
24603   # Code from module unicase/u8-casecmp:
24604   # Code from module unicase/u8-casecoll:
24605   # Code from module unicase/u8-casefold:
24606   # Code from module unicase/u8-casemap:
24607   # Code from module unicase/u8-casexfrm:
24608   # Code from module unicase/u8-ct-casefold:
24609   # Code from module unicase/u8-ct-tolower:
24610   # Code from module unicase/u8-ct-totitle:
24611   # Code from module unicase/u8-ct-toupper:
24612   # Code from module unicase/u8-is-cased:
24613   # Code from module unicase/u8-is-casefolded:
24614   # Code from module unicase/u8-is-invariant:
24615   # Code from module unicase/u8-is-lowercase:
24616   # Code from module unicase/u8-is-titlecase:
24617   # Code from module unicase/u8-is-uppercase:
24618   # Code from module unicase/u8-tolower:
24619   # Code from module unicase/u8-totitle:
24620   # Code from module unicase/u8-toupper:
24621   # Code from module unicase/ulc-casecmp:
24622   # Code from module unicase/ulc-casecoll:
24623   # Code from module unicase/ulc-casexfrm:
24624   # Code from module uniconv/base:
24625   # Code from module uniconv/u16-conv-from-enc:
24626
24627   # Code from module uniconv/u16-conv-to-enc:
24628
24629   # Code from module uniconv/u16-strconv-from-enc:
24630   # Code from module uniconv/u16-strconv-from-locale:
24631   # Code from module uniconv/u16-strconv-to-enc:
24632
24633   # Code from module uniconv/u16-strconv-to-locale:
24634   # Code from module uniconv/u32-conv-from-enc:
24635   # Code from module uniconv/u32-conv-to-enc:
24636   # Code from module uniconv/u32-strconv-from-enc:
24637   # Code from module uniconv/u32-strconv-from-locale:
24638   # Code from module uniconv/u32-strconv-to-enc:
24639   # Code from module uniconv/u32-strconv-to-locale:
24640   # Code from module uniconv/u8-conv-from-enc:
24641   # Code from module uniconv/u8-conv-to-enc:
24642   # Code from module uniconv/u8-strconv-from-enc:
24643   # Code from module uniconv/u8-strconv-from-locale:
24644   # Code from module uniconv/u8-strconv-to-enc:
24645   # Code from module uniconv/u8-strconv-to-locale:
24646   # Code from module unictype/base:
24647   # Code from module unictype/bidicategory-all:
24648   # Code from module unictype/bidicategory-byname:
24649   # Code from module unictype/bidicategory-name:
24650   # Code from module unictype/bidicategory-of:
24651   # Code from module unictype/bidicategory-test:
24652   # Code from module unictype/block-all:
24653   # Code from module unictype/block-list:
24654   # Code from module unictype/block-of:
24655   # Code from module unictype/block-test:
24656   # Code from module unictype/category-C:
24657   # Code from module unictype/category-Cc:
24658   # Code from module unictype/category-Cf:
24659   # Code from module unictype/category-Cn:
24660   # Code from module unictype/category-Co:
24661   # Code from module unictype/category-Cs:
24662   # Code from module unictype/category-L:
24663   # Code from module unictype/category-Ll:
24664   # Code from module unictype/category-Lm:
24665   # Code from module unictype/category-Lo:
24666   # Code from module unictype/category-Lt:
24667   # Code from module unictype/category-Lu:
24668   # Code from module unictype/category-M:
24669   # Code from module unictype/category-Mc:
24670   # Code from module unictype/category-Me:
24671   # Code from module unictype/category-Mn:
24672   # Code from module unictype/category-N:
24673   # Code from module unictype/category-Nd:
24674   # Code from module unictype/category-Nl:
24675   # Code from module unictype/category-No:
24676   # Code from module unictype/category-P:
24677   # Code from module unictype/category-Pc:
24678   # Code from module unictype/category-Pd:
24679   # Code from module unictype/category-Pe:
24680   # Code from module unictype/category-Pf:
24681   # Code from module unictype/category-Pi:
24682   # Code from module unictype/category-Po:
24683   # Code from module unictype/category-Ps:
24684   # Code from module unictype/category-S:
24685   # Code from module unictype/category-Sc:
24686   # Code from module unictype/category-Sk:
24687   # Code from module unictype/category-Sm:
24688   # Code from module unictype/category-So:
24689   # Code from module unictype/category-Z:
24690   # Code from module unictype/category-Zl:
24691   # Code from module unictype/category-Zp:
24692   # Code from module unictype/category-Zs:
24693   # Code from module unictype/category-all:
24694   # Code from module unictype/category-and:
24695   # Code from module unictype/category-and-not:
24696   # Code from module unictype/category-byname:
24697   # Code from module unictype/category-name:
24698   # Code from module unictype/category-none:
24699   # Code from module unictype/category-of:
24700
24701   # Code from module unictype/category-or:
24702   # Code from module unictype/category-test:
24703
24704   # Code from module unictype/category-test-withtable:
24705   # Code from module unictype/combining-class:
24706   # Code from module unictype/ctype-alnum:
24707
24708   # Code from module unictype/ctype-alpha:
24709
24710   # Code from module unictype/ctype-blank:
24711
24712   # Code from module unictype/ctype-cntrl:
24713
24714   # Code from module unictype/ctype-digit:
24715
24716   # Code from module unictype/ctype-graph:
24717
24718   # Code from module unictype/ctype-lower:
24719
24720   # Code from module unictype/ctype-print:
24721
24722   # Code from module unictype/ctype-punct:
24723
24724   # Code from module unictype/ctype-space:
24725
24726   # Code from module unictype/ctype-upper:
24727
24728   # Code from module unictype/ctype-xdigit:
24729
24730   # Code from module unictype/decimal-digit:
24731   # Code from module unictype/digit:
24732   # Code from module unictype/mirror:
24733   # Code from module unictype/numeric:
24734   # Code from module unictype/property-all:
24735   # Code from module unictype/property-alphabetic:
24736
24737   # Code from module unictype/property-ascii-hex-digit:
24738
24739   # Code from module unictype/property-bidi-arabic-digit:
24740
24741   # Code from module unictype/property-bidi-arabic-right-to-left:
24742
24743   # Code from module unictype/property-bidi-block-separator:
24744
24745   # Code from module unictype/property-bidi-boundary-neutral:
24746
24747   # Code from module unictype/property-bidi-common-separator:
24748
24749   # Code from module unictype/property-bidi-control:
24750
24751   # Code from module unictype/property-bidi-embedding-or-override:
24752
24753   # Code from module unictype/property-bidi-eur-num-separator:
24754
24755   # Code from module unictype/property-bidi-eur-num-terminator:
24756
24757   # Code from module unictype/property-bidi-european-digit:
24758
24759   # Code from module unictype/property-bidi-hebrew-right-to-left:
24760
24761   # Code from module unictype/property-bidi-left-to-right:
24762
24763   # Code from module unictype/property-bidi-non-spacing-mark:
24764
24765   # Code from module unictype/property-bidi-other-neutral:
24766
24767   # Code from module unictype/property-bidi-pdf:
24768
24769   # Code from module unictype/property-bidi-segment-separator:
24770
24771   # Code from module unictype/property-bidi-whitespace:
24772
24773   # Code from module unictype/property-byname:
24774   # Code from module unictype/property-combining:
24775
24776   # Code from module unictype/property-composite:
24777
24778   # Code from module unictype/property-currency-symbol:
24779
24780   # Code from module unictype/property-dash:
24781
24782   # Code from module unictype/property-decimal-digit:
24783
24784   # Code from module unictype/property-default-ignorable-code-point:
24785
24786   # Code from module unictype/property-deprecated:
24787
24788   # Code from module unictype/property-diacritic:
24789
24790   # Code from module unictype/property-extender:
24791
24792   # Code from module unictype/property-format-control:
24793
24794   # Code from module unictype/property-grapheme-base:
24795
24796   # Code from module unictype/property-grapheme-extend:
24797
24798   # Code from module unictype/property-grapheme-link:
24799
24800   # Code from module unictype/property-hex-digit:
24801
24802   # Code from module unictype/property-hyphen:
24803
24804   # Code from module unictype/property-id-continue:
24805
24806   # Code from module unictype/property-id-start:
24807
24808   # Code from module unictype/property-ideographic:
24809
24810   # Code from module unictype/property-ids-binary-operator:
24811
24812   # Code from module unictype/property-ids-trinary-operator:
24813
24814   # Code from module unictype/property-ignorable-control:
24815
24816   # Code from module unictype/property-iso-control:
24817
24818   # Code from module unictype/property-join-control:
24819
24820   # Code from module unictype/property-left-of-pair:
24821
24822   # Code from module unictype/property-line-separator:
24823
24824   # Code from module unictype/property-logical-order-exception:
24825
24826   # Code from module unictype/property-lowercase:
24827
24828   # Code from module unictype/property-math:
24829
24830   # Code from module unictype/property-non-break:
24831
24832   # Code from module unictype/property-not-a-character:
24833
24834   # Code from module unictype/property-numeric:
24835
24836   # Code from module unictype/property-other-alphabetic:
24837
24838   # Code from module unictype/property-other-default-ignorable-code-point:
24839
24840   # Code from module unictype/property-other-grapheme-extend:
24841
24842   # Code from module unictype/property-other-id-continue:
24843
24844   # Code from module unictype/property-other-id-start:
24845
24846   # Code from module unictype/property-other-lowercase:
24847
24848   # Code from module unictype/property-other-math:
24849
24850   # Code from module unictype/property-other-uppercase:
24851
24852   # Code from module unictype/property-paired-punctuation:
24853
24854   # Code from module unictype/property-paragraph-separator:
24855
24856   # Code from module unictype/property-pattern-syntax:
24857
24858   # Code from module unictype/property-pattern-white-space:
24859
24860   # Code from module unictype/property-private-use:
24861
24862   # Code from module unictype/property-punctuation:
24863
24864   # Code from module unictype/property-quotation-mark:
24865
24866   # Code from module unictype/property-radical:
24867
24868   # Code from module unictype/property-sentence-terminal:
24869
24870   # Code from module unictype/property-soft-dotted:
24871
24872   # Code from module unictype/property-space:
24873
24874   # Code from module unictype/property-terminal-punctuation:
24875
24876   # Code from module unictype/property-test:
24877   # Code from module unictype/property-titlecase:
24878
24879   # Code from module unictype/property-unassigned-code-value:
24880
24881   # Code from module unictype/property-unified-ideograph:
24882
24883   # Code from module unictype/property-uppercase:
24884
24885   # Code from module unictype/property-variation-selector:
24886
24887   # Code from module unictype/property-white-space:
24888
24889   # Code from module unictype/property-xid-continue:
24890
24891   # Code from module unictype/property-xid-start:
24892
24893   # Code from module unictype/property-zero-width:
24894
24895   # Code from module unictype/scripts:
24896   # Code from module unictype/scripts-all:
24897   # Code from module unictype/syntax-c-ident:
24898
24899   # Code from module unictype/syntax-c-whitespace:
24900   # Code from module unictype/syntax-java-ident:
24901
24902   # Code from module unictype/syntax-java-whitespace:
24903   # Code from module unilbrk/base:
24904   # Code from module unilbrk/tables:
24905
24906   # Code from module unilbrk/u16-possible-linebreaks:
24907   # Code from module unilbrk/u16-width-linebreaks:
24908   # Code from module unilbrk/u32-possible-linebreaks:
24909   # Code from module unilbrk/u32-width-linebreaks:
24910   # Code from module unilbrk/u8-possible-linebreaks:
24911   # Code from module unilbrk/u8-width-linebreaks:
24912   # Code from module unilbrk/ulc-common:
24913   # Code from module unilbrk/ulc-possible-linebreaks:
24914   # Code from module unilbrk/ulc-width-linebreaks:
24915   # Code from module uniname/base:
24916   # Code from module uniname/uniname:
24917   # Code from module uninorm/base:
24918   # Code from module uninorm/canonical-decomposition:
24919   # Code from module uninorm/compat-decomposition:
24920   # Code from module uninorm/composition:
24921   # Code from module uninorm/decompose-internal:
24922   # Code from module uninorm/decomposing-form:
24923   # Code from module uninorm/decomposition:
24924   # Code from module uninorm/decomposition-table:
24925
24926   # Code from module uninorm/filter:
24927   # Code from module uninorm/nfc:
24928   # Code from module uninorm/nfd:
24929   # Code from module uninorm/nfkc:
24930   # Code from module uninorm/nfkd:
24931   # Code from module uninorm/u16-normalize:
24932
24933
24934 $as_echo "#define GNULIB_TEST_UNINORM_U16_NORMALIZE 1" >>confdefs.h
24935
24936
24937   # Code from module uninorm/u16-normcmp:
24938   # Code from module uninorm/u16-normcoll:
24939   # Code from module uninorm/u16-normxfrm:
24940   # Code from module uninorm/u32-normalize:
24941
24942
24943 $as_echo "#define GNULIB_TEST_UNINORM_U32_NORMALIZE 1" >>confdefs.h
24944
24945
24946   # Code from module uninorm/u32-normcmp:
24947   # Code from module uninorm/u32-normcoll:
24948   # Code from module uninorm/u32-normxfrm:
24949   # Code from module uninorm/u8-normalize:
24950
24951
24952 $as_echo "#define GNULIB_TEST_UNINORM_U8_NORMALIZE 1" >>confdefs.h
24953
24954
24955   # Code from module uninorm/u8-normcmp:
24956   # Code from module uninorm/u8-normcoll:
24957   # Code from module uninorm/u8-normxfrm:
24958   # Code from module unistd:
24959
24960
24961
24962
24963
24964
24965
24966
24967
24968
24969      if test $gl_cv_have_include_next = yes; then
24970        gl_cv_next_unistd_h='<'unistd.h'>'
24971      else
24972        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24973 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24974 if test "${gl_cv_next_unistd_h+set}" = set; then :
24975   $as_echo_n "(cached) " >&6
24976 else
24977
24978           if test $ac_cv_header_unistd_h = yes; then
24979             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24980 /* end confdefs.h.  */
24981 #include <unistd.h>
24982
24983 _ACEOF
24984                                                                                                 case "$host_os" in
24985               aix*) gl_absname_cpp="$ac_cpp -C" ;;
24986               *)    gl_absname_cpp="$ac_cpp" ;;
24987             esac
24988                                                 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24989                sed -n '\#/unistd.h#{
24990                  s#.*"\(.*/unistd.h\)".*#\1#
24991                  s#^/[^/]#//&#
24992                  p
24993                  q
24994                }'`'"'
24995           else
24996             gl_cv_next_unistd_h='<'unistd.h'>'
24997           fi
24998
24999 fi
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25001 $as_echo "$gl_cv_next_unistd_h" >&6; }
25002      fi
25003      NEXT_UNISTD_H=$gl_cv_next_unistd_h
25004
25005      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25006        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25007        gl_next_as_first_directive='<'unistd.h'>'
25008      else
25009        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25010        gl_next_as_first_directive=$gl_cv_next_unistd_h
25011      fi
25012      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
25013
25014
25015
25016
25017
25018   if test $ac_cv_header_unistd_h = yes; then
25019     HAVE_UNISTD_H=1
25020   else
25021     HAVE_UNISTD_H=0
25022   fi
25023
25024
25025
25026     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 lchown link linkat lseek pipe2 pread readlink readlinkat     rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
25027     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25029 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25030 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
25031   $as_echo_n "(cached) " >&6
25032 else
25033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25034 /* end confdefs.h.  */
25035 #include <unistd.h>
25036 /* Some systems declare various items in the wrong headers.  */
25037 #ifndef __GLIBC__
25038 # include <fcntl.h>
25039 # include <stdio.h>
25040 # include <stdlib.h>
25041 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
25042 #  include <io.h>
25043 # endif
25044 #endif
25045
25046 int
25047 main ()
25048 {
25049 #undef $gl_func
25050   (void) $gl_func;
25051   ;
25052   return 0;
25053 }
25054 _ACEOF
25055 if ac_fn_c_try_compile "$LINENO"; then :
25056   eval "$as_gl_Symbol=yes"
25057 else
25058   eval "$as_gl_Symbol=no"
25059 fi
25060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25061 fi
25062 eval ac_res=\$$as_gl_Symbol
25063                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25064 $as_echo "$ac_res" >&6; }
25065      eval as_val=\$$as_gl_Symbol
25066    if test "x$as_val" = x""yes; then :
25067   cat >>confdefs.h <<_ACEOF
25068 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25069 _ACEOF
25070
25071                      eval ac_cv_have_decl_$gl_func=yes
25072 fi
25073       done
25074
25075
25076   # Code from module unistdio/base:
25077   # Code from module unistdio/u-printf-args:
25078
25079
25080
25081
25082
25083   # Code from module unistdio/u16-asnprintf:
25084   # Code from module unistdio/u16-asprintf:
25085   # Code from module unistdio/u16-printf-parse:
25086
25087
25088
25089
25090
25091   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
25092 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
25093
25094 else
25095
25096 $as_echo "#define ptrdiff_t long" >>confdefs.h
25097
25098
25099 fi
25100
25101
25102
25103   # Code from module unistdio/u16-snprintf:
25104   # Code from module unistdio/u16-sprintf:
25105   # Code from module unistdio/u16-u16-asnprintf:
25106   # Code from module unistdio/u16-u16-asprintf:
25107   # Code from module unistdio/u16-u16-snprintf:
25108   # Code from module unistdio/u16-u16-sprintf:
25109   # Code from module unistdio/u16-u16-vasnprintf:
25110
25111
25112
25113
25114
25115   case "$gl_cv_func_printf_infinite" in
25116     *yes)
25117       ;;
25118     *)
25119
25120 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
25121
25122       ;;
25123   esac
25124
25125
25126
25127
25128   case "$gl_cv_func_printf_long_double" in
25129     *yes)
25130       case "$gl_cv_func_printf_infinite_long_double" in
25131         *yes)
25132           ;;
25133         *)
25134
25135 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
25136
25137           ;;
25138       esac
25139       ;;
25140   esac
25141
25142
25143
25144   case "$gl_cv_func_printf_directive_a" in
25145     *yes)
25146       ;;
25147     *)
25148
25149 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
25150
25151       for ac_func in nl_langinfo
25152 do :
25153   ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
25154 if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
25155   cat >>confdefs.h <<_ACEOF
25156 #define HAVE_NL_LANGINFO 1
25157 _ACEOF
25158
25159 fi
25160 done
25161
25162       ;;
25163   esac
25164
25165
25166
25167   case "$gl_cv_func_printf_directive_f" in
25168     *yes)
25169       ;;
25170     *)
25171
25172 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
25173
25174       ;;
25175   esac
25176
25177
25178
25179   case "$gl_cv_func_printf_directive_ls" in
25180     *yes)
25181       ;;
25182     *)
25183
25184 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
25185
25186       ;;
25187   esac
25188
25189
25190
25191   case "$gl_cv_func_printf_flag_grouping" in
25192     *yes)
25193       ;;
25194     *)
25195
25196 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
25197
25198       ;;
25199   esac
25200
25201
25202
25203   case "$gl_cv_func_printf_flag_leftadjust" in
25204     *yes)
25205       ;;
25206     *)
25207
25208 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
25209
25210       ;;
25211   esac
25212
25213
25214
25215   case "$gl_cv_func_printf_flag_zero" in
25216     *yes)
25217       ;;
25218     *)
25219
25220 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
25221
25222       ;;
25223   esac
25224
25225
25226
25227   case "$gl_cv_func_printf_precision" in
25228     *yes)
25229       ;;
25230     *)
25231
25232 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
25233
25234
25235 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
25236
25237
25238 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
25239
25240       ;;
25241   esac
25242
25243
25244
25245   case "$gl_cv_func_printf_enomem" in
25246     *yes)
25247       ;;
25248     *)
25249
25250 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
25251
25252
25253 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
25254
25255
25256 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
25257
25258       ;;
25259   esac
25260
25261
25262   # Code from module unistdio/u16-u16-vasprintf:
25263   # Code from module unistdio/u16-u16-vsnprintf:
25264   # Code from module unistdio/u16-u16-vsprintf:
25265   # Code from module unistdio/u16-vasnprintf:
25266
25267
25268
25269
25270
25271   case "$gl_cv_func_printf_infinite" in
25272     *yes)
25273       ;;
25274     *)
25275
25276 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
25277
25278       ;;
25279   esac
25280
25281
25282
25283
25284   case "$gl_cv_func_printf_long_double" in
25285     *yes)
25286       case "$gl_cv_func_printf_infinite_long_double" in
25287         *yes)
25288           ;;
25289         *)
25290
25291 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
25292
25293           ;;
25294       esac
25295       ;;
25296   esac
25297
25298
25299
25300   case "$gl_cv_func_printf_directive_a" in
25301     *yes)
25302       ;;
25303     *)
25304
25305 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
25306
25307       for ac_func in nl_langinfo
25308 do :
25309   ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
25310 if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
25311   cat >>confdefs.h <<_ACEOF
25312 #define HAVE_NL_LANGINFO 1
25313 _ACEOF
25314
25315 fi
25316 done
25317
25318       ;;
25319   esac
25320
25321
25322
25323   case "$gl_cv_func_printf_directive_f" in
25324     *yes)
25325       ;;
25326     *)
25327
25328 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
25329
25330       ;;
25331   esac
25332
25333
25334
25335   case "$gl_cv_func_printf_directive_ls" in
25336     *yes)
25337       ;;
25338     *)
25339
25340 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
25341
25342       ;;
25343   esac
25344
25345
25346
25347   case "$gl_cv_func_printf_flag_grouping" in
25348     *yes)
25349       ;;
25350     *)
25351
25352 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
25353
25354       ;;
25355   esac
25356
25357
25358
25359   case "$gl_cv_func_printf_flag_leftadjust" in
25360     *yes)
25361       ;;
25362     *)
25363
25364 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
25365
25366       ;;
25367   esac
25368
25369
25370
25371   case "$gl_cv_func_printf_flag_zero" in
25372     *yes)
25373       ;;
25374     *)
25375
25376 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
25377
25378       ;;
25379   esac
25380
25381
25382
25383   case "$gl_cv_func_printf_precision" in
25384     *yes)
25385       ;;
25386     *)
25387
25388 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
25389
25390
25391 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
25392
25393
25394 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
25395
25396       ;;
25397   esac
25398
25399
25400
25401   case "$gl_cv_func_printf_enomem" in
25402     *yes)
25403       ;;
25404     *)
25405
25406 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
25407
25408
25409 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
25410
25411
25412 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
25413
25414       ;;
25415   esac
25416
25417
25418   # Code from module unistdio/u16-vasprintf:
25419   # Code from module unistdio/u16-vsnprintf:
25420   # Code from module unistdio/u16-vsprintf:
25421   # Code from module unistdio/u32-asnprintf:
25422   # Code from module unistdio/u32-asprintf:
25423   # Code from module unistdio/u32-printf-parse:
25424
25425
25426
25427
25428
25429   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
25430 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
25431
25432 else
25433
25434 $as_echo "#define ptrdiff_t long" >>confdefs.h
25435
25436
25437 fi
25438
25439
25440
25441   # Code from module unistdio/u32-snprintf:
25442   # Code from module unistdio/u32-sprintf:
25443   # Code from module unistdio/u32-u32-asnprintf:
25444   # Code from module unistdio/u32-u32-asprintf:
25445   # Code from module unistdio/u32-u32-snprintf:
25446   # Code from module unistdio/u32-u32-sprintf:
25447   # Code from module unistdio/u32-u32-vasnprintf:
25448
25449
25450
25451
25452
25453   case "$gl_cv_func_printf_infinite" in
25454     *yes)
25455       ;;
25456     *)
25457
25458 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
25459
25460       ;;
25461   esac
25462
25463
25464
25465
25466   case "$gl_cv_func_printf_long_double" in
25467     *yes)
25468       case "$gl_cv_func_printf_infinite_long_double" in
25469         *yes)
25470           ;;
25471         *)
25472
25473 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
25474
25475           ;;
25476       esac
25477       ;;
25478   esac
25479
25480
25481
25482   case "$gl_cv_func_printf_directive_a" in
25483     *yes)
25484       ;;
25485     *)
25486
25487 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
25488
25489       for ac_func in nl_langinfo
25490 do :
25491   ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
25492 if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
25493   cat >>confdefs.h <<_ACEOF
25494 #define HAVE_NL_LANGINFO 1
25495 _ACEOF
25496
25497 fi
25498 done
25499
25500       ;;
25501   esac
25502
25503
25504
25505   case "$gl_cv_func_printf_directive_f" in
25506     *yes)
25507       ;;
25508     *)
25509
25510 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
25511
25512       ;;
25513   esac
25514
25515
25516
25517   case "$gl_cv_func_printf_directive_ls" in
25518     *yes)
25519       ;;
25520     *)
25521
25522 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
25523
25524       ;;
25525   esac
25526
25527
25528
25529   case "$gl_cv_func_printf_flag_grouping" in
25530     *yes)
25531       ;;
25532     *)
25533
25534 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
25535
25536       ;;
25537   esac
25538
25539
25540
25541   case "$gl_cv_func_printf_flag_leftadjust" in
25542     *yes)
25543       ;;
25544     *)
25545
25546 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
25547
25548       ;;
25549   esac
25550
25551
25552
25553   case "$gl_cv_func_printf_flag_zero" in
25554     *yes)
25555       ;;
25556     *)
25557
25558 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
25559
25560       ;;
25561   esac
25562
25563
25564
25565   case "$gl_cv_func_printf_precision" in
25566     *yes)
25567       ;;
25568     *)
25569
25570 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
25571
25572
25573 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
25574
25575
25576 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
25577
25578       ;;
25579   esac
25580
25581
25582
25583   case "$gl_cv_func_printf_enomem" in
25584     *yes)
25585       ;;
25586     *)
25587
25588 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
25589
25590
25591 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
25592
25593
25594 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
25595
25596       ;;
25597   esac
25598
25599
25600   # Code from module unistdio/u32-u32-vasprintf:
25601   # Code from module unistdio/u32-u32-vsnprintf:
25602   # Code from module unistdio/u32-u32-vsprintf:
25603   # Code from module unistdio/u32-vasnprintf:
25604
25605
25606
25607
25608
25609   case "$gl_cv_func_printf_infinite" in
25610     *yes)
25611       ;;
25612     *)
25613
25614 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
25615
25616       ;;
25617   esac
25618
25619
25620
25621
25622   case "$gl_cv_func_printf_long_double" in
25623     *yes)
25624       case "$gl_cv_func_printf_infinite_long_double" in
25625         *yes)
25626           ;;
25627         *)
25628
25629 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
25630
25631           ;;
25632       esac
25633       ;;
25634   esac
25635
25636
25637
25638   case "$gl_cv_func_printf_directive_a" in
25639     *yes)
25640       ;;
25641     *)
25642
25643 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
25644
25645       for ac_func in nl_langinfo
25646 do :
25647   ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
25648 if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
25649   cat >>confdefs.h <<_ACEOF
25650 #define HAVE_NL_LANGINFO 1
25651 _ACEOF
25652
25653 fi
25654 done
25655
25656       ;;
25657   esac
25658
25659
25660
25661   case "$gl_cv_func_printf_directive_f" in
25662     *yes)
25663       ;;
25664     *)
25665
25666 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
25667
25668       ;;
25669   esac
25670
25671
25672
25673   case "$gl_cv_func_printf_directive_ls" in
25674     *yes)
25675       ;;
25676     *)
25677
25678 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
25679
25680       ;;
25681   esac
25682
25683
25684
25685   case "$gl_cv_func_printf_flag_grouping" in
25686     *yes)
25687       ;;
25688     *)
25689
25690 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
25691
25692       ;;
25693   esac
25694
25695
25696
25697   case "$gl_cv_func_printf_flag_leftadjust" in
25698     *yes)
25699       ;;
25700     *)
25701
25702 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
25703
25704       ;;
25705   esac
25706
25707
25708
25709   case "$gl_cv_func_printf_flag_zero" in
25710     *yes)
25711       ;;
25712     *)
25713
25714 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
25715
25716       ;;
25717   esac
25718
25719
25720
25721   case "$gl_cv_func_printf_precision" in
25722     *yes)
25723       ;;
25724     *)
25725
25726 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
25727
25728
25729 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
25730
25731
25732 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
25733
25734       ;;
25735   esac
25736
25737
25738
25739   case "$gl_cv_func_printf_enomem" in
25740     *yes)
25741       ;;
25742     *)
25743
25744 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
25745
25746
25747 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
25748
25749
25750 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
25751
25752       ;;
25753   esac
25754
25755
25756   # Code from module unistdio/u32-vasprintf:
25757   # Code from module unistdio/u32-vsnprintf:
25758   # Code from module unistdio/u32-vsprintf:
25759   # Code from module unistdio/u8-asnprintf:
25760   # Code from module unistdio/u8-asprintf:
25761   # Code from module unistdio/u8-printf-parse:
25762
25763
25764
25765
25766
25767   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
25768 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
25769
25770 else
25771
25772 $as_echo "#define ptrdiff_t long" >>confdefs.h
25773
25774
25775 fi
25776
25777
25778
25779   # Code from module unistdio/u8-snprintf:
25780   # Code from module unistdio/u8-sprintf:
25781   # Code from module unistdio/u8-u8-asnprintf:
25782   # Code from module unistdio/u8-u8-asprintf:
25783   # Code from module unistdio/u8-u8-snprintf:
25784   # Code from module unistdio/u8-u8-sprintf:
25785   # Code from module unistdio/u8-u8-vasnprintf:
25786
25787
25788
25789
25790
25791   case "$gl_cv_func_printf_infinite" in
25792     *yes)
25793       ;;
25794     *)
25795
25796 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
25797
25798       ;;
25799   esac
25800
25801
25802
25803
25804   case "$gl_cv_func_printf_long_double" in
25805     *yes)
25806       case "$gl_cv_func_printf_infinite_long_double" in
25807         *yes)
25808           ;;
25809         *)
25810
25811 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
25812
25813           ;;
25814       esac
25815       ;;
25816   esac
25817
25818
25819
25820   case "$gl_cv_func_printf_directive_a" in
25821     *yes)
25822       ;;
25823     *)
25824
25825 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
25826
25827       for ac_func in nl_langinfo
25828 do :
25829   ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
25830 if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
25831   cat >>confdefs.h <<_ACEOF
25832 #define HAVE_NL_LANGINFO 1
25833 _ACEOF
25834
25835 fi
25836 done
25837
25838       ;;
25839   esac
25840
25841
25842
25843   case "$gl_cv_func_printf_directive_f" in
25844     *yes)
25845       ;;
25846     *)
25847
25848 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
25849
25850       ;;
25851   esac
25852
25853
25854
25855   case "$gl_cv_func_printf_directive_ls" in
25856     *yes)
25857       ;;
25858     *)
25859
25860 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
25861
25862       ;;
25863   esac
25864
25865
25866
25867   case "$gl_cv_func_printf_flag_grouping" in
25868     *yes)
25869       ;;
25870     *)
25871
25872 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
25873
25874       ;;
25875   esac
25876
25877
25878
25879   case "$gl_cv_func_printf_flag_leftadjust" in
25880     *yes)
25881       ;;
25882     *)
25883
25884 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
25885
25886       ;;
25887   esac
25888
25889
25890
25891   case "$gl_cv_func_printf_flag_zero" in
25892     *yes)
25893       ;;
25894     *)
25895
25896 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
25897
25898       ;;
25899   esac
25900
25901
25902
25903   case "$gl_cv_func_printf_precision" in
25904     *yes)
25905       ;;
25906     *)
25907
25908 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
25909
25910
25911 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
25912
25913
25914 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
25915
25916       ;;
25917   esac
25918
25919
25920
25921   case "$gl_cv_func_printf_enomem" in
25922     *yes)
25923       ;;
25924     *)
25925
25926 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
25927
25928
25929 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
25930
25931
25932 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
25933
25934       ;;
25935   esac
25936
25937
25938   # Code from module unistdio/u8-u8-vasprintf:
25939   # Code from module unistdio/u8-u8-vsnprintf:
25940   # Code from module unistdio/u8-u8-vsprintf:
25941   # Code from module unistdio/u8-vasnprintf:
25942
25943
25944
25945
25946
25947   case "$gl_cv_func_printf_infinite" in
25948     *yes)
25949       ;;
25950     *)
25951
25952 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
25953
25954       ;;
25955   esac
25956
25957
25958
25959
25960   case "$gl_cv_func_printf_long_double" in
25961     *yes)
25962       case "$gl_cv_func_printf_infinite_long_double" in
25963         *yes)
25964           ;;
25965         *)
25966
25967 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
25968
25969           ;;
25970       esac
25971       ;;
25972   esac
25973
25974
25975
25976   case "$gl_cv_func_printf_directive_a" in
25977     *yes)
25978       ;;
25979     *)
25980
25981 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
25982
25983       for ac_func in nl_langinfo
25984 do :
25985   ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
25986 if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
25987   cat >>confdefs.h <<_ACEOF
25988 #define HAVE_NL_LANGINFO 1
25989 _ACEOF
25990
25991 fi
25992 done
25993
25994       ;;
25995   esac
25996
25997
25998
25999   case "$gl_cv_func_printf_directive_f" in
26000     *yes)
26001       ;;
26002     *)
26003
26004 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
26005
26006       ;;
26007   esac
26008
26009
26010
26011   case "$gl_cv_func_printf_directive_ls" in
26012     *yes)
26013       ;;
26014     *)
26015
26016 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
26017
26018       ;;
26019   esac
26020
26021
26022
26023   case "$gl_cv_func_printf_flag_grouping" in
26024     *yes)
26025       ;;
26026     *)
26027
26028 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
26029
26030       ;;
26031   esac
26032
26033
26034
26035   case "$gl_cv_func_printf_flag_leftadjust" in
26036     *yes)
26037       ;;
26038     *)
26039
26040 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
26041
26042       ;;
26043   esac
26044
26045
26046
26047   case "$gl_cv_func_printf_flag_zero" in
26048     *yes)
26049       ;;
26050     *)
26051
26052 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
26053
26054       ;;
26055   esac
26056
26057
26058
26059   case "$gl_cv_func_printf_precision" in
26060     *yes)
26061       ;;
26062     *)
26063
26064 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
26065
26066
26067 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
26068
26069
26070 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
26071
26072       ;;
26073   esac
26074
26075
26076
26077   case "$gl_cv_func_printf_enomem" in
26078     *yes)
26079       ;;
26080     *)
26081
26082 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
26083
26084
26085 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
26086
26087
26088 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
26089
26090       ;;
26091   esac
26092
26093
26094   # Code from module unistdio/u8-vasprintf:
26095   # Code from module unistdio/u8-vsnprintf:
26096   # Code from module unistdio/u8-vsprintf:
26097   # Code from module unistdio/ulc-asnprintf:
26098   # Code from module unistdio/ulc-asprintf:
26099   # Code from module unistdio/ulc-fprintf:
26100   # Code from module unistdio/ulc-printf-parse:
26101
26102
26103
26104
26105
26106   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
26107 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
26108
26109 else
26110
26111 $as_echo "#define ptrdiff_t long" >>confdefs.h
26112
26113
26114 fi
26115
26116
26117
26118   # Code from module unistdio/ulc-snprintf:
26119   # Code from module unistdio/ulc-sprintf:
26120   # Code from module unistdio/ulc-vasnprintf:
26121
26122
26123
26124
26125
26126   case "$gl_cv_func_printf_infinite" in
26127     *yes)
26128       ;;
26129     *)
26130
26131 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
26132
26133       ;;
26134   esac
26135
26136
26137
26138
26139   case "$gl_cv_func_printf_long_double" in
26140     *yes)
26141       case "$gl_cv_func_printf_infinite_long_double" in
26142         *yes)
26143           ;;
26144         *)
26145
26146 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
26147
26148           ;;
26149       esac
26150       ;;
26151   esac
26152
26153
26154
26155   case "$gl_cv_func_printf_directive_a" in
26156     *yes)
26157       ;;
26158     *)
26159
26160 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
26161
26162       for ac_func in nl_langinfo
26163 do :
26164   ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
26165 if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
26166   cat >>confdefs.h <<_ACEOF
26167 #define HAVE_NL_LANGINFO 1
26168 _ACEOF
26169
26170 fi
26171 done
26172
26173       ;;
26174   esac
26175
26176
26177
26178   case "$gl_cv_func_printf_directive_f" in
26179     *yes)
26180       ;;
26181     *)
26182
26183 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
26184
26185       ;;
26186   esac
26187
26188
26189
26190   case "$gl_cv_func_printf_directive_ls" in
26191     *yes)
26192       ;;
26193     *)
26194
26195 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
26196
26197       ;;
26198   esac
26199
26200
26201
26202   case "$gl_cv_func_printf_flag_grouping" in
26203     *yes)
26204       ;;
26205     *)
26206
26207 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
26208
26209       ;;
26210   esac
26211
26212
26213
26214   case "$gl_cv_func_printf_flag_leftadjust" in
26215     *yes)
26216       ;;
26217     *)
26218
26219 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
26220
26221       ;;
26222   esac
26223
26224
26225
26226   case "$gl_cv_func_printf_flag_zero" in
26227     *yes)
26228       ;;
26229     *)
26230
26231 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
26232
26233       ;;
26234   esac
26235
26236
26237
26238   case "$gl_cv_func_printf_precision" in
26239     *yes)
26240       ;;
26241     *)
26242
26243 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
26244
26245
26246 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
26247
26248
26249 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
26250
26251       ;;
26252   esac
26253
26254
26255
26256   case "$gl_cv_func_printf_enomem" in
26257     *yes)
26258       ;;
26259     *)
26260
26261 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
26262
26263
26264 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
26265
26266
26267 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
26268
26269       ;;
26270   esac
26271
26272
26273   # Code from module unistdio/ulc-vasprintf:
26274   # Code from module unistdio/ulc-vfprintf:
26275   # Code from module unistdio/ulc-vsnprintf:
26276   # Code from module unistdio/ulc-vsprintf:
26277   # Code from module unistr/base:
26278   # Code from module unistr/u16-check:
26279   # Code from module unistr/u16-chr:
26280   # Code from module unistr/u16-cmp:
26281   # Code from module unistr/u16-cmp2:
26282   # Code from module unistr/u16-cpy:
26283   # Code from module unistr/u16-cpy-alloc:
26284   # Code from module unistr/u16-endswith:
26285   # Code from module unistr/u16-mblen:
26286   # Code from module unistr/u16-mbsnlen:
26287   # Code from module unistr/u16-mbtouc:
26288
26289
26290 cat >>confdefs.h <<_ACEOF
26291 #define GNULIB_UNISTR_U16_MBTOUC 1
26292 _ACEOF
26293
26294
26295   # Code from module unistr/u16-mbtouc-unsafe:
26296
26297
26298 cat >>confdefs.h <<_ACEOF
26299 #define GNULIB_UNISTR_U16_MBTOUC_UNSAFE 1
26300 _ACEOF
26301
26302
26303   # Code from module unistr/u16-mbtoucr:
26304
26305
26306 cat >>confdefs.h <<_ACEOF
26307 #define GNULIB_UNISTR_U16_MBTOUCR 1
26308 _ACEOF
26309
26310
26311   # Code from module unistr/u16-move:
26312   # Code from module unistr/u16-next:
26313   # Code from module unistr/u16-prev:
26314   # Code from module unistr/u16-set:
26315   # Code from module unistr/u16-startswith:
26316   # Code from module unistr/u16-stpcpy:
26317   # Code from module unistr/u16-stpncpy:
26318   # Code from module unistr/u16-strcat:
26319   # Code from module unistr/u16-strchr:
26320   # Code from module unistr/u16-strcmp:
26321   # Code from module unistr/u16-strcoll:
26322   # Code from module unistr/u16-strcpy:
26323   # Code from module unistr/u16-strcspn:
26324   # Code from module unistr/u16-strdup:
26325   # Code from module unistr/u16-strlen:
26326   # Code from module unistr/u16-strmblen:
26327   # Code from module unistr/u16-strmbtouc:
26328   # Code from module unistr/u16-strncat:
26329   # Code from module unistr/u16-strncmp:
26330   # Code from module unistr/u16-strncpy:
26331   # Code from module unistr/u16-strnlen:
26332   # Code from module unistr/u16-strpbrk:
26333   # Code from module unistr/u16-strrchr:
26334   # Code from module unistr/u16-strspn:
26335   # Code from module unistr/u16-strstr:
26336   # Code from module unistr/u16-strtok:
26337   # Code from module unistr/u16-to-u32:
26338   # Code from module unistr/u16-to-u8:
26339   # Code from module unistr/u16-uctomb:
26340
26341
26342 cat >>confdefs.h <<_ACEOF
26343 #define GNULIB_UNISTR_U16_UCTOMB 1
26344 _ACEOF
26345
26346
26347   # Code from module unistr/u32-check:
26348   # Code from module unistr/u32-chr:
26349   # Code from module unistr/u32-cmp:
26350   # Code from module unistr/u32-cmp2:
26351   # Code from module unistr/u32-cpy:
26352   # Code from module unistr/u32-cpy-alloc:
26353   # Code from module unistr/u32-endswith:
26354   # Code from module unistr/u32-mblen:
26355   # Code from module unistr/u32-mbsnlen:
26356   # Code from module unistr/u32-mbtouc:
26357
26358
26359 cat >>confdefs.h <<_ACEOF
26360 #define GNULIB_UNISTR_U32_MBTOUC 1
26361 _ACEOF
26362
26363
26364   # Code from module unistr/u32-mbtouc-unsafe:
26365
26366
26367 cat >>confdefs.h <<_ACEOF
26368 #define GNULIB_UNISTR_U32_MBTOUC_UNSAFE 1
26369 _ACEOF
26370
26371
26372   # Code from module unistr/u32-mbtoucr:
26373
26374
26375 cat >>confdefs.h <<_ACEOF
26376 #define GNULIB_UNISTR_U32_MBTOUCR 1
26377 _ACEOF
26378
26379
26380   # Code from module unistr/u32-move:
26381   # Code from module unistr/u32-next:
26382   # Code from module unistr/u32-prev:
26383   # Code from module unistr/u32-set:
26384   # Code from module unistr/u32-startswith:
26385   # Code from module unistr/u32-stpcpy:
26386   # Code from module unistr/u32-stpncpy:
26387   # Code from module unistr/u32-strcat:
26388   # Code from module unistr/u32-strchr:
26389   # Code from module unistr/u32-strcmp:
26390   # Code from module unistr/u32-strcoll:
26391   # Code from module unistr/u32-strcpy:
26392   # Code from module unistr/u32-strcspn:
26393   # Code from module unistr/u32-strdup:
26394   # Code from module unistr/u32-strlen:
26395   # Code from module unistr/u32-strmblen:
26396   # Code from module unistr/u32-strmbtouc:
26397   # Code from module unistr/u32-strncat:
26398   # Code from module unistr/u32-strncmp:
26399   # Code from module unistr/u32-strncpy:
26400   # Code from module unistr/u32-strnlen:
26401   # Code from module unistr/u32-strpbrk:
26402   # Code from module unistr/u32-strrchr:
26403   # Code from module unistr/u32-strspn:
26404   # Code from module unistr/u32-strstr:
26405   # Code from module unistr/u32-strtok:
26406   # Code from module unistr/u32-to-u16:
26407   # Code from module unistr/u32-to-u8:
26408   # Code from module unistr/u32-uctomb:
26409
26410
26411 cat >>confdefs.h <<_ACEOF
26412 #define GNULIB_UNISTR_U32_UCTOMB 1
26413 _ACEOF
26414
26415
26416   # Code from module unistr/u8-check:
26417   # Code from module unistr/u8-chr:
26418   # Code from module unistr/u8-cmp:
26419   # Code from module unistr/u8-cmp2:
26420   # Code from module unistr/u8-cpy:
26421   # Code from module unistr/u8-cpy-alloc:
26422   # Code from module unistr/u8-endswith:
26423   # Code from module unistr/u8-mblen:
26424   # Code from module unistr/u8-mbsnlen:
26425   # Code from module unistr/u8-mbtouc:
26426
26427
26428 cat >>confdefs.h <<_ACEOF
26429 #define GNULIB_UNISTR_U8_MBTOUC 1
26430 _ACEOF
26431
26432
26433   # Code from module unistr/u8-mbtouc-unsafe:
26434
26435
26436 cat >>confdefs.h <<_ACEOF
26437 #define GNULIB_UNISTR_U8_MBTOUC_UNSAFE 1
26438 _ACEOF
26439
26440
26441   # Code from module unistr/u8-mbtoucr:
26442
26443
26444 cat >>confdefs.h <<_ACEOF
26445 #define GNULIB_UNISTR_U8_MBTOUCR 1
26446 _ACEOF
26447
26448
26449   # Code from module unistr/u8-move:
26450   # Code from module unistr/u8-next:
26451   # Code from module unistr/u8-prev:
26452   # Code from module unistr/u8-set:
26453   # Code from module unistr/u8-startswith:
26454   # Code from module unistr/u8-stpcpy:
26455
26456   # Code from module unistr/u8-stpncpy:
26457   # Code from module unistr/u8-strcat:
26458   # Code from module unistr/u8-strchr:
26459   # Code from module unistr/u8-strcmp:
26460   # Code from module unistr/u8-strcoll:
26461   # Code from module unistr/u8-strcpy:
26462   # Code from module unistr/u8-strcspn:
26463   # Code from module unistr/u8-strdup:
26464
26465   # Code from module unistr/u8-strlen:
26466   # Code from module unistr/u8-strmblen:
26467   # Code from module unistr/u8-strmbtouc:
26468   # Code from module unistr/u8-strncat:
26469   # Code from module unistr/u8-strncmp:
26470   # Code from module unistr/u8-strncpy:
26471   # Code from module unistr/u8-strnlen:
26472   # Code from module unistr/u8-strpbrk:
26473   # Code from module unistr/u8-strrchr:
26474   # Code from module unistr/u8-strspn:
26475   # Code from module unistr/u8-strstr:
26476   # Code from module unistr/u8-strtok:
26477   # Code from module unistr/u8-to-u16:
26478   # Code from module unistr/u8-to-u32:
26479   # Code from module unistr/u8-uctomb:
26480
26481
26482 cat >>confdefs.h <<_ACEOF
26483 #define GNULIB_UNISTR_U8_UCTOMB 1
26484 _ACEOF
26485
26486
26487   # Code from module unitypes:
26488   # Code from module uniwbrk/base:
26489   # Code from module uniwbrk/table:
26490   # Code from module uniwbrk/u16-wordbreaks:
26491   # Code from module uniwbrk/u32-wordbreaks:
26492   # Code from module uniwbrk/u8-wordbreaks:
26493   # Code from module uniwbrk/ulc-wordbreaks:
26494   # Code from module uniwbrk/wordbreak-property:
26495   # Code from module uniwidth/base:
26496   # Code from module uniwidth/u16-strwidth:
26497   # Code from module uniwidth/u16-width:
26498   # Code from module uniwidth/u32-strwidth:
26499   # Code from module uniwidth/u32-width:
26500   # Code from module uniwidth/u8-strwidth:
26501   # Code from module uniwidth/u8-width:
26502   # Code from module uniwidth/width:
26503   # Code from module unused-parameter:
26504   # Code from module verify:
26505   # Code from module warn-on-use:
26506   # Code from module wchar:
26507
26508
26509
26510
26511
26512
26513
26514
26515
26516
26517      if test $gl_cv_have_include_next = yes; then
26518        gl_cv_next_wchar_h='<'wchar.h'>'
26519      else
26520        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
26521 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
26522 if test "${gl_cv_next_wchar_h+set}" = set; then :
26523   $as_echo_n "(cached) " >&6
26524 else
26525
26526           if test $ac_cv_header_wchar_h = yes; then
26527             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26528 /* end confdefs.h.  */
26529 #include <wchar.h>
26530
26531 _ACEOF
26532                                                                                                 case "$host_os" in
26533               aix*) gl_absname_cpp="$ac_cpp -C" ;;
26534               *)    gl_absname_cpp="$ac_cpp" ;;
26535             esac
26536                                                 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26537                sed -n '\#/wchar.h#{
26538                  s#.*"\(.*/wchar.h\)".*#\1#
26539                  s#^/[^/]#//&#
26540                  p
26541                  q
26542                }'`'"'
26543           else
26544             gl_cv_next_wchar_h='<'wchar.h'>'
26545           fi
26546
26547 fi
26548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
26549 $as_echo "$gl_cv_next_wchar_h" >&6; }
26550      fi
26551      NEXT_WCHAR_H=$gl_cv_next_wchar_h
26552
26553      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26554        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26555        gl_next_as_first_directive='<'wchar.h'>'
26556      else
26557        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26558        gl_next_as_first_directive=$gl_cv_next_wchar_h
26559      fi
26560      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
26561
26562
26563
26564   if test $ac_cv_header_wchar_h = yes; then
26565     HAVE_WCHAR_H=1
26566   else
26567     HAVE_WCHAR_H=0
26568   fi
26569
26570
26571
26572   if test $gt_cv_c_wint_t = yes; then
26573     HAVE_WINT_T=1
26574   else
26575     HAVE_WINT_T=0
26576   fi
26577
26578
26579
26580     for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb     wcsrtombs wcsnrtombs wcwidth; do
26581     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26583 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26584 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
26585   $as_echo_n "(cached) " >&6
26586 else
26587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26588 /* end confdefs.h.  */
26589
26590 /* Some systems require additional headers.  */
26591 #ifndef __GLIBC__
26592 # include <stddef.h>
26593 # include <stdio.h>
26594 # include <time.h>
26595 #endif
26596 #include <wchar.h>
26597
26598 int
26599 main ()
26600 {
26601 #undef $gl_func
26602   (void) $gl_func;
26603   ;
26604   return 0;
26605 }
26606 _ACEOF
26607 if ac_fn_c_try_compile "$LINENO"; then :
26608   eval "$as_gl_Symbol=yes"
26609 else
26610   eval "$as_gl_Symbol=no"
26611 fi
26612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26613 fi
26614 eval ac_res=\$$as_gl_Symbol
26615                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26616 $as_echo "$ac_res" >&6; }
26617      eval as_val=\$$as_gl_Symbol
26618    if test "x$as_val" = x""yes; then :
26619   cat >>confdefs.h <<_ACEOF
26620 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26621 _ACEOF
26622
26623                      eval ac_cv_have_decl_$gl_func=yes
26624 fi
26625       done
26626
26627
26628   # Code from module wctype:
26629
26630
26631
26632
26633   if test $ac_cv_func_iswcntrl = yes; then
26634     HAVE_ISWCNTRL=1
26635   else
26636     HAVE_ISWCNTRL=0
26637   fi
26638
26639
26640   if test $ac_cv_func_iswblank = yes; then
26641     HAVE_ISWBLANK=1
26642   else
26643     HAVE_ISWBLANK=0
26644   fi
26645
26646
26647
26648
26649
26650   if test $gt_cv_c_wint_t = yes; then
26651     HAVE_WINT_T=1
26652   else
26653     HAVE_WINT_T=0
26654   fi
26655
26656
26657   if test $ac_cv_header_wctype_h = yes; then
26658     if test $ac_cv_func_iswcntrl = yes; then
26659                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
26660 $as_echo_n "checking whether iswcntrl works... " >&6; }
26661 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
26662   $as_echo_n "(cached) " >&6
26663 else
26664
26665           if test "$cross_compiling" = yes; then :
26666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26667 /* end confdefs.h.  */
26668 #include <stdlib.h>
26669                           #if __GNU_LIBRARY__ == 1
26670                           Linux libc5 i18n is broken.
26671                           #endif
26672 int
26673 main ()
26674 {
26675
26676   ;
26677   return 0;
26678 }
26679 _ACEOF
26680 if ac_fn_c_try_compile "$LINENO"; then :
26681   gl_cv_func_iswcntrl_works=yes
26682 else
26683   gl_cv_func_iswcntrl_works=no
26684 fi
26685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26686
26687 else
26688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26689 /* end confdefs.h.  */
26690
26691                             #include <stddef.h>
26692                             #include <stdio.h>
26693                             #include <time.h>
26694                             #include <wchar.h>
26695                             #include <wctype.h>
26696                             int main () { return iswprint ('x') == 0; }
26697 _ACEOF
26698 if ac_fn_c_try_run "$LINENO"; then :
26699   gl_cv_func_iswcntrl_works=yes
26700 else
26701   gl_cv_func_iswcntrl_works=no
26702 fi
26703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26704   conftest.$ac_objext conftest.beam conftest.$ac_ext
26705 fi
26706
26707
26708 fi
26709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
26710 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
26711     fi
26712
26713
26714
26715
26716
26717
26718      if test $gl_cv_have_include_next = yes; then
26719        gl_cv_next_wctype_h='<'wctype.h'>'
26720      else
26721        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
26722 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
26723 if test "${gl_cv_next_wctype_h+set}" = set; then :
26724   $as_echo_n "(cached) " >&6
26725 else
26726
26727           if test $ac_cv_header_wctype_h = yes; then
26728             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26729 /* end confdefs.h.  */
26730 #include <wctype.h>
26731
26732 _ACEOF
26733                                                                                                 case "$host_os" in
26734               aix*) gl_absname_cpp="$ac_cpp -C" ;;
26735               *)    gl_absname_cpp="$ac_cpp" ;;
26736             esac
26737                                                 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26738                sed -n '\#/wctype.h#{
26739                  s#.*"\(.*/wctype.h\)".*#\1#
26740                  s#^/[^/]#//&#
26741                  p
26742                  q
26743                }'`'"'
26744           else
26745             gl_cv_next_wctype_h='<'wctype.h'>'
26746           fi
26747
26748 fi
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
26750 $as_echo "$gl_cv_next_wctype_h" >&6; }
26751      fi
26752      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
26753
26754      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26755        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26756        gl_next_as_first_directive='<'wctype.h'>'
26757      else
26758        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26759        gl_next_as_first_directive=$gl_cv_next_wctype_h
26760      fi
26761      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
26762
26763
26764
26765     HAVE_WCTYPE_H=1
26766   else
26767     HAVE_WCTYPE_H=0
26768   fi
26769
26770
26771   if test "$gl_cv_func_iswcntrl_works" = no; then
26772     REPLACE_ISWCNTRL=1
26773   else
26774     REPLACE_ISWCNTRL=0
26775   fi
26776
26777
26778   # Code from module wcwidth:
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790   ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
26791 /* AIX 3.2.5 declares wcwidth in <string.h>. */
26792 #include <string.h>
26793 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26794    <wchar.h>.
26795    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
26796    before <wchar.h>.  */
26797 #include <stddef.h>
26798 #include <stdio.h>
26799 #include <time.h>
26800 #include <wchar.h>
26801
26802 "
26803 if test "x$ac_cv_have_decl_wcwidth" = x""yes; then :
26804   ac_have_decl=1
26805 else
26806   ac_have_decl=0
26807 fi
26808
26809 cat >>confdefs.h <<_ACEOF
26810 #define HAVE_DECL_WCWIDTH $ac_have_decl
26811 _ACEOF
26812
26813   if test $ac_cv_have_decl_wcwidth != yes; then
26814     HAVE_DECL_WCWIDTH=0
26815   fi
26816
26817   if test $ac_cv_func_wcwidth = yes; then
26818                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
26819 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
26820 if test "${gl_cv_func_wcwidth_works+set}" = set; then :
26821   $as_echo_n "(cached) " >&6
26822 else
26823
26824         if test "$cross_compiling" = yes; then :
26825
26826            case "$host_os" in
26827                      # Guess yes on glibc systems.
26828              *-gnu*) gl_cv_func_wcwidth_works="guessing yes";;
26829              *)      gl_cv_func_wcwidth_works="guessing no";;
26830            esac
26831
26832 else
26833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26834 /* end confdefs.h.  */
26835
26836 #include <locale.h>
26837 /* AIX 3.2.5 declares wcwidth in <string.h>. */
26838 #include <string.h>
26839 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26840    <wchar.h>.
26841    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
26842    before <wchar.h>.  */
26843 #include <stddef.h>
26844 #include <stdio.h>
26845 #include <time.h>
26846 #include <wchar.h>
26847 #if !HAVE_DECL_WCWIDTH
26848 extern
26849 # ifdef __cplusplus
26850 "C"
26851 # endif
26852 int wcwidth (int);
26853 #endif
26854 int main ()
26855 {
26856   if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
26857     if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
26858       return 1;
26859   return 0;
26860 }
26861 _ACEOF
26862 if ac_fn_c_try_run "$LINENO"; then :
26863   gl_cv_func_wcwidth_works=yes
26864 else
26865   gl_cv_func_wcwidth_works=no
26866 fi
26867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26868   conftest.$ac_objext conftest.beam conftest.$ac_ext
26869 fi
26870
26871
26872 fi
26873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
26874 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
26875     case "$gl_cv_func_wcwidth_works" in
26876       *yes) ;;
26877       *no) REPLACE_WCWIDTH=1 ;;
26878     esac
26879   fi
26880   if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1; then
26881
26882
26883
26884
26885
26886
26887
26888
26889   gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
26890
26891   fi
26892   if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1 \
26893      || test $HAVE_DECL_WCWIDTH = 0; then
26894
26895     :
26896
26897   fi
26898
26899
26900
26901
26902   GNULIB_WCWIDTH=1
26903
26904
26905
26906 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
26907
26908
26909
26910   # Code from module xsize:
26911
26912
26913
26914   for ac_header in stdint.h
26915 do :
26916   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
26917 if test "x$ac_cv_header_stdint_h" = x""yes; then :
26918   cat >>confdefs.h <<_ACEOF
26919 #define HAVE_STDINT_H 1
26920 _ACEOF
26921
26922 fi
26923
26924 done
26925
26926
26927   # End of code from modules
26928
26929
26930
26931
26932
26933
26934
26935
26936
26937   gltests_libdeps=
26938   gltests_ltlibdeps=
26939
26940
26941
26942
26943
26944
26945
26946
26947
26948   gl_source_base='tests'
26949   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
26950
26951   gl_module_indicator_condition=$gltests_WITNESS
26952
26953
26954
26955
26956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
26957 $as_echo_n "checking for a traditional french locale... " >&6; }
26958 if test "${gt_cv_locale_fr+set}" = set; then :
26959   $as_echo_n "(cached) " >&6
26960 else
26961
26962     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26963 /* end confdefs.h.  */
26964
26965 #include <locale.h>
26966 #include <time.h>
26967 #if HAVE_LANGINFO_CODESET
26968 # include <langinfo.h>
26969 #endif
26970 #include <stdlib.h>
26971 #include <string.h>
26972 struct tm t;
26973 char buf[16];
26974 int main () {
26975   /* Check whether the given locale name is recognized by the system.  */
26976   if (setlocale (LC_ALL, "") == NULL) return 1;
26977   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
26978      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
26979      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
26980      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
26981      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
26982      some unit tests fail.  */
26983 #if HAVE_LANGINFO_CODESET
26984   {
26985     const char *cs = nl_langinfo (CODESET);
26986     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
26987       return 1;
26988   }
26989 #endif
26990 #ifdef __CYGWIN__
26991   /* On Cygwin, avoid locale names without encoding suffix, because the
26992      locale_charset() function relies on the encoding suffix.  Note that
26993      LC_ALL is set on the command line.  */
26994   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
26995 #endif
26996   /* Check whether in the abbreviation of the second month, the second
26997      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
26998      one byte long. This excludes the UTF-8 encoding.  */
26999   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
27000   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
27001   /* Check whether the decimal separator is a comma.
27002      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
27003      are nl_langinfo(RADIXCHAR) are both ".".  */
27004   if (localeconv () ->decimal_point[0] != ',') return 1;
27005   return 0;
27006 }
27007
27008 _ACEOF
27009     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
27010   (eval $ac_link) 2>&5
27011   ac_status=$?
27012   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27013   test $ac_status = 0; } && test -s conftest$ac_exeext; then
27014       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
27015       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
27016       # configure script would override the LC_ALL setting. Likewise for
27017       # LC_CTYPE, which is also set at the beginning of the configure script.
27018       # Test for the usual locale name.
27019       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27020         gt_cv_locale_fr=fr_FR
27021       else
27022         # Test for the locale name with explicit encoding suffix.
27023         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27024           gt_cv_locale_fr=fr_FR.ISO-8859-1
27025         else
27026           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
27027           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27028             gt_cv_locale_fr=fr_FR.ISO8859-1
27029           else
27030             # Test for the HP-UX locale name.
27031             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27032               gt_cv_locale_fr=fr_FR.iso88591
27033             else
27034               # Test for the Solaris 7 locale name.
27035               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27036                 gt_cv_locale_fr=fr
27037               else
27038                 # None found.
27039                 gt_cv_locale_fr=none
27040               fi
27041             fi
27042           fi
27043         fi
27044       fi
27045     fi
27046     rm -fr conftest*
27047
27048 fi
27049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
27050 $as_echo "$gt_cv_locale_fr" >&6; }
27051   LOCALE_FR=$gt_cv_locale_fr
27052
27053
27054
27055
27056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a turkish Unicode locale" >&5
27057 $as_echo_n "checking for a turkish Unicode locale... " >&6; }
27058 if test "${gt_cv_locale_tr_utf8+set}" = set; then :
27059   $as_echo_n "(cached) " >&6
27060 else
27061
27062     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27063 /* end confdefs.h.  */
27064
27065 #include <locale.h>
27066 #include <time.h>
27067 #if HAVE_LANGINFO_CODESET
27068 # include <langinfo.h>
27069 #endif
27070 #include <stdlib.h>
27071 #include <string.h>
27072 struct tm t;
27073 char buf[16];
27074 int main () {
27075   /* On BeOS, locales are not implemented in libc.  Rather, libintl
27076      imitates locale dependent behaviour by looking at the environment
27077      variables, and all locales use the UTF-8 encoding.  But BeOS does not
27078      implement the Turkish upper-/lowercase mappings.  Therefore, let this
27079      program return 1 on BeOS.  */
27080   /* Check whether the given locale name is recognized by the system.  */
27081   if (setlocale (LC_ALL, "") == NULL) return 1;
27082   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
27083      On MacOS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET)
27084      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
27085      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
27086      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
27087      some unit tests fail.  */
27088 #if HAVE_LANGINFO_CODESET
27089   {
27090     const char *cs = nl_langinfo (CODESET);
27091     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
27092       return 1;
27093   }
27094 #endif
27095 #ifdef __CYGWIN__
27096   /* On Cygwin, avoid locale names without encoding suffix, because the
27097      locale_charset() function relies on the encoding suffix.  Note that
27098      LC_ALL is set on the command line.  */
27099   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
27100 #endif
27101   /* Check whether in the abbreviation of the eighth month, the second
27102      character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is
27103      two bytes long, with UTF-8 encoding.  */
27104   t.tm_year = 1992 - 1900; t.tm_mon = 8 - 1; t.tm_mday = 19;
27105   if (strftime (buf, sizeof (buf), "%b", &t) < 4
27106       || buf[1] != (char) 0xc4 || buf[2] != (char) 0x9f)
27107     return 1;
27108   /* Check whether the upper-/lowercase mappings are as expected for
27109      Turkish.  */
27110   if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i'
27111       || towupper(0x0131) != 'I' || towlower ('I') != 0x0131)
27112     return 1;
27113   return 0;
27114 }
27115
27116 _ACEOF
27117     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
27118   (eval $ac_link) 2>&5
27119   ac_status=$?
27120   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27121   test $ac_status = 0; } && test -s conftest$ac_exeext; then
27122       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
27123       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
27124       # configure script would override the LC_ALL setting. Likewise for
27125       # LC_CTYPE, which is also set at the beginning of the configure script.
27126       # Test for the usual locale name.
27127       if (LC_ALL=tr_TR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27128         gt_cv_locale_tr_utf8=tr_TR
27129       else
27130         # Test for the locale name with explicit encoding suffix.
27131         if (LC_ALL=tr_TR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27132           gt_cv_locale_tr_utf8=tr_TR.UTF-8
27133         else
27134           # Test for the Solaris 7 locale name.
27135           if (LC_ALL=tr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27136             gt_cv_locale_tr_utf8=tr.UTF-8
27137           else
27138             # None found.
27139             gt_cv_locale_tr_utf8=none
27140           fi
27141         fi
27142       fi
27143     else
27144       gt_cv_locale_tr_utf8=none
27145     fi
27146     rm -fr conftest*
27147
27148 fi
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_tr_utf8" >&5
27150 $as_echo "$gt_cv_locale_tr_utf8" >&6; }
27151   LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8
27152
27153
27154
27155
27156
27157
27158   GNULIB_ENVIRON=$gl_module_indicator_condition
27159
27160
27161
27162 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
27163
27164
27165
27166
27167
27168
27169
27170
27171
27172
27173
27174
27175
27176
27177
27178
27179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
27180 $as_echo_n "checking for error_at_line... " >&6; }
27181 if test "${ac_cv_lib_error_at_line+set}" = set; then :
27182   $as_echo_n "(cached) " >&6
27183 else
27184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27185 /* end confdefs.h.  */
27186 #include <error.h>
27187 int
27188 main ()
27189 {
27190 error_at_line (0, 0, "", 0, "an error occurred");
27191   ;
27192   return 0;
27193 }
27194 _ACEOF
27195 if ac_fn_c_try_link "$LINENO"; then :
27196   ac_cv_lib_error_at_line=yes
27197 else
27198   ac_cv_lib_error_at_line=no
27199 fi
27200 rm -f core conftest.err conftest.$ac_objext \
27201     conftest$ac_exeext conftest.$ac_ext
27202 fi
27203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
27204 $as_echo "$ac_cv_lib_error_at_line" >&6; }
27205 if test $ac_cv_lib_error_at_line = no; then
27206
27207
27208
27209
27210
27211
27212
27213
27214   gltests_LIBOBJS="$gltests_LIBOBJS error.$ac_objext"
27215
27216 fi
27217
27218
27219
27220
27221   :
27222
27223
27224
27225
27226   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
27227
27228
27229
27230   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
27231
27232
27233
27234
27235   for ac_func in getpagesize
27236 do :
27237   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
27238 if test "x$ac_cv_func_getpagesize" = x""yes; then :
27239   cat >>confdefs.h <<_ACEOF
27240 #define HAVE_GETPAGESIZE 1
27241 _ACEOF
27242
27243 fi
27244 done
27245
27246   if test $ac_cv_func_getpagesize = no; then
27247     HAVE_GETPAGESIZE=0
27248     for ac_header in OS.h
27249 do :
27250   ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
27251 if test "x$ac_cv_header_OS_h" = x""yes; then :
27252   cat >>confdefs.h <<_ACEOF
27253 #define HAVE_OS_H 1
27254 _ACEOF
27255
27256 fi
27257
27258 done
27259
27260     if test $ac_cv_header_OS_h = yes; then
27261       HAVE_OS_H=1
27262     fi
27263     for ac_header in sys/param.h
27264 do :
27265   ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
27266 if test "x$ac_cv_header_sys_param_h" = x""yes; then :
27267   cat >>confdefs.h <<_ACEOF
27268 #define HAVE_SYS_PARAM_H 1
27269 _ACEOF
27270
27271 fi
27272
27273 done
27274
27275     if test $ac_cv_header_sys_param_h = yes; then
27276       HAVE_SYS_PARAM_H=1
27277     fi
27278   fi
27279   case "$host_os" in
27280     mingw*)
27281       REPLACE_GETPAGESIZE=1
27282
27283
27284
27285
27286
27287
27288
27289
27290   gltests_LIBOBJS="$gltests_LIBOBJS getpagesize.$ac_objext"
27291
27292       ;;
27293   esac
27294       ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
27295 if test "x$ac_cv_have_decl_getpagesize" = x""yes; then :
27296
27297 else
27298   HAVE_DECL_GETPAGESIZE=0
27299 fi
27300
27301
27302
27303
27304
27305   GNULIB_GETPAGESIZE=$gl_module_indicator_condition
27306
27307
27308
27309 $as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
27310
27311
27312
27313
27314
27315
27316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
27317 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
27318 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
27319   $as_echo_n "(cached) " >&6
27320 else
27321
27322       if test "$cross_compiling" = yes; then :
27323
27324                                                             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27325 /* end confdefs.h.  */
27326
27327 #if defined arm || defined __arm || defined __arm__
27328   mixed_endianness
27329 #endif
27330
27331 _ACEOF
27332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27333   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
27334   gl_cv_cc_double_expbit0="unknown"
27335 else
27336
27337                                                          :
27338 if test "${ac_cv_c_bigendian+set}" = set; then :
27339   $as_echo_n "(cached) " >&6
27340 else
27341   ac_cv_c_bigendian=unknown
27342     # See if we're dealing with a universal compiler.
27343     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27344 /* end confdefs.h.  */
27345 #ifndef __APPLE_CC__
27346                not a universal capable compiler
27347              #endif
27348              typedef int dummy;
27349
27350 _ACEOF
27351 if ac_fn_c_try_compile "$LINENO"; then :
27352
27353         # Check for potential -arch flags.  It is not universal unless
27354         # there are at least two -arch flags with different values.
27355         ac_arch=
27356         ac_prev=
27357         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
27358          if test -n "$ac_prev"; then
27359            case $ac_word in
27360              i?86 | x86_64 | ppc | ppc64)
27361                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
27362                  ac_arch=$ac_word
27363                else
27364                  ac_cv_c_bigendian=universal
27365                  break
27366                fi
27367                ;;
27368            esac
27369            ac_prev=
27370          elif test "x$ac_word" = "x-arch"; then
27371            ac_prev=arch
27372          fi
27373        done
27374 fi
27375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27376     if test $ac_cv_c_bigendian = unknown; then
27377       # See if sys/param.h defines the BYTE_ORDER macro.
27378       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27379 /* end confdefs.h.  */
27380 #include <sys/types.h>
27381              #include <sys/param.h>
27382
27383 int
27384 main ()
27385 {
27386 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
27387                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
27388                      && LITTLE_ENDIAN)
27389               bogus endian macros
27390              #endif
27391
27392   ;
27393   return 0;
27394 }
27395 _ACEOF
27396 if ac_fn_c_try_compile "$LINENO"; then :
27397   # It does; now see whether it defined to BIG_ENDIAN or not.
27398          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27399 /* end confdefs.h.  */
27400 #include <sys/types.h>
27401                 #include <sys/param.h>
27402
27403 int
27404 main ()
27405 {
27406 #if BYTE_ORDER != BIG_ENDIAN
27407                  not big endian
27408                 #endif
27409
27410   ;
27411   return 0;
27412 }
27413 _ACEOF
27414 if ac_fn_c_try_compile "$LINENO"; then :
27415   ac_cv_c_bigendian=yes
27416 else
27417   ac_cv_c_bigendian=no
27418 fi
27419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27420 fi
27421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27422     fi
27423     if test $ac_cv_c_bigendian = unknown; then
27424       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
27425       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27426 /* end confdefs.h.  */
27427 #include <limits.h>
27428
27429 int
27430 main ()
27431 {
27432 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
27433               bogus endian macros
27434              #endif
27435
27436   ;
27437   return 0;
27438 }
27439 _ACEOF
27440 if ac_fn_c_try_compile "$LINENO"; then :
27441   # It does; now see whether it defined to _BIG_ENDIAN or not.
27442          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27443 /* end confdefs.h.  */
27444 #include <limits.h>
27445
27446 int
27447 main ()
27448 {
27449 #ifndef _BIG_ENDIAN
27450                  not big endian
27451                 #endif
27452
27453   ;
27454   return 0;
27455 }
27456 _ACEOF
27457 if ac_fn_c_try_compile "$LINENO"; then :
27458   ac_cv_c_bigendian=yes
27459 else
27460   ac_cv_c_bigendian=no
27461 fi
27462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27463 fi
27464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27465     fi
27466     if test $ac_cv_c_bigendian = unknown; then
27467       # Compile a test program.
27468       if test "$cross_compiling" = yes; then :
27469   # Try to guess by grepping values from an object file.
27470          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27471 /* end confdefs.h.  */
27472 short int ascii_mm[] =
27473                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
27474                 short int ascii_ii[] =
27475                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
27476                 int use_ascii (int i) {
27477                   return ascii_mm[i] + ascii_ii[i];
27478                 }
27479                 short int ebcdic_ii[] =
27480                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
27481                 short int ebcdic_mm[] =
27482                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
27483                 int use_ebcdic (int i) {
27484                   return ebcdic_mm[i] + ebcdic_ii[i];
27485                 }
27486                 extern int foo;
27487
27488 int
27489 main ()
27490 {
27491 return use_ascii (foo) == use_ebcdic (foo);
27492   ;
27493   return 0;
27494 }
27495 _ACEOF
27496 if ac_fn_c_try_compile "$LINENO"; then :
27497   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
27498               ac_cv_c_bigendian=yes
27499             fi
27500             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
27501               if test "$ac_cv_c_bigendian" = unknown; then
27502                 ac_cv_c_bigendian=no
27503               else
27504                 # finding both strings is unlikely to happen, but who knows?
27505                 ac_cv_c_bigendian=unknown
27506               fi
27507             fi
27508 fi
27509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27510 else
27511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27512 /* end confdefs.h.  */
27513 $ac_includes_default
27514 int
27515 main ()
27516 {
27517
27518              /* Are we little or big endian?  From Harbison&Steele.  */
27519              union
27520              {
27521                long int l;
27522                char c[sizeof (long int)];
27523              } u;
27524              u.l = 1;
27525              return u.c[sizeof (long int) - 1] == 1;
27526
27527   ;
27528   return 0;
27529 }
27530 _ACEOF
27531 if ac_fn_c_try_run "$LINENO"; then :
27532   ac_cv_c_bigendian=no
27533 else
27534   ac_cv_c_bigendian=yes
27535 fi
27536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27537   conftest.$ac_objext conftest.beam conftest.$ac_ext
27538 fi
27539
27540     fi
27541 fi
27542 :
27543  case $ac_cv_c_bigendian in #(
27544    yes)
27545      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
27546    no)
27547      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
27548    universal)
27549
27550 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
27551
27552      ;; #(
27553    *)
27554      gl_cv_cc_double_expbit0="unknown" ;;
27555  esac
27556
27557
27558 fi
27559 rm -f conftest*
27560
27561
27562 else
27563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27564 /* end confdefs.h.  */
27565
27566 #include <float.h>
27567 #include <stddef.h>
27568 #include <stdio.h>
27569 #include <string.h>
27570 #define NWORDS \
27571   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
27572 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
27573 static unsigned int ored_words[NWORDS];
27574 static unsigned int anded_words[NWORDS];
27575 static void add_to_ored_words (double x)
27576 {
27577   memory_double m;
27578   size_t i;
27579   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
27580   memset (&m, 0, sizeof (memory_double));
27581   m.value = x;
27582   for (i = 0; i < NWORDS; i++)
27583     {
27584       ored_words[i] |= m.word[i];
27585       anded_words[i] &= m.word[i];
27586     }
27587 }
27588 int main ()
27589 {
27590   size_t j;
27591   FILE *fp = fopen ("conftest.out", "w");
27592   if (fp == NULL)
27593     return 1;
27594   for (j = 0; j < NWORDS; j++)
27595     anded_words[j] = ~ (unsigned int) 0;
27596   add_to_ored_words (0.25);
27597   add_to_ored_words (0.5);
27598   add_to_ored_words (1.0);
27599   add_to_ored_words (2.0);
27600   add_to_ored_words (4.0);
27601   /* Remove bits that are common (e.g. if representation of the first mantissa
27602      bit is explicit).  */
27603   for (j = 0; j < NWORDS; j++)
27604     ored_words[j] &= ~anded_words[j];
27605   /* Now find the nonzero word.  */
27606   for (j = 0; j < NWORDS; j++)
27607     if (ored_words[j] != 0)
27608       break;
27609   if (j < NWORDS)
27610     {
27611       size_t i;
27612       for (i = j + 1; i < NWORDS; i++)
27613         if (ored_words[i] != 0)
27614           {
27615             fprintf (fp, "unknown");
27616             return (fclose (fp) != 0);
27617           }
27618       for (i = 0; ; i++)
27619         if ((ored_words[j] >> i) & 1)
27620           {
27621             fprintf (fp, "word %d bit %d", (int) j, (int) i);
27622             return (fclose (fp) != 0);
27623           }
27624     }
27625   fprintf (fp, "unknown");
27626   return (fclose (fp) != 0);
27627 }
27628
27629 _ACEOF
27630 if ac_fn_c_try_run "$LINENO"; then :
27631   gl_cv_cc_double_expbit0=`cat conftest.out`
27632 else
27633   gl_cv_cc_double_expbit0="unknown"
27634 fi
27635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27636   conftest.$ac_objext conftest.beam conftest.$ac_ext
27637 fi
27638
27639       rm -f conftest.out
27640
27641 fi
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
27643 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
27644   case "$gl_cv_cc_double_expbit0" in
27645     word*bit*)
27646       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
27647       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
27648
27649 cat >>confdefs.h <<_ACEOF
27650 #define DBL_EXPBIT0_WORD $word
27651 _ACEOF
27652
27653
27654 cat >>confdefs.h <<_ACEOF
27655 #define DBL_EXPBIT0_BIT $bit
27656 _ACEOF
27657
27658       ;;
27659   esac
27660
27661
27662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
27663 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
27664 if test "${gl_cv_cc_float_expbit0+set}" = set; then :
27665   $as_echo_n "(cached) " >&6
27666 else
27667
27668       if test "$cross_compiling" = yes; then :
27669   gl_cv_cc_float_expbit0="word 0 bit 23"
27670 else
27671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27672 /* end confdefs.h.  */
27673
27674 #include <float.h>
27675 #include <stddef.h>
27676 #include <stdio.h>
27677 #include <string.h>
27678 #define NWORDS \
27679   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
27680 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
27681 static unsigned int ored_words[NWORDS];
27682 static unsigned int anded_words[NWORDS];
27683 static void add_to_ored_words (float x)
27684 {
27685   memory_float m;
27686   size_t i;
27687   /* Clear it first, in case
27688      sizeof (float) < sizeof (memory_float).  */
27689   memset (&m, 0, sizeof (memory_float));
27690   m.value = x;
27691   for (i = 0; i < NWORDS; i++)
27692     {
27693       ored_words[i] |= m.word[i];
27694       anded_words[i] &= m.word[i];
27695     }
27696 }
27697 int main ()
27698 {
27699   size_t j;
27700   FILE *fp = fopen ("conftest.out", "w");
27701   if (fp == NULL)
27702     return 1;
27703   for (j = 0; j < NWORDS; j++)
27704     anded_words[j] = ~ (unsigned int) 0;
27705   add_to_ored_words (0.25f);
27706   add_to_ored_words (0.5f);
27707   add_to_ored_words (1.0f);
27708   add_to_ored_words (2.0f);
27709   add_to_ored_words (4.0f);
27710   /* Remove bits that are common (e.g. if representation of the first mantissa
27711      bit is explicit).  */
27712   for (j = 0; j < NWORDS; j++)
27713     ored_words[j] &= ~anded_words[j];
27714   /* Now find the nonzero word.  */
27715   for (j = 0; j < NWORDS; j++)
27716     if (ored_words[j] != 0)
27717       break;
27718   if (j < NWORDS)
27719     {
27720       size_t i;
27721       for (i = j + 1; i < NWORDS; i++)
27722         if (ored_words[i] != 0)
27723           {
27724             fprintf (fp, "unknown");
27725             return (fclose (fp) != 0);
27726           }
27727       for (i = 0; ; i++)
27728         if ((ored_words[j] >> i) & 1)
27729           {
27730             fprintf (fp, "word %d bit %d", (int) j, (int) i);
27731             return (fclose (fp) != 0);
27732           }
27733     }
27734   fprintf (fp, "unknown");
27735   return (fclose (fp) != 0);
27736 }
27737
27738 _ACEOF
27739 if ac_fn_c_try_run "$LINENO"; then :
27740   gl_cv_cc_float_expbit0=`cat conftest.out`
27741 else
27742   gl_cv_cc_float_expbit0="unknown"
27743 fi
27744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27745   conftest.$ac_objext conftest.beam conftest.$ac_ext
27746 fi
27747
27748       rm -f conftest.out
27749
27750 fi
27751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
27752 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
27753   case "$gl_cv_cc_float_expbit0" in
27754     word*bit*)
27755       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
27756       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
27757
27758 cat >>confdefs.h <<_ACEOF
27759 #define FLT_EXPBIT0_WORD $word
27760 _ACEOF
27761
27762
27763 cat >>confdefs.h <<_ACEOF
27764 #define FLT_EXPBIT0_BIT $bit
27765 _ACEOF
27766
27767       ;;
27768   esac
27769
27770
27771
27772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
27773 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
27774 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
27775   $as_echo_n "(cached) " >&6
27776 else
27777
27778       if test "$cross_compiling" = yes; then :
27779
27780                               gl_cv_cc_long_double_expbit0="unknown"
27781
27782 else
27783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27784 /* end confdefs.h.  */
27785
27786 #include <float.h>
27787 #include <stddef.h>
27788 #include <stdio.h>
27789 #include <string.h>
27790 #define NWORDS \
27791   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
27792 typedef union { long double value; unsigned int word[NWORDS]; }
27793         memory_long_double;
27794 static unsigned int ored_words[NWORDS];
27795 static unsigned int anded_words[NWORDS];
27796 static void add_to_ored_words (long double x)
27797 {
27798   memory_long_double m;
27799   size_t i;
27800   /* Clear it first, in case
27801      sizeof (long double) < sizeof (memory_long_double).  */
27802   memset (&m, 0, sizeof (memory_long_double));
27803   m.value = x;
27804   for (i = 0; i < NWORDS; i++)
27805     {
27806       ored_words[i] |= m.word[i];
27807       anded_words[i] &= m.word[i];
27808     }
27809 }
27810 int main ()
27811 {
27812   size_t j;
27813   FILE *fp = fopen ("conftest.out", "w");
27814   if (fp == NULL)
27815     return 1;
27816   for (j = 0; j < NWORDS; j++)
27817     anded_words[j] = ~ (unsigned int) 0;
27818   add_to_ored_words (0.25L);
27819   add_to_ored_words (0.5L);
27820   add_to_ored_words (1.0L);
27821   add_to_ored_words (2.0L);
27822   add_to_ored_words (4.0L);
27823   /* Remove bits that are common (e.g. if representation of the first mantissa
27824      bit is explicit).  */
27825   for (j = 0; j < NWORDS; j++)
27826     ored_words[j] &= ~anded_words[j];
27827   /* Now find the nonzero word.  */
27828   for (j = 0; j < NWORDS; j++)
27829     if (ored_words[j] != 0)
27830       break;
27831   if (j < NWORDS)
27832     {
27833       size_t i;
27834       for (i = j + 1; i < NWORDS; i++)
27835         if (ored_words[i] != 0)
27836           {
27837             fprintf (fp, "unknown");
27838             return (fclose (fp) != 0);
27839           }
27840       for (i = 0; ; i++)
27841         if ((ored_words[j] >> i) & 1)
27842           {
27843             fprintf (fp, "word %d bit %d", (int) j, (int) i);
27844             return (fclose (fp) != 0);
27845           }
27846     }
27847   fprintf (fp, "unknown");
27848   return (fclose (fp) != 0);
27849 }
27850
27851 _ACEOF
27852 if ac_fn_c_try_run "$LINENO"; then :
27853   gl_cv_cc_long_double_expbit0=`cat conftest.out`
27854 else
27855   gl_cv_cc_long_double_expbit0="unknown"
27856 fi
27857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27858   conftest.$ac_objext conftest.beam conftest.$ac_ext
27859 fi
27860
27861       rm -f conftest.out
27862
27863 fi
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
27865 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
27866   case "$gl_cv_cc_long_double_expbit0" in
27867     word*bit*)
27868       word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
27869       bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
27870
27871 cat >>confdefs.h <<_ACEOF
27872 #define LDBL_EXPBIT0_WORD $word
27873 _ACEOF
27874
27875
27876 cat >>confdefs.h <<_ACEOF
27877 #define LDBL_EXPBIT0_BIT $bit
27878 _ACEOF
27879
27880       ;;
27881   esac
27882
27883
27884
27885
27886
27887
27888
27889
27890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
27891 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
27892 if test "${gl_cv_header_locale_h_posix2001+set}" = set; then :
27893   $as_echo_n "(cached) " >&6
27894 else
27895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27896 /* end confdefs.h.  */
27897 #include <locale.h>
27898 int x = LC_MESSAGES;
27899 int
27900 main ()
27901 {
27902
27903   ;
27904   return 0;
27905 }
27906 _ACEOF
27907 if ac_fn_c_try_compile "$LINENO"; then :
27908   gl_cv_header_locale_h_posix2001=yes
27909 else
27910   gl_cv_header_locale_h_posix2001=no
27911 fi
27912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27913 fi
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
27915 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
27916
27917
27918   if test $ac_cv_header_xlocale_h = yes; then
27919     HAVE_XLOCALE_H=1
27920                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
27921 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
27922 if test "${gl_cv_header_locale_has_locale_t+set}" = set; then :
27923   $as_echo_n "(cached) " >&6
27924 else
27925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27926 /* end confdefs.h.  */
27927 #include <locale.h>
27928 locale_t x;
27929 int
27930 main ()
27931 {
27932
27933   ;
27934   return 0;
27935 }
27936 _ACEOF
27937 if ac_fn_c_try_compile "$LINENO"; then :
27938   gl_cv_header_locale_has_locale_t=yes
27939 else
27940   gl_cv_header_locale_has_locale_t=no
27941 fi
27942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27943
27944 fi
27945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
27946 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
27947     if test $gl_cv_header_locale_has_locale_t = yes; then
27948       gl_cv_header_locale_h_needs_xlocale_h=no
27949     else
27950       gl_cv_header_locale_h_needs_xlocale_h=yes
27951     fi
27952   else
27953     HAVE_XLOCALE_H=0
27954     gl_cv_header_locale_h_needs_xlocale_h=no
27955   fi
27956
27957
27958
27959
27960
27961
27962
27963
27964      if test $gl_cv_have_include_next = yes; then
27965        gl_cv_next_locale_h='<'locale.h'>'
27966      else
27967        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
27968 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
27969 if test "${gl_cv_next_locale_h+set}" = set; then :
27970   $as_echo_n "(cached) " >&6
27971 else
27972
27973           if test $ac_cv_header_locale_h = yes; then
27974             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27975 /* end confdefs.h.  */
27976 #include <locale.h>
27977
27978 _ACEOF
27979                                                                                                 case "$host_os" in
27980               aix*) gl_absname_cpp="$ac_cpp -C" ;;
27981               *)    gl_absname_cpp="$ac_cpp" ;;
27982             esac
27983                                                 gl_cv_next_locale_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27984                sed -n '\#/locale.h#{
27985                  s#.*"\(.*/locale.h\)".*#\1#
27986                  s#^/[^/]#//&#
27987                  p
27988                  q
27989                }'`'"'
27990           else
27991             gl_cv_next_locale_h='<'locale.h'>'
27992           fi
27993
27994 fi
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
27996 $as_echo "$gl_cv_next_locale_h" >&6; }
27997      fi
27998      NEXT_LOCALE_H=$gl_cv_next_locale_h
27999
28000      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28001        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28002        gl_next_as_first_directive='<'locale.h'>'
28003      else
28004        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28005        gl_next_as_first_directive=$gl_cv_next_locale_h
28006      fi
28007      NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
28008
28009
28010
28011
28012   if test -n "$STDDEF_H" \
28013      || test $gl_cv_header_locale_h_posix2001 = no \
28014      || test $gl_cv_header_locale_h_needs_xlocale_h = yes; then
28015
28016     :
28017
28018   fi
28019
28020
28021     for gl_func in duplocale; do
28022     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
28023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
28024 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
28025 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
28026   $as_echo_n "(cached) " >&6
28027 else
28028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28029 /* end confdefs.h.  */
28030 #include <locale.h>
28031 /* Some systems provide declarations in a non-standard header.  */
28032 #if HAVE_XLOCALE_H
28033 # include <xlocale.h>
28034 #endif
28035
28036 int
28037 main ()
28038 {
28039 #undef $gl_func
28040   (void) $gl_func;
28041   ;
28042   return 0;
28043 }
28044 _ACEOF
28045 if ac_fn_c_try_compile "$LINENO"; then :
28046   eval "$as_gl_Symbol=yes"
28047 else
28048   eval "$as_gl_Symbol=no"
28049 fi
28050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28051 fi
28052 eval ac_res=\$$as_gl_Symbol
28053                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28054 $as_echo "$ac_res" >&6; }
28055      eval as_val=\$$as_gl_Symbol
28056    if test "x$as_val" = x""yes; then :
28057   cat >>confdefs.h <<_ACEOF
28058 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
28059 _ACEOF
28060
28061                      eval ac_cv_have_decl_$gl_func=yes
28062 fi
28063       done
28064
28065
28066
28067
28068
28069
28070
28071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
28072 $as_echo_n "checking for a traditional french locale... " >&6; }
28073 if test "${gt_cv_locale_fr+set}" = set; then :
28074   $as_echo_n "(cached) " >&6
28075 else
28076
28077     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28078 /* end confdefs.h.  */
28079
28080 #include <locale.h>
28081 #include <time.h>
28082 #if HAVE_LANGINFO_CODESET
28083 # include <langinfo.h>
28084 #endif
28085 #include <stdlib.h>
28086 #include <string.h>
28087 struct tm t;
28088 char buf[16];
28089 int main () {
28090   /* Check whether the given locale name is recognized by the system.  */
28091   if (setlocale (LC_ALL, "") == NULL) return 1;
28092   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
28093      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
28094      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
28095      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
28096      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
28097      some unit tests fail.  */
28098 #if HAVE_LANGINFO_CODESET
28099   {
28100     const char *cs = nl_langinfo (CODESET);
28101     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
28102       return 1;
28103   }
28104 #endif
28105 #ifdef __CYGWIN__
28106   /* On Cygwin, avoid locale names without encoding suffix, because the
28107      locale_charset() function relies on the encoding suffix.  Note that
28108      LC_ALL is set on the command line.  */
28109   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
28110 #endif
28111   /* Check whether in the abbreviation of the second month, the second
28112      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
28113      one byte long. This excludes the UTF-8 encoding.  */
28114   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
28115   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
28116   /* Check whether the decimal separator is a comma.
28117      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
28118      are nl_langinfo(RADIXCHAR) are both ".".  */
28119   if (localeconv () ->decimal_point[0] != ',') return 1;
28120   return 0;
28121 }
28122
28123 _ACEOF
28124     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
28125   (eval $ac_link) 2>&5
28126   ac_status=$?
28127   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28128   test $ac_status = 0; } && test -s conftest$ac_exeext; then
28129       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
28130       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
28131       # configure script would override the LC_ALL setting. Likewise for
28132       # LC_CTYPE, which is also set at the beginning of the configure script.
28133       # Test for the usual locale name.
28134       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28135         gt_cv_locale_fr=fr_FR
28136       else
28137         # Test for the locale name with explicit encoding suffix.
28138         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28139           gt_cv_locale_fr=fr_FR.ISO-8859-1
28140         else
28141           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
28142           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28143             gt_cv_locale_fr=fr_FR.ISO8859-1
28144           else
28145             # Test for the HP-UX locale name.
28146             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28147               gt_cv_locale_fr=fr_FR.iso88591
28148             else
28149               # Test for the Solaris 7 locale name.
28150               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28151                 gt_cv_locale_fr=fr
28152               else
28153                 # None found.
28154                 gt_cv_locale_fr=none
28155               fi
28156             fi
28157           fi
28158         fi
28159       fi
28160     fi
28161     rm -fr conftest*
28162
28163 fi
28164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
28165 $as_echo "$gt_cv_locale_fr" >&6; }
28166   LOCALE_FR=$gt_cv_locale_fr
28167
28168
28169
28170
28171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
28172 $as_echo_n "checking for a french Unicode locale... " >&6; }
28173 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
28174   $as_echo_n "(cached) " >&6
28175 else
28176
28177     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28178 /* end confdefs.h.  */
28179
28180 #include <locale.h>
28181 #include <time.h>
28182 #if HAVE_LANGINFO_CODESET
28183 # include <langinfo.h>
28184 #endif
28185 #include <stdlib.h>
28186 #include <string.h>
28187 struct tm t;
28188 char buf[16];
28189 int main () {
28190   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
28191      imitates locale dependent behaviour by looking at the environment
28192      variables, and all locales use the UTF-8 encoding.  */
28193 #if !(defined __BEOS__ || defined __HAIKU__)
28194   /* Check whether the given locale name is recognized by the system.  */
28195   if (setlocale (LC_ALL, "") == NULL) return 1;
28196   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
28197      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
28198      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
28199      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
28200      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
28201      some unit tests fail.  */
28202 # if HAVE_LANGINFO_CODESET
28203   {
28204     const char *cs = nl_langinfo (CODESET);
28205     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
28206       return 1;
28207   }
28208 # endif
28209 # ifdef __CYGWIN__
28210   /* On Cygwin, avoid locale names without encoding suffix, because the
28211      locale_charset() function relies on the encoding suffix.  Note that
28212      LC_ALL is set on the command line.  */
28213   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
28214 # endif
28215   /* Check whether in the abbreviation of the second month, the second
28216      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
28217      two bytes long, with UTF-8 encoding.  */
28218   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
28219   if (strftime (buf, sizeof (buf), "%b", &t) < 4
28220       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
28221     return 1;
28222 #endif
28223   /* Check whether the decimal separator is a comma.
28224      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
28225      are nl_langinfo(RADIXCHAR) are both ".".  */
28226   if (localeconv () ->decimal_point[0] != ',') return 1;
28227   return 0;
28228 }
28229
28230 _ACEOF
28231     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
28232   (eval $ac_link) 2>&5
28233   ac_status=$?
28234   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28235   test $ac_status = 0; } && test -s conftest$ac_exeext; then
28236       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
28237       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
28238       # configure script would override the LC_ALL setting. Likewise for
28239       # LC_CTYPE, which is also set at the beginning of the configure script.
28240       # Test for the usual locale name.
28241       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28242         gt_cv_locale_fr_utf8=fr_FR
28243       else
28244         # Test for the locale name with explicit encoding suffix.
28245         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28246           gt_cv_locale_fr_utf8=fr_FR.UTF-8
28247         else
28248           # Test for the Solaris 7 locale name.
28249           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28250             gt_cv_locale_fr_utf8=fr.UTF-8
28251           else
28252             # None found.
28253             gt_cv_locale_fr_utf8=none
28254           fi
28255         fi
28256       fi
28257     fi
28258     rm -fr conftest*
28259
28260 fi
28261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
28262 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
28263   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
28264
28265
28266
28267
28268
28269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
28270 $as_echo_n "checking for a traditional japanese locale... " >&6; }
28271 if test "${gt_cv_locale_ja+set}" = set; then :
28272   $as_echo_n "(cached) " >&6
28273 else
28274
28275     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28276 /* end confdefs.h.  */
28277
28278 #include <locale.h>
28279 #include <time.h>
28280 #if HAVE_LANGINFO_CODESET
28281 # include <langinfo.h>
28282 #endif
28283 #include <stdlib.h>
28284 #include <string.h>
28285 struct tm t;
28286 char buf[16];
28287 int main ()
28288 {
28289   const char *p;
28290   /* Check whether the given locale name is recognized by the system.  */
28291   if (setlocale (LC_ALL, "") == NULL) return 1;
28292   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
28293      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
28294      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
28295      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
28296      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
28297      some unit tests fail.  */
28298 #if HAVE_LANGINFO_CODESET
28299   {
28300     const char *cs = nl_langinfo (CODESET);
28301     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
28302       return 1;
28303   }
28304 #endif
28305 #ifdef __CYGWIN__
28306   /* On Cygwin, avoid locale names without encoding suffix, because the
28307      locale_charset() function relies on the encoding suffix.  Note that
28308      LC_ALL is set on the command line.  */
28309   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
28310 #endif
28311   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
28312      on Cygwin 1.5.x.  */
28313   if (MB_CUR_MAX == 1)
28314     return 1;
28315   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
28316      This excludes the UTF-8 encoding.  */
28317   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
28318   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
28319   for (p = buf; *p != '\0'; p++)
28320     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
28321       return 1;
28322   return 0;
28323 }
28324
28325 _ACEOF
28326     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
28327   (eval $ac_link) 2>&5
28328   ac_status=$?
28329   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28330   test $ac_status = 0; } && test -s conftest$ac_exeext; then
28331       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
28332       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
28333       # configure script would override the LC_ALL setting. Likewise for
28334       # LC_CTYPE, which is also set at the beginning of the configure script.
28335       # Test for the AIX locale name.
28336       if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28337         gt_cv_locale_ja=ja_JP
28338       else
28339         # Test for the locale name with explicit encoding suffix.
28340         if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28341           gt_cv_locale_ja=ja_JP.EUC-JP
28342         else
28343           # Test for the HP-UX, OSF/1, NetBSD locale name.
28344           if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28345             gt_cv_locale_ja=ja_JP.eucJP
28346           else
28347             # Test for the IRIX, FreeBSD locale name.
28348             if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28349               gt_cv_locale_ja=ja_JP.EUC
28350             else
28351               # Test for the Solaris 7 locale name.
28352               if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28353                 gt_cv_locale_ja=ja
28354               else
28355                 # Special test for NetBSD 1.6.
28356                 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
28357                   gt_cv_locale_ja=ja_JP.eucJP
28358                 else
28359                   # None found.
28360                   gt_cv_locale_ja=none
28361                 fi
28362               fi
28363             fi
28364           fi
28365         fi
28366       fi
28367     fi
28368     rm -fr conftest*
28369
28370 fi
28371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
28372 $as_echo "$gt_cv_locale_ja" >&6; }
28373   LOCALE_JA=$gt_cv_locale_ja
28374
28375
28376
28377
28378
28379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
28380 $as_echo_n "checking for a transitional chinese locale... " >&6; }
28381 if test "${gt_cv_locale_zh_CN+set}" = set; then :
28382   $as_echo_n "(cached) " >&6
28383 else
28384
28385     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28386 /* end confdefs.h.  */
28387
28388 #include <locale.h>
28389 #include <stdlib.h>
28390 #include <time.h>
28391 #if HAVE_LANGINFO_CODESET
28392 # include <langinfo.h>
28393 #endif
28394 #include <stdlib.h>
28395 #include <string.h>
28396 struct tm t;
28397 char buf[16];
28398 int main ()
28399 {
28400   const char *p;
28401   /* Check whether the given locale name is recognized by the system.  */
28402   if (setlocale (LC_ALL, "") == NULL) return 1;
28403   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
28404      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
28405      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
28406      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
28407      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
28408      some unit tests fail.  */
28409 #if HAVE_LANGINFO_CODESET
28410   {
28411     const char *cs = nl_langinfo (CODESET);
28412     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
28413       return 1;
28414   }
28415 #endif
28416 #ifdef __CYGWIN__
28417   /* On Cygwin, avoid locale names without encoding suffix, because the
28418      locale_charset() function relies on the encoding suffix.  Note that
28419      LC_ALL is set on the command line.  */
28420   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
28421 #endif
28422   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
28423      This excludes the UTF-8 encoding.  */
28424   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
28425   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
28426   for (p = buf; *p != '\0'; p++)
28427     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
28428       return 1;
28429   /* Check whether a typical GB18030 multibyte sequence is recognized as a
28430      single wide character.  This excludes the GB2312 and GBK encodings.  */
28431   if (mblen ("\203\062\332\066", 5) != 4)
28432     return 1;
28433   return 0;
28434 }
28435
28436 _ACEOF
28437     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
28438   (eval $ac_link) 2>&5
28439   ac_status=$?
28440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28441   test $ac_status = 0; } && test -s conftest$ac_exeext; then
28442       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
28443       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
28444       # configure script would override the LC_ALL setting. Likewise for
28445       # LC_CTYPE, which is also set at the beginning of the configure script.
28446       # Test for the locale name without encoding suffix.
28447       if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28448         gt_cv_locale_zh_CN=zh_CN
28449       else
28450         # Test for the locale name with explicit encoding suffix.
28451         if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28452           gt_cv_locale_zh_CN=zh_CN.GB18030
28453         else
28454           # None found.
28455           gt_cv_locale_zh_CN=none
28456         fi
28457       fi
28458     else
28459       # If there was a link error, due to mblen(), the system is so old that
28460       # it certainly doesn't have a chinese locale.
28461       gt_cv_locale_zh_CN=none
28462     fi
28463     rm -fr conftest*
28464
28465 fi
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
28467 $as_echo "$gt_cv_locale_zh_CN" >&6; }
28468   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
28469
28470
28471
28472
28473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
28474 $as_echo_n "checking for a french Unicode locale... " >&6; }
28475 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
28476   $as_echo_n "(cached) " >&6
28477 else
28478
28479     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28480 /* end confdefs.h.  */
28481
28482 #include <locale.h>
28483 #include <time.h>
28484 #if HAVE_LANGINFO_CODESET
28485 # include <langinfo.h>
28486 #endif
28487 #include <stdlib.h>
28488 #include <string.h>
28489 struct tm t;
28490 char buf[16];
28491 int main () {
28492   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
28493      imitates locale dependent behaviour by looking at the environment
28494      variables, and all locales use the UTF-8 encoding.  */
28495 #if !(defined __BEOS__ || defined __HAIKU__)
28496   /* Check whether the given locale name is recognized by the system.  */
28497   if (setlocale (LC_ALL, "") == NULL) return 1;
28498   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
28499      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
28500      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
28501      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
28502      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
28503      some unit tests fail.  */
28504 # if HAVE_LANGINFO_CODESET
28505   {
28506     const char *cs = nl_langinfo (CODESET);
28507     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
28508       return 1;
28509   }
28510 # endif
28511 # ifdef __CYGWIN__
28512   /* On Cygwin, avoid locale names without encoding suffix, because the
28513      locale_charset() function relies on the encoding suffix.  Note that
28514      LC_ALL is set on the command line.  */
28515   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
28516 # endif
28517   /* Check whether in the abbreviation of the second month, the second
28518      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
28519      two bytes long, with UTF-8 encoding.  */
28520   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
28521   if (strftime (buf, sizeof (buf), "%b", &t) < 4
28522       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
28523     return 1;
28524 #endif
28525   /* Check whether the decimal separator is a comma.
28526      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
28527      are nl_langinfo(RADIXCHAR) are both ".".  */
28528   if (localeconv () ->decimal_point[0] != ',') return 1;
28529   return 0;
28530 }
28531
28532 _ACEOF
28533     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
28534   (eval $ac_link) 2>&5
28535   ac_status=$?
28536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28537   test $ac_status = 0; } && test -s conftest$ac_exeext; then
28538       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
28539       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
28540       # configure script would override the LC_ALL setting. Likewise for
28541       # LC_CTYPE, which is also set at the beginning of the configure script.
28542       # Test for the usual locale name.
28543       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28544         gt_cv_locale_fr_utf8=fr_FR
28545       else
28546         # Test for the locale name with explicit encoding suffix.
28547         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28548           gt_cv_locale_fr_utf8=fr_FR.UTF-8
28549         else
28550           # Test for the Solaris 7 locale name.
28551           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28552             gt_cv_locale_fr_utf8=fr.UTF-8
28553           else
28554             # None found.
28555             gt_cv_locale_fr_utf8=none
28556           fi
28557         fi
28558       fi
28559     fi
28560     rm -fr conftest*
28561
28562 fi
28563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
28564 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
28565   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
28566
28567
28568   ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
28569 "
28570 if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then :
28571   ac_have_decl=1
28572 else
28573   ac_have_decl=0
28574 fi
28575
28576 cat >>confdefs.h <<_ACEOF
28577 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
28578 _ACEOF
28579
28580   ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
28581 "
28582 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then :
28583   ac_have_decl=1
28584 else
28585   ac_have_decl=0
28586 fi
28587
28588 cat >>confdefs.h <<_ACEOF
28589 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
28590 _ACEOF
28591
28592
28593
28594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
28595 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
28596 if test "${gl_cv_func_svid_putenv+set}" = set; then :
28597   $as_echo_n "(cached) " >&6
28598 else
28599   if test "$cross_compiling" = yes; then :
28600                gl_cv_func_svid_putenv=no
28601 else
28602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28603 /* end confdefs.h.  */
28604 $ac_includes_default
28605 int
28606 main ()
28607 {
28608
28609     /* Put it in env.  */
28610     if (putenv ("CONFTEST_putenv=val"))
28611       return 1;
28612
28613     /* Try to remove it.  */
28614     if (putenv ("CONFTEST_putenv"))
28615       return 1;
28616
28617     /* Make sure it was deleted.  */
28618     if (getenv ("CONFTEST_putenv") != 0)
28619       return 1;
28620
28621     return 0;
28622
28623   ;
28624   return 0;
28625 }
28626 _ACEOF
28627 if ac_fn_c_try_run "$LINENO"; then :
28628   gl_cv_func_svid_putenv=yes
28629 else
28630   gl_cv_func_svid_putenv=no
28631 fi
28632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28633   conftest.$ac_objext conftest.beam conftest.$ac_ext
28634 fi
28635
28636
28637 fi
28638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
28639 $as_echo "$gl_cv_func_svid_putenv" >&6; }
28640   if test $gl_cv_func_svid_putenv = no; then
28641     REPLACE_PUTENV=1
28642
28643
28644
28645
28646
28647
28648
28649
28650   gltests_LIBOBJS="$gltests_LIBOBJS putenv.$ac_objext"
28651
28652   fi
28653
28654
28655
28656
28657   GNULIB_PUTENV=$gl_module_indicator_condition
28658
28659
28660
28661 $as_echo "#define GNULIB_TEST_PUTENV 1" >>confdefs.h
28662
28663
28664
28665
28666
28667   if test $HAVE_SETENV$REPLACE_SETENV != 10; then
28668
28669
28670
28671
28672
28673
28674
28675
28676   gltests_LIBOBJS="$gltests_LIBOBJS setenv.$ac_objext"
28677
28678   fi
28679
28680
28681
28682
28683   GNULIB_SETENV=$gl_module_indicator_condition
28684
28685
28686
28687 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
28688
28689
28690
28691
28692
28693
28694
28695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
28696 $as_echo_n "checking for wchar_t... " >&6; }
28697 if test "${gt_cv_c_wchar_t+set}" = set; then :
28698   $as_echo_n "(cached) " >&6
28699 else
28700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28701 /* end confdefs.h.  */
28702 #include <stddef.h>
28703        wchar_t foo = (wchar_t)'\0';
28704 int
28705 main ()
28706 {
28707
28708   ;
28709   return 0;
28710 }
28711 _ACEOF
28712 if ac_fn_c_try_compile "$LINENO"; then :
28713   gt_cv_c_wchar_t=yes
28714 else
28715   gt_cv_c_wchar_t=no
28716 fi
28717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28718 fi
28719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
28720 $as_echo "$gt_cv_c_wchar_t" >&6; }
28721   if test $gt_cv_c_wchar_t = yes; then
28722
28723 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
28724
28725   fi
28726
28727
28728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
28729 $as_echo_n "checking for wint_t... " >&6; }
28730 if test "${gt_cv_c_wint_t+set}" = set; then :
28731   $as_echo_n "(cached) " >&6
28732 else
28733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28734 /* end confdefs.h.  */
28735
28736 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28737    <wchar.h>.
28738    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
28739    before <wchar.h>.  */
28740 #include <stddef.h>
28741 #include <stdio.h>
28742 #include <time.h>
28743 #include <wchar.h>
28744        wint_t foo = (wchar_t)'\0';
28745 int
28746 main ()
28747 {
28748
28749   ;
28750   return 0;
28751 }
28752 _ACEOF
28753 if ac_fn_c_try_compile "$LINENO"; then :
28754   gt_cv_c_wint_t=yes
28755 else
28756   gt_cv_c_wint_t=no
28757 fi
28758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28759 fi
28760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
28761 $as_echo "$gt_cv_c_wint_t" >&6; }
28762   if test $gt_cv_c_wint_t = yes; then
28763
28764 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
28765
28766   fi
28767
28768
28769
28770   if test $REPLACE_STRERROR = 1; then
28771
28772
28773
28774
28775
28776
28777
28778
28779   gltests_LIBOBJS="$gltests_LIBOBJS strerror.$ac_objext"
28780
28781
28782 cat >>confdefs.h <<_ACEOF
28783 #define REPLACE_STRERROR $REPLACE_STRERROR
28784 _ACEOF
28785
28786   fi
28787
28788
28789
28790
28791   GNULIB_STRERROR=$gl_module_indicator_condition
28792
28793
28794
28795 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
28796
28797
28798
28799
28800
28801
28802
28803
28804
28805   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
28806   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
28807   # irrelevant for anonymous mappings.
28808   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
28809 if test "x$ac_cv_func_mmap" = x""yes; then :
28810   gl_have_mmap=yes
28811 else
28812   gl_have_mmap=no
28813 fi
28814
28815
28816   # Try to allow MAP_ANONYMOUS.
28817   gl_have_mmap_anonymous=no
28818   if test $gl_have_mmap = yes; then
28819     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
28820 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
28821     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28822 /* end confdefs.h.  */
28823
28824 #include <sys/mman.h>
28825 #ifdef MAP_ANONYMOUS
28826     I cant identify this map.
28827 #endif
28828
28829 _ACEOF
28830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28831   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
28832   gl_have_mmap_anonymous=yes
28833 fi
28834 rm -f conftest*
28835
28836     if test $gl_have_mmap_anonymous != yes; then
28837       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28838 /* end confdefs.h.  */
28839
28840 #include <sys/mman.h>
28841 #ifdef MAP_ANON
28842     I cant identify this map.
28843 #endif
28844
28845 _ACEOF
28846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28847   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
28848
28849 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
28850
28851          gl_have_mmap_anonymous=yes
28852 fi
28853 rm -f conftest*
28854
28855     fi
28856     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
28857 $as_echo "$gl_have_mmap_anonymous" >&6; }
28858     if test $gl_have_mmap_anonymous = yes; then
28859
28860 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
28861
28862     fi
28863   fi
28864
28865
28866
28867
28868
28869
28870
28871   if test $gl_threads_api = posix; then
28872     gl_save_LIBS="$LIBS"
28873     LIBS="$LIBS $LIBMULTITHREAD"
28874     for ac_func in pthread_atfork
28875 do :
28876   ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
28877 if test "x$ac_cv_func_pthread_atfork" = x""yes; then :
28878   cat >>confdefs.h <<_ACEOF
28879 #define HAVE_PTHREAD_ATFORK 1
28880 _ACEOF
28881
28882 fi
28883 done
28884
28885     LIBS="$gl_save_LIBS"
28886   fi
28887
28888
28889
28890
28891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
28892 $as_echo_n "checking for a traditional french locale... " >&6; }
28893 if test "${gt_cv_locale_fr+set}" = set; then :
28894   $as_echo_n "(cached) " >&6
28895 else
28896
28897     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28898 /* end confdefs.h.  */
28899
28900 #include <locale.h>
28901 #include <time.h>
28902 #if HAVE_LANGINFO_CODESET
28903 # include <langinfo.h>
28904 #endif
28905 #include <stdlib.h>
28906 #include <string.h>
28907 struct tm t;
28908 char buf[16];
28909 int main () {
28910   /* Check whether the given locale name is recognized by the system.  */
28911   if (setlocale (LC_ALL, "") == NULL) return 1;
28912   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
28913      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
28914      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
28915      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
28916      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
28917      some unit tests fail.  */
28918 #if HAVE_LANGINFO_CODESET
28919   {
28920     const char *cs = nl_langinfo (CODESET);
28921     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
28922       return 1;
28923   }
28924 #endif
28925 #ifdef __CYGWIN__
28926   /* On Cygwin, avoid locale names without encoding suffix, because the
28927      locale_charset() function relies on the encoding suffix.  Note that
28928      LC_ALL is set on the command line.  */
28929   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
28930 #endif
28931   /* Check whether in the abbreviation of the second month, the second
28932      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
28933      one byte long. This excludes the UTF-8 encoding.  */
28934   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
28935   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
28936   /* Check whether the decimal separator is a comma.
28937      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
28938      are nl_langinfo(RADIXCHAR) are both ".".  */
28939   if (localeconv () ->decimal_point[0] != ',') return 1;
28940   return 0;
28941 }
28942
28943 _ACEOF
28944     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
28945   (eval $ac_link) 2>&5
28946   ac_status=$?
28947   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28948   test $ac_status = 0; } && test -s conftest$ac_exeext; then
28949       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
28950       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
28951       # configure script would override the LC_ALL setting. Likewise for
28952       # LC_CTYPE, which is also set at the beginning of the configure script.
28953       # Test for the usual locale name.
28954       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28955         gt_cv_locale_fr=fr_FR
28956       else
28957         # Test for the locale name with explicit encoding suffix.
28958         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28959           gt_cv_locale_fr=fr_FR.ISO-8859-1
28960         else
28961           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
28962           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28963             gt_cv_locale_fr=fr_FR.ISO8859-1
28964           else
28965             # Test for the HP-UX locale name.
28966             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28967               gt_cv_locale_fr=fr_FR.iso88591
28968             else
28969               # Test for the Solaris 7 locale name.
28970               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28971                 gt_cv_locale_fr=fr
28972               else
28973                 # None found.
28974                 gt_cv_locale_fr=none
28975               fi
28976             fi
28977           fi
28978         fi
28979       fi
28980     fi
28981     rm -fr conftest*
28982
28983 fi
28984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
28985 $as_echo "$gt_cv_locale_fr" >&6; }
28986   LOCALE_FR=$gt_cv_locale_fr
28987
28988
28989
28990
28991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
28992 $as_echo_n "checking for a french Unicode locale... " >&6; }
28993 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
28994   $as_echo_n "(cached) " >&6
28995 else
28996
28997     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28998 /* end confdefs.h.  */
28999
29000 #include <locale.h>
29001 #include <time.h>
29002 #if HAVE_LANGINFO_CODESET
29003 # include <langinfo.h>
29004 #endif
29005 #include <stdlib.h>
29006 #include <string.h>
29007 struct tm t;
29008 char buf[16];
29009 int main () {
29010   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
29011      imitates locale dependent behaviour by looking at the environment
29012      variables, and all locales use the UTF-8 encoding.  */
29013 #if !(defined __BEOS__ || defined __HAIKU__)
29014   /* Check whether the given locale name is recognized by the system.  */
29015   if (setlocale (LC_ALL, "") == NULL) return 1;
29016   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
29017      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
29018      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
29019      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
29020      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
29021      some unit tests fail.  */
29022 # if HAVE_LANGINFO_CODESET
29023   {
29024     const char *cs = nl_langinfo (CODESET);
29025     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
29026       return 1;
29027   }
29028 # endif
29029 # ifdef __CYGWIN__
29030   /* On Cygwin, avoid locale names without encoding suffix, because the
29031      locale_charset() function relies on the encoding suffix.  Note that
29032      LC_ALL is set on the command line.  */
29033   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
29034 # endif
29035   /* Check whether in the abbreviation of the second month, the second
29036      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
29037      two bytes long, with UTF-8 encoding.  */
29038   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
29039   if (strftime (buf, sizeof (buf), "%b", &t) < 4
29040       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
29041     return 1;
29042 #endif
29043   /* Check whether the decimal separator is a comma.
29044      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
29045      are nl_langinfo(RADIXCHAR) are both ".".  */
29046   if (localeconv () ->decimal_point[0] != ',') return 1;
29047   return 0;
29048 }
29049
29050 _ACEOF
29051     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
29052   (eval $ac_link) 2>&5
29053   ac_status=$?
29054   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29055   test $ac_status = 0; } && test -s conftest$ac_exeext; then
29056       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
29057       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
29058       # configure script would override the LC_ALL setting. Likewise for
29059       # LC_CTYPE, which is also set at the beginning of the configure script.
29060       # Test for the usual locale name.
29061       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29062         gt_cv_locale_fr_utf8=fr_FR
29063       else
29064         # Test for the locale name with explicit encoding suffix.
29065         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29066           gt_cv_locale_fr_utf8=fr_FR.UTF-8
29067         else
29068           # Test for the Solaris 7 locale name.
29069           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29070             gt_cv_locale_fr_utf8=fr.UTF-8
29071           else
29072             # None found.
29073             gt_cv_locale_fr_utf8=none
29074           fi
29075         fi
29076       fi
29077     fi
29078     rm -fr conftest*
29079
29080 fi
29081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
29082 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
29083   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
29084
29085
29086
29087
29088
29089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
29090 $as_echo_n "checking for a traditional japanese locale... " >&6; }
29091 if test "${gt_cv_locale_ja+set}" = set; then :
29092   $as_echo_n "(cached) " >&6
29093 else
29094
29095     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29096 /* end confdefs.h.  */
29097
29098 #include <locale.h>
29099 #include <time.h>
29100 #if HAVE_LANGINFO_CODESET
29101 # include <langinfo.h>
29102 #endif
29103 #include <stdlib.h>
29104 #include <string.h>
29105 struct tm t;
29106 char buf[16];
29107 int main ()
29108 {
29109   const char *p;
29110   /* Check whether the given locale name is recognized by the system.  */
29111   if (setlocale (LC_ALL, "") == NULL) return 1;
29112   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
29113      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
29114      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
29115      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
29116      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
29117      some unit tests fail.  */
29118 #if HAVE_LANGINFO_CODESET
29119   {
29120     const char *cs = nl_langinfo (CODESET);
29121     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
29122       return 1;
29123   }
29124 #endif
29125 #ifdef __CYGWIN__
29126   /* On Cygwin, avoid locale names without encoding suffix, because the
29127      locale_charset() function relies on the encoding suffix.  Note that
29128      LC_ALL is set on the command line.  */
29129   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
29130 #endif
29131   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
29132      on Cygwin 1.5.x.  */
29133   if (MB_CUR_MAX == 1)
29134     return 1;
29135   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
29136      This excludes the UTF-8 encoding.  */
29137   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
29138   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
29139   for (p = buf; *p != '\0'; p++)
29140     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
29141       return 1;
29142   return 0;
29143 }
29144
29145 _ACEOF
29146     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
29147   (eval $ac_link) 2>&5
29148   ac_status=$?
29149   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29150   test $ac_status = 0; } && test -s conftest$ac_exeext; then
29151       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
29152       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
29153       # configure script would override the LC_ALL setting. Likewise for
29154       # LC_CTYPE, which is also set at the beginning of the configure script.
29155       # Test for the AIX locale name.
29156       if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29157         gt_cv_locale_ja=ja_JP
29158       else
29159         # Test for the locale name with explicit encoding suffix.
29160         if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29161           gt_cv_locale_ja=ja_JP.EUC-JP
29162         else
29163           # Test for the HP-UX, OSF/1, NetBSD locale name.
29164           if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29165             gt_cv_locale_ja=ja_JP.eucJP
29166           else
29167             # Test for the IRIX, FreeBSD locale name.
29168             if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29169               gt_cv_locale_ja=ja_JP.EUC
29170             else
29171               # Test for the Solaris 7 locale name.
29172               if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29173                 gt_cv_locale_ja=ja
29174               else
29175                 # Special test for NetBSD 1.6.
29176                 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
29177                   gt_cv_locale_ja=ja_JP.eucJP
29178                 else
29179                   # None found.
29180                   gt_cv_locale_ja=none
29181                 fi
29182               fi
29183             fi
29184           fi
29185         fi
29186       fi
29187     fi
29188     rm -fr conftest*
29189
29190 fi
29191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
29192 $as_echo "$gt_cv_locale_ja" >&6; }
29193   LOCALE_JA=$gt_cv_locale_ja
29194
29195
29196
29197
29198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a turkish Unicode locale" >&5
29199 $as_echo_n "checking for a turkish Unicode locale... " >&6; }
29200 if test "${gt_cv_locale_tr_utf8+set}" = set; then :
29201   $as_echo_n "(cached) " >&6
29202 else
29203
29204     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29205 /* end confdefs.h.  */
29206
29207 #include <locale.h>
29208 #include <time.h>
29209 #if HAVE_LANGINFO_CODESET
29210 # include <langinfo.h>
29211 #endif
29212 #include <stdlib.h>
29213 #include <string.h>
29214 struct tm t;
29215 char buf[16];
29216 int main () {
29217   /* On BeOS, locales are not implemented in libc.  Rather, libintl
29218      imitates locale dependent behaviour by looking at the environment
29219      variables, and all locales use the UTF-8 encoding.  But BeOS does not
29220      implement the Turkish upper-/lowercase mappings.  Therefore, let this
29221      program return 1 on BeOS.  */
29222   /* Check whether the given locale name is recognized by the system.  */
29223   if (setlocale (LC_ALL, "") == NULL) return 1;
29224   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
29225      On MacOS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET)
29226      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
29227      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
29228      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
29229      some unit tests fail.  */
29230 #if HAVE_LANGINFO_CODESET
29231   {
29232     const char *cs = nl_langinfo (CODESET);
29233     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
29234       return 1;
29235   }
29236 #endif
29237 #ifdef __CYGWIN__
29238   /* On Cygwin, avoid locale names without encoding suffix, because the
29239      locale_charset() function relies on the encoding suffix.  Note that
29240      LC_ALL is set on the command line.  */
29241   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
29242 #endif
29243   /* Check whether in the abbreviation of the eighth month, the second
29244      character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is
29245      two bytes long, with UTF-8 encoding.  */
29246   t.tm_year = 1992 - 1900; t.tm_mon = 8 - 1; t.tm_mday = 19;
29247   if (strftime (buf, sizeof (buf), "%b", &t) < 4
29248       || buf[1] != (char) 0xc4 || buf[2] != (char) 0x9f)
29249     return 1;
29250   /* Check whether the upper-/lowercase mappings are as expected for
29251      Turkish.  */
29252   if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i'
29253       || towupper(0x0131) != 'I' || towlower ('I') != 0x0131)
29254     return 1;
29255   return 0;
29256 }
29257
29258 _ACEOF
29259     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
29260   (eval $ac_link) 2>&5
29261   ac_status=$?
29262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29263   test $ac_status = 0; } && test -s conftest$ac_exeext; then
29264       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
29265       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
29266       # configure script would override the LC_ALL setting. Likewise for
29267       # LC_CTYPE, which is also set at the beginning of the configure script.
29268       # Test for the usual locale name.
29269       if (LC_ALL=tr_TR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29270         gt_cv_locale_tr_utf8=tr_TR
29271       else
29272         # Test for the locale name with explicit encoding suffix.
29273         if (LC_ALL=tr_TR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29274           gt_cv_locale_tr_utf8=tr_TR.UTF-8
29275         else
29276           # Test for the Solaris 7 locale name.
29277           if (LC_ALL=tr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29278             gt_cv_locale_tr_utf8=tr.UTF-8
29279           else
29280             # None found.
29281             gt_cv_locale_tr_utf8=none
29282           fi
29283         fi
29284       fi
29285     else
29286       gt_cv_locale_tr_utf8=none
29287     fi
29288     rm -fr conftest*
29289
29290 fi
29291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_tr_utf8" >&5
29292 $as_echo "$gt_cv_locale_tr_utf8" >&6; }
29293   LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8
29294
29295
29296
29297
29298
29299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
29300 $as_echo_n "checking for a transitional chinese locale... " >&6; }
29301 if test "${gt_cv_locale_zh_CN+set}" = set; then :
29302   $as_echo_n "(cached) " >&6
29303 else
29304
29305     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29306 /* end confdefs.h.  */
29307
29308 #include <locale.h>
29309 #include <stdlib.h>
29310 #include <time.h>
29311 #if HAVE_LANGINFO_CODESET
29312 # include <langinfo.h>
29313 #endif
29314 #include <stdlib.h>
29315 #include <string.h>
29316 struct tm t;
29317 char buf[16];
29318 int main ()
29319 {
29320   const char *p;
29321   /* Check whether the given locale name is recognized by the system.  */
29322   if (setlocale (LC_ALL, "") == NULL) return 1;
29323   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
29324      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
29325      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
29326      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
29327      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
29328      some unit tests fail.  */
29329 #if HAVE_LANGINFO_CODESET
29330   {
29331     const char *cs = nl_langinfo (CODESET);
29332     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
29333       return 1;
29334   }
29335 #endif
29336 #ifdef __CYGWIN__
29337   /* On Cygwin, avoid locale names without encoding suffix, because the
29338      locale_charset() function relies on the encoding suffix.  Note that
29339      LC_ALL is set on the command line.  */
29340   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
29341 #endif
29342   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
29343      This excludes the UTF-8 encoding.  */
29344   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
29345   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
29346   for (p = buf; *p != '\0'; p++)
29347     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
29348       return 1;
29349   /* Check whether a typical GB18030 multibyte sequence is recognized as a
29350      single wide character.  This excludes the GB2312 and GBK encodings.  */
29351   if (mblen ("\203\062\332\066", 5) != 4)
29352     return 1;
29353   return 0;
29354 }
29355
29356 _ACEOF
29357     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
29358   (eval $ac_link) 2>&5
29359   ac_status=$?
29360   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29361   test $ac_status = 0; } && test -s conftest$ac_exeext; then
29362       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
29363       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
29364       # configure script would override the LC_ALL setting. Likewise for
29365       # LC_CTYPE, which is also set at the beginning of the configure script.
29366       # Test for the locale name without encoding suffix.
29367       if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29368         gt_cv_locale_zh_CN=zh_CN
29369       else
29370         # Test for the locale name with explicit encoding suffix.
29371         if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29372           gt_cv_locale_zh_CN=zh_CN.GB18030
29373         else
29374           # None found.
29375           gt_cv_locale_zh_CN=none
29376         fi
29377       fi
29378     else
29379       # If there was a link error, due to mblen(), the system is so old that
29380       # it certainly doesn't have a chinese locale.
29381       gt_cv_locale_zh_CN=none
29382     fi
29383     rm -fr conftest*
29384
29385 fi
29386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
29387 $as_echo "$gt_cv_locale_zh_CN" >&6; }
29388   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
29389
29390
29391
29392
29393
29394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
29395 $as_echo_n "checking for a traditional french locale... " >&6; }
29396 if test "${gt_cv_locale_fr+set}" = set; then :
29397   $as_echo_n "(cached) " >&6
29398 else
29399
29400     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29401 /* end confdefs.h.  */
29402
29403 #include <locale.h>
29404 #include <time.h>
29405 #if HAVE_LANGINFO_CODESET
29406 # include <langinfo.h>
29407 #endif
29408 #include <stdlib.h>
29409 #include <string.h>
29410 struct tm t;
29411 char buf[16];
29412 int main () {
29413   /* Check whether the given locale name is recognized by the system.  */
29414   if (setlocale (LC_ALL, "") == NULL) return 1;
29415   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
29416      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
29417      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
29418      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
29419      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
29420      some unit tests fail.  */
29421 #if HAVE_LANGINFO_CODESET
29422   {
29423     const char *cs = nl_langinfo (CODESET);
29424     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
29425       return 1;
29426   }
29427 #endif
29428 #ifdef __CYGWIN__
29429   /* On Cygwin, avoid locale names without encoding suffix, because the
29430      locale_charset() function relies on the encoding suffix.  Note that
29431      LC_ALL is set on the command line.  */
29432   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
29433 #endif
29434   /* Check whether in the abbreviation of the second month, the second
29435      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
29436      one byte long. This excludes the UTF-8 encoding.  */
29437   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
29438   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
29439   /* Check whether the decimal separator is a comma.
29440      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
29441      are nl_langinfo(RADIXCHAR) are both ".".  */
29442   if (localeconv () ->decimal_point[0] != ',') return 1;
29443   return 0;
29444 }
29445
29446 _ACEOF
29447     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
29448   (eval $ac_link) 2>&5
29449   ac_status=$?
29450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29451   test $ac_status = 0; } && test -s conftest$ac_exeext; then
29452       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
29453       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
29454       # configure script would override the LC_ALL setting. Likewise for
29455       # LC_CTYPE, which is also set at the beginning of the configure script.
29456       # Test for the usual locale name.
29457       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29458         gt_cv_locale_fr=fr_FR
29459       else
29460         # Test for the locale name with explicit encoding suffix.
29461         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29462           gt_cv_locale_fr=fr_FR.ISO-8859-1
29463         else
29464           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
29465           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29466             gt_cv_locale_fr=fr_FR.ISO8859-1
29467           else
29468             # Test for the HP-UX locale name.
29469             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29470               gt_cv_locale_fr=fr_FR.iso88591
29471             else
29472               # Test for the Solaris 7 locale name.
29473               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29474                 gt_cv_locale_fr=fr
29475               else
29476                 # None found.
29477                 gt_cv_locale_fr=none
29478               fi
29479             fi
29480           fi
29481         fi
29482       fi
29483     fi
29484     rm -fr conftest*
29485
29486 fi
29487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
29488 $as_echo "$gt_cv_locale_fr" >&6; }
29489   LOCALE_FR=$gt_cv_locale_fr
29490
29491
29492
29493
29494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
29495 $as_echo_n "checking for a french Unicode locale... " >&6; }
29496 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
29497   $as_echo_n "(cached) " >&6
29498 else
29499
29500     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29501 /* end confdefs.h.  */
29502
29503 #include <locale.h>
29504 #include <time.h>
29505 #if HAVE_LANGINFO_CODESET
29506 # include <langinfo.h>
29507 #endif
29508 #include <stdlib.h>
29509 #include <string.h>
29510 struct tm t;
29511 char buf[16];
29512 int main () {
29513   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
29514      imitates locale dependent behaviour by looking at the environment
29515      variables, and all locales use the UTF-8 encoding.  */
29516 #if !(defined __BEOS__ || defined __HAIKU__)
29517   /* Check whether the given locale name is recognized by the system.  */
29518   if (setlocale (LC_ALL, "") == NULL) return 1;
29519   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
29520      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
29521      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
29522      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
29523      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
29524      some unit tests fail.  */
29525 # if HAVE_LANGINFO_CODESET
29526   {
29527     const char *cs = nl_langinfo (CODESET);
29528     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
29529       return 1;
29530   }
29531 # endif
29532 # ifdef __CYGWIN__
29533   /* On Cygwin, avoid locale names without encoding suffix, because the
29534      locale_charset() function relies on the encoding suffix.  Note that
29535      LC_ALL is set on the command line.  */
29536   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
29537 # endif
29538   /* Check whether in the abbreviation of the second month, the second
29539      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
29540      two bytes long, with UTF-8 encoding.  */
29541   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
29542   if (strftime (buf, sizeof (buf), "%b", &t) < 4
29543       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
29544     return 1;
29545 #endif
29546   /* Check whether the decimal separator is a comma.
29547      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
29548      are nl_langinfo(RADIXCHAR) are both ".".  */
29549   if (localeconv () ->decimal_point[0] != ',') return 1;
29550   return 0;
29551 }
29552
29553 _ACEOF
29554     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
29555   (eval $ac_link) 2>&5
29556   ac_status=$?
29557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29558   test $ac_status = 0; } && test -s conftest$ac_exeext; then
29559       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
29560       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
29561       # configure script would override the LC_ALL setting. Likewise for
29562       # LC_CTYPE, which is also set at the beginning of the configure script.
29563       # Test for the usual locale name.
29564       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29565         gt_cv_locale_fr_utf8=fr_FR
29566       else
29567         # Test for the locale name with explicit encoding suffix.
29568         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29569           gt_cv_locale_fr_utf8=fr_FR.UTF-8
29570         else
29571           # Test for the Solaris 7 locale name.
29572           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29573             gt_cv_locale_fr_utf8=fr.UTF-8
29574           else
29575             # None found.
29576             gt_cv_locale_fr_utf8=none
29577           fi
29578         fi
29579       fi
29580     fi
29581     rm -fr conftest*
29582
29583 fi
29584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
29585 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
29586   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
29587
29588
29589
29590
29591
29592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
29593 $as_echo_n "checking for a traditional french locale... " >&6; }
29594 if test "${gt_cv_locale_fr+set}" = set; then :
29595   $as_echo_n "(cached) " >&6
29596 else
29597
29598     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29599 /* end confdefs.h.  */
29600
29601 #include <locale.h>
29602 #include <time.h>
29603 #if HAVE_LANGINFO_CODESET
29604 # include <langinfo.h>
29605 #endif
29606 #include <stdlib.h>
29607 #include <string.h>
29608 struct tm t;
29609 char buf[16];
29610 int main () {
29611   /* Check whether the given locale name is recognized by the system.  */
29612   if (setlocale (LC_ALL, "") == NULL) return 1;
29613   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
29614      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
29615      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
29616      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
29617      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
29618      some unit tests fail.  */
29619 #if HAVE_LANGINFO_CODESET
29620   {
29621     const char *cs = nl_langinfo (CODESET);
29622     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
29623       return 1;
29624   }
29625 #endif
29626 #ifdef __CYGWIN__
29627   /* On Cygwin, avoid locale names without encoding suffix, because the
29628      locale_charset() function relies on the encoding suffix.  Note that
29629      LC_ALL is set on the command line.  */
29630   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
29631 #endif
29632   /* Check whether in the abbreviation of the second month, the second
29633      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
29634      one byte long. This excludes the UTF-8 encoding.  */
29635   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
29636   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
29637   /* Check whether the decimal separator is a comma.
29638      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
29639      are nl_langinfo(RADIXCHAR) are both ".".  */
29640   if (localeconv () ->decimal_point[0] != ',') return 1;
29641   return 0;
29642 }
29643
29644 _ACEOF
29645     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
29646   (eval $ac_link) 2>&5
29647   ac_status=$?
29648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29649   test $ac_status = 0; } && test -s conftest$ac_exeext; then
29650       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
29651       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
29652       # configure script would override the LC_ALL setting. Likewise for
29653       # LC_CTYPE, which is also set at the beginning of the configure script.
29654       # Test for the usual locale name.
29655       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29656         gt_cv_locale_fr=fr_FR
29657       else
29658         # Test for the locale name with explicit encoding suffix.
29659         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29660           gt_cv_locale_fr=fr_FR.ISO-8859-1
29661         else
29662           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
29663           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29664             gt_cv_locale_fr=fr_FR.ISO8859-1
29665           else
29666             # Test for the HP-UX locale name.
29667             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29668               gt_cv_locale_fr=fr_FR.iso88591
29669             else
29670               # Test for the Solaris 7 locale name.
29671               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29672                 gt_cv_locale_fr=fr
29673               else
29674                 # None found.
29675                 gt_cv_locale_fr=none
29676               fi
29677             fi
29678           fi
29679         fi
29680       fi
29681     fi
29682     rm -fr conftest*
29683
29684 fi
29685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
29686 $as_echo "$gt_cv_locale_fr" >&6; }
29687   LOCALE_FR=$gt_cv_locale_fr
29688
29689
29690
29691
29692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
29693 $as_echo_n "checking for a french Unicode locale... " >&6; }
29694 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
29695   $as_echo_n "(cached) " >&6
29696 else
29697
29698     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29699 /* end confdefs.h.  */
29700
29701 #include <locale.h>
29702 #include <time.h>
29703 #if HAVE_LANGINFO_CODESET
29704 # include <langinfo.h>
29705 #endif
29706 #include <stdlib.h>
29707 #include <string.h>
29708 struct tm t;
29709 char buf[16];
29710 int main () {
29711   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
29712      imitates locale dependent behaviour by looking at the environment
29713      variables, and all locales use the UTF-8 encoding.  */
29714 #if !(defined __BEOS__ || defined __HAIKU__)
29715   /* Check whether the given locale name is recognized by the system.  */
29716   if (setlocale (LC_ALL, "") == NULL) return 1;
29717   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
29718      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
29719      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
29720      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
29721      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
29722      some unit tests fail.  */
29723 # if HAVE_LANGINFO_CODESET
29724   {
29725     const char *cs = nl_langinfo (CODESET);
29726     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
29727       return 1;
29728   }
29729 # endif
29730 # ifdef __CYGWIN__
29731   /* On Cygwin, avoid locale names without encoding suffix, because the
29732      locale_charset() function relies on the encoding suffix.  Note that
29733      LC_ALL is set on the command line.  */
29734   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
29735 # endif
29736   /* Check whether in the abbreviation of the second month, the second
29737      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
29738      two bytes long, with UTF-8 encoding.  */
29739   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
29740   if (strftime (buf, sizeof (buf), "%b", &t) < 4
29741       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
29742     return 1;
29743 #endif
29744   /* Check whether the decimal separator is a comma.
29745      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
29746      are nl_langinfo(RADIXCHAR) are both ".".  */
29747   if (localeconv () ->decimal_point[0] != ',') return 1;
29748   return 0;
29749 }
29750
29751 _ACEOF
29752     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
29753   (eval $ac_link) 2>&5
29754   ac_status=$?
29755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29756   test $ac_status = 0; } && test -s conftest$ac_exeext; then
29757       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
29758       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
29759       # configure script would override the LC_ALL setting. Likewise for
29760       # LC_CTYPE, which is also set at the beginning of the configure script.
29761       # Test for the usual locale name.
29762       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29763         gt_cv_locale_fr_utf8=fr_FR
29764       else
29765         # Test for the locale name with explicit encoding suffix.
29766         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29767           gt_cv_locale_fr_utf8=fr_FR.UTF-8
29768         else
29769           # Test for the Solaris 7 locale name.
29770           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29771             gt_cv_locale_fr_utf8=fr.UTF-8
29772           else
29773             # None found.
29774             gt_cv_locale_fr_utf8=none
29775           fi
29776         fi
29777       fi
29778     fi
29779     rm -fr conftest*
29780
29781 fi
29782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
29783 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
29784   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
29785
29786
29787
29788
29789
29790
29791
29792
29793
29794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
29795 $as_echo_n "checking for a traditional french locale... " >&6; }
29796 if test "${gt_cv_locale_fr+set}" = set; then :
29797   $as_echo_n "(cached) " >&6
29798 else
29799
29800     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29801 /* end confdefs.h.  */
29802
29803 #include <locale.h>
29804 #include <time.h>
29805 #if HAVE_LANGINFO_CODESET
29806 # include <langinfo.h>
29807 #endif
29808 #include <stdlib.h>
29809 #include <string.h>
29810 struct tm t;
29811 char buf[16];
29812 int main () {
29813   /* Check whether the given locale name is recognized by the system.  */
29814   if (setlocale (LC_ALL, "") == NULL) return 1;
29815   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
29816      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
29817      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
29818      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
29819      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
29820      some unit tests fail.  */
29821 #if HAVE_LANGINFO_CODESET
29822   {
29823     const char *cs = nl_langinfo (CODESET);
29824     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
29825       return 1;
29826   }
29827 #endif
29828 #ifdef __CYGWIN__
29829   /* On Cygwin, avoid locale names without encoding suffix, because the
29830      locale_charset() function relies on the encoding suffix.  Note that
29831      LC_ALL is set on the command line.  */
29832   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
29833 #endif
29834   /* Check whether in the abbreviation of the second month, the second
29835      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
29836      one byte long. This excludes the UTF-8 encoding.  */
29837   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
29838   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
29839   /* Check whether the decimal separator is a comma.
29840      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
29841      are nl_langinfo(RADIXCHAR) are both ".".  */
29842   if (localeconv () ->decimal_point[0] != ',') return 1;
29843   return 0;
29844 }
29845
29846 _ACEOF
29847     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
29848   (eval $ac_link) 2>&5
29849   ac_status=$?
29850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29851   test $ac_status = 0; } && test -s conftest$ac_exeext; then
29852       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
29853       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
29854       # configure script would override the LC_ALL setting. Likewise for
29855       # LC_CTYPE, which is also set at the beginning of the configure script.
29856       # Test for the usual locale name.
29857       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29858         gt_cv_locale_fr=fr_FR
29859       else
29860         # Test for the locale name with explicit encoding suffix.
29861         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29862           gt_cv_locale_fr=fr_FR.ISO-8859-1
29863         else
29864           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
29865           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29866             gt_cv_locale_fr=fr_FR.ISO8859-1
29867           else
29868             # Test for the HP-UX locale name.
29869             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29870               gt_cv_locale_fr=fr_FR.iso88591
29871             else
29872               # Test for the Solaris 7 locale name.
29873               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29874                 gt_cv_locale_fr=fr
29875               else
29876                 # None found.
29877                 gt_cv_locale_fr=none
29878               fi
29879             fi
29880           fi
29881         fi
29882       fi
29883     fi
29884     rm -fr conftest*
29885
29886 fi
29887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
29888 $as_echo "$gt_cv_locale_fr" >&6; }
29889   LOCALE_FR=$gt_cv_locale_fr
29890
29891
29892
29893
29894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
29895 $as_echo_n "checking for a french Unicode locale... " >&6; }
29896 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
29897   $as_echo_n "(cached) " >&6
29898 else
29899
29900     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29901 /* end confdefs.h.  */
29902
29903 #include <locale.h>
29904 #include <time.h>
29905 #if HAVE_LANGINFO_CODESET
29906 # include <langinfo.h>
29907 #endif
29908 #include <stdlib.h>
29909 #include <string.h>
29910 struct tm t;
29911 char buf[16];
29912 int main () {
29913   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
29914      imitates locale dependent behaviour by looking at the environment
29915      variables, and all locales use the UTF-8 encoding.  */
29916 #if !(defined __BEOS__ || defined __HAIKU__)
29917   /* Check whether the given locale name is recognized by the system.  */
29918   if (setlocale (LC_ALL, "") == NULL) return 1;
29919   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
29920      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
29921      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
29922      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
29923      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
29924      some unit tests fail.  */
29925 # if HAVE_LANGINFO_CODESET
29926   {
29927     const char *cs = nl_langinfo (CODESET);
29928     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
29929       return 1;
29930   }
29931 # endif
29932 # ifdef __CYGWIN__
29933   /* On Cygwin, avoid locale names without encoding suffix, because the
29934      locale_charset() function relies on the encoding suffix.  Note that
29935      LC_ALL is set on the command line.  */
29936   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
29937 # endif
29938   /* Check whether in the abbreviation of the second month, the second
29939      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
29940      two bytes long, with UTF-8 encoding.  */
29941   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
29942   if (strftime (buf, sizeof (buf), "%b", &t) < 4
29943       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
29944     return 1;
29945 #endif
29946   /* Check whether the decimal separator is a comma.
29947      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
29948      are nl_langinfo(RADIXCHAR) are both ".".  */
29949   if (localeconv () ->decimal_point[0] != ',') return 1;
29950   return 0;
29951 }
29952
29953 _ACEOF
29954     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
29955   (eval $ac_link) 2>&5
29956   ac_status=$?
29957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29958   test $ac_status = 0; } && test -s conftest$ac_exeext; then
29959       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
29960       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
29961       # configure script would override the LC_ALL setting. Likewise for
29962       # LC_CTYPE, which is also set at the beginning of the configure script.
29963       # Test for the usual locale name.
29964       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29965         gt_cv_locale_fr_utf8=fr_FR
29966       else
29967         # Test for the locale name with explicit encoding suffix.
29968         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29969           gt_cv_locale_fr_utf8=fr_FR.UTF-8
29970         else
29971           # Test for the Solaris 7 locale name.
29972           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29973             gt_cv_locale_fr_utf8=fr.UTF-8
29974           else
29975             # None found.
29976             gt_cv_locale_fr_utf8=none
29977           fi
29978         fi
29979       fi
29980     fi
29981     rm -fr conftest*
29982
29983 fi
29984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
29985 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
29986   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
29987
29988
29989
29990
29991
29992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
29993 $as_echo_n "checking for a traditional french locale... " >&6; }
29994 if test "${gt_cv_locale_fr+set}" = set; then :
29995   $as_echo_n "(cached) " >&6
29996 else
29997
29998     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29999 /* end confdefs.h.  */
30000
30001 #include <locale.h>
30002 #include <time.h>
30003 #if HAVE_LANGINFO_CODESET
30004 # include <langinfo.h>
30005 #endif
30006 #include <stdlib.h>
30007 #include <string.h>
30008 struct tm t;
30009 char buf[16];
30010 int main () {
30011   /* Check whether the given locale name is recognized by the system.  */
30012   if (setlocale (LC_ALL, "") == NULL) return 1;
30013   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
30014      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
30015      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
30016      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
30017      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
30018      some unit tests fail.  */
30019 #if HAVE_LANGINFO_CODESET
30020   {
30021     const char *cs = nl_langinfo (CODESET);
30022     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
30023       return 1;
30024   }
30025 #endif
30026 #ifdef __CYGWIN__
30027   /* On Cygwin, avoid locale names without encoding suffix, because the
30028      locale_charset() function relies on the encoding suffix.  Note that
30029      LC_ALL is set on the command line.  */
30030   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
30031 #endif
30032   /* Check whether in the abbreviation of the second month, the second
30033      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
30034      one byte long. This excludes the UTF-8 encoding.  */
30035   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
30036   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
30037   /* Check whether the decimal separator is a comma.
30038      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
30039      are nl_langinfo(RADIXCHAR) are both ".".  */
30040   if (localeconv () ->decimal_point[0] != ',') return 1;
30041   return 0;
30042 }
30043
30044 _ACEOF
30045     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30046   (eval $ac_link) 2>&5
30047   ac_status=$?
30048   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30049   test $ac_status = 0; } && test -s conftest$ac_exeext; then
30050       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
30051       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
30052       # configure script would override the LC_ALL setting. Likewise for
30053       # LC_CTYPE, which is also set at the beginning of the configure script.
30054       # Test for the usual locale name.
30055       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30056         gt_cv_locale_fr=fr_FR
30057       else
30058         # Test for the locale name with explicit encoding suffix.
30059         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30060           gt_cv_locale_fr=fr_FR.ISO-8859-1
30061         else
30062           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
30063           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30064             gt_cv_locale_fr=fr_FR.ISO8859-1
30065           else
30066             # Test for the HP-UX locale name.
30067             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30068               gt_cv_locale_fr=fr_FR.iso88591
30069             else
30070               # Test for the Solaris 7 locale name.
30071               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30072                 gt_cv_locale_fr=fr
30073               else
30074                 # None found.
30075                 gt_cv_locale_fr=none
30076               fi
30077             fi
30078           fi
30079         fi
30080       fi
30081     fi
30082     rm -fr conftest*
30083
30084 fi
30085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
30086 $as_echo "$gt_cv_locale_fr" >&6; }
30087   LOCALE_FR=$gt_cv_locale_fr
30088
30089
30090
30091
30092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
30093 $as_echo_n "checking for a french Unicode locale... " >&6; }
30094 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
30095   $as_echo_n "(cached) " >&6
30096 else
30097
30098     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30099 /* end confdefs.h.  */
30100
30101 #include <locale.h>
30102 #include <time.h>
30103 #if HAVE_LANGINFO_CODESET
30104 # include <langinfo.h>
30105 #endif
30106 #include <stdlib.h>
30107 #include <string.h>
30108 struct tm t;
30109 char buf[16];
30110 int main () {
30111   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
30112      imitates locale dependent behaviour by looking at the environment
30113      variables, and all locales use the UTF-8 encoding.  */
30114 #if !(defined __BEOS__ || defined __HAIKU__)
30115   /* Check whether the given locale name is recognized by the system.  */
30116   if (setlocale (LC_ALL, "") == NULL) return 1;
30117   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
30118      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
30119      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
30120      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
30121      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
30122      some unit tests fail.  */
30123 # if HAVE_LANGINFO_CODESET
30124   {
30125     const char *cs = nl_langinfo (CODESET);
30126     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
30127       return 1;
30128   }
30129 # endif
30130 # ifdef __CYGWIN__
30131   /* On Cygwin, avoid locale names without encoding suffix, because the
30132      locale_charset() function relies on the encoding suffix.  Note that
30133      LC_ALL is set on the command line.  */
30134   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
30135 # endif
30136   /* Check whether in the abbreviation of the second month, the second
30137      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
30138      two bytes long, with UTF-8 encoding.  */
30139   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
30140   if (strftime (buf, sizeof (buf), "%b", &t) < 4
30141       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
30142     return 1;
30143 #endif
30144   /* Check whether the decimal separator is a comma.
30145      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
30146      are nl_langinfo(RADIXCHAR) are both ".".  */
30147   if (localeconv () ->decimal_point[0] != ',') return 1;
30148   return 0;
30149 }
30150
30151 _ACEOF
30152     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30153   (eval $ac_link) 2>&5
30154   ac_status=$?
30155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30156   test $ac_status = 0; } && test -s conftest$ac_exeext; then
30157       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
30158       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
30159       # configure script would override the LC_ALL setting. Likewise for
30160       # LC_CTYPE, which is also set at the beginning of the configure script.
30161       # Test for the usual locale name.
30162       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30163         gt_cv_locale_fr_utf8=fr_FR
30164       else
30165         # Test for the locale name with explicit encoding suffix.
30166         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30167           gt_cv_locale_fr_utf8=fr_FR.UTF-8
30168         else
30169           # Test for the Solaris 7 locale name.
30170           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30171             gt_cv_locale_fr_utf8=fr.UTF-8
30172           else
30173             # None found.
30174             gt_cv_locale_fr_utf8=none
30175           fi
30176         fi
30177       fi
30178     fi
30179     rm -fr conftest*
30180
30181 fi
30182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
30183 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
30184   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
30185
30186
30187
30188
30189
30190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
30191 $as_echo_n "checking for a traditional french locale... " >&6; }
30192 if test "${gt_cv_locale_fr+set}" = set; then :
30193   $as_echo_n "(cached) " >&6
30194 else
30195
30196     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30197 /* end confdefs.h.  */
30198
30199 #include <locale.h>
30200 #include <time.h>
30201 #if HAVE_LANGINFO_CODESET
30202 # include <langinfo.h>
30203 #endif
30204 #include <stdlib.h>
30205 #include <string.h>
30206 struct tm t;
30207 char buf[16];
30208 int main () {
30209   /* Check whether the given locale name is recognized by the system.  */
30210   if (setlocale (LC_ALL, "") == NULL) return 1;
30211   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
30212      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
30213      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
30214      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
30215      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
30216      some unit tests fail.  */
30217 #if HAVE_LANGINFO_CODESET
30218   {
30219     const char *cs = nl_langinfo (CODESET);
30220     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
30221       return 1;
30222   }
30223 #endif
30224 #ifdef __CYGWIN__
30225   /* On Cygwin, avoid locale names without encoding suffix, because the
30226      locale_charset() function relies on the encoding suffix.  Note that
30227      LC_ALL is set on the command line.  */
30228   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
30229 #endif
30230   /* Check whether in the abbreviation of the second month, the second
30231      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
30232      one byte long. This excludes the UTF-8 encoding.  */
30233   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
30234   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
30235   /* Check whether the decimal separator is a comma.
30236      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
30237      are nl_langinfo(RADIXCHAR) are both ".".  */
30238   if (localeconv () ->decimal_point[0] != ',') return 1;
30239   return 0;
30240 }
30241
30242 _ACEOF
30243     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30244   (eval $ac_link) 2>&5
30245   ac_status=$?
30246   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30247   test $ac_status = 0; } && test -s conftest$ac_exeext; then
30248       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
30249       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
30250       # configure script would override the LC_ALL setting. Likewise for
30251       # LC_CTYPE, which is also set at the beginning of the configure script.
30252       # Test for the usual locale name.
30253       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30254         gt_cv_locale_fr=fr_FR
30255       else
30256         # Test for the locale name with explicit encoding suffix.
30257         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30258           gt_cv_locale_fr=fr_FR.ISO-8859-1
30259         else
30260           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
30261           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30262             gt_cv_locale_fr=fr_FR.ISO8859-1
30263           else
30264             # Test for the HP-UX locale name.
30265             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30266               gt_cv_locale_fr=fr_FR.iso88591
30267             else
30268               # Test for the Solaris 7 locale name.
30269               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30270                 gt_cv_locale_fr=fr
30271               else
30272                 # None found.
30273                 gt_cv_locale_fr=none
30274               fi
30275             fi
30276           fi
30277         fi
30278       fi
30279     fi
30280     rm -fr conftest*
30281
30282 fi
30283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
30284 $as_echo "$gt_cv_locale_fr" >&6; }
30285   LOCALE_FR=$gt_cv_locale_fr
30286
30287
30288
30289
30290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
30291 $as_echo_n "checking for a french Unicode locale... " >&6; }
30292 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
30293   $as_echo_n "(cached) " >&6
30294 else
30295
30296     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30297 /* end confdefs.h.  */
30298
30299 #include <locale.h>
30300 #include <time.h>
30301 #if HAVE_LANGINFO_CODESET
30302 # include <langinfo.h>
30303 #endif
30304 #include <stdlib.h>
30305 #include <string.h>
30306 struct tm t;
30307 char buf[16];
30308 int main () {
30309   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
30310      imitates locale dependent behaviour by looking at the environment
30311      variables, and all locales use the UTF-8 encoding.  */
30312 #if !(defined __BEOS__ || defined __HAIKU__)
30313   /* Check whether the given locale name is recognized by the system.  */
30314   if (setlocale (LC_ALL, "") == NULL) return 1;
30315   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
30316      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
30317      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
30318      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
30319      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
30320      some unit tests fail.  */
30321 # if HAVE_LANGINFO_CODESET
30322   {
30323     const char *cs = nl_langinfo (CODESET);
30324     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
30325       return 1;
30326   }
30327 # endif
30328 # ifdef __CYGWIN__
30329   /* On Cygwin, avoid locale names without encoding suffix, because the
30330      locale_charset() function relies on the encoding suffix.  Note that
30331      LC_ALL is set on the command line.  */
30332   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
30333 # endif
30334   /* Check whether in the abbreviation of the second month, the second
30335      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
30336      two bytes long, with UTF-8 encoding.  */
30337   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
30338   if (strftime (buf, sizeof (buf), "%b", &t) < 4
30339       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
30340     return 1;
30341 #endif
30342   /* Check whether the decimal separator is a comma.
30343      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
30344      are nl_langinfo(RADIXCHAR) are both ".".  */
30345   if (localeconv () ->decimal_point[0] != ',') return 1;
30346   return 0;
30347 }
30348
30349 _ACEOF
30350     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30351   (eval $ac_link) 2>&5
30352   ac_status=$?
30353   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30354   test $ac_status = 0; } && test -s conftest$ac_exeext; then
30355       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
30356       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
30357       # configure script would override the LC_ALL setting. Likewise for
30358       # LC_CTYPE, which is also set at the beginning of the configure script.
30359       # Test for the usual locale name.
30360       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30361         gt_cv_locale_fr_utf8=fr_FR
30362       else
30363         # Test for the locale name with explicit encoding suffix.
30364         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30365           gt_cv_locale_fr_utf8=fr_FR.UTF-8
30366         else
30367           # Test for the Solaris 7 locale name.
30368           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30369             gt_cv_locale_fr_utf8=fr.UTF-8
30370           else
30371             # None found.
30372             gt_cv_locale_fr_utf8=none
30373           fi
30374         fi
30375       fi
30376     fi
30377     rm -fr conftest*
30378
30379 fi
30380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
30381 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
30382   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
30383
30384
30385
30386
30387
30388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
30389 $as_echo_n "checking for a traditional french locale... " >&6; }
30390 if test "${gt_cv_locale_fr+set}" = set; then :
30391   $as_echo_n "(cached) " >&6
30392 else
30393
30394     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30395 /* end confdefs.h.  */
30396
30397 #include <locale.h>
30398 #include <time.h>
30399 #if HAVE_LANGINFO_CODESET
30400 # include <langinfo.h>
30401 #endif
30402 #include <stdlib.h>
30403 #include <string.h>
30404 struct tm t;
30405 char buf[16];
30406 int main () {
30407   /* Check whether the given locale name is recognized by the system.  */
30408   if (setlocale (LC_ALL, "") == NULL) return 1;
30409   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
30410      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
30411      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
30412      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
30413      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
30414      some unit tests fail.  */
30415 #if HAVE_LANGINFO_CODESET
30416   {
30417     const char *cs = nl_langinfo (CODESET);
30418     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
30419       return 1;
30420   }
30421 #endif
30422 #ifdef __CYGWIN__
30423   /* On Cygwin, avoid locale names without encoding suffix, because the
30424      locale_charset() function relies on the encoding suffix.  Note that
30425      LC_ALL is set on the command line.  */
30426   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
30427 #endif
30428   /* Check whether in the abbreviation of the second month, the second
30429      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
30430      one byte long. This excludes the UTF-8 encoding.  */
30431   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
30432   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
30433   /* Check whether the decimal separator is a comma.
30434      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
30435      are nl_langinfo(RADIXCHAR) are both ".".  */
30436   if (localeconv () ->decimal_point[0] != ',') return 1;
30437   return 0;
30438 }
30439
30440 _ACEOF
30441     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30442   (eval $ac_link) 2>&5
30443   ac_status=$?
30444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30445   test $ac_status = 0; } && test -s conftest$ac_exeext; then
30446       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
30447       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
30448       # configure script would override the LC_ALL setting. Likewise for
30449       # LC_CTYPE, which is also set at the beginning of the configure script.
30450       # Test for the usual locale name.
30451       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30452         gt_cv_locale_fr=fr_FR
30453       else
30454         # Test for the locale name with explicit encoding suffix.
30455         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30456           gt_cv_locale_fr=fr_FR.ISO-8859-1
30457         else
30458           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
30459           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30460             gt_cv_locale_fr=fr_FR.ISO8859-1
30461           else
30462             # Test for the HP-UX locale name.
30463             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30464               gt_cv_locale_fr=fr_FR.iso88591
30465             else
30466               # Test for the Solaris 7 locale name.
30467               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30468                 gt_cv_locale_fr=fr
30469               else
30470                 # None found.
30471                 gt_cv_locale_fr=none
30472               fi
30473             fi
30474           fi
30475         fi
30476       fi
30477     fi
30478     rm -fr conftest*
30479
30480 fi
30481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
30482 $as_echo "$gt_cv_locale_fr" >&6; }
30483   LOCALE_FR=$gt_cv_locale_fr
30484
30485
30486
30487
30488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
30489 $as_echo_n "checking for a french Unicode locale... " >&6; }
30490 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
30491   $as_echo_n "(cached) " >&6
30492 else
30493
30494     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30495 /* end confdefs.h.  */
30496
30497 #include <locale.h>
30498 #include <time.h>
30499 #if HAVE_LANGINFO_CODESET
30500 # include <langinfo.h>
30501 #endif
30502 #include <stdlib.h>
30503 #include <string.h>
30504 struct tm t;
30505 char buf[16];
30506 int main () {
30507   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
30508      imitates locale dependent behaviour by looking at the environment
30509      variables, and all locales use the UTF-8 encoding.  */
30510 #if !(defined __BEOS__ || defined __HAIKU__)
30511   /* Check whether the given locale name is recognized by the system.  */
30512   if (setlocale (LC_ALL, "") == NULL) return 1;
30513   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
30514      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
30515      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
30516      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
30517      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
30518      some unit tests fail.  */
30519 # if HAVE_LANGINFO_CODESET
30520   {
30521     const char *cs = nl_langinfo (CODESET);
30522     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
30523       return 1;
30524   }
30525 # endif
30526 # ifdef __CYGWIN__
30527   /* On Cygwin, avoid locale names without encoding suffix, because the
30528      locale_charset() function relies on the encoding suffix.  Note that
30529      LC_ALL is set on the command line.  */
30530   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
30531 # endif
30532   /* Check whether in the abbreviation of the second month, the second
30533      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
30534      two bytes long, with UTF-8 encoding.  */
30535   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
30536   if (strftime (buf, sizeof (buf), "%b", &t) < 4
30537       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
30538     return 1;
30539 #endif
30540   /* Check whether the decimal separator is a comma.
30541      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
30542      are nl_langinfo(RADIXCHAR) are both ".".  */
30543   if (localeconv () ->decimal_point[0] != ',') return 1;
30544   return 0;
30545 }
30546
30547 _ACEOF
30548     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30549   (eval $ac_link) 2>&5
30550   ac_status=$?
30551   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30552   test $ac_status = 0; } && test -s conftest$ac_exeext; then
30553       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
30554       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
30555       # configure script would override the LC_ALL setting. Likewise for
30556       # LC_CTYPE, which is also set at the beginning of the configure script.
30557       # Test for the usual locale name.
30558       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30559         gt_cv_locale_fr_utf8=fr_FR
30560       else
30561         # Test for the locale name with explicit encoding suffix.
30562         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30563           gt_cv_locale_fr_utf8=fr_FR.UTF-8
30564         else
30565           # Test for the Solaris 7 locale name.
30566           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30567             gt_cv_locale_fr_utf8=fr.UTF-8
30568           else
30569             # None found.
30570             gt_cv_locale_fr_utf8=none
30571           fi
30572         fi
30573       fi
30574     fi
30575     rm -fr conftest*
30576
30577 fi
30578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
30579 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
30580   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
30581
30582
30583
30584
30585
30586
30587
30588
30589   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
30590   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
30591   # irrelevant for anonymous mappings.
30592   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
30593 if test "x$ac_cv_func_mmap" = x""yes; then :
30594   gl_have_mmap=yes
30595 else
30596   gl_have_mmap=no
30597 fi
30598
30599
30600   # Try to allow MAP_ANONYMOUS.
30601   gl_have_mmap_anonymous=no
30602   if test $gl_have_mmap = yes; then
30603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
30604 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
30605     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30606 /* end confdefs.h.  */
30607
30608 #include <sys/mman.h>
30609 #ifdef MAP_ANONYMOUS
30610     I cant identify this map.
30611 #endif
30612
30613 _ACEOF
30614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30615   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30616   gl_have_mmap_anonymous=yes
30617 fi
30618 rm -f conftest*
30619
30620     if test $gl_have_mmap_anonymous != yes; then
30621       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30622 /* end confdefs.h.  */
30623
30624 #include <sys/mman.h>
30625 #ifdef MAP_ANON
30626     I cant identify this map.
30627 #endif
30628
30629 _ACEOF
30630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30631   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30632
30633 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
30634
30635          gl_have_mmap_anonymous=yes
30636 fi
30637 rm -f conftest*
30638
30639     fi
30640     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
30641 $as_echo "$gl_have_mmap_anonymous" >&6; }
30642     if test $gl_have_mmap_anonymous = yes; then
30643
30644 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
30645
30646     fi
30647   fi
30648
30649
30650
30651
30652
30653
30654
30655
30656
30657   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
30658   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
30659   # irrelevant for anonymous mappings.
30660   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
30661 if test "x$ac_cv_func_mmap" = x""yes; then :
30662   gl_have_mmap=yes
30663 else
30664   gl_have_mmap=no
30665 fi
30666
30667
30668   # Try to allow MAP_ANONYMOUS.
30669   gl_have_mmap_anonymous=no
30670   if test $gl_have_mmap = yes; then
30671     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
30672 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
30673     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30674 /* end confdefs.h.  */
30675
30676 #include <sys/mman.h>
30677 #ifdef MAP_ANONYMOUS
30678     I cant identify this map.
30679 #endif
30680
30681 _ACEOF
30682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30683   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30684   gl_have_mmap_anonymous=yes
30685 fi
30686 rm -f conftest*
30687
30688     if test $gl_have_mmap_anonymous != yes; then
30689       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30690 /* end confdefs.h.  */
30691
30692 #include <sys/mman.h>
30693 #ifdef MAP_ANON
30694     I cant identify this map.
30695 #endif
30696
30697 _ACEOF
30698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30699   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30700
30701 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
30702
30703          gl_have_mmap_anonymous=yes
30704 fi
30705 rm -f conftest*
30706
30707     fi
30708     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
30709 $as_echo "$gl_have_mmap_anonymous" >&6; }
30710     if test $gl_have_mmap_anonymous = yes; then
30711
30712 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
30713
30714     fi
30715   fi
30716
30717
30718
30719
30720
30721
30722
30723
30724
30725   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
30726   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
30727   # irrelevant for anonymous mappings.
30728   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
30729 if test "x$ac_cv_func_mmap" = x""yes; then :
30730   gl_have_mmap=yes
30731 else
30732   gl_have_mmap=no
30733 fi
30734
30735
30736   # Try to allow MAP_ANONYMOUS.
30737   gl_have_mmap_anonymous=no
30738   if test $gl_have_mmap = yes; then
30739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
30740 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
30741     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30742 /* end confdefs.h.  */
30743
30744 #include <sys/mman.h>
30745 #ifdef MAP_ANONYMOUS
30746     I cant identify this map.
30747 #endif
30748
30749 _ACEOF
30750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30751   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30752   gl_have_mmap_anonymous=yes
30753 fi
30754 rm -f conftest*
30755
30756     if test $gl_have_mmap_anonymous != yes; then
30757       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30758 /* end confdefs.h.  */
30759
30760 #include <sys/mman.h>
30761 #ifdef MAP_ANON
30762     I cant identify this map.
30763 #endif
30764
30765 _ACEOF
30766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30767   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30768
30769 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
30770
30771          gl_have_mmap_anonymous=yes
30772 fi
30773 rm -f conftest*
30774
30775     fi
30776     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
30777 $as_echo "$gl_have_mmap_anonymous" >&6; }
30778     if test $gl_have_mmap_anonymous = yes; then
30779
30780 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
30781
30782     fi
30783   fi
30784
30785
30786
30787
30788
30789
30790
30791
30792
30793   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
30794   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
30795   # irrelevant for anonymous mappings.
30796   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
30797 if test "x$ac_cv_func_mmap" = x""yes; then :
30798   gl_have_mmap=yes
30799 else
30800   gl_have_mmap=no
30801 fi
30802
30803
30804   # Try to allow MAP_ANONYMOUS.
30805   gl_have_mmap_anonymous=no
30806   if test $gl_have_mmap = yes; then
30807     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
30808 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
30809     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30810 /* end confdefs.h.  */
30811
30812 #include <sys/mman.h>
30813 #ifdef MAP_ANONYMOUS
30814     I cant identify this map.
30815 #endif
30816
30817 _ACEOF
30818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30819   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30820   gl_have_mmap_anonymous=yes
30821 fi
30822 rm -f conftest*
30823
30824     if test $gl_have_mmap_anonymous != yes; then
30825       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30826 /* end confdefs.h.  */
30827
30828 #include <sys/mman.h>
30829 #ifdef MAP_ANON
30830     I cant identify this map.
30831 #endif
30832
30833 _ACEOF
30834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30835   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30836
30837 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
30838
30839          gl_have_mmap_anonymous=yes
30840 fi
30841 rm -f conftest*
30842
30843     fi
30844     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
30845 $as_echo "$gl_have_mmap_anonymous" >&6; }
30846     if test $gl_have_mmap_anonymous = yes; then
30847
30848 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
30849
30850     fi
30851   fi
30852
30853
30854
30855
30856
30857
30858
30859
30860
30861   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
30862   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
30863   # irrelevant for anonymous mappings.
30864   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
30865 if test "x$ac_cv_func_mmap" = x""yes; then :
30866   gl_have_mmap=yes
30867 else
30868   gl_have_mmap=no
30869 fi
30870
30871
30872   # Try to allow MAP_ANONYMOUS.
30873   gl_have_mmap_anonymous=no
30874   if test $gl_have_mmap = yes; then
30875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
30876 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
30877     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30878 /* end confdefs.h.  */
30879
30880 #include <sys/mman.h>
30881 #ifdef MAP_ANONYMOUS
30882     I cant identify this map.
30883 #endif
30884
30885 _ACEOF
30886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30887   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30888   gl_have_mmap_anonymous=yes
30889 fi
30890 rm -f conftest*
30891
30892     if test $gl_have_mmap_anonymous != yes; then
30893       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30894 /* end confdefs.h.  */
30895
30896 #include <sys/mman.h>
30897 #ifdef MAP_ANON
30898     I cant identify this map.
30899 #endif
30900
30901 _ACEOF
30902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30903   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30904
30905 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
30906
30907          gl_have_mmap_anonymous=yes
30908 fi
30909 rm -f conftest*
30910
30911     fi
30912     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
30913 $as_echo "$gl_have_mmap_anonymous" >&6; }
30914     if test $gl_have_mmap_anonymous = yes; then
30915
30916 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
30917
30918     fi
30919   fi
30920
30921
30922
30923
30924
30925
30926
30927
30928
30929   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
30930   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
30931   # irrelevant for anonymous mappings.
30932   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
30933 if test "x$ac_cv_func_mmap" = x""yes; then :
30934   gl_have_mmap=yes
30935 else
30936   gl_have_mmap=no
30937 fi
30938
30939
30940   # Try to allow MAP_ANONYMOUS.
30941   gl_have_mmap_anonymous=no
30942   if test $gl_have_mmap = yes; then
30943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
30944 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
30945     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30946 /* end confdefs.h.  */
30947
30948 #include <sys/mman.h>
30949 #ifdef MAP_ANONYMOUS
30950     I cant identify this map.
30951 #endif
30952
30953 _ACEOF
30954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30955   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30956   gl_have_mmap_anonymous=yes
30957 fi
30958 rm -f conftest*
30959
30960     if test $gl_have_mmap_anonymous != yes; then
30961       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30962 /* end confdefs.h.  */
30963
30964 #include <sys/mman.h>
30965 #ifdef MAP_ANON
30966     I cant identify this map.
30967 #endif
30968
30969 _ACEOF
30970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30971   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30972
30973 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
30974
30975          gl_have_mmap_anonymous=yes
30976 fi
30977 rm -f conftest*
30978
30979     fi
30980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
30981 $as_echo "$gl_have_mmap_anonymous" >&6; }
30982     if test $gl_have_mmap_anonymous = yes; then
30983
30984 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
30985
30986     fi
30987   fi
30988
30989
30990
30991
30992
30993
30994
30995
30996
30997   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
30998   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
30999   # irrelevant for anonymous mappings.
31000   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31001 if test "x$ac_cv_func_mmap" = x""yes; then :
31002   gl_have_mmap=yes
31003 else
31004   gl_have_mmap=no
31005 fi
31006
31007
31008   # Try to allow MAP_ANONYMOUS.
31009   gl_have_mmap_anonymous=no
31010   if test $gl_have_mmap = yes; then
31011     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31012 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31013     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31014 /* end confdefs.h.  */
31015
31016 #include <sys/mman.h>
31017 #ifdef MAP_ANONYMOUS
31018     I cant identify this map.
31019 #endif
31020
31021 _ACEOF
31022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31023   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31024   gl_have_mmap_anonymous=yes
31025 fi
31026 rm -f conftest*
31027
31028     if test $gl_have_mmap_anonymous != yes; then
31029       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31030 /* end confdefs.h.  */
31031
31032 #include <sys/mman.h>
31033 #ifdef MAP_ANON
31034     I cant identify this map.
31035 #endif
31036
31037 _ACEOF
31038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31039   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31040
31041 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31042
31043          gl_have_mmap_anonymous=yes
31044 fi
31045 rm -f conftest*
31046
31047     fi
31048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31049 $as_echo "$gl_have_mmap_anonymous" >&6; }
31050     if test $gl_have_mmap_anonymous = yes; then
31051
31052 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31053
31054     fi
31055   fi
31056
31057
31058
31059
31060
31061
31062
31063
31064
31065   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31066   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31067   # irrelevant for anonymous mappings.
31068   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31069 if test "x$ac_cv_func_mmap" = x""yes; then :
31070   gl_have_mmap=yes
31071 else
31072   gl_have_mmap=no
31073 fi
31074
31075
31076   # Try to allow MAP_ANONYMOUS.
31077   gl_have_mmap_anonymous=no
31078   if test $gl_have_mmap = yes; then
31079     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31080 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31081     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31082 /* end confdefs.h.  */
31083
31084 #include <sys/mman.h>
31085 #ifdef MAP_ANONYMOUS
31086     I cant identify this map.
31087 #endif
31088
31089 _ACEOF
31090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31091   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31092   gl_have_mmap_anonymous=yes
31093 fi
31094 rm -f conftest*
31095
31096     if test $gl_have_mmap_anonymous != yes; then
31097       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31098 /* end confdefs.h.  */
31099
31100 #include <sys/mman.h>
31101 #ifdef MAP_ANON
31102     I cant identify this map.
31103 #endif
31104
31105 _ACEOF
31106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31107   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31108
31109 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31110
31111          gl_have_mmap_anonymous=yes
31112 fi
31113 rm -f conftest*
31114
31115     fi
31116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31117 $as_echo "$gl_have_mmap_anonymous" >&6; }
31118     if test $gl_have_mmap_anonymous = yes; then
31119
31120 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31121
31122     fi
31123   fi
31124
31125
31126
31127
31128
31129
31130
31131
31132
31133   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31134   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31135   # irrelevant for anonymous mappings.
31136   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31137 if test "x$ac_cv_func_mmap" = x""yes; then :
31138   gl_have_mmap=yes
31139 else
31140   gl_have_mmap=no
31141 fi
31142
31143
31144   # Try to allow MAP_ANONYMOUS.
31145   gl_have_mmap_anonymous=no
31146   if test $gl_have_mmap = yes; then
31147     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31148 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31149     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31150 /* end confdefs.h.  */
31151
31152 #include <sys/mman.h>
31153 #ifdef MAP_ANONYMOUS
31154     I cant identify this map.
31155 #endif
31156
31157 _ACEOF
31158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31159   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31160   gl_have_mmap_anonymous=yes
31161 fi
31162 rm -f conftest*
31163
31164     if test $gl_have_mmap_anonymous != yes; then
31165       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31166 /* end confdefs.h.  */
31167
31168 #include <sys/mman.h>
31169 #ifdef MAP_ANON
31170     I cant identify this map.
31171 #endif
31172
31173 _ACEOF
31174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31175   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31176
31177 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31178
31179          gl_have_mmap_anonymous=yes
31180 fi
31181 rm -f conftest*
31182
31183     fi
31184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31185 $as_echo "$gl_have_mmap_anonymous" >&6; }
31186     if test $gl_have_mmap_anonymous = yes; then
31187
31188 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31189
31190     fi
31191   fi
31192
31193
31194
31195
31196
31197
31198
31199
31200
31201   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31202   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31203   # irrelevant for anonymous mappings.
31204   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31205 if test "x$ac_cv_func_mmap" = x""yes; then :
31206   gl_have_mmap=yes
31207 else
31208   gl_have_mmap=no
31209 fi
31210
31211
31212   # Try to allow MAP_ANONYMOUS.
31213   gl_have_mmap_anonymous=no
31214   if test $gl_have_mmap = yes; then
31215     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31216 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31217     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31218 /* end confdefs.h.  */
31219
31220 #include <sys/mman.h>
31221 #ifdef MAP_ANONYMOUS
31222     I cant identify this map.
31223 #endif
31224
31225 _ACEOF
31226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31227   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31228   gl_have_mmap_anonymous=yes
31229 fi
31230 rm -f conftest*
31231
31232     if test $gl_have_mmap_anonymous != yes; then
31233       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31234 /* end confdefs.h.  */
31235
31236 #include <sys/mman.h>
31237 #ifdef MAP_ANON
31238     I cant identify this map.
31239 #endif
31240
31241 _ACEOF
31242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31243   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31244
31245 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31246
31247          gl_have_mmap_anonymous=yes
31248 fi
31249 rm -f conftest*
31250
31251     fi
31252     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31253 $as_echo "$gl_have_mmap_anonymous" >&6; }
31254     if test $gl_have_mmap_anonymous = yes; then
31255
31256 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31257
31258     fi
31259   fi
31260
31261
31262
31263
31264
31265
31266
31267
31268
31269   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31270   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31271   # irrelevant for anonymous mappings.
31272   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31273 if test "x$ac_cv_func_mmap" = x""yes; then :
31274   gl_have_mmap=yes
31275 else
31276   gl_have_mmap=no
31277 fi
31278
31279
31280   # Try to allow MAP_ANONYMOUS.
31281   gl_have_mmap_anonymous=no
31282   if test $gl_have_mmap = yes; then
31283     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31284 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31285     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31286 /* end confdefs.h.  */
31287
31288 #include <sys/mman.h>
31289 #ifdef MAP_ANONYMOUS
31290     I cant identify this map.
31291 #endif
31292
31293 _ACEOF
31294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31295   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31296   gl_have_mmap_anonymous=yes
31297 fi
31298 rm -f conftest*
31299
31300     if test $gl_have_mmap_anonymous != yes; then
31301       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31302 /* end confdefs.h.  */
31303
31304 #include <sys/mman.h>
31305 #ifdef MAP_ANON
31306     I cant identify this map.
31307 #endif
31308
31309 _ACEOF
31310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31311   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31312
31313 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31314
31315          gl_have_mmap_anonymous=yes
31316 fi
31317 rm -f conftest*
31318
31319     fi
31320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31321 $as_echo "$gl_have_mmap_anonymous" >&6; }
31322     if test $gl_have_mmap_anonymous = yes; then
31323
31324 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31325
31326     fi
31327   fi
31328
31329
31330
31331
31332
31333
31334
31335
31336
31337   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31338   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31339   # irrelevant for anonymous mappings.
31340   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31341 if test "x$ac_cv_func_mmap" = x""yes; then :
31342   gl_have_mmap=yes
31343 else
31344   gl_have_mmap=no
31345 fi
31346
31347
31348   # Try to allow MAP_ANONYMOUS.
31349   gl_have_mmap_anonymous=no
31350   if test $gl_have_mmap = yes; then
31351     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31352 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31353     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31354 /* end confdefs.h.  */
31355
31356 #include <sys/mman.h>
31357 #ifdef MAP_ANONYMOUS
31358     I cant identify this map.
31359 #endif
31360
31361 _ACEOF
31362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31363   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31364   gl_have_mmap_anonymous=yes
31365 fi
31366 rm -f conftest*
31367
31368     if test $gl_have_mmap_anonymous != yes; then
31369       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31370 /* end confdefs.h.  */
31371
31372 #include <sys/mman.h>
31373 #ifdef MAP_ANON
31374     I cant identify this map.
31375 #endif
31376
31377 _ACEOF
31378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31379   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31380
31381 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31382
31383          gl_have_mmap_anonymous=yes
31384 fi
31385 rm -f conftest*
31386
31387     fi
31388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31389 $as_echo "$gl_have_mmap_anonymous" >&6; }
31390     if test $gl_have_mmap_anonymous = yes; then
31391
31392 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31393
31394     fi
31395   fi
31396
31397
31398
31399
31400
31401
31402
31403
31404
31405   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31406   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31407   # irrelevant for anonymous mappings.
31408   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31409 if test "x$ac_cv_func_mmap" = x""yes; then :
31410   gl_have_mmap=yes
31411 else
31412   gl_have_mmap=no
31413 fi
31414
31415
31416   # Try to allow MAP_ANONYMOUS.
31417   gl_have_mmap_anonymous=no
31418   if test $gl_have_mmap = yes; then
31419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31420 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31421     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31422 /* end confdefs.h.  */
31423
31424 #include <sys/mman.h>
31425 #ifdef MAP_ANONYMOUS
31426     I cant identify this map.
31427 #endif
31428
31429 _ACEOF
31430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31431   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31432   gl_have_mmap_anonymous=yes
31433 fi
31434 rm -f conftest*
31435
31436     if test $gl_have_mmap_anonymous != yes; then
31437       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31438 /* end confdefs.h.  */
31439
31440 #include <sys/mman.h>
31441 #ifdef MAP_ANON
31442     I cant identify this map.
31443 #endif
31444
31445 _ACEOF
31446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31447   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31448
31449 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31450
31451          gl_have_mmap_anonymous=yes
31452 fi
31453 rm -f conftest*
31454
31455     fi
31456     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31457 $as_echo "$gl_have_mmap_anonymous" >&6; }
31458     if test $gl_have_mmap_anonymous = yes; then
31459
31460 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31461
31462     fi
31463   fi
31464
31465
31466
31467
31468
31469
31470
31471
31472
31473   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31474   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31475   # irrelevant for anonymous mappings.
31476   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31477 if test "x$ac_cv_func_mmap" = x""yes; then :
31478   gl_have_mmap=yes
31479 else
31480   gl_have_mmap=no
31481 fi
31482
31483
31484   # Try to allow MAP_ANONYMOUS.
31485   gl_have_mmap_anonymous=no
31486   if test $gl_have_mmap = yes; then
31487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31488 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31489     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31490 /* end confdefs.h.  */
31491
31492 #include <sys/mman.h>
31493 #ifdef MAP_ANONYMOUS
31494     I cant identify this map.
31495 #endif
31496
31497 _ACEOF
31498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31499   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31500   gl_have_mmap_anonymous=yes
31501 fi
31502 rm -f conftest*
31503
31504     if test $gl_have_mmap_anonymous != yes; then
31505       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31506 /* end confdefs.h.  */
31507
31508 #include <sys/mman.h>
31509 #ifdef MAP_ANON
31510     I cant identify this map.
31511 #endif
31512
31513 _ACEOF
31514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31515   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31516
31517 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31518
31519          gl_have_mmap_anonymous=yes
31520 fi
31521 rm -f conftest*
31522
31523     fi
31524     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31525 $as_echo "$gl_have_mmap_anonymous" >&6; }
31526     if test $gl_have_mmap_anonymous = yes; then
31527
31528 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31529
31530     fi
31531   fi
31532
31533
31534
31535
31536
31537
31538
31539
31540
31541   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31542   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31543   # irrelevant for anonymous mappings.
31544   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31545 if test "x$ac_cv_func_mmap" = x""yes; then :
31546   gl_have_mmap=yes
31547 else
31548   gl_have_mmap=no
31549 fi
31550
31551
31552   # Try to allow MAP_ANONYMOUS.
31553   gl_have_mmap_anonymous=no
31554   if test $gl_have_mmap = yes; then
31555     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31556 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31557     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31558 /* end confdefs.h.  */
31559
31560 #include <sys/mman.h>
31561 #ifdef MAP_ANONYMOUS
31562     I cant identify this map.
31563 #endif
31564
31565 _ACEOF
31566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31567   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31568   gl_have_mmap_anonymous=yes
31569 fi
31570 rm -f conftest*
31571
31572     if test $gl_have_mmap_anonymous != yes; then
31573       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31574 /* end confdefs.h.  */
31575
31576 #include <sys/mman.h>
31577 #ifdef MAP_ANON
31578     I cant identify this map.
31579 #endif
31580
31581 _ACEOF
31582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31583   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31584
31585 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31586
31587          gl_have_mmap_anonymous=yes
31588 fi
31589 rm -f conftest*
31590
31591     fi
31592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31593 $as_echo "$gl_have_mmap_anonymous" >&6; }
31594     if test $gl_have_mmap_anonymous = yes; then
31595
31596 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31597
31598     fi
31599   fi
31600
31601
31602
31603
31604
31605
31606
31607
31608
31609   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31610   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31611   # irrelevant for anonymous mappings.
31612   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31613 if test "x$ac_cv_func_mmap" = x""yes; then :
31614   gl_have_mmap=yes
31615 else
31616   gl_have_mmap=no
31617 fi
31618
31619
31620   # Try to allow MAP_ANONYMOUS.
31621   gl_have_mmap_anonymous=no
31622   if test $gl_have_mmap = yes; then
31623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31624 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31625     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31626 /* end confdefs.h.  */
31627
31628 #include <sys/mman.h>
31629 #ifdef MAP_ANONYMOUS
31630     I cant identify this map.
31631 #endif
31632
31633 _ACEOF
31634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31635   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31636   gl_have_mmap_anonymous=yes
31637 fi
31638 rm -f conftest*
31639
31640     if test $gl_have_mmap_anonymous != yes; then
31641       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31642 /* end confdefs.h.  */
31643
31644 #include <sys/mman.h>
31645 #ifdef MAP_ANON
31646     I cant identify this map.
31647 #endif
31648
31649 _ACEOF
31650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31651   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31652
31653 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31654
31655          gl_have_mmap_anonymous=yes
31656 fi
31657 rm -f conftest*
31658
31659     fi
31660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31661 $as_echo "$gl_have_mmap_anonymous" >&6; }
31662     if test $gl_have_mmap_anonymous = yes; then
31663
31664 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31665
31666     fi
31667   fi
31668
31669
31670
31671
31672
31673
31674
31675
31676
31677   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31678   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31679   # irrelevant for anonymous mappings.
31680   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31681 if test "x$ac_cv_func_mmap" = x""yes; then :
31682   gl_have_mmap=yes
31683 else
31684   gl_have_mmap=no
31685 fi
31686
31687
31688   # Try to allow MAP_ANONYMOUS.
31689   gl_have_mmap_anonymous=no
31690   if test $gl_have_mmap = yes; then
31691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31692 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31693     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31694 /* end confdefs.h.  */
31695
31696 #include <sys/mman.h>
31697 #ifdef MAP_ANONYMOUS
31698     I cant identify this map.
31699 #endif
31700
31701 _ACEOF
31702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31703   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31704   gl_have_mmap_anonymous=yes
31705 fi
31706 rm -f conftest*
31707
31708     if test $gl_have_mmap_anonymous != yes; then
31709       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31710 /* end confdefs.h.  */
31711
31712 #include <sys/mman.h>
31713 #ifdef MAP_ANON
31714     I cant identify this map.
31715 #endif
31716
31717 _ACEOF
31718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31719   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31720
31721 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31722
31723          gl_have_mmap_anonymous=yes
31724 fi
31725 rm -f conftest*
31726
31727     fi
31728     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31729 $as_echo "$gl_have_mmap_anonymous" >&6; }
31730     if test $gl_have_mmap_anonymous = yes; then
31731
31732 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31733
31734     fi
31735   fi
31736
31737
31738
31739
31740
31741
31742
31743
31744
31745   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31746   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31747   # irrelevant for anonymous mappings.
31748   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31749 if test "x$ac_cv_func_mmap" = x""yes; then :
31750   gl_have_mmap=yes
31751 else
31752   gl_have_mmap=no
31753 fi
31754
31755
31756   # Try to allow MAP_ANONYMOUS.
31757   gl_have_mmap_anonymous=no
31758   if test $gl_have_mmap = yes; then
31759     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31760 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31761     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31762 /* end confdefs.h.  */
31763
31764 #include <sys/mman.h>
31765 #ifdef MAP_ANONYMOUS
31766     I cant identify this map.
31767 #endif
31768
31769 _ACEOF
31770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31771   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31772   gl_have_mmap_anonymous=yes
31773 fi
31774 rm -f conftest*
31775
31776     if test $gl_have_mmap_anonymous != yes; then
31777       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31778 /* end confdefs.h.  */
31779
31780 #include <sys/mman.h>
31781 #ifdef MAP_ANON
31782     I cant identify this map.
31783 #endif
31784
31785 _ACEOF
31786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31787   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31788
31789 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31790
31791          gl_have_mmap_anonymous=yes
31792 fi
31793 rm -f conftest*
31794
31795     fi
31796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31797 $as_echo "$gl_have_mmap_anonymous" >&6; }
31798     if test $gl_have_mmap_anonymous = yes; then
31799
31800 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31801
31802     fi
31803   fi
31804
31805
31806
31807
31808
31809
31810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
31811 $as_echo_n "checking for a traditional french locale... " >&6; }
31812 if test "${gt_cv_locale_fr+set}" = set; then :
31813   $as_echo_n "(cached) " >&6
31814 else
31815
31816     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31817 /* end confdefs.h.  */
31818
31819 #include <locale.h>
31820 #include <time.h>
31821 #if HAVE_LANGINFO_CODESET
31822 # include <langinfo.h>
31823 #endif
31824 #include <stdlib.h>
31825 #include <string.h>
31826 struct tm t;
31827 char buf[16];
31828 int main () {
31829   /* Check whether the given locale name is recognized by the system.  */
31830   if (setlocale (LC_ALL, "") == NULL) return 1;
31831   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
31832      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
31833      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
31834      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
31835      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
31836      some unit tests fail.  */
31837 #if HAVE_LANGINFO_CODESET
31838   {
31839     const char *cs = nl_langinfo (CODESET);
31840     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
31841       return 1;
31842   }
31843 #endif
31844 #ifdef __CYGWIN__
31845   /* On Cygwin, avoid locale names without encoding suffix, because the
31846      locale_charset() function relies on the encoding suffix.  Note that
31847      LC_ALL is set on the command line.  */
31848   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
31849 #endif
31850   /* Check whether in the abbreviation of the second month, the second
31851      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
31852      one byte long. This excludes the UTF-8 encoding.  */
31853   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
31854   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
31855   /* Check whether the decimal separator is a comma.
31856      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
31857      are nl_langinfo(RADIXCHAR) are both ".".  */
31858   if (localeconv () ->decimal_point[0] != ',') return 1;
31859   return 0;
31860 }
31861
31862 _ACEOF
31863     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
31864   (eval $ac_link) 2>&5
31865   ac_status=$?
31866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31867   test $ac_status = 0; } && test -s conftest$ac_exeext; then
31868       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
31869       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
31870       # configure script would override the LC_ALL setting. Likewise for
31871       # LC_CTYPE, which is also set at the beginning of the configure script.
31872       # Test for the usual locale name.
31873       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31874         gt_cv_locale_fr=fr_FR
31875       else
31876         # Test for the locale name with explicit encoding suffix.
31877         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31878           gt_cv_locale_fr=fr_FR.ISO-8859-1
31879         else
31880           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
31881           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31882             gt_cv_locale_fr=fr_FR.ISO8859-1
31883           else
31884             # Test for the HP-UX locale name.
31885             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31886               gt_cv_locale_fr=fr_FR.iso88591
31887             else
31888               # Test for the Solaris 7 locale name.
31889               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31890                 gt_cv_locale_fr=fr
31891               else
31892                 # None found.
31893                 gt_cv_locale_fr=none
31894               fi
31895             fi
31896           fi
31897         fi
31898       fi
31899     fi
31900     rm -fr conftest*
31901
31902 fi
31903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
31904 $as_echo "$gt_cv_locale_fr" >&6; }
31905   LOCALE_FR=$gt_cv_locale_fr
31906
31907
31908
31909
31910   for ac_func in unsetenv
31911 do :
31912   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
31913 if test "x$ac_cv_func_unsetenv" = x""yes; then :
31914   cat >>confdefs.h <<_ACEOF
31915 #define HAVE_UNSETENV 1
31916 _ACEOF
31917
31918 fi
31919 done
31920
31921   if test $ac_cv_func_unsetenv = no; then
31922     HAVE_UNSETENV=0
31923
31924
31925
31926
31927
31928
31929
31930
31931   gltests_LIBOBJS="$gltests_LIBOBJS unsetenv.$ac_objext"
31932
31933
31934
31935
31936
31937   else
31938         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
31939 $as_echo_n "checking for unsetenv() return type... " >&6; }
31940 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
31941   $as_echo_n "(cached) " >&6
31942 else
31943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31944 /* end confdefs.h.  */
31945 #include <stdlib.h>
31946 extern
31947 #ifdef __cplusplus
31948 "C"
31949 #endif
31950 #if defined(__STDC__) || defined(__cplusplus)
31951 int unsetenv (const char *name);
31952 #else
31953 int unsetenv();
31954 #endif
31955
31956 int
31957 main ()
31958 {
31959
31960   ;
31961   return 0;
31962 }
31963 _ACEOF
31964 if ac_fn_c_try_compile "$LINENO"; then :
31965   gt_cv_func_unsetenv_ret='int'
31966 else
31967   gt_cv_func_unsetenv_ret='void'
31968 fi
31969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31970 fi
31971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
31972 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
31973     if test $gt_cv_func_unsetenv_ret = 'void'; then
31974
31975 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
31976
31977       REPLACE_UNSETENV=1
31978
31979
31980
31981
31982
31983
31984
31985
31986   gltests_LIBOBJS="$gltests_LIBOBJS unsetenv.$ac_objext"
31987
31988     fi
31989
31990         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv works on duplicates" >&5
31991 $as_echo_n "checking whether unsetenv works on duplicates... " >&6; }
31992 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
31993   $as_echo_n "(cached) " >&6
31994 else
31995   if test "$cross_compiling" = yes; then :
31996   gl_cv_func_unsetenv_works="guessing no"
31997 else
31998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31999 /* end confdefs.h.  */
32000
32001        #include <stdlib.h>
32002
32003 int
32004 main ()
32005 {
32006
32007        char entry[] = "b=2";
32008        if (putenv ((char *) "a=1")) return 1;
32009        if (putenv (entry)) return 2;
32010        entry[0] = 'a';
32011        unsetenv ("a");
32012        if (getenv ("a")) return 3;
32013
32014   ;
32015   return 0;
32016 }
32017 _ACEOF
32018 if ac_fn_c_try_run "$LINENO"; then :
32019   gl_cv_func_unsetenv_works=yes
32020 else
32021   gl_cv_func_unsetenv_works=no
32022 fi
32023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32024   conftest.$ac_objext conftest.beam conftest.$ac_ext
32025 fi
32026
32027 fi
32028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
32029 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
32030     if test "$gl_cv_func_unsetenv_works" != yes; then
32031       REPLACE_UNSETENV=1
32032
32033
32034
32035
32036
32037
32038
32039
32040   gltests_LIBOBJS="$gltests_LIBOBJS unsetenv.$ac_objext"
32041
32042     fi
32043   fi
32044
32045
32046
32047
32048   GNULIB_UNSETENV=$gl_module_indicator_condition
32049
32050
32051
32052 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
32053
32054
32055
32056
32057
32058
32059
32060   if test $ac_cv_func_wctob = no; then
32061     HAVE_DECL_WCTOB=0
32062
32063     :
32064
32065
32066
32067
32068
32069
32070
32071
32072
32073   gltests_LIBOBJS="$gltests_LIBOBJS wctob.$ac_objext"
32074
32075
32076   :
32077
32078   else
32079
32080
32081
32082          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wctob works" >&5
32083 $as_echo_n "checking whether wctob works... " >&6; }
32084 if test "${gl_cv_func_wctob_works+set}" = set; then :
32085   $as_echo_n "(cached) " >&6
32086 else
32087
32088                         case "$host_os" in
32089             # Guess no on Solaris <= 9 and Cygwin.
32090           solaris2.[1-9] | solaris2.[1-9].* | cygwin*)
32091             gl_cv_func_wctob_works="guessing no" ;;
32092             # Guess yes otherwise.
32093           *) gl_cv_func_wctob_works="guessing yes" ;;
32094         esac
32095         case "$host_os" in
32096           cygwin*)
32097             if test "$cross_compiling" = yes; then :
32098   :
32099 else
32100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32101 /* end confdefs.h.  */
32102
32103 #include <locale.h>
32104 #include <wchar.h>
32105
32106 register long global __asm__ ("%ebx");
32107
32108 int main ()
32109 {
32110   setlocale (LC_ALL, "en_US.UTF-8");
32111
32112   global = 0x12345678;
32113   if (wctob (0x00FC) != -1)
32114     return 1;
32115   if (global != 0x12345678)
32116     return 2;
32117   return 0;
32118 }
32119 _ACEOF
32120 if ac_fn_c_try_run "$LINENO"; then :
32121   :
32122 else
32123   gl_cv_func_wctob_works=no
32124 fi
32125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32126   conftest.$ac_objext conftest.beam conftest.$ac_ext
32127 fi
32128
32129             ;;
32130         esac
32131         if test "$gl_cv_func_wctob_works" != no && test $LOCALE_FR != none; then
32132           if test "$cross_compiling" = yes; then :
32133   :
32134 else
32135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32136 /* end confdefs.h.  */
32137
32138 #include <locale.h>
32139 #include <string.h>
32140 #include <wchar.h>
32141 int main ()
32142 {
32143   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
32144     {
32145       wchar_t wc;
32146
32147       if (mbtowc (&wc, "\374", 1) == 1)
32148         if (wctob (wc) != (unsigned char) '\374')
32149           return 1;
32150     }
32151   return 0;
32152 }
32153 _ACEOF
32154 if ac_fn_c_try_run "$LINENO"; then :
32155   gl_cv_func_wctob_works=yes
32156 else
32157   gl_cv_func_wctob_works=no
32158 fi
32159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32160   conftest.$ac_objext conftest.beam conftest.$ac_ext
32161 fi
32162
32163         fi
32164
32165 fi
32166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wctob_works" >&5
32167 $as_echo "$gl_cv_func_wctob_works" >&6; }
32168     case "$gl_cv_func_wctob_works" in
32169       *yes) ;;
32170       *) REPLACE_WCTOB=1 ;;
32171     esac
32172     if test $REPLACE_WCTOB = 1; then
32173
32174     :
32175
32176
32177
32178
32179
32180
32181
32182
32183
32184   gltests_LIBOBJS="$gltests_LIBOBJS wctob.$ac_objext"
32185
32186
32187   :
32188
32189     else
32190
32191             ac_fn_c_check_decl "$LINENO" "wctob" "ac_cv_have_decl_wctob" "
32192 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
32193    <wchar.h>.
32194    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
32195    before <wchar.h>.  */
32196 #include <stddef.h>
32197 #include <stdio.h>
32198 #include <time.h>
32199 #include <wchar.h>
32200
32201 "
32202 if test "x$ac_cv_have_decl_wctob" = x""yes; then :
32203   ac_have_decl=1
32204 else
32205   ac_have_decl=0
32206 fi
32207
32208 cat >>confdefs.h <<_ACEOF
32209 #define HAVE_DECL_WCTOB $ac_have_decl
32210 _ACEOF
32211
32212       if test $ac_cv_have_decl_wctob != yes; then
32213         HAVE_DECL_WCTOB=0
32214
32215     :
32216
32217       fi
32218     fi
32219   fi
32220
32221
32222
32223
32224   GNULIB_WCTOB=$gl_module_indicator_condition
32225
32226
32227
32228 $as_echo "#define GNULIB_TEST_WCTOB 1" >>confdefs.h
32229
32230
32231
32232
32233
32234
32235
32236
32237
32238
32239
32240
32241   gltests_LIBOBJS="$gltests_LIBOBJS xmalloc.$ac_objext"
32242
32243
32244
32245
32246   :
32247
32248
32249   :
32250
32251
32252
32253
32254     YIELD_LIB=
32255   if test $gl_threads_api = posix; then
32256         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
32257 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
32258 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
32259   $as_echo_n "(cached) " >&6
32260 else
32261   ac_check_lib_save_LIBS=$LIBS
32262 LIBS="-lrt  $LIBS"
32263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32264 /* end confdefs.h.  */
32265
32266 /* Override any GCC internal prototype to avoid an error.
32267    Use char because int might match the return type of a GCC
32268    builtin and then its argument prototype would still apply.  */
32269 #ifdef __cplusplus
32270 extern "C"
32271 #endif
32272 char sched_yield ();
32273 int
32274 main ()
32275 {
32276 return sched_yield ();
32277   ;
32278   return 0;
32279 }
32280 _ACEOF
32281 if ac_fn_c_try_link "$LINENO"; then :
32282   ac_cv_lib_rt_sched_yield=yes
32283 else
32284   ac_cv_lib_rt_sched_yield=no
32285 fi
32286 rm -f core conftest.err conftest.$ac_objext \
32287     conftest$ac_exeext conftest.$ac_ext
32288 LIBS=$ac_check_lib_save_LIBS
32289 fi
32290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
32291 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
32292 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
32293   YIELD_LIB=-lrt
32294 else
32295          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
32296 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
32297 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
32298   $as_echo_n "(cached) " >&6
32299 else
32300   ac_check_lib_save_LIBS=$LIBS
32301 LIBS="-lposix4  $LIBS"
32302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32303 /* end confdefs.h.  */
32304
32305 /* Override any GCC internal prototype to avoid an error.
32306    Use char because int might match the return type of a GCC
32307    builtin and then its argument prototype would still apply.  */
32308 #ifdef __cplusplus
32309 extern "C"
32310 #endif
32311 char sched_yield ();
32312 int
32313 main ()
32314 {
32315 return sched_yield ();
32316   ;
32317   return 0;
32318 }
32319 _ACEOF
32320 if ac_fn_c_try_link "$LINENO"; then :
32321   ac_cv_lib_posix4_sched_yield=yes
32322 else
32323   ac_cv_lib_posix4_sched_yield=no
32324 fi
32325 rm -f core conftest.err conftest.$ac_objext \
32326     conftest$ac_exeext conftest.$ac_ext
32327 LIBS=$ac_check_lib_save_LIBS
32328 fi
32329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
32330 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
32331 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
32332   YIELD_LIB=-lposix4
32333 fi
32334
32335 fi
32336
32337   fi
32338
32339
32340
32341
32342
32343
32344
32345
32346
32347
32348
32349
32350   LIBTESTS_LIBDEPS="$gltests_libdeps"
32351
32352
32353
32354 if test "$enable_shared" = yes; then
32355   case "$host_os" in
32356     mingw* | cygwin*) is_woe32dll=yes ;;
32357     *) is_woe32dll=no ;;
32358   esac
32359 else
32360   is_woe32dll=no
32361 fi
32362  if test $is_woe32dll = yes; then
32363   WOE32DLL_TRUE=
32364   WOE32DLL_FALSE='#'
32365 else
32366   WOE32DLL_TRUE='#'
32367   WOE32DLL_FALSE=
32368 fi
32369
32370 if test $is_woe32dll = yes; then
32371   DLL_VARIABLE='__declspec (dllimport)'
32372 else
32373   DLL_VARIABLE=
32374 fi
32375
32376 if test $is_woe32dll = yes; then
32377
32378 $as_echo "#define WOE32DLL 1" >>confdefs.h
32379
32380 fi
32381
32382 # Check whether --enable-namespacing was given.
32383 if test "${enable_namespacing+set}" = set; then :
32384   enableval=$enable_namespacing; :
32385 else
32386   enable_namespacing=yes
32387 fi
32388
32389 if test "$enable_namespacing" != no; then
32390   NAMESPACING=yes
32391 else
32392   NAMESPACING=
32393 fi
32394
32395
32396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
32397 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
32398 if test "${lt_cv_path_NM+set}" = set; then :
32399   $as_echo_n "(cached) " >&6
32400 else
32401   if test -n "$NM"; then
32402   # Let the user override the test.
32403   lt_cv_path_NM="$NM"
32404 else
32405   lt_nm_to_check="${ac_tool_prefix}nm"
32406   if test -n "$ac_tool_prefix" \
32407      && { test "$build" = "$host" \
32408           || { test "$build_os" = cygwin && test "$host_os" = mingw32; }; \
32409         }; then
32410     lt_nm_to_check="$lt_nm_to_check nm"
32411   fi
32412   for lt_tmp_nm in $lt_nm_to_check; do
32413     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32414     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
32415       IFS="$lt_save_ifs"
32416       test -z "$ac_dir" && ac_dir=.
32417       tmp_nm="$ac_dir/$lt_tmp_nm"
32418       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
32419         # Check to see if the nm accepts a BSD-compat flag.
32420         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
32421         #   nm: unknown option "B" ignored
32422         # Tru64's nm complains that /dev/null is an invalid object file
32423         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
32424         */dev/null* | *'Invalid file or object type'*)
32425           lt_cv_path_NM="$tmp_nm -B"
32426           break
32427           ;;
32428         *)
32429           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
32430           */dev/null*)
32431             lt_cv_path_NM="$tmp_nm -p"
32432             break
32433             ;;
32434           *)
32435             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
32436             continue # so that we can try to find one that supports BSD flags
32437             ;;
32438           esac
32439           ;;
32440         esac
32441       fi
32442     done
32443     IFS="$lt_save_ifs"
32444   done
32445   : ${lt_cv_path_NM=no}
32446 fi
32447 fi
32448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
32449 $as_echo "$lt_cv_path_NM" >&6; }
32450 if test "$lt_cv_path_NM" != "no"; then
32451   NM="$lt_cv_path_NM"
32452 else
32453   # Didn't find any BSD compatible name lister, look for dumpbin.
32454   if test -n "$DUMPBIN"; then :
32455     # Let the user override the test.
32456   else
32457     if test -n "$ac_tool_prefix"; then
32458   for ac_prog in dumpbin "link -dump"
32459   do
32460     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32461 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
32462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32463 $as_echo_n "checking for $ac_word... " >&6; }
32464 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
32465   $as_echo_n "(cached) " >&6
32466 else
32467   if test -n "$DUMPBIN"; then
32468   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
32469 else
32470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32471 for as_dir in $PATH
32472 do
32473   IFS=$as_save_IFS
32474   test -z "$as_dir" && as_dir=.
32475     for ac_exec_ext in '' $ac_executable_extensions; do
32476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32477     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
32478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32479     break 2
32480   fi
32481 done
32482   done
32483 IFS=$as_save_IFS
32484
32485 fi
32486 fi
32487 DUMPBIN=$ac_cv_prog_DUMPBIN
32488 if test -n "$DUMPBIN"; then
32489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
32490 $as_echo "$DUMPBIN" >&6; }
32491 else
32492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32493 $as_echo "no" >&6; }
32494 fi
32495
32496
32497     test -n "$DUMPBIN" && break
32498   done
32499 fi
32500 if test -z "$DUMPBIN"; then
32501   ac_ct_DUMPBIN=$DUMPBIN
32502   for ac_prog in dumpbin "link -dump"
32503 do
32504   # Extract the first word of "$ac_prog", so it can be a program name with args.
32505 set dummy $ac_prog; ac_word=$2
32506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32507 $as_echo_n "checking for $ac_word... " >&6; }
32508 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
32509   $as_echo_n "(cached) " >&6
32510 else
32511   if test -n "$ac_ct_DUMPBIN"; then
32512   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
32513 else
32514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32515 for as_dir in $PATH
32516 do
32517   IFS=$as_save_IFS
32518   test -z "$as_dir" && as_dir=.
32519     for ac_exec_ext in '' $ac_executable_extensions; do
32520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32521     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
32522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32523     break 2
32524   fi
32525 done
32526   done
32527 IFS=$as_save_IFS
32528
32529 fi
32530 fi
32531 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
32532 if test -n "$ac_ct_DUMPBIN"; then
32533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
32534 $as_echo "$ac_ct_DUMPBIN" >&6; }
32535 else
32536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32537 $as_echo "no" >&6; }
32538 fi
32539
32540
32541   test -n "$ac_ct_DUMPBIN" && break
32542 done
32543
32544   if test "x$ac_ct_DUMPBIN" = x; then
32545     DUMPBIN=":"
32546   else
32547     case $cross_compiling:$ac_tool_warned in
32548 yes:)
32549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32551 ac_tool_warned=yes ;;
32552 esac
32553     DUMPBIN=$ac_ct_DUMPBIN
32554   fi
32555 fi
32556
32557     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
32558     *COFF*)
32559       DUMPBIN="$DUMPBIN -symbols"
32560       ;;
32561     *)
32562       DUMPBIN=:
32563       ;;
32564     esac
32565   fi
32566
32567   if test "$DUMPBIN" != ":"; then
32568     NM="$DUMPBIN"
32569   fi
32570 fi
32571 test -z "$NM" && NM=nm
32572
32573
32574
32575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
32576 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
32577 if test "${lt_cv_nm_interface+set}" = set; then :
32578   $as_echo_n "(cached) " >&6
32579 else
32580   lt_cv_nm_interface="BSD nm"
32581   echo "int some_variable = 0;" > conftest.$ac_ext
32582   (eval echo "\"\$as_me:32582: $ac_compile\"" >&5)
32583   (eval "$ac_compile" 2>conftest.err)
32584   cat conftest.err >&5
32585   (eval echo "\"\$as_me:32585: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
32586   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
32587   cat conftest.err >&5
32588   (eval echo "\"\$as_me:32588: output\"" >&5)
32589   cat conftest.out >&5
32590   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
32591     lt_cv_nm_interface="MS dumpbin"
32592   fi
32593   rm -f conftest*
32594 fi
32595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
32596 $as_echo "$lt_cv_nm_interface" >&6; }
32597
32598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
32599 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
32600 if test "${ac_cv_path_SED+set}" = set; then :
32601   $as_echo_n "(cached) " >&6
32602 else
32603             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
32604      for ac_i in 1 2 3 4 5 6 7; do
32605        ac_script="$ac_script$as_nl$ac_script"
32606      done
32607      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
32608      { ac_script=; unset ac_script;}
32609      if test -z "$SED"; then
32610   ac_path_SED_found=false
32611   # Loop through the user's path and test for each of PROGNAME-LIST
32612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32613 for as_dir in $PATH
32614 do
32615   IFS=$as_save_IFS
32616   test -z "$as_dir" && as_dir=.
32617     for ac_prog in sed gsed; do
32618     for ac_exec_ext in '' $ac_executable_extensions; do
32619       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
32620       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
32621 # Check for GNU ac_path_SED and select it if it is found.
32622   # Check for GNU $ac_path_SED
32623 case `"$ac_path_SED" --version 2>&1` in
32624 *GNU*)
32625   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
32626 *)
32627   ac_count=0
32628   $as_echo_n 0123456789 >"conftest.in"
32629   while :
32630   do
32631     cat "conftest.in" "conftest.in" >"conftest.tmp"
32632     mv "conftest.tmp" "conftest.in"
32633     cp "conftest.in" "conftest.nl"
32634     $as_echo '' >> "conftest.nl"
32635     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
32636     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
32637     as_fn_arith $ac_count + 1 && ac_count=$as_val
32638     if test $ac_count -gt ${ac_path_SED_max-0}; then
32639       # Best one so far, save it but keep looking for a better one
32640       ac_cv_path_SED="$ac_path_SED"
32641       ac_path_SED_max=$ac_count
32642     fi
32643     # 10*(2^10) chars as input seems more than enough
32644     test $ac_count -gt 10 && break
32645   done
32646   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
32647 esac
32648
32649       $ac_path_SED_found && break 3
32650     done
32651   done
32652   done
32653 IFS=$as_save_IFS
32654   if test -z "$ac_cv_path_SED"; then
32655     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
32656   fi
32657 else
32658   ac_cv_path_SED=$SED
32659 fi
32660
32661 fi
32662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
32663 $as_echo "$ac_cv_path_SED" >&6; }
32664  SED="$ac_cv_path_SED"
32665   rm -f conftest.sed
32666
32667
32668
32669
32670
32671 # Check for command to grab the raw symbol name followed by C symbol from nm.
32672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
32673 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
32674 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
32675   $as_echo_n "(cached) " >&6
32676 else
32677
32678 # These are sane defaults that work on at least a few old systems.
32679 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
32680
32681 # Character class describing NM global symbol codes.
32682 symcode='[BCDEGRST]'
32683
32684 # Regexp to match symbols that can be accessed directly from C.
32685 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
32686
32687 # Transform an extracted symbol line into a proper C declaration
32688 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
32689
32690 # Transform an extracted symbol line into symbol name and symbol address
32691 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
32692
32693 # Define system-specific variables.
32694 case $host_os in
32695 aix*)
32696   symcode='[BCDT]'
32697   ;;
32698 cygwin* | mingw* | pw32*)
32699   symcode='[ABCDGISTW]'
32700   ;;
32701 hpux*) # Its linker distinguishes data from code symbols
32702   if test "$host_cpu" = ia64; then
32703     symcode='[ABCDEGRST]'
32704   fi
32705   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
32706   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
32707   ;;
32708 linux* | k*bsd*-gnu)
32709   if test "$host_cpu" = ia64; then
32710     symcode='[ABCDGIRSTW]'
32711     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
32712     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
32713   fi
32714   ;;
32715 irix* | nonstopux*)
32716   symcode='[BCDEGRST]'
32717   ;;
32718 osf*)
32719   symcode='[BCDEGQRST]'
32720   ;;
32721 solaris*)
32722   symcode='[BDRT]'
32723   ;;
32724 sco3.2v5*)
32725   symcode='[DT]'
32726   ;;
32727 sysv4.2uw2*)
32728   symcode='[DT]'
32729   ;;
32730 sysv5* | sco5v6* | unixware* | OpenUNIX*)
32731   symcode='[ABDT]'
32732   ;;
32733 sysv4)
32734   symcode='[DFNSTU]'
32735   ;;
32736 esac
32737
32738 # Handle CRLF in mingw tool chain
32739 opt_cr=
32740 case $build_os in
32741 mingw*)
32742   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
32743   ;;
32744 esac
32745
32746 # If we're using GNU nm, then use its standard symbol codes.
32747 case `$NM -V 2>&1` in
32748 *GNU* | *'with BFD'*)
32749   symcode='[ABCDGIRSTW]' ;;
32750 esac
32751
32752 # Try without a prefix undercore, then with it.
32753 for ac_symprfx in "" "_"; do
32754
32755   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
32756   symxfrm="\\1 $ac_symprfx\\2 \\2"
32757
32758   # Write the raw and C identifiers.
32759   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
32760
32761   # Check to see that the pipe works correctly.
32762   pipe_works=no
32763
32764   rm -f conftest*
32765   cat > conftest.$ac_ext <<EOF
32766 #ifdef __cplusplus
32767 extern "C" {
32768 #endif
32769 char nm_test_var;
32770 void nm_test_func(){}
32771 #ifdef __cplusplus
32772 }
32773 #endif
32774 int main(){nm_test_var='a';nm_test_func();return(0);}
32775 EOF
32776
32777   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
32778   (eval $ac_compile) 2>&5
32779   ac_status=$?
32780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32781   test $ac_status = 0; }; then
32782     # Now try to grab the symbols.
32783     nlist=conftest.nm
32784     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
32785   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
32786   ac_status=$?
32787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32788   test $ac_status = 0; } && test -s "$nlist"; then
32789       # Try sorting and uniquifying the output.
32790       if sort "$nlist" | uniq > "$nlist"T; then
32791         mv -f "$nlist"T "$nlist"
32792       else
32793         rm -f "$nlist"T
32794       fi
32795
32796       # Make sure that we snagged all the symbols we need.
32797       if grep ' nm_test_var$' "$nlist" >/dev/null; then
32798         if grep ' nm_test_func$' "$nlist" >/dev/null; then
32799           cat <<EOF > conftest.$ac_ext
32800 #ifdef __cplusplus
32801 extern "C" {
32802 #endif
32803
32804 EOF
32805           # Now generate the symbol file.
32806           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
32807
32808           cat <<EOF >> conftest.$ac_ext
32809 #if defined (__STDC__) && __STDC__
32810 # define lt_ptr_t void *
32811 #else
32812 # define lt_ptr_t char *
32813 # define const
32814 #endif
32815
32816 /* The mapping between symbol names and symbols. */
32817 const struct {
32818   const char *name;
32819   lt_ptr_t address;
32820 }
32821 lt_preloaded_symbols[] =
32822 {
32823 EOF
32824           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
32825           cat <<\EOF >> conftest.$ac_ext
32826   {0, (lt_ptr_t) 0}
32827 };
32828
32829 #ifdef __cplusplus
32830 }
32831 #endif
32832 EOF
32833           # Now try linking the two files.
32834           mv conftest.$ac_objext conftstm.$ac_objext
32835           lt_save_LIBS="$LIBS"
32836           lt_save_CFLAGS="$CFLAGS"
32837           LIBS="conftstm.$ac_objext"
32838           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
32839           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
32840   (eval $ac_link) 2>&5
32841   ac_status=$?
32842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32843   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
32844             pipe_works=yes
32845           fi
32846           LIBS="$lt_save_LIBS"
32847           CFLAGS="$lt_save_CFLAGS"
32848         else
32849           echo "cannot find nm_test_func in $nlist" >&5
32850         fi
32851       else
32852         echo "cannot find nm_test_var in $nlist" >&5
32853       fi
32854     else
32855       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
32856     fi
32857   else
32858     echo "$progname: failed program was:" >&5
32859     cat conftest.$ac_ext >&5
32860   fi
32861   rm -rf conftest* conftst*
32862
32863   # Do not use the global_symbol_pipe unless it works.
32864   if test "$pipe_works" = yes; then
32865     break
32866   else
32867     lt_cv_sys_global_symbol_pipe=
32868   fi
32869 done
32870
32871 fi
32872
32873 if test -z "$lt_cv_sys_global_symbol_pipe"; then
32874   lt_cv_sys_global_symbol_to_cdecl=
32875 fi
32876 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
32877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
32878 $as_echo "failed" >&6; }
32879 else
32880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
32881 $as_echo "ok" >&6; }
32882 fi
32883
32884
32885
32886      GLOBAL_SYMBOL_PIPE=$lt_cv_sys_global_symbol_pipe
32887
32888   if test -n "$GLOBAL_SYMBOL_PIPE"; then
32889     HAVE_GLOBAL_SYMBOL_PIPE=1
32890   else
32891     HAVE_GLOBAL_SYMBOL_PIPE=
32892   fi
32893
32894
32895
32896 for ac_prog in gawk mawk nawk awk
32897 do
32898   # Extract the first word of "$ac_prog", so it can be a program name with args.
32899 set dummy $ac_prog; ac_word=$2
32900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32901 $as_echo_n "checking for $ac_word... " >&6; }
32902 if test "${ac_cv_prog_AWK+set}" = set; then :
32903   $as_echo_n "(cached) " >&6
32904 else
32905   if test -n "$AWK"; then
32906   ac_cv_prog_AWK="$AWK" # Let the user override the test.
32907 else
32908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32909 for as_dir in $PATH
32910 do
32911   IFS=$as_save_IFS
32912   test -z "$as_dir" && as_dir=.
32913     for ac_exec_ext in '' $ac_executable_extensions; do
32914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32915     ac_cv_prog_AWK="$ac_prog"
32916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32917     break 2
32918   fi
32919 done
32920   done
32921 IFS=$as_save_IFS
32922
32923 fi
32924 fi
32925 AWK=$ac_cv_prog_AWK
32926 if test -n "$AWK"; then
32927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
32928 $as_echo "$AWK" >&6; }
32929 else
32930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32931 $as_echo "no" >&6; }
32932 fi
32933
32934
32935   test -n "$AWK" && break
32936 done
32937
32938
32939 sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
32940 i\
32941 0
32942 q
32943 '
32944 sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
32945 i\
32946 0
32947 q
32948 '
32949
32950 version_major=`echo "${VERSION}" | sed -n -e "$sed_extract_major"`
32951 version_minor=`echo "${VERSION}" | sed -n -e "$sed_extract_minor"`
32952 HEXVERSION=0x`$AWK 'BEGIN { printf("%02d%02d"',"$version_major","$version_minor"') }'`
32953
32954
32955 ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
32956 # Extract the first word of "texi2dvi", so it can be a program name with args.
32957 set dummy texi2dvi; ac_word=$2
32958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32959 $as_echo_n "checking for $ac_word... " >&6; }
32960 if test "${ac_cv_path_TEXI2DVI+set}" = set; then :
32961   $as_echo_n "(cached) " >&6
32962 else
32963   case $TEXI2DVI in
32964   [\\/]* | ?:[\\/]*)
32965   ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
32966   ;;
32967   *)
32968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32969 for as_dir in $PATH
32970 do
32971   IFS=$as_save_IFS
32972   test -z "$as_dir" && as_dir=.
32973     for ac_exec_ext in '' $ac_executable_extensions; do
32974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32975     ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
32976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32977     break 2
32978   fi
32979 done
32980   done
32981 IFS=$as_save_IFS
32982
32983   test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI="$ac_aux_dir_abs/missing texi2dvi"
32984   ;;
32985 esac
32986 fi
32987 TEXI2DVI=$ac_cv_path_TEXI2DVI
32988 if test -n "$TEXI2DVI"; then
32989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5
32990 $as_echo "$TEXI2DVI" >&6; }
32991 else
32992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32993 $as_echo "no" >&6; }
32994 fi
32995
32996
32997 # Extract the first word of "dvips", so it can be a program name with args.
32998 set dummy dvips; ac_word=$2
32999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33000 $as_echo_n "checking for $ac_word... " >&6; }
33001 if test "${ac_cv_path_DVIPS+set}" = set; then :
33002   $as_echo_n "(cached) " >&6
33003 else
33004   case $DVIPS in
33005   [\\/]* | ?:[\\/]*)
33006   ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
33007   ;;
33008   *)
33009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33010 for as_dir in $PATH
33011 do
33012   IFS=$as_save_IFS
33013   test -z "$as_dir" && as_dir=.
33014     for ac_exec_ext in '' $ac_executable_extensions; do
33015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33016     ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
33017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33018     break 2
33019   fi
33020 done
33021   done
33022 IFS=$as_save_IFS
33023
33024   test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="$ac_aux_dir_abs/missing dvips"
33025   ;;
33026 esac
33027 fi
33028 DVIPS=$ac_cv_path_DVIPS
33029 if test -n "$DVIPS"; then
33030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
33031 $as_echo "$DVIPS" >&6; }
33032 else
33033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33034 $as_echo "no" >&6; }
33035 fi
33036
33037
33038 # Extract the first word of "perl", so it can be a program name with args.
33039 set dummy perl; ac_word=$2
33040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33041 $as_echo_n "checking for $ac_word... " >&6; }
33042 if test "${ac_cv_path_PERL+set}" = set; then :
33043   $as_echo_n "(cached) " >&6
33044 else
33045   case $PERL in
33046   [\\/]* | ?:[\\/]*)
33047   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33048   ;;
33049   *)
33050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33051 for as_dir in $PATH
33052 do
33053   IFS=$as_save_IFS
33054   test -z "$as_dir" && as_dir=.
33055     for ac_exec_ext in '' $ac_executable_extensions; do
33056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33057     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
33058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33059     break 2
33060   fi
33061 done
33062   done
33063 IFS=$as_save_IFS
33064
33065   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
33066   ;;
33067 esac
33068 fi
33069 PERL=$ac_cv_path_PERL
33070 if test -n "$PERL"; then
33071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
33072 $as_echo "$PERL" >&6; }
33073 else
33074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33075 $as_echo "no" >&6; }
33076 fi
33077
33078
33079
33080 ac_config_files="$ac_config_files Makefile"
33081
33082 ac_config_files="$ac_config_files doc/Makefile"
33083
33084 ac_config_files="$ac_config_files gnulib-local/Makefile"
33085
33086 ac_config_files="$ac_config_files lib/Makefile"
33087
33088 ac_config_files="$ac_config_files lib/exported.sh"
33089
33090 ac_config_files="$ac_config_files lib/unistring/version.h:lib/unistring/version.in.h"
33091
33092 ac_config_files="$ac_config_files lib/unistring/woe32dll.h:lib/unistring/woe32dll.in.h"
33093
33094 ac_config_files="$ac_config_files tests/Makefile"
33095
33096 cat >confcache <<\_ACEOF
33097 # This file is a shell script that caches the results of configure
33098 # tests run on this system so they can be shared between configure
33099 # scripts and configure runs, see configure's option --config-cache.
33100 # It is not useful on other systems.  If it contains results you don't
33101 # want to keep, you may remove or edit it.
33102 #
33103 # config.status only pays attention to the cache file if you give it
33104 # the --recheck option to rerun configure.
33105 #
33106 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33107 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33108 # following values.
33109
33110 _ACEOF
33111
33112 # The following way of writing the cache mishandles newlines in values,
33113 # but we know of no workaround that is simple, portable, and efficient.
33114 # So, we kill variables containing newlines.
33115 # Ultrix sh set writes to stderr and can't be redirected directly,
33116 # and sets the high bit in the cache file unless we assign to the vars.
33117 (
33118   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33119     eval ac_val=\$$ac_var
33120     case $ac_val in #(
33121     *${as_nl}*)
33122       case $ac_var in #(
33123       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33124 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33125       esac
33126       case $ac_var in #(
33127       _ | IFS | as_nl) ;; #(
33128       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
33129       *) { eval $ac_var=; unset $ac_var;} ;;
33130       esac ;;
33131     esac
33132   done
33133
33134   (set) 2>&1 |
33135     case $as_nl`(ac_space=' '; set) 2>&1` in #(
33136     *${as_nl}ac_space=\ *)
33137       # `set' does not quote correctly, so add quotes: double-quote
33138       # substitution turns \\\\ into \\, and sed turns \\ into \.
33139       sed -n \
33140         "s/'/'\\\\''/g;
33141           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33142       ;; #(
33143     *)
33144       # `set' quotes correctly as required by POSIX, so do not add quotes.
33145       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33146       ;;
33147     esac |
33148     sort
33149 ) |
33150   sed '
33151      /^ac_cv_env_/b end
33152      t clear
33153      :clear
33154      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33155      t end
33156      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33157      :end' >>confcache
33158 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33159   if test -w "$cache_file"; then
33160     test "x$cache_file" != "x/dev/null" &&
33161       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33162 $as_echo "$as_me: updating cache $cache_file" >&6;}
33163     cat confcache >$cache_file
33164   else
33165     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33166 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33167   fi
33168 fi
33169 rm -f confcache
33170
33171 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33172 # Let make expand exec_prefix.
33173 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33174
33175 DEFS=-DHAVE_CONFIG_H
33176
33177 ac_libobjs=
33178 ac_ltlibobjs=
33179 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33180   # 1. Remove the extension, and $U if already installed.
33181   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33182   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33183   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33184   #    will be set to the directory where LIBOBJS objects are built.
33185   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33186   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33187 done
33188 LIBOBJS=$ac_libobjs
33189
33190 LTLIBOBJS=$ac_ltlibobjs
33191
33192
33193  if test -n "$EXEEXT"; then
33194   am__EXEEXT_TRUE=
33195   am__EXEEXT_FALSE='#'
33196 else
33197   am__EXEEXT_TRUE='#'
33198   am__EXEEXT_FALSE=
33199 fi
33200
33201 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33202   as_fn_error "conditional \"AMDEP\" was never defined.
33203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33204 fi
33205 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33206   as_fn_error "conditional \"am__fastdepCC\" was never defined.
33207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33208 fi
33209 if test -z "${WOE32_TRUE}" && test -z "${WOE32_FALSE}"; then
33210   as_fn_error "conditional \"WOE32\" was never defined.
33211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33212 fi
33213 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
33214   as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
33215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33216 fi
33217
33218
33219
33220     gl_libobjs=
33221     gl_ltlibobjs=
33222     if test -n "$gl_LIBOBJS"; then
33223       # Remove the extension.
33224       sed_drop_objext='s/\.o$//;s/\.obj$//'
33225       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
33226         gl_libobjs="$gl_libobjs $i.$ac_objext"
33227         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
33228       done
33229     fi
33230     gl_LIBOBJS=$gl_libobjs
33231
33232     gl_LTLIBOBJS=$gl_ltlibobjs
33233
33234
33235
33236
33237     gltests_libobjs=
33238     gltests_ltlibobjs=
33239     if test -n "$gltests_LIBOBJS"; then
33240       # Remove the extension.
33241       sed_drop_objext='s/\.o$//;s/\.obj$//'
33242       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
33243         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
33244         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
33245       done
33246     fi
33247     gltests_LIBOBJS=$gltests_libobjs
33248
33249     gltests_LTLIBOBJS=$gltests_ltlibobjs
33250
33251
33252 if test -z "${WOE32DLL_TRUE}" && test -z "${WOE32DLL_FALSE}"; then
33253   as_fn_error "conditional \"WOE32DLL\" was never defined.
33254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33255 fi
33256
33257 : ${CONFIG_STATUS=./config.status}
33258 ac_write_fail=0
33259 ac_clean_files_save=$ac_clean_files
33260 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33261 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33262 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33263 as_write_fail=0
33264 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33265 #! $SHELL
33266 # Generated by $as_me.
33267 # Run this file to recreate the current configuration.
33268 # Compiler output produced by configure, useful for debugging
33269 # configure, is in config.log if it exists.
33270
33271 debug=false
33272 ac_cs_recheck=false
33273 ac_cs_silent=false
33274
33275 SHELL=\${CONFIG_SHELL-$SHELL}
33276 export SHELL
33277 _ASEOF
33278 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33279 ## -------------------- ##
33280 ## M4sh Initialization. ##
33281 ## -------------------- ##
33282
33283 # Be more Bourne compatible
33284 DUALCASE=1; export DUALCASE # for MKS sh
33285 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33286   emulate sh
33287   NULLCMD=:
33288   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33289   # is contrary to our usage.  Disable this feature.
33290   alias -g '${1+"$@"}'='"$@"'
33291   setopt NO_GLOB_SUBST
33292 else
33293   case `(set -o) 2>/dev/null` in #(
33294   *posix*) :
33295     set -o posix ;; #(
33296   *) :
33297      ;;
33298 esac
33299 fi
33300
33301
33302 as_nl='
33303 '
33304 export as_nl
33305 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33306 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33307 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33308 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33309 # Prefer a ksh shell builtin over an external printf program on Solaris,
33310 # but without wasting forks for bash or zsh.
33311 if test -z "$BASH_VERSION$ZSH_VERSION" \
33312     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33313   as_echo='print -r --'
33314   as_echo_n='print -rn --'
33315 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33316   as_echo='printf %s\n'
33317   as_echo_n='printf %s'
33318 else
33319   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33320     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33321     as_echo_n='/usr/ucb/echo -n'
33322   else
33323     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33324     as_echo_n_body='eval
33325       arg=$1;
33326       case $arg in #(
33327       *"$as_nl"*)
33328         expr "X$arg" : "X\\(.*\\)$as_nl";
33329         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33330       esac;
33331       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33332     '
33333     export as_echo_n_body
33334     as_echo_n='sh -c $as_echo_n_body as_echo'
33335   fi
33336   export as_echo_body
33337   as_echo='sh -c $as_echo_body as_echo'
33338 fi
33339
33340 # The user is always right.
33341 if test "${PATH_SEPARATOR+set}" != set; then
33342   PATH_SEPARATOR=:
33343   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33344     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33345       PATH_SEPARATOR=';'
33346   }
33347 fi
33348
33349
33350 # IFS
33351 # We need space, tab and new line, in precisely that order.  Quoting is
33352 # there to prevent editors from complaining about space-tab.
33353 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33354 # splitting by setting IFS to empty value.)
33355 IFS=" ""        $as_nl"
33356
33357 # Find who we are.  Look in the path if we contain no directory separator.
33358 case $0 in #((
33359   *[\\/]* ) as_myself=$0 ;;
33360   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33361 for as_dir in $PATH
33362 do
33363   IFS=$as_save_IFS
33364   test -z "$as_dir" && as_dir=.
33365     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33366   done
33367 IFS=$as_save_IFS
33368
33369      ;;
33370 esac
33371 # We did not find ourselves, most probably we were run as `sh COMMAND'
33372 # in which case we are not to be found in the path.
33373 if test "x$as_myself" = x; then
33374   as_myself=$0
33375 fi
33376 if test ! -f "$as_myself"; then
33377   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33378   exit 1
33379 fi
33380
33381 # Unset variables that we do not need and which cause bugs (e.g. in
33382 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
33383 # suppresses any "Segmentation fault" message there.  '((' could
33384 # trigger a bug in pdksh 5.2.14.
33385 for as_var in BASH_ENV ENV MAIL MAILPATH
33386 do eval test x\${$as_var+set} = xset \
33387   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33388 done
33389 PS1='$ '
33390 PS2='> '
33391 PS4='+ '
33392
33393 # NLS nuisances.
33394 LC_ALL=C
33395 export LC_ALL
33396 LANGUAGE=C
33397 export LANGUAGE
33398
33399 # CDPATH.
33400 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33401
33402
33403 # as_fn_error ERROR [LINENO LOG_FD]
33404 # ---------------------------------
33405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33407 # script with status $?, using 1 if that was 0.
33408 as_fn_error ()
33409 {
33410   as_status=$?; test $as_status -eq 0 && as_status=1
33411   if test "$3"; then
33412     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
33414   fi
33415   $as_echo "$as_me: error: $1" >&2
33416   as_fn_exit $as_status
33417 } # as_fn_error
33418
33419
33420 # as_fn_set_status STATUS
33421 # -----------------------
33422 # Set $? to STATUS, without forking.
33423 as_fn_set_status ()
33424 {
33425   return $1
33426 } # as_fn_set_status
33427
33428 # as_fn_exit STATUS
33429 # -----------------
33430 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33431 as_fn_exit ()
33432 {
33433   set +e
33434   as_fn_set_status $1
33435   exit $1
33436 } # as_fn_exit
33437
33438 # as_fn_unset VAR
33439 # ---------------
33440 # Portably unset VAR.
33441 as_fn_unset ()
33442 {
33443   { eval $1=; unset $1;}
33444 }
33445 as_unset=as_fn_unset
33446 # as_fn_append VAR VALUE
33447 # ----------------------
33448 # Append the text in VALUE to the end of the definition contained in VAR. Take
33449 # advantage of any shell optimizations that allow amortized linear growth over
33450 # repeated appends, instead of the typical quadratic growth present in naive
33451 # implementations.
33452 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33453   eval 'as_fn_append ()
33454   {
33455     eval $1+=\$2
33456   }'
33457 else
33458   as_fn_append ()
33459   {
33460     eval $1=\$$1\$2
33461   }
33462 fi # as_fn_append
33463
33464 # as_fn_arith ARG...
33465 # ------------------
33466 # Perform arithmetic evaluation on the ARGs, and store the result in the
33467 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33468 # must be portable across $(()) and expr.
33469 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33470   eval 'as_fn_arith ()
33471   {
33472     as_val=$(( $* ))
33473   }'
33474 else
33475   as_fn_arith ()
33476   {
33477     as_val=`expr "$@" || test $? -eq 1`
33478   }
33479 fi # as_fn_arith
33480
33481
33482 if expr a : '\(a\)' >/dev/null 2>&1 &&
33483    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33484   as_expr=expr
33485 else
33486   as_expr=false
33487 fi
33488
33489 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33490   as_basename=basename
33491 else
33492   as_basename=false
33493 fi
33494
33495 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33496   as_dirname=dirname
33497 else
33498   as_dirname=false
33499 fi
33500
33501 as_me=`$as_basename -- "$0" ||
33502 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33503          X"$0" : 'X\(//\)$' \| \
33504          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33505 $as_echo X/"$0" |
33506     sed '/^.*\/\([^/][^/]*\)\/*$/{
33507             s//\1/
33508             q
33509           }
33510           /^X\/\(\/\/\)$/{
33511             s//\1/
33512             q
33513           }
33514           /^X\/\(\/\).*/{
33515             s//\1/
33516             q
33517           }
33518           s/.*/./; q'`
33519
33520 # Avoid depending upon Character Ranges.
33521 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33522 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33523 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33524 as_cr_digits='0123456789'
33525 as_cr_alnum=$as_cr_Letters$as_cr_digits
33526
33527 ECHO_C= ECHO_N= ECHO_T=
33528 case `echo -n x` in #(((((
33529 -n*)
33530   case `echo 'xy\c'` in
33531   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
33532   xy)  ECHO_C='\c';;
33533   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
33534        ECHO_T=' ';;
33535   esac;;
33536 *)
33537   ECHO_N='-n';;
33538 esac
33539
33540 rm -f conf$$ conf$$.exe conf$$.file
33541 if test -d conf$$.dir; then
33542   rm -f conf$$.dir/conf$$.file
33543 else
33544   rm -f conf$$.dir
33545   mkdir conf$$.dir 2>/dev/null
33546 fi
33547 if (echo >conf$$.file) 2>/dev/null; then
33548   if ln -s conf$$.file conf$$ 2>/dev/null; then
33549     as_ln_s='ln -s'
33550     # ... but there are two gotchas:
33551     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33552     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33553     # In both cases, we have to default to `cp -p'.
33554     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33555       as_ln_s='cp -p'
33556   elif ln conf$$.file conf$$ 2>/dev/null; then
33557     as_ln_s=ln
33558   else
33559     as_ln_s='cp -p'
33560   fi
33561 else
33562   as_ln_s='cp -p'
33563 fi
33564 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33565 rmdir conf$$.dir 2>/dev/null
33566
33567
33568 # as_fn_mkdir_p
33569 # -------------
33570 # Create "$as_dir" as a directory, including parents if necessary.
33571 as_fn_mkdir_p ()
33572 {
33573
33574   case $as_dir in #(
33575   -*) as_dir=./$as_dir;;
33576   esac
33577   test -d "$as_dir" || eval $as_mkdir_p || {
33578     as_dirs=
33579     while :; do
33580       case $as_dir in #(
33581       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33582       *) as_qdir=$as_dir;;
33583       esac
33584       as_dirs="'$as_qdir' $as_dirs"
33585       as_dir=`$as_dirname -- "$as_dir" ||
33586 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33587          X"$as_dir" : 'X\(//\)[^/]' \| \
33588          X"$as_dir" : 'X\(//\)$' \| \
33589          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33590 $as_echo X"$as_dir" |
33591     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33592             s//\1/
33593             q
33594           }
33595           /^X\(\/\/\)[^/].*/{
33596             s//\1/
33597             q
33598           }
33599           /^X\(\/\/\)$/{
33600             s//\1/
33601             q
33602           }
33603           /^X\(\/\).*/{
33604             s//\1/
33605             q
33606           }
33607           s/.*/./; q'`
33608       test -d "$as_dir" && break
33609     done
33610     test -z "$as_dirs" || eval "mkdir $as_dirs"
33611   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
33612
33613
33614 } # as_fn_mkdir_p
33615 if mkdir -p . 2>/dev/null; then
33616   as_mkdir_p='mkdir -p "$as_dir"'
33617 else
33618   test -d ./-p && rmdir ./-p
33619   as_mkdir_p=false
33620 fi
33621
33622 if test -x / >/dev/null 2>&1; then
33623   as_test_x='test -x'
33624 else
33625   if ls -dL / >/dev/null 2>&1; then
33626     as_ls_L_option=L
33627   else
33628     as_ls_L_option=
33629   fi
33630   as_test_x='
33631     eval sh -c '\''
33632       if test -d "$1"; then
33633         test -d "$1/.";
33634       else
33635         case $1 in #(
33636         -*)set "./$1";;
33637         esac;
33638         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
33639         ???[sx]*):;;*)false;;esac;fi
33640     '\'' sh
33641   '
33642 fi
33643 as_executable_p=$as_test_x
33644
33645 # Sed expression to map a string onto a valid CPP name.
33646 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33647
33648 # Sed expression to map a string onto a valid variable name.
33649 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33650
33651
33652 exec 6>&1
33653 ## ----------------------------------- ##
33654 ## Main body of $CONFIG_STATUS script. ##
33655 ## ----------------------------------- ##
33656 _ASEOF
33657 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33658
33659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33660 # Save the log message, to keep $0 and so on meaningful, and to
33661 # report actual input values of CONFIG_FILES etc. instead of their
33662 # values after options handling.
33663 ac_log="
33664 This file was extended by $as_me, which was
33665 generated by GNU Autoconf 2.65.  Invocation command line was
33666
33667   CONFIG_FILES    = $CONFIG_FILES
33668   CONFIG_HEADERS  = $CONFIG_HEADERS
33669   CONFIG_LINKS    = $CONFIG_LINKS
33670   CONFIG_COMMANDS = $CONFIG_COMMANDS
33671   $ $0 $@
33672
33673 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33674 "
33675
33676 _ACEOF
33677
33678 case $ac_config_files in *"
33679 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33680 esac
33681
33682 case $ac_config_headers in *"
33683 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33684 esac
33685
33686
33687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33688 # Files that config.status was made for.
33689 config_files="$ac_config_files"
33690 config_headers="$ac_config_headers"
33691 config_commands="$ac_config_commands"
33692
33693 _ACEOF
33694
33695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33696 ac_cs_usage="\
33697 \`$as_me' instantiates files and other configuration actions
33698 from templates according to the current configuration.  Unless the files
33699 and actions are specified as TAGs, all are instantiated by default.
33700
33701 Usage: $0 [OPTION]... [TAG]...
33702
33703   -h, --help       print this help, then exit
33704   -V, --version    print version number and configuration settings, then exit
33705       --config     print configuration, then exit
33706   -q, --quiet, --silent
33707                    do not print progress messages
33708   -d, --debug      don't remove temporary files
33709       --recheck    update $as_me by reconfiguring in the same conditions
33710       --file=FILE[:TEMPLATE]
33711                    instantiate the configuration file FILE
33712       --header=FILE[:TEMPLATE]
33713                    instantiate the configuration header FILE
33714
33715 Configuration files:
33716 $config_files
33717
33718 Configuration headers:
33719 $config_headers
33720
33721 Configuration commands:
33722 $config_commands
33723
33724 Report bugs to the package provider."
33725
33726 _ACEOF
33727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33728 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33729 ac_cs_version="\\
33730 config.status
33731 configured by $0, generated by GNU Autoconf 2.65,
33732   with options \\"\$ac_cs_config\\"
33733
33734 Copyright (C) 2009 Free Software Foundation, Inc.
33735 This config.status script is free software; the Free Software Foundation
33736 gives unlimited permission to copy, distribute and modify it."
33737
33738 ac_pwd='$ac_pwd'
33739 srcdir='$srcdir'
33740 INSTALL='$INSTALL'
33741 MKDIR_P='$MKDIR_P'
33742 AWK='$AWK'
33743 test -n "\$AWK" || AWK=awk
33744 _ACEOF
33745
33746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33747 # The default lists apply if the user does not specify any file.
33748 ac_need_defaults=:
33749 while test $# != 0
33750 do
33751   case $1 in
33752   --*=*)
33753     ac_option=`expr "X$1" : 'X\([^=]*\)='`
33754     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33755     ac_shift=:
33756     ;;
33757   *)
33758     ac_option=$1
33759     ac_optarg=$2
33760     ac_shift=shift
33761     ;;
33762   esac
33763
33764   case $ac_option in
33765   # Handling of the options.
33766   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33767     ac_cs_recheck=: ;;
33768   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33769     $as_echo "$ac_cs_version"; exit ;;
33770   --config | --confi | --conf | --con | --co | --c )
33771     $as_echo "$ac_cs_config"; exit ;;
33772   --debug | --debu | --deb | --de | --d | -d )
33773     debug=: ;;
33774   --file | --fil | --fi | --f )
33775     $ac_shift
33776     case $ac_optarg in
33777     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33778     esac
33779     as_fn_append CONFIG_FILES " '$ac_optarg'"
33780     ac_need_defaults=false;;
33781   --header | --heade | --head | --hea )
33782     $ac_shift
33783     case $ac_optarg in
33784     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33785     esac
33786     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33787     ac_need_defaults=false;;
33788   --he | --h)
33789     # Conflict between --help and --header
33790     as_fn_error "ambiguous option: \`$1'
33791 Try \`$0 --help' for more information.";;
33792   --help | --hel | -h )
33793     $as_echo "$ac_cs_usage"; exit ;;
33794   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33795   | -silent | --silent | --silen | --sile | --sil | --si | --s)
33796     ac_cs_silent=: ;;
33797
33798   # This is an error.
33799   -*) as_fn_error "unrecognized option: \`$1'
33800 Try \`$0 --help' for more information." ;;
33801
33802   *) as_fn_append ac_config_targets " $1"
33803      ac_need_defaults=false ;;
33804
33805   esac
33806   shift
33807 done
33808
33809 ac_configure_extra_args=
33810
33811 if $ac_cs_silent; then
33812   exec 6>/dev/null
33813   ac_configure_extra_args="$ac_configure_extra_args --silent"
33814 fi
33815
33816 _ACEOF
33817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33818 if \$ac_cs_recheck; then
33819   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33820   shift
33821   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33822   CONFIG_SHELL='$SHELL'
33823   export CONFIG_SHELL
33824   exec "\$@"
33825 fi
33826
33827 _ACEOF
33828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33829 exec 5>>config.log
33830 {
33831   echo
33832   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33833 ## Running $as_me. ##
33834 _ASBOX
33835   $as_echo "$ac_log"
33836 } >&5
33837
33838 _ACEOF
33839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33840 #
33841 # INIT-COMMANDS
33842 #
33843 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33844
33845
33846 # The HP-UX ksh and POSIX shell print the target directory to stdout
33847 # if CDPATH is set.
33848 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33849
33850 sed_quote_subst='$sed_quote_subst'
33851 double_quote_subst='$double_quote_subst'
33852 delay_variable_subst='$delay_variable_subst'
33853 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
33854 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
33855 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
33856 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33857 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
33858 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
33859 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
33860 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
33861 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
33862 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
33863 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
33864 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
33865 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
33866 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
33867 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
33868 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
33869 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
33870 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
33871 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
33872 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
33873 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
33874 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
33875 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
33876 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
33877 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
33878 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
33879 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
33880 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
33881 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
33882 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
33883 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33884 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
33885 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
33886 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
33887 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33888 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
33889 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
33890 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33891 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33892 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33893 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
33894 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33895 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
33896 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
33897 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
33898 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
33899 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
33900 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33901 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
33902 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
33903 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
33904 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
33905 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
33906 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
33907 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
33908 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
33909 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
33910 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
33911 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
33912 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
33913 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
33914 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33915 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
33916 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
33917 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33918 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33919 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
33920 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
33921 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33922 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33923 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
33924 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33925 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33926 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33927 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33928 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33929 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33930 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
33931 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33932 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33933 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33934 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33935 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33936 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33937 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33938 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33939 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33940 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33941 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33942 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33943 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33944 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33945 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33946 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33947 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33948 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33949 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33950 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33951 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33952 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33953 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33954 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33955 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33956 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33957 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33958 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33959 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33960 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33961 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33962 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33963 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33964 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33965 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33966 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33967 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33968 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33969 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33970 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33971 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33972 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33973 LD_RC='`$ECHO "X$LD_RC" | $Xsed -e "$delay_single_quote_subst"`'
33974 old_archive_cmds_RC='`$ECHO "X$old_archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
33975 compiler_RC='`$ECHO "X$compiler_RC" | $Xsed -e "$delay_single_quote_subst"`'
33976 GCC_RC='`$ECHO "X$GCC_RC" | $Xsed -e "$delay_single_quote_subst"`'
33977 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
33978 lt_prog_compiler_wl_RC='`$ECHO "X$lt_prog_compiler_wl_RC" | $Xsed -e "$delay_single_quote_subst"`'
33979 lt_prog_compiler_pic_RC='`$ECHO "X$lt_prog_compiler_pic_RC" | $Xsed -e "$delay_single_quote_subst"`'
33980 lt_prog_compiler_static_RC='`$ECHO "X$lt_prog_compiler_static_RC" | $Xsed -e "$delay_single_quote_subst"`'
33981 lt_cv_prog_compiler_c_o_RC='`$ECHO "X$lt_cv_prog_compiler_c_o_RC" | $Xsed -e "$delay_single_quote_subst"`'
33982 archive_cmds_need_lc_RC='`$ECHO "X$archive_cmds_need_lc_RC" | $Xsed -e "$delay_single_quote_subst"`'
33983 enable_shared_with_static_runtimes_RC='`$ECHO "X$enable_shared_with_static_runtimes_RC" | $Xsed -e "$delay_single_quote_subst"`'
33984 export_dynamic_flag_spec_RC='`$ECHO "X$export_dynamic_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
33985 whole_archive_flag_spec_RC='`$ECHO "X$whole_archive_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
33986 compiler_needs_object_RC='`$ECHO "X$compiler_needs_object_RC" | $Xsed -e "$delay_single_quote_subst"`'
33987 old_archive_from_new_cmds_RC='`$ECHO "X$old_archive_from_new_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
33988 old_archive_from_expsyms_cmds_RC='`$ECHO "X$old_archive_from_expsyms_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
33989 archive_cmds_RC='`$ECHO "X$archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
33990 archive_expsym_cmds_RC='`$ECHO "X$archive_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
33991 module_cmds_RC='`$ECHO "X$module_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
33992 module_expsym_cmds_RC='`$ECHO "X$module_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
33993 with_gnu_ld_RC='`$ECHO "X$with_gnu_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
33994 allow_undefined_flag_RC='`$ECHO "X$allow_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
33995 no_undefined_flag_RC='`$ECHO "X$no_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
33996 hardcode_libdir_flag_spec_RC='`$ECHO "X$hardcode_libdir_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
33997 hardcode_libdir_flag_spec_ld_RC='`$ECHO "X$hardcode_libdir_flag_spec_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
33998 hardcode_libdir_separator_RC='`$ECHO "X$hardcode_libdir_separator_RC" | $Xsed -e "$delay_single_quote_subst"`'
33999 hardcode_direct_RC='`$ECHO "X$hardcode_direct_RC" | $Xsed -e "$delay_single_quote_subst"`'
34000 hardcode_direct_absolute_RC='`$ECHO "X$hardcode_direct_absolute_RC" | $Xsed -e "$delay_single_quote_subst"`'
34001 hardcode_minus_L_RC='`$ECHO "X$hardcode_minus_L_RC" | $Xsed -e "$delay_single_quote_subst"`'
34002 hardcode_shlibpath_var_RC='`$ECHO "X$hardcode_shlibpath_var_RC" | $Xsed -e "$delay_single_quote_subst"`'
34003 hardcode_automatic_RC='`$ECHO "X$hardcode_automatic_RC" | $Xsed -e "$delay_single_quote_subst"`'
34004 inherit_rpath_RC='`$ECHO "X$inherit_rpath_RC" | $Xsed -e "$delay_single_quote_subst"`'
34005 link_all_deplibs_RC='`$ECHO "X$link_all_deplibs_RC" | $Xsed -e "$delay_single_quote_subst"`'
34006 fix_srcfile_path_RC='`$ECHO "X$fix_srcfile_path_RC" | $Xsed -e "$delay_single_quote_subst"`'
34007 always_export_symbols_RC='`$ECHO "X$always_export_symbols_RC" | $Xsed -e "$delay_single_quote_subst"`'
34008 export_symbols_cmds_RC='`$ECHO "X$export_symbols_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
34009 exclude_expsyms_RC='`$ECHO "X$exclude_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
34010 include_expsyms_RC='`$ECHO "X$include_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
34011 prelink_cmds_RC='`$ECHO "X$prelink_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
34012 file_list_spec_RC='`$ECHO "X$file_list_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
34013 hardcode_action_RC='`$ECHO "X$hardcode_action_RC" | $Xsed -e "$delay_single_quote_subst"`'
34014
34015 LTCC='$LTCC'
34016 LTCFLAGS='$LTCFLAGS'
34017 compiler='$compiler_DEFAULT'
34018
34019 # Quote evaled strings.
34020 for var in SED \
34021 GREP \
34022 EGREP \
34023 FGREP \
34024 LD \
34025 NM \
34026 LN_S \
34027 lt_SP2NL \
34028 lt_NL2SP \
34029 reload_flag \
34030 deplibs_check_method \
34031 file_magic_cmd \
34032 AR \
34033 AR_FLAGS \
34034 STRIP \
34035 RANLIB \
34036 CC \
34037 CFLAGS \
34038 compiler \
34039 lt_cv_sys_global_symbol_pipe \
34040 lt_cv_sys_global_symbol_to_cdecl \
34041 lt_cv_sys_global_symbol_to_c_name_address \
34042 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34043 SHELL \
34044 ECHO \
34045 lt_prog_compiler_no_builtin_flag \
34046 lt_prog_compiler_wl \
34047 lt_prog_compiler_pic \
34048 lt_prog_compiler_static \
34049 lt_cv_prog_compiler_c_o \
34050 need_locks \
34051 DSYMUTIL \
34052 NMEDIT \
34053 LIPO \
34054 OTOOL \
34055 OTOOL64 \
34056 shrext_cmds \
34057 export_dynamic_flag_spec \
34058 whole_archive_flag_spec \
34059 compiler_needs_object \
34060 with_gnu_ld \
34061 allow_undefined_flag \
34062 no_undefined_flag \
34063 hardcode_libdir_flag_spec \
34064 hardcode_libdir_flag_spec_ld \
34065 hardcode_libdir_separator \
34066 fix_srcfile_path \
34067 exclude_expsyms \
34068 include_expsyms \
34069 file_list_spec \
34070 variables_saved_for_relink \
34071 libname_spec \
34072 library_names_spec \
34073 soname_spec \
34074 finish_eval \
34075 old_striplib \
34076 striplib \
34077 LD_RC \
34078 compiler_RC \
34079 lt_prog_compiler_no_builtin_flag_RC \
34080 lt_prog_compiler_wl_RC \
34081 lt_prog_compiler_pic_RC \
34082 lt_prog_compiler_static_RC \
34083 lt_cv_prog_compiler_c_o_RC \
34084 export_dynamic_flag_spec_RC \
34085 whole_archive_flag_spec_RC \
34086 compiler_needs_object_RC \
34087 with_gnu_ld_RC \
34088 allow_undefined_flag_RC \
34089 no_undefined_flag_RC \
34090 hardcode_libdir_flag_spec_RC \
34091 hardcode_libdir_flag_spec_ld_RC \
34092 hardcode_libdir_separator_RC \
34093 fix_srcfile_path_RC \
34094 exclude_expsyms_RC \
34095 include_expsyms_RC \
34096 file_list_spec_RC; do
34097     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
34098     *[\\\\\\\`\\"\\\$]*)
34099       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
34100       ;;
34101     *)
34102       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34103       ;;
34104     esac
34105 done
34106
34107 # Double-quote double-evaled strings.
34108 for var in reload_cmds \
34109 old_postinstall_cmds \
34110 old_postuninstall_cmds \
34111 old_archive_cmds \
34112 extract_expsyms_cmds \
34113 old_archive_from_new_cmds \
34114 old_archive_from_expsyms_cmds \
34115 archive_cmds \
34116 archive_expsym_cmds \
34117 module_cmds \
34118 module_expsym_cmds \
34119 export_symbols_cmds \
34120 prelink_cmds \
34121 postinstall_cmds \
34122 postuninstall_cmds \
34123 finish_cmds \
34124 sys_lib_search_path_spec \
34125 sys_lib_dlsearch_path_spec \
34126 old_archive_cmds_RC \
34127 old_archive_from_new_cmds_RC \
34128 old_archive_from_expsyms_cmds_RC \
34129 archive_cmds_RC \
34130 archive_expsym_cmds_RC \
34131 module_cmds_RC \
34132 module_expsym_cmds_RC \
34133 export_symbols_cmds_RC \
34134 prelink_cmds_RC; do
34135     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
34136     *[\\\\\\\`\\"\\\$]*)
34137       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
34138       ;;
34139     *)
34140       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34141       ;;
34142     esac
34143 done
34144
34145 # Fix-up fallback echo if it was mangled by the above quoting rules.
34146 case \$lt_ECHO in
34147 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
34148   ;;
34149 esac
34150
34151 ac_aux_dir='$ac_aux_dir'
34152 xsi_shell='$xsi_shell'
34153 lt_shell_append='$lt_shell_append'
34154
34155 # See if we are running on zsh, and set the options which allow our
34156 # commands through without removal of \ escapes INIT.
34157 if test -n "\${ZSH_VERSION+set}" ; then
34158    setopt NO_GLOB_SUBST
34159 fi
34160
34161
34162     PACKAGE='$PACKAGE'
34163     VERSION='$VERSION'
34164     TIMESTAMP='$TIMESTAMP'
34165     RM='$RM'
34166     ofile='$ofile'
34167
34168
34169
34170
34171
34172
34173 _ACEOF
34174
34175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34176
34177 # Handling of arguments.
34178 for ac_config_target in $ac_config_targets
34179 do
34180   case $ac_config_target in
34181     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
34182     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34183     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34184     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34185     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
34186     "gnulib-local/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-local/Makefile" ;;
34187     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
34188     "lib/exported.sh") CONFIG_FILES="$CONFIG_FILES lib/exported.sh" ;;
34189     "lib/unistring/version.h") CONFIG_FILES="$CONFIG_FILES lib/unistring/version.h:lib/unistring/version.in.h" ;;
34190     "lib/unistring/woe32dll.h") CONFIG_FILES="$CONFIG_FILES lib/unistring/woe32dll.h:lib/unistring/woe32dll.in.h" ;;
34191     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
34192
34193   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34194   esac
34195 done
34196
34197
34198 # If the user did not use the arguments to specify the items to instantiate,
34199 # then the envvar interface is used.  Set only those that are not.
34200 # We use the long form for the default assignment because of an extremely
34201 # bizarre bug on SunOS 4.1.3.
34202 if $ac_need_defaults; then
34203   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34204   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34205   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34206 fi
34207
34208 # Have a temporary directory for convenience.  Make it in the build tree
34209 # simply because there is no reason against having it here, and in addition,
34210 # creating and moving files from /tmp can sometimes cause problems.
34211 # Hook for its removal unless debugging.
34212 # Note that there is a small window in which the directory will not be cleaned:
34213 # after its creation but before its name has been assigned to `$tmp'.
34214 $debug ||
34215 {
34216   tmp=
34217   trap 'exit_status=$?
34218   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34219 ' 0
34220   trap 'as_fn_exit 1' 1 2 13 15
34221 }
34222 # Create a (secure) tmp directory for tmp files.
34223
34224 {
34225   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34226   test -n "$tmp" && test -d "$tmp"
34227 }  ||
34228 {
34229   tmp=./conf$$-$RANDOM
34230   (umask 077 && mkdir "$tmp")
34231 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
34232
34233 # Set up the scripts for CONFIG_FILES section.
34234 # No need to generate them if there are no CONFIG_FILES.
34235 # This happens for instance with `./config.status config.h'.
34236 if test -n "$CONFIG_FILES"; then
34237
34238
34239 ac_cr=`echo X | tr X '\015'`
34240 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34241 # But we know of no other shell where ac_cr would be empty at this
34242 # point, so we can use a bashism as a fallback.
34243 if test "x$ac_cr" = x; then
34244   eval ac_cr=\$\'\\r\'
34245 fi
34246 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34247 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34248   ac_cs_awk_cr='\r'
34249 else
34250   ac_cs_awk_cr=$ac_cr
34251 fi
34252
34253 echo 'BEGIN {' >"$tmp/subs1.awk" &&
34254 _ACEOF
34255
34256
34257 {
34258   echo "cat >conf$$subs.awk <<_ACEOF" &&
34259   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34260   echo "_ACEOF"
34261 } >conf$$subs.sh ||
34262   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34263 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
34264 ac_delim='%!_!# '
34265 for ac_last_try in false false false false false :; do
34266   . ./conf$$subs.sh ||
34267     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34268
34269   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34270   if test $ac_delim_n = $ac_delim_num; then
34271     break
34272   elif $ac_last_try; then
34273     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34274   else
34275     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34276   fi
34277 done
34278 rm -f conf$$subs.sh
34279
34280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34281 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34282 _ACEOF
34283 sed -n '
34284 h
34285 s/^/S["/; s/!.*/"]=/
34286 p
34287 g
34288 s/^[^!]*!//
34289 :repl
34290 t repl
34291 s/'"$ac_delim"'$//
34292 t delim
34293 :nl
34294 h
34295 s/\(.\{148\}\)..*/\1/
34296 t more1
34297 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34298 p
34299 n
34300 b repl
34301 :more1
34302 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34303 p
34304 g
34305 s/.\{148\}//
34306 t nl
34307 :delim
34308 h
34309 s/\(.\{148\}\)..*/\1/
34310 t more2
34311 s/["\\]/\\&/g; s/^/"/; s/$/"/
34312 p
34313 b
34314 :more2
34315 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34316 p
34317 g
34318 s/.\{148\}//
34319 t delim
34320 ' <conf$$subs.awk | sed '
34321 /^[^""]/{
34322   N
34323   s/\n//
34324 }
34325 ' >>$CONFIG_STATUS || ac_write_fail=1
34326 rm -f conf$$subs.awk
34327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34328 _ACAWK
34329 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34330   for (key in S) S_is_set[key] = 1
34331   FS = "\a"
34332
34333 }
34334 {
34335   line = $ 0
34336   nfields = split(line, field, "@")
34337   substed = 0
34338   len = length(field[1])
34339   for (i = 2; i < nfields; i++) {
34340     key = field[i]
34341     keylen = length(key)
34342     if (S_is_set[key]) {
34343       value = S[key]
34344       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34345       len += length(value) + length(field[++i])
34346       substed = 1
34347     } else
34348       len += 1 + keylen
34349   }
34350
34351   print line
34352 }
34353
34354 _ACAWK
34355 _ACEOF
34356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34357 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34358   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34359 else
34360   cat
34361 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
34362   || as_fn_error "could not setup config files machinery" "$LINENO" 5
34363 _ACEOF
34364
34365 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34366 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34367 # trailing colons and then remove the whole line if VPATH becomes empty
34368 # (actually we leave an empty line to preserve line numbers).
34369 if test "x$srcdir" = x.; then
34370   ac_vpsub='/^[  ]*VPATH[        ]*=/{
34371 s/:*\$(srcdir):*/:/
34372 s/:*\${srcdir}:*/:/
34373 s/:*@srcdir@:*/:/
34374 s/^\([^=]*=[     ]*\):*/\1/
34375 s/:*$//
34376 s/^[^=]*=[       ]*$//
34377 }'
34378 fi
34379
34380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34381 fi # test -n "$CONFIG_FILES"
34382
34383 # Set up the scripts for CONFIG_HEADERS section.
34384 # No need to generate them if there are no CONFIG_HEADERS.
34385 # This happens for instance with `./config.status Makefile'.
34386 if test -n "$CONFIG_HEADERS"; then
34387 cat >"$tmp/defines.awk" <<\_ACAWK ||
34388 BEGIN {
34389 _ACEOF
34390
34391 # Transform confdefs.h into an awk script `defines.awk', embedded as
34392 # here-document in config.status, that substitutes the proper values into
34393 # config.h.in to produce config.h.
34394
34395 # Create a delimiter string that does not exist in confdefs.h, to ease
34396 # handling of long lines.
34397 ac_delim='%!_!# '
34398 for ac_last_try in false false :; do
34399   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34400   if test -z "$ac_t"; then
34401     break
34402   elif $ac_last_try; then
34403     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
34404   else
34405     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34406   fi
34407 done
34408
34409 # For the awk script, D is an array of macro values keyed by name,
34410 # likewise P contains macro parameters if any.  Preserve backslash
34411 # newline sequences.
34412
34413 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34414 sed -n '
34415 s/.\{148\}/&'"$ac_delim"'/g
34416 t rset
34417 :rset
34418 s/^[     ]*#[    ]*define[       ][      ]*/ /
34419 t def
34420 d
34421 :def
34422 s/\\$//
34423 t bsnl
34424 s/["\\]/\\&/g
34425 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
34426 D["\1"]=" \3"/p
34427 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
34428 d
34429 :bsnl
34430 s/["\\]/\\&/g
34431 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
34432 D["\1"]=" \3\\\\\\n"\\/p
34433 t cont
34434 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34435 t cont
34436 d
34437 :cont
34438 n
34439 s/.\{148\}/&'"$ac_delim"'/g
34440 t clear
34441 :clear
34442 s/\\$//
34443 t bsnlc
34444 s/["\\]/\\&/g; s/^/"/; s/$/"/p
34445 d
34446 :bsnlc
34447 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34448 b cont
34449 ' <confdefs.h | sed '
34450 s/'"$ac_delim"'/"\\\
34451 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34452
34453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34454   for (key in D) D_is_set[key] = 1
34455   FS = "\a"
34456 }
34457 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34458   line = \$ 0
34459   split(line, arg, " ")
34460   if (arg[1] == "#") {
34461     defundef = arg[2]
34462     mac1 = arg[3]
34463   } else {
34464     defundef = substr(arg[1], 2)
34465     mac1 = arg[2]
34466   }
34467   split(mac1, mac2, "(") #)
34468   macro = mac2[1]
34469   prefix = substr(line, 1, index(line, defundef) - 1)
34470   if (D_is_set[macro]) {
34471     # Preserve the white space surrounding the "#".
34472     print prefix "define", macro P[macro] D[macro]
34473     next
34474   } else {
34475     # Replace #undef with comments.  This is necessary, for example,
34476     # in the case of _POSIX_SOURCE, which is predefined and required
34477     # on some systems where configure will not decide to define it.
34478     if (defundef == "undef") {
34479       print "/*", prefix defundef, macro, "*/"
34480       next
34481     }
34482   }
34483 }
34484 { print }
34485 _ACAWK
34486 _ACEOF
34487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34488   as_fn_error "could not setup config headers machinery" "$LINENO" 5
34489 fi # test -n "$CONFIG_HEADERS"
34490
34491
34492 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
34493 shift
34494 for ac_tag
34495 do
34496   case $ac_tag in
34497   :[FHLC]) ac_mode=$ac_tag; continue;;
34498   esac
34499   case $ac_mode$ac_tag in
34500   :[FHL]*:*);;
34501   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
34502   :[FH]-) ac_tag=-:-;;
34503   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34504   esac
34505   ac_save_IFS=$IFS
34506   IFS=:
34507   set x $ac_tag
34508   IFS=$ac_save_IFS
34509   shift
34510   ac_file=$1
34511   shift
34512
34513   case $ac_mode in
34514   :L) ac_source=$1;;
34515   :[FH])
34516     ac_file_inputs=
34517     for ac_f
34518     do
34519       case $ac_f in
34520       -) ac_f="$tmp/stdin";;
34521       *) # Look for the file first in the build tree, then in the source tree
34522          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34523          # because $ac_f cannot contain `:'.
34524          test -f "$ac_f" ||
34525            case $ac_f in
34526            [\\/$]*) false;;
34527            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34528            esac ||
34529            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34530       esac
34531       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34532       as_fn_append ac_file_inputs " '$ac_f'"
34533     done
34534
34535     # Let's still pretend it is `configure' which instantiates (i.e., don't
34536     # use $as_me), people would be surprised to read:
34537     #    /* config.h.  Generated by config.status.  */
34538     configure_input='Generated from '`
34539           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34540         `' by configure.'
34541     if test x"$ac_file" != x-; then
34542       configure_input="$ac_file.  $configure_input"
34543       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34544 $as_echo "$as_me: creating $ac_file" >&6;}
34545     fi
34546     # Neutralize special characters interpreted by sed in replacement strings.
34547     case $configure_input in #(
34548     *\&* | *\|* | *\\* )
34549        ac_sed_conf_input=`$as_echo "$configure_input" |
34550        sed 's/[\\\\&|]/\\\\&/g'`;; #(
34551     *) ac_sed_conf_input=$configure_input;;
34552     esac
34553
34554     case $ac_tag in
34555     *:-:* | *:-) cat >"$tmp/stdin" \
34556       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
34557     esac
34558     ;;
34559   esac
34560
34561   ac_dir=`$as_dirname -- "$ac_file" ||
34562 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34563          X"$ac_file" : 'X\(//\)[^/]' \| \
34564          X"$ac_file" : 'X\(//\)$' \| \
34565          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34566 $as_echo X"$ac_file" |
34567     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34568             s//\1/
34569             q
34570           }
34571           /^X\(\/\/\)[^/].*/{
34572             s//\1/
34573             q
34574           }
34575           /^X\(\/\/\)$/{
34576             s//\1/
34577             q
34578           }
34579           /^X\(\/\).*/{
34580             s//\1/
34581             q
34582           }
34583           s/.*/./; q'`
34584   as_dir="$ac_dir"; as_fn_mkdir_p
34585   ac_builddir=.
34586
34587 case "$ac_dir" in
34588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34589 *)
34590   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34591   # A ".." for each directory in $ac_dir_suffix.
34592   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34593   case $ac_top_builddir_sub in
34594   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34595   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34596   esac ;;
34597 esac
34598 ac_abs_top_builddir=$ac_pwd
34599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34600 # for backward compatibility:
34601 ac_top_builddir=$ac_top_build_prefix
34602
34603 case $srcdir in
34604   .)  # We are building in place.
34605     ac_srcdir=.
34606     ac_top_srcdir=$ac_top_builddir_sub
34607     ac_abs_top_srcdir=$ac_pwd ;;
34608   [\\/]* | ?:[\\/]* )  # Absolute name.
34609     ac_srcdir=$srcdir$ac_dir_suffix;
34610     ac_top_srcdir=$srcdir
34611     ac_abs_top_srcdir=$srcdir ;;
34612   *) # Relative name.
34613     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34614     ac_top_srcdir=$ac_top_build_prefix$srcdir
34615     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34616 esac
34617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34618
34619
34620   case $ac_mode in
34621   :F)
34622   #
34623   # CONFIG_FILE
34624   #
34625
34626   case $INSTALL in
34627   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34628   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34629   esac
34630   ac_MKDIR_P=$MKDIR_P
34631   case $MKDIR_P in
34632   [\\/$]* | ?:[\\/]* ) ;;
34633   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34634   esac
34635 _ACEOF
34636
34637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34638 # If the template does not know about datarootdir, expand it.
34639 # FIXME: This hack should be removed a few years after 2.60.
34640 ac_datarootdir_hack=; ac_datarootdir_seen=
34641 ac_sed_dataroot='
34642 /datarootdir/ {
34643   p
34644   q
34645 }
34646 /@datadir@/p
34647 /@docdir@/p
34648 /@infodir@/p
34649 /@localedir@/p
34650 /@mandir@/p'
34651 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34652 *datarootdir*) ac_datarootdir_seen=yes;;
34653 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34654   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34655 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34656 _ACEOF
34657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34658   ac_datarootdir_hack='
34659   s&@datadir@&$datadir&g
34660   s&@docdir@&$docdir&g
34661   s&@infodir@&$infodir&g
34662   s&@localedir@&$localedir&g
34663   s&@mandir@&$mandir&g
34664   s&\\\${datarootdir}&$datarootdir&g' ;;
34665 esac
34666 _ACEOF
34667
34668 # Neutralize VPATH when `$srcdir' = `.'.
34669 # Shell code in configure.ac might set extrasub.
34670 # FIXME: do we really want to maintain this feature?
34671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34672 ac_sed_extra="$ac_vpsub
34673 $extrasub
34674 _ACEOF
34675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34676 :t
34677 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34678 s|@configure_input@|$ac_sed_conf_input|;t t
34679 s&@top_builddir@&$ac_top_builddir_sub&;t t
34680 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34681 s&@srcdir@&$ac_srcdir&;t t
34682 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34683 s&@top_srcdir@&$ac_top_srcdir&;t t
34684 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34685 s&@builddir@&$ac_builddir&;t t
34686 s&@abs_builddir@&$ac_abs_builddir&;t t
34687 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34688 s&@INSTALL@&$ac_INSTALL&;t t
34689 s&@MKDIR_P@&$ac_MKDIR_P&;t t
34690 $ac_datarootdir_hack
34691 "
34692 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
34693   || as_fn_error "could not create $ac_file" "$LINENO" 5
34694
34695 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34696   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34697   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34698   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34699 which seems to be undefined.  Please make sure it is defined." >&5
34700 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34701 which seems to be undefined.  Please make sure it is defined." >&2;}
34702
34703   rm -f "$tmp/stdin"
34704   case $ac_file in
34705   -) cat "$tmp/out" && rm -f "$tmp/out";;
34706   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34707   esac \
34708   || as_fn_error "could not create $ac_file" "$LINENO" 5
34709  ;;
34710   :H)
34711   #
34712   # CONFIG_HEADER
34713   #
34714   if test x"$ac_file" != x-; then
34715     {
34716       $as_echo "/* $configure_input  */" \
34717       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34718     } >"$tmp/config.h" \
34719       || as_fn_error "could not create $ac_file" "$LINENO" 5
34720     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34721       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34722 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34723     else
34724       rm -f "$ac_file"
34725       mv "$tmp/config.h" "$ac_file" \
34726         || as_fn_error "could not create $ac_file" "$LINENO" 5
34727     fi
34728   else
34729     $as_echo "/* $configure_input  */" \
34730       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34731       || as_fn_error "could not create -" "$LINENO" 5
34732   fi
34733 # Compute "$ac_file"'s index in $config_headers.
34734 _am_arg="$ac_file"
34735 _am_stamp_count=1
34736 for _am_header in $config_headers :; do
34737   case $_am_header in
34738     $_am_arg | $_am_arg:* )
34739       break ;;
34740     * )
34741       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34742   esac
34743 done
34744 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34745 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34746          X"$_am_arg" : 'X\(//\)[^/]' \| \
34747          X"$_am_arg" : 'X\(//\)$' \| \
34748          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34749 $as_echo X"$_am_arg" |
34750     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34751             s//\1/
34752             q
34753           }
34754           /^X\(\/\/\)[^/].*/{
34755             s//\1/
34756             q
34757           }
34758           /^X\(\/\/\)$/{
34759             s//\1/
34760             q
34761           }
34762           /^X\(\/\).*/{
34763             s//\1/
34764             q
34765           }
34766           s/.*/./; q'`/stamp-h$_am_stamp_count
34767  ;;
34768
34769   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34770 $as_echo "$as_me: executing $ac_file commands" >&6;}
34771  ;;
34772   esac
34773
34774
34775   case $ac_file$ac_mode in
34776     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34777   # Autoconf 2.62 quotes --file arguments for eval, but not when files
34778   # are listed without --file.  Let's play safe and only enable the eval
34779   # if we detect the quoting.
34780   case $CONFIG_FILES in
34781   *\'*) eval set x "$CONFIG_FILES" ;;
34782   *)   set x $CONFIG_FILES ;;
34783   esac
34784   shift
34785   for mf
34786   do
34787     # Strip MF so we end up with the name of the file.
34788     mf=`echo "$mf" | sed -e 's/:.*$//'`
34789     # Check whether this is an Automake generated Makefile or not.
34790     # We used to match only the files named `Makefile.in', but
34791     # some people rename them; so instead we look at the file content.
34792     # Grep'ing the first line is not enough: some people post-process
34793     # each Makefile.in and add a new line on top of each file to say so.
34794     # Grep'ing the whole file is not good either: AIX grep has a line
34795     # limit of 2048, but all sed's we know have understand at least 4000.
34796     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34797       dirpart=`$as_dirname -- "$mf" ||
34798 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34799          X"$mf" : 'X\(//\)[^/]' \| \
34800          X"$mf" : 'X\(//\)$' \| \
34801          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34802 $as_echo X"$mf" |
34803     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34804             s//\1/
34805             q
34806           }
34807           /^X\(\/\/\)[^/].*/{
34808             s//\1/
34809             q
34810           }
34811           /^X\(\/\/\)$/{
34812             s//\1/
34813             q
34814           }
34815           /^X\(\/\).*/{
34816             s//\1/
34817             q
34818           }
34819           s/.*/./; q'`
34820     else
34821       continue
34822     fi
34823     # Extract the definition of DEPDIR, am__include, and am__quote
34824     # from the Makefile without running `make'.
34825     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34826     test -z "$DEPDIR" && continue
34827     am__include=`sed -n 's/^am__include = //p' < "$mf"`
34828     test -z "am__include" && continue
34829     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34830     # When using ansi2knr, U may be empty or an underscore; expand it
34831     U=`sed -n 's/^U = //p' < "$mf"`
34832     # Find all dependency output files, they are included files with
34833     # $(DEPDIR) in their names.  We invoke sed twice because it is the
34834     # simplest approach to changing $(DEPDIR) to its actual value in the
34835     # expansion.
34836     for file in `sed -n "
34837       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34838          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34839       # Make sure the directory exists.
34840       test -f "$dirpart/$file" && continue
34841       fdir=`$as_dirname -- "$file" ||
34842 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34843          X"$file" : 'X\(//\)[^/]' \| \
34844          X"$file" : 'X\(//\)$' \| \
34845          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34846 $as_echo X"$file" |
34847     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34848             s//\1/
34849             q
34850           }
34851           /^X\(\/\/\)[^/].*/{
34852             s//\1/
34853             q
34854           }
34855           /^X\(\/\/\)$/{
34856             s//\1/
34857             q
34858           }
34859           /^X\(\/\).*/{
34860             s//\1/
34861             q
34862           }
34863           s/.*/./; q'`
34864       as_dir=$dirpart/$fdir; as_fn_mkdir_p
34865       # echo "creating $dirpart/$file"
34866       echo '# dummy' > "$dirpart/$file"
34867     done
34868   done
34869 }
34870  ;;
34871     "libtool":C)
34872
34873     # See if we are running on zsh, and set the options which allow our
34874     # commands through without removal of \ escapes.
34875     if test -n "${ZSH_VERSION+set}" ; then
34876       setopt NO_GLOB_SUBST
34877     fi
34878
34879     cfgfile="${ofile}T"
34880     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34881     $RM "$cfgfile"
34882
34883     cat <<_LT_EOF >> "$cfgfile"
34884 #! $SHELL
34885
34886 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34887 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34888 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34889 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
34890 #
34891 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34892 #                 2006, 2007, 2008 Free Software Foundation, Inc.
34893 #   Written by Gordon Matzigkeit, 1996
34894 #
34895 #   This file is part of GNU Libtool.
34896 #
34897 # GNU Libtool is free software; you can redistribute it and/or
34898 # modify it under the terms of the GNU General Public License as
34899 # published by the Free Software Foundation; either version 2 of
34900 # the License, or (at your option) any later version.
34901 #
34902 # As a special exception to the GNU General Public License,
34903 # if you distribute this file as part of a program or library that
34904 # is built using GNU Libtool, you may include this file under the
34905 # same distribution terms that you use for the rest of that program.
34906 #
34907 # GNU Libtool is distributed in the hope that it will be useful,
34908 # but WITHOUT ANY WARRANTY; without even the implied warranty of
34909 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
34910 # GNU General Public License for more details.
34911 #
34912 # You should have received a copy of the GNU General Public License
34913 # along with GNU Libtool; see the file COPYING.  If not, a copy
34914 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34915 # obtained by writing to the Free Software Foundation, Inc.,
34916 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34917
34918
34919 # The names of the tagged configurations supported by this script.
34920 available_tags="RC "
34921
34922 # ### BEGIN LIBTOOL CONFIG
34923
34924 # Which release of libtool.m4 was used?
34925 macro_version=$macro_version
34926 macro_revision=$macro_revision
34927
34928 # Assembler program.
34929 AS=$AS
34930
34931 # DLL creation program.
34932 DLLTOOL=$DLLTOOL
34933
34934 # Object dumper program.
34935 OBJDUMP=$OBJDUMP
34936
34937 # Whether or not to build shared libraries.
34938 build_libtool_libs=$enable_shared
34939
34940 # Whether or not to build static libraries.
34941 build_old_libs=$enable_static
34942
34943 # What type of objects to build.
34944 pic_mode=$pic_mode
34945
34946 # Whether or not to optimize for fast installation.
34947 fast_install=$enable_fast_install
34948
34949 # The host system.
34950 host_alias=$host_alias
34951 host=$host
34952 host_os=$host_os
34953
34954 # The build system.
34955 build_alias=$build_alias
34956 build=$build
34957 build_os=$build_os
34958
34959 # A sed program that does not truncate output.
34960 SED=$lt_SED
34961
34962 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
34963 Xsed="\$SED -e 1s/^X//"
34964
34965 # A grep program that handles long lines.
34966 GREP=$lt_GREP
34967
34968 # An ERE matcher.
34969 EGREP=$lt_EGREP
34970
34971 # A literal string matcher.
34972 FGREP=$lt_FGREP
34973
34974 # A BSD- or MS-compatible name lister.
34975 NM=$lt_NM
34976
34977 # Whether we need soft or hard links.
34978 LN_S=$lt_LN_S
34979
34980 # What is the maximum length of a command?
34981 max_cmd_len=$max_cmd_len
34982
34983 # Object file suffix (normally "o").
34984 objext=$ac_objext
34985
34986 # Executable file suffix (normally "").
34987 exeext=$exeext
34988
34989 # whether the shell understands "unset".
34990 lt_unset=$lt_unset
34991
34992 # turn spaces into newlines.
34993 SP2NL=$lt_lt_SP2NL
34994
34995 # turn newlines into spaces.
34996 NL2SP=$lt_lt_NL2SP
34997
34998 # How to create reloadable object files.
34999 reload_flag=$lt_reload_flag
35000 reload_cmds=$lt_reload_cmds
35001
35002 # Method to check whether dependent libraries are shared objects.
35003 deplibs_check_method=$lt_deplibs_check_method
35004
35005 # Command to use when deplibs_check_method == "file_magic".
35006 file_magic_cmd=$lt_file_magic_cmd
35007
35008 # The archiver.
35009 AR=$lt_AR
35010 AR_FLAGS=$lt_AR_FLAGS
35011
35012 # A symbol stripping program.
35013 STRIP=$lt_STRIP
35014
35015 # Commands used to install an old-style archive.
35016 RANLIB=$lt_RANLIB
35017 old_postinstall_cmds=$lt_old_postinstall_cmds
35018 old_postuninstall_cmds=$lt_old_postuninstall_cmds
35019
35020 # A C compiler.
35021 LTCC=$lt_CC
35022
35023 # LTCC compiler flags.
35024 LTCFLAGS=$lt_CFLAGS
35025
35026 # Take the output of nm and produce a listing of raw symbols and C names.
35027 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35028
35029 # Transform the output of nm in a proper C declaration.
35030 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35031
35032 # Transform the output of nm in a C name address pair.
35033 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35034
35035 # Transform the output of nm in a C name address pair when lib prefix is needed.
35036 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35037
35038 # The name of the directory that contains temporary libtool files.
35039 objdir=$objdir
35040
35041 # Shell to use when invoking shell scripts.
35042 SHELL=$lt_SHELL
35043
35044 # An echo program that does not interpret backslashes.
35045 ECHO=$lt_ECHO
35046
35047 # Used to examine libraries when file_magic_cmd begins with "file".
35048 MAGIC_CMD=$MAGIC_CMD
35049
35050 # Must we lock files when doing compilation?
35051 need_locks=$lt_need_locks
35052
35053 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35054 DSYMUTIL=$lt_DSYMUTIL
35055
35056 # Tool to change global to local symbols on Mac OS X.
35057 NMEDIT=$lt_NMEDIT
35058
35059 # Tool to manipulate fat objects and archives on Mac OS X.
35060 LIPO=$lt_LIPO
35061
35062 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
35063 OTOOL=$lt_OTOOL
35064
35065 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35066 OTOOL64=$lt_OTOOL64
35067
35068 # Old archive suffix (normally "a").
35069 libext=$libext
35070
35071 # Shared library suffix (normally ".so").
35072 shrext_cmds=$lt_shrext_cmds
35073
35074 # The commands to extract the exported symbol list from a shared archive.
35075 extract_expsyms_cmds=$lt_extract_expsyms_cmds
35076
35077 # Variables whose values should be saved in libtool wrapper scripts and
35078 # restored at link time.
35079 variables_saved_for_relink=$lt_variables_saved_for_relink
35080
35081 # Do we need the "lib" prefix for modules?
35082 need_lib_prefix=$need_lib_prefix
35083
35084 # Do we need a version for libraries?
35085 need_version=$need_version
35086
35087 # Library versioning type.
35088 version_type=$version_type
35089
35090 # Shared library runtime path variable.
35091 runpath_var=$runpath_var
35092
35093 # Shared library path variable.
35094 shlibpath_var=$shlibpath_var
35095
35096 # Is shlibpath searched before the hard-coded library search path?
35097 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35098
35099 # Format of library name prefix.
35100 libname_spec=$lt_libname_spec
35101
35102 # List of archive names.  First name is the real one, the rest are links.
35103 # The last name is the one that the linker finds with -lNAME
35104 library_names_spec=$lt_library_names_spec
35105
35106 # The coded name of the library, if different from the real name.
35107 soname_spec=$lt_soname_spec
35108
35109 # Command to use after installation of a shared archive.
35110 postinstall_cmds=$lt_postinstall_cmds
35111
35112 # Command to use after uninstallation of a shared archive.
35113 postuninstall_cmds=$lt_postuninstall_cmds
35114
35115 # Commands used to finish a libtool library installation in a directory.
35116 finish_cmds=$lt_finish_cmds
35117
35118 # As "finish_cmds", except a single script fragment to be evaled but
35119 # not shown.
35120 finish_eval=$lt_finish_eval
35121
35122 # Whether we should hardcode library paths into libraries.
35123 hardcode_into_libs=$hardcode_into_libs
35124
35125 # Compile-time system search path for libraries.
35126 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35127
35128 # Run-time system search path for libraries.
35129 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35130
35131 # Whether dlopen is supported.
35132 dlopen_support=$enable_dlopen
35133
35134 # Whether dlopen of programs is supported.
35135 dlopen_self=$enable_dlopen_self
35136
35137 # Whether dlopen of statically linked programs is supported.
35138 dlopen_self_static=$enable_dlopen_self_static
35139
35140 # Commands to strip libraries.
35141 old_striplib=$lt_old_striplib
35142 striplib=$lt_striplib
35143
35144
35145 # The linker used to build libraries.
35146 LD=$lt_LD
35147
35148 # Commands used to build an old-style archive.
35149 old_archive_cmds=$lt_old_archive_cmds
35150
35151 # A language specific compiler.
35152 CC=$lt_compiler
35153
35154 # Is the compiler the GNU compiler?
35155 with_gcc=$GCC
35156
35157 # Compiler flag to turn off builtin functions.
35158 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35159
35160 # How to pass a linker flag through the compiler.
35161 wl=$lt_lt_prog_compiler_wl
35162
35163 # Additional compiler flags for building library objects.
35164 pic_flag=$lt_lt_prog_compiler_pic
35165
35166 # Compiler flag to prevent dynamic linking.
35167 link_static_flag=$lt_lt_prog_compiler_static
35168
35169 # Does compiler simultaneously support -c and -o options?
35170 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35171
35172 # Whether or not to add -lc for building shared libraries.
35173 build_libtool_need_lc=$archive_cmds_need_lc
35174
35175 # Whether or not to disallow shared libs when runtime libs are static.
35176 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35177
35178 # Compiler flag to allow reflexive dlopens.
35179 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35180
35181 # Compiler flag to generate shared objects directly from archives.
35182 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35183
35184 # Whether the compiler copes with passing no objects directly.
35185 compiler_needs_object=$lt_compiler_needs_object
35186
35187 # Create an old-style archive from a shared archive.
35188 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35189
35190 # Create a temporary old-style archive to link instead of a shared archive.
35191 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35192
35193 # Commands used to build a shared archive.
35194 archive_cmds=$lt_archive_cmds
35195 archive_expsym_cmds=$lt_archive_expsym_cmds
35196
35197 # Commands used to build a loadable module if different from building
35198 # a shared archive.
35199 module_cmds=$lt_module_cmds
35200 module_expsym_cmds=$lt_module_expsym_cmds
35201
35202 # Whether we are building with GNU ld or not.
35203 with_gnu_ld=$lt_with_gnu_ld
35204
35205 # Flag that allows shared libraries with undefined symbols to be built.
35206 allow_undefined_flag=$lt_allow_undefined_flag
35207
35208 # Flag that enforces no undefined symbols.
35209 no_undefined_flag=$lt_no_undefined_flag
35210
35211 # Flag to hardcode \$libdir into a binary during linking.
35212 # This must work even if \$libdir does not exist
35213 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35214
35215 # If ld is used when linking, flag to hardcode \$libdir into a binary
35216 # during linking.  This must work even if \$libdir does not exist.
35217 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35218
35219 # Whether we need a single "-rpath" flag with a separated argument.
35220 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35221
35222 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35223 # DIR into the resulting binary.
35224 hardcode_direct=$hardcode_direct
35225
35226 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35227 # DIR into the resulting binary and the resulting library dependency is
35228 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35229 # library is relocated.
35230 hardcode_direct_absolute=$hardcode_direct_absolute
35231
35232 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35233 # into the resulting binary.
35234 hardcode_minus_L=$hardcode_minus_L
35235
35236 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35237 # into the resulting binary.
35238 hardcode_shlibpath_var=$hardcode_shlibpath_var
35239
35240 # Set to "yes" if building a shared library automatically hardcodes DIR
35241 # into the library and all subsequent libraries and executables linked
35242 # against it.
35243 hardcode_automatic=$hardcode_automatic
35244
35245 # Set to yes if linker adds runtime paths of dependent libraries
35246 # to runtime path list.
35247 inherit_rpath=$inherit_rpath
35248
35249 # Whether libtool must link a program against all its dependency libraries.
35250 link_all_deplibs=$link_all_deplibs
35251
35252 # Fix the shell variable \$srcfile for the compiler.
35253 fix_srcfile_path=$lt_fix_srcfile_path
35254
35255 # Set to "yes" if exported symbols are required.
35256 always_export_symbols=$always_export_symbols
35257
35258 # The commands to list exported symbols.
35259 export_symbols_cmds=$lt_export_symbols_cmds
35260
35261 # Symbols that should not be listed in the preloaded symbols.
35262 exclude_expsyms=$lt_exclude_expsyms
35263
35264 # Symbols that must always be exported.
35265 include_expsyms=$lt_include_expsyms
35266
35267 # Commands necessary for linking programs (against libraries) with templates.
35268 prelink_cmds=$lt_prelink_cmds
35269
35270 # Specify filename containing input files.
35271 file_list_spec=$lt_file_list_spec
35272
35273 # How to hardcode a shared library path into an executable.
35274 hardcode_action=$hardcode_action
35275
35276 # ### END LIBTOOL CONFIG
35277
35278 _LT_EOF
35279
35280   case $host_os in
35281   aix3*)
35282     cat <<\_LT_EOF >> "$cfgfile"
35283 # AIX sometimes has problems with the GCC collect2 program.  For some
35284 # reason, if we set the COLLECT_NAMES environment variable, the problems
35285 # vanish in a puff of smoke.
35286 if test "X${COLLECT_NAMES+set}" != Xset; then
35287   COLLECT_NAMES=
35288   export COLLECT_NAMES
35289 fi
35290 _LT_EOF
35291     ;;
35292   esac
35293
35294
35295 ltmain="$ac_aux_dir/ltmain.sh"
35296
35297
35298   # We use sed instead of cat because bash on DJGPP gets confused if
35299   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
35300   # text mode, it properly converts lines to CR/LF.  This bash problem
35301   # is reportedly fixed, but why not run on old versions too?
35302   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35303     || (rm -f "$cfgfile"; exit 1)
35304
35305   case $xsi_shell in
35306   yes)
35307     cat << \_LT_EOF >> "$cfgfile"
35308
35309 # func_dirname file append nondir_replacement
35310 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
35311 # otherwise set result to NONDIR_REPLACEMENT.
35312 func_dirname ()
35313 {
35314   case ${1} in
35315     */*) func_dirname_result="${1%/*}${2}" ;;
35316     *  ) func_dirname_result="${3}" ;;
35317   esac
35318 }
35319
35320 # func_basename file
35321 func_basename ()
35322 {
35323   func_basename_result="${1##*/}"
35324 }
35325
35326 # func_dirname_and_basename file append nondir_replacement
35327 # perform func_basename and func_dirname in a single function
35328 # call:
35329 #   dirname:  Compute the dirname of FILE.  If nonempty,
35330 #             add APPEND to the result, otherwise set result
35331 #             to NONDIR_REPLACEMENT.
35332 #             value returned in "$func_dirname_result"
35333 #   basename: Compute filename of FILE.
35334 #             value retuned in "$func_basename_result"
35335 # Implementation must be kept synchronized with func_dirname
35336 # and func_basename. For efficiency, we do not delegate to
35337 # those functions but instead duplicate the functionality here.
35338 func_dirname_and_basename ()
35339 {
35340   case ${1} in
35341     */*) func_dirname_result="${1%/*}${2}" ;;
35342     *  ) func_dirname_result="${3}" ;;
35343   esac
35344   func_basename_result="${1##*/}"
35345 }
35346
35347 # func_stripname prefix suffix name
35348 # strip PREFIX and SUFFIX off of NAME.
35349 # PREFIX and SUFFIX must not contain globbing or regex special
35350 # characters, hashes, percent signs, but SUFFIX may contain a leading
35351 # dot (in which case that matches only a dot).
35352 func_stripname ()
35353 {
35354   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35355   # positional parameters, so assign one to ordinary parameter first.
35356   func_stripname_result=${3}
35357   func_stripname_result=${func_stripname_result#"${1}"}
35358   func_stripname_result=${func_stripname_result%"${2}"}
35359 }
35360
35361 # func_opt_split
35362 func_opt_split ()
35363 {
35364   func_opt_split_opt=${1%%=*}
35365   func_opt_split_arg=${1#*=}
35366 }
35367
35368 # func_lo2o object
35369 func_lo2o ()
35370 {
35371   case ${1} in
35372     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35373     *)    func_lo2o_result=${1} ;;
35374   esac
35375 }
35376
35377 # func_xform libobj-or-source
35378 func_xform ()
35379 {
35380   func_xform_result=${1%.*}.lo
35381 }
35382
35383 # func_arith arithmetic-term...
35384 func_arith ()
35385 {
35386   func_arith_result=$(( $* ))
35387 }
35388
35389 # func_len string
35390 # STRING may not start with a hyphen.
35391 func_len ()
35392 {
35393   func_len_result=${#1}
35394 }
35395
35396 _LT_EOF
35397     ;;
35398   *) # Bourne compatible functions.
35399     cat << \_LT_EOF >> "$cfgfile"
35400
35401 # func_dirname file append nondir_replacement
35402 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
35403 # otherwise set result to NONDIR_REPLACEMENT.
35404 func_dirname ()
35405 {
35406   # Extract subdirectory from the argument.
35407   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
35408   if test "X$func_dirname_result" = "X${1}"; then
35409     func_dirname_result="${3}"
35410   else
35411     func_dirname_result="$func_dirname_result${2}"
35412   fi
35413 }
35414
35415 # func_basename file
35416 func_basename ()
35417 {
35418   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
35419 }
35420
35421
35422 # func_stripname prefix suffix name
35423 # strip PREFIX and SUFFIX off of NAME.
35424 # PREFIX and SUFFIX must not contain globbing or regex special
35425 # characters, hashes, percent signs, but SUFFIX may contain a leading
35426 # dot (in which case that matches only a dot).
35427 # func_strip_suffix prefix name
35428 func_stripname ()
35429 {
35430   case ${2} in
35431     .*) func_stripname_result=`$ECHO "X${3}" \
35432            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35433     *)  func_stripname_result=`$ECHO "X${3}" \
35434            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
35435   esac
35436 }
35437
35438 # sed scripts:
35439 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35440 my_sed_long_arg='1s/^-[^=]*=//'
35441
35442 # func_opt_split
35443 func_opt_split ()
35444 {
35445   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35446   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
35447 }
35448
35449 # func_lo2o object
35450 func_lo2o ()
35451 {
35452   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
35453 }
35454
35455 # func_xform libobj-or-source
35456 func_xform ()
35457 {
35458   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
35459 }
35460
35461 # func_arith arithmetic-term...
35462 func_arith ()
35463 {
35464   func_arith_result=`expr "$@"`
35465 }
35466
35467 # func_len string
35468 # STRING may not start with a hyphen.
35469 func_len ()
35470 {
35471   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35472 }
35473
35474 _LT_EOF
35475 esac
35476
35477 case $lt_shell_append in
35478   yes)
35479     cat << \_LT_EOF >> "$cfgfile"
35480
35481 # func_append var value
35482 # Append VALUE to the end of shell variable VAR.
35483 func_append ()
35484 {
35485   eval "$1+=\$2"
35486 }
35487 _LT_EOF
35488     ;;
35489   *)
35490     cat << \_LT_EOF >> "$cfgfile"
35491
35492 # func_append var value
35493 # Append VALUE to the end of shell variable VAR.
35494 func_append ()
35495 {
35496   eval "$1=\$$1\$2"
35497 }
35498
35499 _LT_EOF
35500     ;;
35501   esac
35502
35503
35504   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35505     || (rm -f "$cfgfile"; exit 1)
35506
35507   mv -f "$cfgfile" "$ofile" ||
35508     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35509   chmod +x "$ofile"
35510
35511
35512     cat <<_LT_EOF >> "$ofile"
35513
35514 # ### BEGIN LIBTOOL TAG CONFIG: RC
35515
35516 # The linker used to build libraries.
35517 LD=$lt_LD_RC
35518
35519 # Commands used to build an old-style archive.
35520 old_archive_cmds=$lt_old_archive_cmds_RC
35521
35522 # A language specific compiler.
35523 CC=$lt_compiler_RC
35524
35525 # Is the compiler the GNU compiler?
35526 with_gcc=$GCC_RC
35527
35528 # Compiler flag to turn off builtin functions.
35529 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
35530
35531 # How to pass a linker flag through the compiler.
35532 wl=$lt_lt_prog_compiler_wl_RC
35533
35534 # Additional compiler flags for building library objects.
35535 pic_flag=$lt_lt_prog_compiler_pic_RC
35536
35537 # Compiler flag to prevent dynamic linking.
35538 link_static_flag=$lt_lt_prog_compiler_static_RC
35539
35540 # Does compiler simultaneously support -c and -o options?
35541 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
35542
35543 # Whether or not to add -lc for building shared libraries.
35544 build_libtool_need_lc=$archive_cmds_need_lc_RC
35545
35546 # Whether or not to disallow shared libs when runtime libs are static.
35547 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
35548
35549 # Compiler flag to allow reflexive dlopens.
35550 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
35551
35552 # Compiler flag to generate shared objects directly from archives.
35553 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
35554
35555 # Whether the compiler copes with passing no objects directly.
35556 compiler_needs_object=$lt_compiler_needs_object_RC
35557
35558 # Create an old-style archive from a shared archive.
35559 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
35560
35561 # Create a temporary old-style archive to link instead of a shared archive.
35562 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
35563
35564 # Commands used to build a shared archive.
35565 archive_cmds=$lt_archive_cmds_RC
35566 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
35567
35568 # Commands used to build a loadable module if different from building
35569 # a shared archive.
35570 module_cmds=$lt_module_cmds_RC
35571 module_expsym_cmds=$lt_module_expsym_cmds_RC
35572
35573 # Whether we are building with GNU ld or not.
35574 with_gnu_ld=$lt_with_gnu_ld_RC
35575
35576 # Flag that allows shared libraries with undefined symbols to be built.
35577 allow_undefined_flag=$lt_allow_undefined_flag_RC
35578
35579 # Flag that enforces no undefined symbols.
35580 no_undefined_flag=$lt_no_undefined_flag_RC
35581
35582 # Flag to hardcode \$libdir into a binary during linking.
35583 # This must work even if \$libdir does not exist
35584 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
35585
35586 # If ld is used when linking, flag to hardcode \$libdir into a binary
35587 # during linking.  This must work even if \$libdir does not exist.
35588 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
35589
35590 # Whether we need a single "-rpath" flag with a separated argument.
35591 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
35592
35593 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35594 # DIR into the resulting binary.
35595 hardcode_direct=$hardcode_direct_RC
35596
35597 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35598 # DIR into the resulting binary and the resulting library dependency is
35599 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35600 # library is relocated.
35601 hardcode_direct_absolute=$hardcode_direct_absolute_RC
35602
35603 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35604 # into the resulting binary.
35605 hardcode_minus_L=$hardcode_minus_L_RC
35606
35607 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35608 # into the resulting binary.
35609 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
35610
35611 # Set to "yes" if building a shared library automatically hardcodes DIR
35612 # into the library and all subsequent libraries and executables linked
35613 # against it.
35614 hardcode_automatic=$hardcode_automatic_RC
35615
35616 # Set to yes if linker adds runtime paths of dependent libraries
35617 # to runtime path list.
35618 inherit_rpath=$inherit_rpath_RC
35619
35620 # Whether libtool must link a program against all its dependency libraries.
35621 link_all_deplibs=$link_all_deplibs_RC
35622
35623 # Fix the shell variable \$srcfile for the compiler.
35624 fix_srcfile_path=$lt_fix_srcfile_path_RC
35625
35626 # Set to "yes" if exported symbols are required.
35627 always_export_symbols=$always_export_symbols_RC
35628
35629 # The commands to list exported symbols.
35630 export_symbols_cmds=$lt_export_symbols_cmds_RC
35631
35632 # Symbols that should not be listed in the preloaded symbols.
35633 exclude_expsyms=$lt_exclude_expsyms_RC
35634
35635 # Symbols that must always be exported.
35636 include_expsyms=$lt_include_expsyms_RC
35637
35638 # Commands necessary for linking programs (against libraries) with templates.
35639 prelink_cmds=$lt_prelink_cmds_RC
35640
35641 # Specify filename containing input files.
35642 file_list_spec=$lt_file_list_spec_RC
35643
35644 # How to hardcode a shared library path into an executable.
35645 hardcode_action=$hardcode_action_RC
35646
35647 # ### END LIBTOOL TAG CONFIG: RC
35648 _LT_EOF
35649
35650  ;;
35651
35652   esac
35653 done # for ac_tag
35654
35655
35656 as_fn_exit 0
35657 _ACEOF
35658 ac_clean_files=$ac_clean_files_save
35659
35660 test $ac_write_fail = 0 ||
35661   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
35662
35663
35664 # configure is writing to config.log, and then calls config.status.
35665 # config.status does its own redirection, appending to config.log.
35666 # Unfortunately, on DOS this fails, as config.log is still kept open
35667 # by configure, so config.status won't be able to write to it; its
35668 # output is simply discarded.  So we exec the FD to /dev/null,
35669 # effectively closing config.log, so it can be properly (re)opened and
35670 # appended to by config.status.  When coming back to configure, we
35671 # need to make the FD available again.
35672 if test "$no_create" != yes; then
35673   ac_cs_success=:
35674   ac_config_status_args=
35675   test "$silent" = yes &&
35676     ac_config_status_args="$ac_config_status_args --quiet"
35677   exec 5>/dev/null
35678   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35679   exec 5>>config.log
35680   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35681   # would make configure fail if this is the last instruction.
35682   $ac_cs_success || as_fn_exit $?
35683 fi
35684 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35685   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35686 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35687 fi
35688