Imported Upstream version 0.18.1.1
[platform/upstream/gettext.git] / gettext-tools / 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="src/msgfmt.c"
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 gt_needs=
745 gl_header_list=
746 gl_func_list=
747 gl_fnmatch_required=POSIX
748 gl_getopt_required=POSIX
749 gl_getopt_required=POSIX
750 enable_option_checking=no
751 ac_subst_vars='gtpotests_LTLIBOBJS
752 gtpotests_LIBOBJS
753 gtpo_LTLIBOBJS
754 gtpo_LIBOBJS
755 grgltests_LTLIBOBJS
756 grgltests_LIBOBJS
757 grgl_LTLIBOBJS
758 grgl_LIBOBJS
759 gltests_LTLIBOBJS
760 gltests_LIBOBJS
761 gl_LTLIBOBJS
762 gl_LIBOBJS
763 am__EXEEXT_FALSE
764 am__EXEEXT_TRUE
765 LTLIBOBJS
766 LIBOBJS
767 subdirs
768 TESTLIBASPRINTF
769 CXXCPP
770 am__fastdepCXX_FALSE
771 am__fastdepCXX_TRUE
772 CXXDEPMODE
773 ac_ct_CXX
774 CXXFLAGS
775 CXX
776 CROSS_COMPILING
777 PERL
778 TEXI2PDF
779 DVIPS
780 ARCHIVE_FORMAT
781 aclocaldir
782 lispdir
783 EMACSLOADPATH
784 EMACS
785 HAVE_GLOBAL_SYMBOL_PIPE
786 GLOBAL_SYMBOL_PIPE
787 LIBEXPAT_PREFIX
788 HAVE_LIBEXPAT
789 LTLIBEXPAT
790 LIBEXPAT
791 GETTEXTLIB_EXPORTS_FLAGS
792 WOE32DLL_FALSE
793 WOE32DLL_TRUE
794 gtpotests_WITNESS
795 LIBGREP_LTLIBDEPS
796 LIBGREP_LIBDEPS
797 grgltests_WITNESS
798 HAVE_LANGINFO_ERA
799 HAVE_LANGINFO_CODESET
800 HAVE_LANGINFO_H
801 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
802 NEXT_LANGINFO_H
803 REPLACE_NL_LANGINFO
804 HAVE_NL_LANGINFO
805 GNULIB_NL_LANGINFO
806 LIBTESTS_LIBDEPS
807 YIELD_LIB
808 LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE
809 LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE
810 LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE
811 LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE
812 POSIX_SPAWN_PORTED_FALSE
813 POSIX_SPAWN_PORTED_TRUE
814 LOCALE_TR_UTF8
815 LOCALE_FR
816 gltests_WITNESS
817 REPLACE_ISWCNTRL
818 HAVE_WCTYPE_H
819 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
820 NEXT_WCTYPE_H
821 HAVE_ISWBLANK
822 HAVE_ISWCNTRL
823 HAVE_WINT_T
824 HAVE_WCHAR_H
825 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
826 NEXT_WCHAR_H
827 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
828 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
829 LIBUNISTRING_UNIWIDTH_H
830 LIBUNISTRING_UNITYPES_H
831 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE
832 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE
833 LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE
834 LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE
835 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE
836 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE
837 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE
838 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE
839 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE
840 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE
841 LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE
842 LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE
843 LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE
844 LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE
845 LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE
846 LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE
847 LIBUNISTRING_UNISTR_H
848 HAVE_UNISTD_H
849 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
850 NEXT_UNISTD_H
851 LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE
852 LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE
853 LIBUNISTRING_UNINAME_H
854 LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE
855 LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE
856 LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE
857 LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE
858 LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE
859 LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE
860 LIBUNISTRING_UNILBRK_H
861 LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE
862 LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE
863 LIBUNISTRING_UNICONV_H
864 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
865 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
866 TIME_H_DEFINES_STRUCT_TIMESPEC
867 NEXT_AS_FIRST_DIRECTIVE_TIME_H
868 NEXT_TIME_H
869 REPLACE_TIMEGM
870 REPLACE_NANOSLEEP
871 REPLACE_MKTIME
872 REPLACE_LOCALTIME_R
873 HAVE_TIMEGM
874 HAVE_STRPTIME
875 HAVE_NANOSLEEP
876 HAVE_LOCALTIME_R
877 GNULIB_TIME_R
878 GNULIB_TIMEGM
879 GNULIB_STRPTIME
880 GNULIB_NANOSLEEP
881 GNULIB_MKTIME
882 INCTERMINFO
883 LTLIBTERMINFO
884 LIBTERMINFO
885 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
886 NEXT_SYS_WAIT_H
887 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
888 NEXT_SYS_STAT_H
889 HAVE_SYS_SELECT_H
890 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
891 NEXT_SYS_SELECT_H
892 REPLACE_SELECT
893 GNULIB_SELECT
894 HAVE_WINSOCK2_H
895 HAVE_WS2TCPIP_H
896 HAVE_SYS_SOCKET_H
897 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
898 NEXT_SYS_SOCKET_H
899 HAVE_ACCEPT4
900 HAVE_SA_FAMILY_T
901 HAVE_STRUCT_SOCKADDR_STORAGE
902 GNULIB_ACCEPT4
903 GNULIB_SHUTDOWN
904 GNULIB_SETSOCKOPT
905 GNULIB_SENDTO
906 GNULIB_RECVFROM
907 GNULIB_SEND
908 GNULIB_RECV
909 GNULIB_LISTEN
910 GNULIB_GETSOCKOPT
911 GNULIB_GETSOCKNAME
912 GNULIB_GETPEERNAME
913 GNULIB_BIND
914 GNULIB_ACCEPT
915 GNULIB_CONNECT
916 GNULIB_SOCKET
917 NEXT_AS_FIRST_DIRECTIVE_STRING_H
918 NEXT_STRING_H
919 HAVE_RANDOM_H
920 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
921 NEXT_STDLIB_H
922 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
923 NEXT_STDIO_H
924 ASM_SYMBOL_PREFIX
925 STDINT_H
926 WINT_T_SUFFIX
927 WCHAR_T_SUFFIX
928 SIG_ATOMIC_T_SUFFIX
929 SIZE_T_SUFFIX
930 PTRDIFF_T_SUFFIX
931 HAVE_SIGNED_WINT_T
932 HAVE_SIGNED_WCHAR_T
933 HAVE_SIGNED_SIG_ATOMIC_T
934 BITSIZEOF_WINT_T
935 BITSIZEOF_WCHAR_T
936 BITSIZEOF_SIG_ATOMIC_T
937 BITSIZEOF_SIZE_T
938 BITSIZEOF_PTRDIFF_T
939 HAVE_SYS_BITYPES_H
940 HAVE_SYS_INTTYPES_H
941 HAVE_STDINT_H
942 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
943 NEXT_STDINT_H
944 HAVE_SYS_TYPES_H
945 HAVE_INTTYPES_H
946 HAVE_UNSIGNED_LONG_LONG_INT
947 HAVE_LONG_LONG_INT
948 HAVE__BOOL
949 STDBOOL_H
950 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
951 NEXT_STDARG_H
952 STDARG_H
953 HAVE_SPAWN_H
954 NEXT_AS_FIRST_DIRECTIVE_SPAWN_H
955 NEXT_SPAWN_H
956 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
957 NEXT_SIGNAL_H
958 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
959 HAVE_STRUCT_SIGACTION_SA_SIGACTION
960 HAVE_SIGACTION
961 HAVE_SIGINFO_T
962 HAVE_SIGSET_T
963 HAVE_POSIX_SIGNALBLOCKING
964 GNULIB_SIGACTION
965 GNULIB_SIGPROCMASK
966 GNULIB_SIGNAL_H_SIGPIPE
967 SCHED_H
968 HAVE_STRUCT_SCHED_PARAM
969 HAVE_SCHED_H
970 NEXT_AS_FIRST_DIRECTIVE_SCHED_H
971 NEXT_SCHED_H
972 RELOCATABLE_STRIP
973 RELOCATABLE_BUILD_DIR
974 RELOCATABLE_SRC_DIR
975 RELOCATABLE_CONFIG_H_DIR
976 RELOCATABLE_LIBRARY_PATH
977 RELOCATABLE_VIA_LD_FALSE
978 RELOCATABLE_VIA_LD_TRUE
979 INSTALL_PROGRAM_ENV
980 RELOCATABLE_LDFLAGS
981 RELOCATABLE
982 REPLACE_POSIX_SPAWN
983 HAVE_POSIX_SPAWN_FILE_ACTIONS_T
984 HAVE_POSIX_SPAWNATTR_T
985 HAVE_POSIX_SPAWN
986 GNULIB_POSIX_SPAWNATTR_DESTROY
987 GNULIB_POSIX_SPAWNATTR_SETSIGMASK
988 GNULIB_POSIX_SPAWNATTR_GETSIGMASK
989 GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT
990 GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT
991 GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY
992 GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY
993 GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM
994 GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM
995 GNULIB_POSIX_SPAWNATTR_SETPGROUP
996 GNULIB_POSIX_SPAWNATTR_GETPGROUP
997 GNULIB_POSIX_SPAWNATTR_SETFLAGS
998 GNULIB_POSIX_SPAWNATTR_GETFLAGS
999 GNULIB_POSIX_SPAWNATTR_INIT
1000 GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY
1001 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN
1002 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2
1003 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE
1004 GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT
1005 GNULIB_POSIX_SPAWNP
1006 GNULIB_POSIX_SPAWN
1007 OPENMP_CFLAGS
1008 NO_CXX
1009 APPLE_UNIVERSAL_BUILD
1010 UNDEFINE_STRTOK_R
1011 REPLACE_STRTOK_R
1012 REPLACE_STRSIGNAL
1013 REPLACE_STRNLEN
1014 REPLACE_STRNDUP
1015 REPLACE_STRNCAT
1016 REPLACE_STRERROR
1017 REPLACE_STRCASESTR
1018 REPLACE_STRSTR
1019 REPLACE_STRDUP
1020 REPLACE_STPNCPY
1021 REPLACE_MEMMEM
1022 REPLACE_MEMCHR
1023 HAVE_STRVERSCMP
1024 HAVE_DECL_STRSIGNAL
1025 HAVE_DECL_STRTOK_R
1026 HAVE_STRCASESTR
1027 HAVE_STRSEP
1028 HAVE_STRPBRK
1029 HAVE_DECL_STRNLEN
1030 HAVE_DECL_STRNDUP
1031 HAVE_DECL_STRDUP
1032 HAVE_STRCHRNUL
1033 HAVE_STPNCPY
1034 HAVE_STPCPY
1035 HAVE_RAWMEMCHR
1036 HAVE_DECL_MEMRCHR
1037 HAVE_MEMPCPY
1038 HAVE_DECL_MEMMEM
1039 HAVE_MEMCHR
1040 HAVE_MBSLEN
1041 GNULIB_STRVERSCMP
1042 GNULIB_STRSIGNAL
1043 GNULIB_STRERROR
1044 GNULIB_MBSTOK_R
1045 GNULIB_MBSSEP
1046 GNULIB_MBSSPN
1047 GNULIB_MBSPBRK
1048 GNULIB_MBSCSPN
1049 GNULIB_MBSCASESTR
1050 GNULIB_MBSPCASECMP
1051 GNULIB_MBSNCASECMP
1052 GNULIB_MBSCASECMP
1053 GNULIB_MBSSTR
1054 GNULIB_MBSRCHR
1055 GNULIB_MBSCHR
1056 GNULIB_MBSNLEN
1057 GNULIB_MBSLEN
1058 GNULIB_STRTOK_R
1059 GNULIB_STRCASESTR
1060 GNULIB_STRSTR
1061 GNULIB_STRSEP
1062 GNULIB_STRPBRK
1063 GNULIB_STRNLEN
1064 GNULIB_STRNDUP
1065 GNULIB_STRNCAT
1066 GNULIB_STRDUP
1067 GNULIB_STRCHRNUL
1068 GNULIB_STPNCPY
1069 GNULIB_STPCPY
1070 GNULIB_RAWMEMCHR
1071 GNULIB_MEMRCHR
1072 GNULIB_MEMPCPY
1073 GNULIB_MEMMEM
1074 GNULIB_MEMCHR
1075 LOCALE_FR_UTF8
1076 LOCALE_ZH_CN
1077 LOCALE_JA
1078 REPLACE_WCWIDTH
1079 REPLACE_WCSNRTOMBS
1080 REPLACE_WCSRTOMBS
1081 REPLACE_WCRTOMB
1082 REPLACE_MBSNRTOWCS
1083 REPLACE_MBSRTOWCS
1084 REPLACE_MBRLEN
1085 REPLACE_MBRTOWC
1086 REPLACE_MBSINIT
1087 REPLACE_WCTOB
1088 REPLACE_BTOWC
1089 REPLACE_MBSTATE_T
1090 HAVE_DECL_WCWIDTH
1091 HAVE_DECL_WCTOB
1092 HAVE_WCSNRTOMBS
1093 HAVE_WCSRTOMBS
1094 HAVE_WCRTOMB
1095 HAVE_MBSNRTOWCS
1096 HAVE_MBSRTOWCS
1097 HAVE_MBRLEN
1098 HAVE_MBRTOWC
1099 HAVE_MBSINIT
1100 HAVE_BTOWC
1101 GNULIB_WCWIDTH
1102 GNULIB_WCSNRTOMBS
1103 GNULIB_WCSRTOMBS
1104 GNULIB_WCRTOMB
1105 GNULIB_MBSNRTOWCS
1106 GNULIB_MBSRTOWCS
1107 GNULIB_MBRLEN
1108 GNULIB_MBRTOWC
1109 GNULIB_MBSINIT
1110 GNULIB_WCTOB
1111 GNULIB_BTOWC
1112 REPLACE_UTIMENSAT
1113 REPLACE_STAT
1114 REPLACE_MKNOD
1115 REPLACE_MKFIFO
1116 REPLACE_MKDIR
1117 REPLACE_LSTAT
1118 REPLACE_FUTIMENS
1119 REPLACE_FSTATAT
1120 REPLACE_FSTAT
1121 HAVE_UTIMENSAT
1122 HAVE_MKNODAT
1123 HAVE_MKNOD
1124 HAVE_MKFIFOAT
1125 HAVE_MKFIFO
1126 HAVE_MKDIRAT
1127 HAVE_LSTAT
1128 HAVE_LCHMOD
1129 HAVE_FUTIMENS
1130 HAVE_FSTATAT
1131 HAVE_FCHMODAT
1132 GNULIB_UTIMENSAT
1133 GNULIB_STAT
1134 GNULIB_MKNODAT
1135 GNULIB_MKNOD
1136 GNULIB_MKFIFOAT
1137 GNULIB_MKFIFO
1138 GNULIB_MKDIRAT
1139 GNULIB_LSTAT
1140 GNULIB_LCHMOD
1141 GNULIB_FUTIMENS
1142 GNULIB_FSTATAT
1143 GNULIB_FCHMODAT
1144 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
1145 NEXT_LOCALE_H
1146 HAVE_XLOCALE_H
1147 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1148 NEXT_STDDEF_H
1149 STDDEF_H
1150 HAVE_WCHAR_T
1151 REPLACE_NULL
1152 REPLACE_DUPLOCALE
1153 HAVE_DUPLOCALE
1154 GNULIB_DUPLOCALE
1155 LOCALCHARSET_TESTS_ENVIRONMENT
1156 INCLUDED_LIBXML_FALSE
1157 INCLUDED_LIBXML_TRUE
1158 LIBXML_H
1159 INCXML
1160 LTLIBXML
1161 LIBXML
1162 LIBUNISTRING_PREFIX
1163 LTLIBUNISTRING
1164 LIBUNISTRING
1165 HAVE_LIBUNISTRING
1166 INCLUDED_LIBCROCO_FALSE
1167 INCLUDED_LIBCROCO_TRUE
1168 INCCROCO
1169 LTLIBCROCO
1170 LIBCROCO
1171 INCLUDED_LIBGLIB_FALSE
1172 INCLUDED_LIBGLIB_TRUE
1173 LIBGLIB_H
1174 INCGLIB
1175 LTLIBGLIB
1176 LIBGLIB
1177 NEXT_AS_FIRST_DIRECTIVE_ICONV_H
1178 NEXT_ICONV_H
1179 ICONV_H
1180 REPLACE_ICONV_UTF
1181 REPLACE_ICONV_OPEN
1182 REPLACE_ICONV
1183 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1184 NEXT_SYS_TIME_H
1185 REPLACE_GETTIMEOFDAY
1186 HAVE_SYS_TIME_H
1187 HAVE_STRUCT_TIMEVAL
1188 HAVE_GETTIMEOFDAY
1189 GNULIB_GETTIMEOFDAY
1190 GETOPT_H
1191 HAVE_GETOPT_H
1192 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1193 NEXT_GETOPT_H
1194 REPLACE_VSPRINTF
1195 REPLACE_VSNPRINTF
1196 REPLACE_VPRINTF
1197 REPLACE_VFPRINTF
1198 REPLACE_VDPRINTF
1199 REPLACE_VASPRINTF
1200 REPLACE_TMPFILE
1201 REPLACE_STDIO_WRITE_FUNCS
1202 REPLACE_SPRINTF
1203 REPLACE_SNPRINTF
1204 REPLACE_RENAMEAT
1205 REPLACE_RENAME
1206 REPLACE_REMOVE
1207 REPLACE_PRINTF
1208 REPLACE_POPEN
1209 REPLACE_PERROR
1210 REPLACE_OBSTACK_PRINTF
1211 REPLACE_GETLINE
1212 REPLACE_GETDELIM
1213 REPLACE_FTELLO
1214 REPLACE_FTELL
1215 REPLACE_FSEEKO
1216 REPLACE_FSEEK
1217 REPLACE_FREOPEN
1218 REPLACE_FPURGE
1219 REPLACE_FPRINTF
1220 REPLACE_FOPEN
1221 REPLACE_FFLUSH
1222 REPLACE_FCLOSE
1223 REPLACE_DPRINTF
1224 HAVE_VDPRINTF
1225 HAVE_VASPRINTF
1226 HAVE_RENAMEAT
1227 HAVE_FTELLO
1228 HAVE_FSEEKO
1229 HAVE_DPRINTF
1230 HAVE_DECL_VSNPRINTF
1231 HAVE_DECL_SNPRINTF
1232 HAVE_DECL_OBSTACK_PRINTF
1233 HAVE_DECL_GETLINE
1234 HAVE_DECL_GETDELIM
1235 HAVE_DECL_FPURGE
1236 GNULIB_VSPRINTF_POSIX
1237 GNULIB_VSNPRINTF
1238 GNULIB_VPRINTF_POSIX
1239 GNULIB_VPRINTF
1240 GNULIB_VFPRINTF_POSIX
1241 GNULIB_VFPRINTF
1242 GNULIB_VDPRINTF
1243 GNULIB_VASPRINTF
1244 GNULIB_TMPFILE
1245 GNULIB_STDIO_H_SIGPIPE
1246 GNULIB_SPRINTF_POSIX
1247 GNULIB_SNPRINTF
1248 GNULIB_RENAMEAT
1249 GNULIB_RENAME
1250 GNULIB_REMOVE
1251 GNULIB_PUTS
1252 GNULIB_PUTCHAR
1253 GNULIB_PUTC
1254 GNULIB_PRINTF_POSIX
1255 GNULIB_PRINTF
1256 GNULIB_POPEN
1257 GNULIB_PERROR
1258 GNULIB_OBSTACK_PRINTF_POSIX
1259 GNULIB_OBSTACK_PRINTF
1260 GNULIB_GETLINE
1261 GNULIB_GETDELIM
1262 GNULIB_FWRITE
1263 GNULIB_FTELLO
1264 GNULIB_FTELL
1265 GNULIB_FSEEKO
1266 GNULIB_FSEEK
1267 GNULIB_FREOPEN
1268 GNULIB_FPUTS
1269 GNULIB_FPUTC
1270 GNULIB_FPURGE
1271 GNULIB_FPRINTF_POSIX
1272 GNULIB_FPRINTF
1273 GNULIB_FOPEN
1274 GNULIB_FFLUSH
1275 GNULIB_FCLOSE
1276 GNULIB_DPRINTF
1277 FNMATCH_H
1278 FLOAT_H
1279 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1280 NEXT_FLOAT_H
1281 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1282 NEXT_FCNTL_H
1283 REPLACE_OPENAT
1284 REPLACE_OPEN
1285 REPLACE_FCNTL
1286 HAVE_OPENAT
1287 HAVE_FCNTL
1288 GNULIB_OPENAT
1289 GNULIB_OPEN
1290 GNULIB_FCNTL
1291 EOVERFLOW_VALUE
1292 EOVERFLOW_HIDDEN
1293 ENOLINK_VALUE
1294 ENOLINK_HIDDEN
1295 EMULTIHOP_VALUE
1296 EMULTIHOP_HIDDEN
1297 ERRNO_H
1298 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1299 NEXT_ERRNO_H
1300 PRAGMA_SYSTEM_HEADER
1301 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1302 INCLUDE_NEXT
1303 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1304 UNISTD_H_HAVE_WINSOCK2_H
1305 REPLACE_WRITE
1306 REPLACE_USLEEP
1307 REPLACE_UNLINKAT
1308 REPLACE_UNLINK
1309 REPLACE_TTYNAME_R
1310 REPLACE_SYMLINK
1311 REPLACE_SLEEP
1312 REPLACE_RMDIR
1313 REPLACE_READLINK
1314 REPLACE_PWRITE
1315 REPLACE_PREAD
1316 REPLACE_LSEEK
1317 REPLACE_LINKAT
1318 REPLACE_LINK
1319 REPLACE_LCHOWN
1320 REPLACE_GETPAGESIZE
1321 REPLACE_GETGROUPS
1322 REPLACE_GETCWD
1323 REPLACE_FCHOWNAT
1324 REPLACE_DUP2
1325 REPLACE_DUP
1326 REPLACE_CLOSE
1327 REPLACE_CHOWN
1328 HAVE_SYS_PARAM_H
1329 HAVE_OS_H
1330 HAVE_DECL_GETUSERSHELL
1331 HAVE_DECL_GETPAGESIZE
1332 HAVE_DECL_GETLOGIN_R
1333 HAVE_DECL_ENVIRON
1334 HAVE_USLEEP
1335 HAVE_UNLINKAT
1336 HAVE_TTYNAME_R
1337 HAVE_SYMLINKAT
1338 HAVE_SYMLINK
1339 HAVE_SLEEP
1340 HAVE_READLINKAT
1341 HAVE_READLINK
1342 HAVE_PWRITE
1343 HAVE_PREAD
1344 HAVE_PIPE2
1345 HAVE_LINKAT
1346 HAVE_LINK
1347 HAVE_LCHOWN
1348 HAVE_GETPAGESIZE
1349 HAVE_GETLOGIN
1350 HAVE_GETHOSTNAME
1351 HAVE_GETGROUPS
1352 HAVE_GETDTABLESIZE
1353 HAVE_GETDOMAINNAME
1354 HAVE_FTRUNCATE
1355 HAVE_FSYNC
1356 HAVE_FCHOWNAT
1357 HAVE_FCHDIR
1358 HAVE_FACCESSAT
1359 HAVE_EUIDACCESS
1360 HAVE_DUP3
1361 HAVE_DUP2
1362 HAVE_CHOWN
1363 GNULIB_WRITE
1364 GNULIB_USLEEP
1365 GNULIB_UNLINKAT
1366 GNULIB_UNLINK
1367 GNULIB_UNISTD_H_SIGPIPE
1368 GNULIB_UNISTD_H_GETOPT
1369 GNULIB_TTYNAME_R
1370 GNULIB_SYMLINKAT
1371 GNULIB_SYMLINK
1372 GNULIB_SLEEP
1373 GNULIB_RMDIR
1374 GNULIB_READLINKAT
1375 GNULIB_READLINK
1376 GNULIB_PWRITE
1377 GNULIB_PREAD
1378 GNULIB_PIPE2
1379 GNULIB_LSEEK
1380 GNULIB_LINKAT
1381 GNULIB_LINK
1382 GNULIB_LCHOWN
1383 GNULIB_GETUSERSHELL
1384 GNULIB_GETPAGESIZE
1385 GNULIB_GETLOGIN_R
1386 GNULIB_GETLOGIN
1387 GNULIB_GETHOSTNAME
1388 GNULIB_GETGROUPS
1389 GNULIB_GETDTABLESIZE
1390 GNULIB_GETDOMAINNAME
1391 GNULIB_GETCWD
1392 GNULIB_FTRUNCATE
1393 GNULIB_FSYNC
1394 GNULIB_FCHOWNAT
1395 GNULIB_FCHDIR
1396 GNULIB_FACCESSAT
1397 GNULIB_EUIDACCESS
1398 GNULIB_ENVIRON
1399 GNULIB_DUP3
1400 GNULIB_DUP2
1401 GNULIB_CLOSE
1402 GNULIB_CHOWN
1403 REPLACE_UNSETENV
1404 REPLACE_STRTOD
1405 REPLACE_SETENV
1406 REPLACE_REALPATH
1407 REPLACE_PUTENV
1408 REPLACE_MKSTEMP
1409 REPLACE_CANONICALIZE_FILE_NAME
1410 HAVE_UNSETENV
1411 HAVE_UNLOCKPT
1412 HAVE_SYS_LOADAVG_H
1413 HAVE_STRUCT_RANDOM_DATA
1414 HAVE_STRTOULL
1415 HAVE_STRTOLL
1416 HAVE_STRTOD
1417 HAVE_SETENV
1418 HAVE_RPMATCH
1419 HAVE_REALPATH
1420 HAVE_REALLOC_POSIX
1421 HAVE_RANDOM_R
1422 HAVE_PTSNAME
1423 HAVE_MKSTEMPS
1424 HAVE_MKSTEMP
1425 HAVE_MKOSTEMPS
1426 HAVE_MKOSTEMP
1427 HAVE_MKDTEMP
1428 HAVE_MALLOC_POSIX
1429 HAVE_GRANTPT
1430 HAVE_GETSUBOPT
1431 HAVE_DECL_GETLOADAVG
1432 HAVE_CANONICALIZE_FILE_NAME
1433 HAVE_CALLOC_POSIX
1434 HAVE_ATOLL
1435 GNULIB_UNSETENV
1436 GNULIB_UNLOCKPT
1437 GNULIB_STRTOULL
1438 GNULIB_STRTOLL
1439 GNULIB_STRTOD
1440 GNULIB_SETENV
1441 GNULIB_RPMATCH
1442 GNULIB_REALPATH
1443 GNULIB_REALLOC_POSIX
1444 GNULIB_RANDOM_R
1445 GNULIB_PUTENV
1446 GNULIB_PTSNAME
1447 GNULIB_MKSTEMPS
1448 GNULIB_MKSTEMP
1449 GNULIB_MKOSTEMPS
1450 GNULIB_MKOSTEMP
1451 GNULIB_MKDTEMP
1452 GNULIB_MALLOC_POSIX
1453 GNULIB_GRANTPT
1454 GNULIB_GETSUBOPT
1455 GNULIB_GETLOADAVG
1456 GNULIB_CANONICALIZE_FILE_NAME
1457 GNULIB_CALLOC_POSIX
1458 GNULIB_ATOLL
1459 BYTESWAP_H
1460 ALLOCA_H
1461 USE_ACL
1462 LIB_ACL
1463 GL_COND_LIBTOOL_FALSE
1464 GL_COND_LIBTOOL_TRUE
1465 MSGMERGE_LIBM
1466 BISON_LOCALEDIR
1467 POSUB
1468 LTLIBINTL
1469 LIBINTL
1470 INTLLIBS
1471 INTL_LIBTOOL_SUFFIX_PREFIX
1472 INTLOBJS
1473 GENCAT
1474 INSTOBJEXT
1475 DATADIRNAME
1476 CATOBJEXT
1477 USE_INCLUDED_LIBINTL
1478 BUILD_INCLUDED_LIBINTL
1479 LTLIBC
1480 WINDRES
1481 WOE32
1482 WOE32DLL
1483 HAVE_WPRINTF
1484 HAVE_NEWLOCALE
1485 HAVE_SNPRINTF
1486 HAVE_ASPRINTF
1487 HAVE_POSIX_PRINTF
1488 INTL_DEFAULT_VERBOSITY
1489 INTL_MACOSX_LIBS
1490 GLIBC21
1491 INTLBISON
1492 LTLIBICONV
1493 LIBICONV
1494 LTLIBMULTITHREAD
1495 LIBMULTITHREAD
1496 LTLIBTHREAD
1497 LIBTHREAD
1498 LIBPTH_PREFIX
1499 LTLIBPTH
1500 LIBPTH
1501 PRI_MACROS_BROKEN
1502 ALLOCA
1503 HAVE_VISIBILITY
1504 CFLAG_VISIBILITY
1505 GLIBC2
1506 XGETTEXT_EXTRA_OPTIONS
1507 MSGMERGE
1508 XGETTEXT_015
1509 XGETTEXT
1510 GMSGFMT_015
1511 MSGFMT_015
1512 GMSGFMT
1513 MSGFMT
1514 GETTEXT_MACRO_VERSION
1515 USE_NLS
1516 WOE32_FALSE
1517 WOE32_TRUE
1518 LTNOUNDEF
1519 RC
1520 OTOOL64
1521 OTOOL
1522 LIPO
1523 NMEDIT
1524 DSYMUTIL
1525 lt_ECHO
1526 AR
1527 LN_S
1528 NM
1529 ac_ct_DUMPBIN
1530 DUMPBIN
1531 LD
1532 FGREP
1533 SED
1534 LIBTOOL
1535 OBJDUMP
1536 DLLTOOL
1537 AS
1538 RANLIB
1539 host_os
1540 host_vendor
1541 host_cpu
1542 host
1543 build_os
1544 build_vendor
1545 build_cpu
1546 build
1547 TESTCSHARP
1548 HAVE_CLIX
1549 HAVE_MONO
1550 HAVE_ILRUN
1551 CLIX_PATH
1552 CLIX_PATH_VAR
1553 MONO_PATH_SEPARATOR
1554 MONO_PATH
1555 HAVE_CLIX_IN_PATH
1556 HAVE_MONO_IN_PATH
1557 HAVE_ILRUN_IN_PATH
1558 BUILDCSHARP
1559 CSHARPCOMPFLAGS
1560 HAVE_CSC
1561 HAVE_MCS
1562 HAVE_CSCC
1563 HAVE_CSC_IN_PATH
1564 HAVE_MCS_IN_PATH
1565 HAVE_CSCC_IN_PATH
1566 CSHARP_CHOICE
1567 TESTJAVA
1568 BUILDJAVA
1569 JAR
1570 HAVE_JIKES
1571 HAVE_JAVAC
1572 HAVE_GCJ_C
1573 HAVE_JAVAC_ENVVAR
1574 CONF_JAVAC
1575 HAVE_JIKES_IN_PATH
1576 HAVE_JAVAC_IN_PATH
1577 HAVE_GCJ_IN_PATH
1578 HAVE_JVIEW
1579 HAVE_JRE
1580 HAVE_JAVA
1581 HAVE_GIJ
1582 HAVE_JAVA_ENVVAR
1583 CLASSPATH_SEPARATOR
1584 CLASSPATH
1585 CONF_JAVA
1586 HAVE_JVIEW_IN_PATH
1587 HAVE_JRE_IN_PATH
1588 HAVE_JAVA_IN_PATH
1589 HAVE_GIJ_IN_PATH
1590 EGREP
1591 GREP
1592 CPP
1593 BUILDJAVAEXE
1594 HAVE_GCJ
1595 GCJFLAGS
1596 GCJ
1597 JAVA_CHOICE
1598 YFLAGS
1599 YACC
1600 am__fastdepCC_FALSE
1601 am__fastdepCC_TRUE
1602 CCDEPMODE
1603 AMDEPBACKSLASH
1604 AMDEP_FALSE
1605 AMDEP_TRUE
1606 am__quote
1607 am__include
1608 DEPDIR
1609 OBJEXT
1610 EXEEXT
1611 ac_ct_CC
1612 CPPFLAGS
1613 LDFLAGS
1614 CFLAGS
1615 CC
1616 AM_BACKSLASH
1617 AM_DEFAULT_VERBOSITY
1618 am__untar
1619 am__tar
1620 AMTAR
1621 am__leading_dot
1622 SET_MAKE
1623 AWK
1624 mkdir_p
1625 MKDIR_P
1626 INSTALL_STRIP_PROGRAM
1627 STRIP
1628 install_sh
1629 MAKEINFO
1630 AUTOHEADER
1631 AUTOMAKE
1632 AUTOCONF
1633 ACLOCAL
1634 VERSION
1635 PACKAGE
1636 CYGPATH_W
1637 am__isrc
1638 INSTALL_DATA
1639 INSTALL_SCRIPT
1640 INSTALL_PROGRAM
1641 target_alias
1642 host_alias
1643 build_alias
1644 LIBS
1645 ECHO_T
1646 ECHO_N
1647 ECHO_C
1648 DEFS
1649 mandir
1650 localedir
1651 libdir
1652 psdir
1653 pdfdir
1654 dvidir
1655 htmldir
1656 infodir
1657 docdir
1658 oldincludedir
1659 includedir
1660 localstatedir
1661 sharedstatedir
1662 sysconfdir
1663 datadir
1664 datarootdir
1665 libexecdir
1666 sbindir
1667 bindir
1668 program_transform_name
1669 prefix
1670 exec_prefix
1671 PACKAGE_URL
1672 PACKAGE_BUGREPORT
1673 PACKAGE_STRING
1674 PACKAGE_VERSION
1675 PACKAGE_TARNAME
1676 PACKAGE_NAME
1677 PATH_SEPARATOR
1678 SHELL'
1679 ac_subst_files='relocatable_sh'
1680 ac_user_opts='
1681 enable_option_checking
1682 enable_silent_rules
1683 enable_dependency_tracking
1684 enable_java
1685 enable_native_java
1686 enable_csharp
1687 enable_threads
1688 enable_shared
1689 enable_static
1690 with_pic
1691 enable_fast_install
1692 with_gnu_ld
1693 enable_libtool_lock
1694 enable_nls
1695 enable_rpath
1696 with_libpth_prefix
1697 with_libiconv_prefix
1698 with_included_gettext
1699 with_libintl_prefix
1700 enable_acl
1701 with_included_glib
1702 with_libglib_20_prefix
1703 with_included_libcroco
1704 with_libcroco_06_prefix
1705 with_included_libunistring
1706 with_libunistring_prefix
1707 with_included_libxml
1708 with_libxml2_prefix
1709 enable_openmp
1710 enable_relocatable
1711 enable_largefile
1712 enable_curses
1713 with_libncurses_prefix
1714 with_libtermcap_prefix
1715 with_libxcurses_prefix
1716 with_libcurses_prefix
1717 with_included_regex
1718 with_libexpat_prefix
1719 with_lispdir
1720 with_emacs
1721 with_git
1722 with_cvs
1723 '
1724       ac_precious_vars='build_alias
1725 host_alias
1726 target_alias
1727 CC
1728 CFLAGS
1729 LDFLAGS
1730 LIBS
1731 CPPFLAGS
1732 YACC
1733 YFLAGS
1734 GCJ
1735 GCJFLAGS
1736 CPP
1737 EMACS
1738 EMACSLOADPATH
1739 CXX
1740 CXXFLAGS
1741 CCC
1742 CXXCPP'
1743 ac_subdirs_all='examples'
1744
1745 # Initialize some variables set by options.
1746 ac_init_help=
1747 ac_init_version=false
1748 ac_unrecognized_opts=
1749 ac_unrecognized_sep=
1750 # The variables have the same names as the options, with
1751 # dashes changed to underlines.
1752 cache_file=/dev/null
1753 exec_prefix=NONE
1754 no_create=
1755 no_recursion=
1756 prefix=NONE
1757 program_prefix=NONE
1758 program_suffix=NONE
1759 program_transform_name=s,x,x,
1760 silent=
1761 site=
1762 srcdir=
1763 verbose=
1764 x_includes=NONE
1765 x_libraries=NONE
1766
1767 # Installation directory options.
1768 # These are left unexpanded so users can "make install exec_prefix=/foo"
1769 # and all the variables that are supposed to be based on exec_prefix
1770 # by default will actually change.
1771 # Use braces instead of parens because sh, perl, etc. also accept them.
1772 # (The list follows the same order as the GNU Coding Standards.)
1773 bindir='${exec_prefix}/bin'
1774 sbindir='${exec_prefix}/sbin'
1775 libexecdir='${exec_prefix}/libexec'
1776 datarootdir='${prefix}/share'
1777 datadir='${datarootdir}'
1778 sysconfdir='${prefix}/etc'
1779 sharedstatedir='${prefix}/com'
1780 localstatedir='${prefix}/var'
1781 includedir='${prefix}/include'
1782 oldincludedir='/usr/include'
1783 docdir='${datarootdir}/doc/${PACKAGE}'
1784 infodir='${datarootdir}/info'
1785 htmldir='${docdir}'
1786 dvidir='${docdir}'
1787 pdfdir='${docdir}'
1788 psdir='${docdir}'
1789 libdir='${exec_prefix}/lib'
1790 localedir='${datarootdir}/locale'
1791 mandir='${datarootdir}/man'
1792
1793 ac_prev=
1794 ac_dashdash=
1795 for ac_option
1796 do
1797   # If the previous option needs an argument, assign it.
1798   if test -n "$ac_prev"; then
1799     eval $ac_prev=\$ac_option
1800     ac_prev=
1801     continue
1802   fi
1803
1804   case $ac_option in
1805   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1806   *)    ac_optarg=yes ;;
1807   esac
1808
1809   # Accept the important Cygnus configure options, so we can diagnose typos.
1810
1811   case $ac_dashdash$ac_option in
1812   --)
1813     ac_dashdash=yes ;;
1814
1815   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1816     ac_prev=bindir ;;
1817   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1818     bindir=$ac_optarg ;;
1819
1820   -build | --build | --buil | --bui | --bu)
1821     ac_prev=build_alias ;;
1822   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1823     build_alias=$ac_optarg ;;
1824
1825   -cache-file | --cache-file | --cache-fil | --cache-fi \
1826   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1827     ac_prev=cache_file ;;
1828   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1829   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1830     cache_file=$ac_optarg ;;
1831
1832   --config-cache | -C)
1833     cache_file=config.cache ;;
1834
1835   -datadir | --datadir | --datadi | --datad)
1836     ac_prev=datadir ;;
1837   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1838     datadir=$ac_optarg ;;
1839
1840   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1841   | --dataroo | --dataro | --datar)
1842     ac_prev=datarootdir ;;
1843   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1844   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1845     datarootdir=$ac_optarg ;;
1846
1847   -disable-* | --disable-*)
1848     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1849     # Reject names that are not valid shell variable names.
1850     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1851       as_fn_error "invalid feature name: $ac_useropt"
1852     ac_useropt_orig=$ac_useropt
1853     ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'`
1854     case $ac_user_opts in
1855       *"
1856 "enable_$ac_useropt"
1857 "*) ;;
1858       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1859          ac_unrecognized_sep=', ';;
1860     esac
1861     eval enable_$ac_useropt=no ;;
1862
1863   -docdir | --docdir | --docdi | --doc | --do)
1864     ac_prev=docdir ;;
1865   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1866     docdir=$ac_optarg ;;
1867
1868   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1869     ac_prev=dvidir ;;
1870   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1871     dvidir=$ac_optarg ;;
1872
1873   -enable-* | --enable-*)
1874     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1875     # Reject names that are not valid shell variable names.
1876     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1877       as_fn_error "invalid feature name: $ac_useropt"
1878     ac_useropt_orig=$ac_useropt
1879     ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'`
1880     case $ac_user_opts in
1881       *"
1882 "enable_$ac_useropt"
1883 "*) ;;
1884       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1885          ac_unrecognized_sep=', ';;
1886     esac
1887     eval enable_$ac_useropt=\$ac_optarg ;;
1888
1889   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1890   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1891   | --exec | --exe | --ex)
1892     ac_prev=exec_prefix ;;
1893   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1894   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1895   | --exec=* | --exe=* | --ex=*)
1896     exec_prefix=$ac_optarg ;;
1897
1898   -gas | --gas | --ga | --g)
1899     # Obsolete; use --with-gas.
1900     with_gas=yes ;;
1901
1902   -help | --help | --hel | --he | -h)
1903     ac_init_help=long ;;
1904   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1905     ac_init_help=recursive ;;
1906   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1907     ac_init_help=short ;;
1908
1909   -host | --host | --hos | --ho)
1910     ac_prev=host_alias ;;
1911   -host=* | --host=* | --hos=* | --ho=*)
1912     host_alias=$ac_optarg ;;
1913
1914   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1915     ac_prev=htmldir ;;
1916   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1917   | --ht=*)
1918     htmldir=$ac_optarg ;;
1919
1920   -includedir | --includedir | --includedi | --included | --include \
1921   | --includ | --inclu | --incl | --inc)
1922     ac_prev=includedir ;;
1923   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1924   | --includ=* | --inclu=* | --incl=* | --inc=*)
1925     includedir=$ac_optarg ;;
1926
1927   -infodir | --infodir | --infodi | --infod | --info | --inf)
1928     ac_prev=infodir ;;
1929   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1930     infodir=$ac_optarg ;;
1931
1932   -libdir | --libdir | --libdi | --libd)
1933     ac_prev=libdir ;;
1934   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1935     libdir=$ac_optarg ;;
1936
1937   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1938   | --libexe | --libex | --libe)
1939     ac_prev=libexecdir ;;
1940   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1941   | --libexe=* | --libex=* | --libe=*)
1942     libexecdir=$ac_optarg ;;
1943
1944   -localedir | --localedir | --localedi | --localed | --locale)
1945     ac_prev=localedir ;;
1946   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1947     localedir=$ac_optarg ;;
1948
1949   -localstatedir | --localstatedir | --localstatedi | --localstated \
1950   | --localstate | --localstat | --localsta | --localst | --locals)
1951     ac_prev=localstatedir ;;
1952   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1953   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1954     localstatedir=$ac_optarg ;;
1955
1956   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1957     ac_prev=mandir ;;
1958   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1959     mandir=$ac_optarg ;;
1960
1961   -nfp | --nfp | --nf)
1962     # Obsolete; use --without-fp.
1963     with_fp=no ;;
1964
1965   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1966   | --no-cr | --no-c | -n)
1967     no_create=yes ;;
1968
1969   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1970   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1971     no_recursion=yes ;;
1972
1973   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1974   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1975   | --oldin | --oldi | --old | --ol | --o)
1976     ac_prev=oldincludedir ;;
1977   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1978   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1979   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1980     oldincludedir=$ac_optarg ;;
1981
1982   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1983     ac_prev=prefix ;;
1984   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1985     prefix=$ac_optarg ;;
1986
1987   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1988   | --program-pre | --program-pr | --program-p)
1989     ac_prev=program_prefix ;;
1990   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1991   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1992     program_prefix=$ac_optarg ;;
1993
1994   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1995   | --program-suf | --program-su | --program-s)
1996     ac_prev=program_suffix ;;
1997   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1998   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1999     program_suffix=$ac_optarg ;;
2000
2001   -program-transform-name | --program-transform-name \
2002   | --program-transform-nam | --program-transform-na \
2003   | --program-transform-n | --program-transform- \
2004   | --program-transform | --program-transfor \
2005   | --program-transfo | --program-transf \
2006   | --program-trans | --program-tran \
2007   | --progr-tra | --program-tr | --program-t)
2008     ac_prev=program_transform_name ;;
2009   -program-transform-name=* | --program-transform-name=* \
2010   | --program-transform-nam=* | --program-transform-na=* \
2011   | --program-transform-n=* | --program-transform-=* \
2012   | --program-transform=* | --program-transfor=* \
2013   | --program-transfo=* | --program-transf=* \
2014   | --program-trans=* | --program-tran=* \
2015   | --progr-tra=* | --program-tr=* | --program-t=*)
2016     program_transform_name=$ac_optarg ;;
2017
2018   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2019     ac_prev=pdfdir ;;
2020   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2021     pdfdir=$ac_optarg ;;
2022
2023   -psdir | --psdir | --psdi | --psd | --ps)
2024     ac_prev=psdir ;;
2025   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2026     psdir=$ac_optarg ;;
2027
2028   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2029   | -silent | --silent | --silen | --sile | --sil)
2030     silent=yes ;;
2031
2032   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2033     ac_prev=sbindir ;;
2034   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2035   | --sbi=* | --sb=*)
2036     sbindir=$ac_optarg ;;
2037
2038   -sharedstatedir | --sharedstatedir | --sharedstatedi \
2039   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2040   | --sharedst | --shareds | --shared | --share | --shar \
2041   | --sha | --sh)
2042     ac_prev=sharedstatedir ;;
2043   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2044   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2045   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2046   | --sha=* | --sh=*)
2047     sharedstatedir=$ac_optarg ;;
2048
2049   -site | --site | --sit)
2050     ac_prev=site ;;
2051   -site=* | --site=* | --sit=*)
2052     site=$ac_optarg ;;
2053
2054   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2055     ac_prev=srcdir ;;
2056   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2057     srcdir=$ac_optarg ;;
2058
2059   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2060   | --syscon | --sysco | --sysc | --sys | --sy)
2061     ac_prev=sysconfdir ;;
2062   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2063   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2064     sysconfdir=$ac_optarg ;;
2065
2066   -target | --target | --targe | --targ | --tar | --ta | --t)
2067     ac_prev=target_alias ;;
2068   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2069     target_alias=$ac_optarg ;;
2070
2071   -v | -verbose | --verbose | --verbos | --verbo | --verb)
2072     verbose=yes ;;
2073
2074   -version | --version | --versio | --versi | --vers | -V)
2075     ac_init_version=: ;;
2076
2077   -with-* | --with-*)
2078     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2079     # Reject names that are not valid shell variable names.
2080     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2081       as_fn_error "invalid package name: $ac_useropt"
2082     ac_useropt_orig=$ac_useropt
2083     ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'`
2084     case $ac_user_opts in
2085       *"
2086 "with_$ac_useropt"
2087 "*) ;;
2088       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2089          ac_unrecognized_sep=', ';;
2090     esac
2091     eval with_$ac_useropt=\$ac_optarg ;;
2092
2093   -without-* | --without-*)
2094     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2095     # Reject names that are not valid shell variable names.
2096     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2097       as_fn_error "invalid package name: $ac_useropt"
2098     ac_useropt_orig=$ac_useropt
2099     ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'`
2100     case $ac_user_opts in
2101       *"
2102 "with_$ac_useropt"
2103 "*) ;;
2104       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2105          ac_unrecognized_sep=', ';;
2106     esac
2107     eval with_$ac_useropt=no ;;
2108
2109   --x)
2110     # Obsolete; use --with-x.
2111     with_x=yes ;;
2112
2113   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2114   | --x-incl | --x-inc | --x-in | --x-i)
2115     ac_prev=x_includes ;;
2116   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2117   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2118     x_includes=$ac_optarg ;;
2119
2120   -x-libraries | --x-libraries | --x-librarie | --x-librari \
2121   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2122     ac_prev=x_libraries ;;
2123   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2124   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2125     x_libraries=$ac_optarg ;;
2126
2127   -*) as_fn_error "unrecognized option: \`$ac_option'
2128 Try \`$0 --help' for more information."
2129     ;;
2130
2131   *=*)
2132     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2133     # Reject names that are not valid shell variable names.
2134     case $ac_envvar in #(
2135       '' | [0-9]* | *[!_$as_cr_alnum]* )
2136       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
2137     esac
2138     eval $ac_envvar=\$ac_optarg
2139     export $ac_envvar ;;
2140
2141   *)
2142     # FIXME: should be removed in autoconf 3.0.
2143     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2144     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2145       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2146     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2147     ;;
2148
2149   esac
2150 done
2151
2152 if test -n "$ac_prev"; then
2153   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2154   as_fn_error "missing argument to $ac_option"
2155 fi
2156
2157 if test -n "$ac_unrecognized_opts"; then
2158   case $enable_option_checking in
2159     no) ;;
2160     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
2161     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2162   esac
2163 fi
2164
2165 # Check all directory arguments for consistency.
2166 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
2167                 datadir sysconfdir sharedstatedir localstatedir includedir \
2168                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2169                 libdir localedir mandir
2170 do
2171   eval ac_val=\$$ac_var
2172   # Remove trailing slashes.
2173   case $ac_val in
2174     */ )
2175       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2176       eval $ac_var=\$ac_val;;
2177   esac
2178   # Be sure to have absolute directory names.
2179   case $ac_val in
2180     [\\/$]* | ?:[\\/]* )  continue;;
2181     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2182   esac
2183   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
2184 done
2185
2186 # There might be people who depend on the old broken behavior: `$host'
2187 # used to hold the argument of --host etc.
2188 # FIXME: To remove some day.
2189 build=$build_alias
2190 host=$host_alias
2191 target=$target_alias
2192
2193 # FIXME: To remove some day.
2194 if test "x$host_alias" != x; then
2195   if test "x$build_alias" = x; then
2196     cross_compiling=maybe
2197     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2198     If a cross compiler is detected then cross compile mode will be used." >&2
2199   elif test "x$build_alias" != "x$host_alias"; then
2200     cross_compiling=yes
2201   fi
2202 fi
2203
2204 ac_tool_prefix=
2205 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2206
2207 test "$silent" = yes && exec 6>/dev/null
2208
2209
2210 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2211 ac_ls_di=`ls -di .` &&
2212 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2213   as_fn_error "working directory cannot be determined"
2214 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2215   as_fn_error "pwd does not report name of working directory"
2216
2217
2218 # Find the source files, if location was not specified.
2219 if test -z "$srcdir"; then
2220   ac_srcdir_defaulted=yes
2221   # Try the directory containing this script, then the parent directory.
2222   ac_confdir=`$as_dirname -- "$as_myself" ||
2223 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2224          X"$as_myself" : 'X\(//\)[^/]' \| \
2225          X"$as_myself" : 'X\(//\)$' \| \
2226          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2227 $as_echo X"$as_myself" |
2228     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2229             s//\1/
2230             q
2231           }
2232           /^X\(\/\/\)[^/].*/{
2233             s//\1/
2234             q
2235           }
2236           /^X\(\/\/\)$/{
2237             s//\1/
2238             q
2239           }
2240           /^X\(\/\).*/{
2241             s//\1/
2242             q
2243           }
2244           s/.*/./; q'`
2245   srcdir=$ac_confdir
2246   if test ! -r "$srcdir/$ac_unique_file"; then
2247     srcdir=..
2248   fi
2249 else
2250   ac_srcdir_defaulted=no
2251 fi
2252 if test ! -r "$srcdir/$ac_unique_file"; then
2253   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2254   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2255 fi
2256 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2257 ac_abs_confdir=`(
2258         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2259         pwd)`
2260 # When building in place, set srcdir=.
2261 if test "$ac_abs_confdir" = "$ac_pwd"; then
2262   srcdir=.
2263 fi
2264 # Remove unnecessary trailing slashes from srcdir.
2265 # Double slashes in file names in object file debugging info
2266 # mess up M-x gdb in Emacs.
2267 case $srcdir in
2268 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2269 esac
2270 for ac_var in $ac_precious_vars; do
2271   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2272   eval ac_env_${ac_var}_value=\$${ac_var}
2273   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2274   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2275 done
2276
2277 #
2278 # Report the --help message.
2279 #
2280 if test "$ac_init_help" = "long"; then
2281   # Omit some internal or obsolete options to make the list less imposing.
2282   # This message is too long to be a string in the A/UX 3.1 sh.
2283   cat <<_ACEOF
2284 \`configure' configures this package to adapt to many kinds of systems.
2285
2286 Usage: $0 [OPTION]... [VAR=VALUE]...
2287
2288 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2289 VAR=VALUE.  See below for descriptions of some of the useful variables.
2290
2291 Defaults for the options are specified in brackets.
2292
2293 Configuration:
2294   -h, --help              display this help and exit
2295       --help=short        display options specific to this package
2296       --help=recursive    display the short help of all the included packages
2297   -V, --version           display version information and exit
2298   -q, --quiet, --silent   do not print \`checking...' messages
2299       --cache-file=FILE   cache test results in FILE [disabled]
2300   -C, --config-cache      alias for \`--cache-file=config.cache'
2301   -n, --no-create         do not create output files
2302       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2303
2304 Installation directories:
2305   --prefix=PREFIX         install architecture-independent files in PREFIX
2306                           [$ac_default_prefix]
2307   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2308                           [PREFIX]
2309
2310 By default, \`make install' will install all the files in
2311 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2312 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2313 for instance \`--prefix=\$HOME'.
2314
2315 For better control, use the options below.
2316
2317 Fine tuning of the installation directories:
2318   --bindir=DIR            user executables [EPREFIX/bin]
2319   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2320   --libexecdir=DIR        program executables [EPREFIX/libexec]
2321   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2322   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2323   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2324   --libdir=DIR            object code libraries [EPREFIX/lib]
2325   --includedir=DIR        C header files [PREFIX/include]
2326   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2327   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2328   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2329   --infodir=DIR           info documentation [DATAROOTDIR/info]
2330   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2331   --mandir=DIR            man documentation [DATAROOTDIR/man]
2332   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
2333   --htmldir=DIR           html documentation [DOCDIR]
2334   --dvidir=DIR            dvi documentation [DOCDIR]
2335   --pdfdir=DIR            pdf documentation [DOCDIR]
2336   --psdir=DIR             ps documentation [DOCDIR]
2337 _ACEOF
2338
2339   cat <<\_ACEOF
2340
2341 Program names:
2342   --program-prefix=PREFIX            prepend PREFIX to installed program names
2343   --program-suffix=SUFFIX            append SUFFIX to installed program names
2344   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2345
2346 System types:
2347   --build=BUILD     configure for building on BUILD [guessed]
2348   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2349 _ACEOF
2350 fi
2351
2352 if test -n "$ac_init_help"; then
2353
2354   cat <<\_ACEOF
2355
2356 Optional Features:
2357   --disable-option-checking  ignore unrecognized --enable/--with options
2358   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2359   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2360   --enable-silent-rules          less verbose build output (undo: `make V=1')
2361   --disable-silent-rules         verbose build output (undo: `make V=0')
2362   --disable-dependency-tracking  speeds up one-time build
2363   --enable-dependency-tracking   do not reject slow dependency extractors
2364   --disable-java          do not build Java sources
2365   --disable-native-java   do not compile Java to native executables
2366   --enable-csharp[=IMPL]  choose preferred C# implementation (pnet or mono)
2367   --enable-threads={posix|solaris|pth|win32}
2368                           specify multithreading API
2369   --disable-threads       build without multithread safety
2370   --enable-shared[=PKGS]  build shared libraries [default=yes]
2371   --enable-static[=PKGS]  build static libraries [default=yes]
2372   --enable-fast-install[=PKGS]
2373                           optimize for fast installation [default=yes]
2374   --disable-libtool-lock  avoid locking (might break parallel builds)
2375   --disable-nls           do not use Native Language Support
2376   --disable-rpath         do not hardcode runtime library paths
2377   --disable-acl           do not support ACLs
2378   --disable-openmp        do not use OpenMP
2379   --enable-relocatable    install a package that can be moved in the file
2380                           system
2381   --disable-largefile     omit support for large files
2382   --disable-curses        do not use libncurses, libtermcap even if they exist
2383
2384 Optional Packages:
2385   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2386   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2387   --with-pic              try to use only PIC/non-PIC objects [default=use
2388                           both]
2389   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2390   --with-gnu-ld           assume the C compiler uses GNU ld default=no
2391   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2392   --without-libpth-prefix     don't search for libpth in includedir and libdir
2393   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2394   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2395   --with-included-gettext use the GNU gettext library included here
2396   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2397   --without-libintl-prefix     don't search for libintl in includedir and libdir
2398   --with-included-glib    use the glib2 included here
2399   --with-libglib-2.0-prefix[=DIR]  search for libglib-2.0 in DIR/include and DIR/lib
2400   --without-libglib-2.0-prefix     don't search for libglib-2.0 in includedir and libdir
2401   --with-included-libcroco  use the libcroco included here
2402   --with-libcroco-0.6-prefix[=DIR]  search for libcroco-0.6 in DIR/include and DIR/lib
2403   --without-libcroco-0.6-prefix     don't search for libcroco-0.6 in includedir and libdir
2404   --with-included-libunistring  use the libunistring parts included here
2405   --with-libunistring-prefix[=DIR]  search for libunistring in DIR/include and DIR/lib
2406   --without-libunistring-prefix     don't search for libunistring in includedir and libdir
2407   --with-included-libxml  use the libxml2 included here
2408   --with-libxml2-prefix[=DIR]  search for libxml2 in DIR/include and DIR/lib
2409   --without-libxml2-prefix     don't search for libxml2 in includedir and libdir
2410   --with-libncurses-prefix[=DIR]  search for libncurses in DIR/include and DIR/lib
2411   --without-libncurses-prefix     don't search for libncurses in includedir and libdir
2412   --with-libtermcap-prefix[=DIR]  search for libtermcap in DIR/include and DIR/lib
2413   --without-libtermcap-prefix     don't search for libtermcap in includedir and libdir
2414   --with-libxcurses-prefix[=DIR]  search for libxcurses in DIR/include and DIR/lib
2415   --without-libxcurses-prefix     don't search for libxcurses in includedir and libdir
2416   --with-libcurses-prefix[=DIR]  search for libcurses in DIR/include and DIR/lib
2417   --without-libcurses-prefix     don't search for libcurses in includedir and libdir
2418   --without-included-regex
2419                           don't compile regex; this is the default on systems
2420                           with recent-enough versions of the GNU C Library
2421                           (use with caution on other systems).
2422   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
2423   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
2424   --with-lispdir          override the default lisp directory
2425   --without-emacs         do not use Emacs, don't install po-mode
2426   --without-git           don't use git to compress the infrastructure archive
2427   --with-cvs              use cvs to compress the infrastructure archive
2428                           (deprecated)
2429
2430 Some influential environment variables:
2431   CC          C compiler command
2432   CFLAGS      C compiler flags
2433   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2434               nonstandard directory <lib dir>
2435   LIBS        libraries to pass to the linker, e.g. -l<library>
2436   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2437               you have headers in a nonstandard directory <include dir>
2438   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
2439               the first program found out of: `bison -y', `byacc', `yacc'.
2440   YFLAGS      The list of arguments that will be passed by default to $YACC.
2441               This script will default YFLAGS to the empty string to avoid a
2442               default value of `-d' given by some make applications.
2443   GCJ         Java native code compiler command
2444   GCJFLAGS    Java native code compiler flags
2445   CPP         C preprocessor
2446   EMACS       the Emacs editor command
2447   EMACSLOADPATH
2448               the Emacs library search path
2449   CXX         C++ compiler command
2450   CXXFLAGS    C++ compiler flags
2451   CXXCPP      C++ preprocessor
2452
2453 Use these variables to override the choices made by `configure' or to help
2454 it to find libraries and programs with nonstandard names/locations.
2455
2456 Report bugs to the package provider.
2457 _ACEOF
2458 ac_status=$?
2459 fi
2460
2461 if test "$ac_init_help" = "recursive"; then
2462   # If there are subdirs, report their specific --help.
2463   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2464     test -d "$ac_dir" ||
2465       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2466       continue
2467     ac_builddir=.
2468
2469 case "$ac_dir" in
2470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2471 *)
2472   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2473   # A ".." for each directory in $ac_dir_suffix.
2474   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2475   case $ac_top_builddir_sub in
2476   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2477   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2478   esac ;;
2479 esac
2480 ac_abs_top_builddir=$ac_pwd
2481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2482 # for backward compatibility:
2483 ac_top_builddir=$ac_top_build_prefix
2484
2485 case $srcdir in
2486   .)  # We are building in place.
2487     ac_srcdir=.
2488     ac_top_srcdir=$ac_top_builddir_sub
2489     ac_abs_top_srcdir=$ac_pwd ;;
2490   [\\/]* | ?:[\\/]* )  # Absolute name.
2491     ac_srcdir=$srcdir$ac_dir_suffix;
2492     ac_top_srcdir=$srcdir
2493     ac_abs_top_srcdir=$srcdir ;;
2494   *) # Relative name.
2495     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2496     ac_top_srcdir=$ac_top_build_prefix$srcdir
2497     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2498 esac
2499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2500
2501     cd "$ac_dir" || { ac_status=$?; continue; }
2502     # Check for guested configure.
2503     if test -f "$ac_srcdir/configure.gnu"; then
2504       echo &&
2505       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2506     elif test -f "$ac_srcdir/configure"; then
2507       echo &&
2508       $SHELL "$ac_srcdir/configure" --help=recursive
2509     else
2510       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2511     fi || ac_status=$?
2512     cd "$ac_pwd" || { ac_status=$?; break; }
2513   done
2514 fi
2515
2516 test -n "$ac_init_help" && exit $ac_status
2517 if $ac_init_version; then
2518   cat <<\_ACEOF
2519 configure
2520 generated by GNU Autoconf 2.65
2521
2522 Copyright (C) 2009 Free Software Foundation, Inc.
2523 This configure script is free software; the Free Software Foundation
2524 gives unlimited permission to copy, distribute and modify it.
2525 _ACEOF
2526   exit
2527 fi
2528
2529 ## ------------------------ ##
2530 ## Autoconf initialization. ##
2531 ## ------------------------ ##
2532
2533 # ac_fn_c_try_compile LINENO
2534 # --------------------------
2535 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2536 ac_fn_c_try_compile ()
2537 {
2538   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2539   rm -f conftest.$ac_objext
2540   if { { ac_try="$ac_compile"
2541 case "(($ac_try" in
2542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543   *) ac_try_echo=$ac_try;;
2544 esac
2545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2546 $as_echo "$ac_try_echo"; } >&5
2547   (eval "$ac_compile") 2>conftest.err
2548   ac_status=$?
2549   if test -s conftest.err; then
2550     grep -v '^ *+' conftest.err >conftest.er1
2551     cat conftest.er1 >&5
2552     mv -f conftest.er1 conftest.err
2553   fi
2554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2555   test $ac_status = 0; } && {
2556          test -z "$ac_c_werror_flag" ||
2557          test ! -s conftest.err
2558        } && test -s conftest.$ac_objext; then :
2559   ac_retval=0
2560 else
2561   $as_echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2563
2564         ac_retval=1
2565 fi
2566   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2567   as_fn_set_status $ac_retval
2568
2569 } # ac_fn_c_try_compile
2570
2571 # ac_fn_c_try_cpp LINENO
2572 # ----------------------
2573 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2574 ac_fn_c_try_cpp ()
2575 {
2576   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577   if { { ac_try="$ac_cpp conftest.$ac_ext"
2578 case "(($ac_try" in
2579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580   *) ac_try_echo=$ac_try;;
2581 esac
2582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2583 $as_echo "$ac_try_echo"; } >&5
2584   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2585   ac_status=$?
2586   if test -s conftest.err; then
2587     grep -v '^ *+' conftest.err >conftest.er1
2588     cat conftest.er1 >&5
2589     mv -f conftest.er1 conftest.err
2590   fi
2591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2592   test $ac_status = 0; } >/dev/null && {
2593          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2594          test ! -s conftest.err
2595        }; then :
2596   ac_retval=0
2597 else
2598   $as_echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2600
2601     ac_retval=1
2602 fi
2603   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2604   as_fn_set_status $ac_retval
2605
2606 } # ac_fn_c_try_cpp
2607
2608 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2609 # -------------------------------------------------------
2610 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2611 # the include files in INCLUDES and setting the cache variable VAR
2612 # accordingly.
2613 ac_fn_c_check_header_mongrel ()
2614 {
2615   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2616   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2618 $as_echo_n "checking for $2... " >&6; }
2619 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2620   $as_echo_n "(cached) " >&6
2621 fi
2622 eval ac_res=\$$3
2623                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2624 $as_echo "$ac_res" >&6; }
2625 else
2626   # Is the header compilable?
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2628 $as_echo_n "checking $2 usability... " >&6; }
2629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630 /* end confdefs.h.  */
2631 $4
2632 #include <$2>
2633 _ACEOF
2634 if ac_fn_c_try_compile "$LINENO"; then :
2635   ac_header_compiler=yes
2636 else
2637   ac_header_compiler=no
2638 fi
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2641 $as_echo "$ac_header_compiler" >&6; }
2642
2643 # Is the header present?
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2645 $as_echo_n "checking $2 presence... " >&6; }
2646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2647 /* end confdefs.h.  */
2648 #include <$2>
2649 _ACEOF
2650 if ac_fn_c_try_cpp "$LINENO"; then :
2651   ac_header_preproc=yes
2652 else
2653   ac_header_preproc=no
2654 fi
2655 rm -f conftest.err conftest.$ac_ext
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2657 $as_echo "$ac_header_preproc" >&6; }
2658
2659 # So?  What about this header?
2660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2661   yes:no: )
2662     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2663 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2664     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2665 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2666     ;;
2667   no:yes:* )
2668     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2669 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2670     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2671 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2672     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2673 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2674     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2675 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2676     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2677 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2678     ;;
2679 esac
2680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2681 $as_echo_n "checking for $2... " >&6; }
2682 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2683   $as_echo_n "(cached) " >&6
2684 else
2685   eval "$3=\$ac_header_compiler"
2686 fi
2687 eval ac_res=\$$3
2688                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2689 $as_echo "$ac_res" >&6; }
2690 fi
2691   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2692
2693 } # ac_fn_c_check_header_mongrel
2694
2695 # ac_fn_c_try_run LINENO
2696 # ----------------------
2697 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2698 # that executables *can* be run.
2699 ac_fn_c_try_run ()
2700 {
2701   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2702   if { { ac_try="$ac_link"
2703 case "(($ac_try" in
2704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705   *) ac_try_echo=$ac_try;;
2706 esac
2707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2708 $as_echo "$ac_try_echo"; } >&5
2709   (eval "$ac_link") 2>&5
2710   ac_status=$?
2711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2712   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2713   { { case "(($ac_try" in
2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715   *) ac_try_echo=$ac_try;;
2716 esac
2717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2718 $as_echo "$ac_try_echo"; } >&5
2719   (eval "$ac_try") 2>&5
2720   ac_status=$?
2721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2722   test $ac_status = 0; }; }; then :
2723   ac_retval=0
2724 else
2725   $as_echo "$as_me: program exited with status $ac_status" >&5
2726        $as_echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2728
2729        ac_retval=$ac_status
2730 fi
2731   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2732   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2733   as_fn_set_status $ac_retval
2734
2735 } # ac_fn_c_try_run
2736
2737 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2738 # -------------------------------------------------------
2739 # Tests whether HEADER exists and can be compiled using the include files in
2740 # INCLUDES, setting the cache variable VAR accordingly.
2741 ac_fn_c_check_header_compile ()
2742 {
2743   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2745 $as_echo_n "checking for $2... " >&6; }
2746 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2747   $as_echo_n "(cached) " >&6
2748 else
2749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2750 /* end confdefs.h.  */
2751 $4
2752 #include <$2>
2753 _ACEOF
2754 if ac_fn_c_try_compile "$LINENO"; then :
2755   eval "$3=yes"
2756 else
2757   eval "$3=no"
2758 fi
2759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2760 fi
2761 eval ac_res=\$$3
2762                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2763 $as_echo "$ac_res" >&6; }
2764   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2765
2766 } # ac_fn_c_check_header_compile
2767
2768 # ac_fn_c_try_link LINENO
2769 # -----------------------
2770 # Try to link conftest.$ac_ext, and return whether this succeeded.
2771 ac_fn_c_try_link ()
2772 {
2773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2774   rm -f conftest.$ac_objext conftest$ac_exeext
2775   if { { ac_try="$ac_link"
2776 case "(($ac_try" in
2777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778   *) ac_try_echo=$ac_try;;
2779 esac
2780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2781 $as_echo "$ac_try_echo"; } >&5
2782   (eval "$ac_link") 2>conftest.err
2783   ac_status=$?
2784   if test -s conftest.err; then
2785     grep -v '^ *+' conftest.err >conftest.er1
2786     cat conftest.er1 >&5
2787     mv -f conftest.er1 conftest.err
2788   fi
2789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2790   test $ac_status = 0; } && {
2791          test -z "$ac_c_werror_flag" ||
2792          test ! -s conftest.err
2793        } && test -s conftest$ac_exeext && {
2794          test "$cross_compiling" = yes ||
2795          $as_test_x conftest$ac_exeext
2796        }; then :
2797   ac_retval=0
2798 else
2799   $as_echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2801
2802         ac_retval=1
2803 fi
2804   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2805   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2806   # interfere with the next link command; also delete a directory that is
2807   # left behind by Apple's compiler.  We do this before executing the actions.
2808   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2809   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2810   as_fn_set_status $ac_retval
2811
2812 } # ac_fn_c_try_link
2813
2814 # ac_fn_c_check_func LINENO FUNC VAR
2815 # ----------------------------------
2816 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2817 ac_fn_c_check_func ()
2818 {
2819   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2821 $as_echo_n "checking for $2... " >&6; }
2822 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2823   $as_echo_n "(cached) " >&6
2824 else
2825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2826 /* end confdefs.h.  */
2827 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2829 #define $2 innocuous_$2
2830
2831 /* System header to define __stub macros and hopefully few prototypes,
2832     which can conflict with char $2 (); below.
2833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2834     <limits.h> exists even on freestanding compilers.  */
2835
2836 #ifdef __STDC__
2837 # include <limits.h>
2838 #else
2839 # include <assert.h>
2840 #endif
2841
2842 #undef $2
2843
2844 /* Override any GCC internal prototype to avoid an error.
2845    Use char because int might match the return type of a GCC
2846    builtin and then its argument prototype would still apply.  */
2847 #ifdef __cplusplus
2848 extern "C"
2849 #endif
2850 char $2 ();
2851 /* The GNU C library defines this for functions which it implements
2852     to always fail with ENOSYS.  Some functions are actually named
2853     something starting with __ and the normal name is an alias.  */
2854 #if defined __stub_$2 || defined __stub___$2
2855 choke me
2856 #endif
2857
2858 int
2859 main ()
2860 {
2861 return $2 ();
2862   ;
2863   return 0;
2864 }
2865 _ACEOF
2866 if ac_fn_c_try_link "$LINENO"; then :
2867   eval "$3=yes"
2868 else
2869   eval "$3=no"
2870 fi
2871 rm -f core conftest.err conftest.$ac_objext \
2872     conftest$ac_exeext conftest.$ac_ext
2873 fi
2874 eval ac_res=\$$3
2875                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2876 $as_echo "$ac_res" >&6; }
2877   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2878
2879 } # ac_fn_c_check_func
2880
2881 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2882 # -------------------------------------------
2883 # Tests whether TYPE exists after having included INCLUDES, setting cache
2884 # variable VAR accordingly.
2885 ac_fn_c_check_type ()
2886 {
2887   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2889 $as_echo_n "checking for $2... " >&6; }
2890 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2891   $as_echo_n "(cached) " >&6
2892 else
2893   eval "$3=no"
2894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895 /* end confdefs.h.  */
2896 $4
2897 int
2898 main ()
2899 {
2900 if (sizeof ($2))
2901          return 0;
2902   ;
2903   return 0;
2904 }
2905 _ACEOF
2906 if ac_fn_c_try_compile "$LINENO"; then :
2907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2908 /* end confdefs.h.  */
2909 $4
2910 int
2911 main ()
2912 {
2913 if (sizeof (($2)))
2914             return 0;
2915   ;
2916   return 0;
2917 }
2918 _ACEOF
2919 if ac_fn_c_try_compile "$LINENO"; then :
2920
2921 else
2922   eval "$3=yes"
2923 fi
2924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2925 fi
2926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2927 fi
2928 eval ac_res=\$$3
2929                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2930 $as_echo "$ac_res" >&6; }
2931   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2932
2933 } # ac_fn_c_check_type
2934
2935 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2936 # --------------------------------------------
2937 # Tries to find the compile-time value of EXPR in a program that includes
2938 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2939 # computed
2940 ac_fn_c_compute_int ()
2941 {
2942   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2943   if test "$cross_compiling" = yes; then
2944     # Depending upon the size, compute the lo and hi bounds.
2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946 /* end confdefs.h.  */
2947 $4
2948 int
2949 main ()
2950 {
2951 static int test_array [1 - 2 * !(($2) >= 0)];
2952 test_array [0] = 0
2953
2954   ;
2955   return 0;
2956 }
2957 _ACEOF
2958 if ac_fn_c_try_compile "$LINENO"; then :
2959   ac_lo=0 ac_mid=0
2960   while :; do
2961     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2962 /* end confdefs.h.  */
2963 $4
2964 int
2965 main ()
2966 {
2967 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2968 test_array [0] = 0
2969
2970   ;
2971   return 0;
2972 }
2973 _ACEOF
2974 if ac_fn_c_try_compile "$LINENO"; then :
2975   ac_hi=$ac_mid; break
2976 else
2977   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2978                         if test $ac_lo -le $ac_mid; then
2979                           ac_lo= ac_hi=
2980                           break
2981                         fi
2982                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2983 fi
2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985   done
2986 else
2987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988 /* end confdefs.h.  */
2989 $4
2990 int
2991 main ()
2992 {
2993 static int test_array [1 - 2 * !(($2) < 0)];
2994 test_array [0] = 0
2995
2996   ;
2997   return 0;
2998 }
2999 _ACEOF
3000 if ac_fn_c_try_compile "$LINENO"; then :
3001   ac_hi=-1 ac_mid=-1
3002   while :; do
3003     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3004 /* end confdefs.h.  */
3005 $4
3006 int
3007 main ()
3008 {
3009 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3010 test_array [0] = 0
3011
3012   ;
3013   return 0;
3014 }
3015 _ACEOF
3016 if ac_fn_c_try_compile "$LINENO"; then :
3017   ac_lo=$ac_mid; break
3018 else
3019   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3020                         if test $ac_mid -le $ac_hi; then
3021                           ac_lo= ac_hi=
3022                           break
3023                         fi
3024                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3025 fi
3026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3027   done
3028 else
3029   ac_lo= ac_hi=
3030 fi
3031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3032 fi
3033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034 # Binary search between lo and hi bounds.
3035 while test "x$ac_lo" != "x$ac_hi"; do
3036   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h.  */
3039 $4
3040 int
3041 main ()
3042 {
3043 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3044 test_array [0] = 0
3045
3046   ;
3047   return 0;
3048 }
3049 _ACEOF
3050 if ac_fn_c_try_compile "$LINENO"; then :
3051   ac_hi=$ac_mid
3052 else
3053   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3054 fi
3055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056 done
3057 case $ac_lo in #((
3058 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3059 '') ac_retval=1 ;;
3060 esac
3061   else
3062     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063 /* end confdefs.h.  */
3064 $4
3065 static long int longval () { return $2; }
3066 static unsigned long int ulongval () { return $2; }
3067 #include <stdio.h>
3068 #include <stdlib.h>
3069 int
3070 main ()
3071 {
3072
3073   FILE *f = fopen ("conftest.val", "w");
3074   if (! f)
3075     return 1;
3076   if (($2) < 0)
3077     {
3078       long int i = longval ();
3079       if (i != ($2))
3080         return 1;
3081       fprintf (f, "%ld", i);
3082     }
3083   else
3084     {
3085       unsigned long int i = ulongval ();
3086       if (i != ($2))
3087         return 1;
3088       fprintf (f, "%lu", i);
3089     }
3090   /* Do not output a trailing newline, as this causes \r\n confusion
3091      on some platforms.  */
3092   return ferror (f) || fclose (f) != 0;
3093
3094   ;
3095   return 0;
3096 }
3097 _ACEOF
3098 if ac_fn_c_try_run "$LINENO"; then :
3099   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3100 else
3101   ac_retval=1
3102 fi
3103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3104   conftest.$ac_objext conftest.beam conftest.$ac_ext
3105 rm -f conftest.val
3106
3107   fi
3108   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3109   as_fn_set_status $ac_retval
3110
3111 } # ac_fn_c_compute_int
3112
3113 # ac_fn_c_check_decl LINENO SYMBOL VAR
3114 # ------------------------------------
3115 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
3116 ac_fn_c_check_decl ()
3117 {
3118   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
3120 $as_echo_n "checking whether $2 is declared... " >&6; }
3121 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3122   $as_echo_n "(cached) " >&6
3123 else
3124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125 /* end confdefs.h.  */
3126 $4
3127 int
3128 main ()
3129 {
3130 #ifndef $2
3131   (void) $2;
3132 #endif
3133
3134   ;
3135   return 0;
3136 }
3137 _ACEOF
3138 if ac_fn_c_try_compile "$LINENO"; then :
3139   eval "$3=yes"
3140 else
3141   eval "$3=no"
3142 fi
3143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3144 fi
3145 eval ac_res=\$$3
3146                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3147 $as_echo "$ac_res" >&6; }
3148   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3149
3150 } # ac_fn_c_check_decl
3151
3152 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3153 # ----------------------------------------------------
3154 # Tries to find if the field MEMBER exists in type AGGR, after including
3155 # INCLUDES, setting cache variable VAR accordingly.
3156 ac_fn_c_check_member ()
3157 {
3158   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3160 $as_echo_n "checking for $2.$3... " >&6; }
3161 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
3162   $as_echo_n "(cached) " >&6
3163 else
3164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165 /* end confdefs.h.  */
3166 $5
3167 int
3168 main ()
3169 {
3170 static $2 ac_aggr;
3171 if (ac_aggr.$3)
3172 return 0;
3173   ;
3174   return 0;
3175 }
3176 _ACEOF
3177 if ac_fn_c_try_compile "$LINENO"; then :
3178   eval "$4=yes"
3179 else
3180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181 /* end confdefs.h.  */
3182 $5
3183 int
3184 main ()
3185 {
3186 static $2 ac_aggr;
3187 if (sizeof ac_aggr.$3)
3188 return 0;
3189   ;
3190   return 0;
3191 }
3192 _ACEOF
3193 if ac_fn_c_try_compile "$LINENO"; then :
3194   eval "$4=yes"
3195 else
3196   eval "$4=no"
3197 fi
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 fi
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 fi
3202 eval ac_res=\$$4
3203                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3204 $as_echo "$ac_res" >&6; }
3205   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3206
3207 } # ac_fn_c_check_member
3208
3209 # ac_fn_cxx_try_compile LINENO
3210 # ----------------------------
3211 # Try to compile conftest.$ac_ext, and return whether this succeeded.
3212 ac_fn_cxx_try_compile ()
3213 {
3214   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3215   rm -f conftest.$ac_objext
3216   if { { ac_try="$ac_compile"
3217 case "(($ac_try" in
3218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219   *) ac_try_echo=$ac_try;;
3220 esac
3221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222 $as_echo "$ac_try_echo"; } >&5
3223   (eval "$ac_compile") 2>conftest.err
3224   ac_status=$?
3225   if test -s conftest.err; then
3226     grep -v '^ *+' conftest.err >conftest.er1
3227     cat conftest.er1 >&5
3228     mv -f conftest.er1 conftest.err
3229   fi
3230   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3231   test $ac_status = 0; } && {
3232          test -z "$ac_cxx_werror_flag" ||
3233          test ! -s conftest.err
3234        } && test -s conftest.$ac_objext; then :
3235   ac_retval=0
3236 else
3237   $as_echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3239
3240         ac_retval=1
3241 fi
3242   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3243   as_fn_set_status $ac_retval
3244
3245 } # ac_fn_cxx_try_compile
3246
3247 # ac_fn_cxx_try_cpp LINENO
3248 # ------------------------
3249 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3250 ac_fn_cxx_try_cpp ()
3251 {
3252   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3253   if { { ac_try="$ac_cpp conftest.$ac_ext"
3254 case "(($ac_try" in
3255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256   *) ac_try_echo=$ac_try;;
3257 esac
3258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3259 $as_echo "$ac_try_echo"; } >&5
3260   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3261   ac_status=$?
3262   if test -s conftest.err; then
3263     grep -v '^ *+' conftest.err >conftest.er1
3264     cat conftest.er1 >&5
3265     mv -f conftest.er1 conftest.err
3266   fi
3267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268   test $ac_status = 0; } >/dev/null && {
3269          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3270          test ! -s conftest.err
3271        }; then :
3272   ac_retval=0
3273 else
3274   $as_echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3276
3277     ac_retval=1
3278 fi
3279   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3280   as_fn_set_status $ac_retval
3281
3282 } # ac_fn_cxx_try_cpp
3283
3284 # ac_fn_cxx_try_link LINENO
3285 # -------------------------
3286 # Try to link conftest.$ac_ext, and return whether this succeeded.
3287 ac_fn_cxx_try_link ()
3288 {
3289   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3290   rm -f conftest.$ac_objext conftest$ac_exeext
3291   if { { ac_try="$ac_link"
3292 case "(($ac_try" in
3293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294   *) ac_try_echo=$ac_try;;
3295 esac
3296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297 $as_echo "$ac_try_echo"; } >&5
3298   (eval "$ac_link") 2>conftest.err
3299   ac_status=$?
3300   if test -s conftest.err; then
3301     grep -v '^ *+' conftest.err >conftest.er1
3302     cat conftest.er1 >&5
3303     mv -f conftest.er1 conftest.err
3304   fi
3305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306   test $ac_status = 0; } && {
3307          test -z "$ac_cxx_werror_flag" ||
3308          test ! -s conftest.err
3309        } && test -s conftest$ac_exeext && {
3310          test "$cross_compiling" = yes ||
3311          $as_test_x conftest$ac_exeext
3312        }; then :
3313   ac_retval=0
3314 else
3315   $as_echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3317
3318         ac_retval=1
3319 fi
3320   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3321   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3322   # interfere with the next link command; also delete a directory that is
3323   # left behind by Apple's compiler.  We do this before executing the actions.
3324   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3325   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3326   as_fn_set_status $ac_retval
3327
3328 } # ac_fn_cxx_try_link
3329 cat >config.log <<_ACEOF
3330 This file contains any messages produced by compilers while
3331 running configure, to aid debugging if configure makes a mistake.
3332
3333 It was created by $as_me, which was
3334 generated by GNU Autoconf 2.65.  Invocation command line was
3335
3336   $ $0 $@
3337
3338 _ACEOF
3339 exec 5>>config.log
3340 {
3341 cat <<_ASUNAME
3342 ## --------- ##
3343 ## Platform. ##
3344 ## --------- ##
3345
3346 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3347 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3348 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3349 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3350 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3351
3352 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3353 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3354
3355 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3356 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3357 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3358 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3359 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3360 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3361 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3362
3363 _ASUNAME
3364
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3367 do
3368   IFS=$as_save_IFS
3369   test -z "$as_dir" && as_dir=.
3370     $as_echo "PATH: $as_dir"
3371   done
3372 IFS=$as_save_IFS
3373
3374 } >&5
3375
3376 cat >&5 <<_ACEOF
3377
3378
3379 ## ----------- ##
3380 ## Core tests. ##
3381 ## ----------- ##
3382
3383 _ACEOF
3384
3385
3386 # Keep a trace of the command line.
3387 # Strip out --no-create and --no-recursion so they do not pile up.
3388 # Strip out --silent because we don't want to record it for future runs.
3389 # Also quote any args containing shell meta-characters.
3390 # Make two passes to allow for proper duplicate-argument suppression.
3391 ac_configure_args=
3392 ac_configure_args0=
3393 ac_configure_args1=
3394 ac_must_keep_next=false
3395 for ac_pass in 1 2
3396 do
3397   for ac_arg
3398   do
3399     case $ac_arg in
3400     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3401     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3402     | -silent | --silent | --silen | --sile | --sil)
3403       continue ;;
3404     *\'*)
3405       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3406     esac
3407     case $ac_pass in
3408     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3409     2)
3410       as_fn_append ac_configure_args1 " '$ac_arg'"
3411       if test $ac_must_keep_next = true; then
3412         ac_must_keep_next=false # Got value, back to normal.
3413       else
3414         case $ac_arg in
3415           *=* | --config-cache | -C | -disable-* | --disable-* \
3416           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3417           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3418           | -with-* | --with-* | -without-* | --without-* | --x)
3419             case "$ac_configure_args0 " in
3420               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3421             esac
3422             ;;
3423           -* ) ac_must_keep_next=true ;;
3424         esac
3425       fi
3426       as_fn_append ac_configure_args " '$ac_arg'"
3427       ;;
3428     esac
3429   done
3430 done
3431 { ac_configure_args0=; unset ac_configure_args0;}
3432 { ac_configure_args1=; unset ac_configure_args1;}
3433
3434 # When interrupted or exit'd, cleanup temporary files, and complete
3435 # config.log.  We remove comments because anyway the quotes in there
3436 # would cause problems or look ugly.
3437 # WARNING: Use '\'' to represent an apostrophe within the trap.
3438 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3439 trap 'exit_status=$?
3440   # Save into config.log some information that might help in debugging.
3441   {
3442     echo
3443
3444     cat <<\_ASBOX
3445 ## ---------------- ##
3446 ## Cache variables. ##
3447 ## ---------------- ##
3448 _ASBOX
3449     echo
3450     # The following way of writing the cache mishandles newlines in values,
3451 (
3452   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3453     eval ac_val=\$$ac_var
3454     case $ac_val in #(
3455     *${as_nl}*)
3456       case $ac_var in #(
3457       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3458 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3459       esac
3460       case $ac_var in #(
3461       _ | IFS | as_nl) ;; #(
3462       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3463       *) { eval $ac_var=; unset $ac_var;} ;;
3464       esac ;;
3465     esac
3466   done
3467   (set) 2>&1 |
3468     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3469     *${as_nl}ac_space=\ *)
3470       sed -n \
3471         "s/'\''/'\''\\\\'\'''\''/g;
3472           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3473       ;; #(
3474     *)
3475       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3476       ;;
3477     esac |
3478     sort
3479 )
3480     echo
3481
3482     cat <<\_ASBOX
3483 ## ----------------- ##
3484 ## Output variables. ##
3485 ## ----------------- ##
3486 _ASBOX
3487     echo
3488     for ac_var in $ac_subst_vars
3489     do
3490       eval ac_val=\$$ac_var
3491       case $ac_val in
3492       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3493       esac
3494       $as_echo "$ac_var='\''$ac_val'\''"
3495     done | sort
3496     echo
3497
3498     if test -n "$ac_subst_files"; then
3499       cat <<\_ASBOX
3500 ## ------------------- ##
3501 ## File substitutions. ##
3502 ## ------------------- ##
3503 _ASBOX
3504       echo
3505       for ac_var in $ac_subst_files
3506       do
3507         eval ac_val=\$$ac_var
3508         case $ac_val in
3509         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3510         esac
3511         $as_echo "$ac_var='\''$ac_val'\''"
3512       done | sort
3513       echo
3514     fi
3515
3516     if test -s confdefs.h; then
3517       cat <<\_ASBOX
3518 ## ----------- ##
3519 ## confdefs.h. ##
3520 ## ----------- ##
3521 _ASBOX
3522       echo
3523       cat confdefs.h
3524       echo
3525     fi
3526     test "$ac_signal" != 0 &&
3527       $as_echo "$as_me: caught signal $ac_signal"
3528     $as_echo "$as_me: exit $exit_status"
3529   } >&5
3530   rm -f core *.core core.conftest.* &&
3531     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3532     exit $exit_status
3533 ' 0
3534 for ac_signal in 1 2 13 15; do
3535   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3536 done
3537 ac_signal=0
3538
3539 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3540 rm -f -r conftest* confdefs.h
3541
3542 $as_echo "/* confdefs.h */" > confdefs.h
3543
3544 # Predefined preprocessor variables.
3545
3546 cat >>confdefs.h <<_ACEOF
3547 #define PACKAGE_NAME "$PACKAGE_NAME"
3548 _ACEOF
3549
3550 cat >>confdefs.h <<_ACEOF
3551 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3552 _ACEOF
3553
3554 cat >>confdefs.h <<_ACEOF
3555 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3556 _ACEOF
3557
3558 cat >>confdefs.h <<_ACEOF
3559 #define PACKAGE_STRING "$PACKAGE_STRING"
3560 _ACEOF
3561
3562 cat >>confdefs.h <<_ACEOF
3563 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3564 _ACEOF
3565
3566 cat >>confdefs.h <<_ACEOF
3567 #define PACKAGE_URL "$PACKAGE_URL"
3568 _ACEOF
3569
3570
3571 # Let the site file select an alternate cache file if it wants to.
3572 # Prefer an explicitly selected file to automatically selected ones.
3573 ac_site_file1=NONE
3574 ac_site_file2=NONE
3575 if test -n "$CONFIG_SITE"; then
3576   ac_site_file1=$CONFIG_SITE
3577 elif test "x$prefix" != xNONE; then
3578   ac_site_file1=$prefix/share/config.site
3579   ac_site_file2=$prefix/etc/config.site
3580 else
3581   ac_site_file1=$ac_default_prefix/share/config.site
3582   ac_site_file2=$ac_default_prefix/etc/config.site
3583 fi
3584 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3585 do
3586   test "x$ac_site_file" = xNONE && continue
3587   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3588     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3589 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3590     sed 's/^/| /' "$ac_site_file" >&5
3591     . "$ac_site_file"
3592   fi
3593 done
3594
3595 if test -r "$cache_file"; then
3596   # Some versions of bash will fail to source /dev/null (special files
3597   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3598   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3599     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3600 $as_echo "$as_me: loading cache $cache_file" >&6;}
3601     case $cache_file in
3602       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3603       *)                      . "./$cache_file";;
3604     esac
3605   fi
3606 else
3607   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3608 $as_echo "$as_me: creating cache $cache_file" >&6;}
3609   >$cache_file
3610 fi
3611
3612 gt_needs="$gt_needs need-ngettext"
3613 gl_header_list="$gl_header_list stdlib.h"
3614 gl_header_list="$gl_header_list unistd.h"
3615 gl_header_list="$gl_header_list sys/param.h"
3616 gl_header_list="$gl_header_list string.h"
3617 gl_func_list="$gl_func_list canonicalize_file_name"
3618 gl_func_list="$gl_func_list getcwd"
3619 gl_func_list="$gl_func_list readlink"
3620 gl_func_list="$gl_func_list realpath"
3621 gl_header_list="$gl_header_list utime.h"
3622 gl_func_list="$gl_func_list dup2"
3623 gl_header_list="$gl_header_list errno.h"
3624 gl_func_list="$gl_func_list fcntl"
3625 gl_header_list="$gl_header_list fcntl.h"
3626 gl_header_list="$gl_header_list float.h"
3627 gl_func_list="$gl_func_list btowc"
3628 gl_func_list="$gl_func_list isblank"
3629 gl_func_list="$gl_func_list iswctype"
3630 gl_func_list="$gl_func_list mbsrtowcs"
3631 gl_func_list="$gl_func_list mempcpy"
3632 gl_func_list="$gl_func_list wmemchr"
3633 gl_func_list="$gl_func_list wmemcpy"
3634 gl_func_list="$gl_func_list wmempcpy"
3635 gl_header_list="$gl_header_list wctype.h"
3636 gl_func_list="$gl_func_list getdelim"
3637 gl_func_list="$gl_func_list getdtablesize"
3638 gl_getopt_required=GNU
3639 gl_header_list="$gl_header_list getopt.h"
3640 gl_header_list="$gl_header_list sys/time.h"
3641 gl_func_list="$gl_func_list gettimeofday"
3642 gl_header_list="$gl_header_list iconv.h"
3643 gl_header_list="$gl_header_list libcroco-0.6/libcroco/libcroco-config.h"
3644 gl_header_list="$gl_header_list libxml2/libxml/xmlexports.h"
3645 gl_header_list="$gl_header_list libxml2/libxml/xmlversion.h"
3646 gl_header_list="$gl_header_list stddef.h"
3647 gl_header_list="$gl_header_list xlocale.h"
3648 gl_header_list="$gl_header_list locale.h"
3649 gl_func_list="$gl_func_list lstat"
3650 gl_func_list="$gl_func_list mbsinit"
3651 gl_func_list="$gl_func_list mbrtowc"
3652 gl_func_list="$gl_func_list mbslen"
3653 gl_header_list="$gl_header_list wchar.h"
3654 gl_func_list="$gl_func_list isascii"
3655 gl_header_list="$gl_header_list sys/mman.h"
3656 gl_func_list="$gl_func_list mprotect"
3657 gl_func_list="$gl_func_list memchr"
3658 gl_func_list="$gl_func_list pathconf"
3659 gl_func_list="$gl_func_list select"
3660 gl_func_list="$gl_func_list pipe2"
3661 gl_func_list="$gl_func_list posix_spawn"
3662 gl_func_list="$gl_func_list setenv"
3663 gl_header_list="$gl_header_list sys/socket.h"
3664 gl_header_list="$gl_header_list sched.h"
3665 gl_func_list="$gl_func_list sigaction"
3666 gl_func_list="$gl_func_list sigaltstack"
3667 gl_func_list="$gl_func_list siginterrupt"
3668 gl_header_list="$gl_header_list signal.h"
3669 gl_header_list="$gl_header_list spawn.h"
3670 gl_header_list="$gl_header_list stdarg.h"
3671 gl_header_list="$gl_header_list stdint.h"
3672 gl_header_list="$gl_header_list stdio.h"
3673 gl_func_list="$gl_func_list stpncpy"
3674 gl_header_list="$gl_header_list sys/select.h"
3675 gl_header_list="$gl_header_list sys/stat.h"
3676 gl_header_list="$gl_header_list sys/wait.h"
3677 gl_header_list="$gl_header_list time.h"
3678 gl_func_list="$gl_func_list pipe"
3679 gl_func_list="$gl_func_list vasnprintf"
3680 gl_func_list="$gl_func_list iswcntrl"
3681 gl_func_list="$gl_func_list iswblank"
3682 gl_func_list="$gl_func_list wcwidth"
3683 gl_func_list="$gl_func_list newlocale"
3684 gl_func_list="$gl_func_list symlink"
3685 gl_func_list="$gl_func_list shutdown"
3686 gl_func_list="$gl_func_list wctob"
3687 gl_header_list="$gl_header_list langinfo.h"
3688 gl_func_list="$gl_func_list nl_langinfo"
3689 gl_func_list="$gl_func_list wcscoll"
3690 gl_func_list="$gl_func_list wcrtomb"
3691 gl_func_list="$gl_func_list getrlimit"
3692 gl_func_list="$gl_func_list setrlimit"
3693 gl_func_list="$gl_func_list uselocale"
3694 # Check that the precious variables saved in the cache have kept the same
3695 # value.
3696 ac_cache_corrupted=false
3697 for ac_var in $ac_precious_vars; do
3698   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3699   eval ac_new_set=\$ac_env_${ac_var}_set
3700   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3701   eval ac_new_val=\$ac_env_${ac_var}_value
3702   case $ac_old_set,$ac_new_set in
3703     set,)
3704       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3705 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3706       ac_cache_corrupted=: ;;
3707     ,set)
3708       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3709 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3710       ac_cache_corrupted=: ;;
3711     ,);;
3712     *)
3713       if test "x$ac_old_val" != "x$ac_new_val"; then
3714         # differences in whitespace do not lead to failure.
3715         ac_old_val_w=`echo x $ac_old_val`
3716         ac_new_val_w=`echo x $ac_new_val`
3717         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3718           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3719 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3720           ac_cache_corrupted=:
3721         else
3722           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3723 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3724           eval $ac_var=\$ac_old_val
3725         fi
3726         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3727 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3728         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3729 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3730       fi;;
3731   esac
3732   # Pass precious variables to config.status.
3733   if test "$ac_new_set" = set; then
3734     case $ac_new_val in
3735     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3736     *) ac_arg=$ac_var=$ac_new_val ;;
3737     esac
3738     case " $ac_configure_args " in
3739       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3740       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3741     esac
3742   fi
3743 done
3744 if $ac_cache_corrupted; then
3745   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3747   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3748 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3749   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3750 fi
3751 ## -------------------- ##
3752 ## Main body of script. ##
3753 ## -------------------- ##
3754
3755 ac_ext=c
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760
3761
3762
3763 ac_aux_dir=
3764 for ac_dir in ../build-aux "$srcdir"/../build-aux; do
3765   for ac_t in install-sh install.sh shtool; do
3766     if test -f "$ac_dir/$ac_t"; then
3767       ac_aux_dir=$ac_dir
3768       ac_install_sh="$ac_aux_dir/$ac_t -c"
3769       break 2
3770     fi
3771   done
3772 done
3773 if test -z "$ac_aux_dir"; then
3774   as_fn_error "cannot find install-sh, install.sh, or shtool in ../build-aux \"$srcdir\"/../build-aux" "$LINENO" 5
3775 fi
3776
3777 # These three variables are undocumented and unsupported,
3778 # and are intended to be withdrawn in a future Autoconf release.
3779 # They can cause serious problems if a builder's source tree is in a directory
3780 # whose full name contains unusual characters.
3781 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3782 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3783 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3784
3785
3786 . $srcdir/../version.sh
3787
3788
3789
3790
3791
3792
3793 am__api_version='1.11'
3794
3795 # Find a good install program.  We prefer a C program (faster),
3796 # so one script is as good as another.  But avoid the broken or
3797 # incompatible versions:
3798 # SysV /etc/install, /usr/sbin/install
3799 # SunOS /usr/etc/install
3800 # IRIX /sbin/install
3801 # AIX /bin/install
3802 # AmigaOS /C/install, which installs bootblocks on floppy discs
3803 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3804 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3805 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3806 # OS/2's system install, which has a completely different semantic
3807 # ./install, which can be erroneously created by make from ./install.sh.
3808 # Reject install programs that cannot install multiple files.
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3810 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3811 if test -z "$INSTALL"; then
3812 if test "${ac_cv_path_install+set}" = set; then :
3813   $as_echo_n "(cached) " >&6
3814 else
3815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 for as_dir in $PATH
3817 do
3818   IFS=$as_save_IFS
3819   test -z "$as_dir" && as_dir=.
3820     # Account for people who put trailing slashes in PATH elements.
3821 case $as_dir/ in #((
3822   ./ | .// | /[cC]/* | \
3823   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3824   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3825   /usr/ucb/* ) ;;
3826   *)
3827     # OSF1 and SCO ODT 3.0 have their own names for install.
3828     # Don't use installbsd from OSF since it installs stuff as root
3829     # by default.
3830     for ac_prog in ginstall scoinst install; do
3831       for ac_exec_ext in '' $ac_executable_extensions; do
3832         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3833           if test $ac_prog = install &&
3834             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3835             # AIX install.  It has an incompatible calling convention.
3836             :
3837           elif test $ac_prog = install &&
3838             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3839             # program-specific install script used by HP pwplus--don't use.
3840             :
3841           else
3842             rm -rf conftest.one conftest.two conftest.dir
3843             echo one > conftest.one
3844             echo two > conftest.two
3845             mkdir conftest.dir
3846             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3847               test -s conftest.one && test -s conftest.two &&
3848               test -s conftest.dir/conftest.one &&
3849               test -s conftest.dir/conftest.two
3850             then
3851               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3852               break 3
3853             fi
3854           fi
3855         fi
3856       done
3857     done
3858     ;;
3859 esac
3860
3861   done
3862 IFS=$as_save_IFS
3863
3864 rm -rf conftest.one conftest.two conftest.dir
3865
3866 fi
3867   if test "${ac_cv_path_install+set}" = set; then
3868     INSTALL=$ac_cv_path_install
3869   else
3870     # As a last resort, use the slow shell script.  Don't cache a
3871     # value for INSTALL within a source directory, because that will
3872     # break other packages using the cache if that directory is
3873     # removed, or if the value is a relative name.
3874     INSTALL=$ac_install_sh
3875   fi
3876 fi
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3878 $as_echo "$INSTALL" >&6; }
3879
3880 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3881 # It thinks the first close brace ends the variable substitution.
3882 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3883
3884 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3885
3886 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3887
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3889 $as_echo_n "checking whether build environment is sane... " >&6; }
3890 # Just in case
3891 sleep 1
3892 echo timestamp > conftest.file
3893 # Reject unsafe characters in $srcdir or the absolute working directory
3894 # name.  Accept space and tab only in the latter.
3895 am_lf='
3896 '
3897 case `pwd` in
3898   *[\\\"\#\$\&\'\`$am_lf]*)
3899     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3900 esac
3901 case $srcdir in
3902   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3903     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3904 esac
3905
3906 # Do `set' in a subshell so we don't clobber the current shell's
3907 # arguments.  Must try -L first in case configure is actually a
3908 # symlink; some systems play weird games with the mod time of symlinks
3909 # (eg FreeBSD returns the mod time of the symlink's containing
3910 # directory).
3911 if (
3912    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3913    if test "$*" = "X"; then
3914       # -L didn't work.
3915       set X `ls -t "$srcdir/configure" conftest.file`
3916    fi
3917    rm -f conftest.file
3918    if test "$*" != "X $srcdir/configure conftest.file" \
3919       && test "$*" != "X conftest.file $srcdir/configure"; then
3920
3921       # If neither matched, then we have a broken ls.  This can happen
3922       # if, for instance, CONFIG_SHELL is bash and it inherits a
3923       # broken ls alias from the environment.  This has actually
3924       # happened.  Such a system could not be considered "sane".
3925       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3926 alias in your environment" "$LINENO" 5
3927    fi
3928
3929    test "$2" = conftest.file
3930    )
3931 then
3932    # Ok.
3933    :
3934 else
3935    as_fn_error "newly created file is older than distributed files!
3936 Check your system clock" "$LINENO" 5
3937 fi
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3939 $as_echo "yes" >&6; }
3940 test "$program_prefix" != NONE &&
3941   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3942 # Use a double $ so make ignores it.
3943 test "$program_suffix" != NONE &&
3944   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3945 # Double any \ or $.
3946 # By default was `s,x,x', remove it if useless.
3947 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3948 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3949
3950 # expand $ac_aux_dir to an absolute path
3951 am_aux_dir=`cd $ac_aux_dir && pwd`
3952
3953 if test x"${MISSING+set}" != xset; then
3954   case $am_aux_dir in
3955   *\ * | *\     *)
3956     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3957   *)
3958     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3959   esac
3960 fi
3961 # Use eval to expand $SHELL
3962 if eval "$MISSING --run true"; then
3963   am_missing_run="$MISSING --run "
3964 else
3965   am_missing_run=
3966   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3967 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3968 fi
3969
3970 if test x"${install_sh}" != xset; then
3971   case $am_aux_dir in
3972   *\ * | *\     *)
3973     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3974   *)
3975     install_sh="\${SHELL} $am_aux_dir/install-sh"
3976   esac
3977 fi
3978
3979 # Installed binaries are usually stripped using `strip' when the user
3980 # run `make install-strip'.  However `strip' might not be the right
3981 # tool to use in cross-compilation environments, therefore Automake
3982 # will honor the `STRIP' environment variable to overrule this program.
3983 if test "$cross_compiling" != no; then
3984   if test -n "$ac_tool_prefix"; then
3985   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3986 set dummy ${ac_tool_prefix}strip; ac_word=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if test "${ac_cv_prog_STRIP+set}" = set; then :
3990   $as_echo_n "(cached) " >&6
3991 else
3992   if test -n "$STRIP"; then
3993   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3997 do
3998   IFS=$as_save_IFS
3999   test -z "$as_dir" && as_dir=.
4000     for ac_exec_ext in '' $ac_executable_extensions; do
4001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4002     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4004     break 2
4005   fi
4006 done
4007   done
4008 IFS=$as_save_IFS
4009
4010 fi
4011 fi
4012 STRIP=$ac_cv_prog_STRIP
4013 if test -n "$STRIP"; then
4014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4015 $as_echo "$STRIP" >&6; }
4016 else
4017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4019 fi
4020
4021
4022 fi
4023 if test -z "$ac_cv_prog_STRIP"; then
4024   ac_ct_STRIP=$STRIP
4025   # Extract the first word of "strip", so it can be a program name with args.
4026 set dummy strip; ac_word=$2
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028 $as_echo_n "checking for $ac_word... " >&6; }
4029 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4030   $as_echo_n "(cached) " >&6
4031 else
4032   if test -n "$ac_ct_STRIP"; then
4033   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4034 else
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4037 do
4038   IFS=$as_save_IFS
4039   test -z "$as_dir" && as_dir=.
4040     for ac_exec_ext in '' $ac_executable_extensions; do
4041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4042     ac_cv_prog_ac_ct_STRIP="strip"
4043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4044     break 2
4045   fi
4046 done
4047   done
4048 IFS=$as_save_IFS
4049
4050 fi
4051 fi
4052 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4053 if test -n "$ac_ct_STRIP"; then
4054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4055 $as_echo "$ac_ct_STRIP" >&6; }
4056 else
4057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058 $as_echo "no" >&6; }
4059 fi
4060
4061   if test "x$ac_ct_STRIP" = x; then
4062     STRIP=":"
4063   else
4064     case $cross_compiling:$ac_tool_warned in
4065 yes:)
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4068 ac_tool_warned=yes ;;
4069 esac
4070     STRIP=$ac_ct_STRIP
4071   fi
4072 else
4073   STRIP="$ac_cv_prog_STRIP"
4074 fi
4075
4076 fi
4077 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4078
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4080 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4081 if test -z "$MKDIR_P"; then
4082   if test "${ac_cv_path_mkdir+set}" = set; then :
4083   $as_echo_n "(cached) " >&6
4084 else
4085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4087 do
4088   IFS=$as_save_IFS
4089   test -z "$as_dir" && as_dir=.
4090     for ac_prog in mkdir gmkdir; do
4091          for ac_exec_ext in '' $ac_executable_extensions; do
4092            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4093            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4094              'mkdir (GNU coreutils) '* | \
4095              'mkdir (coreutils) '* | \
4096              'mkdir (fileutils) '4.1*)
4097                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4098                break 3;;
4099            esac
4100          done
4101        done
4102   done
4103 IFS=$as_save_IFS
4104
4105 fi
4106
4107   test -d ./--version && rmdir ./--version
4108   if test "${ac_cv_path_mkdir+set}" = set; then
4109     MKDIR_P="$ac_cv_path_mkdir -p"
4110   else
4111     # As a last resort, use the slow shell script.  Don't cache a
4112     # value for MKDIR_P within a source directory, because that will
4113     # break other packages using the cache if that directory is
4114     # removed, or if the value is a relative name.
4115     MKDIR_P="$ac_install_sh -d"
4116   fi
4117 fi
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4119 $as_echo "$MKDIR_P" >&6; }
4120
4121
4122 mkdir_p="$MKDIR_P"
4123 case $mkdir_p in
4124   [\\/$]* | ?:[\\/]*) ;;
4125   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4126 esac
4127
4128 for ac_prog in gawk mawk nawk awk
4129 do
4130   # Extract the first word of "$ac_prog", so it can be a program name with args.
4131 set dummy $ac_prog; ac_word=$2
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133 $as_echo_n "checking for $ac_word... " >&6; }
4134 if test "${ac_cv_prog_AWK+set}" = set; then :
4135   $as_echo_n "(cached) " >&6
4136 else
4137   if test -n "$AWK"; then
4138   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4139 else
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4142 do
4143   IFS=$as_save_IFS
4144   test -z "$as_dir" && as_dir=.
4145     for ac_exec_ext in '' $ac_executable_extensions; do
4146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4147     ac_cv_prog_AWK="$ac_prog"
4148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4149     break 2
4150   fi
4151 done
4152   done
4153 IFS=$as_save_IFS
4154
4155 fi
4156 fi
4157 AWK=$ac_cv_prog_AWK
4158 if test -n "$AWK"; then
4159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4160 $as_echo "$AWK" >&6; }
4161 else
4162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 $as_echo "no" >&6; }
4164 fi
4165
4166
4167   test -n "$AWK" && break
4168 done
4169
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4171 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4172 set x ${MAKE-make}
4173 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4174 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4175   $as_echo_n "(cached) " >&6
4176 else
4177   cat >conftest.make <<\_ACEOF
4178 SHELL = /bin/sh
4179 all:
4180         @echo '@@@%%%=$(MAKE)=@@@%%%'
4181 _ACEOF
4182 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4183 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4184   *@@@%%%=?*=@@@%%%*)
4185     eval ac_cv_prog_make_${ac_make}_set=yes;;
4186   *)
4187     eval ac_cv_prog_make_${ac_make}_set=no;;
4188 esac
4189 rm -f conftest.make
4190 fi
4191 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4193 $as_echo "yes" >&6; }
4194   SET_MAKE=
4195 else
4196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 $as_echo "no" >&6; }
4198   SET_MAKE="MAKE=${MAKE-make}"
4199 fi
4200
4201 rm -rf .tst 2>/dev/null
4202 mkdir .tst 2>/dev/null
4203 if test -d .tst; then
4204   am__leading_dot=.
4205 else
4206   am__leading_dot=_
4207 fi
4208 rmdir .tst 2>/dev/null
4209
4210 # Check whether --enable-silent-rules was given.
4211 if test "${enable_silent_rules+set}" = set; then :
4212   enableval=$enable_silent_rules;
4213 fi
4214
4215 case $enable_silent_rules in
4216 yes) AM_DEFAULT_VERBOSITY=0;;
4217 no)  AM_DEFAULT_VERBOSITY=1;;
4218 *)   AM_DEFAULT_VERBOSITY=1;;
4219 esac
4220 AM_BACKSLASH='\'
4221
4222
4223
4224   if test "`cd $srcdir && pwd`" != "`pwd`"; then
4225   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4226   # is not polluted with repeated "-I."
4227   am__isrc=' -I$(srcdir)'
4228   # test to see if srcdir already configured
4229   if test -f $srcdir/config.status; then
4230     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4231   fi
4232 fi
4233
4234 # test whether we have cygpath
4235 if test -z "$CYGPATH_W"; then
4236   if (cygpath --version) >/dev/null 2>/dev/null; then
4237     CYGPATH_W='cygpath -w'
4238   else
4239     CYGPATH_W=echo
4240   fi
4241 fi
4242
4243
4244 # Define the identity of the package.
4245  PACKAGE=''
4246  VERSION=''
4247
4248
4249 # Some tools Automake needs.
4250
4251 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4252
4253
4254 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4255
4256
4257 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4258
4259
4260 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4261
4262
4263 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4264
4265 # We need awk for the "check" target.  The system "awk" is bad on
4266 # some platforms.
4267 # Always define AMTAR for backward compatibility.
4268
4269 AMTAR=${AMTAR-"${am_missing_run}tar"}
4270
4271 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4272
4273
4274
4275
4276
4277     PACKAGE=gettext-tools
4278
4279      VERSION=$VERSION_NUMBER
4280
4281
4282
4283 cat >>confdefs.h <<_ACEOF
4284 #define PACKAGE "$PACKAGE"
4285 _ACEOF
4286
4287
4288 cat >>confdefs.h <<_ACEOF
4289 #define VERSION "$VERSION"
4290 _ACEOF
4291
4292
4293
4294 ac_config_headers="$ac_config_headers config.h"
4295
4296
4297 test "$docdir" != '${datarootdir}/doc/${PACKAGE}' || docdir='${datarootdir}/doc/gettext'
4298
4299 ac_ext=c
4300 ac_cpp='$CPP $CPPFLAGS'
4301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304 if test -n "$ac_tool_prefix"; then
4305   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4306 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if test "${ac_cv_prog_CC+set}" = set; then :
4310   $as_echo_n "(cached) " >&6
4311 else
4312   if test -n "$CC"; then
4313   ac_cv_prog_CC="$CC" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4317 do
4318   IFS=$as_save_IFS
4319   test -z "$as_dir" && as_dir=.
4320     for ac_exec_ext in '' $ac_executable_extensions; do
4321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324     break 2
4325   fi
4326 done
4327   done
4328 IFS=$as_save_IFS
4329
4330 fi
4331 fi
4332 CC=$ac_cv_prog_CC
4333 if test -n "$CC"; then
4334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4335 $as_echo "$CC" >&6; }
4336 else
4337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4339 fi
4340
4341
4342 fi
4343 if test -z "$ac_cv_prog_CC"; then
4344   ac_ct_CC=$CC
4345   # Extract the first word of "gcc", so it can be a program name with args.
4346 set dummy gcc; ac_word=$2
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4350   $as_echo_n "(cached) " >&6
4351 else
4352   if test -n "$ac_ct_CC"; then
4353   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4354 else
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4357 do
4358   IFS=$as_save_IFS
4359   test -z "$as_dir" && as_dir=.
4360     for ac_exec_ext in '' $ac_executable_extensions; do
4361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362     ac_cv_prog_ac_ct_CC="gcc"
4363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364     break 2
4365   fi
4366 done
4367   done
4368 IFS=$as_save_IFS
4369
4370 fi
4371 fi
4372 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4373 if test -n "$ac_ct_CC"; then
4374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4375 $as_echo "$ac_ct_CC" >&6; }
4376 else
4377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4379 fi
4380
4381   if test "x$ac_ct_CC" = x; then
4382     CC=""
4383   else
4384     case $cross_compiling:$ac_tool_warned in
4385 yes:)
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4388 ac_tool_warned=yes ;;
4389 esac
4390     CC=$ac_ct_CC
4391   fi
4392 else
4393   CC="$ac_cv_prog_CC"
4394 fi
4395
4396 if test -z "$CC"; then
4397           if test -n "$ac_tool_prefix"; then
4398     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4399 set dummy ${ac_tool_prefix}cc; ac_word=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if test "${ac_cv_prog_CC+set}" = set; then :
4403   $as_echo_n "(cached) " >&6
4404 else
4405   if test -n "$CC"; then
4406   ac_cv_prog_CC="$CC" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
4411   IFS=$as_save_IFS
4412   test -z "$as_dir" && as_dir=.
4413     for ac_exec_ext in '' $ac_executable_extensions; do
4414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415     ac_cv_prog_CC="${ac_tool_prefix}cc"
4416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417     break 2
4418   fi
4419 done
4420   done
4421 IFS=$as_save_IFS
4422
4423 fi
4424 fi
4425 CC=$ac_cv_prog_CC
4426 if test -n "$CC"; then
4427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4428 $as_echo "$CC" >&6; }
4429 else
4430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4432 fi
4433
4434
4435   fi
4436 fi
4437 if test -z "$CC"; then
4438   # Extract the first word of "cc", so it can be a program name with args.
4439 set dummy cc; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if test "${ac_cv_prog_CC+set}" = set; then :
4443   $as_echo_n "(cached) " >&6
4444 else
4445   if test -n "$CC"; then
4446   ac_cv_prog_CC="$CC" # Let the user override the test.
4447 else
4448   ac_prog_rejected=no
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4451 do
4452   IFS=$as_save_IFS
4453   test -z "$as_dir" && as_dir=.
4454     for ac_exec_ext in '' $ac_executable_extensions; do
4455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4457        ac_prog_rejected=yes
4458        continue
4459      fi
4460     ac_cv_prog_CC="cc"
4461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4462     break 2
4463   fi
4464 done
4465   done
4466 IFS=$as_save_IFS
4467
4468 if test $ac_prog_rejected = yes; then
4469   # We found a bogon in the path, so make sure we never use it.
4470   set dummy $ac_cv_prog_CC
4471   shift
4472   if test $# != 0; then
4473     # We chose a different compiler from the bogus one.
4474     # However, it has the same basename, so the bogon will be chosen
4475     # first if we set CC to just the basename; use the full file name.
4476     shift
4477     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4478   fi
4479 fi
4480 fi
4481 fi
4482 CC=$ac_cv_prog_CC
4483 if test -n "$CC"; then
4484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4485 $as_echo "$CC" >&6; }
4486 else
4487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4489 fi
4490
4491
4492 fi
4493 if test -z "$CC"; then
4494   if test -n "$ac_tool_prefix"; then
4495   for ac_prog in cl.exe
4496   do
4497     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4498 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500 $as_echo_n "checking for $ac_word... " >&6; }
4501 if test "${ac_cv_prog_CC+set}" = set; then :
4502   $as_echo_n "(cached) " >&6
4503 else
4504   if test -n "$CC"; then
4505   ac_cv_prog_CC="$CC" # Let the user override the test.
4506 else
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4509 do
4510   IFS=$as_save_IFS
4511   test -z "$as_dir" && as_dir=.
4512     for ac_exec_ext in '' $ac_executable_extensions; do
4513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4514     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4516     break 2
4517   fi
4518 done
4519   done
4520 IFS=$as_save_IFS
4521
4522 fi
4523 fi
4524 CC=$ac_cv_prog_CC
4525 if test -n "$CC"; then
4526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4527 $as_echo "$CC" >&6; }
4528 else
4529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4531 fi
4532
4533
4534     test -n "$CC" && break
4535   done
4536 fi
4537 if test -z "$CC"; then
4538   ac_ct_CC=$CC
4539   for ac_prog in cl.exe
4540 do
4541   # Extract the first word of "$ac_prog", so it can be a program name with args.
4542 set dummy $ac_prog; ac_word=$2
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4546   $as_echo_n "(cached) " >&6
4547 else
4548   if test -n "$ac_ct_CC"; then
4549   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4550 else
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4553 do
4554   IFS=$as_save_IFS
4555   test -z "$as_dir" && as_dir=.
4556     for ac_exec_ext in '' $ac_executable_extensions; do
4557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558     ac_cv_prog_ac_ct_CC="$ac_prog"
4559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560     break 2
4561   fi
4562 done
4563   done
4564 IFS=$as_save_IFS
4565
4566 fi
4567 fi
4568 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4569 if test -n "$ac_ct_CC"; then
4570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4571 $as_echo "$ac_ct_CC" >&6; }
4572 else
4573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574 $as_echo "no" >&6; }
4575 fi
4576
4577
4578   test -n "$ac_ct_CC" && break
4579 done
4580
4581   if test "x$ac_ct_CC" = x; then
4582     CC=""
4583   else
4584     case $cross_compiling:$ac_tool_warned in
4585 yes:)
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4588 ac_tool_warned=yes ;;
4589 esac
4590     CC=$ac_ct_CC
4591   fi
4592 fi
4593
4594 fi
4595
4596
4597 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4599 as_fn_error "no acceptable C compiler found in \$PATH
4600 See \`config.log' for more details." "$LINENO" 5; }
4601
4602 # Provide some information about the compiler.
4603 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4604 set X $ac_compile
4605 ac_compiler=$2
4606 for ac_option in --version -v -V -qversion; do
4607   { { ac_try="$ac_compiler $ac_option >&5"
4608 case "(($ac_try" in
4609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610   *) ac_try_echo=$ac_try;;
4611 esac
4612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4613 $as_echo "$ac_try_echo"; } >&5
4614   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4615   ac_status=$?
4616   if test -s conftest.err; then
4617     sed '10a\
4618 ... rest of stderr output deleted ...
4619          10q' conftest.err >conftest.er1
4620     cat conftest.er1 >&5
4621   fi
4622   rm -f conftest.er1 conftest.err
4623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4624   test $ac_status = 0; }
4625 done
4626
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h.  */
4629
4630 int
4631 main ()
4632 {
4633
4634   ;
4635   return 0;
4636 }
4637 _ACEOF
4638 ac_clean_files_save=$ac_clean_files
4639 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4640 # Try to create an executable without -o first, disregard a.out.
4641 # It will help us diagnose broken compilers, and finding out an intuition
4642 # of exeext.
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4644 $as_echo_n "checking whether the C compiler works... " >&6; }
4645 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4646
4647 # The possible output files:
4648 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4649
4650 ac_rmfiles=
4651 for ac_file in $ac_files
4652 do
4653   case $ac_file in
4654     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4655     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4656   esac
4657 done
4658 rm -f $ac_rmfiles
4659
4660 if { { ac_try="$ac_link_default"
4661 case "(($ac_try" in
4662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663   *) ac_try_echo=$ac_try;;
4664 esac
4665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4666 $as_echo "$ac_try_echo"; } >&5
4667   (eval "$ac_link_default") 2>&5
4668   ac_status=$?
4669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4670   test $ac_status = 0; }; then :
4671   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4672 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4673 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4674 # so that the user can short-circuit this test for compilers unknown to
4675 # Autoconf.
4676 for ac_file in $ac_files ''
4677 do
4678   test -f "$ac_file" || continue
4679   case $ac_file in
4680     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4681         ;;
4682     [ab].out )
4683         # We found the default executable, but exeext='' is most
4684         # certainly right.
4685         break;;
4686     *.* )
4687         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4688         then :; else
4689            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4690         fi
4691         # We set ac_cv_exeext here because the later test for it is not
4692         # safe: cross compilers may not add the suffix if given an `-o'
4693         # argument, so we may need to know it at that point already.
4694         # Even if this section looks crufty: it has the advantage of
4695         # actually working.
4696         break;;
4697     * )
4698         break;;
4699   esac
4700 done
4701 test "$ac_cv_exeext" = no && ac_cv_exeext=
4702
4703 else
4704   ac_file=''
4705 fi
4706 if test -z "$ac_file"; then :
4707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708 $as_echo "no" >&6; }
4709 $as_echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4711
4712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4714 { as_fn_set_status 77
4715 as_fn_error "C compiler cannot create executables
4716 See \`config.log' for more details." "$LINENO" 5; }; }
4717 else
4718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4719 $as_echo "yes" >&6; }
4720 fi
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4722 $as_echo_n "checking for C compiler default output file name... " >&6; }
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4724 $as_echo "$ac_file" >&6; }
4725 ac_exeext=$ac_cv_exeext
4726
4727 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4728 ac_clean_files=$ac_clean_files_save
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4730 $as_echo_n "checking for suffix of executables... " >&6; }
4731 if { { ac_try="$ac_link"
4732 case "(($ac_try" in
4733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734   *) ac_try_echo=$ac_try;;
4735 esac
4736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4737 $as_echo "$ac_try_echo"; } >&5
4738   (eval "$ac_link") 2>&5
4739   ac_status=$?
4740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4741   test $ac_status = 0; }; then :
4742   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4743 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4744 # work properly (i.e., refer to `conftest.exe'), while it won't with
4745 # `rm'.
4746 for ac_file in conftest.exe conftest conftest.*; do
4747   test -f "$ac_file" || continue
4748   case $ac_file in
4749     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4750     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4751           break;;
4752     * ) break;;
4753   esac
4754 done
4755 else
4756   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4758 as_fn_error "cannot compute suffix of executables: cannot compile and link
4759 See \`config.log' for more details." "$LINENO" 5; }
4760 fi
4761 rm -f conftest conftest$ac_cv_exeext
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4763 $as_echo "$ac_cv_exeext" >&6; }
4764
4765 rm -f conftest.$ac_ext
4766 EXEEXT=$ac_cv_exeext
4767 ac_exeext=$EXEEXT
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h.  */
4770 #include <stdio.h>
4771 int
4772 main ()
4773 {
4774 FILE *f = fopen ("conftest.out", "w");
4775  return ferror (f) || fclose (f) != 0;
4776
4777   ;
4778   return 0;
4779 }
4780 _ACEOF
4781 ac_clean_files="$ac_clean_files conftest.out"
4782 # Check that the compiler produces executables we can run.  If not, either
4783 # the compiler is broken, or we cross compile.
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4785 $as_echo_n "checking whether we are cross compiling... " >&6; }
4786 if test "$cross_compiling" != yes; then
4787   { { ac_try="$ac_link"
4788 case "(($ac_try" in
4789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790   *) ac_try_echo=$ac_try;;
4791 esac
4792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4793 $as_echo "$ac_try_echo"; } >&5
4794   (eval "$ac_link") 2>&5
4795   ac_status=$?
4796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4797   test $ac_status = 0; }
4798   if { ac_try='./conftest$ac_cv_exeext'
4799   { { case "(($ac_try" in
4800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801   *) ac_try_echo=$ac_try;;
4802 esac
4803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4804 $as_echo "$ac_try_echo"; } >&5
4805   (eval "$ac_try") 2>&5
4806   ac_status=$?
4807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4808   test $ac_status = 0; }; }; then
4809     cross_compiling=no
4810   else
4811     if test "$cross_compiling" = maybe; then
4812         cross_compiling=yes
4813     else
4814         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4816 as_fn_error "cannot run C compiled programs.
4817 If you meant to cross compile, use \`--host'.
4818 See \`config.log' for more details." "$LINENO" 5; }
4819     fi
4820   fi
4821 fi
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4823 $as_echo "$cross_compiling" >&6; }
4824
4825 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4826 ac_clean_files=$ac_clean_files_save
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4828 $as_echo_n "checking for suffix of object files... " >&6; }
4829 if test "${ac_cv_objext+set}" = set; then :
4830   $as_echo_n "(cached) " >&6
4831 else
4832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h.  */
4834
4835 int
4836 main ()
4837 {
4838
4839   ;
4840   return 0;
4841 }
4842 _ACEOF
4843 rm -f conftest.o conftest.obj
4844 if { { ac_try="$ac_compile"
4845 case "(($ac_try" in
4846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847   *) ac_try_echo=$ac_try;;
4848 esac
4849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4850 $as_echo "$ac_try_echo"; } >&5
4851   (eval "$ac_compile") 2>&5
4852   ac_status=$?
4853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4854   test $ac_status = 0; }; then :
4855   for ac_file in conftest.o conftest.obj conftest.*; do
4856   test -f "$ac_file" || continue;
4857   case $ac_file in
4858     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4859     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4860        break;;
4861   esac
4862 done
4863 else
4864   $as_echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.$ac_ext >&5
4866
4867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4869 as_fn_error "cannot compute suffix of object files: cannot compile
4870 See \`config.log' for more details." "$LINENO" 5; }
4871 fi
4872 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4873 fi
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4875 $as_echo "$ac_cv_objext" >&6; }
4876 OBJEXT=$ac_cv_objext
4877 ac_objext=$OBJEXT
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4879 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4880 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4881   $as_echo_n "(cached) " >&6
4882 else
4883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h.  */
4885
4886 int
4887 main ()
4888 {
4889 #ifndef __GNUC__
4890        choke me
4891 #endif
4892
4893   ;
4894   return 0;
4895 }
4896 _ACEOF
4897 if ac_fn_c_try_compile "$LINENO"; then :
4898   ac_compiler_gnu=yes
4899 else
4900   ac_compiler_gnu=no
4901 fi
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4904
4905 fi
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4907 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4908 if test $ac_compiler_gnu = yes; then
4909   GCC=yes
4910 else
4911   GCC=
4912 fi
4913 ac_test_CFLAGS=${CFLAGS+set}
4914 ac_save_CFLAGS=$CFLAGS
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4916 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4917 if test "${ac_cv_prog_cc_g+set}" = set; then :
4918   $as_echo_n "(cached) " >&6
4919 else
4920   ac_save_c_werror_flag=$ac_c_werror_flag
4921    ac_c_werror_flag=yes
4922    ac_cv_prog_cc_g=no
4923    CFLAGS="-g"
4924    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h.  */
4926
4927 int
4928 main ()
4929 {
4930
4931   ;
4932   return 0;
4933 }
4934 _ACEOF
4935 if ac_fn_c_try_compile "$LINENO"; then :
4936   ac_cv_prog_cc_g=yes
4937 else
4938   CFLAGS=""
4939       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h.  */
4941
4942 int
4943 main ()
4944 {
4945
4946   ;
4947   return 0;
4948 }
4949 _ACEOF
4950 if ac_fn_c_try_compile "$LINENO"; then :
4951
4952 else
4953   ac_c_werror_flag=$ac_save_c_werror_flag
4954          CFLAGS="-g"
4955          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h.  */
4957
4958 int
4959 main ()
4960 {
4961
4962   ;
4963   return 0;
4964 }
4965 _ACEOF
4966 if ac_fn_c_try_compile "$LINENO"; then :
4967   ac_cv_prog_cc_g=yes
4968 fi
4969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4970 fi
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972 fi
4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974    ac_c_werror_flag=$ac_save_c_werror_flag
4975 fi
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4977 $as_echo "$ac_cv_prog_cc_g" >&6; }
4978 if test "$ac_test_CFLAGS" = set; then
4979   CFLAGS=$ac_save_CFLAGS
4980 elif test $ac_cv_prog_cc_g = yes; then
4981   if test "$GCC" = yes; then
4982     CFLAGS="-g -O2"
4983   else
4984     CFLAGS="-g"
4985   fi
4986 else
4987   if test "$GCC" = yes; then
4988     CFLAGS="-O2"
4989   else
4990     CFLAGS=
4991   fi
4992 fi
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4994 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4995 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4996   $as_echo_n "(cached) " >&6
4997 else
4998   ac_cv_prog_cc_c89=no
4999 ac_save_CC=$CC
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h.  */
5002 #include <stdarg.h>
5003 #include <stdio.h>
5004 #include <sys/types.h>
5005 #include <sys/stat.h>
5006 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5007 struct buf { int x; };
5008 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5009 static char *e (p, i)
5010      char **p;
5011      int i;
5012 {
5013   return p[i];
5014 }
5015 static char *f (char * (*g) (char **, int), char **p, ...)
5016 {
5017   char *s;
5018   va_list v;
5019   va_start (v,p);
5020   s = g (p, va_arg (v,int));
5021   va_end (v);
5022   return s;
5023 }
5024
5025 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5026    function prototypes and stuff, but not '\xHH' hex character constants.
5027    These don't provoke an error unfortunately, instead are silently treated
5028    as 'x'.  The following induces an error, until -std is added to get
5029    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5030    array size at least.  It's necessary to write '\x00'==0 to get something
5031    that's true only with -std.  */
5032 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5033
5034 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5035    inside strings and character constants.  */
5036 #define FOO(x) 'x'
5037 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5038
5039 int test (int i, double x);
5040 struct s1 {int (*f) (int a);};
5041 struct s2 {int (*f) (double a);};
5042 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5043 int argc;
5044 char **argv;
5045 int
5046 main ()
5047 {
5048 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5049   ;
5050   return 0;
5051 }
5052 _ACEOF
5053 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5054         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5055 do
5056   CC="$ac_save_CC $ac_arg"
5057   if ac_fn_c_try_compile "$LINENO"; then :
5058   ac_cv_prog_cc_c89=$ac_arg
5059 fi
5060 rm -f core conftest.err conftest.$ac_objext
5061   test "x$ac_cv_prog_cc_c89" != "xno" && break
5062 done
5063 rm -f conftest.$ac_ext
5064 CC=$ac_save_CC
5065
5066 fi
5067 # AC_CACHE_VAL
5068 case "x$ac_cv_prog_cc_c89" in
5069   x)
5070     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5071 $as_echo "none needed" >&6; } ;;
5072   xno)
5073     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5074 $as_echo "unsupported" >&6; } ;;
5075   *)
5076     CC="$CC $ac_cv_prog_cc_c89"
5077     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5078 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5079 esac
5080 if test "x$ac_cv_prog_cc_c89" != xno; then :
5081
5082 fi
5083
5084 ac_ext=c
5085 ac_cpp='$CPP $CPPFLAGS'
5086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5089 DEPDIR="${am__leading_dot}deps"
5090
5091 ac_config_commands="$ac_config_commands depfiles"
5092
5093
5094 am_make=${MAKE-make}
5095 cat > confinc << 'END'
5096 am__doit:
5097         @echo this is the am__doit target
5098 .PHONY: am__doit
5099 END
5100 # If we don't find an include directive, just comment out the code.
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5102 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5103 am__include="#"
5104 am__quote=
5105 _am_result=none
5106 # First try GNU make style include.
5107 echo "include confinc" > confmf
5108 # Ignore all kinds of additional output from `make'.
5109 case `$am_make -s -f confmf 2> /dev/null` in #(
5110 *the\ am__doit\ target*)
5111   am__include=include
5112   am__quote=
5113   _am_result=GNU
5114   ;;
5115 esac
5116 # Now try BSD make style include.
5117 if test "$am__include" = "#"; then
5118    echo '.include "confinc"' > confmf
5119    case `$am_make -s -f confmf 2> /dev/null` in #(
5120    *the\ am__doit\ target*)
5121      am__include=.include
5122      am__quote="\""
5123      _am_result=BSD
5124      ;;
5125    esac
5126 fi
5127
5128
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5130 $as_echo "$_am_result" >&6; }
5131 rm -f confinc confmf
5132
5133 # Check whether --enable-dependency-tracking was given.
5134 if test "${enable_dependency_tracking+set}" = set; then :
5135   enableval=$enable_dependency_tracking;
5136 fi
5137
5138 if test "x$enable_dependency_tracking" != xno; then
5139   am_depcomp="$ac_aux_dir/depcomp"
5140   AMDEPBACKSLASH='\'
5141 fi
5142  if test "x$enable_dependency_tracking" != xno; then
5143   AMDEP_TRUE=
5144   AMDEP_FALSE='#'
5145 else
5146   AMDEP_TRUE='#'
5147   AMDEP_FALSE=
5148 fi
5149
5150
5151
5152 depcc="$CC"   am_compiler_list=
5153
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5155 $as_echo_n "checking dependency style of $depcc... " >&6; }
5156 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5157   $as_echo_n "(cached) " >&6
5158 else
5159   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5160   # We make a subdir and do the tests there.  Otherwise we can end up
5161   # making bogus files that we don't know about and never remove.  For
5162   # instance it was reported that on HP-UX the gcc test will end up
5163   # making a dummy file named `D' -- because `-MD' means `put the output
5164   # in D'.
5165   mkdir conftest.dir
5166   # Copy depcomp to subdir because otherwise we won't find it if we're
5167   # using a relative directory.
5168   cp "$am_depcomp" conftest.dir
5169   cd conftest.dir
5170   # We will build objects and dependencies in a subdirectory because
5171   # it helps to detect inapplicable dependency modes.  For instance
5172   # both Tru64's cc and ICC support -MD to output dependencies as a
5173   # side effect of compilation, but ICC will put the dependencies in
5174   # the current directory while Tru64 will put them in the object
5175   # directory.
5176   mkdir sub
5177
5178   am_cv_CC_dependencies_compiler_type=none
5179   if test "$am_compiler_list" = ""; then
5180      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5181   fi
5182   am__universal=false
5183   case " $depcc " in #(
5184      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5185      esac
5186
5187   for depmode in $am_compiler_list; do
5188     # Setup a source with many dependencies, because some compilers
5189     # like to wrap large dependency lists on column 80 (with \), and
5190     # we should not choose a depcomp mode which is confused by this.
5191     #
5192     # We need to recreate these files for each test, as the compiler may
5193     # overwrite some of them when testing with obscure command lines.
5194     # This happens at least with the AIX C compiler.
5195     : > sub/conftest.c
5196     for i in 1 2 3 4 5 6; do
5197       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5198       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5199       # Solaris 8's {/usr,}/bin/sh.
5200       touch sub/conftst$i.h
5201     done
5202     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5203
5204     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5205     # mode.  It turns out that the SunPro C++ compiler does not properly
5206     # handle `-M -o', and we need to detect this.  Also, some Intel
5207     # versions had trouble with output in subdirs
5208     am__obj=sub/conftest.${OBJEXT-o}
5209     am__minus_obj="-o $am__obj"
5210     case $depmode in
5211     gcc)
5212       # This depmode causes a compiler race in universal mode.
5213       test "$am__universal" = false || continue
5214       ;;
5215     nosideeffect)
5216       # after this tag, mechanisms are not by side-effect, so they'll
5217       # only be used when explicitly requested
5218       if test "x$enable_dependency_tracking" = xyes; then
5219         continue
5220       else
5221         break
5222       fi
5223       ;;
5224     msvisualcpp | msvcmsys)
5225       # This compiler won't grok `-c -o', but also, the minuso test has
5226       # not run yet.  These depmodes are late enough in the game, and
5227       # so weak that their functioning should not be impacted.
5228       am__obj=conftest.${OBJEXT-o}
5229       am__minus_obj=
5230       ;;
5231     none) break ;;
5232     esac
5233     if depmode=$depmode \
5234        source=sub/conftest.c object=$am__obj \
5235        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5236        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5237          >/dev/null 2>conftest.err &&
5238        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5239        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5240        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5241        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5242       # icc doesn't choke on unknown options, it will just issue warnings
5243       # or remarks (even with -Werror).  So we grep stderr for any message
5244       # that says an option was ignored or not supported.
5245       # When given -MP, icc 7.0 and 7.1 complain thusly:
5246       #   icc: Command line warning: ignoring option '-M'; no argument required
5247       # The diagnosis changed in icc 8.0:
5248       #   icc: Command line remark: option '-MP' not supported
5249       if (grep 'ignoring option' conftest.err ||
5250           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5251         am_cv_CC_dependencies_compiler_type=$depmode
5252         break
5253       fi
5254     fi
5255   done
5256
5257   cd ..
5258   rm -rf conftest.dir
5259 else
5260   am_cv_CC_dependencies_compiler_type=none
5261 fi
5262
5263 fi
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5265 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5266 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5267
5268  if
5269   test "x$enable_dependency_tracking" != xno \
5270   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5271   am__fastdepCC_TRUE=
5272   am__fastdepCC_FALSE='#'
5273 else
5274   am__fastdepCC_TRUE='#'
5275   am__fastdepCC_FALSE=
5276 fi
5277
5278
5279
5280 for ac_prog in 'bison -y' byacc
5281 do
5282   # Extract the first word of "$ac_prog", so it can be a program name with args.
5283 set dummy $ac_prog; ac_word=$2
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5285 $as_echo_n "checking for $ac_word... " >&6; }
5286 if test "${ac_cv_prog_YACC+set}" = set; then :
5287   $as_echo_n "(cached) " >&6
5288 else
5289   if test -n "$YACC"; then
5290   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5291 else
5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293 for as_dir in $PATH
5294 do
5295   IFS=$as_save_IFS
5296   test -z "$as_dir" && as_dir=.
5297     for ac_exec_ext in '' $ac_executable_extensions; do
5298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5299     ac_cv_prog_YACC="$ac_prog"
5300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5301     break 2
5302   fi
5303 done
5304   done
5305 IFS=$as_save_IFS
5306
5307 fi
5308 fi
5309 YACC=$ac_cv_prog_YACC
5310 if test -n "$YACC"; then
5311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5312 $as_echo "$YACC" >&6; }
5313 else
5314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315 $as_echo "no" >&6; }
5316 fi
5317
5318
5319   test -n "$YACC" && break
5320 done
5321 test -n "$YACC" || YACC="yacc"
5322
5323
5324
5325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5
5326 $as_echo_n "checking whether to use Java... " >&6; }
5327   # Check whether --enable-java was given.
5328 if test "${enable_java+set}" = set; then :
5329   enableval=$enable_java; JAVA_CHOICE="$enableval"
5330 else
5331   JAVA_CHOICE=yes
5332 fi
5333
5334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5
5335 $as_echo "$JAVA_CHOICE" >&6; }
5336   if test "$JAVA_CHOICE" = yes; then
5337     # Check whether --enable-native-java was given.
5338 if test "${enable_native_java+set}" = set; then :
5339   enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
5340 fi
5341
5342   fi
5343
5344
5345
5346
5347
5348
5349
5350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java to native code compiler" >&5
5351 $as_echo_n "checking for Java to native code compiler... " >&6; }
5352   # Search for the gcj command or use the one provided by the user.
5353   if test -z "$GCJ"; then
5354                 if test -n "$ac_tool_prefix"; then
5355   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
5356 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5357 :
5358 if test "${ac_cv_prog_GCJ+set}" = set; then :
5359   $as_echo_n "(cached) " >&6
5360 else
5361   if test -n "$GCJ"; then
5362   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5363 else
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH
5366 do
5367   IFS=$as_save_IFS
5368   test -z "$as_dir" && as_dir=.
5369     for ac_exec_ext in '' $ac_executable_extensions; do
5370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
5372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373     break 2
5374   fi
5375 done
5376   done
5377 IFS=$as_save_IFS
5378
5379 fi
5380 fi
5381 GCJ=$ac_cv_prog_GCJ
5382 if test -n "$GCJ"; then
5383   :
5384 else
5385   :
5386 fi
5387
5388
5389 fi
5390 if test -z "$ac_cv_prog_GCJ"; then
5391   ac_ct_GCJ=$GCJ
5392   # Extract the first word of "gcj", so it can be a program name with args.
5393 set dummy gcj; ac_word=$2
5394 :
5395 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
5396   $as_echo_n "(cached) " >&6
5397 else
5398   if test -n "$ac_ct_GCJ"; then
5399   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
5400 else
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 for as_dir in $PATH
5403 do
5404   IFS=$as_save_IFS
5405   test -z "$as_dir" && as_dir=.
5406     for ac_exec_ext in '' $ac_executable_extensions; do
5407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5408     ac_cv_prog_ac_ct_GCJ="gcj"
5409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5410     break 2
5411   fi
5412 done
5413   done
5414 IFS=$as_save_IFS
5415
5416 fi
5417 fi
5418 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
5419 if test -n "$ac_ct_GCJ"; then
5420   :
5421 else
5422   :
5423 fi
5424
5425   if test "x$ac_ct_GCJ" = x; then
5426     GCJ="none"
5427   else
5428     case $cross_compiling:$ac_tool_warned in
5429 yes:)
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5432 ac_tool_warned=yes ;;
5433 esac
5434     GCJ=$ac_ct_GCJ
5435   fi
5436 else
5437   GCJ="$ac_cv_prog_GCJ"
5438 fi
5439
5440               fi
5441   # Choose GCJFLAGS or use the one provided by the user.
5442   if test "$GCJ" != none; then
5443     test "${GCJFLAGS+set}" != set || GCJFLAGS="-O2 -g"
5444   fi
5445   # Check whether the version is ok and it can create executables.
5446   ac_gcj_link="$GCJ $GCJFLAGS conftest.java --main=conftest -o conftest$ac_exeext"
5447   if test "$GCJ" != none \
5448      && $GCJ --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | grep '^[3-9]' >/dev/null \
5449      && (
5450       # See if libgcj.so is well installed and if exception handling works.
5451       cat > conftest.java <<EOF
5452 public class conftest {
5453   public static void main (String[] args) {
5454     try {
5455       java.util.ResourceBundle.getBundle("foobar");
5456     } catch (Exception e) {
5457     }
5458     System.exit(0);
5459   }
5460 }
5461 EOF
5462       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_gcj_link\""; } >&5
5463   (eval $ac_gcj_link) 2>&5
5464   ac_status=$?
5465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5466   test $ac_status = 0; }
5467       error=$?
5468       if test $error = 0 && test "$cross_compiling" != yes; then
5469         # Run conftest and catch its exit status, but silently.
5470         error=`./conftest >/dev/null 2>&1; echo $?`
5471         test $error = 0 || error=1
5472         rm -f core conftest.core
5473       fi
5474       rm -f conftest.java conftest$ac_exeext
5475       exit $error
5476      ); then
5477     :
5478   else
5479     GCJ=none
5480   fi
5481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
5482 $as_echo "$GCJ" >&6; }
5483   if test "$GCJ" != none; then
5484     HAVE_GCJ=1
5485   else
5486     HAVE_GCJ=
5487   fi
5488
5489
5490
5491
5492 if test -n "$HAVE_GCJ" && test "$JAVA_CHOICE" = yes; then
5493   BUILDJAVAEXE=yes
5494 else
5495   BUILDJAVAEXE=no
5496 fi
5497
5498
5499
5500 ac_ext=c
5501 ac_cpp='$CPP $CPPFLAGS'
5502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5506 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5507 # On Suns, sometimes $CPP names a directory.
5508 if test -n "$CPP" && test -d "$CPP"; then
5509   CPP=
5510 fi
5511 if test -z "$CPP"; then
5512   if test "${ac_cv_prog_CPP+set}" = set; then :
5513   $as_echo_n "(cached) " >&6
5514 else
5515       # Double quotes because CPP needs to be expanded
5516     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5517     do
5518       ac_preproc_ok=false
5519 for ac_c_preproc_warn_flag in '' yes
5520 do
5521   # Use a header file that comes with gcc, so configuring glibc
5522   # with a fresh cross-compiler works.
5523   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5524   # <limits.h> exists even on freestanding compilers.
5525   # On the NeXT, cc -E runs the code through the compiler's parser,
5526   # not just through cpp. "Syntax error" is here to catch this case.
5527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h.  */
5529 #ifdef __STDC__
5530 # include <limits.h>
5531 #else
5532 # include <assert.h>
5533 #endif
5534                      Syntax error
5535 _ACEOF
5536 if ac_fn_c_try_cpp "$LINENO"; then :
5537
5538 else
5539   # Broken: fails on valid input.
5540 continue
5541 fi
5542 rm -f conftest.err conftest.$ac_ext
5543
5544   # OK, works on sane cases.  Now check whether nonexistent headers
5545   # can be detected and how.
5546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h.  */
5548 #include <ac_nonexistent.h>
5549 _ACEOF
5550 if ac_fn_c_try_cpp "$LINENO"; then :
5551   # Broken: success on invalid input.
5552 continue
5553 else
5554   # Passes both tests.
5555 ac_preproc_ok=:
5556 break
5557 fi
5558 rm -f conftest.err conftest.$ac_ext
5559
5560 done
5561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5562 rm -f conftest.err conftest.$ac_ext
5563 if $ac_preproc_ok; then :
5564   break
5565 fi
5566
5567     done
5568     ac_cv_prog_CPP=$CPP
5569
5570 fi
5571   CPP=$ac_cv_prog_CPP
5572 else
5573   ac_cv_prog_CPP=$CPP
5574 fi
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5576 $as_echo "$CPP" >&6; }
5577 ac_preproc_ok=false
5578 for ac_c_preproc_warn_flag in '' yes
5579 do
5580   # Use a header file that comes with gcc, so configuring glibc
5581   # with a fresh cross-compiler works.
5582   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5583   # <limits.h> exists even on freestanding compilers.
5584   # On the NeXT, cc -E runs the code through the compiler's parser,
5585   # not just through cpp. "Syntax error" is here to catch this case.
5586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h.  */
5588 #ifdef __STDC__
5589 # include <limits.h>
5590 #else
5591 # include <assert.h>
5592 #endif
5593                      Syntax error
5594 _ACEOF
5595 if ac_fn_c_try_cpp "$LINENO"; then :
5596
5597 else
5598   # Broken: fails on valid input.
5599 continue
5600 fi
5601 rm -f conftest.err conftest.$ac_ext
5602
5603   # OK, works on sane cases.  Now check whether nonexistent headers
5604   # can be detected and how.
5605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h.  */
5607 #include <ac_nonexistent.h>
5608 _ACEOF
5609 if ac_fn_c_try_cpp "$LINENO"; then :
5610   # Broken: success on invalid input.
5611 continue
5612 else
5613   # Passes both tests.
5614 ac_preproc_ok=:
5615 break
5616 fi
5617 rm -f conftest.err conftest.$ac_ext
5618
5619 done
5620 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5621 rm -f conftest.err conftest.$ac_ext
5622 if $ac_preproc_ok; then :
5623
5624 else
5625   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5627 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5628 See \`config.log' for more details." "$LINENO" 5; }
5629 fi
5630
5631 ac_ext=c
5632 ac_cpp='$CPP $CPPFLAGS'
5633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5636
5637
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5639 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5640 if test "${ac_cv_path_GREP+set}" = set; then :
5641   $as_echo_n "(cached) " >&6
5642 else
5643   if test -z "$GREP"; then
5644   ac_path_GREP_found=false
5645   # Loop through the user's path and test for each of PROGNAME-LIST
5646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5648 do
5649   IFS=$as_save_IFS
5650   test -z "$as_dir" && as_dir=.
5651     for ac_prog in grep ggrep; do
5652     for ac_exec_ext in '' $ac_executable_extensions; do
5653       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5654       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5655 # Check for GNU ac_path_GREP and select it if it is found.
5656   # Check for GNU $ac_path_GREP
5657 case `"$ac_path_GREP" --version 2>&1` in
5658 *GNU*)
5659   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5660 *)
5661   ac_count=0
5662   $as_echo_n 0123456789 >"conftest.in"
5663   while :
5664   do
5665     cat "conftest.in" "conftest.in" >"conftest.tmp"
5666     mv "conftest.tmp" "conftest.in"
5667     cp "conftest.in" "conftest.nl"
5668     $as_echo 'GREP' >> "conftest.nl"
5669     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5670     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5671     as_fn_arith $ac_count + 1 && ac_count=$as_val
5672     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5673       # Best one so far, save it but keep looking for a better one
5674       ac_cv_path_GREP="$ac_path_GREP"
5675       ac_path_GREP_max=$ac_count
5676     fi
5677     # 10*(2^10) chars as input seems more than enough
5678     test $ac_count -gt 10 && break
5679   done
5680   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5681 esac
5682
5683       $ac_path_GREP_found && break 3
5684     done
5685   done
5686   done
5687 IFS=$as_save_IFS
5688   if test -z "$ac_cv_path_GREP"; then
5689     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5690   fi
5691 else
5692   ac_cv_path_GREP=$GREP
5693 fi
5694
5695 fi
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5697 $as_echo "$ac_cv_path_GREP" >&6; }
5698  GREP="$ac_cv_path_GREP"
5699
5700
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5702 $as_echo_n "checking for egrep... " >&6; }
5703 if test "${ac_cv_path_EGREP+set}" = set; then :
5704   $as_echo_n "(cached) " >&6
5705 else
5706   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5707    then ac_cv_path_EGREP="$GREP -E"
5708    else
5709      if test -z "$EGREP"; then
5710   ac_path_EGREP_found=false
5711   # Loop through the user's path and test for each of PROGNAME-LIST
5712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5714 do
5715   IFS=$as_save_IFS
5716   test -z "$as_dir" && as_dir=.
5717     for ac_prog in egrep; do
5718     for ac_exec_ext in '' $ac_executable_extensions; do
5719       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5720       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5721 # Check for GNU ac_path_EGREP and select it if it is found.
5722   # Check for GNU $ac_path_EGREP
5723 case `"$ac_path_EGREP" --version 2>&1` in
5724 *GNU*)
5725   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5726 *)
5727   ac_count=0
5728   $as_echo_n 0123456789 >"conftest.in"
5729   while :
5730   do
5731     cat "conftest.in" "conftest.in" >"conftest.tmp"
5732     mv "conftest.tmp" "conftest.in"
5733     cp "conftest.in" "conftest.nl"
5734     $as_echo 'EGREP' >> "conftest.nl"
5735     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5736     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5737     as_fn_arith $ac_count + 1 && ac_count=$as_val
5738     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5739       # Best one so far, save it but keep looking for a better one
5740       ac_cv_path_EGREP="$ac_path_EGREP"
5741       ac_path_EGREP_max=$ac_count
5742     fi
5743     # 10*(2^10) chars as input seems more than enough
5744     test $ac_count -gt 10 && break
5745   done
5746   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5747 esac
5748
5749       $ac_path_EGREP_found && break 3
5750     done
5751   done
5752   done
5753 IFS=$as_save_IFS
5754   if test -z "$ac_cv_path_EGREP"; then
5755     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5756   fi
5757 else
5758   ac_cv_path_EGREP=$EGREP
5759 fi
5760
5761    fi
5762 fi
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5764 $as_echo "$ac_cv_path_EGREP" >&6; }
5765  EGREP="$ac_cv_path_EGREP"
5766
5767
5768
5769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java virtual machine" >&5
5770 $as_echo_n "checking for Java virtual machine... " >&6; }
5771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h.  */
5773
5774 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
5775   yes
5776 #endif
5777
5778 _ACEOF
5779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5780   $EGREP "yes" >/dev/null 2>&1; then :
5781   CLASSPATH_SEPARATOR=';'
5782 else
5783   CLASSPATH_SEPARATOR=':'
5784 fi
5785 rm -f conftest*
5786
5787   CONF_JAVA=
5788   HAVE_JAVA_ENVVAR=
5789   HAVE_GIJ=
5790   HAVE_JAVA=
5791   HAVE_JRE=
5792   HAVE_JVIEW=
5793   HAVE_JAVAEXEC=1
5794   if test -n "$JAVA"; then
5795     HAVE_JAVA_ENVVAR=1
5796     CONF_JAVA="$JAVA"
5797   else
5798                 # Extract the first word of "gij", so it can be a program name with args.
5799 set dummy gij; ac_word=$2
5800 :
5801 if test "${ac_cv_prog_HAVE_GIJ_IN_PATH+set}" = set; then :
5802   $as_echo_n "(cached) " >&6
5803 else
5804   if test -n "$HAVE_GIJ_IN_PATH"; then
5805   ac_cv_prog_HAVE_GIJ_IN_PATH="$HAVE_GIJ_IN_PATH" # Let the user override the test.
5806 else
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 for as_dir in $PATH
5809 do
5810   IFS=$as_save_IFS
5811   test -z "$as_dir" && as_dir=.
5812     for ac_exec_ext in '' $ac_executable_extensions; do
5813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5814     ac_cv_prog_HAVE_GIJ_IN_PATH="yes"
5815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5816     break 2
5817   fi
5818 done
5819   done
5820 IFS=$as_save_IFS
5821
5822 fi
5823 fi
5824 HAVE_GIJ_IN_PATH=$ac_cv_prog_HAVE_GIJ_IN_PATH
5825 if test -n "$HAVE_GIJ_IN_PATH"; then
5826   :
5827 else
5828   :
5829 fi
5830
5831
5832     # Extract the first word of "java", so it can be a program name with args.
5833 set dummy java; ac_word=$2
5834 :
5835 if test "${ac_cv_prog_HAVE_JAVA_IN_PATH+set}" = set; then :
5836   $as_echo_n "(cached) " >&6
5837 else
5838   if test -n "$HAVE_JAVA_IN_PATH"; then
5839   ac_cv_prog_HAVE_JAVA_IN_PATH="$HAVE_JAVA_IN_PATH" # Let the user override the test.
5840 else
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 for as_dir in $PATH
5843 do
5844   IFS=$as_save_IFS
5845   test -z "$as_dir" && as_dir=.
5846     for ac_exec_ext in '' $ac_executable_extensions; do
5847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5848     ac_cv_prog_HAVE_JAVA_IN_PATH="yes"
5849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5850     break 2
5851   fi
5852 done
5853   done
5854 IFS=$as_save_IFS
5855
5856 fi
5857 fi
5858 HAVE_JAVA_IN_PATH=$ac_cv_prog_HAVE_JAVA_IN_PATH
5859 if test -n "$HAVE_JAVA_IN_PATH"; then
5860   :
5861 else
5862   :
5863 fi
5864
5865
5866     # Extract the first word of "jre", so it can be a program name with args.
5867 set dummy jre; ac_word=$2
5868 :
5869 if test "${ac_cv_prog_HAVE_JRE_IN_PATH+set}" = set; then :
5870   $as_echo_n "(cached) " >&6
5871 else
5872   if test -n "$HAVE_JRE_IN_PATH"; then
5873   ac_cv_prog_HAVE_JRE_IN_PATH="$HAVE_JRE_IN_PATH" # Let the user override the test.
5874 else
5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 for as_dir in $PATH
5877 do
5878   IFS=$as_save_IFS
5879   test -z "$as_dir" && as_dir=.
5880     for ac_exec_ext in '' $ac_executable_extensions; do
5881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5882     ac_cv_prog_HAVE_JRE_IN_PATH="yes"
5883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5884     break 2
5885   fi
5886 done
5887   done
5888 IFS=$as_save_IFS
5889
5890 fi
5891 fi
5892 HAVE_JRE_IN_PATH=$ac_cv_prog_HAVE_JRE_IN_PATH
5893 if test -n "$HAVE_JRE_IN_PATH"; then
5894   :
5895 else
5896   :
5897 fi
5898
5899
5900     # Extract the first word of "jview", so it can be a program name with args.
5901 set dummy jview; ac_word=$2
5902 :
5903 if test "${ac_cv_prog_HAVE_JVIEW_IN_PATH+set}" = set; then :
5904   $as_echo_n "(cached) " >&6
5905 else
5906   if test -n "$HAVE_JVIEW_IN_PATH"; then
5907   ac_cv_prog_HAVE_JVIEW_IN_PATH="$HAVE_JVIEW_IN_PATH" # Let the user override the test.
5908 else
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH
5911 do
5912   IFS=$as_save_IFS
5913   test -z "$as_dir" && as_dir=.
5914     for ac_exec_ext in '' $ac_executable_extensions; do
5915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5916     ac_cv_prog_HAVE_JVIEW_IN_PATH="yes"
5917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918     break 2
5919   fi
5920 done
5921   done
5922 IFS=$as_save_IFS
5923
5924 fi
5925 fi
5926 HAVE_JVIEW_IN_PATH=$ac_cv_prog_HAVE_JVIEW_IN_PATH
5927 if test -n "$HAVE_JVIEW_IN_PATH"; then
5928   :
5929 else
5930   :
5931 fi
5932
5933
5934
5935     export CLASSPATH
5936     if test -n "$HAVE_GIJ_IN_PATH" \
5937        && gij --version >/dev/null 2>/dev/null \
5938        ; then
5939       HAVE_GIJ=1
5940       CONF_JAVA="gij"
5941     else
5942       if test -n "$HAVE_JAVA_IN_PATH" \
5943          && java -version >/dev/null 2>/dev/null \
5944          ; then
5945         HAVE_JAVA=1
5946         CONF_JAVA="java"
5947       else
5948         if test -n "$HAVE_JRE_IN_PATH" \
5949            && (jre >/dev/null 2>/dev/null || test $? = 1) \
5950            ; then
5951           HAVE_JRE=1
5952           CONF_JAVA="jre"
5953         else
5954           if test -n "$HAVE_JVIEW_IN_PATH" \
5955              && (jview -? >/dev/null 2>/dev/null || test $? = 1) \
5956              ; then
5957             HAVE_JVIEW=1
5958             CONF_JAVA="jview"
5959           else
5960             HAVE_JAVAEXEC=
5961           fi
5962         fi
5963       fi
5964     fi
5965
5966   fi
5967   if test -n "$HAVE_JAVAEXEC"; then
5968     ac_result="$CONF_JAVA"
5969   else
5970     ac_result="no"
5971   fi
5972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
5973 $as_echo "$ac_result" >&6; }
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h.  */
5987
5988 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
5989   yes
5990 #endif
5991
5992 _ACEOF
5993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5994   $EGREP "yes" >/dev/null 2>&1; then :
5995   CLASSPATH_SEPARATOR=';'
5996 else
5997   CLASSPATH_SEPARATOR=':'
5998 fi
5999 rm -f conftest*
6000
6001   source_version=1.3
6002   test -n "$source_version" || {
6003     as_fn_error "missing source-version argument to gt_JAVACOMP" "$LINENO" 5
6004   }
6005   if test -n "$HAVE_JAVAEXEC"; then
6006               cat > conftestver.java <<EOF
6007 public class conftestver {
6008   public static void main (String[] args) {
6009     System.out.println(System.getProperty("java.specification.version"));
6010   }
6011 }
6012 EOF
6013                                                                       echo 'yzwx!$!I!D,!)!3+!4!5*!6,!4!7,!8!9)!:)!;"!(MeienN"!$FGW"!%Ojab"!2QeibRohZblVYZgb"!%hYei"!9FXQfYpYKgYidKUnleidLGW"!,Ujol_bPegb"!3_jicnbmnpblJfYpY/!*!+)!</!=!>"!=fYpYJmkb_ece_YnejiJpblmeji/!?!@)!A/!B!C"!._jicnbmnpbl"!3fYpYKgYidKSZfb_n"!3fYpYKgYidKUqmnbh"!$jon"!8QfYpYKejKTleinUnlbYhL"!.dbnTljkblnq"!EFQfYpYKgYidKUnleidLGQfYpYKgYidKUnleidL"!6fYpYKejKTleinUnlbYh"!)kleingi"!8FQfYpYKgYidKUnleidLGW!D!(!)!!!!!#!"!*!+!"!,!!!@!"!"!!!&Hu!"r!!!"!.!!!(!"!!!"!+!/!0!"!,!!!F!#!"!!!/s!#5$v!%t!&r!!!"!.!!!,!#!!!$!.!%!"!1!!!#!2' \
6014          | tr -d '\012\015' \
6015          | tr '!"#$%&()*+,./0123456789:;<=>?@ABCDEFGHJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyzI' '\000\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037\040\041\046\050\051\052\056\057\073\074\076\103\106\114\116\117\120\123\124\126\133\141\142\143\144\145\146\147\151\152\154\155\156\157\160\162\163\164\165\166\171\261\262\266\267\270\272\276\312\376\055' \
6016          > conftestver.class
6017        target_version=`{
6018          unset JAVA_HOME
6019          echo "$as_me:6019: CLASSPATH=.${CLASSPATH:+$CLASSPATH_SEPARATOR$CLASSPATH} $CONF_JAVA conftestver" >&5
6020          CLASSPATH=.${CLASSPATH:+$CLASSPATH_SEPARATOR$CLASSPATH} $CONF_JAVA conftestver 2>&5
6021        }`
6022        case "$target_version" in
6023          1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6) ;;
6024          null)
6025                       target_version=1.1 ;;
6026          *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown target-version $target_version, please update gt_JAVACOMP macro" >&5
6027 $as_echo "$as_me: WARNING: unknown target-version $target_version, please update gt_JAVACOMP macro" >&2;}
6028             target_version=1.1 ;;
6029        esac
6030      else
6031        target_version="1.1"
6032      fi
6033
6034   case "$source_version" in
6035     1.3) goodcode='class conftest {}'
6036          failcode='class conftestfail { static { assert(true); } }' ;;
6037     1.4) goodcode='class conftest     { static { assert(true); } }'
6038          failcode='class conftestfail<T> { T foo() { return null; } }' ;;
6039     1.5) goodcode='class conftest<T>     { T foo() { return null; } }'
6040          failcode='class conftestfail syntax error' ;;
6041     *) as_fn_error "invalid source-version argument to gt_JAVACOMP: $source_version" "$LINENO" 5 ;;
6042   esac
6043   case "$target_version" in
6044     1.1) cfversion=45 ;;
6045     1.2) cfversion=46 ;;
6046     1.3) cfversion=47 ;;
6047     1.4) cfversion=48 ;;
6048     1.5) cfversion=49 ;;
6049     1.6) cfversion=50 ;;
6050     *) as_fn_error "invalid target-version argument to gt_JAVACOMP: $target_version" "$LINENO" 5 ;;
6051   esac
6052   # Function to output the classfile version of a file (8th byte) in decimal.
6053   if od -A x < /dev/null >/dev/null 2>/dev/null; then
6054     # Use POSIX od.
6055     func_classfile_version ()
6056     {
6057       od -A n -t d1 -j 7 -N 1 "$1"
6058     }
6059   else
6060     # Use BSD hexdump.
6061     func_classfile_version ()
6062     {
6063       dd if="$1" bs=1 count=1 skip=7 2>/dev/null | hexdump -e '1/1 "%3d "'
6064       echo
6065     }
6066   fi
6067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java compiler" >&5
6068 $as_echo_n "checking for Java compiler... " >&6; }
6069                                                                                         CONF_JAVAC=
6070   HAVE_JAVAC_ENVVAR=
6071   HAVE_GCJ_C=
6072   HAVE_JAVAC=
6073   HAVE_JIKES=
6074   HAVE_JAVACOMP=
6075   cat > conftestlib.java <<EOF
6076 public class conftestlib {
6077   public static void main (String[] args) {
6078   }
6079 }
6080 EOF
6081   echo "$goodcode" > conftest.java
6082   echo "$failcode" > conftestfail.java
6083         if test -n "$JAVAC"; then
6084         if $JAVAC --version 2>/dev/null | sed -e 1q | grep gcj > /dev/null; then
6085             if $JAVAC --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
6086                         rm -f conftest.class
6087         if { echo "$as_me:6087: $JAVAC -d . conftest.java" >&5
6088              $JAVAC -d . conftest.java >&5 2>&1
6089            } \
6090            && test -f conftest.class \
6091            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6092                     rm -f conftest.class
6093           rm -f conftestfail.class
6094           if { echo "$as_me:6094: $JAVAC -fsource=$source_version -d . conftest.java" >&5
6095                $JAVAC -fsource="$source_version" -d . conftest.java >&5 2>&1
6096              } \
6097              && test -f conftest.class \
6098              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6099              && { echo "$as_me:6099: $JAVAC -d . conftestfail.java" >&5
6100                   $JAVAC -d . conftestfail.java >&5 2>&1
6101                 } \
6102              && test -f conftestfail.class \
6103              && ! { echo "$as_me:6103: $JAVAC -fsource=$source_version -d . conftestfail.java" >&5
6104                     $JAVAC -fsource="$source_version" -d . conftestfail.java >&5 2>&1
6105                   }; then
6106             CONF_JAVAC="$JAVAC -fsource=$source_version"
6107             HAVE_JAVAC_ENVVAR=1
6108             HAVE_JAVACOMP=1
6109           else
6110             CONF_JAVAC="$JAVAC"
6111             HAVE_JAVAC_ENVVAR=1
6112             HAVE_JAVACOMP=1
6113           fi
6114         else
6115                     rm -f conftest.class
6116           rm -f conftestfail.class
6117           if { echo "$as_me:6117: $JAVAC -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
6118                $JAVAC -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
6119              } \
6120              && test -f conftest.class \
6121              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6122             CONF_JAVAC="$JAVAC -fsource=$source_version -ftarget=$target_version"
6123             HAVE_JAVAC_ENVVAR=1
6124             HAVE_JAVACOMP=1
6125           fi
6126         fi
6127       else
6128                 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
6129                     rm -f conftest.class
6130           if { echo "$as_me:6130: $JAVAC -d . conftest.java" >&5
6131                $JAVAC -d . conftest.java >&5 2>&1
6132              } \
6133              && test -f conftest.class; then
6134             CONF_JAVAC="$JAVAC"
6135             HAVE_JAVAC_ENVVAR=1
6136             HAVE_JAVACOMP=1
6137           fi
6138         else
6139           if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
6140                                     javac_works=
6141             rm -f conftest.class
6142             if { echo "$as_me:6142: $JAVAC -d . conftest.java" >&5
6143                  $JAVAC -d . conftest.java >&5 2>&1
6144                } \
6145                && test -f conftest.class; then
6146               javac_works=1
6147             fi
6148             javac_noassert_works=
6149             rm -f conftest.class
6150             if { echo "$as_me:6150: $JAVAC -fno-assert -d . conftest.java" >&5
6151                  $JAVAC -fno-assert -d . conftest.java >&5 2>&1
6152                } \
6153                && test -f conftest.class; then
6154               javac_noassert_works=1
6155             fi
6156             if test -n "$javac_works" && test -n "$javac_noassert_works"; then
6157               rm -f conftestfail.class
6158               if { echo "$as_me:6158: $JAVAC -d . conftestfail.java" >&5
6159                    $JAVAC -d . conftestfail.java >&5 2>&1
6160                  } \
6161                  && test -f conftestfail.class \
6162                  && ! { echo "$as_me:6162: $JAVAC -fno-assert -d . conftestfail.java" >&5
6163                         $JAVAC -fno-assert -d . conftestfail.java >&5 2>&1
6164                       }; then
6165                                 javac_works=
6166               fi
6167             fi
6168             if test -n "$javac_works"; then
6169               CONF_JAVAC="$JAVAC"
6170               HAVE_JAVAC_ENVVAR=1
6171               HAVE_JAVACOMP=1
6172             else
6173               if test -n "$javac_noassert_works"; then
6174                 CONF_JAVAC="$JAVAC -fno-assert"
6175                 HAVE_JAVAC_ENVVAR=1
6176                 HAVE_JAVACOMP=1
6177               fi
6178             fi
6179           fi
6180         fi
6181       fi
6182     else
6183                   rm -f conftest.class
6184       if { echo "$as_me:6184: $JAVAC -d . conftest.java" >&5
6185            $JAVAC -d . conftest.java >&5 2>&1
6186          } \
6187          && test -f conftest.class \
6188          && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6189                 rm -f conftest.class
6190         rm -f conftestfail.class
6191         if { echo "$as_me:6191: $JAVAC -source $source_version -d . conftest.java" >&5
6192              $JAVAC -source "$source_version" -d . conftest.java >&5 2>&1
6193            } \
6194            && test -f conftest.class \
6195            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6196            && { echo "$as_me:6196: $JAVAC -d . conftestfail.java" >&5
6197                 $JAVAC -d . conftestfail.java >&5 2>&1
6198               } \
6199            && test -f conftestfail.class \
6200            && ! { echo "$as_me:6200: $JAVAC -source $source_version -d . conftestfail.java" >&5
6201                   $JAVAC -source "$source_version" -d . conftestfail.java >&5 2>&1
6202                 }; then
6203           CONF_JAVAC="$JAVAC -source $source_version"
6204           HAVE_JAVAC_ENVVAR=1
6205           HAVE_JAVACOMP=1
6206         else
6207           CONF_JAVAC="$JAVAC"
6208           HAVE_JAVAC_ENVVAR=1
6209           HAVE_JAVACOMP=1
6210         fi
6211       else
6212                         rm -f conftest.class
6213         if { echo "$as_me:6213: $JAVAC -target $target_version -d . conftest.java" >&5
6214              $JAVAC -target "$target_version" -d . conftest.java >&5 2>&1
6215            } \
6216            && test -f conftest.class \
6217            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6218                     rm -f conftest.class
6219           rm -f conftestfail.class
6220           if { echo "$as_me:6220: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
6221                $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
6222              } \
6223              && test -f conftest.class \
6224              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6225              && { echo "$as_me:6225: $JAVAC -target $target_version -d . conftestfail.java" >&5
6226                   $JAVAC -target "$target_version" -d . conftestfail.java >&5 2>&1
6227                 } \
6228              && test -f conftestfail.class \
6229              && ! { echo "$as_me:6229: $JAVAC -target $target_version -source $source_version -d . conftestfail.java" >&5
6230                     $JAVAC -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
6231                   }; then
6232             CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
6233             HAVE_JAVAC_ENVVAR=1
6234             HAVE_JAVACOMP=1
6235           else
6236             CONF_JAVAC="$JAVAC -target $target_version"
6237             HAVE_JAVAC_ENVVAR=1
6238             HAVE_JAVACOMP=1
6239           fi
6240         else
6241                                         rm -f conftest.class
6242           if { echo "$as_me:6242: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
6243                $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
6244              } \
6245              && test -f conftest.class \
6246              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6247             CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
6248             HAVE_JAVAC_ENVVAR=1
6249             HAVE_JAVACOMP=1
6250           fi
6251         fi
6252       fi
6253     fi
6254   fi
6255   if test -z "$HAVE_JAVACOMP"; then
6256                 # Extract the first word of "gcj", so it can be a program name with args.
6257 set dummy gcj; ac_word=$2
6258 :
6259 if test "${ac_cv_prog_HAVE_GCJ_IN_PATH+set}" = set; then :
6260   $as_echo_n "(cached) " >&6
6261 else
6262   if test -n "$HAVE_GCJ_IN_PATH"; then
6263   ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test.
6264 else
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 for as_dir in $PATH
6267 do
6268   IFS=$as_save_IFS
6269   test -z "$as_dir" && as_dir=.
6270     for ac_exec_ext in '' $ac_executable_extensions; do
6271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6272     ac_cv_prog_HAVE_GCJ_IN_PATH="yes"
6273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6274     break 2
6275   fi
6276 done
6277   done
6278 IFS=$as_save_IFS
6279
6280 fi
6281 fi
6282 HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH
6283 if test -n "$HAVE_GCJ_IN_PATH"; then
6284   :
6285 else
6286   :
6287 fi
6288
6289
6290     # Extract the first word of "javac", so it can be a program name with args.
6291 set dummy javac; ac_word=$2
6292 :
6293 if test "${ac_cv_prog_HAVE_JAVAC_IN_PATH+set}" = set; then :
6294   $as_echo_n "(cached) " >&6
6295 else
6296   if test -n "$HAVE_JAVAC_IN_PATH"; then
6297   ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test.
6298 else
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6301 do
6302   IFS=$as_save_IFS
6303   test -z "$as_dir" && as_dir=.
6304     for ac_exec_ext in '' $ac_executable_extensions; do
6305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306     ac_cv_prog_HAVE_JAVAC_IN_PATH="yes"
6307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308     break 2
6309   fi
6310 done
6311   done
6312 IFS=$as_save_IFS
6313
6314 fi
6315 fi
6316 HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH
6317 if test -n "$HAVE_JAVAC_IN_PATH"; then
6318   :
6319 else
6320   :
6321 fi
6322
6323
6324     # Extract the first word of "jikes", so it can be a program name with args.
6325 set dummy jikes; ac_word=$2
6326 :
6327 if test "${ac_cv_prog_HAVE_JIKES_IN_PATH+set}" = set; then :
6328   $as_echo_n "(cached) " >&6
6329 else
6330   if test -n "$HAVE_JIKES_IN_PATH"; then
6331   ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test.
6332 else
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6335 do
6336   IFS=$as_save_IFS
6337   test -z "$as_dir" && as_dir=.
6338     for ac_exec_ext in '' $ac_executable_extensions; do
6339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6340     ac_cv_prog_HAVE_JIKES_IN_PATH="yes"
6341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342     break 2
6343   fi
6344 done
6345   done
6346 IFS=$as_save_IFS
6347
6348 fi
6349 fi
6350 HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH
6351 if test -n "$HAVE_JIKES_IN_PATH"; then
6352   :
6353 else
6354   :
6355 fi
6356
6357
6358                 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_GCJ_IN_PATH"; then
6359             if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[01]/d' | grep '^[3-9]' >/dev/null; then
6360                 if { echo "$as_me:6360: gcj -C -d . conftestlib.java" >&5
6361              gcj -C -d . conftestlib.java >&5 2>&1
6362            }; then
6363                     if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
6364                                     rm -f conftest.class
6365             if { echo "$as_me:6365: gcj -C -d . conftest.java" >&5
6366                  gcj -C -d . conftest.java >&5 2>&1
6367                } \
6368                && test -f conftest.class \
6369                && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6370                             rm -f conftest.class
6371               rm -f conftestfail.class
6372               if { echo "$as_me:6372: gcj -C -fsource=$source_version -d . conftest.java" >&5
6373                    gcj -C -fsource="$source_version" -d . conftest.java >&5 2>&1
6374                  } \
6375                  && test -f conftest.class \
6376                  && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6377                  && { echo "$as_me:6377: gcj -C -d . conftestfail.java" >&5
6378                       gcj -C -d . conftestfail.java >&5 2>&1
6379                     } \
6380                  && test -f conftestfail.class \
6381                  && ! { echo "$as_me:6381: gcj -C -fsource=$source_version -d . conftestfail.java" >&5
6382                         gcj -C -fsource="$source_version" -d . conftestfail.java >&5 2>&1
6383                       }; then
6384                 CONF_JAVAC="gcj -C -fsource=$source_version"
6385                 HAVE_JAVAC_ENVVAR=1
6386                 HAVE_JAVACOMP=1
6387               else
6388                 CONF_JAVAC="gcj -C"
6389                 HAVE_JAVAC_ENVVAR=1
6390                 HAVE_JAVACOMP=1
6391               fi
6392             else
6393                             rm -f conftest.class
6394               rm -f conftestfail.class
6395               if { echo "$as_me:6395: gcj -C -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
6396                    gcj -C -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
6397                  } \
6398                  && test -f conftest.class \
6399                  && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6400                 CONF_JAVAC="gcj -C -fsource=$source_version -ftarget=$target_version"
6401                 HAVE_JAVAC_ENVVAR=1
6402                 HAVE_JAVACOMP=1
6403               fi
6404             fi
6405           else
6406                                                 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
6407               rm -f conftest.class
6408               if { echo "$as_me:6408: gcj -C -d . conftest.java" >&5
6409                    gcj -C -d . conftest.java >&5 2>&1
6410                  } \
6411                  && test -f conftest.class; then
6412                 CONF_JAVAC="gcj -C"
6413                 HAVE_GCJ_C=1
6414                 HAVE_JAVACOMP=1
6415               fi
6416             else
6417               if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
6418                                                 rm -f conftest.class
6419                 if { echo "$as_me:6419: gcj -C -fno-assert -d . conftest.java" >&5
6420                      gcj -C -fno-assert -d . conftest.java >&5 2>&1
6421                    } \
6422                    && test -f conftest.class; then
6423                   CONF_JAVAC="gcj -C -fno-assert"
6424                   HAVE_GCJ_C=1
6425                   HAVE_JAVACOMP=1
6426                 else
6427                   rm -f conftest.class
6428                   if { echo "$as_me:6428: gcj -C -d . conftest.java" >&5
6429                        gcj -C -d . conftest.java >&5 2>&1
6430                      } \
6431                      && test -f conftest.class; then
6432                     CONF_JAVAC="gcj -C"
6433                     HAVE_GCJ_C=1
6434                     HAVE_JAVACOMP=1
6435                   fi
6436                 fi
6437               fi
6438             fi
6439           fi
6440         fi
6441       fi
6442     fi
6443     if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JAVAC_IN_PATH"; then
6444             if { javac -version >/dev/null 2>/dev/null || test $? -le 2; } \
6445          && ( if javac -help 2>&1 >/dev/null | grep at.dms.kjc.Main >/dev/null && javac -help 2>/dev/null | grep 'released.*2000' >/dev/null ; then exit 1; else exit 0; fi ); then
6446                                 rm -f conftest.class
6447         if { echo "$as_me:6447: javac -d . conftest.java" >&5
6448              javac -d . conftest.java >&5 2>&1
6449            } \
6450            && test -f conftest.class \
6451            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6452                     rm -f conftest.class
6453           rm -f conftestfail.class
6454           if { echo "$as_me:6454: javac -source $source_version -d . conftest.java" >&5
6455                javac -source "$source_version" -d . conftest.java >&5 2>&1
6456              } \
6457              && test -f conftest.class \
6458              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6459              && { echo "$as_me:6459: javac -d . conftestfail.java" >&5
6460                   javac -d . conftestfail.java >&5 2>&1
6461                 } \
6462              && test -f conftestfail.class \
6463              && ! { echo "$as_me:6463: javac -source $source_version -d . conftestfail.java" >&5
6464                     javac -source "$source_version" -d . conftestfail.java >&5 2>&1
6465                   }; then
6466             CONF_JAVAC="javac -source $source_version"
6467             HAVE_JAVAC=1
6468             HAVE_JAVACOMP=1
6469           else
6470             CONF_JAVAC="javac"
6471             HAVE_JAVAC=1
6472             HAVE_JAVACOMP=1
6473           fi
6474         else
6475                               rm -f conftest.class
6476           if { echo "$as_me:6476: javac -target $target_version -d . conftest.java" >&5
6477                javac -target "$target_version" -d . conftest.java >&5 2>&1
6478              } \
6479              && test -f conftest.class \
6480              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6481                         rm -f conftest.class
6482             rm -f conftestfail.class
6483             if { echo "$as_me:6483: javac -target $target_version -source $source_version -d . conftest.java" >&5
6484                  javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
6485                } \
6486                && test -f conftest.class \
6487                && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6488                && { echo "$as_me:6488: javac -target $target_version -d . conftestfail.java" >&5
6489                     javac -target "$target_version" -d . conftestfail.java >&5 2>&1
6490                   } \
6491                && test -f conftestfail.class \
6492                && ! { echo "$as_me:6492: javac -target $target_version -source $source_version -d . conftestfail.java" >&5
6493                       javac -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
6494                     }; then
6495               CONF_JAVAC="javac -target $target_version -source $source_version"
6496               HAVE_JAVAC=1
6497               HAVE_JAVACOMP=1
6498             else
6499               CONF_JAVAC="javac -target $target_version"
6500               HAVE_JAVAC=1
6501               HAVE_JAVACOMP=1
6502             fi
6503           else
6504                                                 rm -f conftest.class
6505             if { echo "$as_me:6505: javac -target $target_version -source $source_version -d . conftest.java" >&5
6506                  javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
6507                } \
6508                && test -f conftest.class \
6509                && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6510               CONF_JAVAC="javac -target $target_version -source $source_version"
6511               HAVE_JAVAC=1
6512               HAVE_JAVACOMP=1
6513             fi
6514           fi
6515         fi
6516       fi
6517     fi
6518     if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JIKES_IN_PATH"; then
6519             if { jikes >/dev/null 2>/dev/null || test $? = 1; } \
6520          && (
6521               # See if the existing CLASSPATH is sufficient to make jikes work.
6522               unset JAVA_HOME
6523               jikes conftestlib.java >&5 2>&1
6524               error=$?
6525               rm -f conftestlib.class
6526               exit $error
6527             ); then
6528                                 if test "$source_version" = 1.3; then
6529           CONF_JAVAC="jikes"
6530           HAVE_JIKES=1
6531           HAVE_JAVACOMP=1
6532         fi
6533       fi
6534     fi
6535   fi
6536   rm -f conftest*.java conftest*.class
6537   if test -n "$HAVE_JAVACOMP"; then
6538     ac_result="$CONF_JAVAC"
6539   else
6540     ac_result="no"
6541   fi
6542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
6543 $as_echo "$ac_result" >&6; }
6544
6545
6546
6547
6548
6549
6550
6551
6552 # Extract the first word of "jar", so it can be a program name with args.
6553 set dummy jar; ac_word=$2
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6555 $as_echo_n "checking for $ac_word... " >&6; }
6556 if test "${ac_cv_prog_JAR+set}" = set; then :
6557   $as_echo_n "(cached) " >&6
6558 else
6559   if test -n "$JAR"; then
6560   ac_cv_prog_JAR="$JAR" # Let the user override the test.
6561 else
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 for as_dir in $PATH
6564 do
6565   IFS=$as_save_IFS
6566   test -z "$as_dir" && as_dir=.
6567     for ac_exec_ext in '' $ac_executable_extensions; do
6568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6569     ac_cv_prog_JAR="jar"
6570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6571     break 2
6572   fi
6573 done
6574   done
6575 IFS=$as_save_IFS
6576
6577 fi
6578 fi
6579 JAR=$ac_cv_prog_JAR
6580 if test -n "$JAR"; then
6581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
6582 $as_echo "$JAR" >&6; }
6583 else
6584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585 $as_echo "no" >&6; }
6586 fi
6587
6588
6589 if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then
6590   BUILDJAVA=yes
6591 else
6592   BUILDJAVA=no
6593 fi
6594
6595 if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then
6596   TESTJAVA=yes
6597 else
6598   TESTJAVA=no
6599 fi
6600
6601
6602
6603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred C# implementation" >&5
6604 $as_echo_n "checking for preferred C# implementation... " >&6; }
6605   # Check whether --enable-csharp was given.
6606 if test "${enable_csharp+set}" = set; then :
6607   enableval=$enable_csharp; CSHARP_CHOICE="$enableval"
6608 else
6609   CSHARP_CHOICE=any
6610 fi
6611
6612
6613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARP_CHOICE" >&5
6614 $as_echo "$CSHARP_CHOICE" >&6; }
6615   case "$CSHARP_CHOICE" in
6616     pnet)
6617
6618 $as_echo "#define CSHARP_CHOICE_PNET 1" >>confdefs.h
6619
6620       ;;
6621     mono)
6622
6623 $as_echo "#define CSHARP_CHOICE_MONO 1" >>confdefs.h
6624
6625       ;;
6626   esac
6627
6628
6629
6630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# compiler" >&5
6631 $as_echo_n "checking for C# compiler... " >&6; }
6632   HAVE_CSHARPCOMP=1
6633         # Extract the first word of "cscc", so it can be a program name with args.
6634 set dummy cscc; ac_word=$2
6635 :
6636 if test "${ac_cv_prog_HAVE_CSCC_IN_PATH+set}" = set; then :
6637   $as_echo_n "(cached) " >&6
6638 else
6639   if test -n "$HAVE_CSCC_IN_PATH"; then
6640   ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test.
6641 else
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 for as_dir in $PATH
6644 do
6645   IFS=$as_save_IFS
6646   test -z "$as_dir" && as_dir=.
6647     for ac_exec_ext in '' $ac_executable_extensions; do
6648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6649     ac_cv_prog_HAVE_CSCC_IN_PATH="yes"
6650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651     break 2
6652   fi
6653 done
6654   done
6655 IFS=$as_save_IFS
6656
6657 fi
6658 fi
6659 HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH
6660 if test -n "$HAVE_CSCC_IN_PATH"; then
6661   :
6662 else
6663   :
6664 fi
6665
6666
6667   # Extract the first word of "mcs", so it can be a program name with args.
6668 set dummy mcs; ac_word=$2
6669 :
6670 if test "${ac_cv_prog_HAVE_MCS_IN_PATH+set}" = set; then :
6671   $as_echo_n "(cached) " >&6
6672 else
6673   if test -n "$HAVE_MCS_IN_PATH"; then
6674   ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679   IFS=$as_save_IFS
6680   test -z "$as_dir" && as_dir=.
6681     for ac_exec_ext in '' $ac_executable_extensions; do
6682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683     ac_cv_prog_HAVE_MCS_IN_PATH="yes"
6684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685     break 2
6686   fi
6687 done
6688   done
6689 IFS=$as_save_IFS
6690
6691 fi
6692 fi
6693 HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH
6694 if test -n "$HAVE_MCS_IN_PATH"; then
6695   :
6696 else
6697   :
6698 fi
6699
6700
6701   # Extract the first word of "csc", so it can be a program name with args.
6702 set dummy csc; ac_word=$2
6703 :
6704 if test "${ac_cv_prog_HAVE_CSC_IN_PATH+set}" = set; then :
6705   $as_echo_n "(cached) " >&6
6706 else
6707   if test -n "$HAVE_CSC_IN_PATH"; then
6708   ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test.
6709 else
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6712 do
6713   IFS=$as_save_IFS
6714   test -z "$as_dir" && as_dir=.
6715     for ac_exec_ext in '' $ac_executable_extensions; do
6716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6717     ac_cv_prog_HAVE_CSC_IN_PATH="yes"
6718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719     break 2
6720   fi
6721 done
6722   done
6723 IFS=$as_save_IFS
6724
6725 fi
6726 fi
6727 HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH
6728 if test -n "$HAVE_CSC_IN_PATH"; then
6729   :
6730 else
6731   :
6732 fi
6733
6734
6735         for impl in "$CSHARP_CHOICE" pnet mono sscli no; do
6736     case "$impl" in
6737       pnet)
6738         if test -n "$HAVE_CSCC_IN_PATH" \
6739            && cscc --version >/dev/null 2>/dev/null \
6740            && (
6741              # See if pnetlib is well installed.
6742              echo 'class ConfTest { static void Main() { } }' > conftest.cs
6743              cscc -o conftest.exe conftest.cs 2>/dev/null
6744              error=$?
6745              rm -f conftest.cs conftest.exe
6746              exit $error
6747             ); then
6748           HAVE_CSCC=1
6749           ac_result="cscc"
6750           break
6751         fi
6752         ;;
6753       mono)
6754         if test -n "$HAVE_MCS_IN_PATH" \
6755            && mcs --version >/dev/null 2>/dev/null \
6756            && mcs --version 2>/dev/null | grep Mono >/dev/null; then
6757           HAVE_MCS=1
6758           ac_result="mcs"
6759           break
6760         fi
6761         ;;
6762       sscli)
6763         if test -n "$HAVE_CSC_IN_PATH" \
6764            && csc -help >/dev/null 2>/dev/null \
6765            && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then
6766           HAVE_CSC=1
6767           ac_result="csc"
6768           break
6769         fi
6770         ;;
6771       no)
6772         HAVE_CSHARPCOMP=
6773         ac_result="no"
6774         break
6775         ;;
6776     esac
6777   done
6778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
6779 $as_echo "$ac_result" >&6; }
6780
6781
6782
6783     if test -z "${CSHARPCOMPFLAGS+set}"; then
6784     CSHARPCOMPFLAGS="-O -g"
6785   fi
6786
6787
6788 if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then
6789   BUILDCSHARP=yes
6790 else
6791   BUILDCSHARP=no
6792 fi
6793
6794
6795
6796
6797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# program execution engine" >&5
6798 $as_echo_n "checking for C# program execution engine... " >&6; }
6799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h.  */
6801
6802 #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
6803   yes
6804 #endif
6805
6806 _ACEOF
6807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6808   $EGREP "yes" >/dev/null 2>&1; then :
6809   MONO_PATH_SEPARATOR=';'
6810 else
6811   MONO_PATH_SEPARATOR=':'
6812 fi
6813 rm -f conftest*
6814
6815   HAVE_CSHARPEXEC=1
6816         # Extract the first word of "ilrun", so it can be a program name with args.
6817 set dummy ilrun; ac_word=$2
6818 :
6819 if test "${ac_cv_prog_HAVE_ILRUN_IN_PATH+set}" = set; then :
6820   $as_echo_n "(cached) " >&6
6821 else
6822   if test -n "$HAVE_ILRUN_IN_PATH"; then
6823   ac_cv_prog_HAVE_ILRUN_IN_PATH="$HAVE_ILRUN_IN_PATH" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6827 do
6828   IFS=$as_save_IFS
6829   test -z "$as_dir" && as_dir=.
6830     for ac_exec_ext in '' $ac_executable_extensions; do
6831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832     ac_cv_prog_HAVE_ILRUN_IN_PATH="yes"
6833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834     break 2
6835   fi
6836 done
6837   done
6838 IFS=$as_save_IFS
6839
6840 fi
6841 fi
6842 HAVE_ILRUN_IN_PATH=$ac_cv_prog_HAVE_ILRUN_IN_PATH
6843 if test -n "$HAVE_ILRUN_IN_PATH"; then
6844   :
6845 else
6846   :
6847 fi
6848
6849
6850   # Extract the first word of "mono", so it can be a program name with args.
6851 set dummy mono; ac_word=$2
6852 :
6853 if test "${ac_cv_prog_HAVE_MONO_IN_PATH+set}" = set; then :
6854   $as_echo_n "(cached) " >&6
6855 else
6856   if test -n "$HAVE_MONO_IN_PATH"; then
6857   ac_cv_prog_HAVE_MONO_IN_PATH="$HAVE_MONO_IN_PATH" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862   IFS=$as_save_IFS
6863   test -z "$as_dir" && as_dir=.
6864     for ac_exec_ext in '' $ac_executable_extensions; do
6865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866     ac_cv_prog_HAVE_MONO_IN_PATH="yes"
6867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868     break 2
6869   fi
6870 done
6871   done
6872 IFS=$as_save_IFS
6873
6874 fi
6875 fi
6876 HAVE_MONO_IN_PATH=$ac_cv_prog_HAVE_MONO_IN_PATH
6877 if test -n "$HAVE_MONO_IN_PATH"; then
6878   :
6879 else
6880   :
6881 fi
6882
6883
6884   # Extract the first word of "clix", so it can be a program name with args.
6885 set dummy clix; ac_word=$2
6886 :
6887 if test "${ac_cv_prog_HAVE_CLIX_IN_PATH+set}" = set; then :
6888   $as_echo_n "(cached) " >&6
6889 else
6890   if test -n "$HAVE_CLIX_IN_PATH"; then
6891   ac_cv_prog_HAVE_CLIX_IN_PATH="$HAVE_CLIX_IN_PATH" # Let the user override the test.
6892 else
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896   IFS=$as_save_IFS
6897   test -z "$as_dir" && as_dir=.
6898     for ac_exec_ext in '' $ac_executable_extensions; do
6899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6900     ac_cv_prog_HAVE_CLIX_IN_PATH="yes"
6901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902     break 2
6903   fi
6904 done
6905   done
6906 IFS=$as_save_IFS
6907
6908 fi
6909 fi
6910 HAVE_CLIX_IN_PATH=$ac_cv_prog_HAVE_CLIX_IN_PATH
6911 if test -n "$HAVE_CLIX_IN_PATH"; then
6912   :
6913 else
6914   :
6915 fi
6916
6917
6918         for impl in "$CSHARP_CHOICE" pnet mono no; do
6919     case "$impl" in
6920       pnet)
6921         if test -n "$HAVE_ILRUN_IN_PATH" \
6922            && ilrun --version >/dev/null 2>/dev/null \
6923            && ilrun $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then
6924           HAVE_ILRUN=1
6925           ac_result="ilrun"
6926           break
6927         fi
6928         ;;
6929       mono)
6930         if test -n "$HAVE_MONO_IN_PATH" \
6931            && mono --version >/dev/null 2>/dev/null \
6932            && mono $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then
6933           HAVE_MONO=1
6934           ac_result="mono"
6935           break
6936         fi
6937         ;;
6938       sscli)
6939         if test -n "$HAVE_CLIX_IN_PATH" \
6940            && clix $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then
6941           HAVE_CLIX=1
6942           case $host_os in
6943             cygwin* | mingw* | pw32*)
6944               CLIX_PATH_VAR=PATH
6945               ;;
6946             darwin* | rhapsody*)
6947               CLIX_PATH_VAR=DYLD_LIBRARY_PATH
6948               ;;
6949             *)
6950               CLIX_PATH_VAR=LD_LIBRARY_PATH
6951               ;;
6952           esac
6953           eval CLIX_PATH=\"\$CLIX_PATH_VAR\"
6954           ac_result="clix"
6955           break
6956         fi
6957         ;;
6958       no)
6959         HAVE_CSHARPEXEC=
6960         ac_result="no"
6961         break
6962         ;;
6963     esac
6964   done
6965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
6966 $as_echo "$ac_result" >&6; }
6967
6968
6969
6970
6971
6972
6973
6974
6975 if test -n "$HAVE_CSHARPEXEC" && test $BUILDCSHARP = yes; then
6976   TESTCSHARP=yes
6977 else
6978   TESTCSHARP=no
6979 fi
6980
6981
6982 # Make sure we can run config.sub.
6983 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6984   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6985
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6987 $as_echo_n "checking build system type... " >&6; }
6988 if test "${ac_cv_build+set}" = set; then :
6989   $as_echo_n "(cached) " >&6
6990 else
6991   ac_build_alias=$build_alias
6992 test "x$ac_build_alias" = x &&
6993   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6994 test "x$ac_build_alias" = x &&
6995   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6996 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6997   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6998
6999 fi
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7001 $as_echo "$ac_cv_build" >&6; }
7002 case $ac_cv_build in
7003 *-*-*) ;;
7004 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
7005 esac
7006 build=$ac_cv_build
7007 ac_save_IFS=$IFS; IFS='-'
7008 set x $ac_cv_build
7009 shift
7010 build_cpu=$1
7011 build_vendor=$2
7012 shift; shift
7013 # Remember, the first character of IFS is used to create $*,
7014 # except with old shells:
7015 build_os=$*
7016 IFS=$ac_save_IFS
7017 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7018
7019
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7021 $as_echo_n "checking host system type... " >&6; }
7022 if test "${ac_cv_host+set}" = set; then :
7023   $as_echo_n "(cached) " >&6
7024 else
7025   if test "x$host_alias" = x; then
7026   ac_cv_host=$ac_cv_build
7027 else
7028   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7029     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7030 fi
7031
7032 fi
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7034 $as_echo "$ac_cv_host" >&6; }
7035 case $ac_cv_host in
7036 *-*-*) ;;
7037 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
7038 esac
7039 host=$ac_cv_host
7040 ac_save_IFS=$IFS; IFS='-'
7041 set x $ac_cv_host
7042 shift
7043 host_cpu=$1
7044 host_vendor=$2
7045 shift; shift
7046 # Remember, the first character of IFS is used to create $*,
7047 # except with old shells:
7048 host_os=$*
7049 IFS=$ac_save_IFS
7050 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7051
7052
7053
7054
7055
7056
7057 if test -n "$ac_tool_prefix"; then
7058   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7059 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 $as_echo_n "checking for $ac_word... " >&6; }
7062 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7063   $as_echo_n "(cached) " >&6
7064 else
7065   if test -n "$RANLIB"; then
7066   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7067 else
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071   IFS=$as_save_IFS
7072   test -z "$as_dir" && as_dir=.
7073     for ac_exec_ext in '' $ac_executable_extensions; do
7074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7075     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077     break 2
7078   fi
7079 done
7080   done
7081 IFS=$as_save_IFS
7082
7083 fi
7084 fi
7085 RANLIB=$ac_cv_prog_RANLIB
7086 if test -n "$RANLIB"; then
7087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7088 $as_echo "$RANLIB" >&6; }
7089 else
7090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7092 fi
7093
7094
7095 fi
7096 if test -z "$ac_cv_prog_RANLIB"; then
7097   ac_ct_RANLIB=$RANLIB
7098   # Extract the first word of "ranlib", so it can be a program name with args.
7099 set dummy ranlib; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7103   $as_echo_n "(cached) " >&6
7104 else
7105   if test -n "$ac_ct_RANLIB"; then
7106   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7107 else
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7110 do
7111   IFS=$as_save_IFS
7112   test -z "$as_dir" && as_dir=.
7113     for ac_exec_ext in '' $ac_executable_extensions; do
7114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7115     ac_cv_prog_ac_ct_RANLIB="ranlib"
7116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117     break 2
7118   fi
7119 done
7120   done
7121 IFS=$as_save_IFS
7122
7123 fi
7124 fi
7125 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7126 if test -n "$ac_ct_RANLIB"; then
7127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7128 $as_echo "$ac_ct_RANLIB" >&6; }
7129 else
7130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7132 fi
7133
7134   if test "x$ac_ct_RANLIB" = x; then
7135     RANLIB=":"
7136   else
7137     case $cross_compiling:$ac_tool_warned in
7138 yes:)
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7141 ac_tool_warned=yes ;;
7142 esac
7143     RANLIB=$ac_ct_RANLIB
7144   fi
7145 else
7146   RANLIB="$ac_cv_prog_RANLIB"
7147 fi
7148
7149 if test "x$CC" != xcc; then
7150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7151 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7152 else
7153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7154 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7155 fi
7156 set dummy $CC; ac_cc=`$as_echo "$2" |
7157                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7158 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
7159   $as_echo_n "(cached) " >&6
7160 else
7161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h.  */
7163
7164 int
7165 main ()
7166 {
7167
7168   ;
7169   return 0;
7170 }
7171 _ACEOF
7172 # Make sure it works both with $CC and with simple cc.
7173 # We do the test twice because some compilers refuse to overwrite an
7174 # existing .o file with -o, though they will create one.
7175 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7176 rm -f conftest2.*
7177 if { { case "(($ac_try" in
7178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7179   *) ac_try_echo=$ac_try;;
7180 esac
7181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7182 $as_echo "$ac_try_echo"; } >&5
7183   (eval "$ac_try") 2>&5
7184   ac_status=$?
7185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7186   test $ac_status = 0; } &&
7187    test -f conftest2.$ac_objext && { { case "(($ac_try" in
7188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7189   *) ac_try_echo=$ac_try;;
7190 esac
7191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7192 $as_echo "$ac_try_echo"; } >&5
7193   (eval "$ac_try") 2>&5
7194   ac_status=$?
7195   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7196   test $ac_status = 0; };
7197 then
7198   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7199   if test "x$CC" != xcc; then
7200     # Test first that cc exists at all.
7201     if { ac_try='cc -c conftest.$ac_ext >&5'
7202   { { case "(($ac_try" in
7203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7204   *) ac_try_echo=$ac_try;;
7205 esac
7206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7207 $as_echo "$ac_try_echo"; } >&5
7208   (eval "$ac_try") 2>&5
7209   ac_status=$?
7210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7211   test $ac_status = 0; }; }; then
7212       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7213       rm -f conftest2.*
7214       if { { case "(($ac_try" in
7215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216   *) ac_try_echo=$ac_try;;
7217 esac
7218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7219 $as_echo "$ac_try_echo"; } >&5
7220   (eval "$ac_try") 2>&5
7221   ac_status=$?
7222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7223   test $ac_status = 0; } &&
7224          test -f conftest2.$ac_objext && { { case "(($ac_try" in
7225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226   *) ac_try_echo=$ac_try;;
7227 esac
7228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7229 $as_echo "$ac_try_echo"; } >&5
7230   (eval "$ac_try") 2>&5
7231   ac_status=$?
7232   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7233   test $ac_status = 0; };
7234       then
7235         # cc works too.
7236         :
7237       else
7238         # cc exists but doesn't like -o.
7239         eval ac_cv_prog_cc_${ac_cc}_c_o=no
7240       fi
7241     fi
7242   fi
7243 else
7244   eval ac_cv_prog_cc_${ac_cc}_c_o=no
7245 fi
7246 rm -f core conftest*
7247
7248 fi
7249 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7251 $as_echo "yes" >&6; }
7252 else
7253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 $as_echo "no" >&6; }
7255
7256 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7257
7258 fi
7259
7260 # FIXME: we rely on the cache variable name because
7261 # there is no other way.
7262 set dummy $CC
7263 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7264 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7265 if test "$am_t" != yes; then
7266    # Losing compiler, so override with the script.
7267    # FIXME: It is wrong to rewrite CC.
7268    # But if we don't then we get into trouble of one sort or another.
7269    # A longer-term fix would be to have automake use am__CC in this case,
7270    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7271    CC="$am_aux_dir/compile $CC"
7272 fi
7273
7274
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7276 $as_echo_n "checking for ANSI C header files... " >&6; }
7277 if test "${ac_cv_header_stdc+set}" = set; then :
7278   $as_echo_n "(cached) " >&6
7279 else
7280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h.  */
7282 #include <stdlib.h>
7283 #include <stdarg.h>
7284 #include <string.h>
7285 #include <float.h>
7286
7287 int
7288 main ()
7289 {
7290
7291   ;
7292   return 0;
7293 }
7294 _ACEOF
7295 if ac_fn_c_try_compile "$LINENO"; then :
7296   ac_cv_header_stdc=yes
7297 else
7298   ac_cv_header_stdc=no
7299 fi
7300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7301
7302 if test $ac_cv_header_stdc = yes; then
7303   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h.  */
7306 #include <string.h>
7307
7308 _ACEOF
7309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7310   $EGREP "memchr" >/dev/null 2>&1; then :
7311
7312 else
7313   ac_cv_header_stdc=no
7314 fi
7315 rm -f conftest*
7316
7317 fi
7318
7319 if test $ac_cv_header_stdc = yes; then
7320   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h.  */
7323 #include <stdlib.h>
7324
7325 _ACEOF
7326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7327   $EGREP "free" >/dev/null 2>&1; then :
7328
7329 else
7330   ac_cv_header_stdc=no
7331 fi
7332 rm -f conftest*
7333
7334 fi
7335
7336 if test $ac_cv_header_stdc = yes; then
7337   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7338   if test "$cross_compiling" = yes; then :
7339   :
7340 else
7341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h.  */
7343 #include <ctype.h>
7344 #include <stdlib.h>
7345 #if ((' ' & 0x0FF) == 0x020)
7346 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7347 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7348 #else
7349 # define ISLOWER(c) \
7350                    (('a' <= (c) && (c) <= 'i') \
7351                      || ('j' <= (c) && (c) <= 'r') \
7352                      || ('s' <= (c) && (c) <= 'z'))
7353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7354 #endif
7355
7356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7357 int
7358 main ()
7359 {
7360   int i;
7361   for (i = 0; i < 256; i++)
7362     if (XOR (islower (i), ISLOWER (i))
7363         || toupper (i) != TOUPPER (i))
7364       return 2;
7365   return 0;
7366 }
7367 _ACEOF
7368 if ac_fn_c_try_run "$LINENO"; then :
7369
7370 else
7371   ac_cv_header_stdc=no
7372 fi
7373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7374   conftest.$ac_objext conftest.beam conftest.$ac_ext
7375 fi
7376
7377 fi
7378 fi
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7380 $as_echo "$ac_cv_header_stdc" >&6; }
7381 if test $ac_cv_header_stdc = yes; then
7382
7383 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7384
7385 fi
7386
7387 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7388 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7389                   inttypes.h stdint.h unistd.h
7390 do :
7391   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7392 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7393 "
7394 eval as_val=\$$as_ac_Header
7395    if test "x$as_val" = x""yes; then :
7396   cat >>confdefs.h <<_ACEOF
7397 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7398 _ACEOF
7399
7400 fi
7401
7402 done
7403
7404
7405
7406
7407
7408   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
7409 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7410   MINIX=yes
7411 else
7412   MINIX=
7413 fi
7414
7415
7416   if test "$MINIX" = yes; then
7417
7418 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
7419
7420
7421 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
7422
7423
7424 $as_echo "#define _MINIX 1" >>confdefs.h
7425
7426   fi
7427
7428         case "$host_os" in
7429     hpux*)
7430
7431 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7432
7433       ;;
7434   esac
7435
7436
7437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
7438 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
7439 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
7440   $as_echo_n "(cached) " >&6
7441 else
7442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h.  */
7444
7445 #         define __EXTENSIONS__ 1
7446           $ac_includes_default
7447 int
7448 main ()
7449 {
7450
7451   ;
7452   return 0;
7453 }
7454 _ACEOF
7455 if ac_fn_c_try_compile "$LINENO"; then :
7456   ac_cv_safe_to_define___extensions__=yes
7457 else
7458   ac_cv_safe_to_define___extensions__=no
7459 fi
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461 fi
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
7463 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7464   test $ac_cv_safe_to_define___extensions__ = yes &&
7465     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
7466
7467   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
7468
7469   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
7470
7471   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7472
7473   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
7474
7475
7476
7477
7478
7479
7480
7481
7482    case $ac_cv_prog_cc_stdc in #(
7483   no) :
7484     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7485   *) :
7486     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7487 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7488 if test "${ac_cv_prog_cc_c99+set}" = set; then :
7489   $as_echo_n "(cached) " >&6
7490 else
7491   ac_cv_prog_cc_c99=no
7492 ac_save_CC=$CC
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h.  */
7495 #include <stdarg.h>
7496 #include <stdbool.h>
7497 #include <stdlib.h>
7498 #include <wchar.h>
7499 #include <stdio.h>
7500
7501 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
7502 #define debug(...) fprintf (stderr, __VA_ARGS__)
7503 #define showlist(...) puts (#__VA_ARGS__)
7504 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7505 static void
7506 test_varargs_macros (void)
7507 {
7508   int x = 1234;
7509   int y = 5678;
7510   debug ("Flag");
7511   debug ("X = %d\n", x);
7512   showlist (The first, second, and third items.);
7513   report (x>y, "x is %d but y is %d", x, y);
7514 }
7515
7516 // Check long long types.
7517 #define BIG64 18446744073709551615ull
7518 #define BIG32 4294967295ul
7519 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7520 #if !BIG_OK
7521   your preprocessor is broken;
7522 #endif
7523 #if BIG_OK
7524 #else
7525   your preprocessor is broken;
7526 #endif
7527 static long long int bignum = -9223372036854775807LL;
7528 static unsigned long long int ubignum = BIG64;
7529
7530 struct incomplete_array
7531 {
7532   int datasize;
7533   double data[];
7534 };
7535
7536 struct named_init {
7537   int number;
7538   const wchar_t *name;
7539   double average;
7540 };
7541
7542 typedef const char *ccp;
7543
7544 static inline int
7545 test_restrict (ccp restrict text)
7546 {
7547   // See if C++-style comments work.
7548   // Iterate through items via the restricted pointer.
7549   // Also check for declarations in for loops.
7550   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7551     continue;
7552   return 0;
7553 }
7554
7555 // Check varargs and va_copy.
7556 static void
7557 test_varargs (const char *format, ...)
7558 {
7559   va_list args;
7560   va_start (args, format);
7561   va_list args_copy;
7562   va_copy (args_copy, args);
7563
7564   const char *str;
7565   int number;
7566   float fnumber;
7567
7568   while (*format)
7569     {
7570       switch (*format++)
7571         {
7572         case 's': // string
7573           str = va_arg (args_copy, const char *);
7574           break;
7575         case 'd': // int
7576           number = va_arg (args_copy, int);
7577           break;
7578         case 'f': // float
7579           fnumber = va_arg (args_copy, double);
7580           break;
7581         default:
7582           break;
7583         }
7584     }
7585   va_end (args_copy);
7586   va_end (args);
7587 }
7588
7589 int
7590 main ()
7591 {
7592
7593   // Check bool.
7594   _Bool success = false;
7595
7596   // Check restrict.
7597   if (test_restrict ("String literal") == 0)
7598     success = true;
7599   char *restrict newvar = "Another string";
7600
7601   // Check varargs.
7602   test_varargs ("s, d' f .", "string", 65, 34.234);
7603   test_varargs_macros ();
7604
7605   // Check flexible array members.
7606   struct incomplete_array *ia =
7607     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7608   ia->datasize = 10;
7609   for (int i = 0; i < ia->datasize; ++i)
7610     ia->data[i] = i * 1.234;
7611
7612   // Check named initializers.
7613   struct named_init ni = {
7614     .number = 34,
7615     .name = L"Test wide string",
7616     .average = 543.34343,
7617   };
7618
7619   ni.number = 58;
7620
7621   int dynamic_array[ni.number];
7622   dynamic_array[ni.number - 1] = 543;
7623
7624   // work around unused variable warnings
7625   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7626           || dynamic_array[ni.number - 1] != 543);
7627
7628   ;
7629   return 0;
7630 }
7631 _ACEOF
7632 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7633 do
7634   CC="$ac_save_CC $ac_arg"
7635   if ac_fn_c_try_compile "$LINENO"; then :
7636   ac_cv_prog_cc_c99=$ac_arg
7637 fi
7638 rm -f core conftest.err conftest.$ac_objext
7639   test "x$ac_cv_prog_cc_c99" != "xno" && break
7640 done
7641 rm -f conftest.$ac_ext
7642 CC=$ac_save_CC
7643
7644 fi
7645 # AC_CACHE_VAL
7646 case "x$ac_cv_prog_cc_c99" in
7647   x)
7648     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7649 $as_echo "none needed" >&6; } ;;
7650   xno)
7651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7652 $as_echo "unsupported" >&6; } ;;
7653   *)
7654     CC="$CC $ac_cv_prog_cc_c99"
7655     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7656 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7657 esac
7658 if test "x$ac_cv_prog_cc_c99" != xno; then :
7659   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7660 else
7661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7662 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7663 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7664   $as_echo_n "(cached) " >&6
7665 else
7666   ac_cv_prog_cc_c89=no
7667 ac_save_CC=$CC
7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h.  */
7670 #include <stdarg.h>
7671 #include <stdio.h>
7672 #include <sys/types.h>
7673 #include <sys/stat.h>
7674 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7675 struct buf { int x; };
7676 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7677 static char *e (p, i)
7678      char **p;
7679      int i;
7680 {
7681   return p[i];
7682 }
7683 static char *f (char * (*g) (char **, int), char **p, ...)
7684 {
7685   char *s;
7686   va_list v;
7687   va_start (v,p);
7688   s = g (p, va_arg (v,int));
7689   va_end (v);
7690   return s;
7691 }
7692
7693 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
7694    function prototypes and stuff, but not '\xHH' hex character constants.
7695    These don't provoke an error unfortunately, instead are silently treated
7696    as 'x'.  The following induces an error, until -std is added to get
7697    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
7698    array size at least.  It's necessary to write '\x00'==0 to get something
7699    that's true only with -std.  */
7700 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7701
7702 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7703    inside strings and character constants.  */
7704 #define FOO(x) 'x'
7705 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7706
7707 int test (int i, double x);
7708 struct s1 {int (*f) (int a);};
7709 struct s2 {int (*f) (double a);};
7710 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7711 int argc;
7712 char **argv;
7713 int
7714 main ()
7715 {
7716 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7717   ;
7718   return 0;
7719 }
7720 _ACEOF
7721 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7722         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7723 do
7724   CC="$ac_save_CC $ac_arg"
7725   if ac_fn_c_try_compile "$LINENO"; then :
7726   ac_cv_prog_cc_c89=$ac_arg
7727 fi
7728 rm -f core conftest.err conftest.$ac_objext
7729   test "x$ac_cv_prog_cc_c89" != "xno" && break
7730 done
7731 rm -f conftest.$ac_ext
7732 CC=$ac_save_CC
7733
7734 fi
7735 # AC_CACHE_VAL
7736 case "x$ac_cv_prog_cc_c89" in
7737   x)
7738     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7739 $as_echo "none needed" >&6; } ;;
7740   xno)
7741     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7742 $as_echo "unsupported" >&6; } ;;
7743   *)
7744     CC="$CC $ac_cv_prog_cc_c89"
7745     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7746 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7747 esac
7748 if test "x$ac_cv_prog_cc_c89" != xno; then :
7749   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7750 else
7751   ac_cv_prog_cc_stdc=no
7752 fi
7753
7754 fi
7755  ;;
7756 esac
7757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7758 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7759   if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7760   $as_echo_n "(cached) " >&6
7761 fi
7762
7763   case $ac_cv_prog_cc_stdc in #(
7764   no) :
7765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7766 $as_echo "unsupported" >&6; } ;; #(
7767   '') :
7768     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7769 $as_echo "none needed" >&6; } ;; #(
7770   *) :
7771     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7772 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7773 esac
7774
7775
7776
7777
7778
7779
7780   # Check whether --enable-threads was given.
7781 if test "${enable_threads+set}" = set; then :
7782   enableval=$enable_threads; gl_use_threads=$enableval
7783 else
7784   if test -n "$gl_use_threads_default"; then
7785        gl_use_threads="$gl_use_threads_default"
7786      else
7787        case "$host_os" in
7788                                                                osf*) gl_use_threads=no ;;
7789          cygwin*)
7790                case `uname -r` in
7791                  1.[0-5].*) gl_use_threads=no ;;
7792                  *)         gl_use_threads=yes ;;
7793                esac
7794                ;;
7795          *)    gl_use_threads=yes ;;
7796        esac
7797      fi
7798
7799 fi
7800
7801   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7802     # For using <pthread.h>:
7803     case "$host_os" in
7804       osf*)
7805         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7806         # groks <pthread.h>. cc also understands the flag -pthread, but
7807         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7808         # 2. putting a flag into CPPFLAGS that has an effect on the linker
7809         # causes the AC_TRY_LINK test below to succeed unexpectedly,
7810         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7811         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7812         ;;
7813     esac
7814     # Some systems optimize for single-threaded programs by default, and
7815     # need special flags to disable these optimizations. For example, the
7816     # definition of 'errno' in <errno.h>.
7817     case "$host_os" in
7818       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7819       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7820     esac
7821   fi
7822
7823
7824
7825
7826   # Code from module acl:
7827   # Code from module acl-tests:
7828   # Code from module alignof:
7829   # Code from module alignof-tests:
7830   # Code from module alloca-opt:
7831   # Code from module alloca-opt-tests:
7832   # Code from module areadlink:
7833   # Code from module areadlink-tests:
7834   # Code from module arg-nonnull:
7835   # Code from module argmatch:
7836   # Code from module argmatch-tests:
7837   # Code from module array-list:
7838   # Code from module array-list-tests:
7839   # Code from module atexit:
7840   # Code from module atexit-tests:
7841   # Code from module backupfile:
7842   # Code from module basename:
7843   # Code from module binary-io:
7844   # Code from module binary-io-tests:
7845   # Code from module bison-i18n:
7846   # Code from module byteswap:
7847   # Code from module byteswap-tests:
7848   # Code from module c++defs:
7849   # Code from module c-ctype:
7850   # Code from module c-ctype-tests:
7851   # Code from module c-strcase:
7852   # Code from module c-strcase-tests:
7853   # Code from module c-strcaseeq:
7854   # Code from module c-strcasestr:
7855   # Code from module c-strcasestr-tests:
7856   # Code from module c-strstr:
7857   # Code from module c-strstr-tests:
7858   # Code from module canonicalize-lgpl:
7859   # Code from module canonicalize-lgpl-tests:
7860   # Code from module classpath:
7861   # Code from module clean-temp:
7862   # Code from module cloexec:
7863   # Code from module cloexec-tests:
7864   # Code from module closeout:
7865   # Code from module concat-filename:
7866   # Code from module configmake:
7867   # Code from module copy-file:
7868   # Code from module copy-file-tests:
7869   # Code from module csharpcomp:
7870   # Code from module csharpcomp-script:
7871   # Code from module csharpexec:
7872   # Code from module csharpexec-script:
7873   # Code from module diffseq:
7874   # Code from module double-slash-root:
7875   # Code from module dup2:
7876   # Code from module dup2-tests:
7877   # Code from module environ:
7878   # Code from module environ-tests:
7879   # Code from module errno:
7880   # Code from module errno-tests:
7881   # Code from module error:
7882   # Code from module error-progname:
7883   # Code from module execute:
7884   # Code from module exitfail:
7885   # Code from module extensions:
7886
7887   # Code from module fatal-signal:
7888   # Code from module fcntl:
7889   # Code from module fcntl-h:
7890   # Code from module fcntl-h-tests:
7891   # Code from module fcntl-tests:
7892   # Code from module fd-ostream:
7893   # Code from module fd-safer-flag:
7894   # Code from module file-ostream:
7895   # Code from module filename:
7896   # Code from module findprog:
7897   # Code from module float:
7898   # Code from module fnmatch:
7899   # Code from module fnmatch-tests:
7900   # Code from module fopen:
7901   # Code from module fopen-tests:
7902   # Code from module fstrcmp:
7903   # Code from module fstrcmp-tests:
7904   # Code from module full-write:
7905   # Code from module fwriteerror:
7906   # Code from module gcd:
7907   # Code from module gcj:
7908   # Code from module getdelim:
7909   # Code from module getdelim-tests:
7910   # Code from module getdtablesize:
7911   # Code from module getdtablesize-tests:
7912   # Code from module getline:
7913   # Code from module getline-tests:
7914   # Code from module getopt-gnu:
7915   # Code from module getopt-posix:
7916   # Code from module getopt-posix-tests:
7917   # Code from module getpagesize:
7918   # Code from module gettext:
7919   # Code from module gettext-h:
7920   # Code from module gettext-tools-misc:
7921   # Code from module gettimeofday:
7922   # Code from module gettimeofday-tests:
7923   # Code from module gperf:
7924   # Code from module hash:
7925   # Code from module havelib:
7926   # Code from module html-ostream:
7927   # Code from module html-styled-ostream:
7928   # Code from module iconv:
7929   # Code from module iconv-h:
7930   # Code from module iconv-h-tests:
7931   # Code from module iconv-tests:
7932   # Code from module iconv_open:
7933   # Code from module ignore-value:
7934   # Code from module include_next:
7935   # Code from module inline:
7936   # Code from module intprops:
7937   # Code from module java:
7938   # Code from module javacomp:
7939   # Code from module javacomp-script:
7940   # Code from module javaexec:
7941   # Code from module javaexec-script:
7942   # Code from module javaversion:
7943   # Code from module libcroco:
7944   # Code from module libglib:
7945   # Code from module libunistring-optional:
7946   # Code from module libxml:
7947   # Code from module linkedhash-list:
7948   # Code from module linkedhash-list-tests:
7949   # Code from module list:
7950   # Code from module localcharset:
7951   # Code from module locale:
7952   # Code from module locale-tests:
7953   # Code from module localename:
7954   # Code from module localename-tests:
7955   # Code from module lock:
7956   # Code from module lock-tests:
7957   # Code from module lstat:
7958   # Code from module lstat-tests:
7959   # Code from module malloc-posix:
7960   # Code from module malloca:
7961   # Code from module malloca-tests:
7962   # Code from module mbchar:
7963   # Code from module mbiter:
7964   # Code from module mbrtowc:
7965   # Code from module mbrtowc-tests:
7966   # Code from module mbsinit:
7967   # Code from module mbsinit-tests:
7968   # Code from module mbslen:
7969   # Code from module mbsrtowcs:
7970   # Code from module mbsrtowcs-tests:
7971   # Code from module mbsstr:
7972   # Code from module mbsstr-tests:
7973   # Code from module mbswidth:
7974   # Code from module mbuiter:
7975   # Code from module memchr:
7976   # Code from module memchr-tests:
7977   # Code from module memmove:
7978   # Code from module memset:
7979   # Code from module minmax:
7980   # Code from module mkdtemp:
7981   # Code from module moo:
7982   # Code from module moo-tests:
7983   # Code from module multiarch:
7984   # Code from module no-c++:
7985   # Code from module obstack:
7986   # Code from module open:
7987   # Code from module open-tests:
7988   # Code from module openmp:
7989   # Code from module ostream:
7990   # Code from module pathmax:
7991   # Code from module pipe:
7992   # Code from module pipe-filter-ii:
7993   # Code from module pipe-filter-ii-tests:
7994   # Code from module pipe-tests:
7995   # Code from module pipe2:
7996   # Code from module pipe2-safer:
7997   # Code from module pipe2-tests:
7998   # Code from module posix_spawn-internal:
7999   # Code from module posix_spawn_file_actions_addclose:
8000   # Code from module posix_spawn_file_actions_adddup2:
8001   # Code from module posix_spawn_file_actions_addopen:
8002   # Code from module posix_spawn_file_actions_destroy:
8003   # Code from module posix_spawn_file_actions_init:
8004   # Code from module posix_spawnattr_destroy:
8005   # Code from module posix_spawnattr_init:
8006   # Code from module posix_spawnattr_setflags:
8007   # Code from module posix_spawnattr_setsigmask:
8008   # Code from module posix_spawnp:
8009   # Code from module posix_spawnp-tests:
8010   # Code from module progname:
8011   # Code from module propername:
8012   # Code from module putenv:
8013   # Code from module quote:
8014   # Code from module quotearg:
8015   # Code from module quotearg-simple:
8016   # Code from module quotearg-simple-tests:
8017   # Code from module rawmemchr:
8018   # Code from module rawmemchr-tests:
8019   # Code from module read-file:
8020   # Code from module read-file-tests:
8021   # Code from module readlink:
8022   # Code from module readlink-tests:
8023   # Code from module realloc-posix:
8024   # Code from module relocatable-prog:
8025   # Code from module relocatable-prog-wrapper:
8026   # Code from module relocatable-script:
8027   # Code from module rmdir:
8028   # Code from module rmdir-tests:
8029   # Code from module safe-read:
8030   # Code from module safe-write:
8031   # Code from module same-inode:
8032   # Code from module sched:
8033   # Code from module sched-tests:
8034   # Code from module setenv:
8035   # Code from module setenv-tests:
8036   # Code from module sh-quote:
8037   # Code from module sigaction:
8038   # Code from module sigaction-tests:
8039   # Code from module signal:
8040   # Code from module signal-tests:
8041   # Code from module sigpipe:
8042   # Code from module sigpipe-tests:
8043   # Code from module sigprocmask:
8044   # Code from module size_max:
8045   # Code from module snprintf:
8046   # Code from module snprintf-tests:
8047   # Code from module spawn:
8048   # Code from module spawn-tests:
8049   # Code from module ssize_t:
8050   # Code from module stat:
8051   # Code from module stat-tests:
8052   # Code from module stdarg:
8053
8054   # Code from module stdbool:
8055   # Code from module stdbool-tests:
8056   # Code from module stddef:
8057   # Code from module stddef-tests:
8058   # Code from module stdint:
8059   # Code from module stdint-tests:
8060   # Code from module stdio:
8061   # Code from module stdio-tests:
8062   # Code from module stdlib:
8063   # Code from module stdlib-tests:
8064   # Code from module stpcpy:
8065   # Code from module stpncpy:
8066   # Code from module strchrnul:
8067   # Code from module strchrnul-tests:
8068   # Code from module strcspn:
8069   # Code from module streq:
8070   # Code from module strerror:
8071   # Code from module strerror-tests:
8072   # Code from module striconv:
8073   # Code from module striconv-tests:
8074   # Code from module striconveh:
8075   # Code from module striconveh-tests:
8076   # Code from module striconveha:
8077   # Code from module striconveha-tests:
8078   # Code from module string:
8079   # Code from module string-tests:
8080   # Code from module strnlen:
8081   # Code from module strnlen1:
8082   # Code from module strpbrk:
8083   # Code from module strstr:
8084   # Code from module strstr-simple:
8085   # Code from module strstr-tests:
8086   # Code from module strtol:
8087   # Code from module strtoul:
8088   # Code from module styled-ostream:
8089   # Code from module symlink:
8090   # Code from module symlink-tests:
8091   # Code from module sys_select:
8092   # Code from module sys_select-tests:
8093   # Code from module sys_socket:
8094   # Code from module sys_socket-tests:
8095   # Code from module sys_stat:
8096   # Code from module sys_stat-tests:
8097   # Code from module sys_time:
8098   # Code from module sys_time-tests:
8099   # Code from module sys_wait:
8100   # Code from module sys_wait-tests:
8101   # Code from module tempname:
8102   # Code from module term-ostream:
8103   # Code from module term-ostream-tests:
8104   # Code from module term-styled-ostream:
8105   # Code from module terminfo:
8106   # Code from module terminfo-h:
8107   # Code from module thread:
8108   # Code from module threadlib:
8109
8110
8111
8112   # Code from module time:
8113   # Code from module time-tests:
8114   # Code from module tls:
8115   # Code from module tls-tests:
8116   # Code from module tmpdir:
8117   # Code from module trim:
8118   # Code from module uniconv/base:
8119   # Code from module uniconv/u8-conv-from-enc:
8120   # Code from module uniconv/u8-conv-from-enc-tests:
8121   # Code from module unilbrk/base:
8122   # Code from module unilbrk/tables:
8123   # Code from module unilbrk/u8-possible-linebreaks:
8124   # Code from module unilbrk/u8-possible-linebreaks-tests:
8125   # Code from module unilbrk/u8-width-linebreaks:
8126   # Code from module unilbrk/u8-width-linebreaks-tests:
8127   # Code from module unilbrk/ulc-common:
8128   # Code from module unilbrk/ulc-width-linebreaks:
8129   # Code from module unilbrk/ulc-width-linebreaks-tests:
8130   # Code from module uniname/base:
8131   # Code from module uniname/uniname:
8132   # Code from module uniname/uniname-tests:
8133   # Code from module unistd:
8134   # Code from module unistd-safer:
8135   # Code from module unistd-safer-tests:
8136   # Code from module unistd-tests:
8137   # Code from module unistr/base:
8138   # Code from module unistr/u16-mbtouc:
8139   # Code from module unistr/u16-mbtouc-tests:
8140   # Code from module unistr/u8-check:
8141   # Code from module unistr/u8-check-tests:
8142   # Code from module unistr/u8-cmp:
8143   # Code from module unistr/u8-cmp-tests:
8144   # Code from module unistr/u8-mblen:
8145   # Code from module unistr/u8-mblen-tests:
8146   # Code from module unistr/u8-mbtouc:
8147   # Code from module unistr/u8-mbtouc-tests:
8148   # Code from module unistr/u8-mbtouc-unsafe:
8149   # Code from module unistr/u8-mbtouc-unsafe-tests:
8150   # Code from module unistr/u8-mbtoucr:
8151   # Code from module unistr/u8-mbtoucr-tests:
8152   # Code from module unistr/u8-prev:
8153   # Code from module unistr/u8-prev-tests:
8154   # Code from module unistr/u8-strlen:
8155   # Code from module unistr/u8-strlen-tests:
8156   # Code from module unistr/u8-uctomb:
8157   # Code from module unistr/u8-uctomb-tests:
8158   # Code from module unitypes:
8159   # Code from module uniwidth/base:
8160   # Code from module uniwidth/width:
8161   # Code from module uniwidth/width-tests:
8162   # Code from module unlocked-io:
8163   # Code from module unsetenv:
8164   # Code from module unsetenv-tests:
8165   # Code from module unused-parameter:
8166   # Code from module vasnprintf:
8167   # Code from module vasnprintf-tests:
8168   # Code from module vasprintf:
8169   # Code from module vasprintf-tests:
8170   # Code from module verify:
8171   # Code from module verify-tests:
8172   # Code from module vsnprintf:
8173   # Code from module vsnprintf-tests:
8174   # Code from module wait-process:
8175   # Code from module warn-on-use:
8176   # Code from module wchar:
8177   # Code from module wchar-tests:
8178   # Code from module wctob:
8179   # Code from module wctype:
8180   # Code from module wctype-tests:
8181   # Code from module wcwidth:
8182   # Code from module wcwidth-tests:
8183   # Code from module write:
8184   # Code from module xalloc:
8185   # Code from module xalloc-die:
8186   # Code from module xalloc-die-tests:
8187   # Code from module xconcat-filename:
8188   # Code from module xerror:
8189   # Code from module xlist:
8190   # Code from module xmalloca:
8191   # Code from module xreadlink:
8192   # Code from module xsetenv:
8193   # Code from module xsize:
8194   # Code from module xstriconv:
8195   # Code from module xstriconveh:
8196   # Code from module xvasprintf:
8197   # Code from module xvasprintf-tests:
8198   # Code from module yield:
8199
8200
8201
8202   # Code from module btowc:
8203   # Code from module c++defs:
8204   # Code from module langinfo:
8205   # Code from module nl_langinfo:
8206   # Code from module regex:
8207   # Code from module warn-on-use:
8208   # Code from module wcrtomb:
8209
8210
8211
8212
8213   # Code from module alloca-opt:
8214   # Code from module arg-nonnull:
8215   # Code from module basename:
8216   # Code from module c++defs:
8217   # Code from module c-ctype:
8218   # Code from module c-strcase:
8219   # Code from module c-strcaseeq:
8220   # Code from module c-strstr:
8221   # Code from module concat-filename:
8222   # Code from module configmake:
8223   # Code from module diffseq:
8224   # Code from module errno:
8225   # Code from module error:
8226   # Code from module error-progname:
8227   # Code from module exitfail:
8228   # Code from module extensions:
8229
8230   # Code from module fcntl-h:
8231   # Code from module file-ostream:
8232   # Code from module filename:
8233   # Code from module float:
8234   # Code from module fopen:
8235   # Code from module fstrcmp:
8236   # Code from module fwriteerror:
8237   # Code from module gcd:
8238   # Code from module getdelim:
8239   # Code from module getline:
8240   # Code from module gettext-h:
8241   # Code from module gperf:
8242   # Code from module hash:
8243   # Code from module havelib:
8244   # Code from module iconv:
8245   # Code from module iconv-h:
8246   # Code from module iconv_open:
8247   # Code from module include_next:
8248   # Code from module inline:
8249   # Code from module intprops:
8250   # Code from module libunistring-optional:
8251   # Code from module localcharset:
8252   # Code from module lock:
8253   # Code from module malloc-posix:
8254   # Code from module malloca:
8255   # Code from module mbrtowc:
8256   # Code from module mbsinit:
8257   # Code from module mbswidth:
8258   # Code from module memchr:
8259   # Code from module minmax:
8260   # Code from module moo:
8261   # Code from module multiarch:
8262   # Code from module obstack:
8263   # Code from module open:
8264   # Code from module ostream:
8265   # Code from module progname:
8266   # Code from module realloc-posix:
8267   # Code from module relocatable-lib:
8268   # Code from module signal:
8269   # Code from module sigpipe:
8270   # Code from module sigprocmask:
8271   # Code from module size_max:
8272   # Code from module stat:
8273   # Code from module stdarg:
8274
8275   # Code from module stdbool:
8276   # Code from module stddef:
8277   # Code from module stdint:
8278   # Code from module stdio:
8279   # Code from module stdlib:
8280   # Code from module stpcpy:
8281   # Code from module streq:
8282   # Code from module strerror:
8283   # Code from module striconv:
8284   # Code from module striconveh:
8285   # Code from module striconveha:
8286   # Code from module string:
8287   # Code from module strstr:
8288   # Code from module strstr-simple:
8289   # Code from module sys_stat:
8290   # Code from module threadlib:
8291
8292
8293
8294   # Code from module time:
8295   # Code from module tls:
8296   # Code from module uniconv/base:
8297   # Code from module uniconv/u8-conv-from-enc:
8298   # Code from module unilbrk/base:
8299   # Code from module unilbrk/tables:
8300   # Code from module unilbrk/u8-possible-linebreaks:
8301   # Code from module unilbrk/u8-width-linebreaks:
8302   # Code from module unilbrk/ulc-common:
8303   # Code from module unilbrk/ulc-width-linebreaks:
8304   # Code from module unistd:
8305   # Code from module unistr/base:
8306   # Code from module unistr/u16-mbtouc:
8307   # Code from module unistr/u8-check:
8308   # Code from module unistr/u8-mblen:
8309   # Code from module unistr/u8-mbtouc:
8310   # Code from module unistr/u8-mbtouc-unsafe:
8311   # Code from module unistr/u8-mbtoucr:
8312   # Code from module unistr/u8-prev:
8313   # Code from module unistr/u8-uctomb:
8314   # Code from module unitypes:
8315   # Code from module uniwidth/base:
8316   # Code from module uniwidth/width:
8317   # Code from module unlocked-io:
8318   # Code from module unused-parameter:
8319   # Code from module vasnprintf:
8320   # Code from module vasprintf:
8321   # Code from module verify:
8322   # Code from module warn-on-use:
8323   # Code from module wchar:
8324   # Code from module wctype:
8325   # Code from module wcwidth:
8326   # Code from module xalloc:
8327   # Code from module xalloc-die:
8328   # Code from module xconcat-filename:
8329   # Code from module xerror:
8330   # Code from module xmalloca:
8331   # Code from module xsize:
8332   # Code from module xstriconv:
8333   # Code from module xvasprintf:
8334
8335
8336
8337
8338
8339   case "$host_os" in
8340     mingw* | cygwin*)
8341       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for auto-import of symbols" >&5
8342 $as_echo_n "checking for auto-import of symbols... " >&6; }
8343       if test "${gl_cv_ld_autoimport+set}" = set; then :
8344   $as_echo_n "(cached) " >&6
8345 else
8346
8347         gl_save_LDFLAGS="$LDFLAGS"
8348         LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
8349         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350 /* end confdefs.h.  */
8351
8352 int
8353 main ()
8354 {
8355
8356   ;
8357   return 0;
8358 }
8359 _ACEOF
8360 if ac_fn_c_try_link "$LINENO"; then :
8361   gl_cv_ld_autoimport=yes
8362 else
8363   gl_cv_ld_autoimport=no
8364 fi
8365 rm -f core conftest.err conftest.$ac_objext \
8366     conftest$ac_exeext conftest.$ac_ext
8367         LDFLAGS="$gl_save_LDFLAGS"
8368 fi
8369
8370       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_autoimport" >&5
8371 $as_echo "$gl_cv_ld_autoimport" >&6; }
8372       if test $gl_cv_ld_autoimport = yes; then
8373         LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
8374       fi
8375       ;;
8376   esac
8377
8378
8379 case `pwd` in
8380   *\ * | *\     *)
8381     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8382 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8383 esac
8384
8385
8386
8387 macro_version='2.2.6'
8388 macro_revision='1.3012'
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402 ltmain="$ac_aux_dir/ltmain.sh"
8403
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8405 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8406 if test "${ac_cv_path_SED+set}" = set; then :
8407   $as_echo_n "(cached) " >&6
8408 else
8409             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8410      for ac_i in 1 2 3 4 5 6 7; do
8411        ac_script="$ac_script$as_nl$ac_script"
8412      done
8413      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8414      { ac_script=; unset ac_script;}
8415      if test -z "$SED"; then
8416   ac_path_SED_found=false
8417   # Loop through the user's path and test for each of PROGNAME-LIST
8418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 for as_dir in $PATH
8420 do
8421   IFS=$as_save_IFS
8422   test -z "$as_dir" && as_dir=.
8423     for ac_prog in sed gsed; do
8424     for ac_exec_ext in '' $ac_executable_extensions; do
8425       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8426       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
8427 # Check for GNU ac_path_SED and select it if it is found.
8428   # Check for GNU $ac_path_SED
8429 case `"$ac_path_SED" --version 2>&1` in
8430 *GNU*)
8431   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8432 *)
8433   ac_count=0
8434   $as_echo_n 0123456789 >"conftest.in"
8435   while :
8436   do
8437     cat "conftest.in" "conftest.in" >"conftest.tmp"
8438     mv "conftest.tmp" "conftest.in"
8439     cp "conftest.in" "conftest.nl"
8440     $as_echo '' >> "conftest.nl"
8441     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8442     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8443     as_fn_arith $ac_count + 1 && ac_count=$as_val
8444     if test $ac_count -gt ${ac_path_SED_max-0}; then
8445       # Best one so far, save it but keep looking for a better one
8446       ac_cv_path_SED="$ac_path_SED"
8447       ac_path_SED_max=$ac_count
8448     fi
8449     # 10*(2^10) chars as input seems more than enough
8450     test $ac_count -gt 10 && break
8451   done
8452   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8453 esac
8454
8455       $ac_path_SED_found && break 3
8456     done
8457   done
8458   done
8459 IFS=$as_save_IFS
8460   if test -z "$ac_cv_path_SED"; then
8461     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
8462   fi
8463 else
8464   ac_cv_path_SED=$SED
8465 fi
8466
8467 fi
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8469 $as_echo "$ac_cv_path_SED" >&6; }
8470  SED="$ac_cv_path_SED"
8471   rm -f conftest.sed
8472
8473 test -z "$SED" && SED=sed
8474 Xsed="$SED -e 1s/^X//"
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8487 $as_echo_n "checking for fgrep... " >&6; }
8488 if test "${ac_cv_path_FGREP+set}" = set; then :
8489   $as_echo_n "(cached) " >&6
8490 else
8491   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8492    then ac_cv_path_FGREP="$GREP -F"
8493    else
8494      if test -z "$FGREP"; then
8495   ac_path_FGREP_found=false
8496   # Loop through the user's path and test for each of PROGNAME-LIST
8497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8499 do
8500   IFS=$as_save_IFS
8501   test -z "$as_dir" && as_dir=.
8502     for ac_prog in fgrep; do
8503     for ac_exec_ext in '' $ac_executable_extensions; do
8504       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8505       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
8506 # Check for GNU ac_path_FGREP and select it if it is found.
8507   # Check for GNU $ac_path_FGREP
8508 case `"$ac_path_FGREP" --version 2>&1` in
8509 *GNU*)
8510   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8511 *)
8512   ac_count=0
8513   $as_echo_n 0123456789 >"conftest.in"
8514   while :
8515   do
8516     cat "conftest.in" "conftest.in" >"conftest.tmp"
8517     mv "conftest.tmp" "conftest.in"
8518     cp "conftest.in" "conftest.nl"
8519     $as_echo 'FGREP' >> "conftest.nl"
8520     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8521     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8522     as_fn_arith $ac_count + 1 && ac_count=$as_val
8523     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8524       # Best one so far, save it but keep looking for a better one
8525       ac_cv_path_FGREP="$ac_path_FGREP"
8526       ac_path_FGREP_max=$ac_count
8527     fi
8528     # 10*(2^10) chars as input seems more than enough
8529     test $ac_count -gt 10 && break
8530   done
8531   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8532 esac
8533
8534       $ac_path_FGREP_found && break 3
8535     done
8536   done
8537   done
8538 IFS=$as_save_IFS
8539   if test -z "$ac_cv_path_FGREP"; then
8540     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8541   fi
8542 else
8543   ac_cv_path_FGREP=$FGREP
8544 fi
8545
8546    fi
8547 fi
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8549 $as_echo "$ac_cv_path_FGREP" >&6; }
8550  FGREP="$ac_cv_path_FGREP"
8551
8552
8553 test -z "$GREP" && GREP=grep
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573 # Check whether --with-gnu-ld was given.
8574 if test "${with_gnu_ld+set}" = set; then :
8575   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8576 else
8577   with_gnu_ld=no
8578 fi
8579
8580 ac_prog=ld
8581 if test "$GCC" = yes; then
8582   # Check if gcc -print-prog-name=ld gives a path.
8583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8584 $as_echo_n "checking for ld used by $CC... " >&6; }
8585   case $host in
8586   *-*-mingw*)
8587     # gcc leaves a trailing carriage return which upsets mingw
8588     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8589   *)
8590     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8591   esac
8592   case $ac_prog in
8593     # Accept absolute paths.
8594     [\\/]* | ?:[\\/]*)
8595       re_direlt='/[^/][^/]*/\.\./'
8596       # Canonicalize the pathname of ld
8597       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8598       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8599         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8600       done
8601       test -z "$LD" && LD="$ac_prog"
8602       ;;
8603   "")
8604     # If it fails, then pretend we aren't using GCC.
8605     ac_prog=ld
8606     ;;
8607   *)
8608     # If it is relative, then search for the first ld in PATH.
8609     with_gnu_ld=unknown
8610     ;;
8611   esac
8612 elif test "$with_gnu_ld" = yes; then
8613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8614 $as_echo_n "checking for GNU ld... " >&6; }
8615 else
8616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8617 $as_echo_n "checking for non-GNU ld... " >&6; }
8618 fi
8619 if test "${lt_cv_path_LD+set}" = set; then :
8620   $as_echo_n "(cached) " >&6
8621 else
8622   if test -z "$LD"; then
8623   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8624   for ac_dir in $PATH; do
8625     IFS="$lt_save_ifs"
8626     test -z "$ac_dir" && ac_dir=.
8627     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8628       lt_cv_path_LD="$ac_dir/$ac_prog"
8629       # Check to see if the program is GNU ld.  I'd rather use --version,
8630       # but apparently some variants of GNU ld only accept -v.
8631       # Break only if it was the GNU/non-GNU ld that we prefer.
8632       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8633       *GNU* | *'with BFD'*)
8634         test "$with_gnu_ld" != no && break
8635         ;;
8636       *)
8637         test "$with_gnu_ld" != yes && break
8638         ;;
8639       esac
8640     fi
8641   done
8642   IFS="$lt_save_ifs"
8643 else
8644   lt_cv_path_LD="$LD" # Let the user override the test with a path.
8645 fi
8646 fi
8647
8648 LD="$lt_cv_path_LD"
8649 if test -n "$LD"; then
8650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8651 $as_echo "$LD" >&6; }
8652 else
8653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654 $as_echo "no" >&6; }
8655 fi
8656 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8658 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8659 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
8660   $as_echo_n "(cached) " >&6
8661 else
8662   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8663 case `$LD -v 2>&1 </dev/null` in
8664 *GNU* | *'with BFD'*)
8665   lt_cv_prog_gnu_ld=yes
8666   ;;
8667 *)
8668   lt_cv_prog_gnu_ld=no
8669   ;;
8670 esac
8671 fi
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8673 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8674 with_gnu_ld=$lt_cv_prog_gnu_ld
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8685 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8686 if test "${lt_cv_path_NM+set}" = set; then :
8687   $as_echo_n "(cached) " >&6
8688 else
8689   if test -n "$NM"; then
8690   # Let the user override the test.
8691   lt_cv_path_NM="$NM"
8692 else
8693   lt_nm_to_check="${ac_tool_prefix}nm"
8694   if test -n "$ac_tool_prefix" \
8695      && { test "$build" = "$host" \
8696           || { test "$build_os" = cygwin && test "$host_os" = mingw32; }; \
8697         }; then
8698     lt_nm_to_check="$lt_nm_to_check nm"
8699   fi
8700   for lt_tmp_nm in $lt_nm_to_check; do
8701     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8702     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8703       IFS="$lt_save_ifs"
8704       test -z "$ac_dir" && ac_dir=.
8705       tmp_nm="$ac_dir/$lt_tmp_nm"
8706       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8707         # Check to see if the nm accepts a BSD-compat flag.
8708         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8709         #   nm: unknown option "B" ignored
8710         # Tru64's nm complains that /dev/null is an invalid object file
8711         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8712         */dev/null* | *'Invalid file or object type'*)
8713           lt_cv_path_NM="$tmp_nm -B"
8714           break
8715           ;;
8716         *)
8717           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8718           */dev/null*)
8719             lt_cv_path_NM="$tmp_nm -p"
8720             break
8721             ;;
8722           *)
8723             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8724             continue # so that we can try to find one that supports BSD flags
8725             ;;
8726           esac
8727           ;;
8728         esac
8729       fi
8730     done
8731     IFS="$lt_save_ifs"
8732   done
8733   : ${lt_cv_path_NM=no}
8734 fi
8735 fi
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8737 $as_echo "$lt_cv_path_NM" >&6; }
8738 if test "$lt_cv_path_NM" != "no"; then
8739   NM="$lt_cv_path_NM"
8740 else
8741   # Didn't find any BSD compatible name lister, look for dumpbin.
8742   if test -n "$DUMPBIN"; then :
8743     # Let the user override the test.
8744   else
8745     if test -n "$ac_tool_prefix"; then
8746   for ac_prog in dumpbin "link -dump"
8747   do
8748     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8749 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8751 $as_echo_n "checking for $ac_word... " >&6; }
8752 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
8753   $as_echo_n "(cached) " >&6
8754 else
8755   if test -n "$DUMPBIN"; then
8756   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8757 else
8758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8759 for as_dir in $PATH
8760 do
8761   IFS=$as_save_IFS
8762   test -z "$as_dir" && as_dir=.
8763     for ac_exec_ext in '' $ac_executable_extensions; do
8764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8765     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8767     break 2
8768   fi
8769 done
8770   done
8771 IFS=$as_save_IFS
8772
8773 fi
8774 fi
8775 DUMPBIN=$ac_cv_prog_DUMPBIN
8776 if test -n "$DUMPBIN"; then
8777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8778 $as_echo "$DUMPBIN" >&6; }
8779 else
8780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781 $as_echo "no" >&6; }
8782 fi
8783
8784
8785     test -n "$DUMPBIN" && break
8786   done
8787 fi
8788 if test -z "$DUMPBIN"; then
8789   ac_ct_DUMPBIN=$DUMPBIN
8790   for ac_prog in dumpbin "link -dump"
8791 do
8792   # Extract the first word of "$ac_prog", so it can be a program name with args.
8793 set dummy $ac_prog; ac_word=$2
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8795 $as_echo_n "checking for $ac_word... " >&6; }
8796 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
8797   $as_echo_n "(cached) " >&6
8798 else
8799   if test -n "$ac_ct_DUMPBIN"; then
8800   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8801 else
8802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803 for as_dir in $PATH
8804 do
8805   IFS=$as_save_IFS
8806   test -z "$as_dir" && as_dir=.
8807     for ac_exec_ext in '' $ac_executable_extensions; do
8808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8809     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8811     break 2
8812   fi
8813 done
8814   done
8815 IFS=$as_save_IFS
8816
8817 fi
8818 fi
8819 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8820 if test -n "$ac_ct_DUMPBIN"; then
8821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8822 $as_echo "$ac_ct_DUMPBIN" >&6; }
8823 else
8824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8825 $as_echo "no" >&6; }
8826 fi
8827
8828
8829   test -n "$ac_ct_DUMPBIN" && break
8830 done
8831
8832   if test "x$ac_ct_DUMPBIN" = x; then
8833     DUMPBIN=":"
8834   else
8835     case $cross_compiling:$ac_tool_warned in
8836 yes:)
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8839 ac_tool_warned=yes ;;
8840 esac
8841     DUMPBIN=$ac_ct_DUMPBIN
8842   fi
8843 fi
8844
8845     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8846     *COFF*)
8847       DUMPBIN="$DUMPBIN -symbols"
8848       ;;
8849     *)
8850       DUMPBIN=:
8851       ;;
8852     esac
8853   fi
8854
8855   if test "$DUMPBIN" != ":"; then
8856     NM="$DUMPBIN"
8857   fi
8858 fi
8859 test -z "$NM" && NM=nm
8860
8861
8862
8863
8864
8865
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8867 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8868 if test "${lt_cv_nm_interface+set}" = set; then :
8869   $as_echo_n "(cached) " >&6
8870 else
8871   lt_cv_nm_interface="BSD nm"
8872   echo "int some_variable = 0;" > conftest.$ac_ext
8873   (eval echo "\"\$as_me:8873: $ac_compile\"" >&5)
8874   (eval "$ac_compile" 2>conftest.err)
8875   cat conftest.err >&5
8876   (eval echo "\"\$as_me:8876: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8877   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8878   cat conftest.err >&5
8879   (eval echo "\"\$as_me:8879: output\"" >&5)
8880   cat conftest.out >&5
8881   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8882     lt_cv_nm_interface="MS dumpbin"
8883   fi
8884   rm -f conftest*
8885 fi
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8887 $as_echo "$lt_cv_nm_interface" >&6; }
8888
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8890 $as_echo_n "checking whether ln -s works... " >&6; }
8891 LN_S=$as_ln_s
8892 if test "$LN_S" = "ln -s"; then
8893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8894 $as_echo "yes" >&6; }
8895 else
8896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8897 $as_echo "no, using $LN_S" >&6; }
8898 fi
8899
8900 # find the maximum length of command line arguments
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8902 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8903 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
8904   $as_echo_n "(cached) " >&6
8905 else
8906     i=0
8907   teststring="ABCD"
8908
8909   case $build_os in
8910   msdosdjgpp*)
8911     # On DJGPP, this test can blow up pretty badly due to problems in libc
8912     # (any single argument exceeding 2000 bytes causes a buffer overrun
8913     # during glob expansion).  Even if it were fixed, the result of this
8914     # check would be larger than it should be.
8915     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8916     ;;
8917
8918   gnu*)
8919     # Under GNU Hurd, this test is not required because there is
8920     # no limit to the length of command line arguments.
8921     # Libtool will interpret -1 as no limit whatsoever
8922     lt_cv_sys_max_cmd_len=-1;
8923     ;;
8924
8925   cygwin* | mingw* | cegcc*)
8926     # On Win9x/ME, this test blows up -- it succeeds, but takes
8927     # about 5 minutes as the teststring grows exponentially.
8928     # Worse, since 9x/ME are not pre-emptively multitasking,
8929     # you end up with a "frozen" computer, even though with patience
8930     # the test eventually succeeds (with a max line length of 256k).
8931     # Instead, let's just punt: use the minimum linelength reported by
8932     # all of the supported platforms: 8192 (on NT/2K/XP).
8933     lt_cv_sys_max_cmd_len=8192;
8934     ;;
8935
8936   amigaos*)
8937     # On AmigaOS with pdksh, this test takes hours, literally.
8938     # So we just punt and use a minimum line length of 8192.
8939     lt_cv_sys_max_cmd_len=8192;
8940     ;;
8941
8942   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8943     # This has been around since 386BSD, at least.  Likely further.
8944     if test -x /sbin/sysctl; then
8945       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8946     elif test -x /usr/sbin/sysctl; then
8947       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8948     else
8949       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8950     fi
8951     # And add a safety zone
8952     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8953     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8954     ;;
8955
8956   interix*)
8957     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8958     lt_cv_sys_max_cmd_len=196608
8959     ;;
8960
8961   osf*)
8962     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8963     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8964     # nice to cause kernel panics so lets avoid the loop below.
8965     # First set a reasonable default.
8966     lt_cv_sys_max_cmd_len=16384
8967     #
8968     if test -x /sbin/sysconfig; then
8969       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8970         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8971       esac
8972     fi
8973     ;;
8974   sco3.2v5*)
8975     lt_cv_sys_max_cmd_len=102400
8976     ;;
8977   sysv5* | sco5v6* | sysv4.2uw2*)
8978     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8979     if test -n "$kargmax"; then
8980       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8981     else
8982       lt_cv_sys_max_cmd_len=32768
8983     fi
8984     ;;
8985   *)
8986     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8987     if test -n "$lt_cv_sys_max_cmd_len"; then
8988       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8989       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8990     else
8991       # Make teststring a little bigger before we do anything with it.
8992       # a 1K string should be a reasonable start.
8993       for i in 1 2 3 4 5 6 7 8 ; do
8994         teststring=$teststring$teststring
8995       done
8996       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8997       # If test is not a shell built-in, we'll probably end up computing a
8998       # maximum length that is only half of the actual maximum length, but
8999       # we can't tell.
9000       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9001                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
9002               test $i != 17 # 1/2 MB should be enough
9003       do
9004         i=`expr $i + 1`
9005         teststring=$teststring$teststring
9006       done
9007       # Only check the string length outside the loop.
9008       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9009       teststring=
9010       # Add a significant safety factor because C++ compilers can tack on
9011       # massive amounts of additional arguments before passing them to the
9012       # linker.  It appears as though 1/2 is a usable value.
9013       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9014     fi
9015     ;;
9016   esac
9017
9018 fi
9019
9020 if test -n $lt_cv_sys_max_cmd_len ; then
9021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9022 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9023 else
9024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9025 $as_echo "none" >&6; }
9026 fi
9027 max_cmd_len=$lt_cv_sys_max_cmd_len
9028
9029
9030
9031
9032
9033
9034 : ${CP="cp -f"}
9035 : ${MV="mv -f"}
9036 : ${RM="rm -f"}
9037
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9039 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9040 # Try some XSI features
9041 xsi_shell=no
9042 ( _lt_dummy="a/b/c"
9043   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9044       = c,a/b,, \
9045     && eval 'test $(( 1 + 1 )) -eq 2 \
9046     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9047   && xsi_shell=yes
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9049 $as_echo "$xsi_shell" >&6; }
9050
9051
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9053 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9054 lt_shell_append=no
9055 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9056     >/dev/null 2>&1 \
9057   && lt_shell_append=yes
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9059 $as_echo "$lt_shell_append" >&6; }
9060
9061
9062 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9063   lt_unset=unset
9064 else
9065   lt_unset=false
9066 fi
9067
9068
9069
9070
9071
9072 # test EBCDIC or ASCII
9073 case `echo X|tr X '\101'` in
9074  A) # ASCII based system
9075     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9076   lt_SP2NL='tr \040 \012'
9077   lt_NL2SP='tr \015\012 \040\040'
9078   ;;
9079  *) # EBCDIC based system
9080   lt_SP2NL='tr \100 \n'
9081   lt_NL2SP='tr \r\n \100\100'
9082   ;;
9083 esac
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9094 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9095 if test "${lt_cv_ld_reload_flag+set}" = set; then :
9096   $as_echo_n "(cached) " >&6
9097 else
9098   lt_cv_ld_reload_flag='-r'
9099 fi
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9101 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9102 reload_flag=$lt_cv_ld_reload_flag
9103 case $reload_flag in
9104 "" | " "*) ;;
9105 *) reload_flag=" $reload_flag" ;;
9106 esac
9107 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9108 case $host_os in
9109   darwin*)
9110     if test "$GCC" = yes; then
9111       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9112     else
9113       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9114     fi
9115     ;;
9116 esac
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126 if test -n "$ac_tool_prefix"; then
9127   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9128 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9130 $as_echo_n "checking for $ac_word... " >&6; }
9131 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9132   $as_echo_n "(cached) " >&6
9133 else
9134   if test -n "$OBJDUMP"; then
9135   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9136 else
9137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9138 for as_dir in $PATH
9139 do
9140   IFS=$as_save_IFS
9141   test -z "$as_dir" && as_dir=.
9142     for ac_exec_ext in '' $ac_executable_extensions; do
9143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9144     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9146     break 2
9147   fi
9148 done
9149   done
9150 IFS=$as_save_IFS
9151
9152 fi
9153 fi
9154 OBJDUMP=$ac_cv_prog_OBJDUMP
9155 if test -n "$OBJDUMP"; then
9156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9157 $as_echo "$OBJDUMP" >&6; }
9158 else
9159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160 $as_echo "no" >&6; }
9161 fi
9162
9163
9164 fi
9165 if test -z "$ac_cv_prog_OBJDUMP"; then
9166   ac_ct_OBJDUMP=$OBJDUMP
9167   # Extract the first word of "objdump", so it can be a program name with args.
9168 set dummy objdump; ac_word=$2
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9170 $as_echo_n "checking for $ac_word... " >&6; }
9171 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
9172   $as_echo_n "(cached) " >&6
9173 else
9174   if test -n "$ac_ct_OBJDUMP"; then
9175   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9176 else
9177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9178 for as_dir in $PATH
9179 do
9180   IFS=$as_save_IFS
9181   test -z "$as_dir" && as_dir=.
9182     for ac_exec_ext in '' $ac_executable_extensions; do
9183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9184     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9186     break 2
9187   fi
9188 done
9189   done
9190 IFS=$as_save_IFS
9191
9192 fi
9193 fi
9194 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9195 if test -n "$ac_ct_OBJDUMP"; then
9196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9197 $as_echo "$ac_ct_OBJDUMP" >&6; }
9198 else
9199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9200 $as_echo "no" >&6; }
9201 fi
9202
9203   if test "x$ac_ct_OBJDUMP" = x; then
9204     OBJDUMP="false"
9205   else
9206     case $cross_compiling:$ac_tool_warned in
9207 yes:)
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9210 ac_tool_warned=yes ;;
9211 esac
9212     OBJDUMP=$ac_ct_OBJDUMP
9213   fi
9214 else
9215   OBJDUMP="$ac_cv_prog_OBJDUMP"
9216 fi
9217
9218 test -z "$OBJDUMP" && OBJDUMP=objdump
9219
9220
9221
9222
9223
9224
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9226 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9227 if test "${lt_cv_deplibs_check_method+set}" = set; then :
9228   $as_echo_n "(cached) " >&6
9229 else
9230   lt_cv_file_magic_cmd='$MAGIC_CMD'
9231 lt_cv_file_magic_test_file=
9232 lt_cv_deplibs_check_method='unknown'
9233 # Need to set the preceding variable on all platforms that support
9234 # interlibrary dependencies.
9235 # 'none' -- dependencies not supported.
9236 # `unknown' -- same as none, but documents that we really don't know.
9237 # 'pass_all' -- all dependencies passed with no checks.
9238 # 'test_compile' -- check by making test program.
9239 # 'file_magic [[regex]]' -- check by looking for files in library path
9240 # which responds to the $file_magic_cmd with a given extended regex.
9241 # If you have `file' or equivalent on your system and you're not sure
9242 # whether `pass_all' will *always* work, you probably want this one.
9243
9244 case $host_os in
9245 aix[4-9]*)
9246   lt_cv_deplibs_check_method=pass_all
9247   ;;
9248
9249 beos*)
9250   lt_cv_deplibs_check_method=pass_all
9251   ;;
9252
9253 bsdi[45]*)
9254   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9255   lt_cv_file_magic_cmd='/usr/bin/file -L'
9256   lt_cv_file_magic_test_file=/shlib/libc.so
9257   ;;
9258
9259 cygwin*)
9260   # func_win32_libid is a shell function defined in ltmain.sh
9261   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9262   lt_cv_file_magic_cmd='func_win32_libid'
9263   ;;
9264
9265 mingw* | pw32*)
9266   # Base MSYS/MinGW do not provide the 'file' command needed by
9267   # func_win32_libid shell function, so use a weaker test based on 'objdump',
9268   # unless we find 'file', for example because we are cross-compiling.
9269   if ( file / ) >/dev/null 2>&1; then
9270     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9271     lt_cv_file_magic_cmd='func_win32_libid'
9272   else
9273     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9274     lt_cv_file_magic_cmd='$OBJDUMP -f'
9275   fi
9276   ;;
9277
9278 cegcc)
9279   # use the weaker test based on 'objdump'. See mingw*.
9280   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9281   lt_cv_file_magic_cmd='$OBJDUMP -f'
9282   ;;
9283
9284 darwin* | rhapsody*)
9285   lt_cv_deplibs_check_method=pass_all
9286   ;;
9287
9288 freebsd* | dragonfly*)
9289   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9290     case $host_cpu in
9291     i*86 )
9292       # Not sure whether the presence of OpenBSD here was a mistake.
9293       # Let's accept both of them until this is cleared up.
9294       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9295       lt_cv_file_magic_cmd=/usr/bin/file
9296       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9297       ;;
9298     esac
9299   else
9300     lt_cv_deplibs_check_method=pass_all
9301   fi
9302   ;;
9303
9304 gnu*)
9305   lt_cv_deplibs_check_method=pass_all
9306   ;;
9307
9308 hpux10.20* | hpux11*)
9309   lt_cv_file_magic_cmd=/usr/bin/file
9310   case $host_cpu in
9311   ia64*)
9312     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9313     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9314     ;;
9315   hppa*64*)
9316     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]'
9317     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9318     ;;
9319   *)
9320     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9321     lt_cv_file_magic_test_file=/usr/lib/libc.sl
9322     ;;
9323   esac
9324   ;;
9325
9326 interix[3-9]*)
9327   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9328   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9329   ;;
9330
9331 irix5* | irix6* | nonstopux*)
9332   case $LD in
9333   *-32|*"-32 ") libmagic=32-bit;;
9334   *-n32|*"-n32 ") libmagic=N32;;
9335   *-64|*"-64 ") libmagic=64-bit;;
9336   *) libmagic=never-match;;
9337   esac
9338   lt_cv_deplibs_check_method=pass_all
9339   ;;
9340
9341 # This must be Linux ELF.
9342 linux* | k*bsd*-gnu)
9343   lt_cv_deplibs_check_method=pass_all
9344   ;;
9345
9346 netbsd*)
9347   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9348     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9349   else
9350     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9351   fi
9352   ;;
9353
9354 newos6*)
9355   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9356   lt_cv_file_magic_cmd=/usr/bin/file
9357   lt_cv_file_magic_test_file=/usr/lib/libnls.so
9358   ;;
9359
9360 *nto* | *qnx*)
9361   lt_cv_deplibs_check_method=pass_all
9362   ;;
9363
9364 openbsd*)
9365   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9366     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9367   else
9368     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9369   fi
9370   ;;
9371
9372 osf3* | osf4* | osf5*)
9373   lt_cv_deplibs_check_method=pass_all
9374   ;;
9375
9376 rdos*)
9377   lt_cv_deplibs_check_method=pass_all
9378   ;;
9379
9380 solaris*)
9381   lt_cv_deplibs_check_method=pass_all
9382   ;;
9383
9384 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9385   lt_cv_deplibs_check_method=pass_all
9386   ;;
9387
9388 sysv4 | sysv4.3*)
9389   case $host_vendor in
9390   motorola)
9391     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]'
9392     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9393     ;;
9394   ncr)
9395     lt_cv_deplibs_check_method=pass_all
9396     ;;
9397   sequent)
9398     lt_cv_file_magic_cmd='/bin/file'
9399     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9400     ;;
9401   sni)
9402     lt_cv_file_magic_cmd='/bin/file'
9403     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9404     lt_cv_file_magic_test_file=/lib/libc.so
9405     ;;
9406   siemens)
9407     lt_cv_deplibs_check_method=pass_all
9408     ;;
9409   pc)
9410     lt_cv_deplibs_check_method=pass_all
9411     ;;
9412   esac
9413   ;;
9414
9415 tpf*)
9416   lt_cv_deplibs_check_method=pass_all
9417   ;;
9418 esac
9419
9420 fi
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9422 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9423 file_magic_cmd=$lt_cv_file_magic_cmd
9424 deplibs_check_method=$lt_cv_deplibs_check_method
9425 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438 if test -n "$ac_tool_prefix"; then
9439   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9440 set dummy ${ac_tool_prefix}ar; ac_word=$2
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9442 $as_echo_n "checking for $ac_word... " >&6; }
9443 if test "${ac_cv_prog_AR+set}" = set; then :
9444   $as_echo_n "(cached) " >&6
9445 else
9446   if test -n "$AR"; then
9447   ac_cv_prog_AR="$AR" # Let the user override the test.
9448 else
9449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9450 for as_dir in $PATH
9451 do
9452   IFS=$as_save_IFS
9453   test -z "$as_dir" && as_dir=.
9454     for ac_exec_ext in '' $ac_executable_extensions; do
9455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9456     ac_cv_prog_AR="${ac_tool_prefix}ar"
9457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9458     break 2
9459   fi
9460 done
9461   done
9462 IFS=$as_save_IFS
9463
9464 fi
9465 fi
9466 AR=$ac_cv_prog_AR
9467 if test -n "$AR"; then
9468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9469 $as_echo "$AR" >&6; }
9470 else
9471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9472 $as_echo "no" >&6; }
9473 fi
9474
9475
9476 fi
9477 if test -z "$ac_cv_prog_AR"; then
9478   ac_ct_AR=$AR
9479   # Extract the first word of "ar", so it can be a program name with args.
9480 set dummy ar; ac_word=$2
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9482 $as_echo_n "checking for $ac_word... " >&6; }
9483 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9484   $as_echo_n "(cached) " >&6
9485 else
9486   if test -n "$ac_ct_AR"; then
9487   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9488 else
9489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9490 for as_dir in $PATH
9491 do
9492   IFS=$as_save_IFS
9493   test -z "$as_dir" && as_dir=.
9494     for ac_exec_ext in '' $ac_executable_extensions; do
9495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9496     ac_cv_prog_ac_ct_AR="ar"
9497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9498     break 2
9499   fi
9500 done
9501   done
9502 IFS=$as_save_IFS
9503
9504 fi
9505 fi
9506 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9507 if test -n "$ac_ct_AR"; then
9508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9509 $as_echo "$ac_ct_AR" >&6; }
9510 else
9511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9512 $as_echo "no" >&6; }
9513 fi
9514
9515   if test "x$ac_ct_AR" = x; then
9516     AR="false"
9517   else
9518     case $cross_compiling:$ac_tool_warned in
9519 yes:)
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9522 ac_tool_warned=yes ;;
9523 esac
9524     AR=$ac_ct_AR
9525   fi
9526 else
9527   AR="$ac_cv_prog_AR"
9528 fi
9529
9530 test -z "$AR" && AR=ar
9531 test -z "$AR_FLAGS" && AR_FLAGS=cru
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543 if test -n "$ac_tool_prefix"; then
9544   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9545 set dummy ${ac_tool_prefix}strip; ac_word=$2
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9547 $as_echo_n "checking for $ac_word... " >&6; }
9548 if test "${ac_cv_prog_STRIP+set}" = set; then :
9549   $as_echo_n "(cached) " >&6
9550 else
9551   if test -n "$STRIP"; then
9552   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9553 else
9554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9555 for as_dir in $PATH
9556 do
9557   IFS=$as_save_IFS
9558   test -z "$as_dir" && as_dir=.
9559     for ac_exec_ext in '' $ac_executable_extensions; do
9560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9561     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9563     break 2
9564   fi
9565 done
9566   done
9567 IFS=$as_save_IFS
9568
9569 fi
9570 fi
9571 STRIP=$ac_cv_prog_STRIP
9572 if test -n "$STRIP"; then
9573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9574 $as_echo "$STRIP" >&6; }
9575 else
9576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9577 $as_echo "no" >&6; }
9578 fi
9579
9580
9581 fi
9582 if test -z "$ac_cv_prog_STRIP"; then
9583   ac_ct_STRIP=$STRIP
9584   # Extract the first word of "strip", so it can be a program name with args.
9585 set dummy strip; ac_word=$2
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9587 $as_echo_n "checking for $ac_word... " >&6; }
9588 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
9589   $as_echo_n "(cached) " >&6
9590 else
9591   if test -n "$ac_ct_STRIP"; then
9592   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9593 else
9594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9595 for as_dir in $PATH
9596 do
9597   IFS=$as_save_IFS
9598   test -z "$as_dir" && as_dir=.
9599     for ac_exec_ext in '' $ac_executable_extensions; do
9600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9601     ac_cv_prog_ac_ct_STRIP="strip"
9602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9603     break 2
9604   fi
9605 done
9606   done
9607 IFS=$as_save_IFS
9608
9609 fi
9610 fi
9611 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9612 if test -n "$ac_ct_STRIP"; then
9613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9614 $as_echo "$ac_ct_STRIP" >&6; }
9615 else
9616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9617 $as_echo "no" >&6; }
9618 fi
9619
9620   if test "x$ac_ct_STRIP" = x; then
9621     STRIP=":"
9622   else
9623     case $cross_compiling:$ac_tool_warned in
9624 yes:)
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9627 ac_tool_warned=yes ;;
9628 esac
9629     STRIP=$ac_ct_STRIP
9630   fi
9631 else
9632   STRIP="$ac_cv_prog_STRIP"
9633 fi
9634
9635 test -z "$STRIP" && STRIP=:
9636
9637
9638
9639
9640
9641
9642 if test -n "$ac_tool_prefix"; then
9643   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9644 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9646 $as_echo_n "checking for $ac_word... " >&6; }
9647 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9648   $as_echo_n "(cached) " >&6
9649 else
9650   if test -n "$RANLIB"; then
9651   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9652 else
9653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654 for as_dir in $PATH
9655 do
9656   IFS=$as_save_IFS
9657   test -z "$as_dir" && as_dir=.
9658     for ac_exec_ext in '' $ac_executable_extensions; do
9659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9660     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9662     break 2
9663   fi
9664 done
9665   done
9666 IFS=$as_save_IFS
9667
9668 fi
9669 fi
9670 RANLIB=$ac_cv_prog_RANLIB
9671 if test -n "$RANLIB"; then
9672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9673 $as_echo "$RANLIB" >&6; }
9674 else
9675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9676 $as_echo "no" >&6; }
9677 fi
9678
9679
9680 fi
9681 if test -z "$ac_cv_prog_RANLIB"; then
9682   ac_ct_RANLIB=$RANLIB
9683   # Extract the first word of "ranlib", so it can be a program name with args.
9684 set dummy ranlib; ac_word=$2
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9686 $as_echo_n "checking for $ac_word... " >&6; }
9687 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9688   $as_echo_n "(cached) " >&6
9689 else
9690   if test -n "$ac_ct_RANLIB"; then
9691   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9692 else
9693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9694 for as_dir in $PATH
9695 do
9696   IFS=$as_save_IFS
9697   test -z "$as_dir" && as_dir=.
9698     for ac_exec_ext in '' $ac_executable_extensions; do
9699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9700     ac_cv_prog_ac_ct_RANLIB="ranlib"
9701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9702     break 2
9703   fi
9704 done
9705   done
9706 IFS=$as_save_IFS
9707
9708 fi
9709 fi
9710 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9711 if test -n "$ac_ct_RANLIB"; then
9712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9713 $as_echo "$ac_ct_RANLIB" >&6; }
9714 else
9715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9716 $as_echo "no" >&6; }
9717 fi
9718
9719   if test "x$ac_ct_RANLIB" = x; then
9720     RANLIB=":"
9721   else
9722     case $cross_compiling:$ac_tool_warned in
9723 yes:)
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9726 ac_tool_warned=yes ;;
9727 esac
9728     RANLIB=$ac_ct_RANLIB
9729   fi
9730 else
9731   RANLIB="$ac_cv_prog_RANLIB"
9732 fi
9733
9734 test -z "$RANLIB" && RANLIB=:
9735
9736
9737
9738
9739
9740
9741 # Determine commands to create old-style static archives.
9742 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9743 old_postinstall_cmds='chmod 644 $oldlib'
9744 old_postuninstall_cmds=
9745
9746 if test -n "$RANLIB"; then
9747   case $host_os in
9748   openbsd*)
9749     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9750     ;;
9751   *)
9752     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9753     ;;
9754   esac
9755   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9756 fi
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791 # If no C compiler was specified, use CC.
9792 LTCC=${LTCC-"$CC"}
9793
9794 # If no C compiler flags were specified, use CFLAGS.
9795 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9796
9797 # Allow CC to be a program name with arguments.
9798 compiler=$CC
9799
9800
9801 # Check for command to grab the raw symbol name followed by C symbol from nm.
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9803 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9804 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
9805   $as_echo_n "(cached) " >&6
9806 else
9807
9808 # These are sane defaults that work on at least a few old systems.
9809 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9810
9811 # Character class describing NM global symbol codes.
9812 symcode='[BCDEGRST]'
9813
9814 # Regexp to match symbols that can be accessed directly from C.
9815 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9816
9817 # Define system-specific variables.
9818 case $host_os in
9819 aix*)
9820   symcode='[BCDT]'
9821   ;;
9822 cygwin* | mingw* | pw32* | cegcc*)
9823   symcode='[ABCDGISTW]'
9824   ;;
9825 hpux*)
9826   if test "$host_cpu" = ia64; then
9827     symcode='[ABCDEGRST]'
9828   fi
9829   ;;
9830 irix* | nonstopux*)
9831   symcode='[BCDEGRST]'
9832   ;;
9833 osf*)
9834   symcode='[BCDEGQRST]'
9835   ;;
9836 solaris*)
9837   symcode='[BDRT]'
9838   ;;
9839 sco3.2v5*)
9840   symcode='[DT]'
9841   ;;
9842 sysv4.2uw2*)
9843   symcode='[DT]'
9844   ;;
9845 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9846   symcode='[ABDT]'
9847   ;;
9848 sysv4)
9849   symcode='[DFNSTU]'
9850   ;;
9851 esac
9852
9853 # If we're using GNU nm, then use its standard symbol codes.
9854 case `$NM -V 2>&1` in
9855 *GNU* | *'with BFD'*)
9856   symcode='[ABCDGIRSTW]' ;;
9857 esac
9858
9859 # Transform an extracted symbol line into a proper C declaration.
9860 # Some systems (esp. on ia64) link data and code symbols differently,
9861 # so use this general approach.
9862 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9863
9864 # Transform an extracted symbol line into symbol name and symbol address
9865 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9866 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'"
9867
9868 # Handle CRLF in mingw tool chain
9869 opt_cr=
9870 case $build_os in
9871 mingw*)
9872   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9873   ;;
9874 esac
9875
9876 # Try without a prefix underscore, then with it.
9877 for ac_symprfx in "" "_"; do
9878
9879   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9880   symxfrm="\\1 $ac_symprfx\\2 \\2"
9881
9882   # Write the raw and C identifiers.
9883   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9884     # Fake it for dumpbin and say T for any non-static function
9885     # and D for any global variable.
9886     # Also find C++ and __fastcall symbols from MSVC++,
9887     # which start with @ or ?.
9888     lt_cv_sys_global_symbol_pipe="$AWK '"\
9889 "     {last_section=section; section=\$ 3};"\
9890 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9891 "     \$ 0!~/External *\|/{next};"\
9892 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9893 "     {if(hide[section]) next};"\
9894 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9895 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9896 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9897 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9898 "     ' prfx=^$ac_symprfx"
9899   else
9900     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9901   fi
9902
9903   # Check to see that the pipe works correctly.
9904   pipe_works=no
9905
9906   rm -f conftest*
9907   cat > conftest.$ac_ext <<_LT_EOF
9908 #ifdef __cplusplus
9909 extern "C" {
9910 #endif
9911 char nm_test_var;
9912 void nm_test_func(void);
9913 void nm_test_func(void){}
9914 #ifdef __cplusplus
9915 }
9916 #endif
9917 int main(){nm_test_var='a';nm_test_func();return(0);}
9918 _LT_EOF
9919
9920   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9921   (eval $ac_compile) 2>&5
9922   ac_status=$?
9923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9924   test $ac_status = 0; }; then
9925     # Now try to grab the symbols.
9926     nlist=conftest.nm
9927     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9928   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9929   ac_status=$?
9930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9931   test $ac_status = 0; } && test -s "$nlist"; then
9932       # Try sorting and uniquifying the output.
9933       if sort "$nlist" | uniq > "$nlist"T; then
9934         mv -f "$nlist"T "$nlist"
9935       else
9936         rm -f "$nlist"T
9937       fi
9938
9939       # Make sure that we snagged all the symbols we need.
9940       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9941         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9942           cat <<_LT_EOF > conftest.$ac_ext
9943 #ifdef __cplusplus
9944 extern "C" {
9945 #endif
9946
9947 _LT_EOF
9948           # Now generate the symbol file.
9949           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9950
9951           cat <<_LT_EOF >> conftest.$ac_ext
9952
9953 /* The mapping between symbol names and symbols.  */
9954 const struct {
9955   const char *name;
9956   void       *address;
9957 }
9958 lt__PROGRAM__LTX_preloaded_symbols[] =
9959 {
9960   { "@PROGRAM@", (void *) 0 },
9961 _LT_EOF
9962           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9963           cat <<\_LT_EOF >> conftest.$ac_ext
9964   {0, (void *) 0}
9965 };
9966
9967 /* This works around a problem in FreeBSD linker */
9968 #ifdef FREEBSD_WORKAROUND
9969 static const void *lt_preloaded_setup() {
9970   return lt__PROGRAM__LTX_preloaded_symbols;
9971 }
9972 #endif
9973
9974 #ifdef __cplusplus
9975 }
9976 #endif
9977 _LT_EOF
9978           # Now try linking the two files.
9979           mv conftest.$ac_objext conftstm.$ac_objext
9980           lt_save_LIBS="$LIBS"
9981           lt_save_CFLAGS="$CFLAGS"
9982           LIBS="conftstm.$ac_objext"
9983           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9984           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9985   (eval $ac_link) 2>&5
9986   ac_status=$?
9987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9988   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9989             pipe_works=yes
9990           fi
9991           LIBS="$lt_save_LIBS"
9992           CFLAGS="$lt_save_CFLAGS"
9993         else
9994           echo "cannot find nm_test_func in $nlist" >&5
9995         fi
9996       else
9997         echo "cannot find nm_test_var in $nlist" >&5
9998       fi
9999     else
10000       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10001     fi
10002   else
10003     echo "$progname: failed program was:" >&5
10004     cat conftest.$ac_ext >&5
10005   fi
10006   rm -rf conftest* conftst*
10007
10008   # Do not use the global_symbol_pipe unless it works.
10009   if test "$pipe_works" = yes; then
10010     break
10011   else
10012     lt_cv_sys_global_symbol_pipe=
10013   fi
10014 done
10015
10016 fi
10017
10018 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10019   lt_cv_sys_global_symbol_to_cdecl=
10020 fi
10021 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10023 $as_echo "failed" >&6; }
10024 else
10025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10026 $as_echo "ok" >&6; }
10027 fi
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050 # Check whether --enable-libtool-lock was given.
10051 if test "${enable_libtool_lock+set}" = set; then :
10052   enableval=$enable_libtool_lock;
10053 fi
10054
10055 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10056
10057 # Some flags need to be propagated to the compiler or linker for good
10058 # libtool support.
10059 case $host in
10060 ia64-*-hpux*)
10061   # Find out which ABI we are using.
10062   echo 'int i;' > conftest.$ac_ext
10063   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10064   (eval $ac_compile) 2>&5
10065   ac_status=$?
10066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10067   test $ac_status = 0; }; then
10068     case `/usr/bin/file conftest.$ac_objext` in
10069       *ELF-32*)
10070         HPUX_IA64_MODE="32"
10071         ;;
10072       *ELF-64*)
10073         HPUX_IA64_MODE="64"
10074         ;;
10075     esac
10076   fi
10077   rm -rf conftest*
10078   ;;
10079 *-*-irix6*)
10080   # Find out which ABI we are using.
10081   echo '#line 10081 "configure"' > conftest.$ac_ext
10082   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10083   (eval $ac_compile) 2>&5
10084   ac_status=$?
10085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10086   test $ac_status = 0; }; then
10087     if test "$lt_cv_prog_gnu_ld" = yes; then
10088       case `/usr/bin/file conftest.$ac_objext` in
10089         *32-bit*)
10090           LD="${LD-ld} -melf32bsmip"
10091           ;;
10092         *N32*)
10093           LD="${LD-ld} -melf32bmipn32"
10094           ;;
10095         *64-bit*)
10096           LD="${LD-ld} -melf64bmip"
10097         ;;
10098       esac
10099     else
10100       case `/usr/bin/file conftest.$ac_objext` in
10101         *32-bit*)
10102           LD="${LD-ld} -32"
10103           ;;
10104         *N32*)
10105           LD="${LD-ld} -n32"
10106           ;;
10107         *64-bit*)
10108           LD="${LD-ld} -64"
10109           ;;
10110       esac
10111     fi
10112   fi
10113   rm -rf conftest*
10114   ;;
10115
10116 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10117 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10118   # Find out which ABI we are using.
10119   echo 'int i;' > conftest.$ac_ext
10120   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10121   (eval $ac_compile) 2>&5
10122   ac_status=$?
10123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10124   test $ac_status = 0; }; then
10125     case `/usr/bin/file conftest.o` in
10126       *32-bit*)
10127         case $host in
10128           x86_64-*kfreebsd*-gnu)
10129             LD="${LD-ld} -m elf_i386_fbsd"
10130             ;;
10131           x86_64-*linux*)
10132             LD="${LD-ld} -m elf_i386"
10133             ;;
10134           ppc64-*linux*|powerpc64-*linux*)
10135             LD="${LD-ld} -m elf32ppclinux"
10136             ;;
10137           s390x-*linux*)
10138             LD="${LD-ld} -m elf_s390"
10139             ;;
10140           sparc64-*linux*)
10141             LD="${LD-ld} -m elf32_sparc"
10142             ;;
10143         esac
10144         ;;
10145       *64-bit*)
10146         case $host in
10147           x86_64-*kfreebsd*-gnu)
10148             LD="${LD-ld} -m elf_x86_64_fbsd"
10149             ;;
10150           x86_64-*linux*)
10151             LD="${LD-ld} -m elf_x86_64"
10152             ;;
10153           ppc*-*linux*|powerpc*-*linux*)
10154             LD="${LD-ld} -m elf64ppc"
10155             ;;
10156           s390*-*linux*|s390*-*tpf*)
10157             LD="${LD-ld} -m elf64_s390"
10158             ;;
10159           sparc*-*linux*)
10160             LD="${LD-ld} -m elf64_sparc"
10161             ;;
10162         esac
10163         ;;
10164     esac
10165   fi
10166   rm -rf conftest*
10167   ;;
10168
10169 *-*-sco3.2v5*)
10170   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10171   SAVE_CFLAGS="$CFLAGS"
10172   CFLAGS="$CFLAGS -belf"
10173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10174 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10175 if test "${lt_cv_cc_needs_belf+set}" = set; then :
10176   $as_echo_n "(cached) " >&6
10177 else
10178   ac_ext=c
10179 ac_cpp='$CPP $CPPFLAGS'
10180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10183
10184      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h.  */
10186
10187 int
10188 main ()
10189 {
10190
10191   ;
10192   return 0;
10193 }
10194 _ACEOF
10195 if ac_fn_c_try_link "$LINENO"; then :
10196   lt_cv_cc_needs_belf=yes
10197 else
10198   lt_cv_cc_needs_belf=no
10199 fi
10200 rm -f core conftest.err conftest.$ac_objext \
10201     conftest$ac_exeext conftest.$ac_ext
10202      ac_ext=c
10203 ac_cpp='$CPP $CPPFLAGS'
10204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10207
10208 fi
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10210 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10211   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10212     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10213     CFLAGS="$SAVE_CFLAGS"
10214   fi
10215   ;;
10216 sparc*-*solaris*)
10217   # Find out which ABI we are using.
10218   echo 'int i;' > conftest.$ac_ext
10219   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10220   (eval $ac_compile) 2>&5
10221   ac_status=$?
10222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10223   test $ac_status = 0; }; then
10224     case `/usr/bin/file conftest.o` in
10225     *64-bit*)
10226       case $lt_cv_prog_gnu_ld in
10227       yes*) LD="${LD-ld} -m elf64_sparc" ;;
10228       *)
10229         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10230           LD="${LD-ld} -64"
10231         fi
10232         ;;
10233       esac
10234       ;;
10235     esac
10236   fi
10237   rm -rf conftest*
10238   ;;
10239 esac
10240
10241 need_locks="$enable_libtool_lock"
10242
10243
10244   case $host_os in
10245     rhapsody* | darwin*)
10246     if test -n "$ac_tool_prefix"; then
10247   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10248 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10250 $as_echo_n "checking for $ac_word... " >&6; }
10251 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
10252   $as_echo_n "(cached) " >&6
10253 else
10254   if test -n "$DSYMUTIL"; then
10255   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10256 else
10257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258 for as_dir in $PATH
10259 do
10260   IFS=$as_save_IFS
10261   test -z "$as_dir" && as_dir=.
10262     for ac_exec_ext in '' $ac_executable_extensions; do
10263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10264     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10266     break 2
10267   fi
10268 done
10269   done
10270 IFS=$as_save_IFS
10271
10272 fi
10273 fi
10274 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10275 if test -n "$DSYMUTIL"; then
10276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10277 $as_echo "$DSYMUTIL" >&6; }
10278 else
10279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280 $as_echo "no" >&6; }
10281 fi
10282
10283
10284 fi
10285 if test -z "$ac_cv_prog_DSYMUTIL"; then
10286   ac_ct_DSYMUTIL=$DSYMUTIL
10287   # Extract the first word of "dsymutil", so it can be a program name with args.
10288 set dummy dsymutil; ac_word=$2
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10290 $as_echo_n "checking for $ac_word... " >&6; }
10291 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
10292   $as_echo_n "(cached) " >&6
10293 else
10294   if test -n "$ac_ct_DSYMUTIL"; then
10295   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10296 else
10297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10298 for as_dir in $PATH
10299 do
10300   IFS=$as_save_IFS
10301   test -z "$as_dir" && as_dir=.
10302     for ac_exec_ext in '' $ac_executable_extensions; do
10303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10304     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10306     break 2
10307   fi
10308 done
10309   done
10310 IFS=$as_save_IFS
10311
10312 fi
10313 fi
10314 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10315 if test -n "$ac_ct_DSYMUTIL"; then
10316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10317 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10318 else
10319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10320 $as_echo "no" >&6; }
10321 fi
10322
10323   if test "x$ac_ct_DSYMUTIL" = x; then
10324     DSYMUTIL=":"
10325   else
10326     case $cross_compiling:$ac_tool_warned in
10327 yes:)
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10330 ac_tool_warned=yes ;;
10331 esac
10332     DSYMUTIL=$ac_ct_DSYMUTIL
10333   fi
10334 else
10335   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10336 fi
10337
10338     if test -n "$ac_tool_prefix"; then
10339   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10340 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10342 $as_echo_n "checking for $ac_word... " >&6; }
10343 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
10344   $as_echo_n "(cached) " >&6
10345 else
10346   if test -n "$NMEDIT"; then
10347   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10348 else
10349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350 for as_dir in $PATH
10351 do
10352   IFS=$as_save_IFS
10353   test -z "$as_dir" && as_dir=.
10354     for ac_exec_ext in '' $ac_executable_extensions; do
10355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10356     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10358     break 2
10359   fi
10360 done
10361   done
10362 IFS=$as_save_IFS
10363
10364 fi
10365 fi
10366 NMEDIT=$ac_cv_prog_NMEDIT
10367 if test -n "$NMEDIT"; then
10368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10369 $as_echo "$NMEDIT" >&6; }
10370 else
10371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10372 $as_echo "no" >&6; }
10373 fi
10374
10375
10376 fi
10377 if test -z "$ac_cv_prog_NMEDIT"; then
10378   ac_ct_NMEDIT=$NMEDIT
10379   # Extract the first word of "nmedit", so it can be a program name with args.
10380 set dummy nmedit; ac_word=$2
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10382 $as_echo_n "checking for $ac_word... " >&6; }
10383 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
10384   $as_echo_n "(cached) " >&6
10385 else
10386   if test -n "$ac_ct_NMEDIT"; then
10387   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10388 else
10389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10390 for as_dir in $PATH
10391 do
10392   IFS=$as_save_IFS
10393   test -z "$as_dir" && as_dir=.
10394     for ac_exec_ext in '' $ac_executable_extensions; do
10395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10396     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10398     break 2
10399   fi
10400 done
10401   done
10402 IFS=$as_save_IFS
10403
10404 fi
10405 fi
10406 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10407 if test -n "$ac_ct_NMEDIT"; then
10408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10409 $as_echo "$ac_ct_NMEDIT" >&6; }
10410 else
10411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412 $as_echo "no" >&6; }
10413 fi
10414
10415   if test "x$ac_ct_NMEDIT" = x; then
10416     NMEDIT=":"
10417   else
10418     case $cross_compiling:$ac_tool_warned in
10419 yes:)
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10422 ac_tool_warned=yes ;;
10423 esac
10424     NMEDIT=$ac_ct_NMEDIT
10425   fi
10426 else
10427   NMEDIT="$ac_cv_prog_NMEDIT"
10428 fi
10429
10430     if test -n "$ac_tool_prefix"; then
10431   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10432 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10434 $as_echo_n "checking for $ac_word... " >&6; }
10435 if test "${ac_cv_prog_LIPO+set}" = set; then :
10436   $as_echo_n "(cached) " >&6
10437 else
10438   if test -n "$LIPO"; then
10439   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10440 else
10441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10442 for as_dir in $PATH
10443 do
10444   IFS=$as_save_IFS
10445   test -z "$as_dir" && as_dir=.
10446     for ac_exec_ext in '' $ac_executable_extensions; do
10447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10448     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10450     break 2
10451   fi
10452 done
10453   done
10454 IFS=$as_save_IFS
10455
10456 fi
10457 fi
10458 LIPO=$ac_cv_prog_LIPO
10459 if test -n "$LIPO"; then
10460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10461 $as_echo "$LIPO" >&6; }
10462 else
10463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10464 $as_echo "no" >&6; }
10465 fi
10466
10467
10468 fi
10469 if test -z "$ac_cv_prog_LIPO"; then
10470   ac_ct_LIPO=$LIPO
10471   # Extract the first word of "lipo", so it can be a program name with args.
10472 set dummy lipo; ac_word=$2
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10474 $as_echo_n "checking for $ac_word... " >&6; }
10475 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
10476   $as_echo_n "(cached) " >&6
10477 else
10478   if test -n "$ac_ct_LIPO"; then
10479   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10480 else
10481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10482 for as_dir in $PATH
10483 do
10484   IFS=$as_save_IFS
10485   test -z "$as_dir" && as_dir=.
10486     for ac_exec_ext in '' $ac_executable_extensions; do
10487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10488     ac_cv_prog_ac_ct_LIPO="lipo"
10489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10490     break 2
10491   fi
10492 done
10493   done
10494 IFS=$as_save_IFS
10495
10496 fi
10497 fi
10498 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10499 if test -n "$ac_ct_LIPO"; then
10500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10501 $as_echo "$ac_ct_LIPO" >&6; }
10502 else
10503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504 $as_echo "no" >&6; }
10505 fi
10506
10507   if test "x$ac_ct_LIPO" = x; then
10508     LIPO=":"
10509   else
10510     case $cross_compiling:$ac_tool_warned in
10511 yes:)
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10514 ac_tool_warned=yes ;;
10515 esac
10516     LIPO=$ac_ct_LIPO
10517   fi
10518 else
10519   LIPO="$ac_cv_prog_LIPO"
10520 fi
10521
10522     if test -n "$ac_tool_prefix"; then
10523   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10524 set dummy ${ac_tool_prefix}otool; ac_word=$2
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10526 $as_echo_n "checking for $ac_word... " >&6; }
10527 if test "${ac_cv_prog_OTOOL+set}" = set; then :
10528   $as_echo_n "(cached) " >&6
10529 else
10530   if test -n "$OTOOL"; then
10531   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10532 else
10533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10534 for as_dir in $PATH
10535 do
10536   IFS=$as_save_IFS
10537   test -z "$as_dir" && as_dir=.
10538     for ac_exec_ext in '' $ac_executable_extensions; do
10539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10540     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10542     break 2
10543   fi
10544 done
10545   done
10546 IFS=$as_save_IFS
10547
10548 fi
10549 fi
10550 OTOOL=$ac_cv_prog_OTOOL
10551 if test -n "$OTOOL"; then
10552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10553 $as_echo "$OTOOL" >&6; }
10554 else
10555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10556 $as_echo "no" >&6; }
10557 fi
10558
10559
10560 fi
10561 if test -z "$ac_cv_prog_OTOOL"; then
10562   ac_ct_OTOOL=$OTOOL
10563   # Extract the first word of "otool", so it can be a program name with args.
10564 set dummy otool; ac_word=$2
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10566 $as_echo_n "checking for $ac_word... " >&6; }
10567 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
10568   $as_echo_n "(cached) " >&6
10569 else
10570   if test -n "$ac_ct_OTOOL"; then
10571   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10572 else
10573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10574 for as_dir in $PATH
10575 do
10576   IFS=$as_save_IFS
10577   test -z "$as_dir" && as_dir=.
10578     for ac_exec_ext in '' $ac_executable_extensions; do
10579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10580     ac_cv_prog_ac_ct_OTOOL="otool"
10581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10582     break 2
10583   fi
10584 done
10585   done
10586 IFS=$as_save_IFS
10587
10588 fi
10589 fi
10590 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10591 if test -n "$ac_ct_OTOOL"; then
10592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10593 $as_echo "$ac_ct_OTOOL" >&6; }
10594 else
10595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596 $as_echo "no" >&6; }
10597 fi
10598
10599   if test "x$ac_ct_OTOOL" = x; then
10600     OTOOL=":"
10601   else
10602     case $cross_compiling:$ac_tool_warned in
10603 yes:)
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10606 ac_tool_warned=yes ;;
10607 esac
10608     OTOOL=$ac_ct_OTOOL
10609   fi
10610 else
10611   OTOOL="$ac_cv_prog_OTOOL"
10612 fi
10613
10614     if test -n "$ac_tool_prefix"; then
10615   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10616 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10618 $as_echo_n "checking for $ac_word... " >&6; }
10619 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
10620   $as_echo_n "(cached) " >&6
10621 else
10622   if test -n "$OTOOL64"; then
10623   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10624 else
10625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10626 for as_dir in $PATH
10627 do
10628   IFS=$as_save_IFS
10629   test -z "$as_dir" && as_dir=.
10630     for ac_exec_ext in '' $ac_executable_extensions; do
10631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10632     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10634     break 2
10635   fi
10636 done
10637   done
10638 IFS=$as_save_IFS
10639
10640 fi
10641 fi
10642 OTOOL64=$ac_cv_prog_OTOOL64
10643 if test -n "$OTOOL64"; then
10644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10645 $as_echo "$OTOOL64" >&6; }
10646 else
10647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10648 $as_echo "no" >&6; }
10649 fi
10650
10651
10652 fi
10653 if test -z "$ac_cv_prog_OTOOL64"; then
10654   ac_ct_OTOOL64=$OTOOL64
10655   # Extract the first word of "otool64", so it can be a program name with args.
10656 set dummy otool64; ac_word=$2
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10658 $as_echo_n "checking for $ac_word... " >&6; }
10659 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
10660   $as_echo_n "(cached) " >&6
10661 else
10662   if test -n "$ac_ct_OTOOL64"; then
10663   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10664 else
10665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10666 for as_dir in $PATH
10667 do
10668   IFS=$as_save_IFS
10669   test -z "$as_dir" && as_dir=.
10670     for ac_exec_ext in '' $ac_executable_extensions; do
10671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10672     ac_cv_prog_ac_ct_OTOOL64="otool64"
10673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10674     break 2
10675   fi
10676 done
10677   done
10678 IFS=$as_save_IFS
10679
10680 fi
10681 fi
10682 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10683 if test -n "$ac_ct_OTOOL64"; then
10684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10685 $as_echo "$ac_ct_OTOOL64" >&6; }
10686 else
10687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10688 $as_echo "no" >&6; }
10689 fi
10690
10691   if test "x$ac_ct_OTOOL64" = x; then
10692     OTOOL64=":"
10693   else
10694     case $cross_compiling:$ac_tool_warned in
10695 yes:)
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10698 ac_tool_warned=yes ;;
10699 esac
10700     OTOOL64=$ac_ct_OTOOL64
10701   fi
10702 else
10703   OTOOL64="$ac_cv_prog_OTOOL64"
10704 fi
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10733 $as_echo_n "checking for -single_module linker flag... " >&6; }
10734 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
10735   $as_echo_n "(cached) " >&6
10736 else
10737   lt_cv_apple_cc_single_mod=no
10738       if test -z "${LT_MULTI_MODULE}"; then
10739         # By default we will add the -single_module flag. You can override
10740         # by either setting the environment variable LT_MULTI_MODULE
10741         # non-empty at configure time, or by adding -multi_module to the
10742         # link flags.
10743         rm -rf libconftest.dylib*
10744         echo "int foo(void){return 1;}" > conftest.c
10745         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10746 -dynamiclib -Wl,-single_module conftest.c" >&5
10747         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10748           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10749         _lt_result=$?
10750         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10751           lt_cv_apple_cc_single_mod=yes
10752         else
10753           cat conftest.err >&5
10754         fi
10755         rm -rf libconftest.dylib*
10756         rm -f conftest.*
10757       fi
10758 fi
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10760 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10762 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10763 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
10764   $as_echo_n "(cached) " >&6
10765 else
10766   lt_cv_ld_exported_symbols_list=no
10767       save_LDFLAGS=$LDFLAGS
10768       echo "_main" > conftest.sym
10769       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10770       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h.  */
10772
10773 int
10774 main ()
10775 {
10776
10777   ;
10778   return 0;
10779 }
10780 _ACEOF
10781 if ac_fn_c_try_link "$LINENO"; then :
10782   lt_cv_ld_exported_symbols_list=yes
10783 else
10784   lt_cv_ld_exported_symbols_list=no
10785 fi
10786 rm -f core conftest.err conftest.$ac_objext \
10787     conftest$ac_exeext conftest.$ac_ext
10788         LDFLAGS="$save_LDFLAGS"
10789
10790 fi
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10792 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10793     case $host_os in
10794     rhapsody* | darwin1.[012])
10795       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10796     darwin1.*)
10797       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10798     darwin*) # darwin 5.x on
10799       # if running on 10.5 or later, the deployment target defaults
10800       # to the OS version, if on x86, and 10.4, the deployment
10801       # target defaults to 10.4. Don't you love it?
10802       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10803         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10804           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10805         10.[012]*)
10806           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10807         10.*)
10808           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10809       esac
10810     ;;
10811   esac
10812     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10813       _lt_dar_single_mod='$single_module'
10814     fi
10815     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10816       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10817     else
10818       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10819     fi
10820     if test "$DSYMUTIL" != ":"; then
10821       _lt_dsymutil='~$DSYMUTIL $lib || :'
10822     else
10823       _lt_dsymutil=
10824     fi
10825     ;;
10826   esac
10827
10828 for ac_header in dlfcn.h
10829 do :
10830   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10831 "
10832 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10833   cat >>confdefs.h <<_ACEOF
10834 #define HAVE_DLFCN_H 1
10835 _ACEOF
10836
10837 fi
10838
10839 done
10840
10841
10842
10843 # Set options
10844 enable_win32_dll=yes
10845
10846 case $host in
10847 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
10848   if test -n "$ac_tool_prefix"; then
10849   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10850 set dummy ${ac_tool_prefix}as; ac_word=$2
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10852 $as_echo_n "checking for $ac_word... " >&6; }
10853 if test "${ac_cv_prog_AS+set}" = set; then :
10854   $as_echo_n "(cached) " >&6
10855 else
10856   if test -n "$AS"; then
10857   ac_cv_prog_AS="$AS" # Let the user override the test.
10858 else
10859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in $PATH
10861 do
10862   IFS=$as_save_IFS
10863   test -z "$as_dir" && as_dir=.
10864     for ac_exec_ext in '' $ac_executable_extensions; do
10865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10866     ac_cv_prog_AS="${ac_tool_prefix}as"
10867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10868     break 2
10869   fi
10870 done
10871   done
10872 IFS=$as_save_IFS
10873
10874 fi
10875 fi
10876 AS=$ac_cv_prog_AS
10877 if test -n "$AS"; then
10878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10879 $as_echo "$AS" >&6; }
10880 else
10881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882 $as_echo "no" >&6; }
10883 fi
10884
10885
10886 fi
10887 if test -z "$ac_cv_prog_AS"; then
10888   ac_ct_AS=$AS
10889   # Extract the first word of "as", so it can be a program name with args.
10890 set dummy as; ac_word=$2
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10892 $as_echo_n "checking for $ac_word... " >&6; }
10893 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
10894   $as_echo_n "(cached) " >&6
10895 else
10896   if test -n "$ac_ct_AS"; then
10897   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10898 else
10899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10900 for as_dir in $PATH
10901 do
10902   IFS=$as_save_IFS
10903   test -z "$as_dir" && as_dir=.
10904     for ac_exec_ext in '' $ac_executable_extensions; do
10905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10906     ac_cv_prog_ac_ct_AS="as"
10907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10908     break 2
10909   fi
10910 done
10911   done
10912 IFS=$as_save_IFS
10913
10914 fi
10915 fi
10916 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10917 if test -n "$ac_ct_AS"; then
10918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10919 $as_echo "$ac_ct_AS" >&6; }
10920 else
10921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10922 $as_echo "no" >&6; }
10923 fi
10924
10925   if test "x$ac_ct_AS" = x; then
10926     AS="false"
10927   else
10928     case $cross_compiling:$ac_tool_warned in
10929 yes:)
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10932 ac_tool_warned=yes ;;
10933 esac
10934     AS=$ac_ct_AS
10935   fi
10936 else
10937   AS="$ac_cv_prog_AS"
10938 fi
10939
10940   if test -n "$ac_tool_prefix"; then
10941   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10942 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10944 $as_echo_n "checking for $ac_word... " >&6; }
10945 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
10946   $as_echo_n "(cached) " >&6
10947 else
10948   if test -n "$DLLTOOL"; then
10949   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10950 else
10951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10952 for as_dir in $PATH
10953 do
10954   IFS=$as_save_IFS
10955   test -z "$as_dir" && as_dir=.
10956     for ac_exec_ext in '' $ac_executable_extensions; do
10957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10958     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10960     break 2
10961   fi
10962 done
10963   done
10964 IFS=$as_save_IFS
10965
10966 fi
10967 fi
10968 DLLTOOL=$ac_cv_prog_DLLTOOL
10969 if test -n "$DLLTOOL"; then
10970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10971 $as_echo "$DLLTOOL" >&6; }
10972 else
10973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10974 $as_echo "no" >&6; }
10975 fi
10976
10977
10978 fi
10979 if test -z "$ac_cv_prog_DLLTOOL"; then
10980   ac_ct_DLLTOOL=$DLLTOOL
10981   # Extract the first word of "dlltool", so it can be a program name with args.
10982 set dummy dlltool; ac_word=$2
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10984 $as_echo_n "checking for $ac_word... " >&6; }
10985 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
10986   $as_echo_n "(cached) " >&6
10987 else
10988   if test -n "$ac_ct_DLLTOOL"; then
10989   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10990 else
10991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10992 for as_dir in $PATH
10993 do
10994   IFS=$as_save_IFS
10995   test -z "$as_dir" && as_dir=.
10996     for ac_exec_ext in '' $ac_executable_extensions; do
10997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10998     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11000     break 2
11001   fi
11002 done
11003   done
11004 IFS=$as_save_IFS
11005
11006 fi
11007 fi
11008 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11009 if test -n "$ac_ct_DLLTOOL"; then
11010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11011 $as_echo "$ac_ct_DLLTOOL" >&6; }
11012 else
11013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11014 $as_echo "no" >&6; }
11015 fi
11016
11017   if test "x$ac_ct_DLLTOOL" = x; then
11018     DLLTOOL="false"
11019   else
11020     case $cross_compiling:$ac_tool_warned in
11021 yes:)
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11024 ac_tool_warned=yes ;;
11025 esac
11026     DLLTOOL=$ac_ct_DLLTOOL
11027   fi
11028 else
11029   DLLTOOL="$ac_cv_prog_DLLTOOL"
11030 fi
11031
11032   if test -n "$ac_tool_prefix"; then
11033   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11034 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11036 $as_echo_n "checking for $ac_word... " >&6; }
11037 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11038   $as_echo_n "(cached) " >&6
11039 else
11040   if test -n "$OBJDUMP"; then
11041   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11042 else
11043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11044 for as_dir in $PATH
11045 do
11046   IFS=$as_save_IFS
11047   test -z "$as_dir" && as_dir=.
11048     for ac_exec_ext in '' $ac_executable_extensions; do
11049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11050     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11052     break 2
11053   fi
11054 done
11055   done
11056 IFS=$as_save_IFS
11057
11058 fi
11059 fi
11060 OBJDUMP=$ac_cv_prog_OBJDUMP
11061 if test -n "$OBJDUMP"; then
11062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11063 $as_echo "$OBJDUMP" >&6; }
11064 else
11065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066 $as_echo "no" >&6; }
11067 fi
11068
11069
11070 fi
11071 if test -z "$ac_cv_prog_OBJDUMP"; then
11072   ac_ct_OBJDUMP=$OBJDUMP
11073   # Extract the first word of "objdump", so it can be a program name with args.
11074 set dummy objdump; ac_word=$2
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11076 $as_echo_n "checking for $ac_word... " >&6; }
11077 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11078   $as_echo_n "(cached) " >&6
11079 else
11080   if test -n "$ac_ct_OBJDUMP"; then
11081   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11082 else
11083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084 for as_dir in $PATH
11085 do
11086   IFS=$as_save_IFS
11087   test -z "$as_dir" && as_dir=.
11088     for ac_exec_ext in '' $ac_executable_extensions; do
11089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11090     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11092     break 2
11093   fi
11094 done
11095   done
11096 IFS=$as_save_IFS
11097
11098 fi
11099 fi
11100 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11101 if test -n "$ac_ct_OBJDUMP"; then
11102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11103 $as_echo "$ac_ct_OBJDUMP" >&6; }
11104 else
11105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11106 $as_echo "no" >&6; }
11107 fi
11108
11109   if test "x$ac_ct_OBJDUMP" = x; then
11110     OBJDUMP="false"
11111   else
11112     case $cross_compiling:$ac_tool_warned in
11113 yes:)
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11116 ac_tool_warned=yes ;;
11117 esac
11118     OBJDUMP=$ac_ct_OBJDUMP
11119   fi
11120 else
11121   OBJDUMP="$ac_cv_prog_OBJDUMP"
11122 fi
11123
11124   ;;
11125 esac
11126
11127 test -z "$AS" && AS=as
11128
11129
11130
11131
11132
11133 test -z "$DLLTOOL" && DLLTOOL=dlltool
11134
11135
11136
11137
11138
11139 test -z "$OBJDUMP" && OBJDUMP=objdump
11140
11141
11142
11143
11144
11145
11146
11147         enable_dlopen=no
11148
11149
11150
11151             # Check whether --enable-shared was given.
11152 if test "${enable_shared+set}" = set; then :
11153   enableval=$enable_shared; p=${PACKAGE-default}
11154     case $enableval in
11155     yes) enable_shared=yes ;;
11156     no) enable_shared=no ;;
11157     *)
11158       enable_shared=no
11159       # Look at the argument we got.  We use all the common list separators.
11160       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11161       for pkg in $enableval; do
11162         IFS="$lt_save_ifs"
11163         if test "X$pkg" = "X$p"; then
11164           enable_shared=yes
11165         fi
11166       done
11167       IFS="$lt_save_ifs"
11168       ;;
11169     esac
11170 else
11171   enable_shared=yes
11172 fi
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182   # Check whether --enable-static was given.
11183 if test "${enable_static+set}" = set; then :
11184   enableval=$enable_static; p=${PACKAGE-default}
11185     case $enableval in
11186     yes) enable_static=yes ;;
11187     no) enable_static=no ;;
11188     *)
11189      enable_static=no
11190       # Look at the argument we got.  We use all the common list separators.
11191       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11192       for pkg in $enableval; do
11193         IFS="$lt_save_ifs"
11194         if test "X$pkg" = "X$p"; then
11195           enable_static=yes
11196         fi
11197       done
11198       IFS="$lt_save_ifs"
11199       ;;
11200     esac
11201 else
11202   enable_static=yes
11203 fi
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214 # Check whether --with-pic was given.
11215 if test "${with_pic+set}" = set; then :
11216   withval=$with_pic; pic_mode="$withval"
11217 else
11218   pic_mode=default
11219 fi
11220
11221
11222 test -z "$pic_mode" && pic_mode=default
11223
11224
11225
11226
11227
11228
11229
11230   # Check whether --enable-fast-install was given.
11231 if test "${enable_fast_install+set}" = set; then :
11232   enableval=$enable_fast_install; p=${PACKAGE-default}
11233     case $enableval in
11234     yes) enable_fast_install=yes ;;
11235     no) enable_fast_install=no ;;
11236     *)
11237       enable_fast_install=no
11238       # Look at the argument we got.  We use all the common list separators.
11239       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11240       for pkg in $enableval; do
11241         IFS="$lt_save_ifs"
11242         if test "X$pkg" = "X$p"; then
11243           enable_fast_install=yes
11244         fi
11245       done
11246       IFS="$lt_save_ifs"
11247       ;;
11248     esac
11249 else
11250   enable_fast_install=yes
11251 fi
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263 # This can be used to rebuild libtool when needed
11264 LIBTOOL_DEPS="$ltmain"
11265
11266 # Always use our own libtool.
11267 LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293 test -z "$LN_S" && LN_S="ln -s"
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308 if test -n "${ZSH_VERSION+set}" ; then
11309    setopt NO_GLOB_SUBST
11310 fi
11311
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11313 $as_echo_n "checking for objdir... " >&6; }
11314 if test "${lt_cv_objdir+set}" = set; then :
11315   $as_echo_n "(cached) " >&6
11316 else
11317   rm -f .libs 2>/dev/null
11318 mkdir .libs 2>/dev/null
11319 if test -d .libs; then
11320   lt_cv_objdir=.libs
11321 else
11322   # MS-DOS does not allow filenames that begin with a dot.
11323   lt_cv_objdir=_libs
11324 fi
11325 rmdir .libs 2>/dev/null
11326 fi
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11328 $as_echo "$lt_cv_objdir" >&6; }
11329 objdir=$lt_cv_objdir
11330
11331
11332
11333
11334
11335 cat >>confdefs.h <<_ACEOF
11336 #define LT_OBJDIR "$lt_cv_objdir/"
11337 _ACEOF
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355 case $host_os in
11356 aix3*)
11357   # AIX sometimes has problems with the GCC collect2 program.  For some
11358   # reason, if we set the COLLECT_NAMES environment variable, the problems
11359   # vanish in a puff of smoke.
11360   if test "X${COLLECT_NAMES+set}" != Xset; then
11361     COLLECT_NAMES=
11362     export COLLECT_NAMES
11363   fi
11364   ;;
11365 esac
11366
11367 # Sed substitution that helps us do robust quoting.  It backslashifies
11368 # metacharacters that are still active within double-quoted strings.
11369 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11370
11371 # Same as above, but do not quote variable references.
11372 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11373
11374 # Sed substitution to delay expansion of an escaped shell variable in a
11375 # double_quote_subst'ed string.
11376 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11377
11378 # Sed substitution to delay expansion of an escaped single quote.
11379 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11380
11381 # Sed substitution to avoid accidental globbing in evaled expressions
11382 no_glob_subst='s/\*/\\\*/g'
11383
11384 # Global variables:
11385 ofile=libtool
11386 can_build_shared=yes
11387
11388 # All known linkers require a `.a' archive for static linking (except MSVC,
11389 # which needs '.lib').
11390 libext=a
11391
11392 with_gnu_ld="$lt_cv_prog_gnu_ld"
11393
11394 old_CC="$CC"
11395 old_CFLAGS="$CFLAGS"
11396
11397 # Set sane defaults for various variables
11398 test -z "$CC" && CC=cc
11399 test -z "$LTCC" && LTCC=$CC
11400 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11401 test -z "$LD" && LD=ld
11402 test -z "$ac_objext" && ac_objext=o
11403
11404 for cc_temp in $compiler""; do
11405   case $cc_temp in
11406     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11407     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11408     \-*) ;;
11409     *) break;;
11410   esac
11411 done
11412 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11413
11414
11415 # Only perform the check for file, if the check method requires it
11416 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11417 case $deplibs_check_method in
11418 file_magic*)
11419   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11420     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11421 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11422 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11423   $as_echo_n "(cached) " >&6
11424 else
11425   case $MAGIC_CMD in
11426 [\\/*] |  ?:[\\/]*)
11427   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11428   ;;
11429 *)
11430   lt_save_MAGIC_CMD="$MAGIC_CMD"
11431   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11432   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11433   for ac_dir in $ac_dummy; do
11434     IFS="$lt_save_ifs"
11435     test -z "$ac_dir" && ac_dir=.
11436     if test -f $ac_dir/${ac_tool_prefix}file; then
11437       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11438       if test -n "$file_magic_test_file"; then
11439         case $deplibs_check_method in
11440         "file_magic "*)
11441           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11442           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11443           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11444             $EGREP "$file_magic_regex" > /dev/null; then
11445             :
11446           else
11447             cat <<_LT_EOF 1>&2
11448
11449 *** Warning: the command libtool uses to detect shared libraries,
11450 *** $file_magic_cmd, produces output that libtool cannot recognize.
11451 *** The result is that libtool may fail to recognize shared libraries
11452 *** as such.  This will affect the creation of libtool libraries that
11453 *** depend on shared libraries, but programs linked with such libtool
11454 *** libraries will work regardless of this problem.  Nevertheless, you
11455 *** may want to report the problem to your system manager and/or to
11456 *** bug-libtool@gnu.org
11457
11458 _LT_EOF
11459           fi ;;
11460         esac
11461       fi
11462       break
11463     fi
11464   done
11465   IFS="$lt_save_ifs"
11466   MAGIC_CMD="$lt_save_MAGIC_CMD"
11467   ;;
11468 esac
11469 fi
11470
11471 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11472 if test -n "$MAGIC_CMD"; then
11473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11474 $as_echo "$MAGIC_CMD" >&6; }
11475 else
11476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477 $as_echo "no" >&6; }
11478 fi
11479
11480
11481
11482
11483
11484 if test -z "$lt_cv_path_MAGIC_CMD"; then
11485   if test -n "$ac_tool_prefix"; then
11486     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11487 $as_echo_n "checking for file... " >&6; }
11488 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11489   $as_echo_n "(cached) " >&6
11490 else
11491   case $MAGIC_CMD in
11492 [\\/*] |  ?:[\\/]*)
11493   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11494   ;;
11495 *)
11496   lt_save_MAGIC_CMD="$MAGIC_CMD"
11497   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11498   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11499   for ac_dir in $ac_dummy; do
11500     IFS="$lt_save_ifs"
11501     test -z "$ac_dir" && ac_dir=.
11502     if test -f $ac_dir/file; then
11503       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11504       if test -n "$file_magic_test_file"; then
11505         case $deplibs_check_method in
11506         "file_magic "*)
11507           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11508           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11509           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11510             $EGREP "$file_magic_regex" > /dev/null; then
11511             :
11512           else
11513             cat <<_LT_EOF 1>&2
11514
11515 *** Warning: the command libtool uses to detect shared libraries,
11516 *** $file_magic_cmd, produces output that libtool cannot recognize.
11517 *** The result is that libtool may fail to recognize shared libraries
11518 *** as such.  This will affect the creation of libtool libraries that
11519 *** depend on shared libraries, but programs linked with such libtool
11520 *** libraries will work regardless of this problem.  Nevertheless, you
11521 *** may want to report the problem to your system manager and/or to
11522 *** bug-libtool@gnu.org
11523
11524 _LT_EOF
11525           fi ;;
11526         esac
11527       fi
11528       break
11529     fi
11530   done
11531   IFS="$lt_save_ifs"
11532   MAGIC_CMD="$lt_save_MAGIC_CMD"
11533   ;;
11534 esac
11535 fi
11536
11537 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11538 if test -n "$MAGIC_CMD"; then
11539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11540 $as_echo "$MAGIC_CMD" >&6; }
11541 else
11542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543 $as_echo "no" >&6; }
11544 fi
11545
11546
11547   else
11548     MAGIC_CMD=:
11549   fi
11550 fi
11551
11552   fi
11553   ;;
11554 esac
11555
11556 # Use C for the default configuration in the libtool script
11557
11558 lt_save_CC="$CC"
11559 ac_ext=c
11560 ac_cpp='$CPP $CPPFLAGS'
11561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11564
11565
11566 # Source file extension for C test sources.
11567 ac_ext=c
11568
11569 # Object file extension for compiled C test sources.
11570 objext=o
11571 objext=$objext
11572
11573 # Code to be used in simple compile tests
11574 lt_simple_compile_test_code="int some_variable = 0;"
11575
11576 # Code to be used in simple link tests
11577 lt_simple_link_test_code='int main(){return(0);}'
11578
11579
11580
11581
11582
11583
11584
11585 # If no C compiler was specified, use CC.
11586 LTCC=${LTCC-"$CC"}
11587
11588 # If no C compiler flags were specified, use CFLAGS.
11589 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11590
11591 # Allow CC to be a program name with arguments.
11592 compiler=$CC
11593
11594 # Save the default compiler, since it gets overwritten when the other
11595 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11596 compiler_DEFAULT=$CC
11597
11598 # save warnings/boilerplate of simple test code
11599 ac_outfile=conftest.$ac_objext
11600 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11601 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11602 _lt_compiler_boilerplate=`cat conftest.err`
11603 $RM conftest*
11604
11605 ac_outfile=conftest.$ac_objext
11606 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11607 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11608 _lt_linker_boilerplate=`cat conftest.err`
11609 $RM -r conftest*
11610
11611
11612 ## CAVEAT EMPTOR:
11613 ## There is no encapsulation within the following macros, do not change
11614 ## the running order or otherwise move them around unless you know exactly
11615 ## what you are doing...
11616 if test -n "$compiler"; then
11617
11618 lt_prog_compiler_no_builtin_flag=
11619
11620 if test "$GCC" = yes; then
11621   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11622
11623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11624 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11625 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11626   $as_echo_n "(cached) " >&6
11627 else
11628   lt_cv_prog_compiler_rtti_exceptions=no
11629    ac_outfile=conftest.$ac_objext
11630    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11631    lt_compiler_flag="-fno-rtti -fno-exceptions"
11632    # Insert the option either (1) after the last *FLAGS variable, or
11633    # (2) before a word containing "conftest.", or (3) at the end.
11634    # Note that $ac_compile itself does not contain backslashes and begins
11635    # with a dollar sign (not a hyphen), so the echo should work correctly.
11636    # The option is referenced via a variable to avoid confusing sed.
11637    lt_compile=`echo "$ac_compile" | $SED \
11638    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11639    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11640    -e 's:$: $lt_compiler_flag:'`
11641    (eval echo "\"\$as_me:11641: $lt_compile\"" >&5)
11642    (eval "$lt_compile" 2>conftest.err)
11643    ac_status=$?
11644    cat conftest.err >&5
11645    echo "$as_me:11645: \$? = $ac_status" >&5
11646    if (exit $ac_status) && test -s "$ac_outfile"; then
11647      # The compiler can only warn and ignore the option if not recognized
11648      # So say no if there are warnings other than the usual output.
11649      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11650      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11651      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11652        lt_cv_prog_compiler_rtti_exceptions=yes
11653      fi
11654    fi
11655    $RM conftest*
11656
11657 fi
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11659 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11660
11661 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11662     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11663 else
11664     :
11665 fi
11666
11667 fi
11668
11669
11670
11671
11672
11673
11674   lt_prog_compiler_wl=
11675 lt_prog_compiler_pic=
11676 lt_prog_compiler_static=
11677
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11679 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11680
11681   if test "$GCC" = yes; then
11682     lt_prog_compiler_wl='-Wl,'
11683     lt_prog_compiler_static='-static'
11684
11685     case $host_os in
11686       aix*)
11687       # All AIX code is PIC.
11688       if test "$host_cpu" = ia64; then
11689         # AIX 5 now supports IA64 processor
11690         lt_prog_compiler_static='-Bstatic'
11691       fi
11692       ;;
11693
11694     amigaos*)
11695       case $host_cpu in
11696       powerpc)
11697             # see comment about AmigaOS4 .so support
11698             lt_prog_compiler_pic='-fPIC'
11699         ;;
11700       m68k)
11701             # FIXME: we need at least 68020 code to build shared libraries, but
11702             # adding the `-m68020' flag to GCC prevents building anything better,
11703             # like `-m68040'.
11704             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11705         ;;
11706       esac
11707       ;;
11708
11709     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11710       # PIC is the default for these OSes.
11711       ;;
11712
11713     mingw* | cygwin* | pw32* | os2* | cegcc*)
11714       # This hack is so that the source file can tell whether it is being
11715       # built for inclusion in a dll (and should export symbols for example).
11716       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11717       # (--disable-auto-import) libraries
11718       lt_prog_compiler_pic='-DDLL_EXPORT'
11719       ;;
11720
11721     darwin* | rhapsody*)
11722       # PIC is the default on this platform
11723       # Common symbols not allowed in MH_DYLIB files
11724       lt_prog_compiler_pic='-fno-common'
11725       ;;
11726
11727     hpux*)
11728       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11729       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11730       # sets the default TLS model and affects inlining.
11731       case $host_cpu in
11732       hppa*64*)
11733         # +Z the default
11734         ;;
11735       *)
11736         lt_prog_compiler_pic='-fPIC'
11737         ;;
11738       esac
11739       ;;
11740
11741     interix[3-9]*)
11742       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11743       # Instead, we relocate shared libraries at runtime.
11744       ;;
11745
11746     msdosdjgpp*)
11747       # Just because we use GCC doesn't mean we suddenly get shared libraries
11748       # on systems that don't support them.
11749       lt_prog_compiler_can_build_shared=no
11750       enable_shared=no
11751       ;;
11752
11753     *nto* | *qnx*)
11754       # QNX uses GNU C++, but need to define -shared option too, otherwise
11755       # it will coredump.
11756       lt_prog_compiler_pic='-fPIC -shared'
11757       ;;
11758
11759     sysv4*MP*)
11760       if test -d /usr/nec; then
11761         lt_prog_compiler_pic=-Kconform_pic
11762       fi
11763       ;;
11764
11765     *)
11766       lt_prog_compiler_pic='-fPIC'
11767       ;;
11768     esac
11769   else
11770     # PORTME Check for flag to pass linker flags through the system compiler.
11771     case $host_os in
11772     aix*)
11773       lt_prog_compiler_wl='-Wl,'
11774       if test "$host_cpu" = ia64; then
11775         # AIX 5 now supports IA64 processor
11776         lt_prog_compiler_static='-Bstatic'
11777       else
11778         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11779       fi
11780       ;;
11781
11782     mingw* | cygwin* | pw32* | os2* | cegcc*)
11783       # This hack is so that the source file can tell whether it is being
11784       # built for inclusion in a dll (and should export symbols for example).
11785       lt_prog_compiler_pic='-DDLL_EXPORT'
11786       ;;
11787
11788     hpux9* | hpux10* | hpux11*)
11789       lt_prog_compiler_wl='-Wl,'
11790       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11791       # not for PA HP-UX.
11792       case $host_cpu in
11793       hppa*64*|ia64*)
11794         # +Z the default
11795         ;;
11796       *)
11797         lt_prog_compiler_pic='+Z'
11798         ;;
11799       esac
11800       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11801       lt_prog_compiler_static='${wl}-a ${wl}archive'
11802       ;;
11803
11804     irix5* | irix6* | nonstopux*)
11805       lt_prog_compiler_wl='-Wl,'
11806       # PIC (with -KPIC) is the default.
11807       lt_prog_compiler_static='-non_shared'
11808       ;;
11809
11810     linux* | k*bsd*-gnu)
11811       case $cc_basename in
11812       # old Intel for x86_64 which still supported -KPIC.
11813       ecc*)
11814         lt_prog_compiler_wl='-Wl,'
11815         lt_prog_compiler_pic='-KPIC'
11816         lt_prog_compiler_static='-static'
11817         ;;
11818       # icc used to be incompatible with GCC.
11819       # ICC 10 doesn't accept -KPIC any more.
11820       icc* | ifort*)
11821         lt_prog_compiler_wl='-Wl,'
11822         lt_prog_compiler_pic='-fPIC'
11823         lt_prog_compiler_static='-static'
11824         ;;
11825       # Lahey Fortran 8.1.
11826       lf95*)
11827         lt_prog_compiler_wl='-Wl,'
11828         lt_prog_compiler_pic='--shared'
11829         lt_prog_compiler_static='--static'
11830         ;;
11831       pgcc* | pgf77* | pgf90* | pgf95*)
11832         # Portland Group compilers (*not* the Pentium gcc compiler,
11833         # which looks to be a dead project)
11834         lt_prog_compiler_wl='-Wl,'
11835         lt_prog_compiler_pic='-fpic'
11836         lt_prog_compiler_static='-Bstatic'
11837         ;;
11838       ccc*)
11839         lt_prog_compiler_wl='-Wl,'
11840         # All Alpha code is PIC.
11841         lt_prog_compiler_static='-non_shared'
11842         ;;
11843       xl*)
11844         # IBM XL C 8.0/Fortran 10.1 on PPC
11845         lt_prog_compiler_wl='-Wl,'
11846         lt_prog_compiler_pic='-qpic'
11847         lt_prog_compiler_static='-qstaticlink'
11848         ;;
11849       *)
11850         case `$CC -V 2>&1 | sed 5q` in
11851         *Sun\ C*)
11852           # Sun C 5.9
11853           lt_prog_compiler_pic='-KPIC'
11854           lt_prog_compiler_static='-Bstatic'
11855           lt_prog_compiler_wl='-Wl,'
11856           ;;
11857         *Sun\ F*)
11858           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11859           lt_prog_compiler_pic='-KPIC'
11860           lt_prog_compiler_static='-Bstatic'
11861           lt_prog_compiler_wl=''
11862           ;;
11863         esac
11864         ;;
11865       esac
11866       ;;
11867
11868     newsos6)
11869       lt_prog_compiler_pic='-KPIC'
11870       lt_prog_compiler_static='-Bstatic'
11871       ;;
11872
11873     *nto* | *qnx*)
11874       # QNX uses GNU C++, but need to define -shared option too, otherwise
11875       # it will coredump.
11876       lt_prog_compiler_pic='-fPIC -shared'
11877       ;;
11878
11879     osf3* | osf4* | osf5*)
11880       lt_prog_compiler_wl='-Wl,'
11881       # All OSF/1 code is PIC.
11882       lt_prog_compiler_static='-non_shared'
11883       ;;
11884
11885     rdos*)
11886       lt_prog_compiler_static='-non_shared'
11887       ;;
11888
11889     solaris*)
11890       lt_prog_compiler_pic='-KPIC'
11891       lt_prog_compiler_static='-Bstatic'
11892       case $cc_basename in
11893       f77* | f90* | f95*)
11894         lt_prog_compiler_wl='-Qoption ld ';;
11895       *)
11896         lt_prog_compiler_wl='-Wl,';;
11897       esac
11898       ;;
11899
11900     sunos4*)
11901       lt_prog_compiler_wl='-Qoption ld '
11902       lt_prog_compiler_pic='-PIC'
11903       lt_prog_compiler_static='-Bstatic'
11904       ;;
11905
11906     sysv4 | sysv4.2uw2* | sysv4.3*)
11907       lt_prog_compiler_wl='-Wl,'
11908       lt_prog_compiler_pic='-KPIC'
11909       lt_prog_compiler_static='-Bstatic'
11910       ;;
11911
11912     sysv4*MP*)
11913       if test -d /usr/nec ;then
11914         lt_prog_compiler_pic='-Kconform_pic'
11915         lt_prog_compiler_static='-Bstatic'
11916       fi
11917       ;;
11918
11919     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11920       lt_prog_compiler_wl='-Wl,'
11921       lt_prog_compiler_pic='-KPIC'
11922       lt_prog_compiler_static='-Bstatic'
11923       ;;
11924
11925     unicos*)
11926       lt_prog_compiler_wl='-Wl,'
11927       lt_prog_compiler_can_build_shared=no
11928       ;;
11929
11930     uts4*)
11931       lt_prog_compiler_pic='-pic'
11932       lt_prog_compiler_static='-Bstatic'
11933       ;;
11934
11935     *)
11936       lt_prog_compiler_can_build_shared=no
11937       ;;
11938     esac
11939   fi
11940
11941 case $host_os in
11942   # For platforms which do not support PIC, -DPIC is meaningless:
11943   *djgpp*)
11944     lt_prog_compiler_pic=
11945     ;;
11946   *)
11947     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11948     ;;
11949 esac
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
11951 $as_echo "$lt_prog_compiler_pic" >&6; }
11952
11953
11954
11955
11956
11957
11958 #
11959 # Check to make sure the PIC flag actually works.
11960 #
11961 if test -n "$lt_prog_compiler_pic"; then
11962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11963 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11964 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
11965   $as_echo_n "(cached) " >&6
11966 else
11967   lt_cv_prog_compiler_pic_works=no
11968    ac_outfile=conftest.$ac_objext
11969    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11970    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11971    # Insert the option either (1) after the last *FLAGS variable, or
11972    # (2) before a word containing "conftest.", or (3) at the end.
11973    # Note that $ac_compile itself does not contain backslashes and begins
11974    # with a dollar sign (not a hyphen), so the echo should work correctly.
11975    # The option is referenced via a variable to avoid confusing sed.
11976    lt_compile=`echo "$ac_compile" | $SED \
11977    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11978    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11979    -e 's:$: $lt_compiler_flag:'`
11980    (eval echo "\"\$as_me:11980: $lt_compile\"" >&5)
11981    (eval "$lt_compile" 2>conftest.err)
11982    ac_status=$?
11983    cat conftest.err >&5
11984    echo "$as_me:11984: \$? = $ac_status" >&5
11985    if (exit $ac_status) && test -s "$ac_outfile"; then
11986      # The compiler can only warn and ignore the option if not recognized
11987      # So say no if there are warnings other than the usual output.
11988      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11989      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11990      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11991        lt_cv_prog_compiler_pic_works=yes
11992      fi
11993    fi
11994    $RM conftest*
11995
11996 fi
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11998 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11999
12000 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12001     case $lt_prog_compiler_pic in
12002      "" | " "*) ;;
12003      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12004      esac
12005 else
12006     lt_prog_compiler_pic=
12007      lt_prog_compiler_can_build_shared=no
12008 fi
12009
12010 fi
12011
12012
12013
12014
12015
12016
12017 #
12018 # Check to make sure the static flag actually works.
12019 #
12020 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12022 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12023 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
12024   $as_echo_n "(cached) " >&6
12025 else
12026   lt_cv_prog_compiler_static_works=no
12027    save_LDFLAGS="$LDFLAGS"
12028    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12029    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12030    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12031      # The linker can only warn and ignore the option if not recognized
12032      # So say no if there are warnings
12033      if test -s conftest.err; then
12034        # Append any errors to the config.log.
12035        cat conftest.err 1>&5
12036        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12037        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12038        if diff conftest.exp conftest.er2 >/dev/null; then
12039          lt_cv_prog_compiler_static_works=yes
12040        fi
12041      else
12042        lt_cv_prog_compiler_static_works=yes
12043      fi
12044    fi
12045    $RM -r conftest*
12046    LDFLAGS="$save_LDFLAGS"
12047
12048 fi
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12050 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12051
12052 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12053     :
12054 else
12055     lt_prog_compiler_static=
12056 fi
12057
12058
12059
12060
12061
12062
12063
12064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12065 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12066 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12067   $as_echo_n "(cached) " >&6
12068 else
12069   lt_cv_prog_compiler_c_o=no
12070    $RM -r conftest 2>/dev/null
12071    mkdir conftest
12072    cd conftest
12073    mkdir out
12074    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12075
12076    lt_compiler_flag="-o out/conftest2.$ac_objext"
12077    # Insert the option either (1) after the last *FLAGS variable, or
12078    # (2) before a word containing "conftest.", or (3) at the end.
12079    # Note that $ac_compile itself does not contain backslashes and begins
12080    # with a dollar sign (not a hyphen), so the echo should work correctly.
12081    lt_compile=`echo "$ac_compile" | $SED \
12082    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12083    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12084    -e 's:$: $lt_compiler_flag:'`
12085    (eval echo "\"\$as_me:12085: $lt_compile\"" >&5)
12086    (eval "$lt_compile" 2>out/conftest.err)
12087    ac_status=$?
12088    cat out/conftest.err >&5
12089    echo "$as_me:12089: \$? = $ac_status" >&5
12090    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12091    then
12092      # The compiler can only warn and ignore the option if not recognized
12093      # So say no if there are warnings
12094      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12095      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12096      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12097        lt_cv_prog_compiler_c_o=yes
12098      fi
12099    fi
12100    chmod u+w . 2>&5
12101    $RM conftest*
12102    # SGI C++ compiler will create directory out/ii_files/ for
12103    # template instantiation
12104    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12105    $RM out/* && rmdir out
12106    cd ..
12107    $RM -r conftest
12108    $RM conftest*
12109
12110 fi
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12112 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12113
12114
12115
12116
12117
12118
12119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12120 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12121 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12122   $as_echo_n "(cached) " >&6
12123 else
12124   lt_cv_prog_compiler_c_o=no
12125    $RM -r conftest 2>/dev/null
12126    mkdir conftest
12127    cd conftest
12128    mkdir out
12129    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12130
12131    lt_compiler_flag="-o out/conftest2.$ac_objext"
12132    # Insert the option either (1) after the last *FLAGS variable, or
12133    # (2) before a word containing "conftest.", or (3) at the end.
12134    # Note that $ac_compile itself does not contain backslashes and begins
12135    # with a dollar sign (not a hyphen), so the echo should work correctly.
12136    lt_compile=`echo "$ac_compile" | $SED \
12137    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12138    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12139    -e 's:$: $lt_compiler_flag:'`
12140    (eval echo "\"\$as_me:12140: $lt_compile\"" >&5)
12141    (eval "$lt_compile" 2>out/conftest.err)
12142    ac_status=$?
12143    cat out/conftest.err >&5
12144    echo "$as_me:12144: \$? = $ac_status" >&5
12145    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12146    then
12147      # The compiler can only warn and ignore the option if not recognized
12148      # So say no if there are warnings
12149      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12150      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12151      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12152        lt_cv_prog_compiler_c_o=yes
12153      fi
12154    fi
12155    chmod u+w . 2>&5
12156    $RM conftest*
12157    # SGI C++ compiler will create directory out/ii_files/ for
12158    # template instantiation
12159    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12160    $RM out/* && rmdir out
12161    cd ..
12162    $RM -r conftest
12163    $RM conftest*
12164
12165 fi
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12167 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12168
12169
12170
12171
12172 hard_links="nottested"
12173 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12174   # do not overwrite the value of need_locks provided by the user
12175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12176 $as_echo_n "checking if we can lock with hard links... " >&6; }
12177   hard_links=yes
12178   $RM conftest*
12179   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12180   touch conftest.a
12181   ln conftest.a conftest.b 2>&5 || hard_links=no
12182   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12184 $as_echo "$hard_links" >&6; }
12185   if test "$hard_links" = no; then
12186     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12187 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12188     need_locks=warn
12189   fi
12190 else
12191   need_locks=no
12192 fi
12193
12194
12195
12196
12197
12198
12199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12200 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12201
12202   runpath_var=
12203   allow_undefined_flag=
12204   always_export_symbols=no
12205   archive_cmds=
12206   archive_expsym_cmds=
12207   compiler_needs_object=no
12208   enable_shared_with_static_runtimes=no
12209   export_dynamic_flag_spec=
12210   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12211   hardcode_automatic=no
12212   hardcode_direct=no
12213   hardcode_direct_absolute=no
12214   hardcode_libdir_flag_spec=
12215   hardcode_libdir_flag_spec_ld=
12216   hardcode_libdir_separator=
12217   hardcode_minus_L=no
12218   hardcode_shlibpath_var=unsupported
12219   inherit_rpath=no
12220   link_all_deplibs=unknown
12221   module_cmds=
12222   module_expsym_cmds=
12223   old_archive_from_new_cmds=
12224   old_archive_from_expsyms_cmds=
12225   thread_safe_flag_spec=
12226   whole_archive_flag_spec=
12227   # include_expsyms should be a list of space-separated symbols to be *always*
12228   # included in the symbol list
12229   include_expsyms=
12230   # exclude_expsyms can be an extended regexp of symbols to exclude
12231   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12232   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12233   # as well as any symbol that contains `d'.
12234   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12235   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12236   # platforms (ab)use it in PIC code, but their linkers get confused if
12237   # the symbol is explicitly referenced.  Since portable code cannot
12238   # rely on this symbol name, it's probably fine to never include it in
12239   # preloaded symbol tables.
12240   # Exclude shared library initialization/finalization symbols.
12241   extract_expsyms_cmds=
12242
12243   case $host_os in
12244   cygwin* | mingw* | pw32* | cegcc*)
12245     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12246     # When not using gcc, we currently assume that we are using
12247     # Microsoft Visual C++.
12248     if test "$GCC" != yes; then
12249       with_gnu_ld=no
12250     fi
12251     ;;
12252   interix*)
12253     # we just hope/assume this is gcc and not c89 (= MSVC++)
12254     with_gnu_ld=yes
12255     ;;
12256   openbsd*)
12257     with_gnu_ld=no
12258     ;;
12259   esac
12260
12261   ld_shlibs=yes
12262   if test "$with_gnu_ld" = yes; then
12263     # If archive_cmds runs LD, not CC, wlarc should be empty
12264     wlarc='${wl}'
12265
12266     # Set some defaults for GNU ld with shared library support. These
12267     # are reset later if shared libraries are not supported. Putting them
12268     # here allows them to be overridden if necessary.
12269     runpath_var=LD_RUN_PATH
12270     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12271     export_dynamic_flag_spec='${wl}--export-dynamic'
12272     # ancient GNU ld didn't support --whole-archive et. al.
12273     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12274       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12275     else
12276       whole_archive_flag_spec=
12277     fi
12278     supports_anon_versioning=no
12279     case `$LD -v 2>&1` in
12280       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12281       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12282       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12283       *\ 2.11.*) ;; # other 2.11 versions
12284       *) supports_anon_versioning=yes ;;
12285     esac
12286
12287     # See if GNU ld supports shared libraries.
12288     case $host_os in
12289     aix[3-9]*)
12290       # On AIX/PPC, the GNU linker is very broken
12291       if test "$host_cpu" != ia64; then
12292         ld_shlibs=no
12293         cat <<_LT_EOF 1>&2
12294
12295 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12296 *** to be unable to reliably create shared libraries on AIX.
12297 *** Therefore, libtool is disabling shared libraries support.  If you
12298 *** really care for shared libraries, you may want to modify your PATH
12299 *** so that a non-GNU linker is found, and then restart.
12300
12301 _LT_EOF
12302       fi
12303       ;;
12304
12305     amigaos*)
12306       case $host_cpu in
12307       powerpc)
12308             # see comment about AmigaOS4 .so support
12309             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12310             archive_expsym_cmds=''
12311         ;;
12312       m68k)
12313             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)'
12314             hardcode_libdir_flag_spec='-L$libdir'
12315             hardcode_minus_L=yes
12316         ;;
12317       esac
12318       ;;
12319
12320     beos*)
12321       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12322         allow_undefined_flag=unsupported
12323         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12324         # support --undefined.  This deserves some investigation.  FIXME
12325         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12326       else
12327         ld_shlibs=no
12328       fi
12329       ;;
12330
12331     cygwin* | mingw* | pw32* | cegcc*)
12332       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12333       # as there is no search path for DLLs.
12334       hardcode_libdir_flag_spec='-L$libdir'
12335       allow_undefined_flag=unsupported
12336       always_export_symbols=no
12337       enable_shared_with_static_runtimes=yes
12338       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12339
12340       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12341         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12342         # If the export-symbols file already is a .def file (1st line
12343         # is EXPORTS), use it as is; otherwise, prepend...
12344         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12345           cp $export_symbols $output_objdir/$soname.def;
12346         else
12347           echo EXPORTS > $output_objdir/$soname.def;
12348           cat $export_symbols >> $output_objdir/$soname.def;
12349         fi~
12350         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12351       else
12352         ld_shlibs=no
12353       fi
12354       ;;
12355
12356     interix[3-9]*)
12357       hardcode_direct=no
12358       hardcode_shlibpath_var=no
12359       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12360       export_dynamic_flag_spec='${wl}-E'
12361       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12362       # Instead, shared libraries are loaded at an image base (0x10000000 by
12363       # default) and relocated if they conflict, which is a slow very memory
12364       # consuming and fragmenting process.  To avoid this, we pick a random,
12365       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12366       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12367       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12368       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'
12369       ;;
12370
12371     gnu* | linux* | tpf* | k*bsd*-gnu)
12372       tmp_diet=no
12373       if test "$host_os" = linux-dietlibc; then
12374         case $cc_basename in
12375           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12376         esac
12377       fi
12378       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12379          && test "$tmp_diet" = no
12380       then
12381         tmp_addflag=
12382         tmp_sharedflag='-shared'
12383         case $cc_basename,$host_cpu in
12384         pgcc*)                          # Portland Group C compiler
12385           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'
12386           tmp_addflag=' $pic_flag'
12387           ;;
12388         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
12389           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'
12390           tmp_addflag=' $pic_flag -Mnomain' ;;
12391         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12392           tmp_addflag=' -i_dynamic' ;;
12393         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12394           tmp_addflag=' -i_dynamic -nofor_main' ;;
12395         ifc* | ifort*)                  # Intel Fortran compiler
12396           tmp_addflag=' -nofor_main' ;;
12397         lf95*)                          # Lahey Fortran 8.1
12398           whole_archive_flag_spec=
12399           tmp_sharedflag='--shared' ;;
12400         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
12401           tmp_sharedflag='-qmkshrobj'
12402           tmp_addflag= ;;
12403         esac
12404         case `$CC -V 2>&1 | sed 5q` in
12405         *Sun\ C*)                       # Sun C 5.9
12406           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'
12407           compiler_needs_object=yes
12408           tmp_sharedflag='-G' ;;
12409         *Sun\ F*)                       # Sun Fortran 8.3
12410           tmp_sharedflag='-G' ;;
12411         esac
12412         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12413
12414         if test "x$supports_anon_versioning" = xyes; then
12415           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12416             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12417             echo "local: *; };" >> $output_objdir/$libname.ver~
12418             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12419         fi
12420
12421         case $cc_basename in
12422         xlf*)
12423           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12424           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12425           hardcode_libdir_flag_spec=
12426           hardcode_libdir_flag_spec_ld='-rpath $libdir'
12427           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12428           if test "x$supports_anon_versioning" = xyes; then
12429             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12430               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12431               echo "local: *; };" >> $output_objdir/$libname.ver~
12432               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12433           fi
12434           ;;
12435         esac
12436       else
12437         ld_shlibs=no
12438       fi
12439       ;;
12440
12441     netbsd*)
12442       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12443         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12444         wlarc=
12445       else
12446         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12447         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12448       fi
12449       ;;
12450
12451     solaris*)
12452       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12453         ld_shlibs=no
12454         cat <<_LT_EOF 1>&2
12455
12456 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12457 *** create shared libraries on Solaris systems.  Therefore, libtool
12458 *** is disabling shared libraries support.  We urge you to upgrade GNU
12459 *** binutils to release 2.9.1 or newer.  Another option is to modify
12460 *** your PATH or compiler configuration so that the native linker is
12461 *** used, and then restart.
12462
12463 _LT_EOF
12464       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12465         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12466         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12467       else
12468         ld_shlibs=no
12469       fi
12470       ;;
12471
12472     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12473       case `$LD -v 2>&1` in
12474         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12475         ld_shlibs=no
12476         cat <<_LT_EOF 1>&2
12477
12478 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12479 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12480 *** is disabling shared libraries support.  We urge you to upgrade GNU
12481 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12482 *** your PATH or compiler configuration so that the native linker is
12483 *** used, and then restart.
12484
12485 _LT_EOF
12486         ;;
12487         *)
12488           # For security reasons, it is highly recommended that you always
12489           # use absolute paths for naming shared libraries, and exclude the
12490           # DT_RUNPATH tag from executables and libraries.  But doing so
12491           # requires that you compile everything twice, which is a pain.
12492           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12493             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12494             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12495             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12496           else
12497             ld_shlibs=no
12498           fi
12499         ;;
12500       esac
12501       ;;
12502
12503     sunos4*)
12504       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12505       wlarc=
12506       hardcode_direct=yes
12507       hardcode_shlibpath_var=no
12508       ;;
12509
12510     *)
12511       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12512         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12513         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12514       else
12515         ld_shlibs=no
12516       fi
12517       ;;
12518     esac
12519
12520     if test "$ld_shlibs" = no; then
12521       runpath_var=
12522       hardcode_libdir_flag_spec=
12523       export_dynamic_flag_spec=
12524       whole_archive_flag_spec=
12525     fi
12526   else
12527     # PORTME fill in a description of your system's linker (not GNU ld)
12528     case $host_os in
12529     aix3*)
12530       allow_undefined_flag=unsupported
12531       always_export_symbols=yes
12532       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'
12533       # Note: this linker hardcodes the directories in LIBPATH if there
12534       # are no directories specified by -L.
12535       hardcode_minus_L=yes
12536       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12537         # Neither direct hardcoding nor static linking is supported with a
12538         # broken collect2.
12539         hardcode_direct=unsupported
12540       fi
12541       ;;
12542
12543     aix[4-9]*)
12544       if test "$host_cpu" = ia64; then
12545         # On IA64, the linker does run time linking by default, so we don't
12546         # have to do anything special.
12547         aix_use_runtimelinking=no
12548         exp_sym_flag='-Bexport'
12549         no_entry_flag=""
12550       else
12551         # If we're using GNU nm, then we don't want the "-C" option.
12552         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12553         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12554           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'
12555         else
12556           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'
12557         fi
12558         aix_use_runtimelinking=no
12559
12560         # Test if we are trying to use run time linking or normal
12561         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12562         # need to do runtime linking.
12563         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12564           for ld_flag in $LDFLAGS; do
12565           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12566             aix_use_runtimelinking=yes
12567             break
12568           fi
12569           done
12570           ;;
12571         esac
12572
12573         exp_sym_flag='-bexport'
12574         no_entry_flag='-bnoentry'
12575       fi
12576
12577       # When large executables or shared objects are built, AIX ld can
12578       # have problems creating the table of contents.  If linking a library
12579       # or program results in "error TOC overflow" add -mminimal-toc to
12580       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12581       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12582
12583       archive_cmds=''
12584       hardcode_direct=yes
12585       hardcode_direct_absolute=yes
12586       hardcode_libdir_separator=':'
12587       link_all_deplibs=yes
12588       file_list_spec='${wl}-f,'
12589
12590       if test "$GCC" = yes; then
12591         case $host_os in aix4.[012]|aix4.[012].*)
12592         # We only want to do this on AIX 4.2 and lower, the check
12593         # below for broken collect2 doesn't work under 4.3+
12594           collect2name=`${CC} -print-prog-name=collect2`
12595           if test -f "$collect2name" &&
12596            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12597           then
12598           # We have reworked collect2
12599           :
12600           else
12601           # We have old collect2
12602           hardcode_direct=unsupported
12603           # It fails to find uninstalled libraries when the uninstalled
12604           # path is not listed in the libpath.  Setting hardcode_minus_L
12605           # to unsupported forces relinking
12606           hardcode_minus_L=yes
12607           hardcode_libdir_flag_spec='-L$libdir'
12608           hardcode_libdir_separator=
12609           fi
12610           ;;
12611         esac
12612         shared_flag='-shared'
12613         if test "$aix_use_runtimelinking" = yes; then
12614           shared_flag="$shared_flag "'${wl}-G'
12615         fi
12616       else
12617         # not using gcc
12618         if test "$host_cpu" = ia64; then
12619         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12620         # chokes on -Wl,-G. The following line is correct:
12621           shared_flag='-G'
12622         else
12623           if test "$aix_use_runtimelinking" = yes; then
12624             shared_flag='${wl}-G'
12625           else
12626             shared_flag='${wl}-bM:SRE'
12627           fi
12628         fi
12629       fi
12630
12631       export_dynamic_flag_spec='${wl}-bexpall'
12632       # It seems that -bexpall does not export symbols beginning with
12633       # underscore (_), so it is better to generate a list of symbols to export.
12634       always_export_symbols=yes
12635       if test "$aix_use_runtimelinking" = yes; then
12636         # Warning - without using the other runtime loading flags (-brtl),
12637         # -berok will link without error, but may produce a broken library.
12638         allow_undefined_flag='-berok'
12639         # Determine the default libpath from the value encoded in an
12640         # empty executable.
12641         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642 /* end confdefs.h.  */
12643
12644 int
12645 main ()
12646 {
12647
12648   ;
12649   return 0;
12650 }
12651 _ACEOF
12652 if ac_fn_c_try_link "$LINENO"; then :
12653
12654 lt_aix_libpath_sed='
12655     /Import File Strings/,/^$/ {
12656         /^0/ {
12657             s/^0  *\(.*\)$/\1/
12658             p
12659         }
12660     }'
12661 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12662 # Check for a 64-bit object if we didn't find anything.
12663 if test -z "$aix_libpath"; then
12664   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12665 fi
12666 fi
12667 rm -f core conftest.err conftest.$ac_objext \
12668     conftest$ac_exeext conftest.$ac_ext
12669 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12670
12671         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12672         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"
12673       else
12674         if test "$host_cpu" = ia64; then
12675           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12676           allow_undefined_flag="-z nodefs"
12677           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"
12678         else
12679          # Determine the default libpath from the value encoded in an
12680          # empty executable.
12681          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h.  */
12683
12684 int
12685 main ()
12686 {
12687
12688   ;
12689   return 0;
12690 }
12691 _ACEOF
12692 if ac_fn_c_try_link "$LINENO"; then :
12693
12694 lt_aix_libpath_sed='
12695     /Import File Strings/,/^$/ {
12696         /^0/ {
12697             s/^0  *\(.*\)$/\1/
12698             p
12699         }
12700     }'
12701 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12702 # Check for a 64-bit object if we didn't find anything.
12703 if test -z "$aix_libpath"; then
12704   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12705 fi
12706 fi
12707 rm -f core conftest.err conftest.$ac_objext \
12708     conftest$ac_exeext conftest.$ac_ext
12709 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12710
12711          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12712           # Warning - without using the other run time loading flags,
12713           # -berok will link without error, but may produce a broken library.
12714           no_undefined_flag=' ${wl}-bernotok'
12715           allow_undefined_flag=' ${wl}-berok'
12716           # Exported symbols can be pulled into shared objects from archives
12717           whole_archive_flag_spec='$convenience'
12718           archive_cmds_need_lc=yes
12719           # This is similar to how AIX traditionally builds its shared libraries.
12720           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'
12721         fi
12722       fi
12723       ;;
12724
12725     amigaos*)
12726       case $host_cpu in
12727       powerpc)
12728             # see comment about AmigaOS4 .so support
12729             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12730             archive_expsym_cmds=''
12731         ;;
12732       m68k)
12733             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)'
12734             hardcode_libdir_flag_spec='-L$libdir'
12735             hardcode_minus_L=yes
12736         ;;
12737       esac
12738       ;;
12739
12740     bsdi[45]*)
12741       export_dynamic_flag_spec=-rdynamic
12742       ;;
12743
12744     cygwin* | mingw* | pw32* | cegcc*)
12745       # When not using gcc, we currently assume that we are using
12746       # Microsoft Visual C++.
12747       # hardcode_libdir_flag_spec is actually meaningless, as there is
12748       # no search path for DLLs.
12749       hardcode_libdir_flag_spec=' '
12750       allow_undefined_flag=unsupported
12751       # Tell ltmain to make .lib files, not .a files.
12752       libext=lib
12753       # Tell ltmain to make .dll files, not .so files.
12754       shrext_cmds=".dll"
12755       # FIXME: Setting linknames here is a bad hack.
12756       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12757       # The linker will automatically build a .lib file if we build a DLL.
12758       old_archive_from_new_cmds='true'
12759       # FIXME: Should let the user specify the lib program.
12760       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12761       fix_srcfile_path='`cygpath -w "$srcfile"`'
12762       enable_shared_with_static_runtimes=yes
12763       ;;
12764
12765     darwin* | rhapsody*)
12766
12767
12768   archive_cmds_need_lc=no
12769   hardcode_direct=no
12770   hardcode_automatic=yes
12771   hardcode_shlibpath_var=unsupported
12772   whole_archive_flag_spec=''
12773   link_all_deplibs=yes
12774   allow_undefined_flag="$_lt_dar_allow_undefined"
12775   case $cc_basename in
12776      ifort*) _lt_dar_can_shared=yes ;;
12777      *) _lt_dar_can_shared=$GCC ;;
12778   esac
12779   if test "$_lt_dar_can_shared" = "yes"; then
12780     output_verbose_link_cmd=echo
12781     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12782     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12783     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}"
12784     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}"
12785
12786   else
12787   ld_shlibs=no
12788   fi
12789
12790       ;;
12791
12792     dgux*)
12793       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12794       hardcode_libdir_flag_spec='-L$libdir'
12795       hardcode_shlibpath_var=no
12796       ;;
12797
12798     freebsd1*)
12799       ld_shlibs=no
12800       ;;
12801
12802     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12803     # support.  Future versions do this automatically, but an explicit c++rt0.o
12804     # does not break anything, and helps significantly (at the cost of a little
12805     # extra space).
12806     freebsd2.2*)
12807       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12808       hardcode_libdir_flag_spec='-R$libdir'
12809       hardcode_direct=yes
12810       hardcode_shlibpath_var=no
12811       ;;
12812
12813     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12814     freebsd2*)
12815       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12816       hardcode_direct=yes
12817       hardcode_minus_L=yes
12818       hardcode_shlibpath_var=no
12819       ;;
12820
12821     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12822     freebsd* | dragonfly*)
12823       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12824       hardcode_libdir_flag_spec='-R$libdir'
12825       hardcode_direct=yes
12826       hardcode_shlibpath_var=no
12827       ;;
12828
12829     hpux9*)
12830       if test "$GCC" = yes; then
12831         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'
12832       else
12833         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'
12834       fi
12835       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12836       hardcode_libdir_separator=:
12837       hardcode_direct=yes
12838
12839       # hardcode_minus_L: Not really in the search PATH,
12840       # but as the default location of the library.
12841       hardcode_minus_L=yes
12842       export_dynamic_flag_spec='${wl}-E'
12843       ;;
12844
12845     hpux10*)
12846       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12847         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12848       else
12849         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12850       fi
12851       if test "$with_gnu_ld" = no; then
12852         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12853         hardcode_libdir_flag_spec_ld='+b $libdir'
12854         hardcode_libdir_separator=:
12855         hardcode_direct=yes
12856         hardcode_direct_absolute=yes
12857         export_dynamic_flag_spec='${wl}-E'
12858         # hardcode_minus_L: Not really in the search PATH,
12859         # but as the default location of the library.
12860         hardcode_minus_L=yes
12861       fi
12862       ;;
12863
12864     hpux11*)
12865       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12866         case $host_cpu in
12867         hppa*64*)
12868           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12869           ;;
12870         ia64*)
12871           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12872           ;;
12873         *)
12874           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12875           ;;
12876         esac
12877       else
12878         case $host_cpu in
12879         hppa*64*)
12880           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12881           ;;
12882         ia64*)
12883           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12884           ;;
12885         *)
12886           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12887           ;;
12888         esac
12889       fi
12890       if test "$with_gnu_ld" = no; then
12891         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12892         hardcode_libdir_separator=:
12893
12894         case $host_cpu in
12895         hppa*64*|ia64*)
12896           hardcode_direct=no
12897           hardcode_shlibpath_var=no
12898           ;;
12899         *)
12900           hardcode_direct=yes
12901           hardcode_direct_absolute=yes
12902           export_dynamic_flag_spec='${wl}-E'
12903
12904           # hardcode_minus_L: Not really in the search PATH,
12905           # but as the default location of the library.
12906           hardcode_minus_L=yes
12907           ;;
12908         esac
12909       fi
12910       ;;
12911
12912     irix5* | irix6* | nonstopux*)
12913       if test "$GCC" = yes; then
12914         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'
12915         # Try to use the -exported_symbol ld option, if it does not
12916         # work, assume that -exports_file does not work either and
12917         # implicitly export all symbols.
12918         save_LDFLAGS="$LDFLAGS"
12919         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12920         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921 /* end confdefs.h.  */
12922 int foo(void) {}
12923 _ACEOF
12924 if ac_fn_c_try_link "$LINENO"; then :
12925   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'
12926
12927 fi
12928 rm -f core conftest.err conftest.$ac_objext \
12929     conftest$ac_exeext conftest.$ac_ext
12930         LDFLAGS="$save_LDFLAGS"
12931       else
12932         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'
12933         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'
12934       fi
12935       archive_cmds_need_lc='no'
12936       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12937       hardcode_libdir_separator=:
12938       inherit_rpath=yes
12939       link_all_deplibs=yes
12940       ;;
12941
12942     netbsd*)
12943       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12944         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12945       else
12946         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12947       fi
12948       hardcode_libdir_flag_spec='-R$libdir'
12949       hardcode_direct=yes
12950       hardcode_shlibpath_var=no
12951       ;;
12952
12953     newsos6)
12954       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12955       hardcode_direct=yes
12956       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12957       hardcode_libdir_separator=:
12958       hardcode_shlibpath_var=no
12959       ;;
12960
12961     *nto* | *qnx*)
12962       ;;
12963
12964     openbsd*)
12965       if test -f /usr/libexec/ld.so; then
12966         hardcode_direct=yes
12967         hardcode_shlibpath_var=no
12968         hardcode_direct_absolute=yes
12969         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12970           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12971           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12972           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12973           export_dynamic_flag_spec='${wl}-E'
12974         else
12975           case $host_os in
12976            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12977              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12978              hardcode_libdir_flag_spec='-R$libdir'
12979              ;;
12980            *)
12981              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12982              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12983              ;;
12984           esac
12985         fi
12986       else
12987         ld_shlibs=no
12988       fi
12989       ;;
12990
12991     os2*)
12992       hardcode_libdir_flag_spec='-L$libdir'
12993       hardcode_minus_L=yes
12994       allow_undefined_flag=unsupported
12995       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'
12996       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12997       ;;
12998
12999     osf3*)
13000       if test "$GCC" = yes; then
13001         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13002         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'
13003       else
13004         allow_undefined_flag=' -expect_unresolved \*'
13005         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'
13006       fi
13007       archive_cmds_need_lc='no'
13008       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13009       hardcode_libdir_separator=:
13010       ;;
13011
13012     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13013       if test "$GCC" = yes; then
13014         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13015         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'
13016         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13017       else
13018         allow_undefined_flag=' -expect_unresolved \*'
13019         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'
13020         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~
13021         $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'
13022
13023         # Both c and cxx compiler support -rpath directly
13024         hardcode_libdir_flag_spec='-rpath $libdir'
13025       fi
13026       archive_cmds_need_lc='no'
13027       hardcode_libdir_separator=:
13028       ;;
13029
13030     solaris*)
13031       no_undefined_flag=' -z defs'
13032       if test "$GCC" = yes; then
13033         wlarc='${wl}'
13034         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13035         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13036           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13037       else
13038         case `$CC -V 2>&1` in
13039         *"Compilers 5.0"*)
13040           wlarc=''
13041           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13042           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13043           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13044           ;;
13045         *)
13046           wlarc='${wl}'
13047           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13048           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13049           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13050           ;;
13051         esac
13052       fi
13053       hardcode_libdir_flag_spec='-R$libdir'
13054       hardcode_shlibpath_var=no
13055       case $host_os in
13056       solaris2.[0-5] | solaris2.[0-5].*) ;;
13057       *)
13058         # The compiler driver will combine and reorder linker options,
13059         # but understands `-z linker_flag'.  GCC discards it without `$wl',
13060         # but is careful enough not to reorder.
13061         # Supported since Solaris 2.6 (maybe 2.5.1?)
13062         if test "$GCC" = yes; then
13063           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13064         else
13065           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13066         fi
13067         ;;
13068       esac
13069       link_all_deplibs=yes
13070       ;;
13071
13072     sunos4*)
13073       if test "x$host_vendor" = xsequent; then
13074         # Use $CC to link under sequent, because it throws in some extra .o
13075         # files that make .init and .fini sections work.
13076         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13077       else
13078         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13079       fi
13080       hardcode_libdir_flag_spec='-L$libdir'
13081       hardcode_direct=yes
13082       hardcode_minus_L=yes
13083       hardcode_shlibpath_var=no
13084       ;;
13085
13086     sysv4)
13087       case $host_vendor in
13088         sni)
13089           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13090           hardcode_direct=yes # is this really true???
13091         ;;
13092         siemens)
13093           ## LD is ld it makes a PLAMLIB
13094           ## CC just makes a GrossModule.
13095           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13096           reload_cmds='$CC -r -o $output$reload_objs'
13097           hardcode_direct=no
13098         ;;
13099         motorola)
13100           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13101           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13102         ;;
13103       esac
13104       runpath_var='LD_RUN_PATH'
13105       hardcode_shlibpath_var=no
13106       ;;
13107
13108     sysv4.3*)
13109       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13110       hardcode_shlibpath_var=no
13111       export_dynamic_flag_spec='-Bexport'
13112       ;;
13113
13114     sysv4*MP*)
13115       if test -d /usr/nec; then
13116         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13117         hardcode_shlibpath_var=no
13118         runpath_var=LD_RUN_PATH
13119         hardcode_runpath_var=yes
13120         ld_shlibs=yes
13121       fi
13122       ;;
13123
13124     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13125       no_undefined_flag='${wl}-z,text'
13126       archive_cmds_need_lc=no
13127       hardcode_shlibpath_var=no
13128       runpath_var='LD_RUN_PATH'
13129
13130       if test "$GCC" = yes; then
13131         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13132         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13133       else
13134         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13135         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13136       fi
13137       ;;
13138
13139     sysv5* | sco3.2v5* | sco5v6*)
13140       # Note: We can NOT use -z defs as we might desire, because we do not
13141       # link with -lc, and that would cause any symbols used from libc to
13142       # always be unresolved, which means just about no library would
13143       # ever link correctly.  If we're not using GNU ld we use -z text
13144       # though, which does catch some bad symbols but isn't as heavy-handed
13145       # as -z defs.
13146       no_undefined_flag='${wl}-z,text'
13147       allow_undefined_flag='${wl}-z,nodefs'
13148       archive_cmds_need_lc=no
13149       hardcode_shlibpath_var=no
13150       hardcode_libdir_flag_spec='${wl}-R,$libdir'
13151       hardcode_libdir_separator=':'
13152       link_all_deplibs=yes
13153       export_dynamic_flag_spec='${wl}-Bexport'
13154       runpath_var='LD_RUN_PATH'
13155
13156       if test "$GCC" = yes; then
13157         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13158         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13159       else
13160         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13161         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13162       fi
13163       ;;
13164
13165     uts4*)
13166       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13167       hardcode_libdir_flag_spec='-L$libdir'
13168       hardcode_shlibpath_var=no
13169       ;;
13170
13171     *)
13172       ld_shlibs=no
13173       ;;
13174     esac
13175
13176     if test x$host_vendor = xsni; then
13177       case $host in
13178       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13179         export_dynamic_flag_spec='${wl}-Blargedynsym'
13180         ;;
13181       esac
13182     fi
13183   fi
13184
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13186 $as_echo "$ld_shlibs" >&6; }
13187 test "$ld_shlibs" = no && can_build_shared=no
13188
13189 with_gnu_ld=$with_gnu_ld
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205 #
13206 # Do we need to explicitly link libc?
13207 #
13208 case "x$archive_cmds_need_lc" in
13209 x|xyes)
13210   # Assume -lc should be added
13211   archive_cmds_need_lc=yes
13212
13213   if test "$enable_shared" = yes && test "$GCC" = yes; then
13214     case $archive_cmds in
13215     *'~'*)
13216       # FIXME: we may have to deal with multi-command sequences.
13217       ;;
13218     '$CC '*)
13219       # Test whether the compiler implicitly links with -lc since on some
13220       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13221       # to ld, don't add -lc before -lgcc.
13222       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13223 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13224       $RM conftest*
13225       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13226
13227       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13228   (eval $ac_compile) 2>&5
13229   ac_status=$?
13230   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13231   test $ac_status = 0; } 2>conftest.err; then
13232         soname=conftest
13233         lib=conftest
13234         libobjs=conftest.$ac_objext
13235         deplibs=
13236         wl=$lt_prog_compiler_wl
13237         pic_flag=$lt_prog_compiler_pic
13238         compiler_flags=-v
13239         linker_flags=-v
13240         verstring=
13241         output_objdir=.
13242         libname=conftest
13243         lt_save_allow_undefined_flag=$allow_undefined_flag
13244         allow_undefined_flag=
13245         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13246   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13247   ac_status=$?
13248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13249   test $ac_status = 0; }
13250         then
13251           archive_cmds_need_lc=no
13252         else
13253           archive_cmds_need_lc=yes
13254         fi
13255         allow_undefined_flag=$lt_save_allow_undefined_flag
13256       else
13257         cat conftest.err 1>&5
13258       fi
13259       $RM conftest*
13260       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13261 $as_echo "$archive_cmds_need_lc" >&6; }
13262       ;;
13263     esac
13264   fi
13265   ;;
13266 esac
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13425 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13426
13427 if test "$GCC" = yes; then
13428   case $host_os in
13429     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13430     *) lt_awk_arg="/^libraries:/" ;;
13431   esac
13432   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13433   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
13434     # if the path contains ";" then we assume it to be the separator
13435     # otherwise default to the standard path separator (i.e. ":") - it is
13436     # assumed that no part of a normal pathname contains ";" but that should
13437     # okay in the real world where ";" in dirpaths is itself problematic.
13438     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13439   else
13440     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13441   fi
13442   # Ok, now we have the path, separated by spaces, we can step through it
13443   # and add multilib dir if necessary.
13444   lt_tmp_lt_search_path_spec=
13445   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13446   for lt_sys_path in $lt_search_path_spec; do
13447     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13448       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13449     else
13450       test -d "$lt_sys_path" && \
13451         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13452     fi
13453   done
13454   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
13455 BEGIN {RS=" "; FS="/|\n";} {
13456   lt_foo="";
13457   lt_count=0;
13458   for (lt_i = NF; lt_i > 0; lt_i--) {
13459     if ($lt_i != "" && $lt_i != ".") {
13460       if ($lt_i == "..") {
13461         lt_count++;
13462       } else {
13463         if (lt_count == 0) {
13464           lt_foo="/" $lt_i lt_foo;
13465         } else {
13466           lt_count--;
13467         }
13468       }
13469     }
13470   }
13471   if (lt_foo != "") { lt_freq[lt_foo]++; }
13472   if (lt_freq[lt_foo] == 1) { print lt_foo; }
13473 }'`
13474   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
13475 else
13476   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13477 fi
13478 library_names_spec=
13479 libname_spec='lib$name'
13480 soname_spec=
13481 shrext_cmds=".so"
13482 postinstall_cmds=
13483 postuninstall_cmds=
13484 finish_cmds=
13485 finish_eval=
13486 shlibpath_var=
13487 shlibpath_overrides_runpath=unknown
13488 version_type=none
13489 dynamic_linker="$host_os ld.so"
13490 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13491 need_lib_prefix=unknown
13492 hardcode_into_libs=no
13493
13494 # when you set need_version to no, make sure it does not cause -set_version
13495 # flags to be left without arguments
13496 need_version=unknown
13497
13498 case $host_os in
13499 aix3*)
13500   version_type=linux
13501   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13502   shlibpath_var=LIBPATH
13503
13504   # AIX 3 has no versioning support, so we append a major version to the name.
13505   soname_spec='${libname}${release}${shared_ext}$major'
13506   ;;
13507
13508 aix[4-9]*)
13509   version_type=linux
13510   need_lib_prefix=no
13511   need_version=no
13512   hardcode_into_libs=yes
13513   if test "$host_cpu" = ia64; then
13514     # AIX 5 supports IA64
13515     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13516     shlibpath_var=LD_LIBRARY_PATH
13517   else
13518     # With GCC up to 2.95.x, collect2 would create an import file
13519     # for dependence libraries.  The import file would start with
13520     # the line `#! .'.  This would cause the generated library to
13521     # depend on `.', always an invalid library.  This was fixed in
13522     # development snapshots of GCC prior to 3.0.
13523     case $host_os in
13524       aix4 | aix4.[01] | aix4.[01].*)
13525       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13526            echo ' yes '
13527            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13528         :
13529       else
13530         can_build_shared=no
13531       fi
13532       ;;
13533     esac
13534     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13535     # soname into executable. Probably we can add versioning support to
13536     # collect2, so additional links can be useful in future.
13537     if test "$aix_use_runtimelinking" = yes; then
13538       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13539       # instead of lib<name>.a to let people know that these are not
13540       # typical AIX shared libraries.
13541       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13542     else
13543       # We preserve .a as extension for shared libraries through AIX4.2
13544       # and later when we are not doing run time linking.
13545       library_names_spec='${libname}${release}.a $libname.a'
13546       soname_spec='${libname}${release}${shared_ext}$major'
13547     fi
13548     shlibpath_var=LIBPATH
13549   fi
13550   ;;
13551
13552 amigaos*)
13553   case $host_cpu in
13554   powerpc)
13555     # Since July 2007 AmigaOS4 officially supports .so libraries.
13556     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13558     ;;
13559   m68k)
13560     library_names_spec='$libname.ixlibrary $libname.a'
13561     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13562     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'
13563     ;;
13564   esac
13565   ;;
13566
13567 beos*)
13568   library_names_spec='${libname}${shared_ext}'
13569   dynamic_linker="$host_os ld.so"
13570   shlibpath_var=LIBRARY_PATH
13571   ;;
13572
13573 bsdi[45]*)
13574   version_type=linux
13575   need_version=no
13576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13577   soname_spec='${libname}${release}${shared_ext}$major'
13578   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13579   shlibpath_var=LD_LIBRARY_PATH
13580   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13581   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13582   # the default ld.so.conf also contains /usr/contrib/lib and
13583   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13584   # libtool to hard-code these into programs
13585   ;;
13586
13587 cygwin* | mingw* | pw32* | cegcc*)
13588   version_type=windows
13589   shrext_cmds=".dll"
13590   need_version=no
13591   need_lib_prefix=no
13592
13593   case $GCC,$host_os in
13594   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13595     library_names_spec='$libname.dll.a'
13596     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13597     postinstall_cmds='base_file=`basename \${file}`~
13598       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13599       dldir=$destdir/`dirname \$dlpath`~
13600       test -d \$dldir || mkdir -p \$dldir~
13601       $install_prog $dir/$dlname \$dldir/$dlname~
13602       chmod a+x \$dldir/$dlname~
13603       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13604         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13605       fi'
13606     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13607       dlpath=$dir/\$dldll~
13608        $RM \$dlpath'
13609     shlibpath_overrides_runpath=yes
13610
13611     case $host_os in
13612     cygwin*)
13613       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13614       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13615       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13616       ;;
13617     mingw* | cegcc*)
13618       # MinGW DLLs use traditional 'lib' prefix
13619       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13620       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13621       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13622         # It is most probably a Windows format PATH printed by
13623         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13624         # path with ; separators, and with drive letters. We can handle the
13625         # drive letters (cygwin fileutils understands them), so leave them,
13626         # especially as we might pass files found there to a mingw objdump,
13627         # which wouldn't understand a cygwinified path. Ahh.
13628         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13629       else
13630         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13631       fi
13632       ;;
13633     pw32*)
13634       # pw32 DLLs use 'pw' prefix rather than 'lib'
13635       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13636       ;;
13637     esac
13638     ;;
13639
13640   *)
13641     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13642     ;;
13643   esac
13644   dynamic_linker='Win32 ld.exe'
13645   # FIXME: first we should search . and the directory the executable is in
13646   shlibpath_var=PATH
13647   ;;
13648
13649 darwin* | rhapsody*)
13650   dynamic_linker="$host_os dyld"
13651   version_type=darwin
13652   need_lib_prefix=no
13653   need_version=no
13654   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13655   soname_spec='${libname}${release}${major}$shared_ext'
13656   shlibpath_overrides_runpath=yes
13657   shlibpath_var=DYLD_LIBRARY_PATH
13658   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13659
13660   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13661   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13662   ;;
13663
13664 dgux*)
13665   version_type=linux
13666   need_lib_prefix=no
13667   need_version=no
13668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13669   soname_spec='${libname}${release}${shared_ext}$major'
13670   shlibpath_var=LD_LIBRARY_PATH
13671   ;;
13672
13673 freebsd1*)
13674   dynamic_linker=no
13675   ;;
13676
13677 freebsd* | dragonfly*)
13678   # DragonFly does not have aout.  When/if they implement a new
13679   # versioning mechanism, adjust this.
13680   if test -x /usr/bin/objformat; then
13681     objformat=`/usr/bin/objformat`
13682   else
13683     case $host_os in
13684     freebsd[123]*) objformat=aout ;;
13685     *) objformat=elf ;;
13686     esac
13687   fi
13688   version_type=freebsd-$objformat
13689   case $version_type in
13690     freebsd-elf*)
13691       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13692       need_version=no
13693       need_lib_prefix=no
13694       ;;
13695     freebsd-*)
13696       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13697       need_version=yes
13698       ;;
13699   esac
13700   shlibpath_var=LD_LIBRARY_PATH
13701   case $host_os in
13702   freebsd2*)
13703     shlibpath_overrides_runpath=yes
13704     ;;
13705   freebsd3.[01]* | freebsdelf3.[01]*)
13706     shlibpath_overrides_runpath=yes
13707     hardcode_into_libs=yes
13708     ;;
13709   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13710   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13711     shlibpath_overrides_runpath=no
13712     hardcode_into_libs=yes
13713     ;;
13714   *) # from 4.6 on, and DragonFly
13715     shlibpath_overrides_runpath=yes
13716     hardcode_into_libs=yes
13717     ;;
13718   esac
13719   ;;
13720
13721 gnu*)
13722   version_type=linux
13723   need_lib_prefix=no
13724   need_version=no
13725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13726   soname_spec='${libname}${release}${shared_ext}$major'
13727   shlibpath_var=LD_LIBRARY_PATH
13728   hardcode_into_libs=yes
13729   ;;
13730
13731 hpux9* | hpux10* | hpux11*)
13732   # Give a soname corresponding to the major version so that dld.sl refuses to
13733   # link against other versions.
13734   version_type=sunos
13735   need_lib_prefix=no
13736   need_version=no
13737   case $host_cpu in
13738   ia64*)
13739     shrext_cmds='.so'
13740     hardcode_into_libs=yes
13741     dynamic_linker="$host_os dld.so"
13742     shlibpath_var=LD_LIBRARY_PATH
13743     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13744     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13745     soname_spec='${libname}${release}${shared_ext}$major'
13746     if test "X$HPUX_IA64_MODE" = X32; then
13747       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13748     else
13749       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13750     fi
13751     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13752     ;;
13753   hppa*64*)
13754     shrext_cmds='.sl'
13755     hardcode_into_libs=yes
13756     dynamic_linker="$host_os dld.sl"
13757     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13758     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13759     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13760     soname_spec='${libname}${release}${shared_ext}$major'
13761     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13762     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13763     ;;
13764   *)
13765     shrext_cmds='.sl'
13766     dynamic_linker="$host_os dld.sl"
13767     shlibpath_var=SHLIB_PATH
13768     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13769     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13770     soname_spec='${libname}${release}${shared_ext}$major'
13771     ;;
13772   esac
13773   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13774   postinstall_cmds='chmod 555 $lib'
13775   # or fails outright, so override atomically:
13776   install_override_mode=555
13777   ;;
13778
13779 interix[3-9]*)
13780   version_type=linux
13781   need_lib_prefix=no
13782   need_version=no
13783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13784   soname_spec='${libname}${release}${shared_ext}$major'
13785   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13786   shlibpath_var=LD_LIBRARY_PATH
13787   shlibpath_overrides_runpath=no
13788   hardcode_into_libs=yes
13789   ;;
13790
13791 irix5* | irix6* | nonstopux*)
13792   case $host_os in
13793     nonstopux*) version_type=nonstopux ;;
13794     *)
13795         if test "$lt_cv_prog_gnu_ld" = yes; then
13796                 version_type=linux
13797         else
13798                 version_type=irix
13799         fi ;;
13800   esac
13801   need_lib_prefix=no
13802   need_version=no
13803   soname_spec='${libname}${release}${shared_ext}$major'
13804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13805   case $host_os in
13806   irix5* | nonstopux*)
13807     libsuff= shlibsuff=
13808     ;;
13809   *)
13810     case $LD in # libtool.m4 will add one of these switches to LD
13811     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13812       libsuff= shlibsuff= libmagic=32-bit;;
13813     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13814       libsuff=32 shlibsuff=N32 libmagic=N32;;
13815     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13816       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13817     *) libsuff= shlibsuff= libmagic=never-match;;
13818     esac
13819     ;;
13820   esac
13821   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13822   shlibpath_overrides_runpath=no
13823   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13824   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13825   hardcode_into_libs=yes
13826   ;;
13827
13828 # No shared lib support for Linux oldld, aout, or coff.
13829 linux*oldld* | linux*aout* | linux*coff*)
13830   dynamic_linker=no
13831   ;;
13832
13833 # This must be Linux ELF.
13834 linux* | k*bsd*-gnu)
13835   version_type=linux
13836   need_lib_prefix=no
13837   need_version=no
13838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13839   soname_spec='${libname}${release}${shared_ext}$major'
13840   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13841   shlibpath_var=LD_LIBRARY_PATH
13842   shlibpath_overrides_runpath=no
13843   # Some binutils ld are patched to set DT_RUNPATH
13844   save_LDFLAGS=$LDFLAGS
13845   save_libdir=$libdir
13846   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13847        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h.  */
13850
13851 int
13852 main ()
13853 {
13854
13855   ;
13856   return 0;
13857 }
13858 _ACEOF
13859 if ac_fn_c_try_link "$LINENO"; then :
13860   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13861   shlibpath_overrides_runpath=yes
13862 fi
13863 fi
13864 rm -f core conftest.err conftest.$ac_objext \
13865     conftest$ac_exeext conftest.$ac_ext
13866   LDFLAGS=$save_LDFLAGS
13867   libdir=$save_libdir
13868
13869   # This implies no fast_install, which is unacceptable.
13870   # Some rework will be needed to allow for fast_install
13871   # before this can be enabled.
13872   hardcode_into_libs=yes
13873
13874   # Append ld.so.conf contents to the search path
13875   if test -f /etc/ld.so.conf; then
13876     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' ' '`
13877     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13878   fi
13879
13880   # We used to test for /lib/ld.so.1 and disable shared libraries on
13881   # powerpc, because MkLinux only supported shared libraries with the
13882   # GNU dynamic linker.  Since this was broken with cross compilers,
13883   # most powerpc-linux boxes support dynamic linking these days and
13884   # people can always --disable-shared, the test was removed, and we
13885   # assume the GNU/Linux dynamic linker is in use.
13886   dynamic_linker='GNU/Linux ld.so'
13887   ;;
13888
13889 netbsd*)
13890   version_type=sunos
13891   need_lib_prefix=no
13892   need_version=no
13893   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13894     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13895     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13896     dynamic_linker='NetBSD (a.out) ld.so'
13897   else
13898     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13899     soname_spec='${libname}${release}${shared_ext}$major'
13900     dynamic_linker='NetBSD ld.elf_so'
13901   fi
13902   shlibpath_var=LD_LIBRARY_PATH
13903   shlibpath_overrides_runpath=yes
13904   hardcode_into_libs=yes
13905   ;;
13906
13907 newsos6)
13908   version_type=linux
13909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13910   shlibpath_var=LD_LIBRARY_PATH
13911   shlibpath_overrides_runpath=yes
13912   ;;
13913
13914 *nto* | *qnx*)
13915   version_type=qnx
13916   need_lib_prefix=no
13917   need_version=no
13918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13919   soname_spec='${libname}${release}${shared_ext}$major'
13920   shlibpath_var=LD_LIBRARY_PATH
13921   shlibpath_overrides_runpath=no
13922   hardcode_into_libs=yes
13923   dynamic_linker='ldqnx.so'
13924   ;;
13925
13926 openbsd*)
13927   version_type=sunos
13928   sys_lib_dlsearch_path_spec="/usr/lib"
13929   need_lib_prefix=no
13930   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13931   case $host_os in
13932     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
13933     *)                          need_version=no  ;;
13934   esac
13935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13936   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13937   shlibpath_var=LD_LIBRARY_PATH
13938   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13939     case $host_os in
13940       openbsd2.[89] | openbsd2.[89].*)
13941         shlibpath_overrides_runpath=no
13942         ;;
13943       *)
13944         shlibpath_overrides_runpath=yes
13945         ;;
13946       esac
13947   else
13948     shlibpath_overrides_runpath=yes
13949   fi
13950   ;;
13951
13952 os2*)
13953   libname_spec='$name'
13954   shrext_cmds=".dll"
13955   need_lib_prefix=no
13956   library_names_spec='$libname${shared_ext} $libname.a'
13957   dynamic_linker='OS/2 ld.exe'
13958   shlibpath_var=LIBPATH
13959   ;;
13960
13961 osf3* | osf4* | osf5*)
13962   version_type=osf
13963   need_lib_prefix=no
13964   need_version=no
13965   soname_spec='${libname}${release}${shared_ext}$major'
13966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13967   shlibpath_var=LD_LIBRARY_PATH
13968   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13969   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13970   ;;
13971
13972 rdos*)
13973   dynamic_linker=no
13974   ;;
13975
13976 solaris*)
13977   version_type=linux
13978   need_lib_prefix=no
13979   need_version=no
13980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13981   soname_spec='${libname}${release}${shared_ext}$major'
13982   shlibpath_var=LD_LIBRARY_PATH
13983   shlibpath_overrides_runpath=yes
13984   hardcode_into_libs=yes
13985   # ldd complains unless libraries are executable
13986   postinstall_cmds='chmod +x $lib'
13987   ;;
13988
13989 sunos4*)
13990   version_type=sunos
13991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13992   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13993   shlibpath_var=LD_LIBRARY_PATH
13994   shlibpath_overrides_runpath=yes
13995   if test "$with_gnu_ld" = yes; then
13996     need_lib_prefix=no
13997   fi
13998   need_version=yes
13999   ;;
14000
14001 sysv4 | sysv4.3*)
14002   version_type=linux
14003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14004   soname_spec='${libname}${release}${shared_ext}$major'
14005   shlibpath_var=LD_LIBRARY_PATH
14006   case $host_vendor in
14007     sni)
14008       shlibpath_overrides_runpath=no
14009       need_lib_prefix=no
14010       runpath_var=LD_RUN_PATH
14011       ;;
14012     siemens)
14013       need_lib_prefix=no
14014       ;;
14015     motorola)
14016       need_lib_prefix=no
14017       need_version=no
14018       shlibpath_overrides_runpath=no
14019       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14020       ;;
14021   esac
14022   ;;
14023
14024 sysv4*MP*)
14025   if test -d /usr/nec ;then
14026     version_type=linux
14027     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14028     soname_spec='$libname${shared_ext}.$major'
14029     shlibpath_var=LD_LIBRARY_PATH
14030   fi
14031   ;;
14032
14033 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14034   version_type=freebsd-elf
14035   need_lib_prefix=no
14036   need_version=no
14037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14038   soname_spec='${libname}${release}${shared_ext}$major'
14039   shlibpath_var=LD_LIBRARY_PATH
14040   shlibpath_overrides_runpath=yes
14041   hardcode_into_libs=yes
14042   if test "$with_gnu_ld" = yes; then
14043     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14044   else
14045     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14046     case $host_os in
14047       sco3.2v5*)
14048         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14049         ;;
14050     esac
14051   fi
14052   sys_lib_dlsearch_path_spec='/usr/lib'
14053   ;;
14054
14055 tpf*)
14056   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14057   version_type=linux
14058   need_lib_prefix=no
14059   need_version=no
14060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14061   shlibpath_var=LD_LIBRARY_PATH
14062   shlibpath_overrides_runpath=no
14063   hardcode_into_libs=yes
14064   ;;
14065
14066 uts4*)
14067   version_type=linux
14068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14069   soname_spec='${libname}${release}${shared_ext}$major'
14070   shlibpath_var=LD_LIBRARY_PATH
14071   ;;
14072
14073 *)
14074   dynamic_linker=no
14075   ;;
14076 esac
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14078 $as_echo "$dynamic_linker" >&6; }
14079 test "$dynamic_linker" = no && can_build_shared=no
14080
14081 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14082 if test "$GCC" = yes; then
14083   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14084 fi
14085
14086 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14087   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14088 fi
14089 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14090   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14091 fi
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14185 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14186 hardcode_action=
14187 if test -n "$hardcode_libdir_flag_spec" ||
14188    test -n "$runpath_var" ||
14189    test "X$hardcode_automatic" = "Xyes" ; then
14190
14191   # We can hardcode non-existent directories.
14192   if test "$hardcode_direct" != no &&
14193      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14194      # have to relink, otherwise we might link with an installed library
14195      # when we should be linking with a yet-to-be-installed one
14196      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14197      test "$hardcode_minus_L" != no; then
14198     # Linking always hardcodes the temporary library directory.
14199     hardcode_action=relink
14200   else
14201     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14202     hardcode_action=immediate
14203   fi
14204 else
14205   # We cannot hardcode anything, or else we can only hardcode existing
14206   # directories.
14207   hardcode_action=unsupported
14208 fi
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14210 $as_echo "$hardcode_action" >&6; }
14211
14212 if test "$hardcode_action" = relink ||
14213    test "$inherit_rpath" = yes; then
14214   # Fast installation is not supported
14215   enable_fast_install=no
14216 elif test "$shlibpath_overrides_runpath" = yes ||
14217      test "$enable_shared" = no; then
14218   # Fast installation is not necessary
14219   enable_fast_install=needless
14220 fi
14221
14222
14223
14224
14225
14226
14227   if test "x$enable_dlopen" != xyes; then
14228   enable_dlopen=unknown
14229   enable_dlopen_self=unknown
14230   enable_dlopen_self_static=unknown
14231 else
14232   lt_cv_dlopen=no
14233   lt_cv_dlopen_libs=
14234
14235   case $host_os in
14236   beos*)
14237     lt_cv_dlopen="load_add_on"
14238     lt_cv_dlopen_libs=
14239     lt_cv_dlopen_self=yes
14240     ;;
14241
14242   mingw* | pw32* | cegcc*)
14243     lt_cv_dlopen="LoadLibrary"
14244     lt_cv_dlopen_libs=
14245     ;;
14246
14247   cygwin*)
14248     lt_cv_dlopen="dlopen"
14249     lt_cv_dlopen_libs=
14250     ;;
14251
14252   darwin*)
14253   # if libdl is installed we need to link against it
14254     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14255 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14256 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14257   $as_echo_n "(cached) " >&6
14258 else
14259   ac_check_lib_save_LIBS=$LIBS
14260 LIBS="-ldl  $LIBS"
14261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h.  */
14263
14264 /* Override any GCC internal prototype to avoid an error.
14265    Use char because int might match the return type of a GCC
14266    builtin and then its argument prototype would still apply.  */
14267 #ifdef __cplusplus
14268 extern "C"
14269 #endif
14270 char dlopen ();
14271 int
14272 main ()
14273 {
14274 return dlopen ();
14275   ;
14276   return 0;
14277 }
14278 _ACEOF
14279 if ac_fn_c_try_link "$LINENO"; then :
14280   ac_cv_lib_dl_dlopen=yes
14281 else
14282   ac_cv_lib_dl_dlopen=no
14283 fi
14284 rm -f core conftest.err conftest.$ac_objext \
14285     conftest$ac_exeext conftest.$ac_ext
14286 LIBS=$ac_check_lib_save_LIBS
14287 fi
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14289 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14290 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14291   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14292 else
14293
14294     lt_cv_dlopen="dyld"
14295     lt_cv_dlopen_libs=
14296     lt_cv_dlopen_self=yes
14297
14298 fi
14299
14300     ;;
14301
14302   *)
14303     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14304 if test "x$ac_cv_func_shl_load" = x""yes; then :
14305   lt_cv_dlopen="shl_load"
14306 else
14307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14308 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14309 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
14310   $as_echo_n "(cached) " >&6
14311 else
14312   ac_check_lib_save_LIBS=$LIBS
14313 LIBS="-ldld  $LIBS"
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h.  */
14316
14317 /* Override any GCC internal prototype to avoid an error.
14318    Use char because int might match the return type of a GCC
14319    builtin and then its argument prototype would still apply.  */
14320 #ifdef __cplusplus
14321 extern "C"
14322 #endif
14323 char shl_load ();
14324 int
14325 main ()
14326 {
14327 return shl_load ();
14328   ;
14329   return 0;
14330 }
14331 _ACEOF
14332 if ac_fn_c_try_link "$LINENO"; then :
14333   ac_cv_lib_dld_shl_load=yes
14334 else
14335   ac_cv_lib_dld_shl_load=no
14336 fi
14337 rm -f core conftest.err conftest.$ac_objext \
14338     conftest$ac_exeext conftest.$ac_ext
14339 LIBS=$ac_check_lib_save_LIBS
14340 fi
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14342 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14343 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
14344   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14345 else
14346   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14347 if test "x$ac_cv_func_dlopen" = x""yes; then :
14348   lt_cv_dlopen="dlopen"
14349 else
14350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14351 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14352 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14353   $as_echo_n "(cached) " >&6
14354 else
14355   ac_check_lib_save_LIBS=$LIBS
14356 LIBS="-ldl  $LIBS"
14357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358 /* end confdefs.h.  */
14359
14360 /* Override any GCC internal prototype to avoid an error.
14361    Use char because int might match the return type of a GCC
14362    builtin and then its argument prototype would still apply.  */
14363 #ifdef __cplusplus
14364 extern "C"
14365 #endif
14366 char dlopen ();
14367 int
14368 main ()
14369 {
14370 return dlopen ();
14371   ;
14372   return 0;
14373 }
14374 _ACEOF
14375 if ac_fn_c_try_link "$LINENO"; then :
14376   ac_cv_lib_dl_dlopen=yes
14377 else
14378   ac_cv_lib_dl_dlopen=no
14379 fi
14380 rm -f core conftest.err conftest.$ac_objext \
14381     conftest$ac_exeext conftest.$ac_ext
14382 LIBS=$ac_check_lib_save_LIBS
14383 fi
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14385 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14386 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14387   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14388 else
14389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14390 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14391 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
14392   $as_echo_n "(cached) " >&6
14393 else
14394   ac_check_lib_save_LIBS=$LIBS
14395 LIBS="-lsvld  $LIBS"
14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h.  */
14398
14399 /* Override any GCC internal prototype to avoid an error.
14400    Use char because int might match the return type of a GCC
14401    builtin and then its argument prototype would still apply.  */
14402 #ifdef __cplusplus
14403 extern "C"
14404 #endif
14405 char dlopen ();
14406 int
14407 main ()
14408 {
14409 return dlopen ();
14410   ;
14411   return 0;
14412 }
14413 _ACEOF
14414 if ac_fn_c_try_link "$LINENO"; then :
14415   ac_cv_lib_svld_dlopen=yes
14416 else
14417   ac_cv_lib_svld_dlopen=no
14418 fi
14419 rm -f core conftest.err conftest.$ac_objext \
14420     conftest$ac_exeext conftest.$ac_ext
14421 LIBS=$ac_check_lib_save_LIBS
14422 fi
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14424 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14425 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
14426   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14427 else
14428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14429 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14430 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
14431   $as_echo_n "(cached) " >&6
14432 else
14433   ac_check_lib_save_LIBS=$LIBS
14434 LIBS="-ldld  $LIBS"
14435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14436 /* end confdefs.h.  */
14437
14438 /* Override any GCC internal prototype to avoid an error.
14439    Use char because int might match the return type of a GCC
14440    builtin and then its argument prototype would still apply.  */
14441 #ifdef __cplusplus
14442 extern "C"
14443 #endif
14444 char dld_link ();
14445 int
14446 main ()
14447 {
14448 return dld_link ();
14449   ;
14450   return 0;
14451 }
14452 _ACEOF
14453 if ac_fn_c_try_link "$LINENO"; then :
14454   ac_cv_lib_dld_dld_link=yes
14455 else
14456   ac_cv_lib_dld_dld_link=no
14457 fi
14458 rm -f core conftest.err conftest.$ac_objext \
14459     conftest$ac_exeext conftest.$ac_ext
14460 LIBS=$ac_check_lib_save_LIBS
14461 fi
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14463 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14464 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
14465   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14466 fi
14467
14468
14469 fi
14470
14471
14472 fi
14473
14474
14475 fi
14476
14477
14478 fi
14479
14480
14481 fi
14482
14483     ;;
14484   esac
14485
14486   if test "x$lt_cv_dlopen" != xno; then
14487     enable_dlopen=yes
14488   else
14489     enable_dlopen=no
14490   fi
14491
14492   case $lt_cv_dlopen in
14493   dlopen)
14494     save_CPPFLAGS="$CPPFLAGS"
14495     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14496
14497     save_LDFLAGS="$LDFLAGS"
14498     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14499
14500     save_LIBS="$LIBS"
14501     LIBS="$lt_cv_dlopen_libs $LIBS"
14502
14503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14504 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14505 if test "${lt_cv_dlopen_self+set}" = set; then :
14506   $as_echo_n "(cached) " >&6
14507 else
14508           if test "$cross_compiling" = yes; then :
14509   lt_cv_dlopen_self=cross
14510 else
14511   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14512   lt_status=$lt_dlunknown
14513   cat > conftest.$ac_ext <<_LT_EOF
14514 #line 14514 "configure"
14515 #include "confdefs.h"
14516
14517 #if HAVE_DLFCN_H
14518 #include <dlfcn.h>
14519 #endif
14520
14521 #include <stdio.h>
14522
14523 #ifdef RTLD_GLOBAL
14524 #  define LT_DLGLOBAL           RTLD_GLOBAL
14525 #else
14526 #  ifdef DL_GLOBAL
14527 #    define LT_DLGLOBAL         DL_GLOBAL
14528 #  else
14529 #    define LT_DLGLOBAL         0
14530 #  endif
14531 #endif
14532
14533 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14534    find out it does not work in some platform. */
14535 #ifndef LT_DLLAZY_OR_NOW
14536 #  ifdef RTLD_LAZY
14537 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14538 #  else
14539 #    ifdef DL_LAZY
14540 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14541 #    else
14542 #      ifdef RTLD_NOW
14543 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14544 #      else
14545 #        ifdef DL_NOW
14546 #          define LT_DLLAZY_OR_NOW      DL_NOW
14547 #        else
14548 #          define LT_DLLAZY_OR_NOW      0
14549 #        endif
14550 #      endif
14551 #    endif
14552 #  endif
14553 #endif
14554
14555 void fnord() { int i=42;}
14556 int main ()
14557 {
14558   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14559   int status = $lt_dlunknown;
14560
14561   if (self)
14562     {
14563       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14564       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14565       /* dlclose (self); */
14566     }
14567   else
14568     puts (dlerror ());
14569
14570   return status;
14571 }
14572 _LT_EOF
14573   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14574   (eval $ac_link) 2>&5
14575   ac_status=$?
14576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14577   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14578     (./conftest; exit; ) >&5 2>/dev/null
14579     lt_status=$?
14580     case x$lt_status in
14581       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14582       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14583       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14584     esac
14585   else :
14586     # compilation failed
14587     lt_cv_dlopen_self=no
14588   fi
14589 fi
14590 rm -fr conftest*
14591
14592
14593 fi
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14595 $as_echo "$lt_cv_dlopen_self" >&6; }
14596
14597     if test "x$lt_cv_dlopen_self" = xyes; then
14598       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14599       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14600 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14601 if test "${lt_cv_dlopen_self_static+set}" = set; then :
14602   $as_echo_n "(cached) " >&6
14603 else
14604           if test "$cross_compiling" = yes; then :
14605   lt_cv_dlopen_self_static=cross
14606 else
14607   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14608   lt_status=$lt_dlunknown
14609   cat > conftest.$ac_ext <<_LT_EOF
14610 #line 14610 "configure"
14611 #include "confdefs.h"
14612
14613 #if HAVE_DLFCN_H
14614 #include <dlfcn.h>
14615 #endif
14616
14617 #include <stdio.h>
14618
14619 #ifdef RTLD_GLOBAL
14620 #  define LT_DLGLOBAL           RTLD_GLOBAL
14621 #else
14622 #  ifdef DL_GLOBAL
14623 #    define LT_DLGLOBAL         DL_GLOBAL
14624 #  else
14625 #    define LT_DLGLOBAL         0
14626 #  endif
14627 #endif
14628
14629 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14630    find out it does not work in some platform. */
14631 #ifndef LT_DLLAZY_OR_NOW
14632 #  ifdef RTLD_LAZY
14633 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14634 #  else
14635 #    ifdef DL_LAZY
14636 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14637 #    else
14638 #      ifdef RTLD_NOW
14639 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14640 #      else
14641 #        ifdef DL_NOW
14642 #          define LT_DLLAZY_OR_NOW      DL_NOW
14643 #        else
14644 #          define LT_DLLAZY_OR_NOW      0
14645 #        endif
14646 #      endif
14647 #    endif
14648 #  endif
14649 #endif
14650
14651 void fnord() { int i=42;}
14652 int main ()
14653 {
14654   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14655   int status = $lt_dlunknown;
14656
14657   if (self)
14658     {
14659       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14660       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14661       /* dlclose (self); */
14662     }
14663   else
14664     puts (dlerror ());
14665
14666   return status;
14667 }
14668 _LT_EOF
14669   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14670   (eval $ac_link) 2>&5
14671   ac_status=$?
14672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14673   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14674     (./conftest; exit; ) >&5 2>/dev/null
14675     lt_status=$?
14676     case x$lt_status in
14677       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14678       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14679       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14680     esac
14681   else :
14682     # compilation failed
14683     lt_cv_dlopen_self_static=no
14684   fi
14685 fi
14686 rm -fr conftest*
14687
14688
14689 fi
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14691 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14692     fi
14693
14694     CPPFLAGS="$save_CPPFLAGS"
14695     LDFLAGS="$save_LDFLAGS"
14696     LIBS="$save_LIBS"
14697     ;;
14698   esac
14699
14700   case $lt_cv_dlopen_self in
14701   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14702   *) enable_dlopen_self=unknown ;;
14703   esac
14704
14705   case $lt_cv_dlopen_self_static in
14706   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14707   *) enable_dlopen_self_static=unknown ;;
14708   esac
14709 fi
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727 striplib=
14728 old_striplib=
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14730 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14731 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14732   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14733   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14735 $as_echo "yes" >&6; }
14736 else
14737 # FIXME - insert some real tests, host_os isn't really good enough
14738   case $host_os in
14739   darwin*)
14740     if test -n "$STRIP" ; then
14741       striplib="$STRIP -x"
14742       old_striplib="$STRIP -S"
14743       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14744 $as_echo "yes" >&6; }
14745     else
14746       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14747 $as_echo "no" >&6; }
14748     fi
14749     ;;
14750   *)
14751     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14752 $as_echo "no" >&6; }
14753     ;;
14754   esac
14755 fi
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768   # Report which library types will actually be built
14769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14770 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14772 $as_echo "$can_build_shared" >&6; }
14773
14774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14775 $as_echo_n "checking whether to build shared libraries... " >&6; }
14776   test "$can_build_shared" = "no" && enable_shared=no
14777
14778   # On AIX, shared libraries and static libraries use the same namespace, and
14779   # are all built from PIC.
14780   case $host_os in
14781   aix3*)
14782     test "$enable_shared" = yes && enable_static=no
14783     if test -n "$RANLIB"; then
14784       archive_cmds="$archive_cmds~\$RANLIB \$lib"
14785       postinstall_cmds='$RANLIB $lib'
14786     fi
14787     ;;
14788
14789   aix[4-9]*)
14790     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14791       test "$enable_shared" = yes && enable_static=no
14792     fi
14793     ;;
14794   esac
14795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14796 $as_echo "$enable_shared" >&6; }
14797
14798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14799 $as_echo_n "checking whether to build static libraries... " >&6; }
14800   # Make sure either enable_shared or enable_static is yes.
14801   test "$enable_shared" = yes || enable_static=yes
14802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14803 $as_echo "$enable_static" >&6; }
14804
14805
14806
14807
14808 fi
14809 ac_ext=c
14810 ac_cpp='$CPP $CPPFLAGS'
14811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14814
14815 CC="$lt_save_CC"
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829         ac_config_commands="$ac_config_commands libtool"
14830
14831
14832
14833
14834 # Only expand once:
14835
14836
14837
14838 if test -n "$ac_tool_prefix"; then
14839   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14840 set dummy ${ac_tool_prefix}windres; ac_word=$2
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14842 $as_echo_n "checking for $ac_word... " >&6; }
14843 if test "${ac_cv_prog_RC+set}" = set; then :
14844   $as_echo_n "(cached) " >&6
14845 else
14846   if test -n "$RC"; then
14847   ac_cv_prog_RC="$RC" # Let the user override the test.
14848 else
14849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14850 for as_dir in $PATH
14851 do
14852   IFS=$as_save_IFS
14853   test -z "$as_dir" && as_dir=.
14854     for ac_exec_ext in '' $ac_executable_extensions; do
14855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14856     ac_cv_prog_RC="${ac_tool_prefix}windres"
14857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14858     break 2
14859   fi
14860 done
14861   done
14862 IFS=$as_save_IFS
14863
14864 fi
14865 fi
14866 RC=$ac_cv_prog_RC
14867 if test -n "$RC"; then
14868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
14869 $as_echo "$RC" >&6; }
14870 else
14871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14872 $as_echo "no" >&6; }
14873 fi
14874
14875
14876 fi
14877 if test -z "$ac_cv_prog_RC"; then
14878   ac_ct_RC=$RC
14879   # Extract the first word of "windres", so it can be a program name with args.
14880 set dummy windres; ac_word=$2
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14882 $as_echo_n "checking for $ac_word... " >&6; }
14883 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
14884   $as_echo_n "(cached) " >&6
14885 else
14886   if test -n "$ac_ct_RC"; then
14887   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
14888 else
14889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14890 for as_dir in $PATH
14891 do
14892   IFS=$as_save_IFS
14893   test -z "$as_dir" && as_dir=.
14894     for ac_exec_ext in '' $ac_executable_extensions; do
14895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14896     ac_cv_prog_ac_ct_RC="windres"
14897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14898     break 2
14899   fi
14900 done
14901   done
14902 IFS=$as_save_IFS
14903
14904 fi
14905 fi
14906 ac_ct_RC=$ac_cv_prog_ac_ct_RC
14907 if test -n "$ac_ct_RC"; then
14908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
14909 $as_echo "$ac_ct_RC" >&6; }
14910 else
14911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14912 $as_echo "no" >&6; }
14913 fi
14914
14915   if test "x$ac_ct_RC" = x; then
14916     RC=""
14917   else
14918     case $cross_compiling:$ac_tool_warned in
14919 yes:)
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14922 ac_tool_warned=yes ;;
14923 esac
14924     RC=$ac_ct_RC
14925   fi
14926 else
14927   RC="$ac_cv_prog_RC"
14928 fi
14929
14930
14931
14932
14933 # Source file extension for RC test sources.
14934 ac_ext=rc
14935
14936 # Object file extension for compiled RC test sources.
14937 objext=o
14938 objext_RC=$objext
14939
14940 # Code to be used in simple compile tests
14941 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
14942
14943 # Code to be used in simple link tests
14944 lt_simple_link_test_code="$lt_simple_compile_test_code"
14945
14946 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14947
14948
14949
14950
14951
14952
14953 # If no C compiler was specified, use CC.
14954 LTCC=${LTCC-"$CC"}
14955
14956 # If no C compiler flags were specified, use CFLAGS.
14957 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14958
14959 # Allow CC to be a program name with arguments.
14960 compiler=$CC
14961
14962
14963 # save warnings/boilerplate of simple test code
14964 ac_outfile=conftest.$ac_objext
14965 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14966 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14967 _lt_compiler_boilerplate=`cat conftest.err`
14968 $RM conftest*
14969
14970 ac_outfile=conftest.$ac_objext
14971 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14972 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14973 _lt_linker_boilerplate=`cat conftest.err`
14974 $RM -r conftest*
14975
14976
14977 # Allow CC to be a program name with arguments.
14978 lt_save_CC="$CC"
14979 lt_save_GCC=$GCC
14980 GCC=
14981 CC=${RC-"windres"}
14982 compiler=$CC
14983 compiler_RC=$CC
14984 for cc_temp in $compiler""; do
14985   case $cc_temp in
14986     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14987     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14988     \-*) ;;
14989     *) break;;
14990   esac
14991 done
14992 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14993
14994 lt_cv_prog_compiler_c_o_RC=yes
14995
14996 if test -n "$compiler"; then
14997   :
14998
14999
15000
15001 fi
15002
15003 GCC=$lt_save_GCC
15004 ac_ext=c
15005 ac_cpp='$CPP $CPPFLAGS'
15006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15009
15010 CC="$lt_save_CC"
15011
15012
15013 case "$host_os" in
15014   # On Cygwin, without -no-undefined, a warning is emitted and only a static
15015   # library is built.
15016   beos* | mingw* | cygwin*) LTNOUNDEF='-no-undefined' ;;
15017   *) LTNOUNDEF='' ;;
15018 esac
15019
15020
15021 case "$host_os" in
15022   mingw* | cygwin*) is_woe32=yes ;;
15023   *) is_woe32=no ;;
15024 esac
15025  if test $is_woe32 = yes; then
15026   WOE32_TRUE=
15027   WOE32_FALSE='#'
15028 else
15029   WOE32_TRUE='#'
15030   WOE32_FALSE=
15031 fi
15032
15033
15034
15035
15036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15037 $as_echo_n "checking whether NLS is requested... " >&6; }
15038     # Check whether --enable-nls was given.
15039 if test "${enable_nls+set}" = set; then :
15040   enableval=$enable_nls; USE_NLS=$enableval
15041 else
15042   USE_NLS=yes
15043 fi
15044
15045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15046 $as_echo "$USE_NLS" >&6; }
15047
15048
15049
15050
15051       GETTEXT_MACRO_VERSION=0.18
15052
15053
15054
15055
15056 # Prepare PATH_SEPARATOR.
15057 # The user is always right.
15058 if test "${PATH_SEPARATOR+set}" != set; then
15059   echo "#! /bin/sh" >conf$$.sh
15060   echo  "exit 0"   >>conf$$.sh
15061   chmod +x conf$$.sh
15062   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15063     PATH_SEPARATOR=';'
15064   else
15065     PATH_SEPARATOR=:
15066   fi
15067   rm -f conf$$.sh
15068 fi
15069
15070 # Find out how to test for executable files. Don't use a zero-byte file,
15071 # as systems may use methods other than mode bits to determine executability.
15072 cat >conf$$.file <<_ASEOF
15073 #! /bin/sh
15074 exit 0
15075 _ASEOF
15076 chmod +x conf$$.file
15077 if test -x conf$$.file >/dev/null 2>&1; then
15078   ac_executable_p="test -x"
15079 else
15080   ac_executable_p="test -f"
15081 fi
15082 rm -f conf$$.file
15083
15084 # Extract the first word of "msgfmt", so it can be a program name with args.
15085 set dummy msgfmt; ac_word=$2
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15087 $as_echo_n "checking for $ac_word... " >&6; }
15088 if test "${ac_cv_path_MSGFMT+set}" = set; then :
15089   $as_echo_n "(cached) " >&6
15090 else
15091   case "$MSGFMT" in
15092   [\\/]* | ?:[\\/]*)
15093     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15094     ;;
15095   *)
15096     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15097     for ac_dir in $PATH; do
15098       IFS="$ac_save_IFS"
15099       test -z "$ac_dir" && ac_dir=.
15100       for ac_exec_ext in '' $ac_executable_extensions; do
15101         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15102           echo "$as_me: trying $ac_dir/$ac_word..." >&5
15103           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
15104      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15105             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15106             break 2
15107           fi
15108         fi
15109       done
15110     done
15111     IFS="$ac_save_IFS"
15112   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15113     ;;
15114 esac
15115 fi
15116 MSGFMT="$ac_cv_path_MSGFMT"
15117 if test "$MSGFMT" != ":"; then
15118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15119 $as_echo "$MSGFMT" >&6; }
15120 else
15121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15122 $as_echo "no" >&6; }
15123 fi
15124
15125   # Extract the first word of "gmsgfmt", so it can be a program name with args.
15126 set dummy gmsgfmt; ac_word=$2
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15128 $as_echo_n "checking for $ac_word... " >&6; }
15129 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15130   $as_echo_n "(cached) " >&6
15131 else
15132   case $GMSGFMT in
15133   [\\/]* | ?:[\\/]*)
15134   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15135   ;;
15136   *)
15137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15138 for as_dir in $PATH
15139 do
15140   IFS=$as_save_IFS
15141   test -z "$as_dir" && as_dir=.
15142     for ac_exec_ext in '' $ac_executable_extensions; do
15143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15144     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15146     break 2
15147   fi
15148 done
15149   done
15150 IFS=$as_save_IFS
15151
15152   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15153   ;;
15154 esac
15155 fi
15156 GMSGFMT=$ac_cv_path_GMSGFMT
15157 if test -n "$GMSGFMT"; then
15158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15159 $as_echo "$GMSGFMT" >&6; }
15160 else
15161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15162 $as_echo "no" >&6; }
15163 fi
15164
15165
15166
15167     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15168     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
15169     *) MSGFMT_015=$MSGFMT ;;
15170   esac
15171
15172   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15173     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
15174     *) GMSGFMT_015=$GMSGFMT ;;
15175   esac
15176
15177
15178
15179 # Prepare PATH_SEPARATOR.
15180 # The user is always right.
15181 if test "${PATH_SEPARATOR+set}" != set; then
15182   echo "#! /bin/sh" >conf$$.sh
15183   echo  "exit 0"   >>conf$$.sh
15184   chmod +x conf$$.sh
15185   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15186     PATH_SEPARATOR=';'
15187   else
15188     PATH_SEPARATOR=:
15189   fi
15190   rm -f conf$$.sh
15191 fi
15192
15193 # Find out how to test for executable files. Don't use a zero-byte file,
15194 # as systems may use methods other than mode bits to determine executability.
15195 cat >conf$$.file <<_ASEOF
15196 #! /bin/sh
15197 exit 0
15198 _ASEOF
15199 chmod +x conf$$.file
15200 if test -x conf$$.file >/dev/null 2>&1; then
15201   ac_executable_p="test -x"
15202 else
15203   ac_executable_p="test -f"
15204 fi
15205 rm -f conf$$.file
15206
15207 # Extract the first word of "xgettext", so it can be a program name with args.
15208 set dummy xgettext; ac_word=$2
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15210 $as_echo_n "checking for $ac_word... " >&6; }
15211 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15212   $as_echo_n "(cached) " >&6
15213 else
15214   case "$XGETTEXT" in
15215   [\\/]* | ?:[\\/]*)
15216     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15217     ;;
15218   *)
15219     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15220     for ac_dir in $PATH; do
15221       IFS="$ac_save_IFS"
15222       test -z "$ac_dir" && ac_dir=.
15223       for ac_exec_ext in '' $ac_executable_extensions; do
15224         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15225           echo "$as_me: trying $ac_dir/$ac_word..." >&5
15226           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
15227      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15228             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15229             break 2
15230           fi
15231         fi
15232       done
15233     done
15234     IFS="$ac_save_IFS"
15235   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15236     ;;
15237 esac
15238 fi
15239 XGETTEXT="$ac_cv_path_XGETTEXT"
15240 if test "$XGETTEXT" != ":"; then
15241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15242 $as_echo "$XGETTEXT" >&6; }
15243 else
15244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15245 $as_echo "no" >&6; }
15246 fi
15247
15248     rm -f messages.po
15249
15250     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15251     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
15252     *) XGETTEXT_015=$XGETTEXT ;;
15253   esac
15254
15255
15256
15257 # Prepare PATH_SEPARATOR.
15258 # The user is always right.
15259 if test "${PATH_SEPARATOR+set}" != set; then
15260   echo "#! /bin/sh" >conf$$.sh
15261   echo  "exit 0"   >>conf$$.sh
15262   chmod +x conf$$.sh
15263   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15264     PATH_SEPARATOR=';'
15265   else
15266     PATH_SEPARATOR=:
15267   fi
15268   rm -f conf$$.sh
15269 fi
15270
15271 # Find out how to test for executable files. Don't use a zero-byte file,
15272 # as systems may use methods other than mode bits to determine executability.
15273 cat >conf$$.file <<_ASEOF
15274 #! /bin/sh
15275 exit 0
15276 _ASEOF
15277 chmod +x conf$$.file
15278 if test -x conf$$.file >/dev/null 2>&1; then
15279   ac_executable_p="test -x"
15280 else
15281   ac_executable_p="test -f"
15282 fi
15283 rm -f conf$$.file
15284
15285 # Extract the first word of "msgmerge", so it can be a program name with args.
15286 set dummy msgmerge; ac_word=$2
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15288 $as_echo_n "checking for $ac_word... " >&6; }
15289 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
15290   $as_echo_n "(cached) " >&6
15291 else
15292   case "$MSGMERGE" in
15293   [\\/]* | ?:[\\/]*)
15294     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15295     ;;
15296   *)
15297     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15298     for ac_dir in $PATH; do
15299       IFS="$ac_save_IFS"
15300       test -z "$ac_dir" && ac_dir=.
15301       for ac_exec_ext in '' $ac_executable_extensions; do
15302         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15303           echo "$as_me: trying $ac_dir/$ac_word..." >&5
15304           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
15305             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15306             break 2
15307           fi
15308         fi
15309       done
15310     done
15311     IFS="$ac_save_IFS"
15312   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15313     ;;
15314 esac
15315 fi
15316 MSGMERGE="$ac_cv_path_MSGMERGE"
15317 if test "$MSGMERGE" != ":"; then
15318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15319 $as_echo "$MSGMERGE" >&6; }
15320 else
15321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15322 $as_echo "no" >&6; }
15323 fi
15324
15325
15326         test -n "$localedir" || localedir='${datadir}/locale'
15327
15328
15329     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
15330
15331
15332   ac_config_commands="$ac_config_commands po-directories"
15333
15334
15335
15336     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
15337 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
15338 if test "${ac_cv_gnu_library_2+set}" = set; then :
15339   $as_echo_n "(cached) " >&6
15340 else
15341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15342 /* end confdefs.h.  */
15343
15344 #include <features.h>
15345 #ifdef __GNU_LIBRARY__
15346  #if (__GLIBC__ >= 2)
15347   Lucky GNU user
15348  #endif
15349 #endif
15350
15351 _ACEOF
15352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15353   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
15354   ac_cv_gnu_library_2=yes
15355 else
15356   ac_cv_gnu_library_2=no
15357 fi
15358 rm -f conftest*
15359
15360
15361
15362 fi
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
15364 $as_echo "$ac_cv_gnu_library_2" >&6; }
15365
15366     GLIBC2="$ac_cv_gnu_library_2"
15367
15368
15369
15370
15371   CFLAG_VISIBILITY=
15372   HAVE_VISIBILITY=0
15373   if test -n "$GCC"; then
15374                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
15375 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
15376     if test "${gl_cv_cc_vis_werror+set}" = set; then :
15377   $as_echo_n "(cached) " >&6
15378 else
15379
15380       gl_save_CFLAGS="$CFLAGS"
15381       CFLAGS="$CFLAGS -Werror"
15382       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h.  */
15384
15385 int
15386 main ()
15387 {
15388
15389   ;
15390   return 0;
15391 }
15392 _ACEOF
15393 if ac_fn_c_try_compile "$LINENO"; then :
15394   gl_cv_cc_vis_werror=yes
15395 else
15396   gl_cv_cc_vis_werror=no
15397 fi
15398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15399       CFLAGS="$gl_save_CFLAGS"
15400 fi
15401
15402     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
15403 $as_echo "$gl_cv_cc_vis_werror" >&6; }
15404         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
15405 $as_echo_n "checking for simple visibility declarations... " >&6; }
15406     if test "${gl_cv_cc_visibility+set}" = set; then :
15407   $as_echo_n "(cached) " >&6
15408 else
15409
15410       gl_save_CFLAGS="$CFLAGS"
15411       CFLAGS="$CFLAGS -fvisibility=hidden"
15412                                     if test $gl_cv_cc_vis_werror = yes; then
15413         CFLAGS="$CFLAGS -Werror"
15414       fi
15415       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15416 /* end confdefs.h.  */
15417 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
15418          extern __attribute__((__visibility__("default"))) int exportedvar;
15419          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
15420          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
15421          void dummyfunc (void) {}
15422 int
15423 main ()
15424 {
15425
15426   ;
15427   return 0;
15428 }
15429 _ACEOF
15430 if ac_fn_c_try_compile "$LINENO"; then :
15431   gl_cv_cc_visibility=yes
15432 else
15433   gl_cv_cc_visibility=no
15434 fi
15435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15436       CFLAGS="$gl_save_CFLAGS"
15437 fi
15438
15439     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
15440 $as_echo "$gl_cv_cc_visibility" >&6; }
15441     if test $gl_cv_cc_visibility = yes; then
15442       CFLAG_VISIBILITY="-fvisibility=hidden"
15443       HAVE_VISIBILITY=1
15444     fi
15445   fi
15446
15447
15448
15449 cat >>confdefs.h <<_ACEOF
15450 #define HAVE_VISIBILITY $HAVE_VISIBILITY
15451 _ACEOF
15452
15453
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15455 $as_echo_n "checking for inline... " >&6; }
15456 if test "${ac_cv_c_inline+set}" = set; then :
15457   $as_echo_n "(cached) " >&6
15458 else
15459   ac_cv_c_inline=no
15460 for ac_kw in inline __inline__ __inline; do
15461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15462 /* end confdefs.h.  */
15463 #ifndef __cplusplus
15464 typedef int foo_t;
15465 static $ac_kw foo_t static_foo () {return 0; }
15466 $ac_kw foo_t foo () {return 0; }
15467 #endif
15468
15469 _ACEOF
15470 if ac_fn_c_try_compile "$LINENO"; then :
15471   ac_cv_c_inline=$ac_kw
15472 fi
15473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15474   test "$ac_cv_c_inline" != no && break
15475 done
15476
15477 fi
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15479 $as_echo "$ac_cv_c_inline" >&6; }
15480
15481 case $ac_cv_c_inline in
15482   inline | yes) ;;
15483   *)
15484     case $ac_cv_c_inline in
15485       no) ac_val=;;
15486       *) ac_val=$ac_cv_c_inline;;
15487     esac
15488     cat >>confdefs.h <<_ACEOF
15489 #ifndef __cplusplus
15490 #define inline $ac_val
15491 #endif
15492 _ACEOF
15493     ;;
15494 esac
15495
15496 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15497 if test "x$ac_cv_type_size_t" = x""yes; then :
15498
15499 else
15500
15501 cat >>confdefs.h <<_ACEOF
15502 #define size_t unsigned int
15503 _ACEOF
15504
15505 fi
15506
15507
15508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
15509 $as_echo_n "checking for stdint.h... " >&6; }
15510 if test "${gl_cv_header_stdint_h+set}" = set; then :
15511   $as_echo_n "(cached) " >&6
15512 else
15513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514 /* end confdefs.h.  */
15515 #include <sys/types.h>
15516 #include <stdint.h>
15517 int
15518 main ()
15519 {
15520 uintmax_t i = (uintmax_t) -1; return !i;
15521   ;
15522   return 0;
15523 }
15524 _ACEOF
15525 if ac_fn_c_try_compile "$LINENO"; then :
15526   gl_cv_header_stdint_h=yes
15527 else
15528   gl_cv_header_stdint_h=no
15529 fi
15530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15531 fi
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
15533 $as_echo "$gl_cv_header_stdint_h" >&6; }
15534   if test $gl_cv_header_stdint_h = yes; then
15535
15536 cat >>confdefs.h <<_ACEOF
15537 #define HAVE_STDINT_H_WITH_UINTMAX 1
15538 _ACEOF
15539
15540   fi
15541
15542 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15543 # for constant arguments.  Useless!
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15545 $as_echo_n "checking for working alloca.h... " >&6; }
15546 if test "${ac_cv_working_alloca_h+set}" = set; then :
15547   $as_echo_n "(cached) " >&6
15548 else
15549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15550 /* end confdefs.h.  */
15551 #include <alloca.h>
15552 int
15553 main ()
15554 {
15555 char *p = (char *) alloca (2 * sizeof (int));
15556                           if (p) return 0;
15557   ;
15558   return 0;
15559 }
15560 _ACEOF
15561 if ac_fn_c_try_link "$LINENO"; then :
15562   ac_cv_working_alloca_h=yes
15563 else
15564   ac_cv_working_alloca_h=no
15565 fi
15566 rm -f core conftest.err conftest.$ac_objext \
15567     conftest$ac_exeext conftest.$ac_ext
15568 fi
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15570 $as_echo "$ac_cv_working_alloca_h" >&6; }
15571 if test $ac_cv_working_alloca_h = yes; then
15572
15573 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15574
15575 fi
15576
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15578 $as_echo_n "checking for alloca... " >&6; }
15579 if test "${ac_cv_func_alloca_works+set}" = set; then :
15580   $as_echo_n "(cached) " >&6
15581 else
15582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15583 /* end confdefs.h.  */
15584 #ifdef __GNUC__
15585 # define alloca __builtin_alloca
15586 #else
15587 # ifdef _MSC_VER
15588 #  include <malloc.h>
15589 #  define alloca _alloca
15590 # else
15591 #  ifdef HAVE_ALLOCA_H
15592 #   include <alloca.h>
15593 #  else
15594 #   ifdef _AIX
15595  #pragma alloca
15596 #   else
15597 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15598 char *alloca ();
15599 #    endif
15600 #   endif
15601 #  endif
15602 # endif
15603 #endif
15604
15605 int
15606 main ()
15607 {
15608 char *p = (char *) alloca (1);
15609                                     if (p) return 0;
15610   ;
15611   return 0;
15612 }
15613 _ACEOF
15614 if ac_fn_c_try_link "$LINENO"; then :
15615   ac_cv_func_alloca_works=yes
15616 else
15617   ac_cv_func_alloca_works=no
15618 fi
15619 rm -f core conftest.err conftest.$ac_objext \
15620     conftest$ac_exeext conftest.$ac_ext
15621 fi
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15623 $as_echo "$ac_cv_func_alloca_works" >&6; }
15624
15625 if test $ac_cv_func_alloca_works = yes; then
15626
15627 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15628
15629 else
15630   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15631 # that cause trouble.  Some versions do not even contain alloca or
15632 # contain a buggy version.  If you still want to use their alloca,
15633 # use ar to extract alloca.o from them instead of compiling alloca.c.
15634
15635 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15636
15637 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15638
15639
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15641 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15642 if test "${ac_cv_os_cray+set}" = set; then :
15643   $as_echo_n "(cached) " >&6
15644 else
15645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646 /* end confdefs.h.  */
15647 #if defined CRAY && ! defined CRAY2
15648 webecray
15649 #else
15650 wenotbecray
15651 #endif
15652
15653 _ACEOF
15654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15655   $EGREP "webecray" >/dev/null 2>&1; then :
15656   ac_cv_os_cray=yes
15657 else
15658   ac_cv_os_cray=no
15659 fi
15660 rm -f conftest*
15661
15662 fi
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15664 $as_echo "$ac_cv_os_cray" >&6; }
15665 if test $ac_cv_os_cray = yes; then
15666   for ac_func in _getb67 GETB67 getb67; do
15667     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15668 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15669 eval as_val=\$$as_ac_var
15670    if test "x$as_val" = x""yes; then :
15671
15672 cat >>confdefs.h <<_ACEOF
15673 #define CRAY_STACKSEG_END $ac_func
15674 _ACEOF
15675
15676     break
15677 fi
15678
15679   done
15680 fi
15681
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15683 $as_echo_n "checking stack direction for C alloca... " >&6; }
15684 if test "${ac_cv_c_stack_direction+set}" = set; then :
15685   $as_echo_n "(cached) " >&6
15686 else
15687   if test "$cross_compiling" = yes; then :
15688   ac_cv_c_stack_direction=0
15689 else
15690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15691 /* end confdefs.h.  */
15692 $ac_includes_default
15693 int
15694 find_stack_direction ()
15695 {
15696   static char *addr = 0;
15697   auto char dummy;
15698   if (addr == 0)
15699     {
15700       addr = &dummy;
15701       return find_stack_direction ();
15702     }
15703   else
15704     return (&dummy > addr) ? 1 : -1;
15705 }
15706
15707 int
15708 main ()
15709 {
15710   return find_stack_direction () < 0;
15711 }
15712 _ACEOF
15713 if ac_fn_c_try_run "$LINENO"; then :
15714   ac_cv_c_stack_direction=1
15715 else
15716   ac_cv_c_stack_direction=-1
15717 fi
15718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15719   conftest.$ac_objext conftest.beam conftest.$ac_ext
15720 fi
15721
15722 fi
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15724 $as_echo "$ac_cv_c_stack_direction" >&6; }
15725 cat >>confdefs.h <<_ACEOF
15726 #define STACK_DIRECTION $ac_cv_c_stack_direction
15727 _ACEOF
15728
15729
15730 fi
15731
15732
15733
15734
15735
15736   for ac_header in $gl_header_list
15737 do :
15738   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15739 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15740 eval as_val=\$$as_ac_Header
15741    if test "x$as_val" = x""yes; then :
15742   cat >>confdefs.h <<_ACEOF
15743 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15744 _ACEOF
15745
15746 fi
15747
15748 done
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765   :
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777 for ac_func in getpagesize
15778 do :
15779   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15780 if test "x$ac_cv_func_getpagesize" = x""yes; then :
15781   cat >>confdefs.h <<_ACEOF
15782 #define HAVE_GETPAGESIZE 1
15783 _ACEOF
15784
15785 fi
15786 done
15787
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15789 $as_echo_n "checking for working mmap... " >&6; }
15790 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
15791   $as_echo_n "(cached) " >&6
15792 else
15793   if test "$cross_compiling" = yes; then :
15794   ac_cv_func_mmap_fixed_mapped=no
15795 else
15796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797 /* end confdefs.h.  */
15798 $ac_includes_default
15799 /* malloc might have been renamed as rpl_malloc. */
15800 #undef malloc
15801
15802 /* Thanks to Mike Haertel and Jim Avera for this test.
15803    Here is a matrix of mmap possibilities:
15804         mmap private not fixed
15805         mmap private fixed at somewhere currently unmapped
15806         mmap private fixed at somewhere already mapped
15807         mmap shared not fixed
15808         mmap shared fixed at somewhere currently unmapped
15809         mmap shared fixed at somewhere already mapped
15810    For private mappings, we should verify that changes cannot be read()
15811    back from the file, nor mmap's back from the file at a different
15812    address.  (There have been systems where private was not correctly
15813    implemented like the infamous i386 svr4.0, and systems where the
15814    VM page cache was not coherent with the file system buffer cache
15815    like early versions of FreeBSD and possibly contemporary NetBSD.)
15816    For shared mappings, we should conversely verify that changes get
15817    propagated back to all the places they're supposed to be.
15818
15819    Grep wants private fixed already mapped.
15820    The main things grep needs to know about mmap are:
15821    * does it exist and is it safe to write into the mmap'd area
15822    * how to use it (BSD variants)  */
15823
15824 #include <fcntl.h>
15825 #include <sys/mman.h>
15826
15827 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15828 char *malloc ();
15829 #endif
15830
15831 /* This mess was copied from the GNU getpagesize.h.  */
15832 #ifndef HAVE_GETPAGESIZE
15833 # ifdef _SC_PAGESIZE
15834 #  define getpagesize() sysconf(_SC_PAGESIZE)
15835 # else /* no _SC_PAGESIZE */
15836 #  ifdef HAVE_SYS_PARAM_H
15837 #   include <sys/param.h>
15838 #   ifdef EXEC_PAGESIZE
15839 #    define getpagesize() EXEC_PAGESIZE
15840 #   else /* no EXEC_PAGESIZE */
15841 #    ifdef NBPG
15842 #     define getpagesize() NBPG * CLSIZE
15843 #     ifndef CLSIZE
15844 #      define CLSIZE 1
15845 #     endif /* no CLSIZE */
15846 #    else /* no NBPG */
15847 #     ifdef NBPC
15848 #      define getpagesize() NBPC
15849 #     else /* no NBPC */
15850 #      ifdef PAGESIZE
15851 #       define getpagesize() PAGESIZE
15852 #      endif /* PAGESIZE */
15853 #     endif /* no NBPC */
15854 #    endif /* no NBPG */
15855 #   endif /* no EXEC_PAGESIZE */
15856 #  else /* no HAVE_SYS_PARAM_H */
15857 #   define getpagesize() 8192   /* punt totally */
15858 #  endif /* no HAVE_SYS_PARAM_H */
15859 # endif /* no _SC_PAGESIZE */
15860
15861 #endif /* no HAVE_GETPAGESIZE */
15862
15863 int
15864 main ()
15865 {
15866   char *data, *data2, *data3;
15867   int i, pagesize;
15868   int fd, fd2;
15869
15870   pagesize = getpagesize ();
15871
15872   /* First, make a file with some known garbage in it. */
15873   data = (char *) malloc (pagesize);
15874   if (!data)
15875     return 1;
15876   for (i = 0; i < pagesize; ++i)
15877     *(data + i) = rand ();
15878   umask (0);
15879   fd = creat ("conftest.mmap", 0600);
15880   if (fd < 0)
15881     return 2;
15882   if (write (fd, data, pagesize) != pagesize)
15883     return 3;
15884   close (fd);
15885
15886   /* Next, check that the tail of a page is zero-filled.  File must have
15887      non-zero length, otherwise we risk SIGBUS for entire page.  */
15888   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15889   if (fd2 < 0)
15890     return 4;
15891   data2 = "";
15892   if (write (fd2, data2, 1) != 1)
15893     return 5;
15894   data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15895   if (data2 == MAP_FAILED)
15896     return 6;
15897   for (i = 0; i < pagesize; ++i)
15898     if (*(data2 + i))
15899       return 7;
15900   close (fd2);
15901   if (munmap (data2, pagesize))
15902     return 8;
15903
15904   /* Next, try to mmap the file at a fixed address which already has
15905      something else allocated at it.  If we can, also make sure that
15906      we see the same garbage.  */
15907   fd = open ("conftest.mmap", O_RDWR);
15908   if (fd < 0)
15909     return 9;
15910   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15911                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
15912     return 10;
15913   for (i = 0; i < pagesize; ++i)
15914     if (*(data + i) != *(data2 + i))
15915       return 11;
15916
15917   /* Finally, make sure that changes to the mapped area do not
15918      percolate back to the file as seen by read().  (This is a bug on
15919      some variants of i386 svr4.0.)  */
15920   for (i = 0; i < pagesize; ++i)
15921     *(data2 + i) = *(data2 + i) + 1;
15922   data3 = (char *) malloc (pagesize);
15923   if (!data3)
15924     return 12;
15925   if (read (fd, data3, pagesize) != pagesize)
15926     return 13;
15927   for (i = 0; i < pagesize; ++i)
15928     if (*(data + i) != *(data3 + i))
15929       return 14;
15930   close (fd);
15931   return 0;
15932 }
15933 _ACEOF
15934 if ac_fn_c_try_run "$LINENO"; then :
15935   ac_cv_func_mmap_fixed_mapped=yes
15936 else
15937   ac_cv_func_mmap_fixed_mapped=no
15938 fi
15939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15940   conftest.$ac_objext conftest.beam conftest.$ac_ext
15941 fi
15942
15943 fi
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15945 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15946 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15947
15948 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15949
15950 fi
15951 rm -f conftest.mmap conftest.txt
15952
15953
15954
15955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
15956 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
15957 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
15958   $as_echo_n "(cached) " >&6
15959 else
15960
15961       gt_cv_int_divbyzero_sigfpe=
15962       case "$host_os" in
15963         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
15964           # On MacOS X 10.2 or newer, just assume the same as when cross-
15965           # compiling. If we were to perform the real test, 1 Crash Report
15966           # dialog window would pop up.
15967           case "$host_cpu" in
15968             i[34567]86 | x86_64)
15969               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
15970           esac
15971           ;;
15972       esac
15973       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
15974         if test "$cross_compiling" = yes; then :
15975
15976             # Guess based on the CPU.
15977             case "$host_cpu" in
15978               alpha* | i[34567]86 | x86_64 | m68k | s390*)
15979                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
15980               *)
15981                 gt_cv_int_divbyzero_sigfpe="guessing no";;
15982             esac
15983
15984 else
15985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15986 /* end confdefs.h.  */
15987
15988 #include <stdlib.h>
15989 #include <signal.h>
15990
15991 static void
15992 sigfpe_handler (int sig)
15993 {
15994   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
15995   exit (sig != SIGFPE);
15996 }
15997
15998 int x = 1;
15999 int y = 0;
16000 int z;
16001 int nan;
16002
16003 int main ()
16004 {
16005   signal (SIGFPE, sigfpe_handler);
16006 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
16007 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
16008   signal (SIGTRAP, sigfpe_handler);
16009 #endif
16010 /* Linux/SPARC yields signal SIGILL.  */
16011 #if defined (__sparc__) && defined (__linux__)
16012   signal (SIGILL, sigfpe_handler);
16013 #endif
16014
16015   z = x / y;
16016   nan = y / y;
16017   exit (1);
16018 }
16019
16020 _ACEOF
16021 if ac_fn_c_try_run "$LINENO"; then :
16022   gt_cv_int_divbyzero_sigfpe=yes
16023 else
16024   gt_cv_int_divbyzero_sigfpe=no
16025 fi
16026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16027   conftest.$ac_objext conftest.beam conftest.$ac_ext
16028 fi
16029
16030       fi
16031
16032 fi
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
16034 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
16035   case "$gt_cv_int_divbyzero_sigfpe" in
16036     *yes) value=1;;
16037     *) value=0;;
16038   esac
16039
16040 cat >>confdefs.h <<_ACEOF
16041 #define INTDIV0_RAISES_SIGFPE $value
16042 _ACEOF
16043
16044
16045
16046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
16047 $as_echo_n "checking for inttypes.h... " >&6; }
16048 if test "${gl_cv_header_inttypes_h+set}" = set; then :
16049   $as_echo_n "(cached) " >&6
16050 else
16051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16052 /* end confdefs.h.  */
16053 #include <sys/types.h>
16054 #include <inttypes.h>
16055 int
16056 main ()
16057 {
16058 uintmax_t i = (uintmax_t) -1; return !i;
16059   ;
16060   return 0;
16061 }
16062 _ACEOF
16063 if ac_fn_c_try_compile "$LINENO"; then :
16064   gl_cv_header_inttypes_h=yes
16065 else
16066   gl_cv_header_inttypes_h=no
16067 fi
16068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16069 fi
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
16071 $as_echo "$gl_cv_header_inttypes_h" >&6; }
16072   if test $gl_cv_header_inttypes_h = yes; then
16073
16074 cat >>confdefs.h <<_ACEOF
16075 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
16076 _ACEOF
16077
16078   fi
16079
16080
16081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16082 $as_echo_n "checking for unsigned long long int... " >&6; }
16083 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
16084   $as_echo_n "(cached) " >&6
16085 else
16086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16087 /* end confdefs.h.  */
16088
16089   /* For now, do not test the preprocessor; as of 2007 there are too many
16090          implementations with broken preprocessors.  Perhaps this can
16091          be revisited in 2012.  In the meantime, code should not expect
16092          #if to work with literals wider than 32 bits.  */
16093       /* Test literals.  */
16094       long long int ll = 9223372036854775807ll;
16095       long long int nll = -9223372036854775807LL;
16096       unsigned long long int ull = 18446744073709551615ULL;
16097       /* Test constant expressions.   */
16098       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16099                      ? 1 : -1)];
16100       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16101                      ? 1 : -1)];
16102       int i = 63;
16103 int
16104 main ()
16105 {
16106 /* Test availability of runtime routines for shift and division.  */
16107       long long int llmax = 9223372036854775807ll;
16108       unsigned long long int ullmax = 18446744073709551615ull;
16109       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16110               | (llmax / ll) | (llmax % ll)
16111               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16112               | (ullmax / ull) | (ullmax % ull));
16113   ;
16114   return 0;
16115 }
16116
16117 _ACEOF
16118 if ac_fn_c_try_link "$LINENO"; then :
16119   ac_cv_type_unsigned_long_long_int=yes
16120 else
16121   ac_cv_type_unsigned_long_long_int=no
16122 fi
16123 rm -f core conftest.err conftest.$ac_objext \
16124     conftest$ac_exeext conftest.$ac_ext
16125 fi
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16127 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16128   if test $ac_cv_type_unsigned_long_long_int = yes; then
16129
16130 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16131
16132   fi
16133
16134
16135
16136
16137   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
16138
16139     test $ac_cv_type_unsigned_long_long_int = yes \
16140       && ac_type='unsigned long long' \
16141       || ac_type='unsigned long'
16142
16143 cat >>confdefs.h <<_ACEOF
16144 #define uintmax_t $ac_type
16145 _ACEOF
16146
16147   else
16148
16149 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
16150
16151   fi
16152
16153
16154   for ac_header in inttypes.h
16155 do :
16156   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
16157 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
16158   cat >>confdefs.h <<_ACEOF
16159 #define HAVE_INTTYPES_H 1
16160 _ACEOF
16161
16162 fi
16163
16164 done
16165
16166   if test $ac_cv_header_inttypes_h = yes; then
16167     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
16168 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
16169 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
16170   $as_echo_n "(cached) " >&6
16171 else
16172
16173         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16174 /* end confdefs.h.  */
16175 #include <inttypes.h>
16176 #ifdef PRId32
16177 char *p = PRId32;
16178 #endif
16179
16180 int
16181 main ()
16182 {
16183
16184   ;
16185   return 0;
16186 }
16187 _ACEOF
16188 if ac_fn_c_try_compile "$LINENO"; then :
16189   gt_cv_inttypes_pri_broken=no
16190 else
16191   gt_cv_inttypes_pri_broken=yes
16192 fi
16193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16194
16195 fi
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
16197 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
16198   fi
16199   if test "$gt_cv_inttypes_pri_broken" = yes; then
16200
16201 cat >>confdefs.h <<_ACEOF
16202 #define PRI_MACROS_BROKEN 1
16203 _ACEOF
16204
16205     PRI_MACROS_BROKEN=1
16206   else
16207     PRI_MACROS_BROKEN=0
16208   fi
16209
16210
16211
16212       if test "X$prefix" = "XNONE"; then
16213     acl_final_prefix="$ac_default_prefix"
16214   else
16215     acl_final_prefix="$prefix"
16216   fi
16217   if test "X$exec_prefix" = "XNONE"; then
16218     acl_final_exec_prefix='${prefix}'
16219   else
16220     acl_final_exec_prefix="$exec_prefix"
16221   fi
16222   acl_save_prefix="$prefix"
16223   prefix="$acl_final_prefix"
16224   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16225   prefix="$acl_save_prefix"
16226
16227
16228 # Check whether --with-gnu-ld was given.
16229 if test "${with_gnu_ld+set}" = set; then :
16230   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16231 else
16232   with_gnu_ld=no
16233 fi
16234
16235 # Prepare PATH_SEPARATOR.
16236 # The user is always right.
16237 if test "${PATH_SEPARATOR+set}" != set; then
16238   echo "#! /bin/sh" >conf$$.sh
16239   echo  "exit 0"   >>conf$$.sh
16240   chmod +x conf$$.sh
16241   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16242     PATH_SEPARATOR=';'
16243   else
16244     PATH_SEPARATOR=:
16245   fi
16246   rm -f conf$$.sh
16247 fi
16248 ac_prog=ld
16249 if test "$GCC" = yes; then
16250   # Check if gcc -print-prog-name=ld gives a path.
16251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16252 $as_echo_n "checking for ld used by GCC... " >&6; }
16253   case $host in
16254   *-*-mingw*)
16255     # gcc leaves a trailing carriage return which upsets mingw
16256     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16257   *)
16258     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16259   esac
16260   case $ac_prog in
16261     # Accept absolute paths.
16262     [\\/]* | [A-Za-z]:[\\/]*)
16263       re_direlt='/[^/][^/]*/\.\./'
16264       # Canonicalize the path of ld
16265       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16266       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16267         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16268       done
16269       test -z "$LD" && LD="$ac_prog"
16270       ;;
16271   "")
16272     # If it fails, then pretend we aren't using GCC.
16273     ac_prog=ld
16274     ;;
16275   *)
16276     # If it is relative, then search for the first ld in PATH.
16277     with_gnu_ld=unknown
16278     ;;
16279   esac
16280 elif test "$with_gnu_ld" = yes; then
16281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16282 $as_echo_n "checking for GNU ld... " >&6; }
16283 else
16284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16285 $as_echo_n "checking for non-GNU ld... " >&6; }
16286 fi
16287 if test "${acl_cv_path_LD+set}" = set; then :
16288   $as_echo_n "(cached) " >&6
16289 else
16290   if test -z "$LD"; then
16291   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16292   for ac_dir in $PATH; do
16293     test -z "$ac_dir" && ac_dir=.
16294     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16295       acl_cv_path_LD="$ac_dir/$ac_prog"
16296       # Check to see if the program is GNU ld.  I'd rather use --version,
16297       # but apparently some GNU ld's only accept -v.
16298       # Break only if it was the GNU/non-GNU ld that we prefer.
16299       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16300       *GNU* | *'with BFD'*)
16301         test "$with_gnu_ld" != no && break ;;
16302       *)
16303         test "$with_gnu_ld" != yes && break ;;
16304       esac
16305     fi
16306   done
16307   IFS="$ac_save_ifs"
16308 else
16309   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16310 fi
16311 fi
16312
16313 LD="$acl_cv_path_LD"
16314 if test -n "$LD"; then
16315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16316 $as_echo "$LD" >&6; }
16317 else
16318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16319 $as_echo "no" >&6; }
16320 fi
16321 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16323 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16324 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16325   $as_echo_n "(cached) " >&6
16326 else
16327   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16328 case `$LD -v 2>&1 </dev/null` in
16329 *GNU* | *'with BFD'*)
16330   acl_cv_prog_gnu_ld=yes ;;
16331 *)
16332   acl_cv_prog_gnu_ld=no ;;
16333 esac
16334 fi
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16336 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16337 with_gnu_ld=$acl_cv_prog_gnu_ld
16338
16339
16340
16341
16342                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16343 $as_echo_n "checking for shared library run path origin... " >&6; }
16344 if test "${acl_cv_rpath+set}" = set; then :
16345   $as_echo_n "(cached) " >&6
16346 else
16347
16348     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16349     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16350     . ./conftest.sh
16351     rm -f ./conftest.sh
16352     acl_cv_rpath=done
16353
16354 fi
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16356 $as_echo "$acl_cv_rpath" >&6; }
16357   wl="$acl_cv_wl"
16358   acl_libext="$acl_cv_libext"
16359   acl_shlibext="$acl_cv_shlibext"
16360   acl_libname_spec="$acl_cv_libname_spec"
16361   acl_library_names_spec="$acl_cv_library_names_spec"
16362   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16363   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16364   acl_hardcode_direct="$acl_cv_hardcode_direct"
16365   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16366     # Check whether --enable-rpath was given.
16367 if test "${enable_rpath+set}" = set; then :
16368   enableval=$enable_rpath; :
16369 else
16370   enable_rpath=yes
16371 fi
16372
16373
16374
16375
16376   acl_libdirstem=lib
16377   acl_libdirstem2=
16378   case "$host_os" in
16379     solaris*)
16380                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
16381 $as_echo_n "checking for 64-bit host... " >&6; }
16382 if test "${gl_cv_solaris_64bit+set}" = set; then :
16383   $as_echo_n "(cached) " >&6
16384 else
16385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h.  */
16387
16388 #ifdef _LP64
16389 sixtyfour bits
16390 #endif
16391
16392 _ACEOF
16393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16394   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
16395   gl_cv_solaris_64bit=yes
16396 else
16397   gl_cv_solaris_64bit=no
16398 fi
16399 rm -f conftest*
16400
16401
16402 fi
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
16404 $as_echo "$gl_cv_solaris_64bit" >&6; }
16405       if test $gl_cv_solaris_64bit = yes; then
16406         acl_libdirstem=lib/64
16407         case "$host_cpu" in
16408           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
16409           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
16410         esac
16411       fi
16412       ;;
16413     *)
16414       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16415       if test -n "$searchpath"; then
16416         acl_save_IFS="${IFS=    }"; IFS=":"
16417         for searchdir in $searchpath; do
16418           if test -d "$searchdir"; then
16419             case "$searchdir" in
16420               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16421               */../ | */.. )
16422                 # Better ignore directories of this form. They are misleading.
16423                 ;;
16424               *) searchdir=`cd "$searchdir" && pwd`
16425                  case "$searchdir" in
16426                    */lib64 ) acl_libdirstem=lib64 ;;
16427                  esac ;;
16428             esac
16429           fi
16430         done
16431         IFS="$acl_save_IFS"
16432       fi
16433       ;;
16434   esac
16435   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16436
16437
16438
16439   gl_threads_api=none
16440   LIBTHREAD=
16441   LTLIBTHREAD=
16442   LIBMULTITHREAD=
16443   LTLIBMULTITHREAD=
16444   if test "$gl_use_threads" != no; then
16445         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
16446 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
16447 if test "${gl_cv_have_weak+set}" = set; then :
16448   $as_echo_n "(cached) " >&6
16449 else
16450   gl_cv_have_weak=no
16451               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16452 /* end confdefs.h.  */
16453 extern void xyzzy ();
16454 #pragma weak xyzzy
16455 int
16456 main ()
16457 {
16458 xyzzy();
16459   ;
16460   return 0;
16461 }
16462 _ACEOF
16463 if ac_fn_c_try_link "$LINENO"; then :
16464   gl_cv_have_weak=maybe
16465 fi
16466 rm -f core conftest.err conftest.$ac_objext \
16467     conftest$ac_exeext conftest.$ac_ext
16468        if test $gl_cv_have_weak = maybe; then
16469                            if test "$cross_compiling" = yes; then :
16470                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471 /* end confdefs.h.  */
16472 #ifdef __ELF__
16473                Extensible Linking Format
16474                #endif
16475
16476 _ACEOF
16477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16478   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
16479   gl_cv_have_weak="guessing yes"
16480 else
16481   gl_cv_have_weak="guessing no"
16482 fi
16483 rm -f conftest*
16484
16485
16486 else
16487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16488 /* end confdefs.h.  */
16489
16490 #include <stdio.h>
16491 #pragma weak fputs
16492 int main ()
16493 {
16494   return (fputs == NULL);
16495 }
16496 _ACEOF
16497 if ac_fn_c_try_run "$LINENO"; then :
16498   gl_cv_have_weak=yes
16499 else
16500   gl_cv_have_weak=no
16501 fi
16502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16503   conftest.$ac_objext conftest.beam conftest.$ac_ext
16504 fi
16505
16506        fi
16507
16508 fi
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
16510 $as_echo "$gl_cv_have_weak" >&6; }
16511     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
16512       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
16513       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
16514       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
16515 if test "x$ac_cv_header_pthread_h" = x""yes; then :
16516   gl_have_pthread_h=yes
16517 else
16518   gl_have_pthread_h=no
16519 fi
16520
16521
16522       if test "$gl_have_pthread_h" = yes; then
16523         # Other possible tests:
16524         #   -lpthreads (FSU threads, PCthreads)
16525         #   -lgthreads
16526         gl_have_pthread=
16527         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
16528         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
16529         # the second one only in libpthread, and lock.c needs it.
16530         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16531 /* end confdefs.h.  */
16532 #include <pthread.h>
16533 int
16534 main ()
16535 {
16536 pthread_mutex_lock((pthread_mutex_t*)0);
16537            pthread_mutexattr_init((pthread_mutexattr_t*)0);
16538   ;
16539   return 0;
16540 }
16541 _ACEOF
16542 if ac_fn_c_try_link "$LINENO"; then :
16543   gl_have_pthread=yes
16544 fi
16545 rm -f core conftest.err conftest.$ac_objext \
16546     conftest$ac_exeext conftest.$ac_ext
16547         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
16548         # since it is defined as a macro on OSF/1.)
16549         if test -n "$gl_have_pthread"; then
16550           # The program links fine without libpthread. But it may actually
16551           # need to link with libpthread in order to create multiple threads.
16552           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16553 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16554 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
16555   $as_echo_n "(cached) " >&6
16556 else
16557   ac_check_lib_save_LIBS=$LIBS
16558 LIBS="-lpthread  $LIBS"
16559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16560 /* end confdefs.h.  */
16561
16562 /* Override any GCC internal prototype to avoid an error.
16563    Use char because int might match the return type of a GCC
16564    builtin and then its argument prototype would still apply.  */
16565 #ifdef __cplusplus
16566 extern "C"
16567 #endif
16568 char pthread_kill ();
16569 int
16570 main ()
16571 {
16572 return pthread_kill ();
16573   ;
16574   return 0;
16575 }
16576 _ACEOF
16577 if ac_fn_c_try_link "$LINENO"; then :
16578   ac_cv_lib_pthread_pthread_kill=yes
16579 else
16580   ac_cv_lib_pthread_pthread_kill=no
16581 fi
16582 rm -f core conftest.err conftest.$ac_objext \
16583     conftest$ac_exeext conftest.$ac_ext
16584 LIBS=$ac_check_lib_save_LIBS
16585 fi
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16587 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16588 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
16589   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16590              # On Solaris and HP-UX, most pthread functions exist also in libc.
16591              # Therefore pthread_in_use() needs to actually try to create a
16592              # thread: pthread_create from libc will fail, whereas
16593              # pthread_create will actually create a thread.
16594              case "$host_os" in
16595                solaris* | hpux*)
16596
16597 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
16598
16599              esac
16600
16601 fi
16602
16603         else
16604           # Some library is needed. Try libpthread and libc_r.
16605           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16606 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16607 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
16608   $as_echo_n "(cached) " >&6
16609 else
16610   ac_check_lib_save_LIBS=$LIBS
16611 LIBS="-lpthread  $LIBS"
16612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16613 /* end confdefs.h.  */
16614
16615 /* Override any GCC internal prototype to avoid an error.
16616    Use char because int might match the return type of a GCC
16617    builtin and then its argument prototype would still apply.  */
16618 #ifdef __cplusplus
16619 extern "C"
16620 #endif
16621 char pthread_kill ();
16622 int
16623 main ()
16624 {
16625 return pthread_kill ();
16626   ;
16627   return 0;
16628 }
16629 _ACEOF
16630 if ac_fn_c_try_link "$LINENO"; then :
16631   ac_cv_lib_pthread_pthread_kill=yes
16632 else
16633   ac_cv_lib_pthread_pthread_kill=no
16634 fi
16635 rm -f core conftest.err conftest.$ac_objext \
16636     conftest$ac_exeext conftest.$ac_ext
16637 LIBS=$ac_check_lib_save_LIBS
16638 fi
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16640 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16641 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
16642   gl_have_pthread=yes
16643              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
16644              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16645 fi
16646
16647           if test -z "$gl_have_pthread"; then
16648             # For FreeBSD 4.
16649             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
16650 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
16651 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
16652   $as_echo_n "(cached) " >&6
16653 else
16654   ac_check_lib_save_LIBS=$LIBS
16655 LIBS="-lc_r  $LIBS"
16656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16657 /* end confdefs.h.  */
16658
16659 /* Override any GCC internal prototype to avoid an error.
16660    Use char because int might match the return type of a GCC
16661    builtin and then its argument prototype would still apply.  */
16662 #ifdef __cplusplus
16663 extern "C"
16664 #endif
16665 char pthread_kill ();
16666 int
16667 main ()
16668 {
16669 return pthread_kill ();
16670   ;
16671   return 0;
16672 }
16673 _ACEOF
16674 if ac_fn_c_try_link "$LINENO"; then :
16675   ac_cv_lib_c_r_pthread_kill=yes
16676 else
16677   ac_cv_lib_c_r_pthread_kill=no
16678 fi
16679 rm -f core conftest.err conftest.$ac_objext \
16680     conftest$ac_exeext conftest.$ac_ext
16681 LIBS=$ac_check_lib_save_LIBS
16682 fi
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
16684 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
16685 if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
16686   gl_have_pthread=yes
16687                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
16688                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
16689 fi
16690
16691           fi
16692         fi
16693         if test -n "$gl_have_pthread"; then
16694           gl_threads_api=posix
16695
16696 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
16697
16698           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
16699             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16700
16701 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
16702
16703               LIBTHREAD=
16704               LTLIBTHREAD=
16705             fi
16706           fi
16707         fi
16708       fi
16709     fi
16710     if test -z "$gl_have_pthread"; then
16711       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
16712         gl_have_solaristhread=
16713         gl_save_LIBS="$LIBS"
16714         LIBS="$LIBS -lthread"
16715         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16716 /* end confdefs.h.  */
16717 #include <thread.h>
16718 #include <synch.h>
16719 int
16720 main ()
16721 {
16722 thr_self();
16723   ;
16724   return 0;
16725 }
16726 _ACEOF
16727 if ac_fn_c_try_link "$LINENO"; then :
16728   gl_have_solaristhread=yes
16729 fi
16730 rm -f core conftest.err conftest.$ac_objext \
16731     conftest$ac_exeext conftest.$ac_ext
16732         LIBS="$gl_save_LIBS"
16733         if test -n "$gl_have_solaristhread"; then
16734           gl_threads_api=solaris
16735           LIBTHREAD=-lthread
16736           LTLIBTHREAD=-lthread
16737           LIBMULTITHREAD="$LIBTHREAD"
16738           LTLIBMULTITHREAD="$LTLIBTHREAD"
16739
16740 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
16741
16742           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16743
16744 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
16745
16746             LIBTHREAD=
16747             LTLIBTHREAD=
16748           fi
16749         fi
16750       fi
16751     fi
16752     if test "$gl_use_threads" = pth; then
16753       gl_save_CPPFLAGS="$CPPFLAGS"
16754
16755
16756
16757
16758
16759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
16760 $as_echo_n "checking how to link with libpth... " >&6; }
16761 if test "${ac_cv_libpth_libs+set}" = set; then :
16762   $as_echo_n "(cached) " >&6
16763 else
16764
16765
16766
16767
16768
16769
16770
16771
16772     use_additional=yes
16773
16774   acl_save_prefix="$prefix"
16775   prefix="$acl_final_prefix"
16776   acl_save_exec_prefix="$exec_prefix"
16777   exec_prefix="$acl_final_exec_prefix"
16778
16779     eval additional_includedir=\"$includedir\"
16780     eval additional_libdir=\"$libdir\"
16781
16782   exec_prefix="$acl_save_exec_prefix"
16783   prefix="$acl_save_prefix"
16784
16785
16786 # Check whether --with-libpth-prefix was given.
16787 if test "${with_libpth_prefix+set}" = set; then :
16788   withval=$with_libpth_prefix;
16789     if test "X$withval" = "Xno"; then
16790       use_additional=no
16791     else
16792       if test "X$withval" = "X"; then
16793
16794   acl_save_prefix="$prefix"
16795   prefix="$acl_final_prefix"
16796   acl_save_exec_prefix="$exec_prefix"
16797   exec_prefix="$acl_final_exec_prefix"
16798
16799           eval additional_includedir=\"$includedir\"
16800           eval additional_libdir=\"$libdir\"
16801
16802   exec_prefix="$acl_save_exec_prefix"
16803   prefix="$acl_save_prefix"
16804
16805       else
16806         additional_includedir="$withval/include"
16807         additional_libdir="$withval/$acl_libdirstem"
16808         if test "$acl_libdirstem2" != "$acl_libdirstem" \
16809            && ! test -d "$withval/$acl_libdirstem"; then
16810           additional_libdir="$withval/$acl_libdirstem2"
16811         fi
16812       fi
16813     fi
16814
16815 fi
16816
16817       LIBPTH=
16818   LTLIBPTH=
16819   INCPTH=
16820   LIBPTH_PREFIX=
16821       HAVE_LIBPTH=
16822   rpathdirs=
16823   ltrpathdirs=
16824   names_already_handled=
16825   names_next_round='pth '
16826   while test -n "$names_next_round"; do
16827     names_this_round="$names_next_round"
16828     names_next_round=
16829     for name in $names_this_round; do
16830       already_handled=
16831       for n in $names_already_handled; do
16832         if test "$n" = "$name"; then
16833           already_handled=yes
16834           break
16835         fi
16836       done
16837       if test -z "$already_handled"; then
16838         names_already_handled="$names_already_handled $name"
16839                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16840         eval value=\"\$HAVE_LIB$uppername\"
16841         if test -n "$value"; then
16842           if test "$value" = yes; then
16843             eval value=\"\$LIB$uppername\"
16844             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
16845             eval value=\"\$LTLIB$uppername\"
16846             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
16847           else
16848                                     :
16849           fi
16850         else
16851                               found_dir=
16852           found_la=
16853           found_so=
16854           found_a=
16855           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16856           if test -n "$acl_shlibext"; then
16857             shrext=".$acl_shlibext"             # typically: shrext=.so
16858           else
16859             shrext=
16860           fi
16861           if test $use_additional = yes; then
16862             dir="$additional_libdir"
16863                                     if test -n "$acl_shlibext"; then
16864               if test -f "$dir/$libname$shrext"; then
16865                 found_dir="$dir"
16866                 found_so="$dir/$libname$shrext"
16867               else
16868                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16869                   ver=`(cd "$dir" && \
16870                         for f in "$libname$shrext".*; do echo "$f"; done \
16871                         | sed -e "s,^$libname$shrext\\\\.,," \
16872                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16873                         | sed 1q ) 2>/dev/null`
16874                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16875                     found_dir="$dir"
16876                     found_so="$dir/$libname$shrext.$ver"
16877                   fi
16878                 else
16879                   eval library_names=\"$acl_library_names_spec\"
16880                   for f in $library_names; do
16881                     if test -f "$dir/$f"; then
16882                       found_dir="$dir"
16883                       found_so="$dir/$f"
16884                       break
16885                     fi
16886                   done
16887                 fi
16888               fi
16889             fi
16890                         if test "X$found_dir" = "X"; then
16891               if test -f "$dir/$libname.$acl_libext"; then
16892                 found_dir="$dir"
16893                 found_a="$dir/$libname.$acl_libext"
16894               fi
16895             fi
16896             if test "X$found_dir" != "X"; then
16897               if test -f "$dir/$libname.la"; then
16898                 found_la="$dir/$libname.la"
16899               fi
16900             fi
16901           fi
16902           if test "X$found_dir" = "X"; then
16903             for x in $LDFLAGS $LTLIBPTH; do
16904
16905   acl_save_prefix="$prefix"
16906   prefix="$acl_final_prefix"
16907   acl_save_exec_prefix="$exec_prefix"
16908   exec_prefix="$acl_final_exec_prefix"
16909   eval x=\"$x\"
16910   exec_prefix="$acl_save_exec_prefix"
16911   prefix="$acl_save_prefix"
16912
16913               case "$x" in
16914                 -L*)
16915                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16916                                     if test -n "$acl_shlibext"; then
16917                     if test -f "$dir/$libname$shrext"; then
16918                       found_dir="$dir"
16919                       found_so="$dir/$libname$shrext"
16920                     else
16921                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16922                         ver=`(cd "$dir" && \
16923                               for f in "$libname$shrext".*; do echo "$f"; done \
16924                               | sed -e "s,^$libname$shrext\\\\.,," \
16925                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16926                               | sed 1q ) 2>/dev/null`
16927                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16928                           found_dir="$dir"
16929                           found_so="$dir/$libname$shrext.$ver"
16930                         fi
16931                       else
16932                         eval library_names=\"$acl_library_names_spec\"
16933                         for f in $library_names; do
16934                           if test -f "$dir/$f"; then
16935                             found_dir="$dir"
16936                             found_so="$dir/$f"
16937                             break
16938                           fi
16939                         done
16940                       fi
16941                     fi
16942                   fi
16943                                     if test "X$found_dir" = "X"; then
16944                     if test -f "$dir/$libname.$acl_libext"; then
16945                       found_dir="$dir"
16946                       found_a="$dir/$libname.$acl_libext"
16947                     fi
16948                   fi
16949                   if test "X$found_dir" != "X"; then
16950                     if test -f "$dir/$libname.la"; then
16951                       found_la="$dir/$libname.la"
16952                     fi
16953                   fi
16954                   ;;
16955               esac
16956               if test "X$found_dir" != "X"; then
16957                 break
16958               fi
16959             done
16960           fi
16961           if test "X$found_dir" != "X"; then
16962                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
16963             if test "X$found_so" != "X"; then
16964                                                         if test "$enable_rpath" = no \
16965                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16966                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16967                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16968               else
16969                                                                                 haveit=
16970                 for x in $ltrpathdirs; do
16971                   if test "X$x" = "X$found_dir"; then
16972                     haveit=yes
16973                     break
16974                   fi
16975                 done
16976                 if test -z "$haveit"; then
16977                   ltrpathdirs="$ltrpathdirs $found_dir"
16978                 fi
16979                                 if test "$acl_hardcode_direct" = yes; then
16980                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16981                 else
16982                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16983                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16984                                                             haveit=
16985                     for x in $rpathdirs; do
16986                       if test "X$x" = "X$found_dir"; then
16987                         haveit=yes
16988                         break
16989                       fi
16990                     done
16991                     if test -z "$haveit"; then
16992                       rpathdirs="$rpathdirs $found_dir"
16993                     fi
16994                   else
16995                                                                                 haveit=
16996                     for x in $LDFLAGS $LIBPTH; do
16997
16998   acl_save_prefix="$prefix"
16999   prefix="$acl_final_prefix"
17000   acl_save_exec_prefix="$exec_prefix"
17001   exec_prefix="$acl_final_exec_prefix"
17002   eval x=\"$x\"
17003   exec_prefix="$acl_save_exec_prefix"
17004   prefix="$acl_save_prefix"
17005
17006                       if test "X$x" = "X-L$found_dir"; then
17007                         haveit=yes
17008                         break
17009                       fi
17010                     done
17011                     if test -z "$haveit"; then
17012                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
17013                     fi
17014                     if test "$acl_hardcode_minus_L" != no; then
17015                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17016                     else
17017                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17018                     fi
17019                   fi
17020                 fi
17021               fi
17022             else
17023               if test "X$found_a" != "X"; then
17024                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
17025               else
17026                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
17027               fi
17028             fi
17029                         additional_includedir=
17030             case "$found_dir" in
17031               */$acl_libdirstem | */$acl_libdirstem/)
17032                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17033                 if test "$name" = 'pth'; then
17034                   LIBPTH_PREFIX="$basedir"
17035                 fi
17036                 additional_includedir="$basedir/include"
17037                 ;;
17038               */$acl_libdirstem2 | */$acl_libdirstem2/)
17039                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17040                 if test "$name" = 'pth'; then
17041                   LIBPTH_PREFIX="$basedir"
17042                 fi
17043                 additional_includedir="$basedir/include"
17044                 ;;
17045             esac
17046             if test "X$additional_includedir" != "X"; then
17047                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17048                 haveit=
17049                 if test "X$additional_includedir" = "X/usr/local/include"; then
17050                   if test -n "$GCC"; then
17051                     case $host_os in
17052                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17053                     esac
17054                   fi
17055                 fi
17056                 if test -z "$haveit"; then
17057                   for x in $CPPFLAGS $INCPTH; do
17058
17059   acl_save_prefix="$prefix"
17060   prefix="$acl_final_prefix"
17061   acl_save_exec_prefix="$exec_prefix"
17062   exec_prefix="$acl_final_exec_prefix"
17063   eval x=\"$x\"
17064   exec_prefix="$acl_save_exec_prefix"
17065   prefix="$acl_save_prefix"
17066
17067                     if test "X$x" = "X-I$additional_includedir"; then
17068                       haveit=yes
17069                       break
17070                     fi
17071                   done
17072                   if test -z "$haveit"; then
17073                     if test -d "$additional_includedir"; then
17074                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
17075                     fi
17076                   fi
17077                 fi
17078               fi
17079             fi
17080                         if test -n "$found_la"; then
17081                                                         save_libdir="$libdir"
17082               case "$found_la" in
17083                 */* | *\\*) . "$found_la" ;;
17084                 *) . "./$found_la" ;;
17085               esac
17086               libdir="$save_libdir"
17087                             for dep in $dependency_libs; do
17088                 case "$dep" in
17089                   -L*)
17090                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17091                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17092                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17093                       haveit=
17094                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17095                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17096                         if test -n "$GCC"; then
17097                           case $host_os in
17098                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17099                           esac
17100                         fi
17101                       fi
17102                       if test -z "$haveit"; then
17103                         haveit=
17104                         for x in $LDFLAGS $LIBPTH; do
17105
17106   acl_save_prefix="$prefix"
17107   prefix="$acl_final_prefix"
17108   acl_save_exec_prefix="$exec_prefix"
17109   exec_prefix="$acl_final_exec_prefix"
17110   eval x=\"$x\"
17111   exec_prefix="$acl_save_exec_prefix"
17112   prefix="$acl_save_prefix"
17113
17114                           if test "X$x" = "X-L$additional_libdir"; then
17115                             haveit=yes
17116                             break
17117                           fi
17118                         done
17119                         if test -z "$haveit"; then
17120                           if test -d "$additional_libdir"; then
17121                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
17122                           fi
17123                         fi
17124                         haveit=
17125                         for x in $LDFLAGS $LTLIBPTH; do
17126
17127   acl_save_prefix="$prefix"
17128   prefix="$acl_final_prefix"
17129   acl_save_exec_prefix="$exec_prefix"
17130   exec_prefix="$acl_final_exec_prefix"
17131   eval x=\"$x\"
17132   exec_prefix="$acl_save_exec_prefix"
17133   prefix="$acl_save_prefix"
17134
17135                           if test "X$x" = "X-L$additional_libdir"; then
17136                             haveit=yes
17137                             break
17138                           fi
17139                         done
17140                         if test -z "$haveit"; then
17141                           if test -d "$additional_libdir"; then
17142                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
17143                           fi
17144                         fi
17145                       fi
17146                     fi
17147                     ;;
17148                   -R*)
17149                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17150                     if test "$enable_rpath" != no; then
17151                                                                   haveit=
17152                       for x in $rpathdirs; do
17153                         if test "X$x" = "X$dir"; then
17154                           haveit=yes
17155                           break
17156                         fi
17157                       done
17158                       if test -z "$haveit"; then
17159                         rpathdirs="$rpathdirs $dir"
17160                       fi
17161                                                                   haveit=
17162                       for x in $ltrpathdirs; do
17163                         if test "X$x" = "X$dir"; then
17164                           haveit=yes
17165                           break
17166                         fi
17167                       done
17168                       if test -z "$haveit"; then
17169                         ltrpathdirs="$ltrpathdirs $dir"
17170                       fi
17171                     fi
17172                     ;;
17173                   -l*)
17174                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17175                     ;;
17176                   *.la)
17177                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17178                     ;;
17179                   *)
17180                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
17181                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
17182                     ;;
17183                 esac
17184               done
17185             fi
17186           else
17187                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17188             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
17189           fi
17190         fi
17191       fi
17192     done
17193   done
17194   if test "X$rpathdirs" != "X"; then
17195     if test -n "$acl_hardcode_libdir_separator"; then
17196                         alldirs=
17197       for found_dir in $rpathdirs; do
17198         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17199       done
17200             acl_save_libdir="$libdir"
17201       libdir="$alldirs"
17202       eval flag=\"$acl_hardcode_libdir_flag_spec\"
17203       libdir="$acl_save_libdir"
17204       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17205     else
17206             for found_dir in $rpathdirs; do
17207         acl_save_libdir="$libdir"
17208         libdir="$found_dir"
17209         eval flag=\"$acl_hardcode_libdir_flag_spec\"
17210         libdir="$acl_save_libdir"
17211         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17212       done
17213     fi
17214   fi
17215   if test "X$ltrpathdirs" != "X"; then
17216             for found_dir in $ltrpathdirs; do
17217       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
17218     done
17219   fi
17220
17221
17222
17223
17224
17225
17226     ac_cv_libpth_libs="$LIBPTH"
17227     ac_cv_libpth_ltlibs="$LTLIBPTH"
17228     ac_cv_libpth_cppflags="$INCPTH"
17229     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
17230
17231 fi
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
17233 $as_echo "$ac_cv_libpth_libs" >&6; }
17234   LIBPTH="$ac_cv_libpth_libs"
17235   LTLIBPTH="$ac_cv_libpth_ltlibs"
17236   INCPTH="$ac_cv_libpth_cppflags"
17237   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
17238
17239   for element in $INCPTH; do
17240     haveit=
17241     for x in $CPPFLAGS; do
17242
17243   acl_save_prefix="$prefix"
17244   prefix="$acl_final_prefix"
17245   acl_save_exec_prefix="$exec_prefix"
17246   exec_prefix="$acl_final_exec_prefix"
17247   eval x=\"$x\"
17248   exec_prefix="$acl_save_exec_prefix"
17249   prefix="$acl_save_prefix"
17250
17251       if test "X$x" = "X$element"; then
17252         haveit=yes
17253         break
17254       fi
17255     done
17256     if test -z "$haveit"; then
17257       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17258     fi
17259   done
17260
17261
17262
17263
17264       HAVE_LIBPTH=yes
17265
17266
17267
17268       gl_have_pth=
17269       gl_save_LIBS="$LIBS"
17270       LIBS="$LIBS -lpth"
17271       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17272 /* end confdefs.h.  */
17273 #include <pth.h>
17274 int
17275 main ()
17276 {
17277 pth_self();
17278   ;
17279   return 0;
17280 }
17281 _ACEOF
17282 if ac_fn_c_try_link "$LINENO"; then :
17283   gl_have_pth=yes
17284 fi
17285 rm -f core conftest.err conftest.$ac_objext \
17286     conftest$ac_exeext conftest.$ac_ext
17287       LIBS="$gl_save_LIBS"
17288       if test -n "$gl_have_pth"; then
17289         gl_threads_api=pth
17290         LIBTHREAD="$LIBPTH"
17291         LTLIBTHREAD="$LTLIBPTH"
17292         LIBMULTITHREAD="$LIBTHREAD"
17293         LTLIBMULTITHREAD="$LTLIBTHREAD"
17294
17295 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
17296
17297         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17298           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17299
17300 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
17301
17302             LIBTHREAD=
17303             LTLIBTHREAD=
17304           fi
17305         fi
17306       else
17307         CPPFLAGS="$gl_save_CPPFLAGS"
17308       fi
17309     fi
17310     if test -z "$gl_have_pthread"; then
17311       if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
17312         if { case "$host_os" in
17313                mingw*) true;;
17314                *) false;;
17315              esac
17316            }; then
17317           gl_threads_api=win32
17318
17319 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
17320
17321         fi
17322       fi
17323     fi
17324   fi
17325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
17326 $as_echo_n "checking for multithread API to use... " >&6; }
17327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
17328 $as_echo "$gl_threads_api" >&6; }
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340   if test "$gl_threads_api" = posix; then
17341     # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
17342     # pthread_rwlock_* functions.
17343     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
17344 "
17345 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
17346
17347 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
17348
17349 fi
17350
17351     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
17352     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17353 /* end confdefs.h.  */
17354 #include <pthread.h>
17355 int
17356 main ()
17357 {
17358 #if __FreeBSD__ == 4
17359 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
17360 #else
17361 int x = (int)PTHREAD_MUTEX_RECURSIVE;
17362 return !x;
17363 #endif
17364   ;
17365   return 0;
17366 }
17367 _ACEOF
17368 if ac_fn_c_try_compile "$LINENO"; then :
17369
17370 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
17371
17372 fi
17373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17374   fi
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390     use_additional=yes
17391
17392   acl_save_prefix="$prefix"
17393   prefix="$acl_final_prefix"
17394   acl_save_exec_prefix="$exec_prefix"
17395   exec_prefix="$acl_final_exec_prefix"
17396
17397     eval additional_includedir=\"$includedir\"
17398     eval additional_libdir=\"$libdir\"
17399
17400   exec_prefix="$acl_save_exec_prefix"
17401   prefix="$acl_save_prefix"
17402
17403
17404 # Check whether --with-libiconv-prefix was given.
17405 if test "${with_libiconv_prefix+set}" = set; then :
17406   withval=$with_libiconv_prefix;
17407     if test "X$withval" = "Xno"; then
17408       use_additional=no
17409     else
17410       if test "X$withval" = "X"; then
17411
17412   acl_save_prefix="$prefix"
17413   prefix="$acl_final_prefix"
17414   acl_save_exec_prefix="$exec_prefix"
17415   exec_prefix="$acl_final_exec_prefix"
17416
17417           eval additional_includedir=\"$includedir\"
17418           eval additional_libdir=\"$libdir\"
17419
17420   exec_prefix="$acl_save_exec_prefix"
17421   prefix="$acl_save_prefix"
17422
17423       else
17424         additional_includedir="$withval/include"
17425         additional_libdir="$withval/$acl_libdirstem"
17426         if test "$acl_libdirstem2" != "$acl_libdirstem" \
17427            && ! test -d "$withval/$acl_libdirstem"; then
17428           additional_libdir="$withval/$acl_libdirstem2"
17429         fi
17430       fi
17431     fi
17432
17433 fi
17434
17435       LIBICONV=
17436   LTLIBICONV=
17437   INCICONV=
17438   LIBICONV_PREFIX=
17439       HAVE_LIBICONV=
17440   rpathdirs=
17441   ltrpathdirs=
17442   names_already_handled=
17443   names_next_round='iconv '
17444   while test -n "$names_next_round"; do
17445     names_this_round="$names_next_round"
17446     names_next_round=
17447     for name in $names_this_round; do
17448       already_handled=
17449       for n in $names_already_handled; do
17450         if test "$n" = "$name"; then
17451           already_handled=yes
17452           break
17453         fi
17454       done
17455       if test -z "$already_handled"; then
17456         names_already_handled="$names_already_handled $name"
17457                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17458         eval value=\"\$HAVE_LIB$uppername\"
17459         if test -n "$value"; then
17460           if test "$value" = yes; then
17461             eval value=\"\$LIB$uppername\"
17462             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17463             eval value=\"\$LTLIB$uppername\"
17464             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17465           else
17466                                     :
17467           fi
17468         else
17469                               found_dir=
17470           found_la=
17471           found_so=
17472           found_a=
17473           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
17474           if test -n "$acl_shlibext"; then
17475             shrext=".$acl_shlibext"             # typically: shrext=.so
17476           else
17477             shrext=
17478           fi
17479           if test $use_additional = yes; then
17480             dir="$additional_libdir"
17481                                     if test -n "$acl_shlibext"; then
17482               if test -f "$dir/$libname$shrext"; then
17483                 found_dir="$dir"
17484                 found_so="$dir/$libname$shrext"
17485               else
17486                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17487                   ver=`(cd "$dir" && \
17488                         for f in "$libname$shrext".*; do echo "$f"; done \
17489                         | sed -e "s,^$libname$shrext\\\\.,," \
17490                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17491                         | sed 1q ) 2>/dev/null`
17492                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17493                     found_dir="$dir"
17494                     found_so="$dir/$libname$shrext.$ver"
17495                   fi
17496                 else
17497                   eval library_names=\"$acl_library_names_spec\"
17498                   for f in $library_names; do
17499                     if test -f "$dir/$f"; then
17500                       found_dir="$dir"
17501                       found_so="$dir/$f"
17502                       break
17503                     fi
17504                   done
17505                 fi
17506               fi
17507             fi
17508                         if test "X$found_dir" = "X"; then
17509               if test -f "$dir/$libname.$acl_libext"; then
17510                 found_dir="$dir"
17511                 found_a="$dir/$libname.$acl_libext"
17512               fi
17513             fi
17514             if test "X$found_dir" != "X"; then
17515               if test -f "$dir/$libname.la"; then
17516                 found_la="$dir/$libname.la"
17517               fi
17518             fi
17519           fi
17520           if test "X$found_dir" = "X"; then
17521             for x in $LDFLAGS $LTLIBICONV; do
17522
17523   acl_save_prefix="$prefix"
17524   prefix="$acl_final_prefix"
17525   acl_save_exec_prefix="$exec_prefix"
17526   exec_prefix="$acl_final_exec_prefix"
17527   eval x=\"$x\"
17528   exec_prefix="$acl_save_exec_prefix"
17529   prefix="$acl_save_prefix"
17530
17531               case "$x" in
17532                 -L*)
17533                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17534                                     if test -n "$acl_shlibext"; then
17535                     if test -f "$dir/$libname$shrext"; then
17536                       found_dir="$dir"
17537                       found_so="$dir/$libname$shrext"
17538                     else
17539                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17540                         ver=`(cd "$dir" && \
17541                               for f in "$libname$shrext".*; do echo "$f"; done \
17542                               | sed -e "s,^$libname$shrext\\\\.,," \
17543                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17544                               | sed 1q ) 2>/dev/null`
17545                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17546                           found_dir="$dir"
17547                           found_so="$dir/$libname$shrext.$ver"
17548                         fi
17549                       else
17550                         eval library_names=\"$acl_library_names_spec\"
17551                         for f in $library_names; do
17552                           if test -f "$dir/$f"; then
17553                             found_dir="$dir"
17554                             found_so="$dir/$f"
17555                             break
17556                           fi
17557                         done
17558                       fi
17559                     fi
17560                   fi
17561                                     if test "X$found_dir" = "X"; then
17562                     if test -f "$dir/$libname.$acl_libext"; then
17563                       found_dir="$dir"
17564                       found_a="$dir/$libname.$acl_libext"
17565                     fi
17566                   fi
17567                   if test "X$found_dir" != "X"; then
17568                     if test -f "$dir/$libname.la"; then
17569                       found_la="$dir/$libname.la"
17570                     fi
17571                   fi
17572                   ;;
17573               esac
17574               if test "X$found_dir" != "X"; then
17575                 break
17576               fi
17577             done
17578           fi
17579           if test "X$found_dir" != "X"; then
17580                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17581             if test "X$found_so" != "X"; then
17582                                                         if test "$enable_rpath" = no \
17583                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17584                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17585                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17586               else
17587                                                                                 haveit=
17588                 for x in $ltrpathdirs; do
17589                   if test "X$x" = "X$found_dir"; then
17590                     haveit=yes
17591                     break
17592                   fi
17593                 done
17594                 if test -z "$haveit"; then
17595                   ltrpathdirs="$ltrpathdirs $found_dir"
17596                 fi
17597                                 if test "$acl_hardcode_direct" = yes; then
17598                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17599                 else
17600                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17601                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17602                                                             haveit=
17603                     for x in $rpathdirs; do
17604                       if test "X$x" = "X$found_dir"; then
17605                         haveit=yes
17606                         break
17607                       fi
17608                     done
17609                     if test -z "$haveit"; then
17610                       rpathdirs="$rpathdirs $found_dir"
17611                     fi
17612                   else
17613                                                                                 haveit=
17614                     for x in $LDFLAGS $LIBICONV; do
17615
17616   acl_save_prefix="$prefix"
17617   prefix="$acl_final_prefix"
17618   acl_save_exec_prefix="$exec_prefix"
17619   exec_prefix="$acl_final_exec_prefix"
17620   eval x=\"$x\"
17621   exec_prefix="$acl_save_exec_prefix"
17622   prefix="$acl_save_prefix"
17623
17624                       if test "X$x" = "X-L$found_dir"; then
17625                         haveit=yes
17626                         break
17627                       fi
17628                     done
17629                     if test -z "$haveit"; then
17630                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17631                     fi
17632                     if test "$acl_hardcode_minus_L" != no; then
17633                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17634                     else
17635                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17636                     fi
17637                   fi
17638                 fi
17639               fi
17640             else
17641               if test "X$found_a" != "X"; then
17642                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17643               else
17644                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17645               fi
17646             fi
17647                         additional_includedir=
17648             case "$found_dir" in
17649               */$acl_libdirstem | */$acl_libdirstem/)
17650                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17651                 if test "$name" = 'iconv'; then
17652                   LIBICONV_PREFIX="$basedir"
17653                 fi
17654                 additional_includedir="$basedir/include"
17655                 ;;
17656               */$acl_libdirstem2 | */$acl_libdirstem2/)
17657                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17658                 if test "$name" = 'iconv'; then
17659                   LIBICONV_PREFIX="$basedir"
17660                 fi
17661                 additional_includedir="$basedir/include"
17662                 ;;
17663             esac
17664             if test "X$additional_includedir" != "X"; then
17665                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17666                 haveit=
17667                 if test "X$additional_includedir" = "X/usr/local/include"; then
17668                   if test -n "$GCC"; then
17669                     case $host_os in
17670                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17671                     esac
17672                   fi
17673                 fi
17674                 if test -z "$haveit"; then
17675                   for x in $CPPFLAGS $INCICONV; do
17676
17677   acl_save_prefix="$prefix"
17678   prefix="$acl_final_prefix"
17679   acl_save_exec_prefix="$exec_prefix"
17680   exec_prefix="$acl_final_exec_prefix"
17681   eval x=\"$x\"
17682   exec_prefix="$acl_save_exec_prefix"
17683   prefix="$acl_save_prefix"
17684
17685                     if test "X$x" = "X-I$additional_includedir"; then
17686                       haveit=yes
17687                       break
17688                     fi
17689                   done
17690                   if test -z "$haveit"; then
17691                     if test -d "$additional_includedir"; then
17692                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17693                     fi
17694                   fi
17695                 fi
17696               fi
17697             fi
17698                         if test -n "$found_la"; then
17699                                                         save_libdir="$libdir"
17700               case "$found_la" in
17701                 */* | *\\*) . "$found_la" ;;
17702                 *) . "./$found_la" ;;
17703               esac
17704               libdir="$save_libdir"
17705                             for dep in $dependency_libs; do
17706                 case "$dep" in
17707                   -L*)
17708                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17709                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17710                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17711                       haveit=
17712                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17713                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17714                         if test -n "$GCC"; then
17715                           case $host_os in
17716                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17717                           esac
17718                         fi
17719                       fi
17720                       if test -z "$haveit"; then
17721                         haveit=
17722                         for x in $LDFLAGS $LIBICONV; do
17723
17724   acl_save_prefix="$prefix"
17725   prefix="$acl_final_prefix"
17726   acl_save_exec_prefix="$exec_prefix"
17727   exec_prefix="$acl_final_exec_prefix"
17728   eval x=\"$x\"
17729   exec_prefix="$acl_save_exec_prefix"
17730   prefix="$acl_save_prefix"
17731
17732                           if test "X$x" = "X-L$additional_libdir"; then
17733                             haveit=yes
17734                             break
17735                           fi
17736                         done
17737                         if test -z "$haveit"; then
17738                           if test -d "$additional_libdir"; then
17739                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17740                           fi
17741                         fi
17742                         haveit=
17743                         for x in $LDFLAGS $LTLIBICONV; do
17744
17745   acl_save_prefix="$prefix"
17746   prefix="$acl_final_prefix"
17747   acl_save_exec_prefix="$exec_prefix"
17748   exec_prefix="$acl_final_exec_prefix"
17749   eval x=\"$x\"
17750   exec_prefix="$acl_save_exec_prefix"
17751   prefix="$acl_save_prefix"
17752
17753                           if test "X$x" = "X-L$additional_libdir"; then
17754                             haveit=yes
17755                             break
17756                           fi
17757                         done
17758                         if test -z "$haveit"; then
17759                           if test -d "$additional_libdir"; then
17760                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17761                           fi
17762                         fi
17763                       fi
17764                     fi
17765                     ;;
17766                   -R*)
17767                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17768                     if test "$enable_rpath" != no; then
17769                                                                   haveit=
17770                       for x in $rpathdirs; do
17771                         if test "X$x" = "X$dir"; then
17772                           haveit=yes
17773                           break
17774                         fi
17775                       done
17776                       if test -z "$haveit"; then
17777                         rpathdirs="$rpathdirs $dir"
17778                       fi
17779                                                                   haveit=
17780                       for x in $ltrpathdirs; do
17781                         if test "X$x" = "X$dir"; then
17782                           haveit=yes
17783                           break
17784                         fi
17785                       done
17786                       if test -z "$haveit"; then
17787                         ltrpathdirs="$ltrpathdirs $dir"
17788                       fi
17789                     fi
17790                     ;;
17791                   -l*)
17792                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17793                     ;;
17794                   *.la)
17795                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17796                     ;;
17797                   *)
17798                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17799                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17800                     ;;
17801                 esac
17802               done
17803             fi
17804           else
17805                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17806             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17807           fi
17808         fi
17809       fi
17810     done
17811   done
17812   if test "X$rpathdirs" != "X"; then
17813     if test -n "$acl_hardcode_libdir_separator"; then
17814                         alldirs=
17815       for found_dir in $rpathdirs; do
17816         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17817       done
17818             acl_save_libdir="$libdir"
17819       libdir="$alldirs"
17820       eval flag=\"$acl_hardcode_libdir_flag_spec\"
17821       libdir="$acl_save_libdir"
17822       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17823     else
17824             for found_dir in $rpathdirs; do
17825         acl_save_libdir="$libdir"
17826         libdir="$found_dir"
17827         eval flag=\"$acl_hardcode_libdir_flag_spec\"
17828         libdir="$acl_save_libdir"
17829         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17830       done
17831     fi
17832   fi
17833   if test "X$ltrpathdirs" != "X"; then
17834             for found_dir in $ltrpathdirs; do
17835       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17836     done
17837   fi
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850           am_save_CPPFLAGS="$CPPFLAGS"
17851
17852   for element in $INCICONV; do
17853     haveit=
17854     for x in $CPPFLAGS; do
17855
17856   acl_save_prefix="$prefix"
17857   prefix="$acl_final_prefix"
17858   acl_save_exec_prefix="$exec_prefix"
17859   exec_prefix="$acl_final_exec_prefix"
17860   eval x=\"$x\"
17861   exec_prefix="$acl_save_exec_prefix"
17862   prefix="$acl_save_prefix"
17863
17864       if test "X$x" = "X$element"; then
17865         haveit=yes
17866         break
17867       fi
17868     done
17869     if test -z "$haveit"; then
17870       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17871     fi
17872   done
17873
17874
17875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17876 $as_echo_n "checking for iconv... " >&6; }
17877 if test "${am_cv_func_iconv+set}" = set; then :
17878   $as_echo_n "(cached) " >&6
17879 else
17880
17881     am_cv_func_iconv="no, consider installing GNU libiconv"
17882     am_cv_lib_iconv=no
17883     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17884 /* end confdefs.h.  */
17885 #include <stdlib.h>
17886 #include <iconv.h>
17887 int
17888 main ()
17889 {
17890 iconv_t cd = iconv_open("","");
17891        iconv(cd,NULL,NULL,NULL,NULL);
17892        iconv_close(cd);
17893   ;
17894   return 0;
17895 }
17896 _ACEOF
17897 if ac_fn_c_try_link "$LINENO"; then :
17898   am_cv_func_iconv=yes
17899 fi
17900 rm -f core conftest.err conftest.$ac_objext \
17901     conftest$ac_exeext conftest.$ac_ext
17902     if test "$am_cv_func_iconv" != yes; then
17903       am_save_LIBS="$LIBS"
17904       LIBS="$LIBS $LIBICONV"
17905       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17906 /* end confdefs.h.  */
17907 #include <stdlib.h>
17908 #include <iconv.h>
17909 int
17910 main ()
17911 {
17912 iconv_t cd = iconv_open("","");
17913          iconv(cd,NULL,NULL,NULL,NULL);
17914          iconv_close(cd);
17915   ;
17916   return 0;
17917 }
17918 _ACEOF
17919 if ac_fn_c_try_link "$LINENO"; then :
17920   am_cv_lib_iconv=yes
17921         am_cv_func_iconv=yes
17922 fi
17923 rm -f core conftest.err conftest.$ac_objext \
17924     conftest$ac_exeext conftest.$ac_ext
17925       LIBS="$am_save_LIBS"
17926     fi
17927
17928 fi
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17930 $as_echo "$am_cv_func_iconv" >&6; }
17931   if test "$am_cv_func_iconv" = yes; then
17932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17933 $as_echo_n "checking for working iconv... " >&6; }
17934 if test "${am_cv_func_iconv_works+set}" = set; then :
17935   $as_echo_n "(cached) " >&6
17936 else
17937
17938             am_save_LIBS="$LIBS"
17939       if test $am_cv_lib_iconv = yes; then
17940         LIBS="$LIBS $LIBICONV"
17941       fi
17942       if test "$cross_compiling" = yes; then :
17943   case "$host_os" in
17944            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17945            *)            am_cv_func_iconv_works="guessing yes" ;;
17946          esac
17947 else
17948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17949 /* end confdefs.h.  */
17950
17951 #include <iconv.h>
17952 #include <string.h>
17953 int main ()
17954 {
17955   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
17956      returns.  */
17957   {
17958     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17959     if (cd_utf8_to_88591 != (iconv_t)(-1))
17960       {
17961         static const char input[] = "\342\202\254"; /* EURO SIGN */
17962         char buf[10];
17963         const char *inptr = input;
17964         size_t inbytesleft = strlen (input);
17965         char *outptr = buf;
17966         size_t outbytesleft = sizeof (buf);
17967         size_t res = iconv (cd_utf8_to_88591,
17968                             (char **) &inptr, &inbytesleft,
17969                             &outptr, &outbytesleft);
17970         if (res == 0)
17971           return 1;
17972       }
17973   }
17974   /* Test against Solaris 10 bug: Failures are not distinguishable from
17975      successful returns.  */
17976   {
17977     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
17978     if (cd_ascii_to_88591 != (iconv_t)(-1))
17979       {
17980         static const char input[] = "\263";
17981         char buf[10];
17982         const char *inptr = input;
17983         size_t inbytesleft = strlen (input);
17984         char *outptr = buf;
17985         size_t outbytesleft = sizeof (buf);
17986         size_t res = iconv (cd_ascii_to_88591,
17987                             (char **) &inptr, &inbytesleft,
17988                             &outptr, &outbytesleft);
17989         if (res == 0)
17990           return 1;
17991       }
17992   }
17993 #if 0 /* This bug could be worked around by the caller.  */
17994   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
17995   {
17996     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17997     if (cd_88591_to_utf8 != (iconv_t)(-1))
17998       {
17999         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
18000         char buf[50];
18001         const char *inptr = input;
18002         size_t inbytesleft = strlen (input);
18003         char *outptr = buf;
18004         size_t outbytesleft = sizeof (buf);
18005         size_t res = iconv (cd_88591_to_utf8,
18006                             (char **) &inptr, &inbytesleft,
18007                             &outptr, &outbytesleft);
18008         if ((int)res > 0)
18009           return 1;
18010       }
18011   }
18012 #endif
18013   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
18014      provided.  */
18015   if (/* Try standardized names.  */
18016       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
18017       /* Try IRIX, OSF/1 names.  */
18018       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
18019       /* Try AIX names.  */
18020       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
18021       /* Try HP-UX names.  */
18022       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
18023     return 1;
18024   return 0;
18025 }
18026 _ACEOF
18027 if ac_fn_c_try_run "$LINENO"; then :
18028   am_cv_func_iconv_works=yes
18029 else
18030   am_cv_func_iconv_works=no
18031 fi
18032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18033   conftest.$ac_objext conftest.beam conftest.$ac_ext
18034 fi
18035
18036       LIBS="$am_save_LIBS"
18037
18038 fi
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
18040 $as_echo "$am_cv_func_iconv_works" >&6; }
18041     case "$am_cv_func_iconv_works" in
18042       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
18043       *)   am_func_iconv=yes ;;
18044     esac
18045   else
18046     am_func_iconv=no am_cv_lib_iconv=no
18047   fi
18048   if test "$am_func_iconv" = yes; then
18049
18050 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18051
18052   fi
18053   if test "$am_cv_lib_iconv" = yes; then
18054     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18055 $as_echo_n "checking how to link with libiconv... " >&6; }
18056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18057 $as_echo "$LIBICONV" >&6; }
18058   else
18059             CPPFLAGS="$am_save_CPPFLAGS"
18060     LIBICONV=
18061     LTLIBICONV=
18062   fi
18063
18064
18065
18066   if test "$am_cv_func_iconv" = yes; then
18067     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18068 $as_echo_n "checking for iconv declaration... " >&6; }
18069     if test "${am_cv_proto_iconv+set}" = set; then :
18070   $as_echo_n "(cached) " >&6
18071 else
18072
18073       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18074 /* end confdefs.h.  */
18075
18076 #include <stdlib.h>
18077 #include <iconv.h>
18078 extern
18079 #ifdef __cplusplus
18080 "C"
18081 #endif
18082 #if defined(__STDC__) || defined(__cplusplus)
18083 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18084 #else
18085 size_t iconv();
18086 #endif
18087
18088 int
18089 main ()
18090 {
18091
18092   ;
18093   return 0;
18094 }
18095 _ACEOF
18096 if ac_fn_c_try_compile "$LINENO"; then :
18097   am_cv_proto_iconv_arg1=""
18098 else
18099   am_cv_proto_iconv_arg1="const"
18100 fi
18101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18102       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);"
18103 fi
18104
18105     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
18106     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
18107          $am_cv_proto_iconv" >&5
18108 $as_echo "
18109          $am_cv_proto_iconv" >&6; }
18110
18111 cat >>confdefs.h <<_ACEOF
18112 #define ICONV_CONST $am_cv_proto_iconv_arg1
18113 _ACEOF
18114
18115   fi
18116
18117
18118
18119
18120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18121 /* end confdefs.h.  */
18122 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
18123 int
18124 main ()
18125 {
18126
18127   ;
18128   return 0;
18129 }
18130 _ACEOF
18131 if ac_fn_c_try_link "$LINENO"; then :
18132
18133 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
18134
18135 fi
18136 rm -f core conftest.err conftest.$ac_objext \
18137     conftest$ac_exeext conftest.$ac_ext
18138
18139   for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
18140 do :
18141   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18142 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18143 eval as_val=\$$as_ac_Header
18144    if test "x$as_val" = x""yes; then :
18145   cat >>confdefs.h <<_ACEOF
18146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18147 _ACEOF
18148
18149 fi
18150
18151 done
18152
18153   for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
18154     stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
18155     argz_stringify argz_next __fsetlocking
18156 do :
18157   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18158 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18159 eval as_val=\$$as_ac_var
18160    if test "x$as_val" = x""yes; then :
18161   cat >>confdefs.h <<_ACEOF
18162 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18163 _ACEOF
18164
18165 fi
18166 done
18167
18168
18169
18170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
18171 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
18172 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
18173   $as_echo_n "(cached) " >&6
18174 else
18175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18176 /* end confdefs.h.  */
18177 #include <stdio.h>
18178 int
18179 main ()
18180 {
18181
18182 #ifndef feof_unlocked
18183   char *p = (char *) feof_unlocked;
18184 #endif
18185
18186   ;
18187   return 0;
18188 }
18189 _ACEOF
18190 if ac_fn_c_try_compile "$LINENO"; then :
18191   ac_cv_have_decl_feof_unlocked=yes
18192 else
18193   ac_cv_have_decl_feof_unlocked=no
18194 fi
18195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18196 fi
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
18198 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
18199   if test $ac_cv_have_decl_feof_unlocked = yes; then
18200     gt_value=1
18201   else
18202     gt_value=0
18203   fi
18204
18205 cat >>confdefs.h <<_ACEOF
18206 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
18207 _ACEOF
18208
18209
18210
18211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
18212 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
18213 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
18214   $as_echo_n "(cached) " >&6
18215 else
18216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18217 /* end confdefs.h.  */
18218 #include <stdio.h>
18219 int
18220 main ()
18221 {
18222
18223 #ifndef fgets_unlocked
18224   char *p = (char *) fgets_unlocked;
18225 #endif
18226
18227   ;
18228   return 0;
18229 }
18230 _ACEOF
18231 if ac_fn_c_try_compile "$LINENO"; then :
18232   ac_cv_have_decl_fgets_unlocked=yes
18233 else
18234   ac_cv_have_decl_fgets_unlocked=no
18235 fi
18236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18237 fi
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
18239 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
18240   if test $ac_cv_have_decl_fgets_unlocked = yes; then
18241     gt_value=1
18242   else
18243     gt_value=0
18244   fi
18245
18246 cat >>confdefs.h <<_ACEOF
18247 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
18248 _ACEOF
18249
18250
18251
18252
18253
18254                       for ac_prog in bison
18255 do
18256   # Extract the first word of "$ac_prog", so it can be a program name with args.
18257 set dummy $ac_prog; ac_word=$2
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18259 $as_echo_n "checking for $ac_word... " >&6; }
18260 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
18261   $as_echo_n "(cached) " >&6
18262 else
18263   if test -n "$INTLBISON"; then
18264   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
18265 else
18266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18267 for as_dir in $PATH
18268 do
18269   IFS=$as_save_IFS
18270   test -z "$as_dir" && as_dir=.
18271     for ac_exec_ext in '' $ac_executable_extensions; do
18272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18273     ac_cv_prog_INTLBISON="$ac_prog"
18274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18275     break 2
18276   fi
18277 done
18278   done
18279 IFS=$as_save_IFS
18280
18281 fi
18282 fi
18283 INTLBISON=$ac_cv_prog_INTLBISON
18284 if test -n "$INTLBISON"; then
18285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
18286 $as_echo "$INTLBISON" >&6; }
18287 else
18288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18289 $as_echo "no" >&6; }
18290 fi
18291
18292
18293   test -n "$INTLBISON" && break
18294 done
18295
18296   if test -z "$INTLBISON"; then
18297     ac_verc_fail=yes
18298   else
18299         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
18300 $as_echo_n "checking version of bison... " >&6; }
18301     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
18302     case $ac_prog_version in
18303       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
18304       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
18305          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
18306       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
18307     esac
18308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
18309 $as_echo "$ac_prog_version" >&6; }
18310   fi
18311   if test $ac_verc_fail = yes; then
18312     INTLBISON=:
18313   fi
18314
18315
18316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18317 $as_echo_n "checking for long long int... " >&6; }
18318 if test "${ac_cv_type_long_long_int+set}" = set; then :
18319   $as_echo_n "(cached) " >&6
18320 else
18321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18322 /* end confdefs.h.  */
18323
18324   /* For now, do not test the preprocessor; as of 2007 there are too many
18325          implementations with broken preprocessors.  Perhaps this can
18326          be revisited in 2012.  In the meantime, code should not expect
18327          #if to work with literals wider than 32 bits.  */
18328       /* Test literals.  */
18329       long long int ll = 9223372036854775807ll;
18330       long long int nll = -9223372036854775807LL;
18331       unsigned long long int ull = 18446744073709551615ULL;
18332       /* Test constant expressions.   */
18333       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18334                      ? 1 : -1)];
18335       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18336                      ? 1 : -1)];
18337       int i = 63;
18338 int
18339 main ()
18340 {
18341 /* Test availability of runtime routines for shift and division.  */
18342       long long int llmax = 9223372036854775807ll;
18343       unsigned long long int ullmax = 18446744073709551615ull;
18344       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18345               | (llmax / ll) | (llmax % ll)
18346               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18347               | (ullmax / ull) | (ullmax % ull));
18348   ;
18349   return 0;
18350 }
18351
18352 _ACEOF
18353 if ac_fn_c_try_link "$LINENO"; then :
18354                           if test "$cross_compiling" = yes; then :
18355   ac_cv_type_long_long_int=yes
18356 else
18357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18358 /* end confdefs.h.  */
18359 #include <limits.h>
18360                #ifndef LLONG_MAX
18361                # define HALF \
18362                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18363                # define LLONG_MAX (HALF - 1 + HALF)
18364                #endif
18365 int
18366 main ()
18367 {
18368 long long int n = 1;
18369                int i;
18370                for (i = 0; ; i++)
18371                  {
18372                    long long int m = n << i;
18373                    if (m >> i != n)
18374                      return 1;
18375                    if (LLONG_MAX / 2 < m)
18376                      break;
18377                  }
18378                return 0;
18379   ;
18380   return 0;
18381 }
18382 _ACEOF
18383 if ac_fn_c_try_run "$LINENO"; then :
18384   ac_cv_type_long_long_int=yes
18385 else
18386   ac_cv_type_long_long_int=no
18387 fi
18388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18389   conftest.$ac_objext conftest.beam conftest.$ac_ext
18390 fi
18391
18392 else
18393   ac_cv_type_long_long_int=no
18394 fi
18395 rm -f core conftest.err conftest.$ac_objext \
18396     conftest$ac_exeext conftest.$ac_ext
18397 fi
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18399 $as_echo "$ac_cv_type_long_long_int" >&6; }
18400   if test $ac_cv_type_long_long_int = yes; then
18401
18402 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18403
18404   fi
18405
18406
18407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18408 $as_echo_n "checking for wchar_t... " >&6; }
18409 if test "${gt_cv_c_wchar_t+set}" = set; then :
18410   $as_echo_n "(cached) " >&6
18411 else
18412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18413 /* end confdefs.h.  */
18414 #include <stddef.h>
18415        wchar_t foo = (wchar_t)'\0';
18416 int
18417 main ()
18418 {
18419
18420   ;
18421   return 0;
18422 }
18423 _ACEOF
18424 if ac_fn_c_try_compile "$LINENO"; then :
18425   gt_cv_c_wchar_t=yes
18426 else
18427   gt_cv_c_wchar_t=no
18428 fi
18429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18430 fi
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18432 $as_echo "$gt_cv_c_wchar_t" >&6; }
18433   if test $gt_cv_c_wchar_t = yes; then
18434
18435 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18436
18437   fi
18438
18439
18440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18441 $as_echo_n "checking for wint_t... " >&6; }
18442 if test "${gt_cv_c_wint_t+set}" = set; then :
18443   $as_echo_n "(cached) " >&6
18444 else
18445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h.  */
18447
18448 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18449    <wchar.h>.
18450    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18451    before <wchar.h>.  */
18452 #include <stddef.h>
18453 #include <stdio.h>
18454 #include <time.h>
18455 #include <wchar.h>
18456        wint_t foo = (wchar_t)'\0';
18457 int
18458 main ()
18459 {
18460
18461   ;
18462   return 0;
18463 }
18464 _ACEOF
18465 if ac_fn_c_try_compile "$LINENO"; then :
18466   gt_cv_c_wint_t=yes
18467 else
18468   gt_cv_c_wint_t=no
18469 fi
18470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18471 fi
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18473 $as_echo "$gt_cv_c_wint_t" >&6; }
18474   if test $gt_cv_c_wint_t = yes; then
18475
18476 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18477
18478   fi
18479
18480
18481
18482
18483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18484 $as_echo_n "checking for intmax_t... " >&6; }
18485 if test "${gt_cv_c_intmax_t+set}" = set; then :
18486   $as_echo_n "(cached) " >&6
18487 else
18488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18489 /* end confdefs.h.  */
18490
18491 #include <stddef.h>
18492 #include <stdlib.h>
18493 #if HAVE_STDINT_H_WITH_UINTMAX
18494 #include <stdint.h>
18495 #endif
18496 #if HAVE_INTTYPES_H_WITH_UINTMAX
18497 #include <inttypes.h>
18498 #endif
18499
18500 int
18501 main ()
18502 {
18503 intmax_t x = -1;
18504         return !x;
18505   ;
18506   return 0;
18507 }
18508 _ACEOF
18509 if ac_fn_c_try_compile "$LINENO"; then :
18510   gt_cv_c_intmax_t=yes
18511 else
18512   gt_cv_c_intmax_t=no
18513 fi
18514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18515 fi
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18517 $as_echo "$gt_cv_c_intmax_t" >&6; }
18518   if test $gt_cv_c_intmax_t = yes; then
18519
18520 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18521
18522   fi
18523
18524
18525
18526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18527 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18528 if test "${gt_cv_func_printf_posix+set}" = set; then :
18529   $as_echo_n "(cached) " >&6
18530 else
18531
18532       if test "$cross_compiling" = yes; then :
18533
18534         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535 /* end confdefs.h.  */
18536
18537 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18538   notposix
18539 #endif
18540
18541 _ACEOF
18542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18543   $EGREP "notposix" >/dev/null 2>&1; then :
18544   gt_cv_func_printf_posix="guessing no"
18545 else
18546   gt_cv_func_printf_posix="guessing yes"
18547 fi
18548 rm -f conftest*
18549
18550
18551 else
18552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18553 /* end confdefs.h.  */
18554
18555 #include <stdio.h>
18556 #include <string.h>
18557 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18558    dollar expansion (possibly an autoconf bug).  */
18559 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18560 static char buf[100];
18561 int main ()
18562 {
18563   sprintf (buf, format, 33, 55);
18564   return (strcmp (buf, "55 33") != 0);
18565 }
18566 _ACEOF
18567 if ac_fn_c_try_run "$LINENO"; then :
18568   gt_cv_func_printf_posix=yes
18569 else
18570   gt_cv_func_printf_posix=no
18571 fi
18572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18573   conftest.$ac_objext conftest.beam conftest.$ac_ext
18574 fi
18575
18576
18577 fi
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18579 $as_echo "$gt_cv_func_printf_posix" >&6; }
18580   case $gt_cv_func_printf_posix in
18581     *yes)
18582
18583 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18584
18585       ;;
18586   esac
18587
18588
18589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18590 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18591 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
18592   $as_echo_n "(cached) " >&6
18593 else
18594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18595 /* end confdefs.h.  */
18596
18597 #include <features.h>
18598 #ifdef __GNU_LIBRARY__
18599  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18600   Lucky GNU user
18601  #endif
18602 #endif
18603
18604 _ACEOF
18605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18606   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18607   ac_cv_gnu_library_2_1=yes
18608 else
18609   ac_cv_gnu_library_2_1=no
18610 fi
18611 rm -f conftest*
18612
18613
18614
18615 fi
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18617 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18618
18619     GLIBC21="$ac_cv_gnu_library_2_1"
18620
18621
18622
18623   for ac_header in stdint.h
18624 do :
18625   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18626 if test "x$ac_cv_header_stdint_h" = x""yes; then :
18627   cat >>confdefs.h <<_ACEOF
18628 #define HAVE_STDINT_H 1
18629 _ACEOF
18630
18631 fi
18632
18633 done
18634
18635     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
18636 $as_echo_n "checking for SIZE_MAX... " >&6; }
18637 if test "${gl_cv_size_max+set}" = set; then :
18638   $as_echo_n "(cached) " >&6
18639 else
18640
18641     gl_cv_size_max=
18642     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18643 /* end confdefs.h.  */
18644
18645 #include <limits.h>
18646 #if HAVE_STDINT_H
18647 #include <stdint.h>
18648 #endif
18649 #ifdef SIZE_MAX
18650 Found it
18651 #endif
18652
18653 _ACEOF
18654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18655   $EGREP "Found it" >/dev/null 2>&1; then :
18656   gl_cv_size_max=yes
18657 fi
18658 rm -f conftest*
18659
18660     if test -z "$gl_cv_size_max"; then
18661                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
18662 #include <limits.h>"; then :
18663
18664 else
18665   size_t_bits_minus_1=
18666 fi
18667
18668       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
18669
18670 else
18671   fits_in_uint=
18672 fi
18673
18674       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
18675         if test $fits_in_uint = 1; then
18676                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18677 /* end confdefs.h.  */
18678 #include <stddef.h>
18679             extern size_t foo;
18680             extern unsigned long foo;
18681
18682 int
18683 main ()
18684 {
18685
18686   ;
18687   return 0;
18688 }
18689 _ACEOF
18690 if ac_fn_c_try_compile "$LINENO"; then :
18691   fits_in_uint=0
18692 fi
18693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18694         fi
18695                                 if test $fits_in_uint = 1; then
18696           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
18697         else
18698           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
18699         fi
18700       else
18701                 gl_cv_size_max='((size_t)~(size_t)0)'
18702       fi
18703     fi
18704
18705 fi
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
18707 $as_echo "$gl_cv_size_max" >&6; }
18708   if test "$gl_cv_size_max" != yes; then
18709
18710 cat >>confdefs.h <<_ACEOF
18711 #define SIZE_MAX $gl_cv_size_max
18712 _ACEOF
18713
18714   fi
18715
18716
18717
18718
18719
18720   for ac_header in stdint.h
18721 do :
18722   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18723 if test "x$ac_cv_header_stdint_h" = x""yes; then :
18724   cat >>confdefs.h <<_ACEOF
18725 #define HAVE_STDINT_H 1
18726 _ACEOF
18727
18728 fi
18729
18730 done
18731
18732
18733
18734
18735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
18736 $as_echo_n "checking for working fcntl.h... " >&6; }
18737 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
18738   $as_echo_n "(cached) " >&6
18739 else
18740   if test "$cross_compiling" = yes; then :
18741   gl_cv_header_working_fcntl_h=cross-compiling
18742 else
18743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18744 /* end confdefs.h.  */
18745 #include <sys/types.h>
18746            #include <sys/stat.h>
18747            #include <unistd.h>
18748            #include <fcntl.h>
18749            #ifndef O_NOATIME
18750             #define O_NOATIME 0
18751            #endif
18752            #ifndef O_NOFOLLOW
18753             #define O_NOFOLLOW 0
18754            #endif
18755            static int const constants[] =
18756             {
18757               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
18758               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
18759             };
18760
18761 int
18762 main ()
18763 {
18764
18765             int status = !constants;
18766             {
18767               static char const sym[] = "conftest.sym";
18768               if (symlink (".", sym) != 0
18769                   || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
18770                 status |= 32;
18771               unlink (sym);
18772             }
18773             {
18774               static char const file[] = "confdefs.h";
18775               int fd = open (file, O_RDONLY | O_NOATIME);
18776               char c;
18777               struct stat st0, st1;
18778               if (fd < 0
18779                   || fstat (fd, &st0) != 0
18780                   || sleep (1) != 0
18781                   || read (fd, &c, 1) != 1
18782                   || close (fd) != 0
18783                   || stat (file, &st1) != 0
18784                   || st0.st_atime != st1.st_atime)
18785                 status |= 64;
18786             }
18787             return status;
18788   ;
18789   return 0;
18790 }
18791 _ACEOF
18792 if ac_fn_c_try_run "$LINENO"; then :
18793   gl_cv_header_working_fcntl_h=yes
18794 else
18795   case $? in #(
18796         32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
18797         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
18798         96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
18799          *) gl_cv_header_working_fcntl_h='no';;
18800         esac
18801 fi
18802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18803   conftest.$ac_objext conftest.beam conftest.$ac_ext
18804 fi
18805
18806 fi
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
18808 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
18809
18810   case $gl_cv_header_working_fcntl_h in #(
18811   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
18812   *) ac_val=1;;
18813   esac
18814
18815 cat >>confdefs.h <<_ACEOF
18816 #define HAVE_WORKING_O_NOATIME $ac_val
18817 _ACEOF
18818
18819
18820   case $gl_cv_header_working_fcntl_h in #(
18821   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
18822   *) ac_val=1;;
18823   esac
18824
18825 cat >>confdefs.h <<_ACEOF
18826 #define HAVE_WORKING_O_NOFOLLOW $ac_val
18827 _ACEOF
18828
18829
18830
18831     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18832 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18833 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
18834   $as_echo_n "(cached) " >&6
18835 else
18836   gt_save_LIBS="$LIBS"
18837      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18838      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18839 /* end confdefs.h.  */
18840 #include <CoreFoundation/CFPreferences.h>
18841 int
18842 main ()
18843 {
18844 CFPreferencesCopyAppValue(NULL, NULL)
18845   ;
18846   return 0;
18847 }
18848 _ACEOF
18849 if ac_fn_c_try_link "$LINENO"; then :
18850   gt_cv_func_CFPreferencesCopyAppValue=yes
18851 else
18852   gt_cv_func_CFPreferencesCopyAppValue=no
18853 fi
18854 rm -f core conftest.err conftest.$ac_objext \
18855     conftest$ac_exeext conftest.$ac_ext
18856      LIBS="$gt_save_LIBS"
18857 fi
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18859 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18860   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18861
18862 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18863
18864   fi
18865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18866 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18867 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
18868   $as_echo_n "(cached) " >&6
18869 else
18870   gt_save_LIBS="$LIBS"
18871      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18872      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18873 /* end confdefs.h.  */
18874 #include <CoreFoundation/CFLocale.h>
18875 int
18876 main ()
18877 {
18878 CFLocaleCopyCurrent();
18879   ;
18880   return 0;
18881 }
18882 _ACEOF
18883 if ac_fn_c_try_link "$LINENO"; then :
18884   gt_cv_func_CFLocaleCopyCurrent=yes
18885 else
18886   gt_cv_func_CFLocaleCopyCurrent=no
18887 fi
18888 rm -f core conftest.err conftest.$ac_objext \
18889     conftest$ac_exeext conftest.$ac_ext
18890      LIBS="$gt_save_LIBS"
18891 fi
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18893 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18894   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18895
18896 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18897
18898   fi
18899   INTL_MACOSX_LIBS=
18900   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18901     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18902   fi
18903
18904
18905
18906
18907
18908
18909
18910     case "$enable_silent_rules" in
18911     yes) INTL_DEFAULT_VERBOSITY=0;;
18912     no)  INTL_DEFAULT_VERBOSITY=1;;
18913     *)   INTL_DEFAULT_VERBOSITY=1;;
18914   esac
18915
18916
18917   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
18918 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
18919
18920 else
18921
18922 $as_echo "#define ptrdiff_t long" >>confdefs.h
18923
18924
18925 fi
18926
18927   for ac_header in stddef.h stdlib.h string.h
18928 do :
18929   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18930 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18931 eval as_val=\$$as_ac_Header
18932    if test "x$as_val" = x""yes; then :
18933   cat >>confdefs.h <<_ACEOF
18934 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18935 _ACEOF
18936
18937 fi
18938
18939 done
18940
18941   for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
18942     snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
18943 do :
18944   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18945 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18946 eval as_val=\$$as_ac_var
18947    if test "x$as_val" = x""yes; then :
18948   cat >>confdefs.h <<_ACEOF
18949 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18950 _ACEOF
18951
18952 fi
18953 done
18954
18955
18956
18957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
18958 $as_echo_n "checking whether _snprintf is declared... " >&6; }
18959 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
18960   $as_echo_n "(cached) " >&6
18961 else
18962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18963 /* end confdefs.h.  */
18964 #include <stdio.h>
18965 int
18966 main ()
18967 {
18968
18969 #ifndef _snprintf
18970   char *p = (char *) _snprintf;
18971 #endif
18972
18973   ;
18974   return 0;
18975 }
18976 _ACEOF
18977 if ac_fn_c_try_compile "$LINENO"; then :
18978   ac_cv_have_decl__snprintf=yes
18979 else
18980   ac_cv_have_decl__snprintf=no
18981 fi
18982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18983 fi
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
18985 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
18986   if test $ac_cv_have_decl__snprintf = yes; then
18987     gt_value=1
18988   else
18989     gt_value=0
18990   fi
18991
18992 cat >>confdefs.h <<_ACEOF
18993 #define HAVE_DECL__SNPRINTF $gt_value
18994 _ACEOF
18995
18996
18997
18998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
18999 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19000 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
19001   $as_echo_n "(cached) " >&6
19002 else
19003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19004 /* end confdefs.h.  */
19005 #include <stdio.h>
19006 int
19007 main ()
19008 {
19009
19010 #ifndef _snwprintf
19011   char *p = (char *) _snwprintf;
19012 #endif
19013
19014   ;
19015   return 0;
19016 }
19017 _ACEOF
19018 if ac_fn_c_try_compile "$LINENO"; then :
19019   ac_cv_have_decl__snwprintf=yes
19020 else
19021   ac_cv_have_decl__snwprintf=no
19022 fi
19023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19024 fi
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19026 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19027   if test $ac_cv_have_decl__snwprintf = yes; then
19028     gt_value=1
19029   else
19030     gt_value=0
19031   fi
19032
19033 cat >>confdefs.h <<_ACEOF
19034 #define HAVE_DECL__SNWPRINTF $gt_value
19035 _ACEOF
19036
19037
19038
19039
19040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19041 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19042 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
19043   $as_echo_n "(cached) " >&6
19044 else
19045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19046 /* end confdefs.h.  */
19047 #include <stdio.h>
19048 int
19049 main ()
19050 {
19051
19052 #ifndef getc_unlocked
19053   char *p = (char *) getc_unlocked;
19054 #endif
19055
19056   ;
19057   return 0;
19058 }
19059 _ACEOF
19060 if ac_fn_c_try_compile "$LINENO"; then :
19061   ac_cv_have_decl_getc_unlocked=yes
19062 else
19063   ac_cv_have_decl_getc_unlocked=no
19064 fi
19065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19066 fi
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19068 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19069   if test $ac_cv_have_decl_getc_unlocked = yes; then
19070     gt_value=1
19071   else
19072     gt_value=0
19073   fi
19074
19075 cat >>confdefs.h <<_ACEOF
19076 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19077 _ACEOF
19078
19079
19080
19081   case $gt_cv_func_printf_posix in
19082     *yes) HAVE_POSIX_PRINTF=1 ;;
19083     *) HAVE_POSIX_PRINTF=0 ;;
19084   esac
19085
19086   if test "$ac_cv_func_asprintf" = yes; then
19087     HAVE_ASPRINTF=1
19088   else
19089     HAVE_ASPRINTF=0
19090   fi
19091
19092   if test "$ac_cv_func_snprintf" = yes; then
19093     HAVE_SNPRINTF=1
19094   else
19095     HAVE_SNPRINTF=0
19096   fi
19097
19098   if test "$ac_cv_func_newlocale" = yes; then
19099     HAVE_NEWLOCALE=1
19100   else
19101     HAVE_NEWLOCALE=0
19102   fi
19103
19104   if test "$ac_cv_func_wprintf" = yes; then
19105     HAVE_WPRINTF=1
19106   else
19107     HAVE_WPRINTF=0
19108   fi
19109
19110
19111
19112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19113 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19114 if test "${am_cv_langinfo_codeset+set}" = set; then :
19115   $as_echo_n "(cached) " >&6
19116 else
19117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19118 /* end confdefs.h.  */
19119 #include <langinfo.h>
19120 int
19121 main ()
19122 {
19123 char* cs = nl_langinfo(CODESET); return !cs;
19124   ;
19125   return 0;
19126 }
19127 _ACEOF
19128 if ac_fn_c_try_link "$LINENO"; then :
19129   am_cv_langinfo_codeset=yes
19130 else
19131   am_cv_langinfo_codeset=no
19132 fi
19133 rm -f core conftest.err conftest.$ac_objext \
19134     conftest$ac_exeext conftest.$ac_ext
19135
19136 fi
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19138 $as_echo "$am_cv_langinfo_codeset" >&6; }
19139   if test $am_cv_langinfo_codeset = yes; then
19140
19141 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19142
19143   fi
19144
19145
19146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19147 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19148 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
19149   $as_echo_n "(cached) " >&6
19150 else
19151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19152 /* end confdefs.h.  */
19153 #include <locale.h>
19154 int
19155 main ()
19156 {
19157 return LC_MESSAGES
19158   ;
19159   return 0;
19160 }
19161 _ACEOF
19162 if ac_fn_c_try_link "$LINENO"; then :
19163   gt_cv_val_LC_MESSAGES=yes
19164 else
19165   gt_cv_val_LC_MESSAGES=no
19166 fi
19167 rm -f core conftest.err conftest.$ac_objext \
19168     conftest$ac_exeext conftest.$ac_ext
19169 fi
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19171 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19172   if test $gt_cv_val_LC_MESSAGES = yes; then
19173
19174 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19175
19176   fi
19177
19178
19179                 if test "$enable_shared" = yes; then
19180     case "$host_os" in
19181       mingw* | cygwin*) is_woe32dll=yes ;;
19182       *) is_woe32dll=no ;;
19183     esac
19184   else
19185     is_woe32dll=no
19186   fi
19187   WOE32DLL=$is_woe32dll
19188
19189
19190       case "$host_os" in
19191     mingw* | cygwin*) is_woe32=yes ;;
19192     *) is_woe32=no ;;
19193   esac
19194   WOE32=$is_woe32
19195
19196   if test $WOE32 = yes; then
19197         if test -n "$ac_tool_prefix"; then
19198   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19199 set dummy ${ac_tool_prefix}windres; ac_word=$2
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19201 $as_echo_n "checking for $ac_word... " >&6; }
19202 if test "${ac_cv_prog_WINDRES+set}" = set; then :
19203   $as_echo_n "(cached) " >&6
19204 else
19205   if test -n "$WINDRES"; then
19206   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19207 else
19208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19209 for as_dir in $PATH
19210 do
19211   IFS=$as_save_IFS
19212   test -z "$as_dir" && as_dir=.
19213     for ac_exec_ext in '' $ac_executable_extensions; do
19214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19215     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19217     break 2
19218   fi
19219 done
19220   done
19221 IFS=$as_save_IFS
19222
19223 fi
19224 fi
19225 WINDRES=$ac_cv_prog_WINDRES
19226 if test -n "$WINDRES"; then
19227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19228 $as_echo "$WINDRES" >&6; }
19229 else
19230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19231 $as_echo "no" >&6; }
19232 fi
19233
19234
19235 fi
19236 if test -z "$ac_cv_prog_WINDRES"; then
19237   ac_ct_WINDRES=$WINDRES
19238   # Extract the first word of "windres", so it can be a program name with args.
19239 set dummy windres; ac_word=$2
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19241 $as_echo_n "checking for $ac_word... " >&6; }
19242 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
19243   $as_echo_n "(cached) " >&6
19244 else
19245   if test -n "$ac_ct_WINDRES"; then
19246   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19247 else
19248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19249 for as_dir in $PATH
19250 do
19251   IFS=$as_save_IFS
19252   test -z "$as_dir" && as_dir=.
19253     for ac_exec_ext in '' $ac_executable_extensions; do
19254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19255     ac_cv_prog_ac_ct_WINDRES="windres"
19256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19257     break 2
19258   fi
19259 done
19260   done
19261 IFS=$as_save_IFS
19262
19263 fi
19264 fi
19265 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19266 if test -n "$ac_ct_WINDRES"; then
19267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19268 $as_echo "$ac_ct_WINDRES" >&6; }
19269 else
19270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19271 $as_echo "no" >&6; }
19272 fi
19273
19274   if test "x$ac_ct_WINDRES" = x; then
19275     WINDRES=""
19276   else
19277     case $cross_compiling:$ac_tool_warned in
19278 yes:)
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19281 ac_tool_warned=yes ;;
19282 esac
19283     WINDRES=$ac_ct_WINDRES
19284   fi
19285 else
19286   WINDRES="$ac_cv_prog_WINDRES"
19287 fi
19288
19289   fi
19290
19291               case "$host_os" in
19292     hpux*) LTLIBC="" ;;
19293     *)     LTLIBC="-lc" ;;
19294   esac
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19323 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19324 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
19325   $as_echo_n "(cached) " >&6
19326 else
19327   gt_save_LIBS="$LIBS"
19328      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19329      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19330 /* end confdefs.h.  */
19331 #include <CoreFoundation/CFPreferences.h>
19332 int
19333 main ()
19334 {
19335 CFPreferencesCopyAppValue(NULL, NULL)
19336   ;
19337   return 0;
19338 }
19339 _ACEOF
19340 if ac_fn_c_try_link "$LINENO"; then :
19341   gt_cv_func_CFPreferencesCopyAppValue=yes
19342 else
19343   gt_cv_func_CFPreferencesCopyAppValue=no
19344 fi
19345 rm -f core conftest.err conftest.$ac_objext \
19346     conftest$ac_exeext conftest.$ac_ext
19347      LIBS="$gt_save_LIBS"
19348 fi
19349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19350 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19351   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19352
19353 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19354
19355   fi
19356     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19357 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19358 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
19359   $as_echo_n "(cached) " >&6
19360 else
19361   gt_save_LIBS="$LIBS"
19362      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19363      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19364 /* end confdefs.h.  */
19365 #include <CoreFoundation/CFLocale.h>
19366 int
19367 main ()
19368 {
19369 CFLocaleCopyCurrent();
19370   ;
19371   return 0;
19372 }
19373 _ACEOF
19374 if ac_fn_c_try_link "$LINENO"; then :
19375   gt_cv_func_CFLocaleCopyCurrent=yes
19376 else
19377   gt_cv_func_CFLocaleCopyCurrent=no
19378 fi
19379 rm -f core conftest.err conftest.$ac_objext \
19380     conftest$ac_exeext conftest.$ac_ext
19381      LIBS="$gt_save_LIBS"
19382 fi
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19384 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19385   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19386
19387 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19388
19389   fi
19390   INTL_MACOSX_LIBS=
19391   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19392     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19393   fi
19394
19395
19396
19397
19398
19399
19400     BUILD_INCLUDED_LIBINTL=no
19401     USE_INCLUDED_LIBINTL=no
19402
19403   LIBINTL=
19404   LTLIBINTL=
19405   POSUB=
19406
19407     case " $gt_needs " in
19408     *" need-formatstring-macros "*) gt_api_version=3 ;;
19409     *" need-ngettext "*) gt_api_version=2 ;;
19410     *) gt_api_version=1 ;;
19411   esac
19412   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
19413   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
19414
19415     if test "$USE_NLS" = "yes"; then
19416     gt_use_preinstalled_gnugettext=no
19417
19418       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19419 $as_echo_n "checking whether included gettext is requested... " >&6; }
19420
19421 # Check whether --with-included-gettext was given.
19422 if test "${with_included_gettext+set}" = set; then :
19423   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19424 else
19425   nls_cv_force_use_gnu_gettext=no
19426 fi
19427
19428       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19429 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19430
19431       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19432       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19433
19434
19435         if test $gt_api_version -ge 3; then
19436           gt_revision_test_code='
19437 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19438 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
19439 #endif
19440 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
19441 '
19442         else
19443           gt_revision_test_code=
19444         fi
19445         if test $gt_api_version -ge 2; then
19446           gt_expression_test_code=' + * ngettext ("", "", 0)'
19447         else
19448           gt_expression_test_code=
19449         fi
19450
19451         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19452 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19453 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
19454   $as_echo_n "(cached) " >&6
19455 else
19456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19457 /* end confdefs.h.  */
19458 #include <libintl.h>
19459 $gt_revision_test_code
19460 extern int _nl_msg_cat_cntr;
19461 extern int *_nl_domain_bindings;
19462 int
19463 main ()
19464 {
19465 bindtextdomain ("", "");
19466 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
19467   ;
19468   return 0;
19469 }
19470 _ACEOF
19471 if ac_fn_c_try_link "$LINENO"; then :
19472   eval "$gt_func_gnugettext_libc=yes"
19473 else
19474   eval "$gt_func_gnugettext_libc=no"
19475 fi
19476 rm -f core conftest.err conftest.$ac_objext \
19477     conftest$ac_exeext conftest.$ac_ext
19478 fi
19479 eval ac_res=\$$gt_func_gnugettext_libc
19480                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19481 $as_echo "$ac_res" >&6; }
19482
19483         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
19484
19485
19486
19487
19488
19489
19490
19491
19492     use_additional=yes
19493
19494   acl_save_prefix="$prefix"
19495   prefix="$acl_final_prefix"
19496   acl_save_exec_prefix="$exec_prefix"
19497   exec_prefix="$acl_final_exec_prefix"
19498
19499     eval additional_includedir=\"$includedir\"
19500     eval additional_libdir=\"$libdir\"
19501
19502   exec_prefix="$acl_save_exec_prefix"
19503   prefix="$acl_save_prefix"
19504
19505
19506 # Check whether --with-libintl-prefix was given.
19507 if test "${with_libintl_prefix+set}" = set; then :
19508   withval=$with_libintl_prefix;
19509     if test "X$withval" = "Xno"; then
19510       use_additional=no
19511     else
19512       if test "X$withval" = "X"; then
19513
19514   acl_save_prefix="$prefix"
19515   prefix="$acl_final_prefix"
19516   acl_save_exec_prefix="$exec_prefix"
19517   exec_prefix="$acl_final_exec_prefix"
19518
19519           eval additional_includedir=\"$includedir\"
19520           eval additional_libdir=\"$libdir\"
19521
19522   exec_prefix="$acl_save_exec_prefix"
19523   prefix="$acl_save_prefix"
19524
19525       else
19526         additional_includedir="$withval/include"
19527         additional_libdir="$withval/$acl_libdirstem"
19528         if test "$acl_libdirstem2" != "$acl_libdirstem" \
19529            && ! test -d "$withval/$acl_libdirstem"; then
19530           additional_libdir="$withval/$acl_libdirstem2"
19531         fi
19532       fi
19533     fi
19534
19535 fi
19536
19537       LIBINTL=
19538   LTLIBINTL=
19539   INCINTL=
19540   LIBINTL_PREFIX=
19541       HAVE_LIBINTL=
19542   rpathdirs=
19543   ltrpathdirs=
19544   names_already_handled=
19545   names_next_round='intl '
19546   while test -n "$names_next_round"; do
19547     names_this_round="$names_next_round"
19548     names_next_round=
19549     for name in $names_this_round; do
19550       already_handled=
19551       for n in $names_already_handled; do
19552         if test "$n" = "$name"; then
19553           already_handled=yes
19554           break
19555         fi
19556       done
19557       if test -z "$already_handled"; then
19558         names_already_handled="$names_already_handled $name"
19559                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19560         eval value=\"\$HAVE_LIB$uppername\"
19561         if test -n "$value"; then
19562           if test "$value" = yes; then
19563             eval value=\"\$LIB$uppername\"
19564             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
19565             eval value=\"\$LTLIB$uppername\"
19566             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
19567           else
19568                                     :
19569           fi
19570         else
19571                               found_dir=
19572           found_la=
19573           found_so=
19574           found_a=
19575           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
19576           if test -n "$acl_shlibext"; then
19577             shrext=".$acl_shlibext"             # typically: shrext=.so
19578           else
19579             shrext=
19580           fi
19581           if test $use_additional = yes; then
19582             dir="$additional_libdir"
19583                                     if test -n "$acl_shlibext"; then
19584               if test -f "$dir/$libname$shrext"; then
19585                 found_dir="$dir"
19586                 found_so="$dir/$libname$shrext"
19587               else
19588                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19589                   ver=`(cd "$dir" && \
19590                         for f in "$libname$shrext".*; do echo "$f"; done \
19591                         | sed -e "s,^$libname$shrext\\\\.,," \
19592                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19593                         | sed 1q ) 2>/dev/null`
19594                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19595                     found_dir="$dir"
19596                     found_so="$dir/$libname$shrext.$ver"
19597                   fi
19598                 else
19599                   eval library_names=\"$acl_library_names_spec\"
19600                   for f in $library_names; do
19601                     if test -f "$dir/$f"; then
19602                       found_dir="$dir"
19603                       found_so="$dir/$f"
19604                       break
19605                     fi
19606                   done
19607                 fi
19608               fi
19609             fi
19610                         if test "X$found_dir" = "X"; then
19611               if test -f "$dir/$libname.$acl_libext"; then
19612                 found_dir="$dir"
19613                 found_a="$dir/$libname.$acl_libext"
19614               fi
19615             fi
19616             if test "X$found_dir" != "X"; then
19617               if test -f "$dir/$libname.la"; then
19618                 found_la="$dir/$libname.la"
19619               fi
19620             fi
19621           fi
19622           if test "X$found_dir" = "X"; then
19623             for x in $LDFLAGS $LTLIBINTL; do
19624
19625   acl_save_prefix="$prefix"
19626   prefix="$acl_final_prefix"
19627   acl_save_exec_prefix="$exec_prefix"
19628   exec_prefix="$acl_final_exec_prefix"
19629   eval x=\"$x\"
19630   exec_prefix="$acl_save_exec_prefix"
19631   prefix="$acl_save_prefix"
19632
19633               case "$x" in
19634                 -L*)
19635                   dir=`echo "X$x" | sed -e 's/^X-L//'`
19636                                     if test -n "$acl_shlibext"; then
19637                     if test -f "$dir/$libname$shrext"; then
19638                       found_dir="$dir"
19639                       found_so="$dir/$libname$shrext"
19640                     else
19641                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19642                         ver=`(cd "$dir" && \
19643                               for f in "$libname$shrext".*; do echo "$f"; done \
19644                               | sed -e "s,^$libname$shrext\\\\.,," \
19645                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19646                               | sed 1q ) 2>/dev/null`
19647                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19648                           found_dir="$dir"
19649                           found_so="$dir/$libname$shrext.$ver"
19650                         fi
19651                       else
19652                         eval library_names=\"$acl_library_names_spec\"
19653                         for f in $library_names; do
19654                           if test -f "$dir/$f"; then
19655                             found_dir="$dir"
19656                             found_so="$dir/$f"
19657                             break
19658                           fi
19659                         done
19660                       fi
19661                     fi
19662                   fi
19663                                     if test "X$found_dir" = "X"; then
19664                     if test -f "$dir/$libname.$acl_libext"; then
19665                       found_dir="$dir"
19666                       found_a="$dir/$libname.$acl_libext"
19667                     fi
19668                   fi
19669                   if test "X$found_dir" != "X"; then
19670                     if test -f "$dir/$libname.la"; then
19671                       found_la="$dir/$libname.la"
19672                     fi
19673                   fi
19674                   ;;
19675               esac
19676               if test "X$found_dir" != "X"; then
19677                 break
19678               fi
19679             done
19680           fi
19681           if test "X$found_dir" != "X"; then
19682                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
19683             if test "X$found_so" != "X"; then
19684                                                         if test "$enable_rpath" = no \
19685                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19686                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
19687                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19688               else
19689                                                                                 haveit=
19690                 for x in $ltrpathdirs; do
19691                   if test "X$x" = "X$found_dir"; then
19692                     haveit=yes
19693                     break
19694                   fi
19695                 done
19696                 if test -z "$haveit"; then
19697                   ltrpathdirs="$ltrpathdirs $found_dir"
19698                 fi
19699                                 if test "$acl_hardcode_direct" = yes; then
19700                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19701                 else
19702                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19703                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19704                                                             haveit=
19705                     for x in $rpathdirs; do
19706                       if test "X$x" = "X$found_dir"; then
19707                         haveit=yes
19708                         break
19709                       fi
19710                     done
19711                     if test -z "$haveit"; then
19712                       rpathdirs="$rpathdirs $found_dir"
19713                     fi
19714                   else
19715                                                                                 haveit=
19716                     for x in $LDFLAGS $LIBINTL; do
19717
19718   acl_save_prefix="$prefix"
19719   prefix="$acl_final_prefix"
19720   acl_save_exec_prefix="$exec_prefix"
19721   exec_prefix="$acl_final_exec_prefix"
19722   eval x=\"$x\"
19723   exec_prefix="$acl_save_exec_prefix"
19724   prefix="$acl_save_prefix"
19725
19726                       if test "X$x" = "X-L$found_dir"; then
19727                         haveit=yes
19728                         break
19729                       fi
19730                     done
19731                     if test -z "$haveit"; then
19732                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
19733                     fi
19734                     if test "$acl_hardcode_minus_L" != no; then
19735                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19736                     else
19737                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19738                     fi
19739                   fi
19740                 fi
19741               fi
19742             else
19743               if test "X$found_a" != "X"; then
19744                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
19745               else
19746                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
19747               fi
19748             fi
19749                         additional_includedir=
19750             case "$found_dir" in
19751               */$acl_libdirstem | */$acl_libdirstem/)
19752                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19753                 if test "$name" = 'intl'; then
19754                   LIBINTL_PREFIX="$basedir"
19755                 fi
19756                 additional_includedir="$basedir/include"
19757                 ;;
19758               */$acl_libdirstem2 | */$acl_libdirstem2/)
19759                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19760                 if test "$name" = 'intl'; then
19761                   LIBINTL_PREFIX="$basedir"
19762                 fi
19763                 additional_includedir="$basedir/include"
19764                 ;;
19765             esac
19766             if test "X$additional_includedir" != "X"; then
19767                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
19768                 haveit=
19769                 if test "X$additional_includedir" = "X/usr/local/include"; then
19770                   if test -n "$GCC"; then
19771                     case $host_os in
19772                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19773                     esac
19774                   fi
19775                 fi
19776                 if test -z "$haveit"; then
19777                   for x in $CPPFLAGS $INCINTL; do
19778
19779   acl_save_prefix="$prefix"
19780   prefix="$acl_final_prefix"
19781   acl_save_exec_prefix="$exec_prefix"
19782   exec_prefix="$acl_final_exec_prefix"
19783   eval x=\"$x\"
19784   exec_prefix="$acl_save_exec_prefix"
19785   prefix="$acl_save_prefix"
19786
19787                     if test "X$x" = "X-I$additional_includedir"; then
19788                       haveit=yes
19789                       break
19790                     fi
19791                   done
19792                   if test -z "$haveit"; then
19793                     if test -d "$additional_includedir"; then
19794                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
19795                     fi
19796                   fi
19797                 fi
19798               fi
19799             fi
19800                         if test -n "$found_la"; then
19801                                                         save_libdir="$libdir"
19802               case "$found_la" in
19803                 */* | *\\*) . "$found_la" ;;
19804                 *) . "./$found_la" ;;
19805               esac
19806               libdir="$save_libdir"
19807                             for dep in $dependency_libs; do
19808                 case "$dep" in
19809                   -L*)
19810                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19811                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19812                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19813                       haveit=
19814                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19815                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19816                         if test -n "$GCC"; then
19817                           case $host_os in
19818                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19819                           esac
19820                         fi
19821                       fi
19822                       if test -z "$haveit"; then
19823                         haveit=
19824                         for x in $LDFLAGS $LIBINTL; do
19825
19826   acl_save_prefix="$prefix"
19827   prefix="$acl_final_prefix"
19828   acl_save_exec_prefix="$exec_prefix"
19829   exec_prefix="$acl_final_exec_prefix"
19830   eval x=\"$x\"
19831   exec_prefix="$acl_save_exec_prefix"
19832   prefix="$acl_save_prefix"
19833
19834                           if test "X$x" = "X-L$additional_libdir"; then
19835                             haveit=yes
19836                             break
19837                           fi
19838                         done
19839                         if test -z "$haveit"; then
19840                           if test -d "$additional_libdir"; then
19841                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
19842                           fi
19843                         fi
19844                         haveit=
19845                         for x in $LDFLAGS $LTLIBINTL; do
19846
19847   acl_save_prefix="$prefix"
19848   prefix="$acl_final_prefix"
19849   acl_save_exec_prefix="$exec_prefix"
19850   exec_prefix="$acl_final_exec_prefix"
19851   eval x=\"$x\"
19852   exec_prefix="$acl_save_exec_prefix"
19853   prefix="$acl_save_prefix"
19854
19855                           if test "X$x" = "X-L$additional_libdir"; then
19856                             haveit=yes
19857                             break
19858                           fi
19859                         done
19860                         if test -z "$haveit"; then
19861                           if test -d "$additional_libdir"; then
19862                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
19863                           fi
19864                         fi
19865                       fi
19866                     fi
19867                     ;;
19868                   -R*)
19869                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
19870                     if test "$enable_rpath" != no; then
19871                                                                   haveit=
19872                       for x in $rpathdirs; do
19873                         if test "X$x" = "X$dir"; then
19874                           haveit=yes
19875                           break
19876                         fi
19877                       done
19878                       if test -z "$haveit"; then
19879                         rpathdirs="$rpathdirs $dir"
19880                       fi
19881                                                                   haveit=
19882                       for x in $ltrpathdirs; do
19883                         if test "X$x" = "X$dir"; then
19884                           haveit=yes
19885                           break
19886                         fi
19887                       done
19888                       if test -z "$haveit"; then
19889                         ltrpathdirs="$ltrpathdirs $dir"
19890                       fi
19891                     fi
19892                     ;;
19893                   -l*)
19894                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19895                     ;;
19896                   *.la)
19897                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19898                     ;;
19899                   *)
19900                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
19901                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
19902                     ;;
19903                 esac
19904               done
19905             fi
19906           else
19907                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19908             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
19909           fi
19910         fi
19911       fi
19912     done
19913   done
19914   if test "X$rpathdirs" != "X"; then
19915     if test -n "$acl_hardcode_libdir_separator"; then
19916                         alldirs=
19917       for found_dir in $rpathdirs; do
19918         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19919       done
19920             acl_save_libdir="$libdir"
19921       libdir="$alldirs"
19922       eval flag=\"$acl_hardcode_libdir_flag_spec\"
19923       libdir="$acl_save_libdir"
19924       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
19925     else
19926             for found_dir in $rpathdirs; do
19927         acl_save_libdir="$libdir"
19928         libdir="$found_dir"
19929         eval flag=\"$acl_hardcode_libdir_flag_spec\"
19930         libdir="$acl_save_libdir"
19931         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
19932       done
19933     fi
19934   fi
19935   if test "X$ltrpathdirs" != "X"; then
19936             for found_dir in $ltrpathdirs; do
19937       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
19938     done
19939   fi
19940
19941
19942
19943
19944
19945
19946           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
19947 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
19948 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
19949   $as_echo_n "(cached) " >&6
19950 else
19951   gt_save_CPPFLAGS="$CPPFLAGS"
19952             CPPFLAGS="$CPPFLAGS $INCINTL"
19953             gt_save_LIBS="$LIBS"
19954             LIBS="$LIBS $LIBINTL"
19955                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19956 /* end confdefs.h.  */
19957 #include <libintl.h>
19958 $gt_revision_test_code
19959 extern int _nl_msg_cat_cntr;
19960 extern
19961 #ifdef __cplusplus
19962 "C"
19963 #endif
19964 const char *_nl_expand_alias (const char *);
19965 int
19966 main ()
19967 {
19968 bindtextdomain ("", "");
19969 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
19970   ;
19971   return 0;
19972 }
19973 _ACEOF
19974 if ac_fn_c_try_link "$LINENO"; then :
19975   eval "$gt_func_gnugettext_libintl=yes"
19976 else
19977   eval "$gt_func_gnugettext_libintl=no"
19978 fi
19979 rm -f core conftest.err conftest.$ac_objext \
19980     conftest$ac_exeext conftest.$ac_ext
19981                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
19982               LIBS="$LIBS $LIBICONV"
19983               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19984 /* end confdefs.h.  */
19985 #include <libintl.h>
19986 $gt_revision_test_code
19987 extern int _nl_msg_cat_cntr;
19988 extern
19989 #ifdef __cplusplus
19990 "C"
19991 #endif
19992 const char *_nl_expand_alias (const char *);
19993 int
19994 main ()
19995 {
19996 bindtextdomain ("", "");
19997 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
19998   ;
19999   return 0;
20000 }
20001 _ACEOF
20002 if ac_fn_c_try_link "$LINENO"; then :
20003   LIBINTL="$LIBINTL $LIBICONV"
20004                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20005                 eval "$gt_func_gnugettext_libintl=yes"
20006
20007 fi
20008 rm -f core conftest.err conftest.$ac_objext \
20009     conftest$ac_exeext conftest.$ac_ext
20010             fi
20011             CPPFLAGS="$gt_save_CPPFLAGS"
20012             LIBS="$gt_save_LIBS"
20013 fi
20014 eval ac_res=\$$gt_func_gnugettext_libintl
20015                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20016 $as_echo "$ac_res" >&6; }
20017         fi
20018
20019                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
20020            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
20021                 && test "$PACKAGE" != gettext-runtime \
20022                 && test "$PACKAGE" != gettext-tools; }; then
20023           gt_use_preinstalled_gnugettext=yes
20024         else
20025                     LIBINTL=
20026           LTLIBINTL=
20027           INCINTL=
20028         fi
20029
20030
20031         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20032                               nls_cv_use_gnu_gettext=yes
20033         fi
20034       fi
20035
20036       if test "$nls_cv_use_gnu_gettext" = "yes"; then
20037                 BUILD_INCLUDED_LIBINTL=yes
20038         USE_INCLUDED_LIBINTL=yes
20039         LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV $LIBTHREAD"
20040         LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV $LTLIBTHREAD"
20041         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20042       fi
20043
20044       CATOBJEXT=
20045       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20046          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20047                 CATOBJEXT=.gmo
20048       fi
20049
20050
20051     if test -n "$INTL_MACOSX_LIBS"; then
20052       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20053          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20054                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20055         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20056       fi
20057     fi
20058
20059     if test "$gt_use_preinstalled_gnugettext" = "yes" \
20060        || test "$nls_cv_use_gnu_gettext" = "yes"; then
20061
20062 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20063
20064     else
20065       USE_NLS=no
20066     fi
20067   fi
20068
20069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20070 $as_echo_n "checking whether to use NLS... " >&6; }
20071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20072 $as_echo "$USE_NLS" >&6; }
20073   if test "$USE_NLS" = "yes"; then
20074     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20075 $as_echo_n "checking where the gettext function comes from... " >&6; }
20076     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20077       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
20078         gt_source="external libintl"
20079       else
20080         gt_source="libc"
20081       fi
20082     else
20083       gt_source="included intl directory"
20084     fi
20085     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20086 $as_echo "$gt_source" >&6; }
20087   fi
20088
20089   if test "$USE_NLS" = "yes"; then
20090
20091     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20092       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
20093         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20094 $as_echo_n "checking how to link with libintl... " >&6; }
20095         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20096 $as_echo "$LIBINTL" >&6; }
20097
20098   for element in $INCINTL; do
20099     haveit=
20100     for x in $CPPFLAGS; do
20101
20102   acl_save_prefix="$prefix"
20103   prefix="$acl_final_prefix"
20104   acl_save_exec_prefix="$exec_prefix"
20105   exec_prefix="$acl_final_exec_prefix"
20106   eval x=\"$x\"
20107   exec_prefix="$acl_save_exec_prefix"
20108   prefix="$acl_save_prefix"
20109
20110       if test "X$x" = "X$element"; then
20111         haveit=yes
20112         break
20113       fi
20114     done
20115     if test -z "$haveit"; then
20116       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20117     fi
20118   done
20119
20120       fi
20121
20122
20123 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20124
20125
20126 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20127
20128     fi
20129
20130         POSUB=po
20131   fi
20132
20133
20134             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20135       BUILD_INCLUDED_LIBINTL=yes
20136     fi
20137
20138
20139
20140
20141
20142         nls_cv_header_intl=
20143     nls_cv_header_libgt=
20144
20145         DATADIRNAME=share
20146
20147
20148         INSTOBJEXT=.mo
20149
20150
20151         GENCAT=gencat
20152
20153
20154         INTLOBJS=
20155     if test "$USE_INCLUDED_LIBINTL" = yes; then
20156       INTLOBJS="\$(GETTOBJS)"
20157     fi
20158
20159
20160         INTL_LIBTOOL_SUFFIX_PREFIX=l
20161
20162
20163
20164     INTLLIBS="$LIBINTL"
20165
20166
20167
20168
20169
20170
20171
20172
20173   if test -z "$USE_NLS"; then
20174     echo "The BISON-I18N macro is used without being preceded by AM-GNU-GETTEXT." 1>&2
20175     exit 1
20176   fi
20177   BISON_LOCALEDIR=
20178   BISON_USE_NLS=no
20179   if test "$USE_NLS" = yes; then
20180                         if (${YACC-${BISON-:}} --print-localedir) >/dev/null 2>&1; then
20181       BISON_LOCALEDIR=`${YACC-${BISON-:}} --print-localedir`
20182     fi
20183
20184     if test -n "$BISON_LOCALEDIR"; then
20185                               USER_LINGUAS="${LINGUAS-%UNSET%}"
20186       if test -n "$USER_LINGUAS"; then
20187         BISON_USE_NLS=yes
20188       fi
20189     fi
20190   fi
20191   if test $BISON_USE_NLS = yes; then
20192
20193 $as_echo "#define YYENABLE_NLS 1" >>confdefs.h
20194
20195   fi
20196
20197
20198 MSGMERGE_LIBM=?
20199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20200 /* end confdefs.h.  */
20201
20202    #ifndef __NO_MATH_INLINES
20203    # define __NO_MATH_INLINES 1 /* for glibc */
20204    #endif
20205    #include <math.h>
20206    double x;
20207 int
20208 main ()
20209 {
20210 x = ceil(x); x = sqrt(x);
20211   ;
20212   return 0;
20213 }
20214 _ACEOF
20215 if ac_fn_c_try_link "$LINENO"; then :
20216   MSGMERGE_LIBM=
20217 fi
20218 rm -f core conftest.err conftest.$ac_objext \
20219     conftest$ac_exeext conftest.$ac_ext
20220 if test "$MSGMERGE_LIBM" = "?"; then
20221   save_LIBS="$LIBS"
20222   LIBS="$LIBS -lm"
20223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20224 /* end confdefs.h.  */
20225
20226      #ifndef __NO_MATH_INLINES
20227      # define __NO_MATH_INLINES 1 /* for glibc */
20228      #endif
20229      #include <math.h>
20230      double x;
20231 int
20232 main ()
20233 {
20234 x = ceil(x); x = sqrt(x);
20235   ;
20236   return 0;
20237 }
20238 _ACEOF
20239 if ac_fn_c_try_link "$LINENO"; then :
20240   MSGMERGE_LIBM="-lm"
20241 fi
20242 rm -f core conftest.err conftest.$ac_objext \
20243     conftest$ac_exeext conftest.$ac_ext
20244   LIBS="$save_LIBS"
20245 fi
20246 if test "$MSGMERGE_LIBM" = "?"; then
20247   MSGMERGE_LIBM=
20248 fi
20249
20250
20251
20252
20253
20254
20255           LIBC_FATAL_STDERR_=1
20256   export LIBC_FATAL_STDERR_
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267   for ac_func in $gl_func_list
20268 do :
20269   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20270 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20271 eval as_val=\$$as_ac_var
20272    if test "x$as_val" = x""yes; then :
20273   cat >>confdefs.h <<_ACEOF
20274 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20275 _ACEOF
20276
20277 fi
20278 done
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
20297 $as_echo_n "checking whether // is distinct from /... " >&6; }
20298 if test "${gl_cv_double_slash_root+set}" = set; then :
20299   $as_echo_n "(cached) " >&6
20300 else
20301    if test x"$cross_compiling" = xyes ; then
20302         # When cross-compiling, there is no way to tell whether // is special
20303         # short of a list of hosts.  However, the only known hosts to date
20304         # that have a distinct // are Apollo DomainOS (too old to port to),
20305         # Cygwin, and z/OS.  If anyone knows of another system for which // has
20306         # special semantics and is distinct from /, please report it to
20307         # <bug-gnulib@gnu.org>.
20308         case $host in
20309           *-cygwin | i370-ibm-openedition)
20310             gl_cv_double_slash_root=yes ;;
20311           *)
20312             # Be optimistic and assume that / and // are the same when we
20313             # don't know.
20314             gl_cv_double_slash_root='unknown, assuming no' ;;
20315         esac
20316       else
20317         set x `ls -di / // 2>/dev/null`
20318         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
20319           gl_cv_double_slash_root=no
20320         else
20321           gl_cv_double_slash_root=yes
20322         fi
20323       fi
20324 fi
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
20326 $as_echo "$gl_cv_double_slash_root" >&6; }
20327   if test "$gl_cv_double_slash_root" = yes; then
20328
20329 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
20330
20331   fi
20332
20333
20334
20335
20336
20337
20338
20339
20340   :
20341
20342
20343
20344
20345
20346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
20347 $as_echo_n "checking whether realpath works... " >&6; }
20348 if test "${gl_cv_func_realpath_works+set}" = set; then :
20349   $as_echo_n "(cached) " >&6
20350 else
20351
20352     touch conftest.a
20353     if test "$cross_compiling" = yes; then :
20354   gl_cv_func_realpath_works="guessing no"
20355 else
20356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20357 /* end confdefs.h.  */
20358
20359
20360         #include <stdlib.h>
20361
20362 int
20363 main ()
20364 {
20365
20366         char *name1 = realpath ("conftest.a", NULL);
20367         char *name2 = realpath ("conftest.b/../conftest.a", NULL);
20368         char *name3 = realpath ("conftest.a/", NULL);
20369         return !(name1 && *name1 == '/' && !name2 && !name3);
20370
20371   ;
20372   return 0;
20373 }
20374
20375 _ACEOF
20376 if ac_fn_c_try_run "$LINENO"; then :
20377   gl_cv_func_realpath_works=yes
20378 else
20379   gl_cv_func_realpath_works=no
20380 fi
20381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20382   conftest.$ac_objext conftest.beam conftest.$ac_ext
20383 fi
20384
20385
20386 fi
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
20388 $as_echo "$gl_cv_func_realpath_works" >&6; }
20389   if test "$gl_cv_func_realpath_works" = yes; then
20390
20391 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
20392
20393   fi
20394
20395
20396
20397
20398   :
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413   :
20414
20415
20416
20417
20418
20419
20420
20421   GNULIB_ATOLL=0;
20422   GNULIB_CALLOC_POSIX=0;
20423   GNULIB_CANONICALIZE_FILE_NAME=0;
20424   GNULIB_GETLOADAVG=0;
20425   GNULIB_GETSUBOPT=0;
20426   GNULIB_GRANTPT=0;
20427   GNULIB_MALLOC_POSIX=0;
20428   GNULIB_MKDTEMP=0;
20429   GNULIB_MKOSTEMP=0;
20430   GNULIB_MKOSTEMPS=0;
20431   GNULIB_MKSTEMP=0;
20432   GNULIB_MKSTEMPS=0;
20433   GNULIB_PTSNAME=0;
20434   GNULIB_PUTENV=0;
20435   GNULIB_RANDOM_R=0;
20436   GNULIB_REALLOC_POSIX=0;
20437   GNULIB_REALPATH=0;
20438   GNULIB_RPMATCH=0;
20439   GNULIB_SETENV=0;
20440   GNULIB_STRTOD=0;
20441   GNULIB_STRTOLL=0;
20442   GNULIB_STRTOULL=0;
20443   GNULIB_UNLOCKPT=0;
20444   GNULIB_UNSETENV=0;
20445     HAVE_ATOLL=1;
20446   HAVE_CALLOC_POSIX=1;
20447   HAVE_CANONICALIZE_FILE_NAME=1;
20448   HAVE_DECL_GETLOADAVG=1;
20449   HAVE_GETSUBOPT=1;
20450   HAVE_GRANTPT=1;
20451   HAVE_MALLOC_POSIX=1;
20452   HAVE_MKDTEMP=1;
20453   HAVE_MKOSTEMP=1;
20454   HAVE_MKOSTEMPS=1;
20455   HAVE_MKSTEMP=1;
20456   HAVE_MKSTEMPS=1;
20457   HAVE_PTSNAME=1;
20458   HAVE_RANDOM_R=1;
20459   HAVE_REALLOC_POSIX=1;
20460   HAVE_REALPATH=1;
20461   HAVE_RPMATCH=1;
20462   HAVE_SETENV=1;
20463   HAVE_STRTOD=1;
20464   HAVE_STRTOLL=1;
20465   HAVE_STRTOULL=1;
20466   HAVE_STRUCT_RANDOM_DATA=1;
20467   HAVE_SYS_LOADAVG_H=0;
20468   HAVE_UNLOCKPT=1;
20469   HAVE_UNSETENV=1;
20470   REPLACE_CANONICALIZE_FILE_NAME=0;
20471   REPLACE_MKSTEMP=0;
20472   REPLACE_PUTENV=0;
20473   REPLACE_REALPATH=0;
20474   REPLACE_SETENV=0;
20475   REPLACE_STRTOD=0;
20476   REPLACE_UNSETENV=0;
20477
20478
20479
20480
20481
20482
20483
20484   GNULIB_CHOWN=0;
20485   GNULIB_CLOSE=0;
20486   GNULIB_DUP2=0;
20487   GNULIB_DUP3=0;
20488   GNULIB_ENVIRON=0;
20489   GNULIB_EUIDACCESS=0;
20490   GNULIB_FACCESSAT=0;
20491   GNULIB_FCHDIR=0;
20492   GNULIB_FCHOWNAT=0;
20493   GNULIB_FSYNC=0;
20494   GNULIB_FTRUNCATE=0;
20495   GNULIB_GETCWD=0;
20496   GNULIB_GETDOMAINNAME=0;
20497   GNULIB_GETDTABLESIZE=0;
20498   GNULIB_GETGROUPS=0;
20499   GNULIB_GETHOSTNAME=0;
20500   GNULIB_GETLOGIN=0;
20501   GNULIB_GETLOGIN_R=0;
20502   GNULIB_GETPAGESIZE=0;
20503   GNULIB_GETUSERSHELL=0;
20504   GNULIB_LCHOWN=0;
20505   GNULIB_LINK=0;
20506   GNULIB_LINKAT=0;
20507   GNULIB_LSEEK=0;
20508   GNULIB_PIPE2=0;
20509   GNULIB_PREAD=0;
20510   GNULIB_PWRITE=0;
20511   GNULIB_READLINK=0;
20512   GNULIB_READLINKAT=0;
20513   GNULIB_RMDIR=0;
20514   GNULIB_SLEEP=0;
20515   GNULIB_SYMLINK=0;
20516   GNULIB_SYMLINKAT=0;
20517   GNULIB_TTYNAME_R=0;
20518   GNULIB_UNISTD_H_GETOPT=0;
20519   GNULIB_UNISTD_H_SIGPIPE=0;
20520   GNULIB_UNLINK=0;
20521   GNULIB_UNLINKAT=0;
20522   GNULIB_USLEEP=0;
20523   GNULIB_WRITE=0;
20524     HAVE_CHOWN=1;
20525   HAVE_DUP2=1;
20526   HAVE_DUP3=1;
20527   HAVE_EUIDACCESS=1;
20528   HAVE_FACCESSAT=1;
20529   HAVE_FCHDIR=1;
20530   HAVE_FCHOWNAT=1;
20531   HAVE_FSYNC=1;
20532   HAVE_FTRUNCATE=1;
20533   HAVE_GETDOMAINNAME=1;
20534   HAVE_GETDTABLESIZE=1;
20535   HAVE_GETGROUPS=1;
20536   HAVE_GETHOSTNAME=1;
20537   HAVE_GETLOGIN=1;
20538   HAVE_GETPAGESIZE=1;
20539   HAVE_LCHOWN=1;
20540   HAVE_LINK=1;
20541   HAVE_LINKAT=1;
20542   HAVE_PIPE2=1;
20543   HAVE_PREAD=1;
20544   HAVE_PWRITE=1;
20545   HAVE_READLINK=1;
20546   HAVE_READLINKAT=1;
20547   HAVE_SLEEP=1;
20548   HAVE_SYMLINK=1;
20549   HAVE_SYMLINKAT=1;
20550   HAVE_TTYNAME_R=1;
20551   HAVE_UNLINKAT=1;
20552   HAVE_USLEEP=1;
20553   HAVE_DECL_ENVIRON=1;
20554   HAVE_DECL_GETLOGIN_R=1;
20555   HAVE_DECL_GETPAGESIZE=1;
20556   HAVE_DECL_GETUSERSHELL=1;
20557   HAVE_OS_H=0;
20558   HAVE_SYS_PARAM_H=0;
20559   REPLACE_CHOWN=0;
20560   REPLACE_CLOSE=0;
20561   REPLACE_DUP=0;
20562   REPLACE_DUP2=0;
20563   REPLACE_FCHOWNAT=0;
20564   REPLACE_GETCWD=0;
20565   REPLACE_GETGROUPS=0;
20566   REPLACE_GETPAGESIZE=0;
20567   REPLACE_LCHOWN=0;
20568   REPLACE_LINK=0;
20569   REPLACE_LINKAT=0;
20570   REPLACE_LSEEK=0;
20571   REPLACE_PREAD=0;
20572   REPLACE_PWRITE=0;
20573   REPLACE_READLINK=0;
20574   REPLACE_RMDIR=0;
20575   REPLACE_SLEEP=0;
20576   REPLACE_SYMLINK=0;
20577   REPLACE_TTYNAME_R=0;
20578   REPLACE_UNLINK=0;
20579   REPLACE_UNLINKAT=0;
20580   REPLACE_USLEEP=0;
20581   REPLACE_WRITE=0;
20582   UNISTD_H_HAVE_WINSOCK2_H=0;
20583   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
20597 $as_echo_n "checking if environ is properly declared... " >&6; }
20598   if test "${gt_cv_var_environ_declaration+set}" = set; then :
20599   $as_echo_n "(cached) " >&6
20600 else
20601
20602     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20603 /* end confdefs.h.  */
20604 #include <unistd.h>
20605       extern struct { int foo; } environ;
20606 int
20607 main ()
20608 {
20609 environ.foo = 1;
20610   ;
20611   return 0;
20612 }
20613 _ACEOF
20614 if ac_fn_c_try_compile "$LINENO"; then :
20615   gt_cv_var_environ_declaration=no
20616 else
20617   gt_cv_var_environ_declaration=yes
20618 fi
20619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20620 fi
20621
20622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
20623 $as_echo "$gt_cv_var_environ_declaration" >&6; }
20624   if test $gt_cv_var_environ_declaration = yes; then
20625
20626 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
20627
20628   fi
20629
20630
20631   if test $gt_cv_var_environ_declaration != yes; then
20632     HAVE_DECL_ENVIRON=0
20633   fi
20634
20635
20636
20637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
20638 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
20639 if test "${gl_cv_have_include_next+set}" = set; then :
20640   $as_echo_n "(cached) " >&6
20641 else
20642   rm -rf conftestd1a conftestd1b conftestd2
20643      mkdir conftestd1a conftestd1b conftestd2
20644                                                   cat <<EOF > conftestd1a/conftest.h
20645 #define DEFINED_IN_CONFTESTD1
20646 #include_next <conftest.h>
20647 #ifdef DEFINED_IN_CONFTESTD2
20648 int foo;
20649 #else
20650 #error "include_next doesn't work"
20651 #endif
20652 EOF
20653      cat <<EOF > conftestd1b/conftest.h
20654 #define DEFINED_IN_CONFTESTD1
20655 #include <stdio.h>
20656 #include_next <conftest.h>
20657 #ifdef DEFINED_IN_CONFTESTD2
20658 int foo;
20659 #else
20660 #error "include_next doesn't work"
20661 #endif
20662 EOF
20663      cat <<EOF > conftestd2/conftest.h
20664 #ifndef DEFINED_IN_CONFTESTD1
20665 #error "include_next test doesn't work"
20666 #endif
20667 #define DEFINED_IN_CONFTESTD2
20668 EOF
20669      gl_save_CPPFLAGS="$CPPFLAGS"
20670      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
20671      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20672 /* end confdefs.h.  */
20673 #include <conftest.h>
20674 _ACEOF
20675 if ac_fn_c_try_compile "$LINENO"; then :
20676   gl_cv_have_include_next=yes
20677 else
20678   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
20679         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20680 /* end confdefs.h.  */
20681 #include <conftest.h>
20682 _ACEOF
20683 if ac_fn_c_try_compile "$LINENO"; then :
20684   gl_cv_have_include_next=buggy
20685 else
20686   gl_cv_have_include_next=no
20687 fi
20688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20689
20690 fi
20691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20692      CPPFLAGS="$gl_save_CPPFLAGS"
20693      rm -rf conftestd1a conftestd1b conftestd2
20694
20695 fi
20696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
20697 $as_echo "$gl_cv_have_include_next" >&6; }
20698   PRAGMA_SYSTEM_HEADER=
20699   if test $gl_cv_have_include_next = yes; then
20700     INCLUDE_NEXT=include_next
20701     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
20702     if test -n "$GCC"; then
20703       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
20704     fi
20705   else
20706     if test $gl_cv_have_include_next = buggy; then
20707       INCLUDE_NEXT=include
20708       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
20709     else
20710       INCLUDE_NEXT=include
20711       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
20712     fi
20713   fi
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
20726 $as_echo_n "checking for complete errno.h... " >&6; }
20727 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
20728   $as_echo_n "(cached) " >&6
20729 else
20730
20731     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20732 /* end confdefs.h.  */
20733
20734 #include <errno.h>
20735 #if !defined ENOMSG
20736 booboo
20737 #endif
20738 #if !defined EIDRM
20739 booboo
20740 #endif
20741 #if !defined ENOLINK
20742 booboo
20743 #endif
20744 #if !defined EPROTO
20745 booboo
20746 #endif
20747 #if !defined EMULTIHOP
20748 booboo
20749 #endif
20750 #if !defined EBADMSG
20751 booboo
20752 #endif
20753 #if !defined EOVERFLOW
20754 booboo
20755 #endif
20756 #if !defined ENOTSUP
20757 booboo
20758 #endif
20759 #if !defined ESTALE
20760 booboo
20761 #endif
20762 #if !defined ECANCELED
20763 booboo
20764 #endif
20765
20766 _ACEOF
20767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20768   $EGREP "booboo" >/dev/null 2>&1; then :
20769   gl_cv_header_errno_h_complete=no
20770 else
20771   gl_cv_header_errno_h_complete=yes
20772 fi
20773 rm -f conftest*
20774
20775
20776 fi
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
20778 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
20779   if test $gl_cv_header_errno_h_complete = yes; then
20780     ERRNO_H=''
20781   else
20782
20783
20784
20785
20786   :
20787
20788
20789
20790
20791
20792
20793
20794      if test $gl_cv_have_include_next = yes; then
20795        gl_cv_next_errno_h='<'errno.h'>'
20796      else
20797        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
20798 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
20799 if test "${gl_cv_next_errno_h+set}" = set; then :
20800   $as_echo_n "(cached) " >&6
20801 else
20802
20803           if test $ac_cv_header_errno_h = yes; then
20804             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20805 /* end confdefs.h.  */
20806 #include <errno.h>
20807
20808 _ACEOF
20809                                                                                                 case "$host_os" in
20810               aix*) gl_absname_cpp="$ac_cpp -C" ;;
20811               *)    gl_absname_cpp="$ac_cpp" ;;
20812             esac
20813                                                 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20814                sed -n '\#/errno.h#{
20815                  s#.*"\(.*/errno.h\)".*#\1#
20816                  s#^/[^/]#//&#
20817                  p
20818                  q
20819                }'`'"'
20820           else
20821             gl_cv_next_errno_h='<'errno.h'>'
20822           fi
20823
20824 fi
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
20826 $as_echo "$gl_cv_next_errno_h" >&6; }
20827      fi
20828      NEXT_ERRNO_H=$gl_cv_next_errno_h
20829
20830      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20831        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20832        gl_next_as_first_directive='<'errno.h'>'
20833      else
20834        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20835        gl_next_as_first_directive=$gl_cv_next_errno_h
20836      fi
20837      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
20838
20839
20840
20841     ERRNO_H='errno.h'
20842   fi
20843
20844
20845   if test -n "$ERRNO_H"; then
20846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
20847 $as_echo_n "checking for EMULTIHOP value... " >&6; }
20848 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
20849   $as_echo_n "(cached) " >&6
20850 else
20851
20852       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20853 /* end confdefs.h.  */
20854
20855 #include <errno.h>
20856 #ifdef EMULTIHOP
20857 yes
20858 #endif
20859
20860 _ACEOF
20861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20862   $EGREP "yes" >/dev/null 2>&1; then :
20863   gl_cv_header_errno_h_EMULTIHOP=yes
20864 else
20865   gl_cv_header_errno_h_EMULTIHOP=no
20866 fi
20867 rm -f conftest*
20868
20869       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
20870         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20871 /* end confdefs.h.  */
20872
20873 #define _XOPEN_SOURCE_EXTENDED 1
20874 #include <errno.h>
20875 #ifdef EMULTIHOP
20876 yes
20877 #endif
20878
20879 _ACEOF
20880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20881   $EGREP "yes" >/dev/null 2>&1; then :
20882   gl_cv_header_errno_h_EMULTIHOP=hidden
20883 fi
20884 rm -f conftest*
20885
20886         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
20887                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
20888 #define _XOPEN_SOURCE_EXTENDED 1
20889 #include <errno.h>
20890 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
20891 #include <stdio.h>
20892 #include <stdlib.h>
20893 "; then :
20894
20895 fi
20896
20897         fi
20898       fi
20899
20900 fi
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
20902 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
20903     case $gl_cv_header_errno_h_EMULTIHOP in
20904       yes | no)
20905         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
20906         ;;
20907       *)
20908         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
20909         ;;
20910     esac
20911
20912
20913   fi
20914
20915
20916   if test -n "$ERRNO_H"; then
20917     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
20918 $as_echo_n "checking for ENOLINK value... " >&6; }
20919 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
20920   $as_echo_n "(cached) " >&6
20921 else
20922
20923       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20924 /* end confdefs.h.  */
20925
20926 #include <errno.h>
20927 #ifdef ENOLINK
20928 yes
20929 #endif
20930
20931 _ACEOF
20932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20933   $EGREP "yes" >/dev/null 2>&1; then :
20934   gl_cv_header_errno_h_ENOLINK=yes
20935 else
20936   gl_cv_header_errno_h_ENOLINK=no
20937 fi
20938 rm -f conftest*
20939
20940       if test $gl_cv_header_errno_h_ENOLINK = no; then
20941         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20942 /* end confdefs.h.  */
20943
20944 #define _XOPEN_SOURCE_EXTENDED 1
20945 #include <errno.h>
20946 #ifdef ENOLINK
20947 yes
20948 #endif
20949
20950 _ACEOF
20951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20952   $EGREP "yes" >/dev/null 2>&1; then :
20953   gl_cv_header_errno_h_ENOLINK=hidden
20954 fi
20955 rm -f conftest*
20956
20957         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
20958                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
20959 #define _XOPEN_SOURCE_EXTENDED 1
20960 #include <errno.h>
20961 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
20962 #include <stdio.h>
20963 #include <stdlib.h>
20964 "; then :
20965
20966 fi
20967
20968         fi
20969       fi
20970
20971 fi
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
20973 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
20974     case $gl_cv_header_errno_h_ENOLINK in
20975       yes | no)
20976         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
20977         ;;
20978       *)
20979         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
20980         ;;
20981     esac
20982
20983
20984   fi
20985
20986
20987   if test -n "$ERRNO_H"; then
20988     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
20989 $as_echo_n "checking for EOVERFLOW value... " >&6; }
20990 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
20991   $as_echo_n "(cached) " >&6
20992 else
20993
20994       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20995 /* end confdefs.h.  */
20996
20997 #include <errno.h>
20998 #ifdef EOVERFLOW
20999 yes
21000 #endif
21001
21002 _ACEOF
21003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21004   $EGREP "yes" >/dev/null 2>&1; then :
21005   gl_cv_header_errno_h_EOVERFLOW=yes
21006 else
21007   gl_cv_header_errno_h_EOVERFLOW=no
21008 fi
21009 rm -f conftest*
21010
21011       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
21012         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21013 /* end confdefs.h.  */
21014
21015 #define _XOPEN_SOURCE_EXTENDED 1
21016 #include <errno.h>
21017 #ifdef EOVERFLOW
21018 yes
21019 #endif
21020
21021 _ACEOF
21022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21023   $EGREP "yes" >/dev/null 2>&1; then :
21024   gl_cv_header_errno_h_EOVERFLOW=hidden
21025 fi
21026 rm -f conftest*
21027
21028         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
21029                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
21030 #define _XOPEN_SOURCE_EXTENDED 1
21031 #include <errno.h>
21032 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
21033 #include <stdio.h>
21034 #include <stdlib.h>
21035 "; then :
21036
21037 fi
21038
21039         fi
21040       fi
21041
21042 fi
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
21044 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
21045     case $gl_cv_header_errno_h_EOVERFLOW in
21046       yes | no)
21047         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
21048         ;;
21049       *)
21050         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
21051         ;;
21052     esac
21053
21054
21055   fi
21056
21057
21058 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
21059 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
21060   ac_have_decl=1
21061 else
21062   ac_have_decl=0
21063 fi
21064
21065 cat >>confdefs.h <<_ACEOF
21066 #define HAVE_DECL_STRERROR_R $ac_have_decl
21067 _ACEOF
21068
21069 for ac_func in strerror_r
21070 do :
21071   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
21072 if test "x$ac_cv_func_strerror_r" = x""yes; then :
21073   cat >>confdefs.h <<_ACEOF
21074 #define HAVE_STRERROR_R 1
21075 _ACEOF
21076
21077 fi
21078 done
21079
21080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
21081 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
21082 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
21083   $as_echo_n "(cached) " >&6
21084 else
21085
21086     ac_cv_func_strerror_r_char_p=no
21087     if test $ac_cv_have_decl_strerror_r = yes; then
21088       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21089 /* end confdefs.h.  */
21090 $ac_includes_default
21091 int
21092 main ()
21093 {
21094
21095           char buf[100];
21096           char x = *strerror_r (0, buf, sizeof buf);
21097           char *p = strerror_r (0, buf, sizeof buf);
21098           return !p || x;
21099
21100   ;
21101   return 0;
21102 }
21103 _ACEOF
21104 if ac_fn_c_try_compile "$LINENO"; then :
21105   ac_cv_func_strerror_r_char_p=yes
21106 fi
21107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21108     else
21109       # strerror_r is not declared.  Choose between
21110       # systems that have relatively inaccessible declarations for the
21111       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
21112       # former has a strerror_r that returns char*, while the latter
21113       # has a strerror_r that returns `int'.
21114       # This test should segfault on the DEC system.
21115       if test "$cross_compiling" = yes; then :
21116   :
21117 else
21118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21119 /* end confdefs.h.  */
21120 $ac_includes_default
21121         extern char *strerror_r ();
21122 int
21123 main ()
21124 {
21125 char buf[100];
21126           char x = *strerror_r (0, buf, sizeof buf);
21127           return ! isalpha (x);
21128   ;
21129   return 0;
21130 }
21131 _ACEOF
21132 if ac_fn_c_try_run "$LINENO"; then :
21133   ac_cv_func_strerror_r_char_p=yes
21134 fi
21135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21136   conftest.$ac_objext conftest.beam conftest.$ac_ext
21137 fi
21138
21139     fi
21140
21141 fi
21142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
21143 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
21144 if test $ac_cv_func_strerror_r_char_p = yes; then
21145
21146 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
21147
21148 fi
21149
21150
21151   XGETTEXT_EXTRA_OPTIONS=
21152
21153 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21154 if test "x$ac_cv_type_mode_t" = x""yes; then :
21155
21156 else
21157
21158 cat >>confdefs.h <<_ACEOF
21159 #define mode_t int
21160 _ACEOF
21161
21162 fi
21163
21164
21165   ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
21166 "
21167 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
21168
21169 cat >>confdefs.h <<_ACEOF
21170 #define HAVE_SIG_ATOMIC_T 1
21171 _ACEOF
21172
21173
21174 else
21175
21176 $as_echo "#define sig_atomic_t int" >>confdefs.h
21177
21178 fi
21179
21180
21181
21182   GNULIB_FCNTL=0;
21183   GNULIB_OPEN=0;
21184   GNULIB_OPENAT=0;
21185     HAVE_FCNTL=1;
21186   HAVE_OPENAT=1;
21187   REPLACE_FCNTL=0;
21188   REPLACE_OPEN=0;
21189   REPLACE_OPENAT=0;
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202   ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
21203 if test "x$ac_cv_func_eaccess" = x""yes; then :
21204
21205 else
21206
21207 $as_echo "#define eaccess access" >>confdefs.h
21208
21209 fi
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
21220 $as_echo_n "checking for mbstate_t... " >&6; }
21221 if test "${ac_cv_type_mbstate_t+set}" = set; then :
21222   $as_echo_n "(cached) " >&6
21223 else
21224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21225 /* end confdefs.h.  */
21226 $ac_includes_default
21227 #           include <wchar.h>
21228 int
21229 main ()
21230 {
21231 mbstate_t x; return sizeof x;
21232   ;
21233   return 0;
21234 }
21235 _ACEOF
21236 if ac_fn_c_try_compile "$LINENO"; then :
21237   ac_cv_type_mbstate_t=yes
21238 else
21239   ac_cv_type_mbstate_t=no
21240 fi
21241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21242 fi
21243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
21244 $as_echo "$ac_cv_type_mbstate_t" >&6; }
21245    if test $ac_cv_type_mbstate_t = yes; then
21246
21247 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
21248
21249    else
21250
21251 $as_echo "#define mbstate_t int" >>confdefs.h
21252
21253    fi
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301   GNULIB_DPRINTF=0;
21302   GNULIB_FCLOSE=0;
21303   GNULIB_FFLUSH=0;
21304   GNULIB_FOPEN=0;
21305   GNULIB_FPRINTF=0;
21306   GNULIB_FPRINTF_POSIX=0;
21307   GNULIB_FPURGE=0;
21308   GNULIB_FPUTC=0;
21309   GNULIB_FPUTS=0;
21310   GNULIB_FREOPEN=0;
21311   GNULIB_FSEEK=0;
21312   GNULIB_FSEEKO=0;
21313   GNULIB_FTELL=0;
21314   GNULIB_FTELLO=0;
21315   GNULIB_FWRITE=0;
21316   GNULIB_GETDELIM=0;
21317   GNULIB_GETLINE=0;
21318   GNULIB_OBSTACK_PRINTF=0;
21319   GNULIB_OBSTACK_PRINTF_POSIX=0;
21320   GNULIB_PERROR=0;
21321   GNULIB_POPEN=0;
21322   GNULIB_PRINTF=0;
21323   GNULIB_PRINTF_POSIX=0;
21324   GNULIB_PUTC=0;
21325   GNULIB_PUTCHAR=0;
21326   GNULIB_PUTS=0;
21327   GNULIB_REMOVE=0;
21328   GNULIB_RENAME=0;
21329   GNULIB_RENAMEAT=0;
21330   GNULIB_SNPRINTF=0;
21331   GNULIB_SPRINTF_POSIX=0;
21332   GNULIB_STDIO_H_SIGPIPE=0;
21333   GNULIB_TMPFILE=0;
21334   GNULIB_VASPRINTF=0;
21335   GNULIB_VDPRINTF=0;
21336   GNULIB_VFPRINTF=0;
21337   GNULIB_VFPRINTF_POSIX=0;
21338   GNULIB_VPRINTF=0;
21339   GNULIB_VPRINTF_POSIX=0;
21340   GNULIB_VSNPRINTF=0;
21341   GNULIB_VSPRINTF_POSIX=0;
21342     HAVE_DECL_FPURGE=1;
21343   HAVE_DECL_GETDELIM=1;
21344   HAVE_DECL_GETLINE=1;
21345   HAVE_DECL_OBSTACK_PRINTF=1;
21346   HAVE_DECL_SNPRINTF=1;
21347   HAVE_DECL_VSNPRINTF=1;
21348   HAVE_DPRINTF=1;
21349   HAVE_FSEEKO=1;
21350   HAVE_FTELLO=1;
21351   HAVE_RENAMEAT=1;
21352   HAVE_VASPRINTF=1;
21353   HAVE_VDPRINTF=1;
21354   REPLACE_DPRINTF=0;
21355   REPLACE_FCLOSE=0;
21356   REPLACE_FFLUSH=0;
21357   REPLACE_FOPEN=0;
21358   REPLACE_FPRINTF=0;
21359   REPLACE_FPURGE=0;
21360   REPLACE_FREOPEN=0;
21361   REPLACE_FSEEK=0;
21362   REPLACE_FSEEKO=0;
21363   REPLACE_FTELL=0;
21364   REPLACE_FTELLO=0;
21365   REPLACE_GETDELIM=0;
21366   REPLACE_GETLINE=0;
21367   REPLACE_OBSTACK_PRINTF=0;
21368   REPLACE_PERROR=0;
21369   REPLACE_POPEN=0;
21370   REPLACE_PRINTF=0;
21371   REPLACE_REMOVE=0;
21372   REPLACE_RENAME=0;
21373   REPLACE_RENAMEAT=0;
21374   REPLACE_SNPRINTF=0;
21375   REPLACE_SPRINTF=0;
21376   REPLACE_STDIO_WRITE_FUNCS=0;
21377   REPLACE_TMPFILE=0;
21378   REPLACE_VASPRINTF=0;
21379   REPLACE_VDPRINTF=0;
21380   REPLACE_VFPRINTF=0;
21381   REPLACE_VPRINTF=0;
21382   REPLACE_VSNPRINTF=0;
21383   REPLACE_VSPRINTF=0;
21384
21385
21386       ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
21387 if test "x$ac_cv_have_decl_getdelim" = x""yes; then :
21388   ac_have_decl=1
21389 else
21390   ac_have_decl=0
21391 fi
21392
21393 cat >>confdefs.h <<_ACEOF
21394 #define HAVE_DECL_GETDELIM $ac_have_decl
21395 _ACEOF
21396
21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409       ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
21410 if test "x$ac_cv_have_decl_getline" = x""yes; then :
21411   ac_have_decl=1
21412 else
21413   ac_have_decl=0
21414 fi
21415
21416 cat >>confdefs.h <<_ACEOF
21417 #define HAVE_DECL_GETLINE $ac_have_decl
21418 _ACEOF
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434   :
21435
21436
21437
21438
21439
21440
21441
21442      if test $gl_cv_have_include_next = yes; then
21443        gl_cv_next_getopt_h='<'getopt.h'>'
21444      else
21445        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
21446 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
21447 if test "${gl_cv_next_getopt_h+set}" = set; then :
21448   $as_echo_n "(cached) " >&6
21449 else
21450
21451           if test $ac_cv_header_getopt_h = yes; then
21452             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21453 /* end confdefs.h.  */
21454 #include <getopt.h>
21455
21456 _ACEOF
21457                                                                                                 case "$host_os" in
21458               aix*) gl_absname_cpp="$ac_cpp -C" ;;
21459               *)    gl_absname_cpp="$ac_cpp" ;;
21460             esac
21461                                                 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21462                sed -n '\#/getopt.h#{
21463                  s#.*"\(.*/getopt.h\)".*#\1#
21464                  s#^/[^/]#//&#
21465                  p
21466                  q
21467                }'`'"'
21468           else
21469             gl_cv_next_getopt_h='<'getopt.h'>'
21470           fi
21471
21472 fi
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
21474 $as_echo "$gl_cv_next_getopt_h" >&6; }
21475      fi
21476      NEXT_GETOPT_H=$gl_cv_next_getopt_h
21477
21478      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21479        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21480        gl_next_as_first_directive='<'getopt.h'>'
21481      else
21482        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21483        gl_next_as_first_directive=$gl_cv_next_getopt_h
21484      fi
21485      NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
21486
21487
21488
21489
21490   :
21491
21492
21493
21494
21495
21496   if test $ac_cv_header_getopt_h = yes; then
21497     HAVE_GETOPT_H=1
21498   else
21499     HAVE_GETOPT_H=0
21500   fi
21501
21502
21503   gl_replace_getopt=
21504
21505     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21506     for ac_header in getopt.h
21507 do :
21508   ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
21509 if test "x$ac_cv_header_getopt_h" = x""yes; then :
21510   cat >>confdefs.h <<_ACEOF
21511 #define HAVE_GETOPT_H 1
21512 _ACEOF
21513
21514 else
21515   gl_replace_getopt=yes
21516 fi
21517
21518 done
21519
21520   fi
21521
21522     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21523     for ac_func in getopt_long_only
21524 do :
21525   ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
21526 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
21527   cat >>confdefs.h <<_ACEOF
21528 #define HAVE_GETOPT_LONG_ONLY 1
21529 _ACEOF
21530
21531 else
21532   gl_replace_getopt=yes
21533 fi
21534 done
21535
21536   fi
21537
21538               if test -z "$gl_replace_getopt"; then
21539     ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
21540 "
21541 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
21542   ac_have_decl=1
21543 else
21544   ac_have_decl=0
21545 fi
21546
21547 cat >>confdefs.h <<_ACEOF
21548 #define HAVE_DECL_OPTRESET $ac_have_decl
21549 _ACEOF
21550 if test $ac_have_decl = 1; then :
21551
21552 else
21553   ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
21554 "
21555 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
21556   ac_have_decl=1
21557 else
21558   ac_have_decl=0
21559 fi
21560
21561 cat >>confdefs.h <<_ACEOF
21562 #define HAVE_DECL_GETOPT_CLIP $ac_have_decl
21563 _ACEOF
21564
21565
21566 fi
21567
21568   fi
21569
21570                     if test -z "$gl_replace_getopt"; then
21571     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
21572 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
21573 if test "${gl_cv_func_getopt_posix+set}" = set; then :
21574   $as_echo_n "(cached) " >&6
21575 else
21576
21577                 if test "$cross_compiling" = yes; then :
21578   case "$host_os" in
21579              mingw*) gl_cv_func_getopt_posix="guessing no";;
21580              darwin*) gl_cv_func_getopt_posix="guessing no";;
21581              *)      gl_cv_func_getopt_posix="guessing yes";;
21582            esac
21583
21584 else
21585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21586 /* end confdefs.h.  */
21587
21588 #include <unistd.h>
21589 #include <stdlib.h>
21590 #include <string.h>
21591
21592 #if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
21593 # define OPTIND_MIN 0
21594 #else
21595 # define OPTIND_MIN 1
21596 #endif
21597
21598 int
21599 main ()
21600 {
21601   {
21602     int argc = 0;
21603     char *argv[10];
21604     int c;
21605
21606     argv[argc++] = "program";
21607     argv[argc++] = "-a";
21608     argv[argc++] = "foo";
21609     argv[argc++] = "bar";
21610     argv[argc] = NULL;
21611     optind = OPTIND_MIN;
21612     opterr = 0;
21613
21614     c = getopt (argc, argv, "ab");
21615     if (!(c == 'a'))
21616       return 1;
21617     c = getopt (argc, argv, "ab");
21618     if (!(c == -1))
21619       return 2;
21620     if (!(optind == 2))
21621       return 3;
21622   }
21623   /* Some internal state exists at this point.  */
21624   {
21625     int argc = 0;
21626     char *argv[10];
21627     int c;
21628
21629     argv[argc++] = "program";
21630     argv[argc++] = "donald";
21631     argv[argc++] = "-p";
21632     argv[argc++] = "billy";
21633     argv[argc++] = "duck";
21634     argv[argc++] = "-a";
21635     argv[argc++] = "bar";
21636     argv[argc] = NULL;
21637     optind = OPTIND_MIN;
21638     opterr = 0;
21639
21640     c = getopt (argc, argv, "+abp:q:");
21641     if (!(c == -1))
21642       return 4;
21643     if (!(strcmp (argv[0], "program") == 0))
21644       return 5;
21645     if (!(strcmp (argv[1], "donald") == 0))
21646       return 6;
21647     if (!(strcmp (argv[2], "-p") == 0))
21648       return 7;
21649     if (!(strcmp (argv[3], "billy") == 0))
21650       return 8;
21651     if (!(strcmp (argv[4], "duck") == 0))
21652       return 9;
21653     if (!(strcmp (argv[5], "-a") == 0))
21654       return 10;
21655     if (!(strcmp (argv[6], "bar") == 0))
21656       return 11;
21657     if (!(optind == 1))
21658       return 12;
21659   }
21660   /* Detect MacOS 10.5 bug.  */
21661   {
21662     char *argv[3] = { "program", "-ab", NULL };
21663     optind = OPTIND_MIN;
21664     opterr = 0;
21665     if (getopt (2, argv, "ab:") != 'a')
21666       return 13;
21667     if (getopt (2, argv, "ab:") != '?')
21668       return 14;
21669     if (optopt != 'b')
21670       return 15;
21671     if (optind != 2)
21672       return 16;
21673   }
21674
21675   return 0;
21676 }
21677
21678 _ACEOF
21679 if ac_fn_c_try_run "$LINENO"; then :
21680   gl_cv_func_getopt_posix=yes
21681 else
21682   gl_cv_func_getopt_posix=no
21683 fi
21684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21685   conftest.$ac_objext conftest.beam conftest.$ac_ext
21686 fi
21687
21688
21689 fi
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
21691 $as_echo "$gl_cv_func_getopt_posix" >&6; }
21692     case "$gl_cv_func_getopt_posix" in
21693       *no) gl_replace_getopt=yes ;;
21694     esac
21695   fi
21696
21697   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21698     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
21699 $as_echo_n "checking for working GNU getopt function... " >&6; }
21700 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
21701   $as_echo_n "(cached) " >&6
21702 else
21703   # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
21704        # optstring is necessary for programs like m4 that have POSIX-mandated
21705        # semantics for supporting options interspersed with files.
21706        # Also, since getopt_long is a GNU extension, we require optind=0.
21707        gl_had_POSIXLY_CORRECT=${POSIXLY_CORRECT:+yes}
21708        POSIXLY_CORRECT=1
21709        export POSIXLY_CORRECT
21710        if test "$cross_compiling" = yes; then :
21711            case $host_os:$ac_cv_have_decl_optreset in
21712            *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
21713            *:yes)               gl_cv_func_getopt_gnu=no;;
21714            *)                   gl_cv_func_getopt_gnu=yes;;
21715          esac
21716
21717 else
21718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21719 /* end confdefs.h.  */
21720 #include <getopt.h>
21721                            #include <stddef.h>
21722                            #include <string.h>
21723
21724 int
21725 main ()
21726 {
21727
21728              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
21729                 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
21730                 OSF/1 5.1, Solaris 10.  */
21731              {
21732                char *myargv[3];
21733                myargv[0] = "conftest";
21734                myargv[1] = "-+";
21735                myargv[2] = 0;
21736                opterr = 0;
21737                if (getopt (2, myargv, "+a") != '?')
21738                  return 1;
21739              }
21740              /* This code succeeds on glibc 2.8, mingw,
21741                 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
21742                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
21743              {
21744                char *argv[] = { "program", "-p", "foo", "bar", NULL };
21745
21746                optind = 1;
21747                if (getopt (4, argv, "p::") != 'p')
21748                  return 2;
21749                if (optarg != NULL)
21750                  return 3;
21751                if (getopt (4, argv, "p::") != -1)
21752                  return 4;
21753                if (optind != 2)
21754                  return 5;
21755              }
21756              /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
21757              {
21758                char *argv[] = { "program", "foo", "-p", NULL };
21759                optind = 0;
21760                if (getopt (3, argv, "-p") != 1)
21761                  return 6;
21762                if (getopt (3, argv, "-p") != 'p')
21763                  return 7;
21764              }
21765              /* This code fails on glibc 2.11.  */
21766              {
21767                char *argv[] = { "program", "-b", "-a", NULL };
21768                optind = opterr = 0;
21769                if (getopt (3, argv, "+:a:b") != 'b')
21770                  return 8;
21771                if (getopt (3, argv, "+:a:b") != ':')
21772                  return 9;
21773              }
21774              return 0;
21775
21776   ;
21777   return 0;
21778 }
21779 _ACEOF
21780 if ac_fn_c_try_run "$LINENO"; then :
21781   gl_cv_func_getopt_gnu=yes
21782 else
21783   gl_cv_func_getopt_gnu=no
21784 fi
21785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21786   conftest.$ac_objext conftest.beam conftest.$ac_ext
21787 fi
21788
21789        if test "$gl_had_POSIXLY_CORRECT" != yes; then
21790          { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}
21791        fi
21792
21793 fi
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
21795 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
21796     if test "$gl_cv_func_getopt_gnu" = "no"; then
21797       gl_replace_getopt=yes
21798     fi
21799   fi
21800
21801
21802       ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
21803 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
21804   ac_have_decl=1
21805 else
21806   ac_have_decl=0
21807 fi
21808
21809 cat >>confdefs.h <<_ACEOF
21810 #define HAVE_DECL_GETENV $ac_have_decl
21811 _ACEOF
21812
21813
21814
21815
21816
21817
21818
21819   if test -n "$gl_replace_getopt"; then :
21820
21821
21822
21823   GETOPT_H=getopt.h
21824
21825 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21826
21827
21828
21829     GNULIB_UNISTD_H_GETOPT=1
21830
21831
21832
21833
21834
21835
21836
21837
21838   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21849
21850
21851
21852   :
21853
21854
21855
21856
21857
21858
21859
21860
21861 fi
21862
21863
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
21865 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
21866 if test "${ac_cv_c_restrict+set}" = set; then :
21867   $as_echo_n "(cached) " >&6
21868 else
21869   ac_cv_c_restrict=no
21870    # The order here caters to the fact that C++ does not require restrict.
21871    for ac_kw in __restrict __restrict__ _Restrict restrict; do
21872      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21873 /* end confdefs.h.  */
21874 typedef int * int_ptr;
21875         int foo (int_ptr $ac_kw ip) {
21876         return ip[0];
21877        }
21878 int
21879 main ()
21880 {
21881 int s[1];
21882         int * $ac_kw t = s;
21883         t[0] = 0;
21884         return foo(t)
21885   ;
21886   return 0;
21887 }
21888 _ACEOF
21889 if ac_fn_c_try_compile "$LINENO"; then :
21890   ac_cv_c_restrict=$ac_kw
21891 fi
21892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21893      test "$ac_cv_c_restrict" != no && break
21894    done
21895
21896 fi
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
21898 $as_echo "$ac_cv_c_restrict" >&6; }
21899
21900  case $ac_cv_c_restrict in
21901    restrict) ;;
21902    no) $as_echo "#define restrict /**/" >>confdefs.h
21903  ;;
21904    *)  cat >>confdefs.h <<_ACEOF
21905 #define restrict $ac_cv_c_restrict
21906 _ACEOF
21907  ;;
21908  esac
21909
21910
21911   GNULIB_GETTIMEOFDAY=0;
21912     HAVE_GETTIMEOFDAY=1;
21913   HAVE_STRUCT_TIMEVAL=1;
21914   HAVE_SYS_TIME_H=1;
21915   REPLACE_GETTIMEOFDAY=0;
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926   :
21927
21928
21929
21930
21931
21932
21933
21934
21935
21936   :
21937
21938
21939
21940
21941
21942
21943
21944      if test $gl_cv_have_include_next = yes; then
21945        gl_cv_next_sys_time_h='<'sys/time.h'>'
21946      else
21947        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
21948 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
21949 if test "${gl_cv_next_sys_time_h+set}" = set; then :
21950   $as_echo_n "(cached) " >&6
21951 else
21952
21953           if test $ac_cv_header_sys_time_h = yes; then
21954             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21955 /* end confdefs.h.  */
21956 #include <sys/time.h>
21957
21958 _ACEOF
21959                                                                                                 case "$host_os" in
21960               aix*) gl_absname_cpp="$ac_cpp -C" ;;
21961               *)    gl_absname_cpp="$ac_cpp" ;;
21962             esac
21963                                                 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21964                sed -n '\#/sys/time.h#{
21965                  s#.*"\(.*/sys/time.h\)".*#\1#
21966                  s#^/[^/]#//&#
21967                  p
21968                  q
21969                }'`'"'
21970           else
21971             gl_cv_next_sys_time_h='<'sys/time.h'>'
21972           fi
21973
21974 fi
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
21976 $as_echo "$gl_cv_next_sys_time_h" >&6; }
21977      fi
21978      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
21979
21980      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21981        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21982        gl_next_as_first_directive='<'sys/time.h'>'
21983      else
21984        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21985        gl_next_as_first_directive=$gl_cv_next_sys_time_h
21986      fi
21987      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
21988
21989
21990
21991
21992   if test $ac_cv_header_sys_time_h != yes; then
21993     HAVE_SYS_TIME_H=0
21994   fi
21995
21996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
21997 $as_echo_n "checking for struct timeval... " >&6; }
21998 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
21999   $as_echo_n "(cached) " >&6
22000 else
22001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22002 /* end confdefs.h.  */
22003 #if HAVE_SYS_TIME_H
22004              #include <sys/time.h>
22005             #endif
22006             #include <time.h>
22007
22008 int
22009 main ()
22010 {
22011 static struct timeval x; x.tv_sec = x.tv_usec;
22012   ;
22013   return 0;
22014 }
22015 _ACEOF
22016 if ac_fn_c_try_compile "$LINENO"; then :
22017   gl_cv_sys_struct_timeval=yes
22018 else
22019   gl_cv_sys_struct_timeval=no
22020 fi
22021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22022 fi
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
22024 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
22025   if test $gl_cv_sys_struct_timeval != yes; then
22026     HAVE_STRUCT_TIMEVAL=0
22027   fi
22028
22029
22030     for gl_func in gettimeofday; do
22031     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22032     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22033 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22034 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
22035   $as_echo_n "(cached) " >&6
22036 else
22037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22038 /* end confdefs.h.  */
22039
22040 #if HAVE_SYS_TIME_H
22041 # include <sys/time.h>
22042 #endif
22043 #include <time.h>
22044
22045 int
22046 main ()
22047 {
22048 #undef $gl_func
22049   (void) $gl_func;
22050   ;
22051   return 0;
22052 }
22053 _ACEOF
22054 if ac_fn_c_try_compile "$LINENO"; then :
22055   eval "$as_gl_Symbol=yes"
22056 else
22057   eval "$as_gl_Symbol=no"
22058 fi
22059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22060 fi
22061 eval ac_res=\$$as_gl_Symbol
22062                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22063 $as_echo "$ac_res" >&6; }
22064      eval as_val=\$$as_gl_Symbol
22065    if test "x$as_val" = x""yes; then :
22066   cat >>confdefs.h <<_ACEOF
22067 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22068 _ACEOF
22069
22070                      eval ac_cv_have_decl_$gl_func=yes
22071 fi
22072       done
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084     REPLACE_ICONV=0;
22085   REPLACE_ICONV_OPEN=0;
22086   REPLACE_ICONV_UTF=0;
22087   ICONV_H='';
22088
22089
22090
22091
22092
22093
22094
22095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included glib is requested" >&5
22096 $as_echo_n "checking whether included glib is requested... " >&6; }
22097
22098 # Check whether --with-included-glib was given.
22099 if test "${with_included_glib+set}" = set; then :
22100   withval=$with_included_glib; gl_cv_libglib_force_included=$withval
22101 else
22102   gl_cv_libglib_force_included=no
22103 fi
22104
22105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_force_included" >&5
22106 $as_echo "$gl_cv_libglib_force_included" >&6; }
22107
22108   gl_cv_libglib_use_included="$gl_cv_libglib_force_included"
22109   LIBGLIB=
22110   LTLIBGLIB=
22111   INCGLIB=
22112   if test "$gl_cv_libglib_use_included" != yes; then
22113             if test "${gl_cv_libglib+set}" = set; then :
22114   $as_echo_n "(cached) " >&6
22115 else
22116
22117       gl_cv_libglib=no
22118       gl_cv_LIBGLIB=
22119       gl_cv_LTLIBGLIB=
22120       gl_cv_INCGLIB=
22121       gl_save_LIBS="$LIBS"
22122
22123
22124
22125
22126
22127
22128
22129     use_additional=yes
22130
22131   acl_save_prefix="$prefix"
22132   prefix="$acl_final_prefix"
22133   acl_save_exec_prefix="$exec_prefix"
22134   exec_prefix="$acl_final_exec_prefix"
22135
22136     eval additional_includedir=\"$includedir\"
22137     eval additional_libdir=\"$libdir\"
22138
22139   exec_prefix="$acl_save_exec_prefix"
22140   prefix="$acl_save_prefix"
22141
22142
22143 # Check whether --with-libglib-2.0-prefix was given.
22144 if test "${with_libglib_20_prefix+set}" = set; then :
22145   withval=$with_libglib_20_prefix;
22146     if test "X$withval" = "Xno"; then
22147       use_additional=no
22148     else
22149       if test "X$withval" = "X"; then
22150
22151   acl_save_prefix="$prefix"
22152   prefix="$acl_final_prefix"
22153   acl_save_exec_prefix="$exec_prefix"
22154   exec_prefix="$acl_final_exec_prefix"
22155
22156           eval additional_includedir=\"$includedir\"
22157           eval additional_libdir=\"$libdir\"
22158
22159   exec_prefix="$acl_save_exec_prefix"
22160   prefix="$acl_save_prefix"
22161
22162       else
22163         additional_includedir="$withval/include"
22164         additional_libdir="$withval/$acl_libdirstem"
22165         if test "$acl_libdirstem2" != "$acl_libdirstem" \
22166            && ! test -d "$withval/$acl_libdirstem"; then
22167           additional_libdir="$withval/$acl_libdirstem2"
22168         fi
22169       fi
22170     fi
22171
22172 fi
22173
22174       LIBGLIB_2_0=
22175   LTLIBGLIB_2_0=
22176   INCGLIB_2_0=
22177   LIBGLIB_2_0_PREFIX=
22178       HAVE_LIBGLIB_2_0=
22179   rpathdirs=
22180   ltrpathdirs=
22181   names_already_handled=
22182   names_next_round='glib-2.0 '
22183   while test -n "$names_next_round"; do
22184     names_this_round="$names_next_round"
22185     names_next_round=
22186     for name in $names_this_round; do
22187       already_handled=
22188       for n in $names_already_handled; do
22189         if test "$n" = "$name"; then
22190           already_handled=yes
22191           break
22192         fi
22193       done
22194       if test -z "$already_handled"; then
22195         names_already_handled="$names_already_handled $name"
22196                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22197         eval value=\"\$HAVE_LIB$uppername\"
22198         if test -n "$value"; then
22199           if test "$value" = yes; then
22200             eval value=\"\$LIB$uppername\"
22201             test -z "$value" || LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$value"
22202             eval value=\"\$LTLIB$uppername\"
22203             test -z "$value" || LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$value"
22204           else
22205                                     :
22206           fi
22207         else
22208                               found_dir=
22209           found_la=
22210           found_so=
22211           found_a=
22212           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
22213           if test -n "$acl_shlibext"; then
22214             shrext=".$acl_shlibext"             # typically: shrext=.so
22215           else
22216             shrext=
22217           fi
22218           if test $use_additional = yes; then
22219             dir="$additional_libdir"
22220                                     if test -n "$acl_shlibext"; then
22221               if test -f "$dir/$libname$shrext"; then
22222                 found_dir="$dir"
22223                 found_so="$dir/$libname$shrext"
22224               else
22225                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22226                   ver=`(cd "$dir" && \
22227                         for f in "$libname$shrext".*; do echo "$f"; done \
22228                         | sed -e "s,^$libname$shrext\\\\.,," \
22229                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22230                         | sed 1q ) 2>/dev/null`
22231                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22232                     found_dir="$dir"
22233                     found_so="$dir/$libname$shrext.$ver"
22234                   fi
22235                 else
22236                   eval library_names=\"$acl_library_names_spec\"
22237                   for f in $library_names; do
22238                     if test -f "$dir/$f"; then
22239                       found_dir="$dir"
22240                       found_so="$dir/$f"
22241                       break
22242                     fi
22243                   done
22244                 fi
22245               fi
22246             fi
22247                         if test "X$found_dir" = "X"; then
22248               if test -f "$dir/$libname.$acl_libext"; then
22249                 found_dir="$dir"
22250                 found_a="$dir/$libname.$acl_libext"
22251               fi
22252             fi
22253             if test "X$found_dir" != "X"; then
22254               if test -f "$dir/$libname.la"; then
22255                 found_la="$dir/$libname.la"
22256               fi
22257             fi
22258           fi
22259           if test "X$found_dir" = "X"; then
22260             for x in $LDFLAGS $LTLIBGLIB_2_0; do
22261
22262   acl_save_prefix="$prefix"
22263   prefix="$acl_final_prefix"
22264   acl_save_exec_prefix="$exec_prefix"
22265   exec_prefix="$acl_final_exec_prefix"
22266   eval x=\"$x\"
22267   exec_prefix="$acl_save_exec_prefix"
22268   prefix="$acl_save_prefix"
22269
22270               case "$x" in
22271                 -L*)
22272                   dir=`echo "X$x" | sed -e 's/^X-L//'`
22273                                     if test -n "$acl_shlibext"; then
22274                     if test -f "$dir/$libname$shrext"; then
22275                       found_dir="$dir"
22276                       found_so="$dir/$libname$shrext"
22277                     else
22278                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22279                         ver=`(cd "$dir" && \
22280                               for f in "$libname$shrext".*; do echo "$f"; done \
22281                               | sed -e "s,^$libname$shrext\\\\.,," \
22282                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22283                               | sed 1q ) 2>/dev/null`
22284                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22285                           found_dir="$dir"
22286                           found_so="$dir/$libname$shrext.$ver"
22287                         fi
22288                       else
22289                         eval library_names=\"$acl_library_names_spec\"
22290                         for f in $library_names; do
22291                           if test -f "$dir/$f"; then
22292                             found_dir="$dir"
22293                             found_so="$dir/$f"
22294                             break
22295                           fi
22296                         done
22297                       fi
22298                     fi
22299                   fi
22300                                     if test "X$found_dir" = "X"; then
22301                     if test -f "$dir/$libname.$acl_libext"; then
22302                       found_dir="$dir"
22303                       found_a="$dir/$libname.$acl_libext"
22304                     fi
22305                   fi
22306                   if test "X$found_dir" != "X"; then
22307                     if test -f "$dir/$libname.la"; then
22308                       found_la="$dir/$libname.la"
22309                     fi
22310                   fi
22311                   ;;
22312               esac
22313               if test "X$found_dir" != "X"; then
22314                 break
22315               fi
22316             done
22317           fi
22318           if test "X$found_dir" != "X"; then
22319                         LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$found_dir -l$name"
22320             if test "X$found_so" != "X"; then
22321                                                         if test "$enable_rpath" = no \
22322                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
22323                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
22324                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
22325               else
22326                                                                                 haveit=
22327                 for x in $ltrpathdirs; do
22328                   if test "X$x" = "X$found_dir"; then
22329                     haveit=yes
22330                     break
22331                   fi
22332                 done
22333                 if test -z "$haveit"; then
22334                   ltrpathdirs="$ltrpathdirs $found_dir"
22335                 fi
22336                                 if test "$acl_hardcode_direct" = yes; then
22337                                                       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
22338                 else
22339                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
22340                                                             LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
22341                                                             haveit=
22342                     for x in $rpathdirs; do
22343                       if test "X$x" = "X$found_dir"; then
22344                         haveit=yes
22345                         break
22346                       fi
22347                     done
22348                     if test -z "$haveit"; then
22349                       rpathdirs="$rpathdirs $found_dir"
22350                     fi
22351                   else
22352                                                                                 haveit=
22353                     for x in $LDFLAGS $LIBGLIB_2_0; do
22354
22355   acl_save_prefix="$prefix"
22356   prefix="$acl_final_prefix"
22357   acl_save_exec_prefix="$exec_prefix"
22358   exec_prefix="$acl_final_exec_prefix"
22359   eval x=\"$x\"
22360   exec_prefix="$acl_save_exec_prefix"
22361   prefix="$acl_save_prefix"
22362
22363                       if test "X$x" = "X-L$found_dir"; then
22364                         haveit=yes
22365                         break
22366                       fi
22367                     done
22368                     if test -z "$haveit"; then
22369                       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir"
22370                     fi
22371                     if test "$acl_hardcode_minus_L" != no; then
22372                                                                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
22373                     else
22374                                                                                                                                                                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
22375                     fi
22376                   fi
22377                 fi
22378               fi
22379             else
22380               if test "X$found_a" != "X"; then
22381                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_a"
22382               else
22383                                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir -l$name"
22384               fi
22385             fi
22386                         additional_includedir=
22387             case "$found_dir" in
22388               */$acl_libdirstem | */$acl_libdirstem/)
22389                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
22390                 if test "$name" = 'glib-2.0'; then
22391                   LIBGLIB_2_0_PREFIX="$basedir"
22392                 fi
22393                 additional_includedir="$basedir/include"
22394                 ;;
22395               */$acl_libdirstem2 | */$acl_libdirstem2/)
22396                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
22397                 if test "$name" = 'glib-2.0'; then
22398                   LIBGLIB_2_0_PREFIX="$basedir"
22399                 fi
22400                 additional_includedir="$basedir/include"
22401                 ;;
22402             esac
22403             if test "X$additional_includedir" != "X"; then
22404                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
22405                 haveit=
22406                 if test "X$additional_includedir" = "X/usr/local/include"; then
22407                   if test -n "$GCC"; then
22408                     case $host_os in
22409                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22410                     esac
22411                   fi
22412                 fi
22413                 if test -z "$haveit"; then
22414                   for x in $CPPFLAGS $INCGLIB_2_0; do
22415
22416   acl_save_prefix="$prefix"
22417   prefix="$acl_final_prefix"
22418   acl_save_exec_prefix="$exec_prefix"
22419   exec_prefix="$acl_final_exec_prefix"
22420   eval x=\"$x\"
22421   exec_prefix="$acl_save_exec_prefix"
22422   prefix="$acl_save_prefix"
22423
22424                     if test "X$x" = "X-I$additional_includedir"; then
22425                       haveit=yes
22426                       break
22427                     fi
22428                   done
22429                   if test -z "$haveit"; then
22430                     if test -d "$additional_includedir"; then
22431                                             INCGLIB_2_0="${INCGLIB_2_0}${INCGLIB_2_0:+ }-I$additional_includedir"
22432                     fi
22433                   fi
22434                 fi
22435               fi
22436             fi
22437                         if test -n "$found_la"; then
22438                                                         save_libdir="$libdir"
22439               case "$found_la" in
22440                 */* | *\\*) . "$found_la" ;;
22441                 *) . "./$found_la" ;;
22442               esac
22443               libdir="$save_libdir"
22444                             for dep in $dependency_libs; do
22445                 case "$dep" in
22446                   -L*)
22447                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22448                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
22449                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
22450                       haveit=
22451                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
22452                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
22453                         if test -n "$GCC"; then
22454                           case $host_os in
22455                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22456                           esac
22457                         fi
22458                       fi
22459                       if test -z "$haveit"; then
22460                         haveit=
22461                         for x in $LDFLAGS $LIBGLIB_2_0; do
22462
22463   acl_save_prefix="$prefix"
22464   prefix="$acl_final_prefix"
22465   acl_save_exec_prefix="$exec_prefix"
22466   exec_prefix="$acl_final_exec_prefix"
22467   eval x=\"$x\"
22468   exec_prefix="$acl_save_exec_prefix"
22469   prefix="$acl_save_prefix"
22470
22471                           if test "X$x" = "X-L$additional_libdir"; then
22472                             haveit=yes
22473                             break
22474                           fi
22475                         done
22476                         if test -z "$haveit"; then
22477                           if test -d "$additional_libdir"; then
22478                                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$additional_libdir"
22479                           fi
22480                         fi
22481                         haveit=
22482                         for x in $LDFLAGS $LTLIBGLIB_2_0; do
22483
22484   acl_save_prefix="$prefix"
22485   prefix="$acl_final_prefix"
22486   acl_save_exec_prefix="$exec_prefix"
22487   exec_prefix="$acl_final_exec_prefix"
22488   eval x=\"$x\"
22489   exec_prefix="$acl_save_exec_prefix"
22490   prefix="$acl_save_prefix"
22491
22492                           if test "X$x" = "X-L$additional_libdir"; then
22493                             haveit=yes
22494                             break
22495                           fi
22496                         done
22497                         if test -z "$haveit"; then
22498                           if test -d "$additional_libdir"; then
22499                                                         LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$additional_libdir"
22500                           fi
22501                         fi
22502                       fi
22503                     fi
22504                     ;;
22505                   -R*)
22506                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
22507                     if test "$enable_rpath" != no; then
22508                                                                   haveit=
22509                       for x in $rpathdirs; do
22510                         if test "X$x" = "X$dir"; then
22511                           haveit=yes
22512                           break
22513                         fi
22514                       done
22515                       if test -z "$haveit"; then
22516                         rpathdirs="$rpathdirs $dir"
22517                       fi
22518                                                                   haveit=
22519                       for x in $ltrpathdirs; do
22520                         if test "X$x" = "X$dir"; then
22521                           haveit=yes
22522                           break
22523                         fi
22524                       done
22525                       if test -z "$haveit"; then
22526                         ltrpathdirs="$ltrpathdirs $dir"
22527                       fi
22528                     fi
22529                     ;;
22530                   -l*)
22531                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22532                     ;;
22533                   *.la)
22534                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22535                     ;;
22536                   *)
22537                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$dep"
22538                     LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$dep"
22539                     ;;
22540                 esac
22541               done
22542             fi
22543           else
22544                                                             LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
22545             LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-l$name"
22546           fi
22547         fi
22548       fi
22549     done
22550   done
22551   if test "X$rpathdirs" != "X"; then
22552     if test -n "$acl_hardcode_libdir_separator"; then
22553                         alldirs=
22554       for found_dir in $rpathdirs; do
22555         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
22556       done
22557             acl_save_libdir="$libdir"
22558       libdir="$alldirs"
22559       eval flag=\"$acl_hardcode_libdir_flag_spec\"
22560       libdir="$acl_save_libdir"
22561       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
22562     else
22563             for found_dir in $rpathdirs; do
22564         acl_save_libdir="$libdir"
22565         libdir="$found_dir"
22566         eval flag=\"$acl_hardcode_libdir_flag_spec\"
22567         libdir="$acl_save_libdir"
22568         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
22569       done
22570     fi
22571   fi
22572   if test "X$ltrpathdirs" != "X"; then
22573             for found_dir in $ltrpathdirs; do
22574       LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-R$found_dir"
22575     done
22576   fi
22577
22578
22579
22580
22581
22582
22583       LIBS="$gl_save_LIBS $LIBGLIB_2_0"
22584       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22585 /* end confdefs.h.  */
22586 #include <glib.h>
22587 #ifndef G_BEGIN_DECLS
22588 error this glib.h includes a glibconfig.h from a glib version 1.x
22589 #endif
22590
22591 int
22592 main ()
22593 {
22594 g_string_new ("foo");
22595   ;
22596   return 0;
22597 }
22598 _ACEOF
22599 if ac_fn_c_try_link "$LINENO"; then :
22600   gl_cv_libglib=yes
22601          gl_cv_LIBGLIB="$LIBGLIB_2_0"
22602          gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
22603
22604 fi
22605 rm -f core conftest.err conftest.$ac_objext \
22606     conftest$ac_exeext conftest.$ac_ext
22607       if test "$gl_cv_libglib" != yes; then
22608         gl_save_CPPFLAGS="$CPPFLAGS"
22609         CPPFLAGS="$CPPFLAGS $INCGLIB_2_0"
22610         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22611 /* end confdefs.h.  */
22612 #include <glib.h>
22613 #ifndef G_BEGIN_DECLS
22614 error this glib.h includes a glibconfig.h from a glib version 1.x
22615 #endif
22616
22617 int
22618 main ()
22619 {
22620 g_string_new ("foo");
22621   ;
22622   return 0;
22623 }
22624 _ACEOF
22625 if ac_fn_c_try_link "$LINENO"; then :
22626   gl_cv_libglib=yes
22627            gl_cv_LIBGLIB="$LIBGLIB_2_0"
22628            gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
22629            gl_cv_INCGLIB="$INCGLIB_2_0"
22630
22631 fi
22632 rm -f core conftest.err conftest.$ac_objext \
22633     conftest$ac_exeext conftest.$ac_ext
22634         if test "$gl_cv_libglib" != yes; then
22635                               if test -n "$LIBGLIB_2_0_PREFIX"; then
22636             CPPFLAGS="$gl_save_CPPFLAGS -I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
22637             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22638 /* end confdefs.h.  */
22639 #include <glib.h>
22640 #ifndef G_BEGIN_DECLS
22641 error this glib.h includes a glibconfig.h from a glib version 1.x
22642 #endif
22643
22644 int
22645 main ()
22646 {
22647 g_string_new ("foo");
22648   ;
22649   return 0;
22650 }
22651 _ACEOF
22652 if ac_fn_c_try_link "$LINENO"; then :
22653   gl_cv_libglib=yes
22654                gl_cv_LIBGLIB="$LIBGLIB_2_0"
22655                gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
22656                gl_cv_INCGLIB="-I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
22657
22658 fi
22659 rm -f core conftest.err conftest.$ac_objext \
22660     conftest$ac_exeext conftest.$ac_ext
22661           fi
22662         fi
22663         CPPFLAGS="$gl_save_CPPFLAGS"
22664       fi
22665       LIBS="$gl_save_LIBS"
22666
22667 fi
22668
22669     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib" >&5
22670 $as_echo_n "checking for glib... " >&6; }
22671     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib" >&5
22672 $as_echo "$gl_cv_libglib" >&6; }
22673     if test $gl_cv_libglib = yes; then
22674       LIBGLIB="$gl_cv_LIBGLIB"
22675       LTLIBGLIB="$gl_cv_LTLIBGLIB"
22676       INCGLIB="$gl_cv_INCGLIB"
22677     else
22678       gl_cv_libglib_use_included=yes
22679     fi
22680   fi
22681
22682
22683
22684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included glib" >&5
22685 $as_echo_n "checking whether to use the included glib... " >&6; }
22686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_use_included" >&5
22687 $as_echo "$gl_cv_libglib_use_included" >&6; }
22688
22689   if test "$gl_cv_libglib_use_included" = yes; then
22690     LIBGLIB_H=
22691     LIBGLIB_H="$LIBGLIB_H glib.h"
22692     LIBGLIB_H="$LIBGLIB_H glibconfig.h"
22693     LIBGLIB_H="$LIBGLIB_H glib/ghash.h"
22694     LIBGLIB_H="$LIBGLIB_H glib/glist.h"
22695     LIBGLIB_H="$LIBGLIB_H glib/gprimes.h"
22696     LIBGLIB_H="$LIBGLIB_H glib/gstrfuncs.h"
22697     LIBGLIB_H="$LIBGLIB_H glib/gstring.h"
22698     LIBGLIB_H="$LIBGLIB_H glib/gtypes.h"
22699
22700     for ac_header in unistd.h
22701 do :
22702   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
22703 if test "x$ac_cv_header_unistd_h" = x""yes; then :
22704   cat >>confdefs.h <<_ACEOF
22705 #define HAVE_UNISTD_H 1
22706 _ACEOF
22707
22708 fi
22709
22710 done
22711
22712       else
22713     LIBGLIB_H=
22714   fi
22715
22716
22717    if test "$gl_cv_libglib_use_included" = yes; then
22718   INCLUDED_LIBGLIB_TRUE=
22719   INCLUDED_LIBGLIB_FALSE='#'
22720 else
22721   INCLUDED_LIBGLIB_TRUE='#'
22722   INCLUDED_LIBGLIB_FALSE=
22723 fi
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included libunistring is requested" >&5
22738 $as_echo_n "checking whether included libunistring is requested... " >&6; }
22739
22740 # Check whether --with-included-libunistring was given.
22741 if test "${with_included_libunistring+set}" = set; then :
22742   withval=$with_included_libunistring; gl_libunistring_force_included=$withval
22743 else
22744   gl_libunistring_force_included=no
22745 fi
22746
22747       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_libunistring_force_included" >&5
22748 $as_echo "$gl_libunistring_force_included" >&6; }
22749       gl_libunistring_use_included="$gl_libunistring_force_included"
22750       if test "$gl_libunistring_use_included" = yes; then
22751                         if test -z "$HAVE_LIBUNISTRING"; then
22752           HAVE_LIBUNISTRING=no
22753         fi
22754         LIBUNISTRING=
22755         LTLIBUNISTRING=
22756       else
22757
22758
22759   if test -n "$LIBICONV"; then
22760
22761
22762
22763
22764
22765
22766
22767
22768
22769
22770
22771
22772
22773     use_additional=yes
22774
22775   acl_save_prefix="$prefix"
22776   prefix="$acl_final_prefix"
22777   acl_save_exec_prefix="$exec_prefix"
22778   exec_prefix="$acl_final_exec_prefix"
22779
22780     eval additional_includedir=\"$includedir\"
22781     eval additional_libdir=\"$libdir\"
22782
22783   exec_prefix="$acl_save_exec_prefix"
22784   prefix="$acl_save_prefix"
22785
22786
22787 # Check whether --with-libunistring-prefix was given.
22788 if test "${with_libunistring_prefix+set}" = set; then :
22789   withval=$with_libunistring_prefix;
22790     if test "X$withval" = "Xno"; then
22791       use_additional=no
22792     else
22793       if test "X$withval" = "X"; then
22794
22795   acl_save_prefix="$prefix"
22796   prefix="$acl_final_prefix"
22797   acl_save_exec_prefix="$exec_prefix"
22798   exec_prefix="$acl_final_exec_prefix"
22799
22800           eval additional_includedir=\"$includedir\"
22801           eval additional_libdir=\"$libdir\"
22802
22803   exec_prefix="$acl_save_exec_prefix"
22804   prefix="$acl_save_prefix"
22805
22806       else
22807         additional_includedir="$withval/include"
22808         additional_libdir="$withval/$acl_libdirstem"
22809         if test "$acl_libdirstem2" != "$acl_libdirstem" \
22810            && ! test -d "$withval/$acl_libdirstem"; then
22811           additional_libdir="$withval/$acl_libdirstem2"
22812         fi
22813       fi
22814     fi
22815
22816 fi
22817
22818       LIBUNISTRING=
22819   LTLIBUNISTRING=
22820   INCUNISTRING=
22821   LIBUNISTRING_PREFIX=
22822       HAVE_LIBUNISTRING=
22823   rpathdirs=
22824   ltrpathdirs=
22825   names_already_handled=
22826   names_next_round='unistring '
22827   while test -n "$names_next_round"; do
22828     names_this_round="$names_next_round"
22829     names_next_round=
22830     for name in $names_this_round; do
22831       already_handled=
22832       for n in $names_already_handled; do
22833         if test "$n" = "$name"; then
22834           already_handled=yes
22835           break
22836         fi
22837       done
22838       if test -z "$already_handled"; then
22839         names_already_handled="$names_already_handled $name"
22840                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22841         eval value=\"\$HAVE_LIB$uppername\"
22842         if test -n "$value"; then
22843           if test "$value" = yes; then
22844             eval value=\"\$LIB$uppername\"
22845             test -z "$value" || LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$value"
22846             eval value=\"\$LTLIB$uppername\"
22847             test -z "$value" || LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$value"
22848           else
22849                                     :
22850           fi
22851         else
22852                               found_dir=
22853           found_la=
22854           found_so=
22855           found_a=
22856           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
22857           if test -n "$acl_shlibext"; then
22858             shrext=".$acl_shlibext"             # typically: shrext=.so
22859           else
22860             shrext=
22861           fi
22862           if test $use_additional = yes; then
22863             dir="$additional_libdir"
22864                                     if test -n "$acl_shlibext"; then
22865               if test -f "$dir/$libname$shrext"; then
22866                 found_dir="$dir"
22867                 found_so="$dir/$libname$shrext"
22868               else
22869                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22870                   ver=`(cd "$dir" && \
22871                         for f in "$libname$shrext".*; do echo "$f"; done \
22872                         | sed -e "s,^$libname$shrext\\\\.,," \
22873                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22874                         | sed 1q ) 2>/dev/null`
22875                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22876                     found_dir="$dir"
22877                     found_so="$dir/$libname$shrext.$ver"
22878                   fi
22879                 else
22880                   eval library_names=\"$acl_library_names_spec\"
22881                   for f in $library_names; do
22882                     if test -f "$dir/$f"; then
22883                       found_dir="$dir"
22884                       found_so="$dir/$f"
22885                       break
22886                     fi
22887                   done
22888                 fi
22889               fi
22890             fi
22891                         if test "X$found_dir" = "X"; then
22892               if test -f "$dir/$libname.$acl_libext"; then
22893                 found_dir="$dir"
22894                 found_a="$dir/$libname.$acl_libext"
22895               fi
22896             fi
22897             if test "X$found_dir" != "X"; then
22898               if test -f "$dir/$libname.la"; then
22899                 found_la="$dir/$libname.la"
22900               fi
22901             fi
22902           fi
22903           if test "X$found_dir" = "X"; then
22904             for x in $LDFLAGS $LTLIBUNISTRING; do
22905
22906   acl_save_prefix="$prefix"
22907   prefix="$acl_final_prefix"
22908   acl_save_exec_prefix="$exec_prefix"
22909   exec_prefix="$acl_final_exec_prefix"
22910   eval x=\"$x\"
22911   exec_prefix="$acl_save_exec_prefix"
22912   prefix="$acl_save_prefix"
22913
22914               case "$x" in
22915                 -L*)
22916                   dir=`echo "X$x" | sed -e 's/^X-L//'`
22917                                     if test -n "$acl_shlibext"; then
22918                     if test -f "$dir/$libname$shrext"; then
22919                       found_dir="$dir"
22920                       found_so="$dir/$libname$shrext"
22921                     else
22922                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22923                         ver=`(cd "$dir" && \
22924                               for f in "$libname$shrext".*; do echo "$f"; done \
22925                               | sed -e "s,^$libname$shrext\\\\.,," \
22926                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22927                               | sed 1q ) 2>/dev/null`
22928                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22929                           found_dir="$dir"
22930                           found_so="$dir/$libname$shrext.$ver"
22931                         fi
22932                       else
22933                         eval library_names=\"$acl_library_names_spec\"
22934                         for f in $library_names; do
22935                           if test -f "$dir/$f"; then
22936                             found_dir="$dir"
22937                             found_so="$dir/$f"
22938                             break
22939                           fi
22940                         done
22941                       fi
22942                     fi
22943                   fi
22944                                     if test "X$found_dir" = "X"; then
22945                     if test -f "$dir/$libname.$acl_libext"; then
22946                       found_dir="$dir"
22947                       found_a="$dir/$libname.$acl_libext"
22948                     fi
22949                   fi
22950                   if test "X$found_dir" != "X"; then
22951                     if test -f "$dir/$libname.la"; then
22952                       found_la="$dir/$libname.la"
22953                     fi
22954                   fi
22955                   ;;
22956               esac
22957               if test "X$found_dir" != "X"; then
22958                 break
22959               fi
22960             done
22961           fi
22962           if test "X$found_dir" != "X"; then
22963                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$found_dir -l$name"
22964             if test "X$found_so" != "X"; then
22965                                                         if test "$enable_rpath" = no \
22966                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
22967                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
22968                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
22969               else
22970                                                                                 haveit=
22971                 for x in $ltrpathdirs; do
22972                   if test "X$x" = "X$found_dir"; then
22973                     haveit=yes
22974                     break
22975                   fi
22976                 done
22977                 if test -z "$haveit"; then
22978                   ltrpathdirs="$ltrpathdirs $found_dir"
22979                 fi
22980                                 if test "$acl_hardcode_direct" = yes; then
22981                                                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
22982                 else
22983                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
22984                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
22985                                                             haveit=
22986                     for x in $rpathdirs; do
22987                       if test "X$x" = "X$found_dir"; then
22988                         haveit=yes
22989                         break
22990                       fi
22991                     done
22992                     if test -z "$haveit"; then
22993                       rpathdirs="$rpathdirs $found_dir"
22994                     fi
22995                   else
22996                                                                                 haveit=
22997                     for x in $LDFLAGS $LIBUNISTRING; do
22998
22999   acl_save_prefix="$prefix"
23000   prefix="$acl_final_prefix"
23001   acl_save_exec_prefix="$exec_prefix"
23002   exec_prefix="$acl_final_exec_prefix"
23003   eval x=\"$x\"
23004   exec_prefix="$acl_save_exec_prefix"
23005   prefix="$acl_save_prefix"
23006
23007                       if test "X$x" = "X-L$found_dir"; then
23008                         haveit=yes
23009                         break
23010                       fi
23011                     done
23012                     if test -z "$haveit"; then
23013                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir"
23014                     fi
23015                     if test "$acl_hardcode_minus_L" != no; then
23016                                                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
23017                     else
23018                                                                                                                                                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
23019                     fi
23020                   fi
23021                 fi
23022               fi
23023             else
23024               if test "X$found_a" != "X"; then
23025                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_a"
23026               else
23027                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir -l$name"
23028               fi
23029             fi
23030                         additional_includedir=
23031             case "$found_dir" in
23032               */$acl_libdirstem | */$acl_libdirstem/)
23033                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
23034                 if test "$name" = 'unistring'; then
23035                   LIBUNISTRING_PREFIX="$basedir"
23036                 fi
23037                 additional_includedir="$basedir/include"
23038                 ;;
23039               */$acl_libdirstem2 | */$acl_libdirstem2/)
23040                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
23041                 if test "$name" = 'unistring'; then
23042                   LIBUNISTRING_PREFIX="$basedir"
23043                 fi
23044                 additional_includedir="$basedir/include"
23045                 ;;
23046             esac
23047             if test "X$additional_includedir" != "X"; then
23048                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23049                 haveit=
23050                 if test "X$additional_includedir" = "X/usr/local/include"; then
23051                   if test -n "$GCC"; then
23052                     case $host_os in
23053                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23054                     esac
23055                   fi
23056                 fi
23057                 if test -z "$haveit"; then
23058                   for x in $CPPFLAGS $INCUNISTRING; do
23059
23060   acl_save_prefix="$prefix"
23061   prefix="$acl_final_prefix"
23062   acl_save_exec_prefix="$exec_prefix"
23063   exec_prefix="$acl_final_exec_prefix"
23064   eval x=\"$x\"
23065   exec_prefix="$acl_save_exec_prefix"
23066   prefix="$acl_save_prefix"
23067
23068                     if test "X$x" = "X-I$additional_includedir"; then
23069                       haveit=yes
23070                       break
23071                     fi
23072                   done
23073                   if test -z "$haveit"; then
23074                     if test -d "$additional_includedir"; then
23075                                             INCUNISTRING="${INCUNISTRING}${INCUNISTRING:+ }-I$additional_includedir"
23076                     fi
23077                   fi
23078                 fi
23079               fi
23080             fi
23081                         if test -n "$found_la"; then
23082                                                         save_libdir="$libdir"
23083               case "$found_la" in
23084                 */* | *\\*) . "$found_la" ;;
23085                 *) . "./$found_la" ;;
23086               esac
23087               libdir="$save_libdir"
23088                             for dep in $dependency_libs; do
23089                 case "$dep" in
23090                   -L*)
23091                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23092                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
23093                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
23094                       haveit=
23095                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
23096                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
23097                         if test -n "$GCC"; then
23098                           case $host_os in
23099                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23100                           esac
23101                         fi
23102                       fi
23103                       if test -z "$haveit"; then
23104                         haveit=
23105                         for x in $LDFLAGS $LIBUNISTRING; do
23106
23107   acl_save_prefix="$prefix"
23108   prefix="$acl_final_prefix"
23109   acl_save_exec_prefix="$exec_prefix"
23110   exec_prefix="$acl_final_exec_prefix"
23111   eval x=\"$x\"
23112   exec_prefix="$acl_save_exec_prefix"
23113   prefix="$acl_save_prefix"
23114
23115                           if test "X$x" = "X-L$additional_libdir"; then
23116                             haveit=yes
23117                             break
23118                           fi
23119                         done
23120                         if test -z "$haveit"; then
23121                           if test -d "$additional_libdir"; then
23122                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$additional_libdir"
23123                           fi
23124                         fi
23125                         haveit=
23126                         for x in $LDFLAGS $LTLIBUNISTRING; do
23127
23128   acl_save_prefix="$prefix"
23129   prefix="$acl_final_prefix"
23130   acl_save_exec_prefix="$exec_prefix"
23131   exec_prefix="$acl_final_exec_prefix"
23132   eval x=\"$x\"
23133   exec_prefix="$acl_save_exec_prefix"
23134   prefix="$acl_save_prefix"
23135
23136                           if test "X$x" = "X-L$additional_libdir"; then
23137                             haveit=yes
23138                             break
23139                           fi
23140                         done
23141                         if test -z "$haveit"; then
23142                           if test -d "$additional_libdir"; then
23143                                                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$additional_libdir"
23144                           fi
23145                         fi
23146                       fi
23147                     fi
23148                     ;;
23149                   -R*)
23150                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23151                     if test "$enable_rpath" != no; then
23152                                                                   haveit=
23153                       for x in $rpathdirs; do
23154                         if test "X$x" = "X$dir"; then
23155                           haveit=yes
23156                           break
23157                         fi
23158                       done
23159                       if test -z "$haveit"; then
23160                         rpathdirs="$rpathdirs $dir"
23161                       fi
23162                                                                   haveit=
23163                       for x in $ltrpathdirs; do
23164                         if test "X$x" = "X$dir"; then
23165                           haveit=yes
23166                           break
23167                         fi
23168                       done
23169                       if test -z "$haveit"; then
23170                         ltrpathdirs="$ltrpathdirs $dir"
23171                       fi
23172                     fi
23173                     ;;
23174                   -l*)
23175                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23176                     ;;
23177                   *.la)
23178                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23179                     ;;
23180                   *)
23181                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$dep"
23182                     LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$dep"
23183                     ;;
23184                 esac
23185               done
23186             fi
23187           else
23188                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
23189             LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-l$name"
23190           fi
23191         fi
23192       fi
23193     done
23194   done
23195   if test "X$rpathdirs" != "X"; then
23196     if test -n "$acl_hardcode_libdir_separator"; then
23197                         alldirs=
23198       for found_dir in $rpathdirs; do
23199         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
23200       done
23201             acl_save_libdir="$libdir"
23202       libdir="$alldirs"
23203       eval flag=\"$acl_hardcode_libdir_flag_spec\"
23204       libdir="$acl_save_libdir"
23205       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
23206     else
23207             for found_dir in $rpathdirs; do
23208         acl_save_libdir="$libdir"
23209         libdir="$found_dir"
23210         eval flag=\"$acl_hardcode_libdir_flag_spec\"
23211         libdir="$acl_save_libdir"
23212         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
23213       done
23214     fi
23215   fi
23216   if test "X$ltrpathdirs" != "X"; then
23217             for found_dir in $ltrpathdirs; do
23218       LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-R$found_dir"
23219     done
23220   fi
23221
23222
23223
23224
23225
23226
23227
23228         ac_save_CPPFLAGS="$CPPFLAGS"
23229
23230   for element in $INCUNISTRING; do
23231     haveit=
23232     for x in $CPPFLAGS; do
23233
23234   acl_save_prefix="$prefix"
23235   prefix="$acl_final_prefix"
23236   acl_save_exec_prefix="$exec_prefix"
23237   exec_prefix="$acl_final_exec_prefix"
23238   eval x=\"$x\"
23239   exec_prefix="$acl_save_exec_prefix"
23240   prefix="$acl_save_prefix"
23241
23242       if test "X$x" = "X$element"; then
23243         haveit=yes
23244         break
23245       fi
23246     done
23247     if test -z "$haveit"; then
23248       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23249     fi
23250   done
23251
23252
23253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring" >&5
23254 $as_echo_n "checking for libunistring... " >&6; }
23255 if test "${ac_cv_libunistring+set}" = set; then :
23256   $as_echo_n "(cached) " >&6
23257 else
23258
23259     ac_save_LIBS="$LIBS"
23260                                 case " $LIBUNISTRING" in
23261       *" -l"*) LIBS="$LIBS $LIBUNISTRING" ;;
23262       *)       LIBS="$LIBUNISTRING $LIBS" ;;
23263     esac
23264     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23265 /* end confdefs.h.  */
23266 #include <uniconv.h>
23267 int
23268 main ()
23269 {
23270 u8_strconv_from_locale((char*)0);
23271   ;
23272   return 0;
23273 }
23274 _ACEOF
23275 if ac_fn_c_try_link "$LINENO"; then :
23276   ac_cv_libunistring=yes
23277 else
23278   ac_cv_libunistring='no, trying again together with libiconv'
23279 fi
23280 rm -f core conftest.err conftest.$ac_objext \
23281     conftest$ac_exeext conftest.$ac_ext
23282     LIBS="$ac_save_LIBS"
23283
23284 fi
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libunistring" >&5
23286 $as_echo "$ac_cv_libunistring" >&6; }
23287   if test "$ac_cv_libunistring" = yes; then
23288     HAVE_LIBUNISTRING=yes
23289
23290 $as_echo "#define HAVE_LIBUNISTRING 1" >>confdefs.h
23291
23292     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libunistring" >&5
23293 $as_echo_n "checking how to link with libunistring... " >&6; }
23294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUNISTRING" >&5
23295 $as_echo "$LIBUNISTRING" >&6; }
23296   else
23297     HAVE_LIBUNISTRING=no
23298             CPPFLAGS="$ac_save_CPPFLAGS"
23299     LIBUNISTRING=
23300     LTLIBUNISTRING=
23301     LIBUNISTRING_PREFIX=
23302   fi
23303
23304
23305
23306
23307
23308
23309
23310     if test "$ac_cv_libunistring" != yes; then
23311                         unset ac_cv_libunistring
23312       glus_save_LIBS="$LIBS"
23313       LIBS="$LIBS $LIBICONV"
23314
23315
23316
23317
23318
23319
23320
23321
23322
23323
23324
23325
23326
23327     use_additional=yes
23328
23329   acl_save_prefix="$prefix"
23330   prefix="$acl_final_prefix"
23331   acl_save_exec_prefix="$exec_prefix"
23332   exec_prefix="$acl_final_exec_prefix"
23333
23334     eval additional_includedir=\"$includedir\"
23335     eval additional_libdir=\"$libdir\"
23336
23337   exec_prefix="$acl_save_exec_prefix"
23338   prefix="$acl_save_prefix"
23339
23340
23341 # Check whether --with-libunistring-prefix was given.
23342 if test "${with_libunistring_prefix+set}" = set; then :
23343   withval=$with_libunistring_prefix;
23344     if test "X$withval" = "Xno"; then
23345       use_additional=no
23346     else
23347       if test "X$withval" = "X"; then
23348
23349   acl_save_prefix="$prefix"
23350   prefix="$acl_final_prefix"
23351   acl_save_exec_prefix="$exec_prefix"
23352   exec_prefix="$acl_final_exec_prefix"
23353
23354           eval additional_includedir=\"$includedir\"
23355           eval additional_libdir=\"$libdir\"
23356
23357   exec_prefix="$acl_save_exec_prefix"
23358   prefix="$acl_save_prefix"
23359
23360       else
23361         additional_includedir="$withval/include"
23362         additional_libdir="$withval/$acl_libdirstem"
23363         if test "$acl_libdirstem2" != "$acl_libdirstem" \
23364            && ! test -d "$withval/$acl_libdirstem"; then
23365           additional_libdir="$withval/$acl_libdirstem2"
23366         fi
23367       fi
23368     fi
23369
23370 fi
23371
23372       LIBUNISTRING=
23373   LTLIBUNISTRING=
23374   INCUNISTRING=
23375   LIBUNISTRING_PREFIX=
23376       HAVE_LIBUNISTRING=
23377   rpathdirs=
23378   ltrpathdirs=
23379   names_already_handled=
23380   names_next_round='unistring '
23381   while test -n "$names_next_round"; do
23382     names_this_round="$names_next_round"
23383     names_next_round=
23384     for name in $names_this_round; do
23385       already_handled=
23386       for n in $names_already_handled; do
23387         if test "$n" = "$name"; then
23388           already_handled=yes
23389           break
23390         fi
23391       done
23392       if test -z "$already_handled"; then
23393         names_already_handled="$names_already_handled $name"
23394                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23395         eval value=\"\$HAVE_LIB$uppername\"
23396         if test -n "$value"; then
23397           if test "$value" = yes; then
23398             eval value=\"\$LIB$uppername\"
23399             test -z "$value" || LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$value"
23400             eval value=\"\$LTLIB$uppername\"
23401             test -z "$value" || LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$value"
23402           else
23403                                     :
23404           fi
23405         else
23406                               found_dir=
23407           found_la=
23408           found_so=
23409           found_a=
23410           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
23411           if test -n "$acl_shlibext"; then
23412             shrext=".$acl_shlibext"             # typically: shrext=.so
23413           else
23414             shrext=
23415           fi
23416           if test $use_additional = yes; then
23417             dir="$additional_libdir"
23418                                     if test -n "$acl_shlibext"; then
23419               if test -f "$dir/$libname$shrext"; then
23420                 found_dir="$dir"
23421                 found_so="$dir/$libname$shrext"
23422               else
23423                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23424                   ver=`(cd "$dir" && \
23425                         for f in "$libname$shrext".*; do echo "$f"; done \
23426                         | sed -e "s,^$libname$shrext\\\\.,," \
23427                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23428                         | sed 1q ) 2>/dev/null`
23429                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
23430                     found_dir="$dir"
23431                     found_so="$dir/$libname$shrext.$ver"
23432                   fi
23433                 else
23434                   eval library_names=\"$acl_library_names_spec\"
23435                   for f in $library_names; do
23436                     if test -f "$dir/$f"; then
23437                       found_dir="$dir"
23438                       found_so="$dir/$f"
23439                       break
23440                     fi
23441                   done
23442                 fi
23443               fi
23444             fi
23445                         if test "X$found_dir" = "X"; then
23446               if test -f "$dir/$libname.$acl_libext"; then
23447                 found_dir="$dir"
23448                 found_a="$dir/$libname.$acl_libext"
23449               fi
23450             fi
23451             if test "X$found_dir" != "X"; then
23452               if test -f "$dir/$libname.la"; then
23453                 found_la="$dir/$libname.la"
23454               fi
23455             fi
23456           fi
23457           if test "X$found_dir" = "X"; then
23458             for x in $LDFLAGS $LTLIBUNISTRING; do
23459
23460   acl_save_prefix="$prefix"
23461   prefix="$acl_final_prefix"
23462   acl_save_exec_prefix="$exec_prefix"
23463   exec_prefix="$acl_final_exec_prefix"
23464   eval x=\"$x\"
23465   exec_prefix="$acl_save_exec_prefix"
23466   prefix="$acl_save_prefix"
23467
23468               case "$x" in
23469                 -L*)
23470                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23471                                     if test -n "$acl_shlibext"; then
23472                     if test -f "$dir/$libname$shrext"; then
23473                       found_dir="$dir"
23474                       found_so="$dir/$libname$shrext"
23475                     else
23476                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23477                         ver=`(cd "$dir" && \
23478                               for f in "$libname$shrext".*; do echo "$f"; done \
23479                               | sed -e "s,^$libname$shrext\\\\.,," \
23480                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23481                               | sed 1q ) 2>/dev/null`
23482                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
23483                           found_dir="$dir"
23484                           found_so="$dir/$libname$shrext.$ver"
23485                         fi
23486                       else
23487                         eval library_names=\"$acl_library_names_spec\"
23488                         for f in $library_names; do
23489                           if test -f "$dir/$f"; then
23490                             found_dir="$dir"
23491                             found_so="$dir/$f"
23492                             break
23493                           fi
23494                         done
23495                       fi
23496                     fi
23497                   fi
23498                                     if test "X$found_dir" = "X"; then
23499                     if test -f "$dir/$libname.$acl_libext"; then
23500                       found_dir="$dir"
23501                       found_a="$dir/$libname.$acl_libext"
23502                     fi
23503                   fi
23504                   if test "X$found_dir" != "X"; then
23505                     if test -f "$dir/$libname.la"; then
23506                       found_la="$dir/$libname.la"
23507                     fi
23508                   fi
23509                   ;;
23510               esac
23511               if test "X$found_dir" != "X"; then
23512                 break
23513               fi
23514             done
23515           fi
23516           if test "X$found_dir" != "X"; then
23517                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$found_dir -l$name"
23518             if test "X$found_so" != "X"; then
23519                                                         if test "$enable_rpath" = no \
23520                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
23521                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
23522                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
23523               else
23524                                                                                 haveit=
23525                 for x in $ltrpathdirs; do
23526                   if test "X$x" = "X$found_dir"; then
23527                     haveit=yes
23528                     break
23529                   fi
23530                 done
23531                 if test -z "$haveit"; then
23532                   ltrpathdirs="$ltrpathdirs $found_dir"
23533                 fi
23534                                 if test "$acl_hardcode_direct" = yes; then
23535                                                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
23536                 else
23537                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
23538                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
23539                                                             haveit=
23540                     for x in $rpathdirs; do
23541                       if test "X$x" = "X$found_dir"; then
23542                         haveit=yes
23543                         break
23544                       fi
23545                     done
23546                     if test -z "$haveit"; then
23547                       rpathdirs="$rpathdirs $found_dir"
23548                     fi
23549                   else
23550                                                                                 haveit=
23551                     for x in $LDFLAGS $LIBUNISTRING; do
23552
23553   acl_save_prefix="$prefix"
23554   prefix="$acl_final_prefix"
23555   acl_save_exec_prefix="$exec_prefix"
23556   exec_prefix="$acl_final_exec_prefix"
23557   eval x=\"$x\"
23558   exec_prefix="$acl_save_exec_prefix"
23559   prefix="$acl_save_prefix"
23560
23561                       if test "X$x" = "X-L$found_dir"; then
23562                         haveit=yes
23563                         break
23564                       fi
23565                     done
23566                     if test -z "$haveit"; then
23567                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir"
23568                     fi
23569                     if test "$acl_hardcode_minus_L" != no; then
23570                                                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
23571                     else
23572                                                                                                                                                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
23573                     fi
23574                   fi
23575                 fi
23576               fi
23577             else
23578               if test "X$found_a" != "X"; then
23579                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_a"
23580               else
23581                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir -l$name"
23582               fi
23583             fi
23584                         additional_includedir=
23585             case "$found_dir" in
23586               */$acl_libdirstem | */$acl_libdirstem/)
23587                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
23588                 if test "$name" = 'unistring'; then
23589                   LIBUNISTRING_PREFIX="$basedir"
23590                 fi
23591                 additional_includedir="$basedir/include"
23592                 ;;
23593               */$acl_libdirstem2 | */$acl_libdirstem2/)
23594                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
23595                 if test "$name" = 'unistring'; then
23596                   LIBUNISTRING_PREFIX="$basedir"
23597                 fi
23598                 additional_includedir="$basedir/include"
23599                 ;;
23600             esac
23601             if test "X$additional_includedir" != "X"; then
23602                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23603                 haveit=
23604                 if test "X$additional_includedir" = "X/usr/local/include"; then
23605                   if test -n "$GCC"; then
23606                     case $host_os in
23607                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23608                     esac
23609                   fi
23610                 fi
23611                 if test -z "$haveit"; then
23612                   for x in $CPPFLAGS $INCUNISTRING; do
23613
23614   acl_save_prefix="$prefix"
23615   prefix="$acl_final_prefix"
23616   acl_save_exec_prefix="$exec_prefix"
23617   exec_prefix="$acl_final_exec_prefix"
23618   eval x=\"$x\"
23619   exec_prefix="$acl_save_exec_prefix"
23620   prefix="$acl_save_prefix"
23621
23622                     if test "X$x" = "X-I$additional_includedir"; then
23623                       haveit=yes
23624                       break
23625                     fi
23626                   done
23627                   if test -z "$haveit"; then
23628                     if test -d "$additional_includedir"; then
23629                                             INCUNISTRING="${INCUNISTRING}${INCUNISTRING:+ }-I$additional_includedir"
23630                     fi
23631                   fi
23632                 fi
23633               fi
23634             fi
23635                         if test -n "$found_la"; then
23636                                                         save_libdir="$libdir"
23637               case "$found_la" in
23638                 */* | *\\*) . "$found_la" ;;
23639                 *) . "./$found_la" ;;
23640               esac
23641               libdir="$save_libdir"
23642                             for dep in $dependency_libs; do
23643                 case "$dep" in
23644                   -L*)
23645                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23646                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
23647                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
23648                       haveit=
23649                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
23650                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
23651                         if test -n "$GCC"; then
23652                           case $host_os in
23653                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23654                           esac
23655                         fi
23656                       fi
23657                       if test -z "$haveit"; then
23658                         haveit=
23659                         for x in $LDFLAGS $LIBUNISTRING; do
23660
23661   acl_save_prefix="$prefix"
23662   prefix="$acl_final_prefix"
23663   acl_save_exec_prefix="$exec_prefix"
23664   exec_prefix="$acl_final_exec_prefix"
23665   eval x=\"$x\"
23666   exec_prefix="$acl_save_exec_prefix"
23667   prefix="$acl_save_prefix"
23668
23669                           if test "X$x" = "X-L$additional_libdir"; then
23670                             haveit=yes
23671                             break
23672                           fi
23673                         done
23674                         if test -z "$haveit"; then
23675                           if test -d "$additional_libdir"; then
23676                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$additional_libdir"
23677                           fi
23678                         fi
23679                         haveit=
23680                         for x in $LDFLAGS $LTLIBUNISTRING; do
23681
23682   acl_save_prefix="$prefix"
23683   prefix="$acl_final_prefix"
23684   acl_save_exec_prefix="$exec_prefix"
23685   exec_prefix="$acl_final_exec_prefix"
23686   eval x=\"$x\"
23687   exec_prefix="$acl_save_exec_prefix"
23688   prefix="$acl_save_prefix"
23689
23690                           if test "X$x" = "X-L$additional_libdir"; then
23691                             haveit=yes
23692                             break
23693                           fi
23694                         done
23695                         if test -z "$haveit"; then
23696                           if test -d "$additional_libdir"; then
23697                                                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$additional_libdir"
23698                           fi
23699                         fi
23700                       fi
23701                     fi
23702                     ;;
23703                   -R*)
23704                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23705                     if test "$enable_rpath" != no; then
23706                                                                   haveit=
23707                       for x in $rpathdirs; do
23708                         if test "X$x" = "X$dir"; then
23709                           haveit=yes
23710                           break
23711                         fi
23712                       done
23713                       if test -z "$haveit"; then
23714                         rpathdirs="$rpathdirs $dir"
23715                       fi
23716                                                                   haveit=
23717                       for x in $ltrpathdirs; do
23718                         if test "X$x" = "X$dir"; then
23719                           haveit=yes
23720                           break
23721                         fi
23722                       done
23723                       if test -z "$haveit"; then
23724                         ltrpathdirs="$ltrpathdirs $dir"
23725                       fi
23726                     fi
23727                     ;;
23728                   -l*)
23729                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23730                     ;;
23731                   *.la)
23732                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23733                     ;;
23734                   *)
23735                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$dep"
23736                     LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$dep"
23737                     ;;
23738                 esac
23739               done
23740             fi
23741           else
23742                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
23743             LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-l$name"
23744           fi
23745         fi
23746       fi
23747     done
23748   done
23749   if test "X$rpathdirs" != "X"; then
23750     if test -n "$acl_hardcode_libdir_separator"; then
23751                         alldirs=
23752       for found_dir in $rpathdirs; do
23753         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
23754       done
23755             acl_save_libdir="$libdir"
23756       libdir="$alldirs"
23757       eval flag=\"$acl_hardcode_libdir_flag_spec\"
23758       libdir="$acl_save_libdir"
23759       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
23760     else
23761             for found_dir in $rpathdirs; do
23762         acl_save_libdir="$libdir"
23763         libdir="$found_dir"
23764         eval flag=\"$acl_hardcode_libdir_flag_spec\"
23765         libdir="$acl_save_libdir"
23766         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
23767       done
23768     fi
23769   fi
23770   if test "X$ltrpathdirs" != "X"; then
23771             for found_dir in $ltrpathdirs; do
23772       LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-R$found_dir"
23773     done
23774   fi
23775
23776
23777
23778
23779
23780
23781
23782         ac_save_CPPFLAGS="$CPPFLAGS"
23783
23784   for element in $INCUNISTRING; do
23785     haveit=
23786     for x in $CPPFLAGS; do
23787
23788   acl_save_prefix="$prefix"
23789   prefix="$acl_final_prefix"
23790   acl_save_exec_prefix="$exec_prefix"
23791   exec_prefix="$acl_final_exec_prefix"
23792   eval x=\"$x\"
23793   exec_prefix="$acl_save_exec_prefix"
23794   prefix="$acl_save_prefix"
23795
23796       if test "X$x" = "X$element"; then
23797         haveit=yes
23798         break
23799       fi
23800     done
23801     if test -z "$haveit"; then
23802       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23803     fi
23804   done
23805
23806
23807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring" >&5
23808 $as_echo_n "checking for libunistring... " >&6; }
23809 if test "${ac_cv_libunistring+set}" = set; then :
23810   $as_echo_n "(cached) " >&6
23811 else
23812
23813     ac_save_LIBS="$LIBS"
23814                                 case " $LIBUNISTRING" in
23815       *" -l"*) LIBS="$LIBS $LIBUNISTRING" ;;
23816       *)       LIBS="$LIBUNISTRING $LIBS" ;;
23817     esac
23818     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23819 /* end confdefs.h.  */
23820 #include <uniconv.h>
23821 int
23822 main ()
23823 {
23824 u8_strconv_from_locale((char*)0);
23825   ;
23826   return 0;
23827 }
23828 _ACEOF
23829 if ac_fn_c_try_link "$LINENO"; then :
23830   ac_cv_libunistring=yes
23831 else
23832   ac_cv_libunistring='no, consider installing GNU libunistring'
23833 fi
23834 rm -f core conftest.err conftest.$ac_objext \
23835     conftest$ac_exeext conftest.$ac_ext
23836     LIBS="$ac_save_LIBS"
23837
23838 fi
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libunistring" >&5
23840 $as_echo "$ac_cv_libunistring" >&6; }
23841   if test "$ac_cv_libunistring" = yes; then
23842     HAVE_LIBUNISTRING=yes
23843
23844 $as_echo "#define HAVE_LIBUNISTRING 1" >>confdefs.h
23845
23846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libunistring" >&5
23847 $as_echo_n "checking how to link with libunistring... " >&6; }
23848     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUNISTRING" >&5
23849 $as_echo "$LIBUNISTRING" >&6; }
23850   else
23851     HAVE_LIBUNISTRING=no
23852             CPPFLAGS="$ac_save_CPPFLAGS"
23853     LIBUNISTRING=
23854     LTLIBUNISTRING=
23855     LIBUNISTRING_PREFIX=
23856   fi
23857
23858
23859
23860
23861
23862
23863
23864       if test -n "$LIBUNISTRING"; then
23865         LIBUNISTRING="$LIBUNISTRING $LIBICONV"
23866         LTLIBUNISTRING="$LTLIBUNISTRING $LTLIBICONV"
23867       fi
23868       LIBS="$glus_save_LIBS"
23869     fi
23870   else
23871
23872
23873
23874
23875
23876
23877
23878
23879
23880
23881
23882
23883
23884     use_additional=yes
23885
23886   acl_save_prefix="$prefix"
23887   prefix="$acl_final_prefix"
23888   acl_save_exec_prefix="$exec_prefix"
23889   exec_prefix="$acl_final_exec_prefix"
23890
23891     eval additional_includedir=\"$includedir\"
23892     eval additional_libdir=\"$libdir\"
23893
23894   exec_prefix="$acl_save_exec_prefix"
23895   prefix="$acl_save_prefix"
23896
23897
23898 # Check whether --with-libunistring-prefix was given.
23899 if test "${with_libunistring_prefix+set}" = set; then :
23900   withval=$with_libunistring_prefix;
23901     if test "X$withval" = "Xno"; then
23902       use_additional=no
23903     else
23904       if test "X$withval" = "X"; then
23905
23906   acl_save_prefix="$prefix"
23907   prefix="$acl_final_prefix"
23908   acl_save_exec_prefix="$exec_prefix"
23909   exec_prefix="$acl_final_exec_prefix"
23910
23911           eval additional_includedir=\"$includedir\"
23912           eval additional_libdir=\"$libdir\"
23913
23914   exec_prefix="$acl_save_exec_prefix"
23915   prefix="$acl_save_prefix"
23916
23917       else
23918         additional_includedir="$withval/include"
23919         additional_libdir="$withval/$acl_libdirstem"
23920         if test "$acl_libdirstem2" != "$acl_libdirstem" \
23921            && ! test -d "$withval/$acl_libdirstem"; then
23922           additional_libdir="$withval/$acl_libdirstem2"
23923         fi
23924       fi
23925     fi
23926
23927 fi
23928
23929       LIBUNISTRING=
23930   LTLIBUNISTRING=
23931   INCUNISTRING=
23932   LIBUNISTRING_PREFIX=
23933       HAVE_LIBUNISTRING=
23934   rpathdirs=
23935   ltrpathdirs=
23936   names_already_handled=
23937   names_next_round='unistring '
23938   while test -n "$names_next_round"; do
23939     names_this_round="$names_next_round"
23940     names_next_round=
23941     for name in $names_this_round; do
23942       already_handled=
23943       for n in $names_already_handled; do
23944         if test "$n" = "$name"; then
23945           already_handled=yes
23946           break
23947         fi
23948       done
23949       if test -z "$already_handled"; then
23950         names_already_handled="$names_already_handled $name"
23951                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23952         eval value=\"\$HAVE_LIB$uppername\"
23953         if test -n "$value"; then
23954           if test "$value" = yes; then
23955             eval value=\"\$LIB$uppername\"
23956             test -z "$value" || LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$value"
23957             eval value=\"\$LTLIB$uppername\"
23958             test -z "$value" || LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$value"
23959           else
23960                                     :
23961           fi
23962         else
23963                               found_dir=
23964           found_la=
23965           found_so=
23966           found_a=
23967           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
23968           if test -n "$acl_shlibext"; then
23969             shrext=".$acl_shlibext"             # typically: shrext=.so
23970           else
23971             shrext=
23972           fi
23973           if test $use_additional = yes; then
23974             dir="$additional_libdir"
23975                                     if test -n "$acl_shlibext"; then
23976               if test -f "$dir/$libname$shrext"; then
23977                 found_dir="$dir"
23978                 found_so="$dir/$libname$shrext"
23979               else
23980                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23981                   ver=`(cd "$dir" && \
23982                         for f in "$libname$shrext".*; do echo "$f"; done \
23983                         | sed -e "s,^$libname$shrext\\\\.,," \
23984                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23985                         | sed 1q ) 2>/dev/null`
23986                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
23987                     found_dir="$dir"
23988                     found_so="$dir/$libname$shrext.$ver"
23989                   fi
23990                 else
23991                   eval library_names=\"$acl_library_names_spec\"
23992                   for f in $library_names; do
23993                     if test -f "$dir/$f"; then
23994                       found_dir="$dir"
23995                       found_so="$dir/$f"
23996                       break
23997                     fi
23998                   done
23999                 fi
24000               fi
24001             fi
24002                         if test "X$found_dir" = "X"; then
24003               if test -f "$dir/$libname.$acl_libext"; then
24004                 found_dir="$dir"
24005                 found_a="$dir/$libname.$acl_libext"
24006               fi
24007             fi
24008             if test "X$found_dir" != "X"; then
24009               if test -f "$dir/$libname.la"; then
24010                 found_la="$dir/$libname.la"
24011               fi
24012             fi
24013           fi
24014           if test "X$found_dir" = "X"; then
24015             for x in $LDFLAGS $LTLIBUNISTRING; do
24016
24017   acl_save_prefix="$prefix"
24018   prefix="$acl_final_prefix"
24019   acl_save_exec_prefix="$exec_prefix"
24020   exec_prefix="$acl_final_exec_prefix"
24021   eval x=\"$x\"
24022   exec_prefix="$acl_save_exec_prefix"
24023   prefix="$acl_save_prefix"
24024
24025               case "$x" in
24026                 -L*)
24027                   dir=`echo "X$x" | sed -e 's/^X-L//'`
24028                                     if test -n "$acl_shlibext"; then
24029                     if test -f "$dir/$libname$shrext"; then
24030                       found_dir="$dir"
24031                       found_so="$dir/$libname$shrext"
24032                     else
24033                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
24034                         ver=`(cd "$dir" && \
24035                               for f in "$libname$shrext".*; do echo "$f"; done \
24036                               | sed -e "s,^$libname$shrext\\\\.,," \
24037                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
24038                               | sed 1q ) 2>/dev/null`
24039                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
24040                           found_dir="$dir"
24041                           found_so="$dir/$libname$shrext.$ver"
24042                         fi
24043                       else
24044                         eval library_names=\"$acl_library_names_spec\"
24045                         for f in $library_names; do
24046                           if test -f "$dir/$f"; then
24047                             found_dir="$dir"
24048                             found_so="$dir/$f"
24049                             break
24050                           fi
24051                         done
24052                       fi
24053                     fi
24054                   fi
24055                                     if test "X$found_dir" = "X"; then
24056                     if test -f "$dir/$libname.$acl_libext"; then
24057                       found_dir="$dir"
24058                       found_a="$dir/$libname.$acl_libext"
24059                     fi
24060                   fi
24061                   if test "X$found_dir" != "X"; then
24062                     if test -f "$dir/$libname.la"; then
24063                       found_la="$dir/$libname.la"
24064                     fi
24065                   fi
24066                   ;;
24067               esac
24068               if test "X$found_dir" != "X"; then
24069                 break
24070               fi
24071             done
24072           fi
24073           if test "X$found_dir" != "X"; then
24074                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$found_dir -l$name"
24075             if test "X$found_so" != "X"; then
24076                                                         if test "$enable_rpath" = no \
24077                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
24078                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
24079                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
24080               else
24081                                                                                 haveit=
24082                 for x in $ltrpathdirs; do
24083                   if test "X$x" = "X$found_dir"; then
24084                     haveit=yes
24085                     break
24086                   fi
24087                 done
24088                 if test -z "$haveit"; then
24089                   ltrpathdirs="$ltrpathdirs $found_dir"
24090                 fi
24091                                 if test "$acl_hardcode_direct" = yes; then
24092                                                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
24093                 else
24094                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
24095                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
24096                                                             haveit=
24097                     for x in $rpathdirs; do
24098                       if test "X$x" = "X$found_dir"; then
24099                         haveit=yes
24100                         break
24101                       fi
24102                     done
24103                     if test -z "$haveit"; then
24104                       rpathdirs="$rpathdirs $found_dir"
24105                     fi
24106                   else
24107                                                                                 haveit=
24108                     for x in $LDFLAGS $LIBUNISTRING; do
24109
24110   acl_save_prefix="$prefix"
24111   prefix="$acl_final_prefix"
24112   acl_save_exec_prefix="$exec_prefix"
24113   exec_prefix="$acl_final_exec_prefix"
24114   eval x=\"$x\"
24115   exec_prefix="$acl_save_exec_prefix"
24116   prefix="$acl_save_prefix"
24117
24118                       if test "X$x" = "X-L$found_dir"; then
24119                         haveit=yes
24120                         break
24121                       fi
24122                     done
24123                     if test -z "$haveit"; then
24124                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir"
24125                     fi
24126                     if test "$acl_hardcode_minus_L" != no; then
24127                                                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
24128                     else
24129                                                                                                                                                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
24130                     fi
24131                   fi
24132                 fi
24133               fi
24134             else
24135               if test "X$found_a" != "X"; then
24136                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_a"
24137               else
24138                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir -l$name"
24139               fi
24140             fi
24141                         additional_includedir=
24142             case "$found_dir" in
24143               */$acl_libdirstem | */$acl_libdirstem/)
24144                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
24145                 if test "$name" = 'unistring'; then
24146                   LIBUNISTRING_PREFIX="$basedir"
24147                 fi
24148                 additional_includedir="$basedir/include"
24149                 ;;
24150               */$acl_libdirstem2 | */$acl_libdirstem2/)
24151                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
24152                 if test "$name" = 'unistring'; then
24153                   LIBUNISTRING_PREFIX="$basedir"
24154                 fi
24155                 additional_includedir="$basedir/include"
24156                 ;;
24157             esac
24158             if test "X$additional_includedir" != "X"; then
24159                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
24160                 haveit=
24161                 if test "X$additional_includedir" = "X/usr/local/include"; then
24162                   if test -n "$GCC"; then
24163                     case $host_os in
24164                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24165                     esac
24166                   fi
24167                 fi
24168                 if test -z "$haveit"; then
24169                   for x in $CPPFLAGS $INCUNISTRING; do
24170
24171   acl_save_prefix="$prefix"
24172   prefix="$acl_final_prefix"
24173   acl_save_exec_prefix="$exec_prefix"
24174   exec_prefix="$acl_final_exec_prefix"
24175   eval x=\"$x\"
24176   exec_prefix="$acl_save_exec_prefix"
24177   prefix="$acl_save_prefix"
24178
24179                     if test "X$x" = "X-I$additional_includedir"; then
24180                       haveit=yes
24181                       break
24182                     fi
24183                   done
24184                   if test -z "$haveit"; then
24185                     if test -d "$additional_includedir"; then
24186                                             INCUNISTRING="${INCUNISTRING}${INCUNISTRING:+ }-I$additional_includedir"
24187                     fi
24188                   fi
24189                 fi
24190               fi
24191             fi
24192                         if test -n "$found_la"; then
24193                                                         save_libdir="$libdir"
24194               case "$found_la" in
24195                 */* | *\\*) . "$found_la" ;;
24196                 *) . "./$found_la" ;;
24197               esac
24198               libdir="$save_libdir"
24199                             for dep in $dependency_libs; do
24200                 case "$dep" in
24201                   -L*)
24202                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24203                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
24204                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
24205                       haveit=
24206                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
24207                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
24208                         if test -n "$GCC"; then
24209                           case $host_os in
24210                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24211                           esac
24212                         fi
24213                       fi
24214                       if test -z "$haveit"; then
24215                         haveit=
24216                         for x in $LDFLAGS $LIBUNISTRING; do
24217
24218   acl_save_prefix="$prefix"
24219   prefix="$acl_final_prefix"
24220   acl_save_exec_prefix="$exec_prefix"
24221   exec_prefix="$acl_final_exec_prefix"
24222   eval x=\"$x\"
24223   exec_prefix="$acl_save_exec_prefix"
24224   prefix="$acl_save_prefix"
24225
24226                           if test "X$x" = "X-L$additional_libdir"; then
24227                             haveit=yes
24228                             break
24229                           fi
24230                         done
24231                         if test -z "$haveit"; then
24232                           if test -d "$additional_libdir"; then
24233                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$additional_libdir"
24234                           fi
24235                         fi
24236                         haveit=
24237                         for x in $LDFLAGS $LTLIBUNISTRING; do
24238
24239   acl_save_prefix="$prefix"
24240   prefix="$acl_final_prefix"
24241   acl_save_exec_prefix="$exec_prefix"
24242   exec_prefix="$acl_final_exec_prefix"
24243   eval x=\"$x\"
24244   exec_prefix="$acl_save_exec_prefix"
24245   prefix="$acl_save_prefix"
24246
24247                           if test "X$x" = "X-L$additional_libdir"; then
24248                             haveit=yes
24249                             break
24250                           fi
24251                         done
24252                         if test -z "$haveit"; then
24253                           if test -d "$additional_libdir"; then
24254                                                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$additional_libdir"
24255                           fi
24256                         fi
24257                       fi
24258                     fi
24259                     ;;
24260                   -R*)
24261                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
24262                     if test "$enable_rpath" != no; then
24263                                                                   haveit=
24264                       for x in $rpathdirs; do
24265                         if test "X$x" = "X$dir"; then
24266                           haveit=yes
24267                           break
24268                         fi
24269                       done
24270                       if test -z "$haveit"; then
24271                         rpathdirs="$rpathdirs $dir"
24272                       fi
24273                                                                   haveit=
24274                       for x in $ltrpathdirs; do
24275                         if test "X$x" = "X$dir"; then
24276                           haveit=yes
24277                           break
24278                         fi
24279                       done
24280                       if test -z "$haveit"; then
24281                         ltrpathdirs="$ltrpathdirs $dir"
24282                       fi
24283                     fi
24284                     ;;
24285                   -l*)
24286                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24287                     ;;
24288                   *.la)
24289                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24290                     ;;
24291                   *)
24292                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$dep"
24293                     LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$dep"
24294                     ;;
24295                 esac
24296               done
24297             fi
24298           else
24299                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
24300             LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-l$name"
24301           fi
24302         fi
24303       fi
24304     done
24305   done
24306   if test "X$rpathdirs" != "X"; then
24307     if test -n "$acl_hardcode_libdir_separator"; then
24308                         alldirs=
24309       for found_dir in $rpathdirs; do
24310         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
24311       done
24312             acl_save_libdir="$libdir"
24313       libdir="$alldirs"
24314       eval flag=\"$acl_hardcode_libdir_flag_spec\"
24315       libdir="$acl_save_libdir"
24316       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
24317     else
24318             for found_dir in $rpathdirs; do
24319         acl_save_libdir="$libdir"
24320         libdir="$found_dir"
24321         eval flag=\"$acl_hardcode_libdir_flag_spec\"
24322         libdir="$acl_save_libdir"
24323         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
24324       done
24325     fi
24326   fi
24327   if test "X$ltrpathdirs" != "X"; then
24328             for found_dir in $ltrpathdirs; do
24329       LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-R$found_dir"
24330     done
24331   fi
24332
24333
24334
24335
24336
24337
24338
24339         ac_save_CPPFLAGS="$CPPFLAGS"
24340
24341   for element in $INCUNISTRING; do
24342     haveit=
24343     for x in $CPPFLAGS; do
24344
24345   acl_save_prefix="$prefix"
24346   prefix="$acl_final_prefix"
24347   acl_save_exec_prefix="$exec_prefix"
24348   exec_prefix="$acl_final_exec_prefix"
24349   eval x=\"$x\"
24350   exec_prefix="$acl_save_exec_prefix"
24351   prefix="$acl_save_prefix"
24352
24353       if test "X$x" = "X$element"; then
24354         haveit=yes
24355         break
24356       fi
24357     done
24358     if test -z "$haveit"; then
24359       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24360     fi
24361   done
24362
24363
24364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring" >&5
24365 $as_echo_n "checking for libunistring... " >&6; }
24366 if test "${ac_cv_libunistring+set}" = set; then :
24367   $as_echo_n "(cached) " >&6
24368 else
24369
24370     ac_save_LIBS="$LIBS"
24371                                 case " $LIBUNISTRING" in
24372       *" -l"*) LIBS="$LIBS $LIBUNISTRING" ;;
24373       *)       LIBS="$LIBUNISTRING $LIBS" ;;
24374     esac
24375     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24376 /* end confdefs.h.  */
24377 #include <uniconv.h>
24378 int
24379 main ()
24380 {
24381 u8_strconv_from_locale((char*)0);
24382   ;
24383   return 0;
24384 }
24385 _ACEOF
24386 if ac_fn_c_try_link "$LINENO"; then :
24387   ac_cv_libunistring=yes
24388 else
24389   ac_cv_libunistring='no, consider installing GNU libunistring'
24390 fi
24391 rm -f core conftest.err conftest.$ac_objext \
24392     conftest$ac_exeext conftest.$ac_ext
24393     LIBS="$ac_save_LIBS"
24394
24395 fi
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libunistring" >&5
24397 $as_echo "$ac_cv_libunistring" >&6; }
24398   if test "$ac_cv_libunistring" = yes; then
24399     HAVE_LIBUNISTRING=yes
24400
24401 $as_echo "#define HAVE_LIBUNISTRING 1" >>confdefs.h
24402
24403     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libunistring" >&5
24404 $as_echo_n "checking how to link with libunistring... " >&6; }
24405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUNISTRING" >&5
24406 $as_echo "$LIBUNISTRING" >&6; }
24407   else
24408     HAVE_LIBUNISTRING=no
24409             CPPFLAGS="$ac_save_CPPFLAGS"
24410     LIBUNISTRING=
24411     LTLIBUNISTRING=
24412     LIBUNISTRING_PREFIX=
24413   fi
24414
24415
24416
24417
24418
24419
24420
24421   fi
24422   if test $HAVE_LIBUNISTRING = yes; then
24423         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring version" >&5
24424 $as_echo_n "checking for libunistring version... " >&6; }
24425 if test "${gl_cv_libunistring_version+set}" = set; then :
24426   $as_echo_n "(cached) " >&6
24427 else
24428   if ac_fn_c_compute_int "$LINENO" "_LIBUNISTRING_VERSION" "gl_libunistring_hexversion"        "#include <unistring/version.h>"; then :
24429
24430 fi
24431
24432                      if test $gl_libunistring_hexversion = 9; then
24433                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24434 /* end confdefs.h.  */
24435 #include <unistring/cdefs.h>
24436 int
24437 main ()
24438 {
24439
24440   ;
24441   return 0;
24442 }
24443 _ACEOF
24444 if ac_fn_c_try_compile "$LINENO"; then :
24445   gl_cv_libunistring_version092=true
24446 else
24447   gl_cv_libunistring_version092=false
24448 fi
24449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
24450          if $gl_cv_libunistring_version092; then
24451
24452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24453 /* end confdefs.h.  */
24454 #include <unistr.h>
24455 _ACEOF
24456                 case "$host_os" in
24457     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24458     *)    gl_absname_cpp="$ac_cpp" ;;
24459   esac
24460         gl_cv_absolute_unistr_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24461 sed -n '\#/unistr.h#{
24462         s#.*"\(.*/unistr.h\)".*#\1#
24463         s#^/[^/]#//&#
24464         p
24465         q
24466 }'`
24467
24468            if test -n "$gl_cv_absolute_unistr_h" \
24469               && grep 'Copy no more than N units of SRC to DEST.  Return a pointer' $gl_cv_absolute_unistr_h > /dev/null; then
24470                           gl_libunistring_hexversion=2307
24471            else
24472                           gl_libunistring_hexversion=2306
24473            fi
24474          else
24475                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24476 /* end confdefs.h.  */
24477 #include <unicase.h>
24478                            casing_suffix_context_t ct;
24479 int
24480 main ()
24481 {
24482
24483   ;
24484   return 0;
24485 }
24486 _ACEOF
24487 if ac_fn_c_try_compile "$LINENO"; then :
24488   gl_cv_libunistring_version091=true
24489 else
24490   gl_cv_libunistring_version091=false
24491 fi
24492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24493            if $gl_cv_libunistring_version091; then
24494                           gl_libunistring_hexversion=2305
24495            else
24496                           gl_libunistring_hexversion=2304
24497            fi
24498          fi
24499        fi
24500               gl_libunistring_major=`expr $gl_libunistring_hexversion / 65536`
24501        gl_libunistring_minor=`expr $gl_libunistring_hexversion / 256 % 256`
24502        gl_libunistring_subminor=`expr $gl_libunistring_hexversion % 256`
24503        gl_cv_libunistring_version="$gl_libunistring_major.$gl_libunistring_minor.$gl_libunistring_subminor"
24504
24505 fi
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libunistring_version" >&5
24507 $as_echo "$gl_cv_libunistring_version" >&6; }
24508     LIBUNISTRING_VERSION="$gl_cv_libunistring_version"
24509   fi
24510
24511         if test $HAVE_LIBUNISTRING = no; then
24512           gl_libunistring_use_included=yes
24513           LIBUNISTRING=
24514           LTLIBUNISTRING=
24515         fi
24516       fi
24517
24518
24519
24520
24521
24522
24523
24524
24525
24526
24527
24528
24529
24530       ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
24531 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
24532   ac_have_decl=1
24533 else
24534   ac_have_decl=0
24535 fi
24536
24537 cat >>confdefs.h <<_ACEOF
24538 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
24539 _ACEOF
24540
24541
24542
24543   GNULIB_DUPLOCALE=0;
24544     HAVE_DUPLOCALE=1;
24545   REPLACE_DUPLOCALE=0;
24546
24547
24548     REPLACE_NULL=0;
24549   HAVE_WCHAR_T=1;
24550   STDDEF_H='';
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560   if test $gt_cv_c_wchar_t = no; then
24561     HAVE_WCHAR_T=0
24562     STDDEF_H=stddef.h
24563   fi
24564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
24565 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
24566 if test "${gl_cv_decl_null_works+set}" = set; then :
24567   $as_echo_n "(cached) " >&6
24568 else
24569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24570 /* end confdefs.h.  */
24571 #include <stddef.h>
24572       int test[2 * (sizeof NULL == sizeof (void *)) -1];
24573
24574 int
24575 main ()
24576 {
24577
24578   ;
24579   return 0;
24580 }
24581 _ACEOF
24582 if ac_fn_c_try_compile "$LINENO"; then :
24583   gl_cv_decl_null_works=yes
24584 else
24585   gl_cv_decl_null_works=no
24586 fi
24587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24588 fi
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
24590 $as_echo "$gl_cv_decl_null_works" >&6; }
24591   if test $gl_cv_decl_null_works = no; then
24592     REPLACE_NULL=1
24593     STDDEF_H=stddef.h
24594   fi
24595   if test -n "$STDDEF_H"; then
24596
24597
24598
24599
24600   :
24601
24602
24603
24604
24605
24606
24607
24608      if test $gl_cv_have_include_next = yes; then
24609        gl_cv_next_stddef_h='<'stddef.h'>'
24610      else
24611        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
24612 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
24613 if test "${gl_cv_next_stddef_h+set}" = set; then :
24614   $as_echo_n "(cached) " >&6
24615 else
24616
24617           if test $ac_cv_header_stddef_h = yes; then
24618             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24619 /* end confdefs.h.  */
24620 #include <stddef.h>
24621
24622 _ACEOF
24623                                                                                                 case "$host_os" in
24624               aix*) gl_absname_cpp="$ac_cpp -C" ;;
24625               *)    gl_absname_cpp="$ac_cpp" ;;
24626             esac
24627                                                 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24628                sed -n '\#/stddef.h#{
24629                  s#.*"\(.*/stddef.h\)".*#\1#
24630                  s#^/[^/]#//&#
24631                  p
24632                  q
24633                }'`'"'
24634           else
24635             gl_cv_next_stddef_h='<'stddef.h'>'
24636           fi
24637
24638 fi
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
24640 $as_echo "$gl_cv_next_stddef_h" >&6; }
24641      fi
24642      NEXT_STDDEF_H=$gl_cv_next_stddef_h
24643
24644      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24645        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24646        gl_next_as_first_directive='<'stddef.h'>'
24647      else
24648        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24649        gl_next_as_first_directive=$gl_cv_next_stddef_h
24650      fi
24651      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
24652
24653
24654
24655   fi
24656
24657
24658
24659
24660
24661
24662
24663
24664
24665
24666
24667
24668      GNULIB_FCHMODAT=0;
24669   GNULIB_FSTATAT=0;
24670   GNULIB_FUTIMENS=0;
24671   GNULIB_LCHMOD=0;
24672   GNULIB_LSTAT=0;
24673   GNULIB_MKDIRAT=0;
24674   GNULIB_MKFIFO=0;
24675   GNULIB_MKFIFOAT=0;
24676   GNULIB_MKNOD=0;
24677   GNULIB_MKNODAT=0;
24678   GNULIB_STAT=0;
24679   GNULIB_UTIMENSAT=0;
24680     HAVE_FCHMODAT=1;
24681   HAVE_FSTATAT=1;
24682   HAVE_FUTIMENS=1;
24683   HAVE_LCHMOD=1;
24684   HAVE_LSTAT=1;
24685   HAVE_MKDIRAT=1;
24686   HAVE_MKFIFO=1;
24687   HAVE_MKFIFOAT=1;
24688   HAVE_MKNOD=1;
24689   HAVE_MKNODAT=1;
24690   HAVE_UTIMENSAT=1;
24691   REPLACE_FSTAT=0;
24692   REPLACE_FSTATAT=0;
24693   REPLACE_FUTIMENS=0;
24694   REPLACE_LSTAT=0;
24695   REPLACE_MKDIR=0;
24696   REPLACE_MKFIFO=0;
24697   REPLACE_MKNOD=0;
24698   REPLACE_STAT=0;
24699   REPLACE_UTIMENSAT=0;
24700
24701
24702
24703
24704
24705
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
24707 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
24708 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
24709   $as_echo_n "(cached) " >&6
24710 else
24711   rm -f conftest.sym conftest.file
24712 echo >conftest.file
24713 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24714   if test "$cross_compiling" = yes; then :
24715   ac_cv_func_lstat_dereferences_slashed_symlink=no
24716 else
24717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24718 /* end confdefs.h.  */
24719 $ac_includes_default
24720 int
24721 main ()
24722 {
24723 struct stat sbuf;
24724      /* Linux will dereference the symlink and fail, as required by POSIX.
24725         That is better in the sense that it means we will not
24726         have to compile and use the lstat wrapper.  */
24727      return lstat ("conftest.sym/", &sbuf) == 0;
24728   ;
24729   return 0;
24730 }
24731 _ACEOF
24732 if ac_fn_c_try_run "$LINENO"; then :
24733   ac_cv_func_lstat_dereferences_slashed_symlink=yes
24734 else
24735   ac_cv_func_lstat_dereferences_slashed_symlink=no
24736 fi
24737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24738   conftest.$ac_objext conftest.beam conftest.$ac_ext
24739 fi
24740
24741 else
24742   # If the `ln -s' command failed, then we probably don't even
24743   # have an lstat function.
24744   ac_cv_func_lstat_dereferences_slashed_symlink=no
24745 fi
24746 rm -f conftest.sym conftest.file
24747
24748 fi
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24750 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
24751
24752 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24753
24754 cat >>confdefs.h <<_ACEOF
24755 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24756 _ACEOF
24757
24758
24759 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
24760
24761
24762
24763
24764
24765
24766
24767
24768   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
24769
24770 fi
24771
24772
24773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
24774 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
24775 if test "${gl_cv_func_malloc_posix+set}" = set; then :
24776   $as_echo_n "(cached) " >&6
24777 else
24778
24779                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24780 /* end confdefs.h.  */
24781
24782 int
24783 main ()
24784 {
24785 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
24786          choke me
24787          #endif
24788
24789   ;
24790   return 0;
24791 }
24792 _ACEOF
24793 if ac_fn_c_try_compile "$LINENO"; then :
24794   gl_cv_func_malloc_posix=yes
24795 else
24796   gl_cv_func_malloc_posix=no
24797 fi
24798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24799
24800 fi
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
24802 $as_echo "$gl_cv_func_malloc_posix" >&6; }
24803
24804
24805   for ac_header in stdlib.h
24806 do :
24807   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
24808 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
24809   cat >>confdefs.h <<_ACEOF
24810 #define HAVE_STDLIB_H 1
24811 _ACEOF
24812
24813 fi
24814
24815 done
24816
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
24818 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
24819 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
24820   $as_echo_n "(cached) " >&6
24821 else
24822   if test "$cross_compiling" = yes; then :
24823   ac_cv_func_malloc_0_nonnull=no
24824 else
24825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24826 /* end confdefs.h.  */
24827 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
24828 # include <stdlib.h>
24829 #else
24830 char *malloc ();
24831 #endif
24832
24833 int
24834 main ()
24835 {
24836 return ! malloc (0);
24837   ;
24838   return 0;
24839 }
24840 _ACEOF
24841 if ac_fn_c_try_run "$LINENO"; then :
24842   ac_cv_func_malloc_0_nonnull=yes
24843 else
24844   ac_cv_func_malloc_0_nonnull=no
24845 fi
24846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24847   conftest.$ac_objext conftest.beam conftest.$ac_ext
24848 fi
24849
24850 fi
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
24852 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
24853 if test $ac_cv_func_malloc_0_nonnull = yes; then :
24854   gl_cv_func_malloc_0_nonnull=1
24855 else
24856   gl_cv_func_malloc_0_nonnull=0
24857 fi
24858
24859
24860 cat >>confdefs.h <<_ACEOF
24861 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
24862 _ACEOF
24863
24864
24865
24866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
24867 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
24868 if test "${ac_cv_func_mbrtowc+set}" = set; then :
24869   $as_echo_n "(cached) " >&6
24870 else
24871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24872 /* end confdefs.h.  */
24873 #include <wchar.h>
24874 int
24875 main ()
24876 {
24877 wchar_t wc;
24878               char const s[] = "";
24879               size_t n = 1;
24880               mbstate_t state;
24881               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
24882   ;
24883   return 0;
24884 }
24885 _ACEOF
24886 if ac_fn_c_try_link "$LINENO"; then :
24887   ac_cv_func_mbrtowc=yes
24888 else
24889   ac_cv_func_mbrtowc=no
24890 fi
24891 rm -f core conftest.err conftest.$ac_objext \
24892     conftest$ac_exeext conftest.$ac_ext
24893 fi
24894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
24895 $as_echo "$ac_cv_func_mbrtowc" >&6; }
24896   if test $ac_cv_func_mbrtowc = yes; then
24897
24898 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
24899
24900   fi
24901
24902
24903   GNULIB_BTOWC=0;
24904   GNULIB_WCTOB=0;
24905   GNULIB_MBSINIT=0;
24906   GNULIB_MBRTOWC=0;
24907   GNULIB_MBRLEN=0;
24908   GNULIB_MBSRTOWCS=0;
24909   GNULIB_MBSNRTOWCS=0;
24910   GNULIB_WCRTOMB=0;
24911   GNULIB_WCSRTOMBS=0;
24912   GNULIB_WCSNRTOMBS=0;
24913   GNULIB_WCWIDTH=0;
24914     HAVE_BTOWC=1;
24915   HAVE_MBSINIT=1;
24916   HAVE_MBRTOWC=1;
24917   HAVE_MBRLEN=1;
24918   HAVE_MBSRTOWCS=1;
24919   HAVE_MBSNRTOWCS=1;
24920   HAVE_WCRTOMB=1;
24921   HAVE_WCSRTOMBS=1;
24922   HAVE_WCSNRTOMBS=1;
24923   HAVE_DECL_WCTOB=1;
24924   HAVE_DECL_WCWIDTH=1;
24925   REPLACE_MBSTATE_T=0;
24926   REPLACE_BTOWC=0;
24927   REPLACE_WCTOB=0;
24928   REPLACE_MBSINIT=0;
24929   REPLACE_MBRTOWC=0;
24930   REPLACE_MBRLEN=0;
24931   REPLACE_MBSRTOWCS=0;
24932   REPLACE_MBSNRTOWCS=0;
24933   REPLACE_WCRTOMB=0;
24934   REPLACE_WCSRTOMBS=0;
24935   REPLACE_WCSNRTOMBS=0;
24936   REPLACE_WCWIDTH=0;
24937
24938
24939
24940
24941
24942
24943
24944
24945
24946
24947
24948
24949
24950
24951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
24952 $as_echo_n "checking for a traditional japanese locale... " >&6; }
24953 if test "${gt_cv_locale_ja+set}" = set; then :
24954   $as_echo_n "(cached) " >&6
24955 else
24956
24957     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24958 /* end confdefs.h.  */
24959
24960 #include <locale.h>
24961 #include <time.h>
24962 #if HAVE_LANGINFO_CODESET
24963 # include <langinfo.h>
24964 #endif
24965 #include <stdlib.h>
24966 #include <string.h>
24967 struct tm t;
24968 char buf[16];
24969 int main ()
24970 {
24971   const char *p;
24972   /* Check whether the given locale name is recognized by the system.  */
24973   if (setlocale (LC_ALL, "") == NULL) return 1;
24974   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
24975      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
24976      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
24977      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
24978      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
24979      some unit tests fail.  */
24980 #if HAVE_LANGINFO_CODESET
24981   {
24982     const char *cs = nl_langinfo (CODESET);
24983     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
24984       return 1;
24985   }
24986 #endif
24987 #ifdef __CYGWIN__
24988   /* On Cygwin, avoid locale names without encoding suffix, because the
24989      locale_charset() function relies on the encoding suffix.  Note that
24990      LC_ALL is set on the command line.  */
24991   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
24992 #endif
24993   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
24994      on Cygwin 1.5.x.  */
24995   if (MB_CUR_MAX == 1)
24996     return 1;
24997   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
24998      This excludes the UTF-8 encoding.  */
24999   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
25000   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
25001   for (p = buf; *p != '\0'; p++)
25002     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
25003       return 1;
25004   return 0;
25005 }
25006
25007 _ACEOF
25008     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
25009   (eval $ac_link) 2>&5
25010   ac_status=$?
25011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25012   test $ac_status = 0; } && test -s conftest$ac_exeext; then
25013       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
25014       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
25015       # configure script would override the LC_ALL setting. Likewise for
25016       # LC_CTYPE, which is also set at the beginning of the configure script.
25017       # Test for the AIX locale name.
25018       if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
25019         gt_cv_locale_ja=ja_JP
25020       else
25021         # Test for the locale name with explicit encoding suffix.
25022         if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
25023           gt_cv_locale_ja=ja_JP.EUC-JP
25024         else
25025           # Test for the HP-UX, OSF/1, NetBSD locale name.
25026           if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
25027             gt_cv_locale_ja=ja_JP.eucJP
25028           else
25029             # Test for the IRIX, FreeBSD locale name.
25030             if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
25031               gt_cv_locale_ja=ja_JP.EUC
25032             else
25033               # Test for the Solaris 7 locale name.
25034               if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
25035                 gt_cv_locale_ja=ja
25036               else
25037                 # Special test for NetBSD 1.6.
25038                 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
25039                   gt_cv_locale_ja=ja_JP.eucJP
25040                 else
25041                   # None found.
25042                   gt_cv_locale_ja=none
25043                 fi
25044               fi
25045             fi
25046           fi
25047         fi
25048       fi
25049     fi
25050     rm -fr conftest*
25051
25052 fi
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
25054 $as_echo "$gt_cv_locale_ja" >&6; }
25055   LOCALE_JA=$gt_cv_locale_ja
25056
25057
25058
25059
25060
25061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
25062 $as_echo_n "checking for a transitional chinese locale... " >&6; }
25063 if test "${gt_cv_locale_zh_CN+set}" = set; then :
25064   $as_echo_n "(cached) " >&6
25065 else
25066
25067     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25068 /* end confdefs.h.  */
25069
25070 #include <locale.h>
25071 #include <stdlib.h>
25072 #include <time.h>
25073 #if HAVE_LANGINFO_CODESET
25074 # include <langinfo.h>
25075 #endif
25076 #include <stdlib.h>
25077 #include <string.h>
25078 struct tm t;
25079 char buf[16];
25080 int main ()
25081 {
25082   const char *p;
25083   /* Check whether the given locale name is recognized by the system.  */
25084   if (setlocale (LC_ALL, "") == NULL) return 1;
25085   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
25086      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
25087      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
25088      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
25089      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
25090      some unit tests fail.  */
25091 #if HAVE_LANGINFO_CODESET
25092   {
25093     const char *cs = nl_langinfo (CODESET);
25094     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
25095       return 1;
25096   }
25097 #endif
25098 #ifdef __CYGWIN__
25099   /* On Cygwin, avoid locale names without encoding suffix, because the
25100      locale_charset() function relies on the encoding suffix.  Note that
25101      LC_ALL is set on the command line.  */
25102   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
25103 #endif
25104   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
25105      This excludes the UTF-8 encoding.  */
25106   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
25107   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
25108   for (p = buf; *p != '\0'; p++)
25109     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
25110       return 1;
25111   /* Check whether a typical GB18030 multibyte sequence is recognized as a
25112      single wide character.  This excludes the GB2312 and GBK encodings.  */
25113   if (mblen ("\203\062\332\066", 5) != 4)
25114     return 1;
25115   return 0;
25116 }
25117
25118 _ACEOF
25119     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
25120   (eval $ac_link) 2>&5
25121   ac_status=$?
25122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25123   test $ac_status = 0; } && test -s conftest$ac_exeext; then
25124       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
25125       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
25126       # configure script would override the LC_ALL setting. Likewise for
25127       # LC_CTYPE, which is also set at the beginning of the configure script.
25128       # Test for the locale name without encoding suffix.
25129       if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
25130         gt_cv_locale_zh_CN=zh_CN
25131       else
25132         # Test for the locale name with explicit encoding suffix.
25133         if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
25134           gt_cv_locale_zh_CN=zh_CN.GB18030
25135         else
25136           # None found.
25137           gt_cv_locale_zh_CN=none
25138         fi
25139       fi
25140     else
25141       # If there was a link error, due to mblen(), the system is so old that
25142       # it certainly doesn't have a chinese locale.
25143       gt_cv_locale_zh_CN=none
25144     fi
25145     rm -fr conftest*
25146
25147 fi
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
25149 $as_echo "$gt_cv_locale_zh_CN" >&6; }
25150   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
25151
25152
25153
25154
25155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
25156 $as_echo_n "checking for a french Unicode locale... " >&6; }
25157 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
25158   $as_echo_n "(cached) " >&6
25159 else
25160
25161     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25162 /* end confdefs.h.  */
25163
25164 #include <locale.h>
25165 #include <time.h>
25166 #if HAVE_LANGINFO_CODESET
25167 # include <langinfo.h>
25168 #endif
25169 #include <stdlib.h>
25170 #include <string.h>
25171 struct tm t;
25172 char buf[16];
25173 int main () {
25174   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
25175      imitates locale dependent behaviour by looking at the environment
25176      variables, and all locales use the UTF-8 encoding.  */
25177 #if !(defined __BEOS__ || defined __HAIKU__)
25178   /* Check whether the given locale name is recognized by the system.  */
25179   if (setlocale (LC_ALL, "") == NULL) return 1;
25180   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
25181      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
25182      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
25183      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
25184      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
25185      some unit tests fail.  */
25186 # if HAVE_LANGINFO_CODESET
25187   {
25188     const char *cs = nl_langinfo (CODESET);
25189     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
25190       return 1;
25191   }
25192 # endif
25193 # ifdef __CYGWIN__
25194   /* On Cygwin, avoid locale names without encoding suffix, because the
25195      locale_charset() function relies on the encoding suffix.  Note that
25196      LC_ALL is set on the command line.  */
25197   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
25198 # endif
25199   /* Check whether in the abbreviation of the second month, the second
25200      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
25201      two bytes long, with UTF-8 encoding.  */
25202   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
25203   if (strftime (buf, sizeof (buf), "%b", &t) < 4
25204       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
25205     return 1;
25206 #endif
25207   /* Check whether the decimal separator is a comma.
25208      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
25209      are nl_langinfo(RADIXCHAR) are both ".".  */
25210   if (localeconv () ->decimal_point[0] != ',') return 1;
25211   return 0;
25212 }
25213
25214 _ACEOF
25215     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
25216   (eval $ac_link) 2>&5
25217   ac_status=$?
25218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25219   test $ac_status = 0; } && test -s conftest$ac_exeext; then
25220       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
25221       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
25222       # configure script would override the LC_ALL setting. Likewise for
25223       # LC_CTYPE, which is also set at the beginning of the configure script.
25224       # Test for the usual locale name.
25225       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
25226         gt_cv_locale_fr_utf8=fr_FR
25227       else
25228         # Test for the locale name with explicit encoding suffix.
25229         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
25230           gt_cv_locale_fr_utf8=fr_FR.UTF-8
25231         else
25232           # Test for the Solaris 7 locale name.
25233           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
25234             gt_cv_locale_fr_utf8=fr.UTF-8
25235           else
25236             # None found.
25237             gt_cv_locale_fr_utf8=none
25238           fi
25239         fi
25240       fi
25241     fi
25242     rm -fr conftest*
25243
25244 fi
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
25246 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
25247   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
25248
25249
25250
25251   GNULIB_MEMCHR=0;
25252   GNULIB_MEMMEM=0;
25253   GNULIB_MEMPCPY=0;
25254   GNULIB_MEMRCHR=0;
25255   GNULIB_RAWMEMCHR=0;
25256   GNULIB_STPCPY=0;
25257   GNULIB_STPNCPY=0;
25258   GNULIB_STRCHRNUL=0;
25259   GNULIB_STRDUP=0;
25260   GNULIB_STRNCAT=0;
25261   GNULIB_STRNDUP=0;
25262   GNULIB_STRNLEN=0;
25263   GNULIB_STRPBRK=0;
25264   GNULIB_STRSEP=0;
25265   GNULIB_STRSTR=0;
25266   GNULIB_STRCASESTR=0;
25267   GNULIB_STRTOK_R=0;
25268   GNULIB_MBSLEN=0;
25269   GNULIB_MBSNLEN=0;
25270   GNULIB_MBSCHR=0;
25271   GNULIB_MBSRCHR=0;
25272   GNULIB_MBSSTR=0;
25273   GNULIB_MBSCASECMP=0;
25274   GNULIB_MBSNCASECMP=0;
25275   GNULIB_MBSPCASECMP=0;
25276   GNULIB_MBSCASESTR=0;
25277   GNULIB_MBSCSPN=0;
25278   GNULIB_MBSPBRK=0;
25279   GNULIB_MBSSPN=0;
25280   GNULIB_MBSSEP=0;
25281   GNULIB_MBSTOK_R=0;
25282   GNULIB_STRERROR=0;
25283   GNULIB_STRSIGNAL=0;
25284   GNULIB_STRVERSCMP=0;
25285   HAVE_MBSLEN=0;
25286     HAVE_MEMCHR=1;
25287   HAVE_DECL_MEMMEM=1;
25288   HAVE_MEMPCPY=1;
25289   HAVE_DECL_MEMRCHR=1;
25290   HAVE_RAWMEMCHR=1;
25291   HAVE_STPCPY=1;
25292   HAVE_STPNCPY=1;
25293   HAVE_STRCHRNUL=1;
25294   HAVE_DECL_STRDUP=1;
25295   HAVE_DECL_STRNDUP=1;
25296   HAVE_DECL_STRNLEN=1;
25297   HAVE_STRPBRK=1;
25298   HAVE_STRSEP=1;
25299   HAVE_STRCASESTR=1;
25300   HAVE_DECL_STRTOK_R=1;
25301   HAVE_DECL_STRSIGNAL=1;
25302   HAVE_STRVERSCMP=1;
25303   REPLACE_MEMCHR=0;
25304   REPLACE_MEMMEM=0;
25305   REPLACE_STPNCPY=0;
25306   REPLACE_STRDUP=0;
25307   REPLACE_STRSTR=0;
25308   REPLACE_STRCASESTR=0;
25309   REPLACE_STRERROR=0;
25310   REPLACE_STRNCAT=0;
25311   REPLACE_STRNDUP=0;
25312   REPLACE_STRNLEN=0;
25313   REPLACE_STRSIGNAL=0;
25314   REPLACE_STRTOK_R=0;
25315   UNDEFINE_STRTOK_R=0;
25316
25317
25318
25319
25320
25321
25322
25323
25324
25325
25326
25327
25328
25329
25330
25331
25332
25333
25334
25335
25336
25337
25338
25339
25340
25341
25342
25343
25344
25345
25346
25347
25348
25349
25350
25351
25352
25353
25354   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
25355   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
25356   # irrelevant for anonymous mappings.
25357   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
25358 if test "x$ac_cv_func_mmap" = x""yes; then :
25359   gl_have_mmap=yes
25360 else
25361   gl_have_mmap=no
25362 fi
25363
25364
25365   # Try to allow MAP_ANONYMOUS.
25366   gl_have_mmap_anonymous=no
25367   if test $gl_have_mmap = yes; then
25368     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
25369 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
25370     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25371 /* end confdefs.h.  */
25372
25373 #include <sys/mman.h>
25374 #ifdef MAP_ANONYMOUS
25375     I cant identify this map.
25376 #endif
25377
25378 _ACEOF
25379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25380   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
25381   gl_have_mmap_anonymous=yes
25382 fi
25383 rm -f conftest*
25384
25385     if test $gl_have_mmap_anonymous != yes; then
25386       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25387 /* end confdefs.h.  */
25388
25389 #include <sys/mman.h>
25390 #ifdef MAP_ANON
25391     I cant identify this map.
25392 #endif
25393
25394 _ACEOF
25395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25396   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
25397
25398 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
25399
25400          gl_have_mmap_anonymous=yes
25401 fi
25402 rm -f conftest*
25403
25404     fi
25405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
25406 $as_echo "$gl_have_mmap_anonymous" >&6; }
25407     if test $gl_have_mmap_anonymous = yes; then
25408
25409 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
25410
25411     fi
25412   fi
25413
25414
25415   :
25416
25417
25418
25419
25420
25421
25422   :
25423
25424
25425
25426
25427
25428
25429
25430
25431   :
25432
25433
25434
25435
25436
25437   if test $ac_cv_func_memchr = yes; then
25438     # Detect platform-specific bugs in some versions of glibc:
25439     # memchr should not dereference anything with length 0
25440     #   http://bugzilla.redhat.com/499689
25441     # memchr should not dereference overestimated length after a match
25442     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
25443     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
25444     # Assume that memchr works on platforms that lack mprotect.
25445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
25446 $as_echo_n "checking whether memchr works... " >&6; }
25447 if test "${gl_cv_func_memchr_works+set}" = set; then :
25448   $as_echo_n "(cached) " >&6
25449 else
25450   if test "$cross_compiling" = yes; then :
25451          gl_cv_func_memchr_works="guessing no"
25452 else
25453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25454 /* end confdefs.h.  */
25455
25456 #include <string.h>
25457 #if HAVE_SYS_MMAN_H
25458 # include <fcntl.h>
25459 # include <unistd.h>
25460 # include <sys/types.h>
25461 # include <sys/mman.h>
25462 # ifndef MAP_FILE
25463 #  define MAP_FILE 0
25464 # endif
25465 #endif
25466
25467 int
25468 main ()
25469 {
25470
25471   char *fence = NULL;
25472 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
25473 # if HAVE_MAP_ANONYMOUS
25474   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
25475   const int fd = -1;
25476 # else /* !HAVE_MAP_ANONYMOUS */
25477   const int flags = MAP_FILE | MAP_PRIVATE;
25478   int fd = open ("/dev/zero", O_RDONLY, 0666);
25479   if (fd >= 0)
25480 # endif
25481     {
25482       int pagesize = getpagesize ();
25483       char *two_pages =
25484         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
25485                        flags, fd, 0);
25486       if (two_pages != (char *)(-1)
25487           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
25488         fence = two_pages + pagesize;
25489     }
25490 #endif
25491   if (fence)
25492     {
25493       if (memchr (fence, 0, 0))
25494         return 1;
25495       strcpy (fence - 9, "12345678");
25496       if (memchr (fence - 9, 0, 79) != fence - 1)
25497         return 2;
25498     }
25499   return 0;
25500
25501   ;
25502   return 0;
25503 }
25504 _ACEOF
25505 if ac_fn_c_try_run "$LINENO"; then :
25506   gl_cv_func_memchr_works=yes
25507 else
25508   gl_cv_func_memchr_works=no
25509 fi
25510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25511   conftest.$ac_objext conftest.beam conftest.$ac_ext
25512 fi
25513
25514 fi
25515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
25516 $as_echo "$gl_cv_func_memchr_works" >&6; }
25517     if test "$gl_cv_func_memchr_works" != yes; then
25518       REPLACE_MEMCHR=1
25519     fi
25520   else
25521     HAVE_MEMCHR=0
25522   fi
25523   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
25524
25525
25526
25527
25528
25529
25530
25531
25532   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
25533
25534
25535   for ac_header in bp-sym.h
25536 do :
25537   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
25538 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
25539   cat >>confdefs.h <<_ACEOF
25540 #define HAVE_BP_SYM_H 1
25541 _ACEOF
25542
25543 fi
25544
25545 done
25546
25547
25548   fi
25549
25550
25551
25552
25553
25554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
25555 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
25556 if test "${gl_cv_minmax_in_limits_h+set}" = set; then :
25557   $as_echo_n "(cached) " >&6
25558 else
25559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25560 /* end confdefs.h.  */
25561 #include <limits.h>
25562 int x = MIN (42, 17);
25563 int
25564 main ()
25565 {
25566
25567   ;
25568   return 0;
25569 }
25570 _ACEOF
25571 if ac_fn_c_try_compile "$LINENO"; then :
25572   gl_cv_minmax_in_limits_h=yes
25573 else
25574   gl_cv_minmax_in_limits_h=no
25575 fi
25576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25577 fi
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
25579 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
25580   if test $gl_cv_minmax_in_limits_h = yes; then
25581
25582 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
25583
25584   fi
25585
25586
25587
25588
25589
25590
25591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
25592 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
25593 if test "${gl_cv_minmax_in_sys_param_h+set}" = set; then :
25594   $as_echo_n "(cached) " >&6
25595 else
25596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25597 /* end confdefs.h.  */
25598 #include <sys/param.h>
25599 int x = MIN (42, 17);
25600 int
25601 main ()
25602 {
25603
25604   ;
25605   return 0;
25606 }
25607 _ACEOF
25608 if ac_fn_c_try_compile "$LINENO"; then :
25609   gl_cv_minmax_in_sys_param_h=yes
25610 else
25611   gl_cv_minmax_in_sys_param_h=no
25612 fi
25613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25614 fi
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
25616 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
25617   if test $gl_cv_minmax_in_sys_param_h = yes; then
25618
25619 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
25620
25621   fi
25622
25623
25624
25625
25626
25627     gl_cv_c_multiarch=no
25628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25629 /* end confdefs.h.  */
25630 #ifndef __APPLE_CC__
25631          not a universal capable compiler
25632         #endif
25633         typedef int dummy;
25634
25635 _ACEOF
25636 if ac_fn_c_try_compile "$LINENO"; then :
25637
25638                arch=
25639      prev=
25640      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
25641        if test -n "$prev"; then
25642          case $word in
25643            i?86 | x86_64 | ppc | ppc64)
25644              if test -z "$arch" || test "$arch" = "$word"; then
25645                arch="$word"
25646              else
25647                gl_cv_c_multiarch=yes
25648              fi
25649              ;;
25650          esac
25651          prev=
25652        else
25653          if test "x$word" = "x-arch"; then
25654            prev=arch
25655          fi
25656        fi
25657      done
25658
25659 fi
25660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25661   if test $gl_cv_c_multiarch = yes; then
25662
25663 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25664
25665     APPLE_UNIVERSAL_BUILD=1
25666   else
25667     APPLE_UNIVERSAL_BUILD=0
25668   fi
25669
25670
25671
25672
25673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
25674 $as_echo_n "checking for promoted mode_t type... " >&6; }
25675 if test "${gl_cv_promoted_mode_t+set}" = set; then :
25676   $as_echo_n "(cached) " >&6
25677 else
25678
25679                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25680 /* end confdefs.h.  */
25681 #include <sys/types.h>
25682 int
25683 main ()
25684 {
25685 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
25686   ;
25687   return 0;
25688 }
25689 _ACEOF
25690 if ac_fn_c_try_compile "$LINENO"; then :
25691   gl_cv_promoted_mode_t='int'
25692 else
25693   gl_cv_promoted_mode_t='mode_t'
25694 fi
25695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25696
25697 fi
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
25699 $as_echo "$gl_cv_promoted_mode_t" >&6; }
25700
25701 cat >>confdefs.h <<_ACEOF
25702 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
25703 _ACEOF
25704
25705
25706
25707
25708
25709
25710
25711
25712
25713
25714
25715
25716
25717
25718
25719
25720
25721
25722   GNULIB_POSIX_SPAWN=0;
25723   GNULIB_POSIX_SPAWNP=0;
25724   GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT=0;
25725   GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=0;
25726   GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=0;
25727   GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=0;
25728   GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY=0;
25729   GNULIB_POSIX_SPAWNATTR_INIT=0;
25730   GNULIB_POSIX_SPAWNATTR_GETFLAGS=0;
25731   GNULIB_POSIX_SPAWNATTR_SETFLAGS=0;
25732   GNULIB_POSIX_SPAWNATTR_GETPGROUP=0;
25733   GNULIB_POSIX_SPAWNATTR_SETPGROUP=0;
25734   GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM=0;
25735   GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM=0;
25736   GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY=0;
25737   GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY=0;
25738   GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT=0;
25739   GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT=0;
25740   GNULIB_POSIX_SPAWNATTR_GETSIGMASK=0;
25741   GNULIB_POSIX_SPAWNATTR_SETSIGMASK=0;
25742   GNULIB_POSIX_SPAWNATTR_DESTROY=0;
25743     HAVE_POSIX_SPAWN=1;
25744   HAVE_POSIX_SPAWNATTR_T=1;
25745   HAVE_POSIX_SPAWN_FILE_ACTIONS_T=1;
25746
25747   REPLACE_POSIX_SPAWN=0;
25748
25749
25750
25751
25752
25753
25754
25755
25756
25757
25758   :
25759
25760
25761
25762
25763
25764   if test $ac_cv_func_posix_spawn != yes; then
25765     HAVE_POSIX_SPAWN=0
25766   fi
25767
25768
25769
25770
25771                                       if test $ac_cv_func_posix_spawn = yes; then
25772
25773
25774      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawn works" >&5
25775 $as_echo_n "checking whether posix_spawn works... " >&6; }
25776 if test "${gl_cv_func_posix_spawn_works+set}" = set; then :
25777   $as_echo_n "(cached) " >&6
25778 else
25779   if test $cross_compiling = no; then
25780        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25781 /* end confdefs.h.  */
25782
25783 #include <errno.h>
25784 #include <fcntl.h>
25785 #include <signal.h>
25786 #include <spawn.h>
25787 #include <stdbool.h>
25788 #include <stdio.h>
25789 #include <stdlib.h>
25790 #include <string.h>
25791 #include <unistd.h>
25792 #include <sys/types.h>
25793 #include <sys/wait.h>
25794
25795 extern char **environ;
25796
25797 #ifndef STDIN_FILENO
25798 # define STDIN_FILENO 0
25799 #endif
25800 #ifndef STDOUT_FILENO
25801 # define STDOUT_FILENO 1
25802 #endif
25803 #ifndef STDERR_FILENO
25804 # define STDERR_FILENO 2
25805 #endif
25806
25807 #ifndef WTERMSIG
25808 # define WTERMSIG(x) ((x) & 0x7f)
25809 #endif
25810 #ifndef WIFEXITED
25811 # define WIFEXITED(x) (WTERMSIG (x) == 0)
25812 #endif
25813 #ifndef WEXITSTATUS
25814 # define WEXITSTATUS(x) (((x) >> 8) & 0xff)
25815 #endif
25816
25817 #define CHILD_PROGRAM_FILENAME "/non/exist/ent"
25818
25819 static int
25820 fd_safer (int fd)
25821 {
25822   if (0 <= fd && fd <= 2)
25823     {
25824       int f = fd_safer (dup (fd));
25825       int e = errno;
25826       close (fd);
25827       errno = e;
25828       fd = f;
25829     }
25830
25831   return fd;
25832 }
25833
25834 int
25835 main ()
25836 {
25837   char *argv[2] = { CHILD_PROGRAM_FILENAME, NULL };
25838   int ofd[2];
25839   sigset_t blocked_signals;
25840   sigset_t fatal_signal_set;
25841   posix_spawn_file_actions_t actions;
25842   bool actions_allocated;
25843   posix_spawnattr_t attrs;
25844   bool attrs_allocated;
25845   int err;
25846   pid_t child;
25847   int status;
25848   int exitstatus;
25849
25850   setvbuf (stdout, NULL, _IOFBF, 0);
25851   puts ("This should be seen only once.");
25852   if (pipe (ofd) < 0 || (ofd[1] = fd_safer (ofd[1])) < 0)
25853     {
25854       perror ("cannot create pipe");
25855       exit (1);
25856     }
25857   sigprocmask (SIG_SETMASK, NULL, &blocked_signals);
25858   sigemptyset (&fatal_signal_set);
25859   sigaddset (&fatal_signal_set, SIGINT);
25860   sigaddset (&fatal_signal_set, SIGTERM);
25861   sigaddset (&fatal_signal_set, SIGHUP);
25862   sigaddset (&fatal_signal_set, SIGPIPE);
25863   sigprocmask (SIG_BLOCK, &fatal_signal_set, NULL);
25864   actions_allocated = false;
25865   attrs_allocated = false;
25866   if ((err = posix_spawn_file_actions_init (&actions)) != 0
25867       || (actions_allocated = true,
25868           (err = posix_spawn_file_actions_adddup2 (&actions, ofd[0], STDIN_FILENO)) != 0
25869           || (err = posix_spawn_file_actions_addclose (&actions, ofd[0])) != 0
25870           || (err = posix_spawn_file_actions_addclose (&actions, ofd[1])) != 0
25871           || (err = posix_spawnattr_init (&attrs)) != 0
25872           || (attrs_allocated = true,
25873               (err = posix_spawnattr_setsigmask (&attrs, &blocked_signals)) != 0
25874               || (err = posix_spawnattr_setflags (&attrs, POSIX_SPAWN_SETSIGMASK)) != 0)
25875           || (err = posix_spawnp (&child, CHILD_PROGRAM_FILENAME, &actions, &attrs, argv, environ)) != 0))
25876     {
25877       if (actions_allocated)
25878         posix_spawn_file_actions_destroy (&actions);
25879       if (attrs_allocated)
25880         posix_spawnattr_destroy (&attrs);
25881       sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL);
25882       if (err == ENOENT)
25883         return 0;
25884       else
25885         {
25886           errno = err;
25887           perror ("subprocess failed");
25888           exit (1);
25889         }
25890     }
25891   posix_spawn_file_actions_destroy (&actions);
25892   posix_spawnattr_destroy (&attrs);
25893   sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL);
25894   close (ofd[0]);
25895   close (ofd[1]);
25896   status = 0;
25897   while (waitpid (child, &status, 0) != child)
25898     ;
25899   if (!WIFEXITED (status))
25900     {
25901       fprintf (stderr, "subprocess terminated with unexpected wait status %d\n", status);
25902       exit (1);
25903     }
25904   exitstatus = WEXITSTATUS (status);
25905   if (exitstatus != 127)
25906     {
25907       fprintf (stderr, "subprocess terminated with unexpected exit status %d\n", exitstatus);
25908       exit (1);
25909     }
25910   return 0;
25911 }
25912
25913 _ACEOF
25914 if ac_fn_c_try_link "$LINENO"; then :
25915   if test -s conftest$ac_exeext \
25916              && ./conftest$ac_exeext > conftest.out \
25917              && echo 'This should be seen only once.' > conftest.ok \
25918              && cmp conftest.out conftest.ok > /dev/null; then
25919             gl_cv_func_posix_spawn_works=yes
25920           else
25921             gl_cv_func_posix_spawn_works=no
25922           fi
25923 else
25924   gl_cv_func_posix_spawn_works=no
25925 fi
25926 rm -f core conftest.err conftest.$ac_objext \
25927     conftest$ac_exeext conftest.$ac_ext
25928        if test $gl_cv_func_posix_spawn_works = yes; then
25929          if test "$cross_compiling" = yes; then :
25930   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25932 as_fn_error "cannot run test program while cross compiling
25933 See \`config.log' for more details." "$LINENO" 5; }
25934 else
25935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25936 /* end confdefs.h.  */
25937
25938 /* Test whether posix_spawn_file_actions_addopen supports filename arguments
25939    that contain special characters such as '*'.  */
25940
25941 #include <errno.h>
25942 #include <fcntl.h>
25943 #include <signal.h>
25944 #include <spawn.h>
25945 #include <stdbool.h>
25946 #include <stdio.h>
25947 #include <string.h>
25948 #include <unistd.h>
25949 #include <sys/types.h>
25950 #include <sys/wait.h>
25951
25952 extern char **environ;
25953
25954 #ifndef STDIN_FILENO
25955 # define STDIN_FILENO 0
25956 #endif
25957 #ifndef STDOUT_FILENO
25958 # define STDOUT_FILENO 1
25959 #endif
25960 #ifndef STDERR_FILENO
25961 # define STDERR_FILENO 2
25962 #endif
25963
25964 #ifndef WTERMSIG
25965 # define WTERMSIG(x) ((x) & 0x7f)
25966 #endif
25967 #ifndef WIFEXITED
25968 # define WIFEXITED(x) (WTERMSIG (x) == 0)
25969 #endif
25970 #ifndef WEXITSTATUS
25971 # define WEXITSTATUS(x) (((x) >> 8) & 0xff)
25972 #endif
25973
25974 #define CHILD_PROGRAM_FILENAME "conftest"
25975 #define DATA_FILENAME "conftest%=*#?"
25976
25977 static int
25978 parent_main (void)
25979 {
25980   FILE *fp;
25981   char *argv[3] = { CHILD_PROGRAM_FILENAME, "-child", NULL };
25982   posix_spawn_file_actions_t actions;
25983   bool actions_allocated;
25984   int err;
25985   pid_t child;
25986   int status;
25987   int exitstatus;
25988
25989   /* Create a data file with specific contents.  */
25990   fp = fopen (DATA_FILENAME, "wb");
25991   if (fp == NULL)
25992     {
25993       perror ("cannot create data file");
25994       return 1;
25995     }
25996   fwrite ("Halle Potta", 1, 11, fp);
25997   if (fflush (fp) || fclose (fp))
25998     {
25999       perror ("cannot prepare data file");
26000       return 1;
26001     }
26002
26003   /* Avoid reading from our stdin, as it could block.  */
26004   freopen ("/dev/null", "rb", stdin);
26005
26006   /* Test whether posix_spawn_file_actions_addopen with this file name
26007      actually works, but spawning a child that reads from this file.  */
26008   actions_allocated = false;
26009   if ((err = posix_spawn_file_actions_init (&actions)) != 0
26010       || (actions_allocated = true,
26011           (err = posix_spawn_file_actions_addopen (&actions, STDIN_FILENO, DATA_FILENAME, O_RDONLY, 0600)) != 0
26012           || (err = posix_spawn (&child, CHILD_PROGRAM_FILENAME, &actions, NULL, argv, environ)) != 0))
26013     {
26014       if (actions_allocated)
26015         posix_spawn_file_actions_destroy (&actions);
26016       errno = err;
26017       perror ("subprocess failed");
26018       return 1;
26019     }
26020   posix_spawn_file_actions_destroy (&actions);
26021   status = 0;
26022   while (waitpid (child, &status, 0) != child)
26023     ;
26024   if (!WIFEXITED (status))
26025     {
26026       fprintf (stderr, "subprocess terminated with unexpected wait status %d\n", status);
26027       return 1;
26028     }
26029   exitstatus = WEXITSTATUS (status);
26030   if (exitstatus != 0)
26031     {
26032       fprintf (stderr, "subprocess terminated with unexpected exit status %d\n", exitstatus);
26033       return 1;
26034     }
26035   return 0;
26036 }
26037
26038 static int
26039 child_main (void)
26040 {
26041   char buf[1024];
26042
26043   /* See if reading from STDIN_FILENO yields the expected contents.  */
26044   if (fread (buf, 1, sizeof (buf), stdin) == 11
26045       && memcmp (buf, "Halle Potta", 11) == 0)
26046     return 0;
26047   else
26048     return 2;
26049 }
26050
26051 static void
26052 cleanup_then_die (int sig)
26053 {
26054   /* Clean up data file.  */
26055   unlink (DATA_FILENAME);
26056
26057   /* Re-raise the signal and die from it.  */
26058   signal (sig, SIG_DFL);
26059   raise (sig);
26060 }
26061
26062 int
26063 main (int argc, char *argv[])
26064 {
26065   int exitstatus;
26066
26067   if (!(argc > 1 && strcmp (argv[1], "-child") == 0))
26068     {
26069       /* This is the parent process.  */
26070       signal (SIGINT, cleanup_then_die);
26071       signal (SIGTERM, cleanup_then_die);
26072       #ifdef SIGHUP
26073       signal (SIGHUP, cleanup_then_die);
26074       #endif
26075
26076       exitstatus = parent_main ();
26077     }
26078   else
26079     {
26080       /* This is the child process.  */
26081
26082       exitstatus = child_main ();
26083     }
26084   unlink (DATA_FILENAME);
26085   return exitstatus;
26086 }
26087
26088 _ACEOF
26089 if ac_fn_c_try_run "$LINENO"; then :
26090
26091 else
26092   gl_cv_func_posix_spawn_works=no
26093 fi
26094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26095   conftest.$ac_objext conftest.beam conftest.$ac_ext
26096 fi
26097
26098        fi
26099      else
26100        case "$host_os" in
26101          aix*) gl_cv_func_posix_spawn_works="guessing no";;
26102          *)    gl_cv_func_posix_spawn_works="guessing yes";;
26103        esac
26104      fi
26105
26106 fi
26107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_posix_spawn_works" >&5
26108 $as_echo "$gl_cv_func_posix_spawn_works" >&6; }
26109
26110     case "$gl_cv_func_posix_spawn_works" in
26111       *yes)
26112                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawnattr_setschedpolicy is supported" >&5
26113 $as_echo_n "checking whether posix_spawnattr_setschedpolicy is supported... " >&6; }
26114 if test "${gl_cv_func_spawnattr_setschedpolicy+set}" = set; then :
26115   $as_echo_n "(cached) " >&6
26116 else
26117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26118 /* end confdefs.h.  */
26119
26120 #include <spawn.h>
26121 #if POSIX_SPAWN_SETSCHEDULER
26122  POSIX scheduling supported
26123 #endif
26124
26125 _ACEOF
26126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26127   $EGREP "POSIX scheduling supported" >/dev/null 2>&1; then :
26128   gl_cv_func_spawnattr_setschedpolicy=yes
26129 else
26130   gl_cv_func_spawnattr_setschedpolicy=no
26131 fi
26132 rm -f conftest*
26133
26134
26135 fi
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_spawnattr_setschedpolicy" >&5
26137 $as_echo "$gl_cv_func_spawnattr_setschedpolicy" >&6; }
26138                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawnattr_setschedparam is supported" >&5
26139 $as_echo_n "checking whether posix_spawnattr_setschedparam is supported... " >&6; }
26140 if test "${gl_cv_func_spawnattr_setschedparam+set}" = set; then :
26141   $as_echo_n "(cached) " >&6
26142 else
26143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26144 /* end confdefs.h.  */
26145
26146 #include <spawn.h>
26147 #if POSIX_SPAWN_SETSCHEDPARAM
26148  POSIX scheduling supported
26149 #endif
26150
26151 _ACEOF
26152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26153   $EGREP "POSIX scheduling supported" >/dev/null 2>&1; then :
26154   gl_cv_func_spawnattr_setschedparam=yes
26155 else
26156   gl_cv_func_spawnattr_setschedparam=no
26157 fi
26158 rm -f conftest*
26159
26160
26161 fi
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_spawnattr_setschedparam" >&5
26163 $as_echo "$gl_cv_func_spawnattr_setschedparam" >&6; }
26164         ;;
26165       *) REPLACE_POSIX_SPAWN=1 ;;
26166     esac
26167   fi
26168
26169
26170                               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
26171 $as_echo_n "checking for shared library path variable... " >&6; }
26172 if test "${acl_cv_libpath+set}" = set; then :
26173   $as_echo_n "(cached) " >&6
26174 else
26175
26176     LD="$LD" \
26177     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
26178     . ./conftest.sh
26179     rm -f ./conftest.sh
26180     acl_cv_libpath=${acl_cv_shlibpath_var:-none}
26181
26182 fi
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
26184 $as_echo "$acl_cv_libpath" >&6; }
26185   shlibpath_var="$acl_cv_shlibpath_var"
26186
26187
26188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
26189 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
26190   # Check whether --enable-relocatable was given.
26191 if test "${enable_relocatable+set}" = set; then :
26192   enableval=$enable_relocatable; if test "$enableval" != no; then
26193        RELOCATABLE=yes
26194      else
26195        RELOCATABLE=no
26196      fi
26197
26198 else
26199   RELOCATABLE=no
26200 fi
26201
26202
26203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
26204 $as_echo "$RELOCATABLE" >&6; }
26205
26206
26207
26208     if test "X$prefix" = "XNONE"; then
26209     reloc_final_prefix="$ac_default_prefix"
26210   else
26211     reloc_final_prefix="$prefix"
26212   fi
26213
26214 cat >>confdefs.h <<_ACEOF
26215 #define INSTALLPREFIX "${reloc_final_prefix}"
26216 _ACEOF
26217
26218   if test $RELOCATABLE = yes; then
26219
26220 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
26221
26222   fi
26223
26224
26225
26226
26227
26228
26229   is_noop=no
26230   use_elf_origin_trick=no
26231   if test $RELOCATABLE = yes; then
26232     # --enable-relocatable implies --disable-rpath
26233     enable_rpath=no
26234     for ac_header in mach-o/dyld.h
26235 do :
26236   ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
26237 if test "x$ac_cv_header_mach_o_dyld_h" = x""yes; then :
26238   cat >>confdefs.h <<_ACEOF
26239 #define HAVE_MACH_O_DYLD_H 1
26240 _ACEOF
26241
26242 fi
26243
26244 done
26245
26246     for ac_func in _NSGetExecutablePath
26247 do :
26248   ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
26249 if test "x$ac_cv_func__NSGetExecutablePath" = x""yes; then :
26250   cat >>confdefs.h <<_ACEOF
26251 #define HAVE__NSGETEXECUTABLEPATH 1
26252 _ACEOF
26253
26254 fi
26255 done
26256
26257     case "$host_os" in
26258       mingw*) is_noop=yes ;;
26259       linux*) use_elf_origin_trick=yes ;;
26260     esac
26261     if test $is_noop = yes; then
26262       RELOCATABLE_LDFLAGS=:
26263
26264     else
26265       if test $use_elf_origin_trick = yes; then
26266                 case "$ac_aux_dir" in
26267           /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
26268           *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
26269         esac
26270         RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
26271
26272       else
26273                                         INSTALL_PROGRAM_ENV="RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_DESTDIR=\"\$(DESTDIR)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_STRIP_PROG=\"\$(RELOCATABLE_STRIP)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\""
26274
26275         case "$ac_aux_dir" in
26276           /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
26277           *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
26278         esac
26279       fi
26280     fi
26281   fi
26282    if test $is_noop = yes || test $use_elf_origin_trick = yes; then
26283   RELOCATABLE_VIA_LD_TRUE=
26284   RELOCATABLE_VIA_LD_FALSE='#'
26285 else
26286   RELOCATABLE_VIA_LD_TRUE='#'
26287   RELOCATABLE_VIA_LD_FALSE=
26288 fi
26289
26290
26291
26292
26293
26294
26295
26296
26297       RELOCATABLE_STRIP=':'
26298
26299
26300
26301
26302
26303
26304
26305
26306
26307
26308
26309
26310
26311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system is Windows or MSDOS" >&5
26312 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
26313 if test "${ac_cv_win_or_dos+set}" = set; then :
26314   $as_echo_n "(cached) " >&6
26315 else
26316
26317         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26318 /* end confdefs.h.  */
26319
26320 int
26321 main ()
26322 {
26323
26324 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
26325 neither MSDOS nor Windows
26326 #endif
26327   ;
26328   return 0;
26329 }
26330 _ACEOF
26331 if ac_fn_c_try_compile "$LINENO"; then :
26332   ac_cv_win_or_dos=yes
26333 else
26334   ac_cv_win_or_dos=no
26335 fi
26336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26337
26338 fi
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win_or_dos" >&5
26340 $as_echo "$ac_cv_win_or_dos" >&6; }
26341
26342     if test x"$ac_cv_win_or_dos" = xyes; then
26343       ac_fs_accepts_drive_letter_prefix=1
26344       ac_fs_backslash_is_file_name_separator=1
26345       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether drive letter can start relative path" >&5
26346 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
26347 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then :
26348   $as_echo_n "(cached) " >&6
26349 else
26350
26351           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26352 /* end confdefs.h.  */
26353
26354 int
26355 main ()
26356 {
26357
26358 #if defined __CYGWIN__
26359 drive letters are always absolute
26360 #endif
26361   ;
26362   return 0;
26363 }
26364 _ACEOF
26365 if ac_fn_c_try_compile "$LINENO"; then :
26366   ac_cv_drive_letter_can_be_relative=yes
26367 else
26368   ac_cv_drive_letter_can_be_relative=no
26369 fi
26370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26371
26372 fi
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_drive_letter_can_be_relative" >&5
26374 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
26375       if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
26376         ac_fs_drive_letter_can_be_relative=1
26377       else
26378         ac_fs_drive_letter_can_be_relative=0
26379       fi
26380     else
26381       ac_fs_accepts_drive_letter_prefix=0
26382       ac_fs_backslash_is_file_name_separator=0
26383       ac_fs_drive_letter_can_be_relative=0
26384     fi
26385
26386
26387 cat >>confdefs.h <<_ACEOF
26388 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
26389 _ACEOF
26390
26391
26392
26393
26394
26395 cat >>confdefs.h <<_ACEOF
26396 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
26397 _ACEOF
26398
26399
26400
26401 cat >>confdefs.h <<_ACEOF
26402 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
26403 _ACEOF
26404
26405
26406
26407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
26408 $as_echo_n "checking for ssize_t... " >&6; }
26409 if test "${gt_cv_ssize_t+set}" = set; then :
26410   $as_echo_n "(cached) " >&6
26411 else
26412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26413 /* end confdefs.h.  */
26414 #include <sys/types.h>
26415 int
26416 main ()
26417 {
26418 int x = sizeof (ssize_t *) + sizeof (ssize_t);
26419         return !x;
26420   ;
26421   return 0;
26422 }
26423 _ACEOF
26424 if ac_fn_c_try_compile "$LINENO"; then :
26425   gt_cv_ssize_t=yes
26426 else
26427   gt_cv_ssize_t=no
26428 fi
26429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26430 fi
26431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
26432 $as_echo "$gt_cv_ssize_t" >&6; }
26433   if test $gt_cv_ssize_t = no; then
26434
26435 $as_echo "#define ssize_t int" >>confdefs.h
26436
26437   fi
26438
26439
26440
26441
26442
26443
26444
26445   GNULIB_SIGNAL_H_SIGPIPE=0;
26446   GNULIB_SIGPROCMASK=0;
26447   GNULIB_SIGACTION=0;
26448     HAVE_POSIX_SIGNALBLOCKING=1;
26449   HAVE_SIGSET_T=1;
26450   HAVE_SIGINFO_T=1;
26451   HAVE_SIGACTION=1;
26452   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
26453
26454   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
26455
26456
26457
26458
26459
26460
26461
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26463 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26464 if test "${ac_cv_type_uid_t+set}" = set; then :
26465   $as_echo_n "(cached) " >&6
26466 else
26467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26468 /* end confdefs.h.  */
26469 #include <sys/types.h>
26470
26471 _ACEOF
26472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26473   $EGREP "uid_t" >/dev/null 2>&1; then :
26474   ac_cv_type_uid_t=yes
26475 else
26476   ac_cv_type_uid_t=no
26477 fi
26478 rm -f conftest*
26479
26480 fi
26481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26482 $as_echo "$ac_cv_type_uid_t" >&6; }
26483 if test $ac_cv_type_uid_t = no; then
26484
26485 $as_echo "#define uid_t int" >>confdefs.h
26486
26487
26488 $as_echo "#define gid_t int" >>confdefs.h
26489
26490 fi
26491
26492
26493
26494
26495
26496
26497
26498
26499
26500
26501
26502
26503
26504
26505
26506
26507
26508
26509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPIPE" >&5
26510 $as_echo_n "checking for SIGPIPE... " >&6; }
26511 if test "${gl_cv_header_signal_h_SIGPIPE+set}" = set; then :
26512   $as_echo_n "(cached) " >&6
26513 else
26514
26515     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26516 /* end confdefs.h.  */
26517
26518 #include <signal.h>
26519 #if !defined SIGPIPE
26520 booboo
26521 #endif
26522
26523 _ACEOF
26524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26525   $EGREP "booboo" >/dev/null 2>&1; then :
26526   gl_cv_header_signal_h_SIGPIPE=no
26527 else
26528   gl_cv_header_signal_h_SIGPIPE=yes
26529 fi
26530 rm -f conftest*
26531
26532
26533 fi
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_signal_h_SIGPIPE" >&5
26535 $as_echo "$gl_cv_header_signal_h_SIGPIPE" >&6; }
26536
26537
26538       ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
26539 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
26540   ac_have_decl=1
26541 else
26542   ac_have_decl=0
26543 fi
26544
26545 cat >>confdefs.h <<_ACEOF
26546 #define HAVE_DECL_SNPRINTF $ac_have_decl
26547 _ACEOF
26548
26549
26550
26551
26552
26553
26554
26555
26556
26557
26558
26559
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
26561 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
26562 if test "${ac_cv_header_stdbool_h+set}" = set; then :
26563   $as_echo_n "(cached) " >&6
26564 else
26565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26566 /* end confdefs.h.  */
26567
26568           #include <stdbool.h>
26569           #ifndef bool
26570            "error: bool is not defined"
26571           #endif
26572           #ifndef false
26573            "error: false is not defined"
26574           #endif
26575           #if false
26576            "error: false is not 0"
26577           #endif
26578           #ifndef true
26579            "error: true is not defined"
26580           #endif
26581           #if true != 1
26582            "error: true is not 1"
26583           #endif
26584           #ifndef __bool_true_false_are_defined
26585            "error: __bool_true_false_are_defined is not defined"
26586           #endif
26587
26588           struct s { _Bool s: 1; _Bool t; } s;
26589
26590           char a[true == 1 ? 1 : -1];
26591           char b[false == 0 ? 1 : -1];
26592           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
26593           char d[(bool) 0.5 == true ? 1 : -1];
26594           bool e = &s;
26595           char f[(_Bool) 0.0 == false ? 1 : -1];
26596           char g[true];
26597           char h[sizeof (_Bool)];
26598           char i[sizeof s.t];
26599           enum { j = false, k = true, l = false * true, m = true * 256 };
26600           _Bool n[m];
26601           char o[sizeof n == m * sizeof n[0] ? 1 : -1];
26602           char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
26603           #if defined __xlc__ || defined __GNUC__
26604            /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
26605               reported by James Lemley on 2005-10-05; see
26606               http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
26607               This test is not quite right, since xlc is allowed to
26608               reject this program, as the initializer for xlcbug is
26609               not one of the forms that C requires support for.
26610               However, doing the test right would require a run-time
26611               test, and that would make cross-compilation harder.
26612               Let us hope that IBM fixes the xlc bug, and also adds
26613               support for this kind of constant expression.  In the
26614               meantime, this test will reject xlc, which is OK, since
26615               our stdbool.h substitute should suffice.  We also test
26616               this with GCC, where it should work, to detect more
26617               quickly whether someone messes up the test in the
26618               future.  */
26619            char digs[] = "0123456789";
26620            int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
26621           #endif
26622           /* Catch a bug in an HP-UX C compiler.  See
26623              http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
26624              http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
26625            */
26626           _Bool q = true;
26627           _Bool *pq = &q;
26628
26629 int
26630 main ()
26631 {
26632
26633           *pq |= q;
26634           *pq |= ! q;
26635           /* Refer to every declared value, to avoid compiler optimizations.  */
26636           return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
26637                   + !m + !n + !o + !p + !q + !pq);
26638
26639   ;
26640   return 0;
26641 }
26642 _ACEOF
26643 if ac_fn_c_try_compile "$LINENO"; then :
26644   ac_cv_header_stdbool_h=yes
26645 else
26646   ac_cv_header_stdbool_h=no
26647 fi
26648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26649 fi
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
26651 $as_echo "$ac_cv_header_stdbool_h" >&6; }
26652    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
26653 if test "x$ac_cv_type__Bool" = x""yes; then :
26654
26655 cat >>confdefs.h <<_ACEOF
26656 #define HAVE__BOOL 1
26657 _ACEOF
26658
26659
26660 fi
26661
26662    if test $ac_cv_header_stdbool_h = yes; then
26663
26664 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
26665
26666    fi
26667
26668
26669
26670
26671
26672
26673         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
26674 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
26675 if test "${gl_cv_prog_as_underscore+set}" = set; then :
26676   $as_echo_n "(cached) " >&6
26677 else
26678   cat > conftest.c <<EOF
26679 #ifdef __cplusplus
26680 extern "C" int foo (void);
26681 #endif
26682 int foo(void) { return 0; }
26683 EOF
26684      # Look for the assembly language name in the .s file.
26685      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
26686   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26687   (eval $ac_try) 2>&5
26688   ac_status=$?
26689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26690   test $ac_status = 0; }; } >/dev/null 2>&1
26691      if grep _foo conftest.s >/dev/null ; then
26692        gl_cv_prog_as_underscore=yes
26693      else
26694        gl_cv_prog_as_underscore=no
26695      fi
26696      rm -f conftest*
26697
26698 fi
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
26700 $as_echo "$gl_cv_prog_as_underscore" >&6; }
26701   if test $gl_cv_prog_as_underscore = yes; then
26702     USER_LABEL_PREFIX=_
26703   else
26704     USER_LABEL_PREFIX=
26705   fi
26706
26707 cat >>confdefs.h <<_ACEOF
26708 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
26709 _ACEOF
26710
26711   ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
26712
26713
26714
26715
26716
26717
26718
26719
26720
26721
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731   :
26732
26733
26734
26735
26736
26737
26738
26739      if test $gl_cv_have_include_next = yes; then
26740        gl_cv_next_string_h='<'string.h'>'
26741      else
26742        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
26743 $as_echo_n "checking absolute name of <string.h>... " >&6; }
26744 if test "${gl_cv_next_string_h+set}" = set; then :
26745   $as_echo_n "(cached) " >&6
26746 else
26747
26748           if test $ac_cv_header_string_h = yes; then
26749             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26750 /* end confdefs.h.  */
26751 #include <string.h>
26752
26753 _ACEOF
26754                                                                                                 case "$host_os" in
26755               aix*) gl_absname_cpp="$ac_cpp -C" ;;
26756               *)    gl_absname_cpp="$ac_cpp" ;;
26757             esac
26758                                                 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26759                sed -n '\#/string.h#{
26760                  s#.*"\(.*/string.h\)".*#\1#
26761                  s#^/[^/]#//&#
26762                  p
26763                  q
26764                }'`'"'
26765           else
26766             gl_cv_next_string_h='<'string.h'>'
26767           fi
26768
26769 fi
26770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
26771 $as_echo "$gl_cv_next_string_h" >&6; }
26772      fi
26773      NEXT_STRING_H=$gl_cv_next_string_h
26774
26775      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26776        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26777        gl_next_as_first_directive='<'string.h'>'
26778      else
26779        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26780        gl_next_as_first_directive=$gl_cv_next_string_h
26781      fi
26782      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
26783
26784
26785
26786
26787
26788     for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup      strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal      strverscmp; do
26789     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26791 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26792 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
26793   $as_echo_n "(cached) " >&6
26794 else
26795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26796 /* end confdefs.h.  */
26797 #include <string.h>
26798
26799 int
26800 main ()
26801 {
26802 #undef $gl_func
26803   (void) $gl_func;
26804   ;
26805   return 0;
26806 }
26807 _ACEOF
26808 if ac_fn_c_try_compile "$LINENO"; then :
26809   eval "$as_gl_Symbol=yes"
26810 else
26811   eval "$as_gl_Symbol=no"
26812 fi
26813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26814 fi
26815 eval ac_res=\$$as_gl_Symbol
26816                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26817 $as_echo "$ac_res" >&6; }
26818      eval as_val=\$$as_gl_Symbol
26819    if test "x$as_val" = x""yes; then :
26820   cat >>confdefs.h <<_ACEOF
26821 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26822 _ACEOF
26823
26824                      eval ac_cv_have_decl_$gl_func=yes
26825 fi
26826       done
26827
26828
26829
26830       ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
26831 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
26832   ac_have_decl=1
26833 else
26834   ac_have_decl=0
26835 fi
26836
26837 cat >>confdefs.h <<_ACEOF
26838 #define HAVE_DECL_STRNLEN $ac_have_decl
26839 _ACEOF
26840
26841
26842
26843
26844
26845   if test "$gl_cv_func_memchr_works" != yes; then
26846     REPLACE_STRSTR=1
26847
26848
26849
26850
26851
26852
26853
26854
26855   gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
26856
26857   fi
26858
26859
26860   GNULIB_SOCKET=0;
26861   GNULIB_CONNECT=0;
26862   GNULIB_ACCEPT=0;
26863   GNULIB_BIND=0;
26864   GNULIB_GETPEERNAME=0;
26865   GNULIB_GETSOCKNAME=0;
26866   GNULIB_GETSOCKOPT=0;
26867   GNULIB_LISTEN=0;
26868   GNULIB_RECV=0;
26869   GNULIB_SEND=0;
26870   GNULIB_RECVFROM=0;
26871   GNULIB_SENDTO=0;
26872   GNULIB_SETSOCKOPT=0;
26873   GNULIB_SHUTDOWN=0;
26874   GNULIB_ACCEPT4=0;
26875   HAVE_STRUCT_SOCKADDR_STORAGE=1;
26876   HAVE_SA_FAMILY_T=1;
26877   HAVE_ACCEPT4=1;
26878
26879
26880
26881
26882
26883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
26884 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
26885 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then :
26886   $as_echo_n "(cached) " >&6
26887 else
26888
26889       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26890 /* end confdefs.h.  */
26891 #include <sys/socket.h>
26892 int
26893 main ()
26894 {
26895
26896   ;
26897   return 0;
26898 }
26899 _ACEOF
26900 if ac_fn_c_try_compile "$LINENO"; then :
26901   gl_cv_header_sys_socket_h_selfcontained=yes
26902 else
26903   gl_cv_header_sys_socket_h_selfcontained=no
26904 fi
26905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26906
26907 fi
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
26909 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
26910   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
26911             for ac_func in shutdown
26912 do :
26913   ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
26914 if test "x$ac_cv_func_shutdown" = x""yes; then :
26915   cat >>confdefs.h <<_ACEOF
26916 #define HAVE_SHUTDOWN 1
26917 _ACEOF
26918
26919 fi
26920 done
26921
26922     if test $ac_cv_func_shutdown = yes; then
26923       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
26924 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
26925 if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then :
26926   $as_echo_n "(cached) " >&6
26927 else
26928
26929           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26930 /* end confdefs.h.  */
26931 #include <sys/socket.h>
26932 int
26933 main ()
26934 {
26935 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
26936   ;
26937   return 0;
26938 }
26939 _ACEOF
26940 if ac_fn_c_try_compile "$LINENO"; then :
26941   gl_cv_header_sys_socket_h_shut=yes
26942 else
26943   gl_cv_header_sys_socket_h_shut=no
26944 fi
26945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26946
26947 fi
26948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
26949 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
26950       if test $gl_cv_header_sys_socket_h_shut = no; then
26951         SYS_SOCKET_H='sys/socket.h'
26952       fi
26953     fi
26954   fi
26955   # We need to check for ws2tcpip.h now.
26956
26957
26958
26959
26960
26961   :
26962
26963
26964
26965
26966
26967
26968
26969      if test $gl_cv_have_include_next = yes; then
26970        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
26971      else
26972        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
26973 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
26974 if test "${gl_cv_next_sys_socket_h+set}" = set; then :
26975   $as_echo_n "(cached) " >&6
26976 else
26977
26978           if test $ac_cv_header_sys_socket_h = yes; then
26979             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26980 /* end confdefs.h.  */
26981 #include <sys/socket.h>
26982
26983 _ACEOF
26984                                                                                                 case "$host_os" in
26985               aix*) gl_absname_cpp="$ac_cpp -C" ;;
26986               *)    gl_absname_cpp="$ac_cpp" ;;
26987             esac
26988                                                 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26989                sed -n '\#/sys/socket.h#{
26990                  s#.*"\(.*/sys/socket.h\)".*#\1#
26991                  s#^/[^/]#//&#
26992                  p
26993                  q
26994                }'`'"'
26995           else
26996             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
26997           fi
26998
26999 fi
27000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
27001 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
27002      fi
27003      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
27004
27005      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27006        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27007        gl_next_as_first_directive='<'sys/socket.h'>'
27008      else
27009        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27010        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
27011      fi
27012      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
27013
27014
27015
27016   if test $ac_cv_header_sys_socket_h = yes; then
27017     HAVE_SYS_SOCKET_H=1
27018     HAVE_WS2TCPIP_H=0
27019   else
27020     HAVE_SYS_SOCKET_H=0
27021                     for ac_header in ws2tcpip.h
27022 do :
27023   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
27024 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
27025   cat >>confdefs.h <<_ACEOF
27026 #define HAVE_WS2TCPIP_H 1
27027 _ACEOF
27028
27029 fi
27030
27031 done
27032
27033     if test $ac_cv_header_ws2tcpip_h = yes; then
27034       HAVE_WS2TCPIP_H=1
27035     else
27036       HAVE_WS2TCPIP_H=0
27037     fi
27038   fi
27039
27040
27041
27042   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
27043   /* sys/types.h is not needed according to POSIX, but the
27044      sys/socket.h in i386-unknown-freebsd4.10 and
27045      powerpc-apple-darwin5.5 required it. */
27046 #include <sys/types.h>
27047 #ifdef HAVE_SYS_SOCKET_H
27048 #include <sys/socket.h>
27049 #endif
27050 #ifdef HAVE_WS2TCPIP_H
27051 #include <ws2tcpip.h>
27052 #endif
27053
27054 "
27055 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
27056
27057 cat >>confdefs.h <<_ACEOF
27058 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
27059 _ACEOF
27060
27061
27062 fi
27063 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
27064   /* sys/types.h is not needed according to POSIX, but the
27065      sys/socket.h in i386-unknown-freebsd4.10 and
27066      powerpc-apple-darwin5.5 required it. */
27067 #include <sys/types.h>
27068 #ifdef HAVE_SYS_SOCKET_H
27069 #include <sys/socket.h>
27070 #endif
27071 #ifdef HAVE_WS2TCPIP_H
27072 #include <ws2tcpip.h>
27073 #endif
27074
27075 "
27076 if test "x$ac_cv_type_sa_family_t" = x""yes; then :
27077
27078 cat >>confdefs.h <<_ACEOF
27079 #define HAVE_SA_FAMILY_T 1
27080 _ACEOF
27081
27082
27083 fi
27084
27085   if test $ac_cv_type_struct_sockaddr_storage = no; then
27086     HAVE_STRUCT_SOCKADDR_STORAGE=0
27087   fi
27088   if test $ac_cv_type_sa_family_t = no; then
27089     HAVE_SA_FAMILY_T=0
27090   fi
27091
27092
27093
27094
27095   :
27096
27097
27098
27099
27100
27101   if test $ac_cv_header_sys_socket_h != yes; then
27102                     for ac_header in winsock2.h
27103 do :
27104   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27105 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
27106   cat >>confdefs.h <<_ACEOF
27107 #define HAVE_WINSOCK2_H 1
27108 _ACEOF
27109
27110 fi
27111
27112 done
27113
27114   fi
27115   if test "$ac_cv_header_winsock2_h" = yes; then
27116     HAVE_WINSOCK2_H=1
27117     UNISTD_H_HAVE_WINSOCK2_H=1
27118     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
27119   else
27120     HAVE_WINSOCK2_H=0
27121   fi
27122
27123
27124
27125
27126     for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
27127     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27129 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27130 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
27131   $as_echo_n "(cached) " >&6
27132 else
27133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27134 /* end confdefs.h.  */
27135
27136 /* Some systems require prerequisite headers.  */
27137 #include <sys/types.h>
27138 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
27139 # include <sys/time.h>
27140 #endif
27141 #include <sys/select.h>
27142
27143 int
27144 main ()
27145 {
27146 #undef $gl_func
27147   (void) $gl_func;
27148   ;
27149   return 0;
27150 }
27151 _ACEOF
27152 if ac_fn_c_try_compile "$LINENO"; then :
27153   eval "$as_gl_Symbol=yes"
27154 else
27155   eval "$as_gl_Symbol=no"
27156 fi
27157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27158 fi
27159 eval ac_res=\$$as_gl_Symbol
27160                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27161 $as_echo "$ac_res" >&6; }
27162      eval as_val=\$$as_gl_Symbol
27163    if test "x$as_val" = x""yes; then :
27164   cat >>confdefs.h <<_ACEOF
27165 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27166 _ACEOF
27167
27168                      eval ac_cv_have_decl_$gl_func=yes
27169 fi
27170       done
27171
27172
27173
27174   GNULIB_SELECT=0;
27175     REPLACE_SELECT=0;
27176
27177
27178
27179
27180
27181
27182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
27183 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
27184 if test "${ac_cv_header_stat_broken+set}" = set; then :
27185   $as_echo_n "(cached) " >&6
27186 else
27187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27188 /* end confdefs.h.  */
27189 #include <sys/types.h>
27190 #include <sys/stat.h>
27191
27192 #if defined S_ISBLK && defined S_IFDIR
27193 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
27194 #endif
27195
27196 #if defined S_ISBLK && defined S_IFCHR
27197 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
27198 #endif
27199
27200 #if defined S_ISLNK && defined S_IFREG
27201 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
27202 #endif
27203
27204 #if defined S_ISSOCK && defined S_IFREG
27205 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
27206 #endif
27207
27208 _ACEOF
27209 if ac_fn_c_try_compile "$LINENO"; then :
27210   ac_cv_header_stat_broken=no
27211 else
27212   ac_cv_header_stat_broken=yes
27213 fi
27214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27215 fi
27216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
27217 $as_echo "$ac_cv_header_stat_broken" >&6; }
27218 if test $ac_cv_header_stat_broken = yes; then
27219
27220 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
27221
27222 fi
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236 # Check whether --enable-largefile was given.
27237 if test "${enable_largefile+set}" = set; then :
27238   enableval=$enable_largefile;
27239 fi
27240
27241 if test "$enable_largefile" != no; then
27242
27243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
27244 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
27245 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
27246   $as_echo_n "(cached) " >&6
27247 else
27248   ac_cv_sys_largefile_CC=no
27249      if test "$GCC" != yes; then
27250        ac_save_CC=$CC
27251        while :; do
27252          # IRIX 6.2 and later do not support large files by default,
27253          # so use the C compiler's -n32 option if that helps.
27254          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27255 /* end confdefs.h.  */
27256 #include <sys/types.h>
27257  /* Check that off_t can represent 2**63 - 1 correctly.
27258     We can't simply define LARGE_OFF_T to be 9223372036854775807,
27259     since some C++ compilers masquerading as C compilers
27260     incorrectly reject 9223372036854775807.  */
27261 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
27262   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
27263                        && LARGE_OFF_T % 2147483647 == 1)
27264                       ? 1 : -1];
27265 int
27266 main ()
27267 {
27268
27269   ;
27270   return 0;
27271 }
27272 _ACEOF
27273          if ac_fn_c_try_compile "$LINENO"; then :
27274   break
27275 fi
27276 rm -f core conftest.err conftest.$ac_objext
27277          CC="$CC -n32"
27278          if ac_fn_c_try_compile "$LINENO"; then :
27279   ac_cv_sys_largefile_CC=' -n32'; break
27280 fi
27281 rm -f core conftest.err conftest.$ac_objext
27282          break
27283        done
27284        CC=$ac_save_CC
27285        rm -f conftest.$ac_ext
27286     fi
27287 fi
27288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
27289 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
27290   if test "$ac_cv_sys_largefile_CC" != no; then
27291     CC=$CC$ac_cv_sys_largefile_CC
27292   fi
27293
27294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
27295 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
27296 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
27297   $as_echo_n "(cached) " >&6
27298 else
27299   while :; do
27300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27301 /* end confdefs.h.  */
27302 #include <sys/types.h>
27303  /* Check that off_t can represent 2**63 - 1 correctly.
27304     We can't simply define LARGE_OFF_T to be 9223372036854775807,
27305     since some C++ compilers masquerading as C compilers
27306     incorrectly reject 9223372036854775807.  */
27307 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
27308   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
27309                        && LARGE_OFF_T % 2147483647 == 1)
27310                       ? 1 : -1];
27311 int
27312 main ()
27313 {
27314
27315   ;
27316   return 0;
27317 }
27318 _ACEOF
27319 if ac_fn_c_try_compile "$LINENO"; then :
27320   ac_cv_sys_file_offset_bits=no; break
27321 fi
27322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27324 /* end confdefs.h.  */
27325 #define _FILE_OFFSET_BITS 64
27326 #include <sys/types.h>
27327  /* Check that off_t can represent 2**63 - 1 correctly.
27328     We can't simply define LARGE_OFF_T to be 9223372036854775807,
27329     since some C++ compilers masquerading as C compilers
27330     incorrectly reject 9223372036854775807.  */
27331 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
27332   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
27333                        && LARGE_OFF_T % 2147483647 == 1)
27334                       ? 1 : -1];
27335 int
27336 main ()
27337 {
27338
27339   ;
27340   return 0;
27341 }
27342 _ACEOF
27343 if ac_fn_c_try_compile "$LINENO"; then :
27344   ac_cv_sys_file_offset_bits=64; break
27345 fi
27346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27347   ac_cv_sys_file_offset_bits=unknown
27348   break
27349 done
27350 fi
27351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
27352 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
27353 case $ac_cv_sys_file_offset_bits in #(
27354   no | unknown) ;;
27355   *)
27356 cat >>confdefs.h <<_ACEOF
27357 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
27358 _ACEOF
27359 ;;
27360 esac
27361 rm -rf conftest*
27362   if test $ac_cv_sys_file_offset_bits = unknown; then
27363     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
27364 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
27365 if test "${ac_cv_sys_large_files+set}" = set; then :
27366   $as_echo_n "(cached) " >&6
27367 else
27368   while :; do
27369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27370 /* end confdefs.h.  */
27371 #include <sys/types.h>
27372  /* Check that off_t can represent 2**63 - 1 correctly.
27373     We can't simply define LARGE_OFF_T to be 9223372036854775807,
27374     since some C++ compilers masquerading as C compilers
27375     incorrectly reject 9223372036854775807.  */
27376 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
27377   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
27378                        && LARGE_OFF_T % 2147483647 == 1)
27379                       ? 1 : -1];
27380 int
27381 main ()
27382 {
27383
27384   ;
27385   return 0;
27386 }
27387 _ACEOF
27388 if ac_fn_c_try_compile "$LINENO"; then :
27389   ac_cv_sys_large_files=no; break
27390 fi
27391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27393 /* end confdefs.h.  */
27394 #define _LARGE_FILES 1
27395 #include <sys/types.h>
27396  /* Check that off_t can represent 2**63 - 1 correctly.
27397     We can't simply define LARGE_OFF_T to be 9223372036854775807,
27398     since some C++ compilers masquerading as C compilers
27399     incorrectly reject 9223372036854775807.  */
27400 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
27401   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
27402                        && LARGE_OFF_T % 2147483647 == 1)
27403                       ? 1 : -1];
27404 int
27405 main ()
27406 {
27407
27408   ;
27409   return 0;
27410 }
27411 _ACEOF
27412 if ac_fn_c_try_compile "$LINENO"; then :
27413   ac_cv_sys_large_files=1; break
27414 fi
27415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27416   ac_cv_sys_large_files=unknown
27417   break
27418 done
27419 fi
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
27421 $as_echo "$ac_cv_sys_large_files" >&6; }
27422 case $ac_cv_sys_large_files in #(
27423   no | unknown) ;;
27424   *)
27425 cat >>confdefs.h <<_ACEOF
27426 #define _LARGE_FILES $ac_cv_sys_large_files
27427 _ACEOF
27428 ;;
27429 esac
27430 rm -rf conftest*
27431   fi
27432 fi
27433
27434
27435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether curses libraries may be used" >&5
27436 $as_echo_n "checking whether curses libraries may be used... " >&6; }
27437   # Check whether --enable-curses was given.
27438 if test "${enable_curses+set}" = set; then :
27439   enableval=$enable_curses; gl_curses_allowed="$enableval"
27440 else
27441   gl_curses_allowed=yes
27442 fi
27443
27444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_curses_allowed" >&5
27445 $as_echo "$gl_curses_allowed" >&6; }
27446
27447
27448
27449
27450
27451
27452
27453
27454   if test "$gl_curses_allowed" != no; then
27455
27456
27457
27458
27459
27460
27461
27462
27463     use_additional=yes
27464
27465   acl_save_prefix="$prefix"
27466   prefix="$acl_final_prefix"
27467   acl_save_exec_prefix="$exec_prefix"
27468   exec_prefix="$acl_final_exec_prefix"
27469
27470     eval additional_includedir=\"$includedir\"
27471     eval additional_libdir=\"$libdir\"
27472
27473   exec_prefix="$acl_save_exec_prefix"
27474   prefix="$acl_save_prefix"
27475
27476
27477 # Check whether --with-libncurses-prefix was given.
27478 if test "${with_libncurses_prefix+set}" = set; then :
27479   withval=$with_libncurses_prefix;
27480     if test "X$withval" = "Xno"; then
27481       use_additional=no
27482     else
27483       if test "X$withval" = "X"; then
27484
27485   acl_save_prefix="$prefix"
27486   prefix="$acl_final_prefix"
27487   acl_save_exec_prefix="$exec_prefix"
27488   exec_prefix="$acl_final_exec_prefix"
27489
27490           eval additional_includedir=\"$includedir\"
27491           eval additional_libdir=\"$libdir\"
27492
27493   exec_prefix="$acl_save_exec_prefix"
27494   prefix="$acl_save_prefix"
27495
27496       else
27497         additional_includedir="$withval/include"
27498         additional_libdir="$withval/$acl_libdirstem"
27499         if test "$acl_libdirstem2" != "$acl_libdirstem" \
27500            && ! test -d "$withval/$acl_libdirstem"; then
27501           additional_libdir="$withval/$acl_libdirstem2"
27502         fi
27503       fi
27504     fi
27505
27506 fi
27507
27508       LIBNCURSES=
27509   LTLIBNCURSES=
27510   INCNCURSES=
27511   LIBNCURSES_PREFIX=
27512       HAVE_LIBNCURSES=
27513   rpathdirs=
27514   ltrpathdirs=
27515   names_already_handled=
27516   names_next_round='ncurses '
27517   while test -n "$names_next_round"; do
27518     names_this_round="$names_next_round"
27519     names_next_round=
27520     for name in $names_this_round; do
27521       already_handled=
27522       for n in $names_already_handled; do
27523         if test "$n" = "$name"; then
27524           already_handled=yes
27525           break
27526         fi
27527       done
27528       if test -z "$already_handled"; then
27529         names_already_handled="$names_already_handled $name"
27530                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27531         eval value=\"\$HAVE_LIB$uppername\"
27532         if test -n "$value"; then
27533           if test "$value" = yes; then
27534             eval value=\"\$LIB$uppername\"
27535             test -z "$value" || LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$value"
27536             eval value=\"\$LTLIB$uppername\"
27537             test -z "$value" || LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }$value"
27538           else
27539                                     :
27540           fi
27541         else
27542                               found_dir=
27543           found_la=
27544           found_so=
27545           found_a=
27546           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
27547           if test -n "$acl_shlibext"; then
27548             shrext=".$acl_shlibext"             # typically: shrext=.so
27549           else
27550             shrext=
27551           fi
27552           if test $use_additional = yes; then
27553             dir="$additional_libdir"
27554                                     if test -n "$acl_shlibext"; then
27555               if test -f "$dir/$libname$shrext"; then
27556                 found_dir="$dir"
27557                 found_so="$dir/$libname$shrext"
27558               else
27559                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
27560                   ver=`(cd "$dir" && \
27561                         for f in "$libname$shrext".*; do echo "$f"; done \
27562                         | sed -e "s,^$libname$shrext\\\\.,," \
27563                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
27564                         | sed 1q ) 2>/dev/null`
27565                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
27566                     found_dir="$dir"
27567                     found_so="$dir/$libname$shrext.$ver"
27568                   fi
27569                 else
27570                   eval library_names=\"$acl_library_names_spec\"
27571                   for f in $library_names; do
27572                     if test -f "$dir/$f"; then
27573                       found_dir="$dir"
27574                       found_so="$dir/$f"
27575                       break
27576                     fi
27577                   done
27578                 fi
27579               fi
27580             fi
27581                         if test "X$found_dir" = "X"; then
27582               if test -f "$dir/$libname.$acl_libext"; then
27583                 found_dir="$dir"
27584                 found_a="$dir/$libname.$acl_libext"
27585               fi
27586             fi
27587             if test "X$found_dir" != "X"; then
27588               if test -f "$dir/$libname.la"; then
27589                 found_la="$dir/$libname.la"
27590               fi
27591             fi
27592           fi
27593           if test "X$found_dir" = "X"; then
27594             for x in $LDFLAGS $LTLIBNCURSES; do
27595
27596   acl_save_prefix="$prefix"
27597   prefix="$acl_final_prefix"
27598   acl_save_exec_prefix="$exec_prefix"
27599   exec_prefix="$acl_final_exec_prefix"
27600   eval x=\"$x\"
27601   exec_prefix="$acl_save_exec_prefix"
27602   prefix="$acl_save_prefix"
27603
27604               case "$x" in
27605                 -L*)
27606                   dir=`echo "X$x" | sed -e 's/^X-L//'`
27607                                     if test -n "$acl_shlibext"; then
27608                     if test -f "$dir/$libname$shrext"; then
27609                       found_dir="$dir"
27610                       found_so="$dir/$libname$shrext"
27611                     else
27612                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
27613                         ver=`(cd "$dir" && \
27614                               for f in "$libname$shrext".*; do echo "$f"; done \
27615                               | sed -e "s,^$libname$shrext\\\\.,," \
27616                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
27617                               | sed 1q ) 2>/dev/null`
27618                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
27619                           found_dir="$dir"
27620                           found_so="$dir/$libname$shrext.$ver"
27621                         fi
27622                       else
27623                         eval library_names=\"$acl_library_names_spec\"
27624                         for f in $library_names; do
27625                           if test -f "$dir/$f"; then
27626                             found_dir="$dir"
27627                             found_so="$dir/$f"
27628                             break
27629                           fi
27630                         done
27631                       fi
27632                     fi
27633                   fi
27634                                     if test "X$found_dir" = "X"; then
27635                     if test -f "$dir/$libname.$acl_libext"; then
27636                       found_dir="$dir"
27637                       found_a="$dir/$libname.$acl_libext"
27638                     fi
27639                   fi
27640                   if test "X$found_dir" != "X"; then
27641                     if test -f "$dir/$libname.la"; then
27642                       found_la="$dir/$libname.la"
27643                     fi
27644                   fi
27645                   ;;
27646               esac
27647               if test "X$found_dir" != "X"; then
27648                 break
27649               fi
27650             done
27651           fi
27652           if test "X$found_dir" != "X"; then
27653                         LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-L$found_dir -l$name"
27654             if test "X$found_so" != "X"; then
27655                                                         if test "$enable_rpath" = no \
27656                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
27657                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
27658                                 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
27659               else
27660                                                                                 haveit=
27661                 for x in $ltrpathdirs; do
27662                   if test "X$x" = "X$found_dir"; then
27663                     haveit=yes
27664                     break
27665                   fi
27666                 done
27667                 if test -z "$haveit"; then
27668                   ltrpathdirs="$ltrpathdirs $found_dir"
27669                 fi
27670                                 if test "$acl_hardcode_direct" = yes; then
27671                                                       LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
27672                 else
27673                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
27674                                                             LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
27675                                                             haveit=
27676                     for x in $rpathdirs; do
27677                       if test "X$x" = "X$found_dir"; then
27678                         haveit=yes
27679                         break
27680                       fi
27681                     done
27682                     if test -z "$haveit"; then
27683                       rpathdirs="$rpathdirs $found_dir"
27684                     fi
27685                   else
27686                                                                                 haveit=
27687                     for x in $LDFLAGS $LIBNCURSES; do
27688
27689   acl_save_prefix="$prefix"
27690   prefix="$acl_final_prefix"
27691   acl_save_exec_prefix="$exec_prefix"
27692   exec_prefix="$acl_final_exec_prefix"
27693   eval x=\"$x\"
27694   exec_prefix="$acl_save_exec_prefix"
27695   prefix="$acl_save_prefix"
27696
27697                       if test "X$x" = "X-L$found_dir"; then
27698                         haveit=yes
27699                         break
27700                       fi
27701                     done
27702                     if test -z "$haveit"; then
27703                       LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$found_dir"
27704                     fi
27705                     if test "$acl_hardcode_minus_L" != no; then
27706                                                                                         LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
27707                     else
27708                                                                                                                                                                                 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-l$name"
27709                     fi
27710                   fi
27711                 fi
27712               fi
27713             else
27714               if test "X$found_a" != "X"; then
27715                                 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_a"
27716               else
27717                                                 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$found_dir -l$name"
27718               fi
27719             fi
27720                         additional_includedir=
27721             case "$found_dir" in
27722               */$acl_libdirstem | */$acl_libdirstem/)
27723                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
27724                 if test "$name" = 'ncurses'; then
27725                   LIBNCURSES_PREFIX="$basedir"
27726                 fi
27727                 additional_includedir="$basedir/include"
27728                 ;;
27729               */$acl_libdirstem2 | */$acl_libdirstem2/)
27730                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
27731                 if test "$name" = 'ncurses'; then
27732                   LIBNCURSES_PREFIX="$basedir"
27733                 fi
27734                 additional_includedir="$basedir/include"
27735                 ;;
27736             esac
27737             if test "X$additional_includedir" != "X"; then
27738                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
27739                 haveit=
27740                 if test "X$additional_includedir" = "X/usr/local/include"; then
27741                   if test -n "$GCC"; then
27742                     case $host_os in
27743                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27744                     esac
27745                   fi
27746                 fi
27747                 if test -z "$haveit"; then
27748                   for x in $CPPFLAGS $INCNCURSES; do
27749
27750   acl_save_prefix="$prefix"
27751   prefix="$acl_final_prefix"
27752   acl_save_exec_prefix="$exec_prefix"
27753   exec_prefix="$acl_final_exec_prefix"
27754   eval x=\"$x\"
27755   exec_prefix="$acl_save_exec_prefix"
27756   prefix="$acl_save_prefix"
27757
27758                     if test "X$x" = "X-I$additional_includedir"; then
27759                       haveit=yes
27760                       break
27761                     fi
27762                   done
27763                   if test -z "$haveit"; then
27764                     if test -d "$additional_includedir"; then
27765                                             INCNCURSES="${INCNCURSES}${INCNCURSES:+ }-I$additional_includedir"
27766                     fi
27767                   fi
27768                 fi
27769               fi
27770             fi
27771                         if test -n "$found_la"; then
27772                                                         save_libdir="$libdir"
27773               case "$found_la" in
27774                 */* | *\\*) . "$found_la" ;;
27775                 *) . "./$found_la" ;;
27776               esac
27777               libdir="$save_libdir"
27778                             for dep in $dependency_libs; do
27779                 case "$dep" in
27780                   -L*)
27781                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27782                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
27783                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
27784                       haveit=
27785                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
27786                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
27787                         if test -n "$GCC"; then
27788                           case $host_os in
27789                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27790                           esac
27791                         fi
27792                       fi
27793                       if test -z "$haveit"; then
27794                         haveit=
27795                         for x in $LDFLAGS $LIBNCURSES; do
27796
27797   acl_save_prefix="$prefix"
27798   prefix="$acl_final_prefix"
27799   acl_save_exec_prefix="$exec_prefix"
27800   exec_prefix="$acl_final_exec_prefix"
27801   eval x=\"$x\"
27802   exec_prefix="$acl_save_exec_prefix"
27803   prefix="$acl_save_prefix"
27804
27805                           if test "X$x" = "X-L$additional_libdir"; then
27806                             haveit=yes
27807                             break
27808                           fi
27809                         done
27810                         if test -z "$haveit"; then
27811                           if test -d "$additional_libdir"; then
27812                                                         LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$additional_libdir"
27813                           fi
27814                         fi
27815                         haveit=
27816                         for x in $LDFLAGS $LTLIBNCURSES; do
27817
27818   acl_save_prefix="$prefix"
27819   prefix="$acl_final_prefix"
27820   acl_save_exec_prefix="$exec_prefix"
27821   exec_prefix="$acl_final_exec_prefix"
27822   eval x=\"$x\"
27823   exec_prefix="$acl_save_exec_prefix"
27824   prefix="$acl_save_prefix"
27825
27826                           if test "X$x" = "X-L$additional_libdir"; then
27827                             haveit=yes
27828                             break
27829                           fi
27830                         done
27831                         if test -z "$haveit"; then
27832                           if test -d "$additional_libdir"; then
27833                                                         LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-L$additional_libdir"
27834                           fi
27835                         fi
27836                       fi
27837                     fi
27838                     ;;
27839                   -R*)
27840                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
27841                     if test "$enable_rpath" != no; then
27842                                                                   haveit=
27843                       for x in $rpathdirs; do
27844                         if test "X$x" = "X$dir"; then
27845                           haveit=yes
27846                           break
27847                         fi
27848                       done
27849                       if test -z "$haveit"; then
27850                         rpathdirs="$rpathdirs $dir"
27851                       fi
27852                                                                   haveit=
27853                       for x in $ltrpathdirs; do
27854                         if test "X$x" = "X$dir"; then
27855                           haveit=yes
27856                           break
27857                         fi
27858                       done
27859                       if test -z "$haveit"; then
27860                         ltrpathdirs="$ltrpathdirs $dir"
27861                       fi
27862                     fi
27863                     ;;
27864                   -l*)
27865                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27866                     ;;
27867                   *.la)
27868                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27869                     ;;
27870                   *)
27871                                         LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$dep"
27872                     LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }$dep"
27873                     ;;
27874                 esac
27875               done
27876             fi
27877           else
27878                                                             LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-l$name"
27879             LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-l$name"
27880           fi
27881         fi
27882       fi
27883     done
27884   done
27885   if test "X$rpathdirs" != "X"; then
27886     if test -n "$acl_hardcode_libdir_separator"; then
27887                         alldirs=
27888       for found_dir in $rpathdirs; do
27889         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
27890       done
27891             acl_save_libdir="$libdir"
27892       libdir="$alldirs"
27893       eval flag=\"$acl_hardcode_libdir_flag_spec\"
27894       libdir="$acl_save_libdir"
27895       LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$flag"
27896     else
27897             for found_dir in $rpathdirs; do
27898         acl_save_libdir="$libdir"
27899         libdir="$found_dir"
27900         eval flag=\"$acl_hardcode_libdir_flag_spec\"
27901         libdir="$acl_save_libdir"
27902         LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$flag"
27903       done
27904     fi
27905   fi
27906   if test "X$ltrpathdirs" != "X"; then
27907             for found_dir in $ltrpathdirs; do
27908       LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-R$found_dir"
27909     done
27910   fi
27911
27912
27913
27914
27915
27916
27917
27918
27919
27920
27921
27922
27923
27924
27925     use_additional=yes
27926
27927   acl_save_prefix="$prefix"
27928   prefix="$acl_final_prefix"
27929   acl_save_exec_prefix="$exec_prefix"
27930   exec_prefix="$acl_final_exec_prefix"
27931
27932     eval additional_includedir=\"$includedir\"
27933     eval additional_libdir=\"$libdir\"
27934
27935   exec_prefix="$acl_save_exec_prefix"
27936   prefix="$acl_save_prefix"
27937
27938
27939 # Check whether --with-libtermcap-prefix was given.
27940 if test "${with_libtermcap_prefix+set}" = set; then :
27941   withval=$with_libtermcap_prefix;
27942     if test "X$withval" = "Xno"; then
27943       use_additional=no
27944     else
27945       if test "X$withval" = "X"; then
27946
27947   acl_save_prefix="$prefix"
27948   prefix="$acl_final_prefix"
27949   acl_save_exec_prefix="$exec_prefix"
27950   exec_prefix="$acl_final_exec_prefix"
27951
27952           eval additional_includedir=\"$includedir\"
27953           eval additional_libdir=\"$libdir\"
27954
27955   exec_prefix="$acl_save_exec_prefix"
27956   prefix="$acl_save_prefix"
27957
27958       else
27959         additional_includedir="$withval/include"
27960         additional_libdir="$withval/$acl_libdirstem"
27961         if test "$acl_libdirstem2" != "$acl_libdirstem" \
27962            && ! test -d "$withval/$acl_libdirstem"; then
27963           additional_libdir="$withval/$acl_libdirstem2"
27964         fi
27965       fi
27966     fi
27967
27968 fi
27969
27970       LIBTERMCAP=
27971   LTLIBTERMCAP=
27972   INCTERMCAP=
27973   LIBTERMCAP_PREFIX=
27974       HAVE_LIBTERMCAP=
27975   rpathdirs=
27976   ltrpathdirs=
27977   names_already_handled=
27978   names_next_round='termcap '
27979   while test -n "$names_next_round"; do
27980     names_this_round="$names_next_round"
27981     names_next_round=
27982     for name in $names_this_round; do
27983       already_handled=
27984       for n in $names_already_handled; do
27985         if test "$n" = "$name"; then
27986           already_handled=yes
27987           break
27988         fi
27989       done
27990       if test -z "$already_handled"; then
27991         names_already_handled="$names_already_handled $name"
27992                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27993         eval value=\"\$HAVE_LIB$uppername\"
27994         if test -n "$value"; then
27995           if test "$value" = yes; then
27996             eval value=\"\$LIB$uppername\"
27997             test -z "$value" || LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$value"
27998             eval value=\"\$LTLIB$uppername\"
27999             test -z "$value" || LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }$value"
28000           else
28001                                     :
28002           fi
28003         else
28004                               found_dir=
28005           found_la=
28006           found_so=
28007           found_a=
28008           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
28009           if test -n "$acl_shlibext"; then
28010             shrext=".$acl_shlibext"             # typically: shrext=.so
28011           else
28012             shrext=
28013           fi
28014           if test $use_additional = yes; then
28015             dir="$additional_libdir"
28016                                     if test -n "$acl_shlibext"; then
28017               if test -f "$dir/$libname$shrext"; then
28018                 found_dir="$dir"
28019                 found_so="$dir/$libname$shrext"
28020               else
28021                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28022                   ver=`(cd "$dir" && \
28023                         for f in "$libname$shrext".*; do echo "$f"; done \
28024                         | sed -e "s,^$libname$shrext\\\\.,," \
28025                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
28026                         | sed 1q ) 2>/dev/null`
28027                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
28028                     found_dir="$dir"
28029                     found_so="$dir/$libname$shrext.$ver"
28030                   fi
28031                 else
28032                   eval library_names=\"$acl_library_names_spec\"
28033                   for f in $library_names; do
28034                     if test -f "$dir/$f"; then
28035                       found_dir="$dir"
28036                       found_so="$dir/$f"
28037                       break
28038                     fi
28039                   done
28040                 fi
28041               fi
28042             fi
28043                         if test "X$found_dir" = "X"; then
28044               if test -f "$dir/$libname.$acl_libext"; then
28045                 found_dir="$dir"
28046                 found_a="$dir/$libname.$acl_libext"
28047               fi
28048             fi
28049             if test "X$found_dir" != "X"; then
28050               if test -f "$dir/$libname.la"; then
28051                 found_la="$dir/$libname.la"
28052               fi
28053             fi
28054           fi
28055           if test "X$found_dir" = "X"; then
28056             for x in $LDFLAGS $LTLIBTERMCAP; do
28057
28058   acl_save_prefix="$prefix"
28059   prefix="$acl_final_prefix"
28060   acl_save_exec_prefix="$exec_prefix"
28061   exec_prefix="$acl_final_exec_prefix"
28062   eval x=\"$x\"
28063   exec_prefix="$acl_save_exec_prefix"
28064   prefix="$acl_save_prefix"
28065
28066               case "$x" in
28067                 -L*)
28068                   dir=`echo "X$x" | sed -e 's/^X-L//'`
28069                                     if test -n "$acl_shlibext"; then
28070                     if test -f "$dir/$libname$shrext"; then
28071                       found_dir="$dir"
28072                       found_so="$dir/$libname$shrext"
28073                     else
28074                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28075                         ver=`(cd "$dir" && \
28076                               for f in "$libname$shrext".*; do echo "$f"; done \
28077                               | sed -e "s,^$libname$shrext\\\\.,," \
28078                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
28079                               | sed 1q ) 2>/dev/null`
28080                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
28081                           found_dir="$dir"
28082                           found_so="$dir/$libname$shrext.$ver"
28083                         fi
28084                       else
28085                         eval library_names=\"$acl_library_names_spec\"
28086                         for f in $library_names; do
28087                           if test -f "$dir/$f"; then
28088                             found_dir="$dir"
28089                             found_so="$dir/$f"
28090                             break
28091                           fi
28092                         done
28093                       fi
28094                     fi
28095                   fi
28096                                     if test "X$found_dir" = "X"; then
28097                     if test -f "$dir/$libname.$acl_libext"; then
28098                       found_dir="$dir"
28099                       found_a="$dir/$libname.$acl_libext"
28100                     fi
28101                   fi
28102                   if test "X$found_dir" != "X"; then
28103                     if test -f "$dir/$libname.la"; then
28104                       found_la="$dir/$libname.la"
28105                     fi
28106                   fi
28107                   ;;
28108               esac
28109               if test "X$found_dir" != "X"; then
28110                 break
28111               fi
28112             done
28113           fi
28114           if test "X$found_dir" != "X"; then
28115                         LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-L$found_dir -l$name"
28116             if test "X$found_so" != "X"; then
28117                                                         if test "$enable_rpath" = no \
28118                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
28119                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
28120                                 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
28121               else
28122                                                                                 haveit=
28123                 for x in $ltrpathdirs; do
28124                   if test "X$x" = "X$found_dir"; then
28125                     haveit=yes
28126                     break
28127                   fi
28128                 done
28129                 if test -z "$haveit"; then
28130                   ltrpathdirs="$ltrpathdirs $found_dir"
28131                 fi
28132                                 if test "$acl_hardcode_direct" = yes; then
28133                                                       LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
28134                 else
28135                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
28136                                                             LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
28137                                                             haveit=
28138                     for x in $rpathdirs; do
28139                       if test "X$x" = "X$found_dir"; then
28140                         haveit=yes
28141                         break
28142                       fi
28143                     done
28144                     if test -z "$haveit"; then
28145                       rpathdirs="$rpathdirs $found_dir"
28146                     fi
28147                   else
28148                                                                                 haveit=
28149                     for x in $LDFLAGS $LIBTERMCAP; do
28150
28151   acl_save_prefix="$prefix"
28152   prefix="$acl_final_prefix"
28153   acl_save_exec_prefix="$exec_prefix"
28154   exec_prefix="$acl_final_exec_prefix"
28155   eval x=\"$x\"
28156   exec_prefix="$acl_save_exec_prefix"
28157   prefix="$acl_save_prefix"
28158
28159                       if test "X$x" = "X-L$found_dir"; then
28160                         haveit=yes
28161                         break
28162                       fi
28163                     done
28164                     if test -z "$haveit"; then
28165                       LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$found_dir"
28166                     fi
28167                     if test "$acl_hardcode_minus_L" != no; then
28168                                                                                         LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
28169                     else
28170                                                                                                                                                                                 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-l$name"
28171                     fi
28172                   fi
28173                 fi
28174               fi
28175             else
28176               if test "X$found_a" != "X"; then
28177                                 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_a"
28178               else
28179                                                 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$found_dir -l$name"
28180               fi
28181             fi
28182                         additional_includedir=
28183             case "$found_dir" in
28184               */$acl_libdirstem | */$acl_libdirstem/)
28185                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
28186                 if test "$name" = 'termcap'; then
28187                   LIBTERMCAP_PREFIX="$basedir"
28188                 fi
28189                 additional_includedir="$basedir/include"
28190                 ;;
28191               */$acl_libdirstem2 | */$acl_libdirstem2/)
28192                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
28193                 if test "$name" = 'termcap'; then
28194                   LIBTERMCAP_PREFIX="$basedir"
28195                 fi
28196                 additional_includedir="$basedir/include"
28197                 ;;
28198             esac
28199             if test "X$additional_includedir" != "X"; then
28200                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
28201                 haveit=
28202                 if test "X$additional_includedir" = "X/usr/local/include"; then
28203                   if test -n "$GCC"; then
28204                     case $host_os in
28205                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28206                     esac
28207                   fi
28208                 fi
28209                 if test -z "$haveit"; then
28210                   for x in $CPPFLAGS $INCTERMCAP; do
28211
28212   acl_save_prefix="$prefix"
28213   prefix="$acl_final_prefix"
28214   acl_save_exec_prefix="$exec_prefix"
28215   exec_prefix="$acl_final_exec_prefix"
28216   eval x=\"$x\"
28217   exec_prefix="$acl_save_exec_prefix"
28218   prefix="$acl_save_prefix"
28219
28220                     if test "X$x" = "X-I$additional_includedir"; then
28221                       haveit=yes
28222                       break
28223                     fi
28224                   done
28225                   if test -z "$haveit"; then
28226                     if test -d "$additional_includedir"; then
28227                                             INCTERMCAP="${INCTERMCAP}${INCTERMCAP:+ }-I$additional_includedir"
28228                     fi
28229                   fi
28230                 fi
28231               fi
28232             fi
28233                         if test -n "$found_la"; then
28234                                                         save_libdir="$libdir"
28235               case "$found_la" in
28236                 */* | *\\*) . "$found_la" ;;
28237                 *) . "./$found_la" ;;
28238               esac
28239               libdir="$save_libdir"
28240                             for dep in $dependency_libs; do
28241                 case "$dep" in
28242                   -L*)
28243                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28244                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
28245                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
28246                       haveit=
28247                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
28248                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
28249                         if test -n "$GCC"; then
28250                           case $host_os in
28251                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28252                           esac
28253                         fi
28254                       fi
28255                       if test -z "$haveit"; then
28256                         haveit=
28257                         for x in $LDFLAGS $LIBTERMCAP; do
28258
28259   acl_save_prefix="$prefix"
28260   prefix="$acl_final_prefix"
28261   acl_save_exec_prefix="$exec_prefix"
28262   exec_prefix="$acl_final_exec_prefix"
28263   eval x=\"$x\"
28264   exec_prefix="$acl_save_exec_prefix"
28265   prefix="$acl_save_prefix"
28266
28267                           if test "X$x" = "X-L$additional_libdir"; then
28268                             haveit=yes
28269                             break
28270                           fi
28271                         done
28272                         if test -z "$haveit"; then
28273                           if test -d "$additional_libdir"; then
28274                                                         LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$additional_libdir"
28275                           fi
28276                         fi
28277                         haveit=
28278                         for x in $LDFLAGS $LTLIBTERMCAP; do
28279
28280   acl_save_prefix="$prefix"
28281   prefix="$acl_final_prefix"
28282   acl_save_exec_prefix="$exec_prefix"
28283   exec_prefix="$acl_final_exec_prefix"
28284   eval x=\"$x\"
28285   exec_prefix="$acl_save_exec_prefix"
28286   prefix="$acl_save_prefix"
28287
28288                           if test "X$x" = "X-L$additional_libdir"; then
28289                             haveit=yes
28290                             break
28291                           fi
28292                         done
28293                         if test -z "$haveit"; then
28294                           if test -d "$additional_libdir"; then
28295                                                         LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-L$additional_libdir"
28296                           fi
28297                         fi
28298                       fi
28299                     fi
28300                     ;;
28301                   -R*)
28302                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
28303                     if test "$enable_rpath" != no; then
28304                                                                   haveit=
28305                       for x in $rpathdirs; do
28306                         if test "X$x" = "X$dir"; then
28307                           haveit=yes
28308                           break
28309                         fi
28310                       done
28311                       if test -z "$haveit"; then
28312                         rpathdirs="$rpathdirs $dir"
28313                       fi
28314                                                                   haveit=
28315                       for x in $ltrpathdirs; do
28316                         if test "X$x" = "X$dir"; then
28317                           haveit=yes
28318                           break
28319                         fi
28320                       done
28321                       if test -z "$haveit"; then
28322                         ltrpathdirs="$ltrpathdirs $dir"
28323                       fi
28324                     fi
28325                     ;;
28326                   -l*)
28327                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28328                     ;;
28329                   *.la)
28330                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28331                     ;;
28332                   *)
28333                                         LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$dep"
28334                     LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }$dep"
28335                     ;;
28336                 esac
28337               done
28338             fi
28339           else
28340                                                             LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-l$name"
28341             LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-l$name"
28342           fi
28343         fi
28344       fi
28345     done
28346   done
28347   if test "X$rpathdirs" != "X"; then
28348     if test -n "$acl_hardcode_libdir_separator"; then
28349                         alldirs=
28350       for found_dir in $rpathdirs; do
28351         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
28352       done
28353             acl_save_libdir="$libdir"
28354       libdir="$alldirs"
28355       eval flag=\"$acl_hardcode_libdir_flag_spec\"
28356       libdir="$acl_save_libdir"
28357       LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$flag"
28358     else
28359             for found_dir in $rpathdirs; do
28360         acl_save_libdir="$libdir"
28361         libdir="$found_dir"
28362         eval flag=\"$acl_hardcode_libdir_flag_spec\"
28363         libdir="$acl_save_libdir"
28364         LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$flag"
28365       done
28366     fi
28367   fi
28368   if test "X$ltrpathdirs" != "X"; then
28369             for found_dir in $ltrpathdirs; do
28370       LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-R$found_dir"
28371     done
28372   fi
28373
28374
28375
28376
28377
28378
28379
28380
28381
28382
28383
28384
28385
28386
28387     use_additional=yes
28388
28389   acl_save_prefix="$prefix"
28390   prefix="$acl_final_prefix"
28391   acl_save_exec_prefix="$exec_prefix"
28392   exec_prefix="$acl_final_exec_prefix"
28393
28394     eval additional_includedir=\"$includedir\"
28395     eval additional_libdir=\"$libdir\"
28396
28397   exec_prefix="$acl_save_exec_prefix"
28398   prefix="$acl_save_prefix"
28399
28400
28401 # Check whether --with-libxcurses-prefix was given.
28402 if test "${with_libxcurses_prefix+set}" = set; then :
28403   withval=$with_libxcurses_prefix;
28404     if test "X$withval" = "Xno"; then
28405       use_additional=no
28406     else
28407       if test "X$withval" = "X"; then
28408
28409   acl_save_prefix="$prefix"
28410   prefix="$acl_final_prefix"
28411   acl_save_exec_prefix="$exec_prefix"
28412   exec_prefix="$acl_final_exec_prefix"
28413
28414           eval additional_includedir=\"$includedir\"
28415           eval additional_libdir=\"$libdir\"
28416
28417   exec_prefix="$acl_save_exec_prefix"
28418   prefix="$acl_save_prefix"
28419
28420       else
28421         additional_includedir="$withval/include"
28422         additional_libdir="$withval/$acl_libdirstem"
28423         if test "$acl_libdirstem2" != "$acl_libdirstem" \
28424            && ! test -d "$withval/$acl_libdirstem"; then
28425           additional_libdir="$withval/$acl_libdirstem2"
28426         fi
28427       fi
28428     fi
28429
28430 fi
28431
28432       LIBXCURSES=
28433   LTLIBXCURSES=
28434   INCXCURSES=
28435   LIBXCURSES_PREFIX=
28436       HAVE_LIBXCURSES=
28437   rpathdirs=
28438   ltrpathdirs=
28439   names_already_handled=
28440   names_next_round='xcurses '
28441   while test -n "$names_next_round"; do
28442     names_this_round="$names_next_round"
28443     names_next_round=
28444     for name in $names_this_round; do
28445       already_handled=
28446       for n in $names_already_handled; do
28447         if test "$n" = "$name"; then
28448           already_handled=yes
28449           break
28450         fi
28451       done
28452       if test -z "$already_handled"; then
28453         names_already_handled="$names_already_handled $name"
28454                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28455         eval value=\"\$HAVE_LIB$uppername\"
28456         if test -n "$value"; then
28457           if test "$value" = yes; then
28458             eval value=\"\$LIB$uppername\"
28459             test -z "$value" || LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$value"
28460             eval value=\"\$LTLIB$uppername\"
28461             test -z "$value" || LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }$value"
28462           else
28463                                     :
28464           fi
28465         else
28466                               found_dir=
28467           found_la=
28468           found_so=
28469           found_a=
28470           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
28471           if test -n "$acl_shlibext"; then
28472             shrext=".$acl_shlibext"             # typically: shrext=.so
28473           else
28474             shrext=
28475           fi
28476           if test $use_additional = yes; then
28477             dir="$additional_libdir"
28478                                     if test -n "$acl_shlibext"; then
28479               if test -f "$dir/$libname$shrext"; then
28480                 found_dir="$dir"
28481                 found_so="$dir/$libname$shrext"
28482               else
28483                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28484                   ver=`(cd "$dir" && \
28485                         for f in "$libname$shrext".*; do echo "$f"; done \
28486                         | sed -e "s,^$libname$shrext\\\\.,," \
28487                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
28488                         | sed 1q ) 2>/dev/null`
28489                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
28490                     found_dir="$dir"
28491                     found_so="$dir/$libname$shrext.$ver"
28492                   fi
28493                 else
28494                   eval library_names=\"$acl_library_names_spec\"
28495                   for f in $library_names; do
28496                     if test -f "$dir/$f"; then
28497                       found_dir="$dir"
28498                       found_so="$dir/$f"
28499                       break
28500                     fi
28501                   done
28502                 fi
28503               fi
28504             fi
28505                         if test "X$found_dir" = "X"; then
28506               if test -f "$dir/$libname.$acl_libext"; then
28507                 found_dir="$dir"
28508                 found_a="$dir/$libname.$acl_libext"
28509               fi
28510             fi
28511             if test "X$found_dir" != "X"; then
28512               if test -f "$dir/$libname.la"; then
28513                 found_la="$dir/$libname.la"
28514               fi
28515             fi
28516           fi
28517           if test "X$found_dir" = "X"; then
28518             for x in $LDFLAGS $LTLIBXCURSES; do
28519
28520   acl_save_prefix="$prefix"
28521   prefix="$acl_final_prefix"
28522   acl_save_exec_prefix="$exec_prefix"
28523   exec_prefix="$acl_final_exec_prefix"
28524   eval x=\"$x\"
28525   exec_prefix="$acl_save_exec_prefix"
28526   prefix="$acl_save_prefix"
28527
28528               case "$x" in
28529                 -L*)
28530                   dir=`echo "X$x" | sed -e 's/^X-L//'`
28531                                     if test -n "$acl_shlibext"; then
28532                     if test -f "$dir/$libname$shrext"; then
28533                       found_dir="$dir"
28534                       found_so="$dir/$libname$shrext"
28535                     else
28536                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28537                         ver=`(cd "$dir" && \
28538                               for f in "$libname$shrext".*; do echo "$f"; done \
28539                               | sed -e "s,^$libname$shrext\\\\.,," \
28540                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
28541                               | sed 1q ) 2>/dev/null`
28542                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
28543                           found_dir="$dir"
28544                           found_so="$dir/$libname$shrext.$ver"
28545                         fi
28546                       else
28547                         eval library_names=\"$acl_library_names_spec\"
28548                         for f in $library_names; do
28549                           if test -f "$dir/$f"; then
28550                             found_dir="$dir"
28551                             found_so="$dir/$f"
28552                             break
28553                           fi
28554                         done
28555                       fi
28556                     fi
28557                   fi
28558                                     if test "X$found_dir" = "X"; then
28559                     if test -f "$dir/$libname.$acl_libext"; then
28560                       found_dir="$dir"
28561                       found_a="$dir/$libname.$acl_libext"
28562                     fi
28563                   fi
28564                   if test "X$found_dir" != "X"; then
28565                     if test -f "$dir/$libname.la"; then
28566                       found_la="$dir/$libname.la"
28567                     fi
28568                   fi
28569                   ;;
28570               esac
28571               if test "X$found_dir" != "X"; then
28572                 break
28573               fi
28574             done
28575           fi
28576           if test "X$found_dir" != "X"; then
28577                         LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-L$found_dir -l$name"
28578             if test "X$found_so" != "X"; then
28579                                                         if test "$enable_rpath" = no \
28580                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
28581                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
28582                                 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
28583               else
28584                                                                                 haveit=
28585                 for x in $ltrpathdirs; do
28586                   if test "X$x" = "X$found_dir"; then
28587                     haveit=yes
28588                     break
28589                   fi
28590                 done
28591                 if test -z "$haveit"; then
28592                   ltrpathdirs="$ltrpathdirs $found_dir"
28593                 fi
28594                                 if test "$acl_hardcode_direct" = yes; then
28595                                                       LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
28596                 else
28597                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
28598                                                             LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
28599                                                             haveit=
28600                     for x in $rpathdirs; do
28601                       if test "X$x" = "X$found_dir"; then
28602                         haveit=yes
28603                         break
28604                       fi
28605                     done
28606                     if test -z "$haveit"; then
28607                       rpathdirs="$rpathdirs $found_dir"
28608                     fi
28609                   else
28610                                                                                 haveit=
28611                     for x in $LDFLAGS $LIBXCURSES; do
28612
28613   acl_save_prefix="$prefix"
28614   prefix="$acl_final_prefix"
28615   acl_save_exec_prefix="$exec_prefix"
28616   exec_prefix="$acl_final_exec_prefix"
28617   eval x=\"$x\"
28618   exec_prefix="$acl_save_exec_prefix"
28619   prefix="$acl_save_prefix"
28620
28621                       if test "X$x" = "X-L$found_dir"; then
28622                         haveit=yes
28623                         break
28624                       fi
28625                     done
28626                     if test -z "$haveit"; then
28627                       LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$found_dir"
28628                     fi
28629                     if test "$acl_hardcode_minus_L" != no; then
28630                                                                                         LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
28631                     else
28632                                                                                                                                                                                 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-l$name"
28633                     fi
28634                   fi
28635                 fi
28636               fi
28637             else
28638               if test "X$found_a" != "X"; then
28639                                 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_a"
28640               else
28641                                                 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$found_dir -l$name"
28642               fi
28643             fi
28644                         additional_includedir=
28645             case "$found_dir" in
28646               */$acl_libdirstem | */$acl_libdirstem/)
28647                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
28648                 if test "$name" = 'xcurses'; then
28649                   LIBXCURSES_PREFIX="$basedir"
28650                 fi
28651                 additional_includedir="$basedir/include"
28652                 ;;
28653               */$acl_libdirstem2 | */$acl_libdirstem2/)
28654                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
28655                 if test "$name" = 'xcurses'; then
28656                   LIBXCURSES_PREFIX="$basedir"
28657                 fi
28658                 additional_includedir="$basedir/include"
28659                 ;;
28660             esac
28661             if test "X$additional_includedir" != "X"; then
28662                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
28663                 haveit=
28664                 if test "X$additional_includedir" = "X/usr/local/include"; then
28665                   if test -n "$GCC"; then
28666                     case $host_os in
28667                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28668                     esac
28669                   fi
28670                 fi
28671                 if test -z "$haveit"; then
28672                   for x in $CPPFLAGS $INCXCURSES; do
28673
28674   acl_save_prefix="$prefix"
28675   prefix="$acl_final_prefix"
28676   acl_save_exec_prefix="$exec_prefix"
28677   exec_prefix="$acl_final_exec_prefix"
28678   eval x=\"$x\"
28679   exec_prefix="$acl_save_exec_prefix"
28680   prefix="$acl_save_prefix"
28681
28682                     if test "X$x" = "X-I$additional_includedir"; then
28683                       haveit=yes
28684                       break
28685                     fi
28686                   done
28687                   if test -z "$haveit"; then
28688                     if test -d "$additional_includedir"; then
28689                                             INCXCURSES="${INCXCURSES}${INCXCURSES:+ }-I$additional_includedir"
28690                     fi
28691                   fi
28692                 fi
28693               fi
28694             fi
28695                         if test -n "$found_la"; then
28696                                                         save_libdir="$libdir"
28697               case "$found_la" in
28698                 */* | *\\*) . "$found_la" ;;
28699                 *) . "./$found_la" ;;
28700               esac
28701               libdir="$save_libdir"
28702                             for dep in $dependency_libs; do
28703                 case "$dep" in
28704                   -L*)
28705                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28706                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
28707                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
28708                       haveit=
28709                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
28710                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
28711                         if test -n "$GCC"; then
28712                           case $host_os in
28713                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28714                           esac
28715                         fi
28716                       fi
28717                       if test -z "$haveit"; then
28718                         haveit=
28719                         for x in $LDFLAGS $LIBXCURSES; do
28720
28721   acl_save_prefix="$prefix"
28722   prefix="$acl_final_prefix"
28723   acl_save_exec_prefix="$exec_prefix"
28724   exec_prefix="$acl_final_exec_prefix"
28725   eval x=\"$x\"
28726   exec_prefix="$acl_save_exec_prefix"
28727   prefix="$acl_save_prefix"
28728
28729                           if test "X$x" = "X-L$additional_libdir"; then
28730                             haveit=yes
28731                             break
28732                           fi
28733                         done
28734                         if test -z "$haveit"; then
28735                           if test -d "$additional_libdir"; then
28736                                                         LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$additional_libdir"
28737                           fi
28738                         fi
28739                         haveit=
28740                         for x in $LDFLAGS $LTLIBXCURSES; do
28741
28742   acl_save_prefix="$prefix"
28743   prefix="$acl_final_prefix"
28744   acl_save_exec_prefix="$exec_prefix"
28745   exec_prefix="$acl_final_exec_prefix"
28746   eval x=\"$x\"
28747   exec_prefix="$acl_save_exec_prefix"
28748   prefix="$acl_save_prefix"
28749
28750                           if test "X$x" = "X-L$additional_libdir"; then
28751                             haveit=yes
28752                             break
28753                           fi
28754                         done
28755                         if test -z "$haveit"; then
28756                           if test -d "$additional_libdir"; then
28757                                                         LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-L$additional_libdir"
28758                           fi
28759                         fi
28760                       fi
28761                     fi
28762                     ;;
28763                   -R*)
28764                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
28765                     if test "$enable_rpath" != no; then
28766                                                                   haveit=
28767                       for x in $rpathdirs; do
28768                         if test "X$x" = "X$dir"; then
28769                           haveit=yes
28770                           break
28771                         fi
28772                       done
28773                       if test -z "$haveit"; then
28774                         rpathdirs="$rpathdirs $dir"
28775                       fi
28776                                                                   haveit=
28777                       for x in $ltrpathdirs; do
28778                         if test "X$x" = "X$dir"; then
28779                           haveit=yes
28780                           break
28781                         fi
28782                       done
28783                       if test -z "$haveit"; then
28784                         ltrpathdirs="$ltrpathdirs $dir"
28785                       fi
28786                     fi
28787                     ;;
28788                   -l*)
28789                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28790                     ;;
28791                   *.la)
28792                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28793                     ;;
28794                   *)
28795                                         LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$dep"
28796                     LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }$dep"
28797                     ;;
28798                 esac
28799               done
28800             fi
28801           else
28802                                                             LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-l$name"
28803             LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-l$name"
28804           fi
28805         fi
28806       fi
28807     done
28808   done
28809   if test "X$rpathdirs" != "X"; then
28810     if test -n "$acl_hardcode_libdir_separator"; then
28811                         alldirs=
28812       for found_dir in $rpathdirs; do
28813         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
28814       done
28815             acl_save_libdir="$libdir"
28816       libdir="$alldirs"
28817       eval flag=\"$acl_hardcode_libdir_flag_spec\"
28818       libdir="$acl_save_libdir"
28819       LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$flag"
28820     else
28821             for found_dir in $rpathdirs; do
28822         acl_save_libdir="$libdir"
28823         libdir="$found_dir"
28824         eval flag=\"$acl_hardcode_libdir_flag_spec\"
28825         libdir="$acl_save_libdir"
28826         LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$flag"
28827       done
28828     fi
28829   fi
28830   if test "X$ltrpathdirs" != "X"; then
28831             for found_dir in $ltrpathdirs; do
28832       LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-R$found_dir"
28833     done
28834   fi
28835
28836
28837
28838
28839
28840
28841
28842
28843
28844
28845
28846
28847
28848
28849     use_additional=yes
28850
28851   acl_save_prefix="$prefix"
28852   prefix="$acl_final_prefix"
28853   acl_save_exec_prefix="$exec_prefix"
28854   exec_prefix="$acl_final_exec_prefix"
28855
28856     eval additional_includedir=\"$includedir\"
28857     eval additional_libdir=\"$libdir\"
28858
28859   exec_prefix="$acl_save_exec_prefix"
28860   prefix="$acl_save_prefix"
28861
28862
28863 # Check whether --with-libcurses-prefix was given.
28864 if test "${with_libcurses_prefix+set}" = set; then :
28865   withval=$with_libcurses_prefix;
28866     if test "X$withval" = "Xno"; then
28867       use_additional=no
28868     else
28869       if test "X$withval" = "X"; then
28870
28871   acl_save_prefix="$prefix"
28872   prefix="$acl_final_prefix"
28873   acl_save_exec_prefix="$exec_prefix"
28874   exec_prefix="$acl_final_exec_prefix"
28875
28876           eval additional_includedir=\"$includedir\"
28877           eval additional_libdir=\"$libdir\"
28878
28879   exec_prefix="$acl_save_exec_prefix"
28880   prefix="$acl_save_prefix"
28881
28882       else
28883         additional_includedir="$withval/include"
28884         additional_libdir="$withval/$acl_libdirstem"
28885         if test "$acl_libdirstem2" != "$acl_libdirstem" \
28886            && ! test -d "$withval/$acl_libdirstem"; then
28887           additional_libdir="$withval/$acl_libdirstem2"
28888         fi
28889       fi
28890     fi
28891
28892 fi
28893
28894       LIBCURSES=
28895   LTLIBCURSES=
28896   INCCURSES=
28897   LIBCURSES_PREFIX=
28898       HAVE_LIBCURSES=
28899   rpathdirs=
28900   ltrpathdirs=
28901   names_already_handled=
28902   names_next_round='curses '
28903   while test -n "$names_next_round"; do
28904     names_this_round="$names_next_round"
28905     names_next_round=
28906     for name in $names_this_round; do
28907       already_handled=
28908       for n in $names_already_handled; do
28909         if test "$n" = "$name"; then
28910           already_handled=yes
28911           break
28912         fi
28913       done
28914       if test -z "$already_handled"; then
28915         names_already_handled="$names_already_handled $name"
28916                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28917         eval value=\"\$HAVE_LIB$uppername\"
28918         if test -n "$value"; then
28919           if test "$value" = yes; then
28920             eval value=\"\$LIB$uppername\"
28921             test -z "$value" || LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$value"
28922             eval value=\"\$LTLIB$uppername\"
28923             test -z "$value" || LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }$value"
28924           else
28925                                     :
28926           fi
28927         else
28928                               found_dir=
28929           found_la=
28930           found_so=
28931           found_a=
28932           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
28933           if test -n "$acl_shlibext"; then
28934             shrext=".$acl_shlibext"             # typically: shrext=.so
28935           else
28936             shrext=
28937           fi
28938           if test $use_additional = yes; then
28939             dir="$additional_libdir"
28940                                     if test -n "$acl_shlibext"; then
28941               if test -f "$dir/$libname$shrext"; then
28942                 found_dir="$dir"
28943                 found_so="$dir/$libname$shrext"
28944               else
28945                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28946                   ver=`(cd "$dir" && \
28947                         for f in "$libname$shrext".*; do echo "$f"; done \
28948                         | sed -e "s,^$libname$shrext\\\\.,," \
28949                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
28950                         | sed 1q ) 2>/dev/null`
28951                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
28952                     found_dir="$dir"
28953                     found_so="$dir/$libname$shrext.$ver"
28954                   fi
28955                 else
28956                   eval library_names=\"$acl_library_names_spec\"
28957                   for f in $library_names; do
28958                     if test -f "$dir/$f"; then
28959                       found_dir="$dir"
28960                       found_so="$dir/$f"
28961                       break
28962                     fi
28963                   done
28964                 fi
28965               fi
28966             fi
28967                         if test "X$found_dir" = "X"; then
28968               if test -f "$dir/$libname.$acl_libext"; then
28969                 found_dir="$dir"
28970                 found_a="$dir/$libname.$acl_libext"
28971               fi
28972             fi
28973             if test "X$found_dir" != "X"; then
28974               if test -f "$dir/$libname.la"; then
28975                 found_la="$dir/$libname.la"
28976               fi
28977             fi
28978           fi
28979           if test "X$found_dir" = "X"; then
28980             for x in $LDFLAGS $LTLIBCURSES; do
28981
28982   acl_save_prefix="$prefix"
28983   prefix="$acl_final_prefix"
28984   acl_save_exec_prefix="$exec_prefix"
28985   exec_prefix="$acl_final_exec_prefix"
28986   eval x=\"$x\"
28987   exec_prefix="$acl_save_exec_prefix"
28988   prefix="$acl_save_prefix"
28989
28990               case "$x" in
28991                 -L*)
28992                   dir=`echo "X$x" | sed -e 's/^X-L//'`
28993                                     if test -n "$acl_shlibext"; then
28994                     if test -f "$dir/$libname$shrext"; then
28995                       found_dir="$dir"
28996                       found_so="$dir/$libname$shrext"
28997                     else
28998                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28999                         ver=`(cd "$dir" && \
29000                               for f in "$libname$shrext".*; do echo "$f"; done \
29001                               | sed -e "s,^$libname$shrext\\\\.,," \
29002                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
29003                               | sed 1q ) 2>/dev/null`
29004                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
29005                           found_dir="$dir"
29006                           found_so="$dir/$libname$shrext.$ver"
29007                         fi
29008                       else
29009                         eval library_names=\"$acl_library_names_spec\"
29010                         for f in $library_names; do
29011                           if test -f "$dir/$f"; then
29012                             found_dir="$dir"
29013                             found_so="$dir/$f"
29014                             break
29015                           fi
29016                         done
29017                       fi
29018                     fi
29019                   fi
29020                                     if test "X$found_dir" = "X"; then
29021                     if test -f "$dir/$libname.$acl_libext"; then
29022                       found_dir="$dir"
29023                       found_a="$dir/$libname.$acl_libext"
29024                     fi
29025                   fi
29026                   if test "X$found_dir" != "X"; then
29027                     if test -f "$dir/$libname.la"; then
29028                       found_la="$dir/$libname.la"
29029                     fi
29030                   fi
29031                   ;;
29032               esac
29033               if test "X$found_dir" != "X"; then
29034                 break
29035               fi
29036             done
29037           fi
29038           if test "X$found_dir" != "X"; then
29039                         LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-L$found_dir -l$name"
29040             if test "X$found_so" != "X"; then
29041                                                         if test "$enable_rpath" = no \
29042                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
29043                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
29044                                 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
29045               else
29046                                                                                 haveit=
29047                 for x in $ltrpathdirs; do
29048                   if test "X$x" = "X$found_dir"; then
29049                     haveit=yes
29050                     break
29051                   fi
29052                 done
29053                 if test -z "$haveit"; then
29054                   ltrpathdirs="$ltrpathdirs $found_dir"
29055                 fi
29056                                 if test "$acl_hardcode_direct" = yes; then
29057                                                       LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
29058                 else
29059                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
29060                                                             LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
29061                                                             haveit=
29062                     for x in $rpathdirs; do
29063                       if test "X$x" = "X$found_dir"; then
29064                         haveit=yes
29065                         break
29066                       fi
29067                     done
29068                     if test -z "$haveit"; then
29069                       rpathdirs="$rpathdirs $found_dir"
29070                     fi
29071                   else
29072                                                                                 haveit=
29073                     for x in $LDFLAGS $LIBCURSES; do
29074
29075   acl_save_prefix="$prefix"
29076   prefix="$acl_final_prefix"
29077   acl_save_exec_prefix="$exec_prefix"
29078   exec_prefix="$acl_final_exec_prefix"
29079   eval x=\"$x\"
29080   exec_prefix="$acl_save_exec_prefix"
29081   prefix="$acl_save_prefix"
29082
29083                       if test "X$x" = "X-L$found_dir"; then
29084                         haveit=yes
29085                         break
29086                       fi
29087                     done
29088                     if test -z "$haveit"; then
29089                       LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$found_dir"
29090                     fi
29091                     if test "$acl_hardcode_minus_L" != no; then
29092                                                                                         LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
29093                     else
29094                                                                                                                                                                                 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-l$name"
29095                     fi
29096                   fi
29097                 fi
29098               fi
29099             else
29100               if test "X$found_a" != "X"; then
29101                                 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_a"
29102               else
29103                                                 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$found_dir -l$name"
29104               fi
29105             fi
29106                         additional_includedir=
29107             case "$found_dir" in
29108               */$acl_libdirstem | */$acl_libdirstem/)
29109                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
29110                 if test "$name" = 'curses'; then
29111                   LIBCURSES_PREFIX="$basedir"
29112                 fi
29113                 additional_includedir="$basedir/include"
29114                 ;;
29115               */$acl_libdirstem2 | */$acl_libdirstem2/)
29116                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
29117                 if test "$name" = 'curses'; then
29118                   LIBCURSES_PREFIX="$basedir"
29119                 fi
29120                 additional_includedir="$basedir/include"
29121                 ;;
29122             esac
29123             if test "X$additional_includedir" != "X"; then
29124                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
29125                 haveit=
29126                 if test "X$additional_includedir" = "X/usr/local/include"; then
29127                   if test -n "$GCC"; then
29128                     case $host_os in
29129                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
29130                     esac
29131                   fi
29132                 fi
29133                 if test -z "$haveit"; then
29134                   for x in $CPPFLAGS $INCCURSES; do
29135
29136   acl_save_prefix="$prefix"
29137   prefix="$acl_final_prefix"
29138   acl_save_exec_prefix="$exec_prefix"
29139   exec_prefix="$acl_final_exec_prefix"
29140   eval x=\"$x\"
29141   exec_prefix="$acl_save_exec_prefix"
29142   prefix="$acl_save_prefix"
29143
29144                     if test "X$x" = "X-I$additional_includedir"; then
29145                       haveit=yes
29146                       break
29147                     fi
29148                   done
29149                   if test -z "$haveit"; then
29150                     if test -d "$additional_includedir"; then
29151                                             INCCURSES="${INCCURSES}${INCCURSES:+ }-I$additional_includedir"
29152                     fi
29153                   fi
29154                 fi
29155               fi
29156             fi
29157                         if test -n "$found_la"; then
29158                                                         save_libdir="$libdir"
29159               case "$found_la" in
29160                 */* | *\\*) . "$found_la" ;;
29161                 *) . "./$found_la" ;;
29162               esac
29163               libdir="$save_libdir"
29164                             for dep in $dependency_libs; do
29165                 case "$dep" in
29166                   -L*)
29167                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
29168                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
29169                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
29170                       haveit=
29171                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
29172                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
29173                         if test -n "$GCC"; then
29174                           case $host_os in
29175                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
29176                           esac
29177                         fi
29178                       fi
29179                       if test -z "$haveit"; then
29180                         haveit=
29181                         for x in $LDFLAGS $LIBCURSES; do
29182
29183   acl_save_prefix="$prefix"
29184   prefix="$acl_final_prefix"
29185   acl_save_exec_prefix="$exec_prefix"
29186   exec_prefix="$acl_final_exec_prefix"
29187   eval x=\"$x\"
29188   exec_prefix="$acl_save_exec_prefix"
29189   prefix="$acl_save_prefix"
29190
29191                           if test "X$x" = "X-L$additional_libdir"; then
29192                             haveit=yes
29193                             break
29194                           fi
29195                         done
29196                         if test -z "$haveit"; then
29197                           if test -d "$additional_libdir"; then
29198                                                         LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$additional_libdir"
29199                           fi
29200                         fi
29201                         haveit=
29202                         for x in $LDFLAGS $LTLIBCURSES; do
29203
29204   acl_save_prefix="$prefix"
29205   prefix="$acl_final_prefix"
29206   acl_save_exec_prefix="$exec_prefix"
29207   exec_prefix="$acl_final_exec_prefix"
29208   eval x=\"$x\"
29209   exec_prefix="$acl_save_exec_prefix"
29210   prefix="$acl_save_prefix"
29211
29212                           if test "X$x" = "X-L$additional_libdir"; then
29213                             haveit=yes
29214                             break
29215                           fi
29216                         done
29217                         if test -z "$haveit"; then
29218                           if test -d "$additional_libdir"; then
29219                                                         LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-L$additional_libdir"
29220                           fi
29221                         fi
29222                       fi
29223                     fi
29224                     ;;
29225                   -R*)
29226                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
29227                     if test "$enable_rpath" != no; then
29228                                                                   haveit=
29229                       for x in $rpathdirs; do
29230                         if test "X$x" = "X$dir"; then
29231                           haveit=yes
29232                           break
29233                         fi
29234                       done
29235                       if test -z "$haveit"; then
29236                         rpathdirs="$rpathdirs $dir"
29237                       fi
29238                                                                   haveit=
29239                       for x in $ltrpathdirs; do
29240                         if test "X$x" = "X$dir"; then
29241                           haveit=yes
29242                           break
29243                         fi
29244                       done
29245                       if test -z "$haveit"; then
29246                         ltrpathdirs="$ltrpathdirs $dir"
29247                       fi
29248                     fi
29249                     ;;
29250                   -l*)
29251                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
29252                     ;;
29253                   *.la)
29254                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
29255                     ;;
29256                   *)
29257                                         LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$dep"
29258                     LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }$dep"
29259                     ;;
29260                 esac
29261               done
29262             fi
29263           else
29264                                                             LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-l$name"
29265             LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-l$name"
29266           fi
29267         fi
29268       fi
29269     done
29270   done
29271   if test "X$rpathdirs" != "X"; then
29272     if test -n "$acl_hardcode_libdir_separator"; then
29273                         alldirs=
29274       for found_dir in $rpathdirs; do
29275         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
29276       done
29277             acl_save_libdir="$libdir"
29278       libdir="$alldirs"
29279       eval flag=\"$acl_hardcode_libdir_flag_spec\"
29280       libdir="$acl_save_libdir"
29281       LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$flag"
29282     else
29283             for found_dir in $rpathdirs; do
29284         acl_save_libdir="$libdir"
29285         libdir="$found_dir"
29286         eval flag=\"$acl_hardcode_libdir_flag_spec\"
29287         libdir="$acl_save_libdir"
29288         LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$flag"
29289       done
29290     fi
29291   fi
29292   if test "X$ltrpathdirs" != "X"; then
29293             for found_dir in $ltrpathdirs; do
29294       LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-R$found_dir"
29295     done
29296   fi
29297
29298
29299
29300
29301
29302
29303
29304   else
29305
29306     LIBNCURSES=
29307     LTLIBNCURSES=
29308     INCNCURSES=
29309
29310     LIBTERMCAP=
29311     LTLIBTERMCAP=
29312     INCTERMCAP=
29313
29314     LIBXCURSES=
29315     LTLIBXCURSES=
29316     INCXCURSES=
29317
29318     LIBCURSES=
29319     LTLIBCURSES=
29320     INCCURSES=
29321
29322   fi
29323
29324       { $as_echo "$as_me:${as_lineno-$LINENO}: checking where terminfo library functions come from" >&5
29325 $as_echo_n "checking where terminfo library functions come from... " >&6; }
29326 if test "${gl_cv_terminfo+set}" = set; then :
29327   $as_echo_n "(cached) " >&6
29328 else
29329
29330     gl_cv_terminfo="not found, consider installing GNU ncurses"
29331     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29332 /* end confdefs.h.  */
29333 extern
29334       #ifdef __cplusplus
29335       "C"
29336       #endif
29337       int setupterm (const char *, int, int *);
29338       extern
29339       #ifdef __cplusplus
29340       "C"
29341       #endif
29342       int tigetnum (const char *);
29343       extern
29344       #ifdef __cplusplus
29345       "C"
29346       #endif
29347       int tigetflag (const char *);
29348       extern
29349       #ifdef __cplusplus
29350       "C"
29351       #endif
29352       const char * tigetstr (const char *);
29353
29354 int
29355 main ()
29356 {
29357 return setupterm ("xterm", 0, (int *)0)
29358                  + tigetnum ("colors")
29359                  + tigetflag ("hc") + * tigetstr("oc");
29360   ;
29361   return 0;
29362 }
29363 _ACEOF
29364 if ac_fn_c_try_link "$LINENO"; then :
29365   gl_cv_terminfo=libc
29366 fi
29367 rm -f core conftest.err conftest.$ac_objext \
29368     conftest$ac_exeext conftest.$ac_ext
29369     if test "$gl_cv_terminfo" != libc; then
29370       gl_save_LIBS="$LIBS"
29371       LIBS="$LIBS $LIBNCURSES"
29372       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29373 /* end confdefs.h.  */
29374 extern
29375         #ifdef __cplusplus
29376         "C"
29377         #endif
29378         int setupterm (const char *, int, int *);
29379         extern
29380         #ifdef __cplusplus
29381         "C"
29382         #endif
29383         int tigetnum (const char *);
29384         extern
29385         #ifdef __cplusplus
29386         "C"
29387         #endif
29388         int tigetflag (const char *);
29389         extern
29390         #ifdef __cplusplus
29391         "C"
29392         #endif
29393         const char * tigetstr (const char *);
29394
29395 int
29396 main ()
29397 {
29398 return setupterm ("xterm", 0, (int *)0)
29399                    + tigetnum ("colors")
29400                    + tigetflag ("hc") + * tigetstr("oc");
29401   ;
29402   return 0;
29403 }
29404 _ACEOF
29405 if ac_fn_c_try_link "$LINENO"; then :
29406   gl_cv_terminfo=libncurses
29407 fi
29408 rm -f core conftest.err conftest.$ac_objext \
29409     conftest$ac_exeext conftest.$ac_ext
29410       LIBS="$gl_save_LIBS"
29411       if test "$gl_cv_terminfo" != libncurses; then
29412         gl_save_LIBS="$LIBS"
29413         LIBS="$LIBS $LIBTERMCAP"
29414         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29415 /* end confdefs.h.  */
29416 extern
29417           #ifdef __cplusplus
29418           "C"
29419           #endif
29420           int setupterm (const char *, int, int *);
29421           extern
29422           #ifdef __cplusplus
29423           "C"
29424           #endif
29425           int tigetnum (const char *);
29426           extern
29427           #ifdef __cplusplus
29428           "C"
29429           #endif
29430           int tigetflag (const char *);
29431           extern
29432           #ifdef __cplusplus
29433           "C"
29434           #endif
29435           const char * tigetstr (const char *);
29436
29437 int
29438 main ()
29439 {
29440 return setupterm ("xterm", 0, (int *)0)
29441                      + tigetnum ("colors")
29442                      + tigetflag ("hc") + * tigetstr("oc");
29443   ;
29444   return 0;
29445 }
29446 _ACEOF
29447 if ac_fn_c_try_link "$LINENO"; then :
29448   gl_cv_terminfo=libtermcap
29449 fi
29450 rm -f core conftest.err conftest.$ac_objext \
29451     conftest$ac_exeext conftest.$ac_ext
29452         LIBS="$gl_save_LIBS"
29453         if test "$gl_cv_terminfo" != libtermcap; then
29454           gl_save_LIBS="$LIBS"
29455           LIBS="$LIBS $LIBXCURSES"
29456           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29457 /* end confdefs.h.  */
29458 extern
29459             #ifdef __cplusplus
29460             "C"
29461             #endif
29462             int setupterm (const char *, int, int *);
29463             extern
29464             #ifdef __cplusplus
29465             "C"
29466             #endif
29467             int tigetnum (const char *);
29468             extern
29469             #ifdef __cplusplus
29470             "C"
29471             #endif
29472             int tigetflag (const char *);
29473             extern
29474             #ifdef __cplusplus
29475             "C"
29476             #endif
29477             const char * tigetstr (const char *);
29478
29479 int
29480 main ()
29481 {
29482 return setupterm ("xterm", 0, (int *)0)
29483                        + tigetnum ("colors")
29484                        + tigetflag ("hc") + * tigetstr("oc");
29485   ;
29486   return 0;
29487 }
29488 _ACEOF
29489 if ac_fn_c_try_link "$LINENO"; then :
29490   gl_cv_terminfo=libxcurses
29491 fi
29492 rm -f core conftest.err conftest.$ac_objext \
29493     conftest$ac_exeext conftest.$ac_ext
29494           LIBS="$gl_save_LIBS"
29495           if test "$gl_cv_terminfo" != libxcurses; then
29496             gl_save_LIBS="$LIBS"
29497             LIBS="$LIBS $LIBCURSES"
29498             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29499 /* end confdefs.h.  */
29500 extern
29501               #ifdef __cplusplus
29502               "C"
29503               #endif
29504               int setupterm (const char *, int, int *);
29505               extern
29506               #ifdef __cplusplus
29507               "C"
29508               #endif
29509               int tigetnum (const char *);
29510               extern
29511               #ifdef __cplusplus
29512               "C"
29513               #endif
29514               int tigetflag (const char *);
29515               extern
29516               #ifdef __cplusplus
29517               "C"
29518               #endif
29519               const char * tigetstr (const char *);
29520
29521 int
29522 main ()
29523 {
29524 return setupterm ("xterm", 0, (int *)0)
29525                          + tigetnum ("colors")
29526                          + tigetflag ("hc") + * tigetstr("oc");
29527   ;
29528   return 0;
29529 }
29530 _ACEOF
29531 if ac_fn_c_try_link "$LINENO"; then :
29532   gl_cv_terminfo=libcurses
29533 fi
29534 rm -f core conftest.err conftest.$ac_objext \
29535     conftest$ac_exeext conftest.$ac_ext
29536             LIBS="$gl_save_LIBS"
29537           fi
29538         fi
29539       fi
29540     fi
29541
29542 fi
29543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_terminfo" >&5
29544 $as_echo "$gl_cv_terminfo" >&6; }
29545   case "$gl_cv_terminfo" in
29546     libc)
29547       LIBTERMINFO=
29548       LTLIBTERMINFO=
29549       INCTERMINFO=
29550       ;;
29551     libncurses)
29552       LIBTERMINFO="$LIBNCURSES"
29553       LTLIBTERMINFO="$LTLIBNCURSES"
29554       INCTERMINFO="$INCNCURSES"
29555       ;;
29556     libtermcap)
29557       LIBTERMINFO="$LIBTERMCAP"
29558       LTLIBTERMINFO="$LTLIBTERMCAP"
29559       INCTERMINFO="$INCTERMCAP"
29560       ;;
29561     libxcurses)
29562       LIBTERMINFO="$LIBXCURSES"
29563       LTLIBTERMINFO="$LTLIBXCURSES"
29564       INCTERMINFO="$INCXCURSES"
29565       ;;
29566     libcurses)
29567       LIBTERMINFO="$LIBCURSES"
29568       LTLIBTERMINFO="$LTLIBCURSES"
29569       INCTERMINFO="$INCCURSES"
29570       ;;
29571   esac
29572   case "$gl_cv_terminfo" in
29573     libc | libncurses | libtermcap | libxcurses | libcurses)
29574
29575 $as_echo "#define HAVE_TERMINFO 1" >>confdefs.h
29576
29577       ;;
29578     *)
29579             { $as_echo "$as_me:${as_lineno-$LINENO}: checking where termcap library functions come from" >&5
29580 $as_echo_n "checking where termcap library functions come from... " >&6; }
29581 if test "${gl_cv_termcap+set}" = set; then :
29582   $as_echo_n "(cached) " >&6
29583 else
29584
29585         gl_cv_termcap="not found, consider installing GNU ncurses"
29586         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29587 /* end confdefs.h.  */
29588 extern
29589           #ifdef __cplusplus
29590           "C"
29591           #endif
29592           int tgetent (char *, const char *);
29593
29594 int
29595 main ()
29596 {
29597 return tgetent ((char *) 0, "xterm");
29598   ;
29599   return 0;
29600 }
29601 _ACEOF
29602 if ac_fn_c_try_link "$LINENO"; then :
29603   gl_cv_termcap=libc
29604 fi
29605 rm -f core conftest.err conftest.$ac_objext \
29606     conftest$ac_exeext conftest.$ac_ext
29607         if test "$gl_cv_termcap" != libc; then
29608           gl_save_LIBS="$LIBS"
29609           LIBS="$LIBS $LIBNCURSES"
29610           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29611 /* end confdefs.h.  */
29612 extern
29613             #ifdef __cplusplus
29614             "C"
29615             #endif
29616             int tgetent (char *, const char *);
29617
29618 int
29619 main ()
29620 {
29621 return tgetent ((char *) 0, "xterm");
29622   ;
29623   return 0;
29624 }
29625 _ACEOF
29626 if ac_fn_c_try_link "$LINENO"; then :
29627   gl_cv_termcap=libncurses
29628 fi
29629 rm -f core conftest.err conftest.$ac_objext \
29630     conftest$ac_exeext conftest.$ac_ext
29631           LIBS="$gl_save_LIBS"
29632           if test "$gl_cv_termcap" != libncurses; then
29633             gl_save_LIBS="$LIBS"
29634             LIBS="$LIBS $LIBTERMCAP"
29635             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29636 /* end confdefs.h.  */
29637 extern
29638               #ifdef __cplusplus
29639               "C"
29640               #endif
29641               int tgetent (char *, const char *);
29642
29643 int
29644 main ()
29645 {
29646 return tgetent ((char *) 0, "xterm");
29647   ;
29648   return 0;
29649 }
29650 _ACEOF
29651 if ac_fn_c_try_link "$LINENO"; then :
29652   gl_cv_termcap=libtermcap
29653 fi
29654 rm -f core conftest.err conftest.$ac_objext \
29655     conftest$ac_exeext conftest.$ac_ext
29656             LIBS="$gl_save_LIBS"
29657           fi
29658         fi
29659
29660 fi
29661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_termcap" >&5
29662 $as_echo "$gl_cv_termcap" >&6; }
29663       case "$gl_cv_termcap" in
29664         libc)
29665           LIBTERMINFO=
29666           LTLIBTERMINFO=
29667           INCTERMINFO=
29668           ;;
29669         libncurses)
29670           LIBTERMINFO="$LIBNCURSES"
29671           LTLIBTERMINFO="$LTLIBNCURSES"
29672           INCTERMINFO="$INCNCURSES"
29673           ;;
29674         libtermcap)
29675           LIBTERMINFO="$LIBTERMCAP"
29676           LTLIBTERMINFO="$LTLIBTERMCAP"
29677           INCTERMINFO="$INCTERMCAP"
29678           ;;
29679       esac
29680       case "$gl_cv_termcap" in
29681         libc | libncurses | libtermcap)
29682
29683 $as_echo "#define HAVE_TERMCAP 1" >>confdefs.h
29684
29685           ;;
29686       esac
29687       ;;
29688   esac
29689
29690
29691
29692
29693       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparam" >&5
29694 $as_echo_n "checking for tparam... " >&6; }
29695 if test "${gl_cv_terminfo_tparam+set}" = set; then :
29696   $as_echo_n "(cached) " >&6
29697 else
29698
29699     gl_save_LIBS="$LIBS"
29700     LIBS="$LIBS $LIBTERMINFO"
29701     gl_save_CPPFLAGS="$CPPFLAGS"
29702     CPPFLAGS="$CPPFLAGS $INCTERMINFO"
29703     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29704 /* end confdefs.h.  */
29705 extern
29706       #ifdef __cplusplus
29707       "C"
29708       #endif
29709       char * tparam (const char *, void *, int, ...);
29710       char buf;
29711
29712 int
29713 main ()
29714 {
29715 return tparam ("\033\133%dm", &buf, 1, 8);
29716   ;
29717   return 0;
29718 }
29719 _ACEOF
29720 if ac_fn_c_try_link "$LINENO"; then :
29721   gl_cv_terminfo_tparam=yes
29722 else
29723   gl_cv_terminfo_tparam=no
29724 fi
29725 rm -f core conftest.err conftest.$ac_objext \
29726     conftest$ac_exeext conftest.$ac_ext
29727     CPPFLAGS="$gl_save_CPPFLAGS"
29728     LIBS="$gl_save_LIBS"
29729
29730 fi
29731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_terminfo_tparam" >&5
29732 $as_echo "$gl_cv_terminfo_tparam" >&6; }
29733   if test $gl_cv_terminfo_tparam = yes; then
29734
29735 $as_echo "#define HAVE_TPARAM 1" >>confdefs.h
29736
29737   else
29738             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm" >&5
29739 $as_echo_n "checking for tparm... " >&6; }
29740 if test "${gl_cv_terminfo_tparm+set}" = set; then :
29741   $as_echo_n "(cached) " >&6
29742 else
29743
29744       gl_save_LIBS="$LIBS"
29745       LIBS="$LIBS $LIBTERMINFO"
29746       gl_save_CPPFLAGS="$CPPFLAGS"
29747       CPPFLAGS="$CPPFLAGS $INCTERMINFO"
29748       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29749 /* end confdefs.h.  */
29750 extern
29751         #ifdef __cplusplus
29752         "C"
29753         #endif
29754         char * tparm (const char *, ...);
29755
29756 int
29757 main ()
29758 {
29759 return tparm ("\033\133%dm", 8);
29760   ;
29761   return 0;
29762 }
29763 _ACEOF
29764 if ac_fn_c_try_link "$LINENO"; then :
29765   gl_cv_terminfo_tparm=yes
29766 else
29767   gl_cv_terminfo_tparm=no
29768 fi
29769 rm -f core conftest.err conftest.$ac_objext \
29770     conftest$ac_exeext conftest.$ac_ext
29771       CPPFLAGS="$gl_save_CPPFLAGS"
29772       LIBS="$gl_save_LIBS"
29773
29774 fi
29775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_terminfo_tparm" >&5
29776 $as_echo "$gl_cv_terminfo_tparm" >&6; }
29777   fi
29778
29779
29780   GNULIB_MKTIME=0;
29781   GNULIB_NANOSLEEP=0;
29782   GNULIB_STRPTIME=0;
29783   GNULIB_TIMEGM=0;
29784   GNULIB_TIME_R=0;
29785     HAVE_LOCALTIME_R=1;
29786   HAVE_NANOSLEEP=1;
29787   HAVE_STRPTIME=1;
29788   HAVE_TIMEGM=1;
29789         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
29790   REPLACE_MKTIME=GNULIB_PORTCHECK;
29791   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
29792   REPLACE_TIMEGM=GNULIB_PORTCHECK;
29793
29794
29795
29796
29797
29798
29799
29800
29801   :
29802
29803
29804
29805
29806
29807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
29808 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
29809 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
29810   $as_echo_n "(cached) " >&6
29811 else
29812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29813 /* end confdefs.h.  */
29814 #include <time.h>
29815
29816 int
29817 main ()
29818 {
29819 static struct timespec x; x.tv_sec = x.tv_nsec;
29820   ;
29821   return 0;
29822 }
29823 _ACEOF
29824 if ac_fn_c_try_compile "$LINENO"; then :
29825   gl_cv_sys_struct_timespec_in_time_h=yes
29826 else
29827   gl_cv_sys_struct_timespec_in_time_h=no
29828 fi
29829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29830 fi
29831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
29832 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
29833
29834   TIME_H_DEFINES_STRUCT_TIMESPEC=0
29835   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
29836   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
29837   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
29838     TIME_H_DEFINES_STRUCT_TIMESPEC=1
29839   else
29840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
29841 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
29842 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
29843   $as_echo_n "(cached) " >&6
29844 else
29845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29846 /* end confdefs.h.  */
29847 #include <sys/time.h>
29848
29849 int
29850 main ()
29851 {
29852 static struct timespec x; x.tv_sec = x.tv_nsec;
29853   ;
29854   return 0;
29855 }
29856 _ACEOF
29857 if ac_fn_c_try_compile "$LINENO"; then :
29858   gl_cv_sys_struct_timespec_in_sys_time_h=yes
29859 else
29860   gl_cv_sys_struct_timespec_in_sys_time_h=no
29861 fi
29862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29863 fi
29864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
29865 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
29866     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
29867       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
29868     else
29869       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
29870 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
29871 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
29872   $as_echo_n "(cached) " >&6
29873 else
29874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29875 /* end confdefs.h.  */
29876 #include <pthread.h>
29877
29878 int
29879 main ()
29880 {
29881 static struct timespec x; x.tv_sec = x.tv_nsec;
29882   ;
29883   return 0;
29884 }
29885 _ACEOF
29886 if ac_fn_c_try_compile "$LINENO"; then :
29887   gl_cv_sys_struct_timespec_in_pthread_h=yes
29888 else
29889   gl_cv_sys_struct_timespec_in_pthread_h=no
29890 fi
29891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29892 fi
29893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
29894 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
29895       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
29896         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
29897       fi
29898     fi
29899   fi
29900
29901
29902
29903
29904
29905
29906
29907
29908
29909
29910
29911   :
29912
29913
29914
29915
29916
29917
29918
29919      if test $gl_cv_have_include_next = yes; then
29920        gl_cv_next_time_h='<'time.h'>'
29921      else
29922        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
29923 $as_echo_n "checking absolute name of <time.h>... " >&6; }
29924 if test "${gl_cv_next_time_h+set}" = set; then :
29925   $as_echo_n "(cached) " >&6
29926 else
29927
29928           if test $ac_cv_header_time_h = yes; then
29929             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29930 /* end confdefs.h.  */
29931 #include <time.h>
29932
29933 _ACEOF
29934                                                                                                 case "$host_os" in
29935               aix*) gl_absname_cpp="$ac_cpp -C" ;;
29936               *)    gl_absname_cpp="$ac_cpp" ;;
29937             esac
29938                                                 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29939                sed -n '\#/time.h#{
29940                  s#.*"\(.*/time.h\)".*#\1#
29941                  s#^/[^/]#//&#
29942                  p
29943                  q
29944                }'`'"'
29945           else
29946             gl_cv_next_time_h='<'time.h'>'
29947           fi
29948
29949 fi
29950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
29951 $as_echo "$gl_cv_next_time_h" >&6; }
29952      fi
29953      NEXT_TIME_H=$gl_cv_next_time_h
29954
29955      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29956        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29957        gl_next_as_first_directive='<'time.h'>'
29958      else
29959        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29960        gl_next_as_first_directive=$gl_cv_next_time_h
29961      fi
29962      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
29963
29964
29965
29966
29967
29968
29969
29970
29971
29972
29973
29974 gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
29975 i\
29976 0
29977 q
29978 '
29979 gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
29980 i\
29981 0
29982 q
29983 '
29984 gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
29985 i\
29986 0
29987 q
29988 '
29989
29990
29991   if test "$HAVE_LIBUNISTRING" = yes; then
29992     LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
29993     LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
29994     LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
29995   fi
29996
29997
29998
29999
30000
30001
30002
30003       ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
30004 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then :
30005   ac_have_decl=1
30006 else
30007   ac_have_decl=0
30008 fi
30009
30010 cat >>confdefs.h <<_ACEOF
30011 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
30012 _ACEOF
30013
30014
30015
30016       ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
30017 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then :
30018   ac_have_decl=1
30019 else
30020   ac_have_decl=0
30021 fi
30022
30023 cat >>confdefs.h <<_ACEOF
30024 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
30025 _ACEOF
30026
30027
30028
30029       ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
30030 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then :
30031   ac_have_decl=1
30032 else
30033   ac_have_decl=0
30034 fi
30035
30036 cat >>confdefs.h <<_ACEOF
30037 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
30038 _ACEOF
30039
30040
30041
30042       ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
30043 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then :
30044   ac_have_decl=1
30045 else
30046   ac_have_decl=0
30047 fi
30048
30049 cat >>confdefs.h <<_ACEOF
30050 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
30051 _ACEOF
30052
30053
30054
30055       ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
30056 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then :
30057   ac_have_decl=1
30058 else
30059   ac_have_decl=0
30060 fi
30061
30062 cat >>confdefs.h <<_ACEOF
30063 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
30064 _ACEOF
30065
30066
30067
30068       ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
30069 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then :
30070   ac_have_decl=1
30071 else
30072   ac_have_decl=0
30073 fi
30074
30075 cat >>confdefs.h <<_ACEOF
30076 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
30077 _ACEOF
30078
30079
30080
30081       ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
30082 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then :
30083   ac_have_decl=1
30084 else
30085   ac_have_decl=0
30086 fi
30087
30088 cat >>confdefs.h <<_ACEOF
30089 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
30090 _ACEOF
30091
30092
30093
30094       ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
30095 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then :
30096   ac_have_decl=1
30097 else
30098   ac_have_decl=0
30099 fi
30100
30101 cat >>confdefs.h <<_ACEOF
30102 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
30103 _ACEOF
30104
30105
30106
30107       ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
30108 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then :
30109   ac_have_decl=1
30110 else
30111   ac_have_decl=0
30112 fi
30113
30114 cat >>confdefs.h <<_ACEOF
30115 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
30116 _ACEOF
30117
30118
30119
30120       ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
30121 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then :
30122   ac_have_decl=1
30123 else
30124   ac_have_decl=0
30125 fi
30126
30127 cat >>confdefs.h <<_ACEOF
30128 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
30129 _ACEOF
30130
30131
30132
30133       ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
30134 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then :
30135   ac_have_decl=1
30136 else
30137   ac_have_decl=0
30138 fi
30139
30140 cat >>confdefs.h <<_ACEOF
30141 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
30142 _ACEOF
30143
30144
30145
30146       ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
30147 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then :
30148   ac_have_decl=1
30149 else
30150   ac_have_decl=0
30151 fi
30152
30153 cat >>confdefs.h <<_ACEOF
30154 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
30155 _ACEOF
30156
30157
30158
30159
30160
30161
30162
30163
30164
30165
30166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
30167 $as_echo_n "checking for intmax_t... " >&6; }
30168 if test "${gt_cv_c_intmax_t+set}" = set; then :
30169   $as_echo_n "(cached) " >&6
30170 else
30171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30172 /* end confdefs.h.  */
30173
30174 #include <stddef.h>
30175 #include <stdlib.h>
30176 #if HAVE_STDINT_H_WITH_UINTMAX
30177 #include <stdint.h>
30178 #endif
30179 #if HAVE_INTTYPES_H_WITH_UINTMAX
30180 #include <inttypes.h>
30181 #endif
30182
30183 int
30184 main ()
30185 {
30186 intmax_t x = -1; return !x;
30187   ;
30188   return 0;
30189 }
30190 _ACEOF
30191 if ac_fn_c_try_compile "$LINENO"; then :
30192   gt_cv_c_intmax_t=yes
30193 else
30194   gt_cv_c_intmax_t=no
30195 fi
30196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30197 fi
30198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
30199 $as_echo "$gt_cv_c_intmax_t" >&6; }
30200   if test $gt_cv_c_intmax_t = yes; then
30201
30202 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
30203
30204   else
30205
30206     test $ac_cv_type_long_long_int = yes \
30207       && ac_type='long long' \
30208       || ac_type='long'
30209
30210 cat >>confdefs.h <<_ACEOF
30211 #define intmax_t $ac_type
30212 _ACEOF
30213
30214   fi
30215
30216
30217
30218      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
30219 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
30220 if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then :
30221   $as_echo_n "(cached) " >&6
30222 else
30223
30224       if test "$cross_compiling" = yes; then :
30225
30226        case "$host_os" in
30227                                # Guess yes on glibc systems.
30228          *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
30229                                # Guess yes on FreeBSD >= 5.
30230          freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
30231          freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
30232                                # Guess yes on MacOS X >= 10.3.
30233          darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
30234          darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
30235                                # Guess yes on OpenBSD >= 3.9.
30236          openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
30237                                gl_cv_func_snprintf_retval_c99="guessing no";;
30238          openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
30239                                # Guess yes on Solaris >= 2.6.
30240          solaris2.[0-5]*)      gl_cv_func_snprintf_retval_c99="guessing no";;
30241          solaris*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
30242                                # Guess yes on AIX >= 4.
30243          aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
30244          aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
30245                                # Guess yes on NetBSD >= 3.
30246          netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
30247                                gl_cv_func_snprintf_retval_c99="guessing no";;
30248          netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
30249                                # Guess yes on BeOS.
30250          beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
30251                                # If we don't know, assume the worst.
30252          *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
30253        esac
30254
30255 else
30256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30257 /* end confdefs.h.  */
30258
30259 #include <stdio.h>
30260 #include <string.h>
30261 static char buf[100];
30262 int main ()
30263 {
30264   strcpy (buf, "ABCDEF");
30265   if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
30266     return 1;
30267   return 0;
30268 }
30269 _ACEOF
30270 if ac_fn_c_try_run "$LINENO"; then :
30271   gl_cv_func_snprintf_retval_c99=yes
30272 else
30273   gl_cv_func_snprintf_retval_c99=no
30274 fi
30275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30276   conftest.$ac_objext conftest.beam conftest.$ac_ext
30277 fi
30278
30279
30280 fi
30281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
30282 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
30283
30284
30285
30286
30287
30288
30289
30290   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
30291 do :
30292   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30293 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30294 eval as_val=\$$as_ac_var
30295    if test "x$as_val" = x""yes; then :
30296   cat >>confdefs.h <<_ACEOF
30297 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30298 _ACEOF
30299
30300 fi
30301 done
30302
30303       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
30304 "
30305 if test "x$ac_cv_have_decl__snprintf" = x""yes; then :
30306   ac_have_decl=1
30307 else
30308   ac_have_decl=0
30309 fi
30310
30311 cat >>confdefs.h <<_ACEOF
30312 #define HAVE_DECL__SNPRINTF $ac_have_decl
30313 _ACEOF
30314
30315
30316   case "$gl_cv_func_snprintf_retval_c99" in
30317     *yes)
30318
30319 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
30320
30321       ;;
30322   esac
30323
30324
30325       ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
30326 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
30327   ac_have_decl=1
30328 else
30329   ac_have_decl=0
30330 fi
30331
30332 cat >>confdefs.h <<_ACEOF
30333 #define HAVE_DECL_VSNPRINTF $ac_have_decl
30334 _ACEOF
30335
30336
30337
30338             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
30339 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
30340 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
30341   $as_echo_n "(cached) " >&6
30342 else
30343   gl_cv_header_wchar_h_correct_inline=yes
30344      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30345 /* end confdefs.h.  */
30346
30347        #define wcstod renamed_wcstod
30348 #include <wchar.h>
30349 extern int zero (void);
30350 int main () { return zero(); }
30351
30352 _ACEOF
30353      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
30354   (eval $ac_compile) 2>&5
30355   ac_status=$?
30356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30357   test $ac_status = 0; }; then
30358        mv conftest.$ac_objext conftest1.$ac_objext
30359        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30360 /* end confdefs.h.  */
30361
30362          #define wcstod renamed_wcstod
30363 #include <wchar.h>
30364 int zero (void) { return 0; }
30365
30366 _ACEOF
30367        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
30368   (eval $ac_compile) 2>&5
30369   ac_status=$?
30370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30371   test $ac_status = 0; }; then
30372          mv conftest.$ac_objext conftest2.$ac_objext
30373          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
30374            :
30375          else
30376            gl_cv_header_wchar_h_correct_inline=no
30377          fi
30378        fi
30379      fi
30380      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
30381
30382 fi
30383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
30384 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
30385   if test $gl_cv_header_wchar_h_correct_inline = no; then
30386     as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
30387 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
30388 C99 mode. You have four options:
30389   - Add the flag -fgnu89-inline to CC and reconfigure, or
30390   - Fix your include files, using parts of
30391     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
30392   - Use a gcc version older than 4.3, or
30393   - Don't use the flags -std=c99 or -std=gnu99.
30394 Configuration aborted." "$LINENO" 5
30395   fi
30396
30397
30398
30399
30400
30401
30402
30403
30404
30405
30406
30407
30408
30409
30410
30411
30412
30413       ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
30414 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
30415   ac_have_decl=1
30416 else
30417   ac_have_decl=0
30418 fi
30419
30420 cat >>confdefs.h <<_ACEOF
30421 #define HAVE_DECL_ALARM $ac_have_decl
30422 _ACEOF
30423
30424
30425
30426
30427
30428
30429
30430
30431
30432
30433
30434
30435
30436
30437
30438
30439
30440
30441
30442
30443
30444
30445
30446    if true; then
30447   GL_COND_LIBTOOL_TRUE=
30448   GL_COND_LIBTOOL_FALSE='#'
30449 else
30450   GL_COND_LIBTOOL_TRUE='#'
30451   GL_COND_LIBTOOL_FALSE=
30452 fi
30453
30454   gl_cond_libtool=true
30455   gl_m4_base='gnulib-m4'
30456
30457
30458
30459
30460
30461
30462
30463
30464
30465   gl_source_base='gnulib-lib'
30466   # Code from module acl:
30467
30468   # Check whether --enable-acl was given.
30469 if test "${enable_acl+set}" = set; then :
30470   enableval=$enable_acl;
30471 else
30472   enable_acl=auto
30473 fi
30474
30475
30476   LIB_ACL=
30477   use_acl=0
30478
30479   if test "x$enable_acl" != "xno"; then
30480         for ac_header in sys/acl.h
30481 do :
30482   ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
30483 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
30484   cat >>confdefs.h <<_ACEOF
30485 #define HAVE_SYS_ACL_H 1
30486 _ACEOF
30487
30488 fi
30489
30490 done
30491
30492     if test $ac_cv_header_sys_acl_h = yes; then
30493       ac_save_LIBS=$LIBS
30494
30495                   if test $use_acl = 0; then
30496         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
30497 $as_echo_n "checking for library containing acl_get_file... " >&6; }
30498 if test "${ac_cv_search_acl_get_file+set}" = set; then :
30499   $as_echo_n "(cached) " >&6
30500 else
30501   ac_func_search_save_LIBS=$LIBS
30502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30503 /* end confdefs.h.  */
30504
30505 /* Override any GCC internal prototype to avoid an error.
30506    Use char because int might match the return type of a GCC
30507    builtin and then its argument prototype would still apply.  */
30508 #ifdef __cplusplus
30509 extern "C"
30510 #endif
30511 char acl_get_file ();
30512 int
30513 main ()
30514 {
30515 return acl_get_file ();
30516   ;
30517   return 0;
30518 }
30519 _ACEOF
30520 for ac_lib in '' acl pacl; do
30521   if test -z "$ac_lib"; then
30522     ac_res="none required"
30523   else
30524     ac_res=-l$ac_lib
30525     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30526   fi
30527   if ac_fn_c_try_link "$LINENO"; then :
30528   ac_cv_search_acl_get_file=$ac_res
30529 fi
30530 rm -f core conftest.err conftest.$ac_objext \
30531     conftest$ac_exeext
30532   if test "${ac_cv_search_acl_get_file+set}" = set; then :
30533   break
30534 fi
30535 done
30536 if test "${ac_cv_search_acl_get_file+set}" = set; then :
30537
30538 else
30539   ac_cv_search_acl_get_file=no
30540 fi
30541 rm conftest.$ac_ext
30542 LIBS=$ac_func_search_save_LIBS
30543 fi
30544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
30545 $as_echo "$ac_cv_search_acl_get_file" >&6; }
30546 ac_res=$ac_cv_search_acl_get_file
30547 if test "$ac_res" != no; then :
30548   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30549   if test "$ac_cv_search_acl_get_file" != "none required"; then
30550              LIB_ACL=$ac_cv_search_acl_get_file
30551            fi
30552            for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
30553               acl_free acl_from_mode acl_from_text \
30554               acl_delete_def_file acl_extended_file \
30555               acl_delete_fd_np acl_delete_file_np \
30556               acl_copy_ext_native acl_create_entry_np \
30557               acl_to_short_text acl_free_text
30558 do :
30559   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30560 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30561 eval as_val=\$$as_ac_var
30562    if test "x$as_val" = x""yes; then :
30563   cat >>confdefs.h <<_ACEOF
30564 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30565 _ACEOF
30566
30567 fi
30568 done
30569
30570            # If the acl_get_file bug is detected, don't enable the ACL support.
30571
30572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
30573 $as_echo_n "checking for working acl_get_file... " >&6; }
30574 if test "${gl_cv_func_working_acl_get_file+set}" = set; then :
30575   $as_echo_n "(cached) " >&6
30576 else
30577   if test "$cross_compiling" = yes; then :
30578   gl_cv_func_working_acl_get_file=cross-compiling
30579 else
30580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30581 /* end confdefs.h.  */
30582 #include <sys/types.h>
30583            #include <sys/acl.h>
30584            #include <errno.h>
30585
30586 int
30587 main ()
30588 {
30589 return !! (!acl_get_file (".", ACL_TYPE_ACCESS)
30590                        && errno == ENOENT);
30591   ;
30592   return 0;
30593 }
30594 _ACEOF
30595 if ac_fn_c_try_run "$LINENO"; then :
30596   gl_cv_func_working_acl_get_file=yes
30597 else
30598   gl_cv_func_working_acl_get_file=no
30599 fi
30600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30601   conftest.$ac_objext conftest.beam conftest.$ac_ext
30602 fi
30603
30604 fi
30605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
30606 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
30607
30608   if test $gl_cv_func_working_acl_get_file = yes; then :
30609   use_acl=1
30610 fi
30611
30612            if test $use_acl = 1; then
30613                           for ac_header in acl/libacl.h
30614 do :
30615   ac_fn_c_check_header_mongrel "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
30616 if test "x$ac_cv_header_acl_libacl_h" = x""yes; then :
30617   cat >>confdefs.h <<_ACEOF
30618 #define HAVE_ACL_LIBACL_H 1
30619 _ACEOF
30620
30621 fi
30622
30623 done
30624
30625
30626
30627
30628
30629
30630
30631
30632
30633   for ac_func in acl_entries
30634 do :
30635   ac_fn_c_check_func "$LINENO" "acl_entries" "ac_cv_func_acl_entries"
30636 if test "x$ac_cv_func_acl_entries" = x""yes; then :
30637   cat >>confdefs.h <<_ACEOF
30638 #define HAVE_ACL_ENTRIES 1
30639 _ACEOF
30640
30641 else
30642
30643     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30644
30645 fi
30646 done
30647
30648
30649              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
30650 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
30651 if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then :
30652   $as_echo_n "(cached) " >&6
30653 else
30654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30655 /* end confdefs.h.  */
30656 #include <sys/types.h>
30657 #include <sys/acl.h>
30658 int type = ACL_FIRST_ENTRY;
30659 _ACEOF
30660 if ac_fn_c_try_compile "$LINENO"; then :
30661   gl_cv_acl_ACL_FIRST_ENTRY=yes
30662 else
30663   gl_cv_acl_ACL_FIRST_ENTRY=no
30664 fi
30665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30666 fi
30667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
30668 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
30669              if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
30670
30671 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
30672
30673              fi
30674                           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
30675 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
30676 if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then :
30677   $as_echo_n "(cached) " >&6
30678 else
30679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30680 /* end confdefs.h.  */
30681 #include <sys/types.h>
30682 #include <sys/acl.h>
30683 int type = ACL_TYPE_EXTENDED;
30684 _ACEOF
30685 if ac_fn_c_try_compile "$LINENO"; then :
30686   gl_cv_acl_ACL_TYPE_EXTENDED=yes
30687 else
30688   gl_cv_acl_ACL_TYPE_EXTENDED=no
30689 fi
30690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30691 fi
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
30693 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
30694              if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
30695
30696 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
30697
30698              fi
30699            else
30700              LIB_ACL=
30701            fi
30702
30703 fi
30704
30705       fi
30706
30707             if test $use_acl = 0; then
30708         for ac_func in acl
30709 do :
30710   ac_fn_c_check_func "$LINENO" "acl" "ac_cv_func_acl"
30711 if test "x$ac_cv_func_acl" = x""yes; then :
30712   cat >>confdefs.h <<_ACEOF
30713 #define HAVE_ACL 1
30714 _ACEOF
30715
30716 fi
30717 done
30718
30719         if test $ac_cv_func_acl = yes; then
30720           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
30721 $as_echo_n "checking for library containing acl_trivial... " >&6; }
30722 if test "${ac_cv_search_acl_trivial+set}" = set; then :
30723   $as_echo_n "(cached) " >&6
30724 else
30725   ac_func_search_save_LIBS=$LIBS
30726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30727 /* end confdefs.h.  */
30728
30729 /* Override any GCC internal prototype to avoid an error.
30730    Use char because int might match the return type of a GCC
30731    builtin and then its argument prototype would still apply.  */
30732 #ifdef __cplusplus
30733 extern "C"
30734 #endif
30735 char acl_trivial ();
30736 int
30737 main ()
30738 {
30739 return acl_trivial ();
30740   ;
30741   return 0;
30742 }
30743 _ACEOF
30744 for ac_lib in '' sec; do
30745   if test -z "$ac_lib"; then
30746     ac_res="none required"
30747   else
30748     ac_res=-l$ac_lib
30749     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30750   fi
30751   if ac_fn_c_try_link "$LINENO"; then :
30752   ac_cv_search_acl_trivial=$ac_res
30753 fi
30754 rm -f core conftest.err conftest.$ac_objext \
30755     conftest$ac_exeext
30756   if test "${ac_cv_search_acl_trivial+set}" = set; then :
30757   break
30758 fi
30759 done
30760 if test "${ac_cv_search_acl_trivial+set}" = set; then :
30761
30762 else
30763   ac_cv_search_acl_trivial=no
30764 fi
30765 rm conftest.$ac_ext
30766 LIBS=$ac_func_search_save_LIBS
30767 fi
30768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
30769 $as_echo "$ac_cv_search_acl_trivial" >&6; }
30770 ac_res=$ac_cv_search_acl_trivial
30771 if test "$ac_res" != no; then :
30772   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30773   if test "$ac_cv_search_acl_trivial" != "none required"; then
30774                LIB_ACL=$ac_cv_search_acl_trivial
30775              fi
30776
30777 fi
30778
30779           for ac_func in acl_trivial
30780 do :
30781   ac_fn_c_check_func "$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
30782 if test "x$ac_cv_func_acl_trivial" = x""yes; then :
30783   cat >>confdefs.h <<_ACEOF
30784 #define HAVE_ACL_TRIVIAL 1
30785 _ACEOF
30786
30787 fi
30788 done
30789
30790           use_acl=1
30791         fi
30792       fi
30793
30794             if test $use_acl = 0 || test "$ac_cv_func_acl" = yes; then
30795         for ac_func in getacl
30796 do :
30797   ac_fn_c_check_func "$LINENO" "getacl" "ac_cv_func_getacl"
30798 if test "x$ac_cv_func_getacl" = x""yes; then :
30799   cat >>confdefs.h <<_ACEOF
30800 #define HAVE_GETACL 1
30801 _ACEOF
30802
30803 fi
30804 done
30805
30806         if test $ac_cv_func_getacl = yes; then
30807           use_acl=1
30808         fi
30809       fi
30810
30811             if test $use_acl = 0; then
30812         for ac_func in aclx_get
30813 do :
30814   ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
30815 if test "x$ac_cv_func_aclx_get" = x""yes; then :
30816   cat >>confdefs.h <<_ACEOF
30817 #define HAVE_ACLX_GET 1
30818 _ACEOF
30819
30820 fi
30821 done
30822
30823         if test $ac_cv_func_aclx_get = yes; then
30824           use_acl=1
30825         fi
30826       fi
30827
30828             if test $use_acl = 0 || test "$ac_cv_func_aclx_get" = yes; then
30829         for ac_func in statacl
30830 do :
30831   ac_fn_c_check_func "$LINENO" "statacl" "ac_cv_func_statacl"
30832 if test "x$ac_cv_func_statacl" = x""yes; then :
30833   cat >>confdefs.h <<_ACEOF
30834 #define HAVE_STATACL 1
30835 _ACEOF
30836
30837 fi
30838 done
30839
30840         if test $ac_cv_func_statacl = yes; then
30841           use_acl=1
30842         fi
30843       fi
30844
30845       LIBS=$ac_save_LIBS
30846     fi
30847     if test "x$enable_acl$use_acl" = "xyes0"; then
30848       as_fn_error "ACLs enabled but support not detected" "$LINENO" 5
30849     elif test "x$enable_acl$use_acl" = "xauto0"; then
30850       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
30851 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
30852       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gettext-tools will be built without ACL support." >&5
30853 $as_echo "$as_me: WARNING: gettext-tools will be built without ACL support." >&2;}
30854     fi
30855   fi
30856
30857
30858 cat >>confdefs.h <<_ACEOF
30859 #define USE_ACL $use_acl
30860 _ACEOF
30861
30862   USE_ACL=$use_acl
30863
30864
30865   # Code from module alignof:
30866   # Code from module alloca-opt:
30867
30868
30869
30870
30871
30872   if test $ac_cv_func_alloca_works = no; then
30873
30874
30875   :
30876
30877
30878
30879
30880
30881
30882
30883
30884   :
30885
30886   fi
30887
30888   # Define an additional variable used in the Makefile substitution.
30889
30890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30891 /* end confdefs.h.  */
30892
30893 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
30894   Need own alloca
30895 #endif
30896
30897 _ACEOF
30898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30899   $EGREP "Need own alloca" >/dev/null 2>&1; then :
30900   ALLOCA_H=alloca.h
30901 else
30902   ALLOCA_H=
30903 fi
30904 rm -f conftest*
30905
30906
30907
30908   # Code from module areadlink:
30909   # Code from module arg-nonnull:
30910   # Code from module argmatch:
30911
30912
30913
30914
30915
30916
30917
30918
30919
30920   gl_LIBOBJS="$gl_LIBOBJS argmatch.$ac_objext"
30921
30922
30923   # Code from module array-list:
30924   # Code from module atexit:
30925
30926
30927
30928
30929
30930
30931
30932
30933
30934   for ac_func in atexit
30935 do :
30936   ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
30937 if test "x$ac_cv_func_atexit" = x""yes; then :
30938   cat >>confdefs.h <<_ACEOF
30939 #define HAVE_ATEXIT 1
30940 _ACEOF
30941
30942 else
30943
30944     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30945
30946 fi
30947 done
30948
30949
30950   if test $ac_cv_func_atexit = no; then
30951
30952   :
30953
30954   fi
30955
30956   # Code from module backupfile:
30957
30958     for ac_header in dirent.h string.h
30959 do :
30960   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30961 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30962 eval as_val=\$$as_ac_Header
30963    if test "x$as_val" = x""yes; then :
30964   cat >>confdefs.h <<_ACEOF
30965 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30966 _ACEOF
30967
30968 fi
30969
30970 done
30971
30972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
30973 $as_echo_n "checking for long file names... " >&6; }
30974 if test "${ac_cv_sys_long_file_names+set}" = set; then :
30975   $as_echo_n "(cached) " >&6
30976 else
30977   ac_cv_sys_long_file_names=yes
30978 # Test for long file names in all the places we know might matter:
30979 #      .                the current directory, where building will happen
30980 #      $prefix/lib      where we will be installing things
30981 #      $exec_prefix/lib likewise
30982 #      $TMPDIR          if set, where it might want to write temporary files
30983 #      /tmp             where it might want to write temporary files
30984 #      /var/tmp         likewise
30985 #      /usr/tmp         likewise
30986 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
30987   # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
30988   # in the usual case where exec_prefix is '${prefix}'.
30989   case $ac_dir in #(
30990     . | /* | ?:[\\/]*) ;; #(
30991     *) continue;;
30992   esac
30993   test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
30994   ac_xdir=$ac_dir/cf$$
30995   (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
30996   ac_tf1=$ac_xdir/conftest9012345
30997   ac_tf2=$ac_xdir/conftest9012346
30998   touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
30999     ac_cv_sys_long_file_names=no
31000   rm -f -r "$ac_xdir" 2>/dev/null
31001   test $ac_cv_sys_long_file_names = no && break
31002 done
31003 fi
31004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
31005 $as_echo "$ac_cv_sys_long_file_names" >&6; }
31006 if test $ac_cv_sys_long_file_names = yes; then
31007
31008 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
31009
31010 fi
31011
31012   for ac_func in pathconf
31013 do :
31014   ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
31015 if test "x$ac_cv_func_pathconf" = x""yes; then :
31016   cat >>confdefs.h <<_ACEOF
31017 #define HAVE_PATHCONF 1
31018 _ACEOF
31019
31020 fi
31021 done
31022
31023   for ac_header in string.h unistd.h
31024 do :
31025   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31026 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
31027 eval as_val=\$$as_ac_Header
31028    if test "x$as_val" = x""yes; then :
31029   cat >>confdefs.h <<_ACEOF
31030 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31031 _ACEOF
31032
31033 fi
31034
31035 done
31036
31037
31038   # Code from module basename:
31039   # Code from module binary-io:
31040   # Code from module bison-i18n:
31041
31042   if test -z "$USE_NLS"; then
31043     echo "The BISON-I18N macro is used without being preceded by AM-GNU-GETTEXT." 1>&2
31044     exit 1
31045   fi
31046   BISON_LOCALEDIR=
31047   BISON_USE_NLS=no
31048   if test "$USE_NLS" = yes; then
31049                         if (${YACC-${BISON-:}} --print-localedir) >/dev/null 2>&1; then
31050       BISON_LOCALEDIR=`${YACC-${BISON-:}} --print-localedir`
31051     fi
31052
31053     if test -n "$BISON_LOCALEDIR"; then
31054                               USER_LINGUAS="${LINGUAS-%UNSET%}"
31055       if test -n "$USER_LINGUAS"; then
31056         BISON_USE_NLS=yes
31057       fi
31058     fi
31059   fi
31060   if test $BISON_USE_NLS = yes; then
31061
31062 $as_echo "#define YYENABLE_NLS 1" >>confdefs.h
31063
31064   fi
31065
31066   # Code from module byteswap:
31067
31068     for ac_header in byteswap.h
31069 do :
31070   ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
31071 if test "x$ac_cv_header_byteswap_h" = x""yes; then :
31072   cat >>confdefs.h <<_ACEOF
31073 #define HAVE_BYTESWAP_H 1
31074 _ACEOF
31075
31076     BYTESWAP_H=''
31077
31078 else
31079
31080     BYTESWAP_H='byteswap.h'
31081
31082 fi
31083
31084 done
31085
31086
31087
31088   # Code from module c++defs:
31089   # Code from module c-ctype:
31090   # Code from module c-strcase:
31091   # Code from module c-strcaseeq:
31092   # Code from module c-strcasestr:
31093   # Code from module c-strstr:
31094   # Code from module canonicalize-lgpl:
31095
31096
31097   if test $ac_cv_func_canonicalize_file_name = no; then
31098     HAVE_CANONICALIZE_FILE_NAME=0
31099
31100
31101
31102
31103
31104
31105
31106
31107   gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
31108
31109     if test $ac_cv_func_realpath = no; then
31110       HAVE_REALPATH=0
31111     elif test "$gl_cv_func_realpath_works" != yes; then
31112       REPLACE_REALPATH=1
31113     fi
31114   elif test "$gl_cv_func_realpath_works" != yes; then
31115
31116
31117
31118
31119
31120
31121
31122
31123   gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
31124
31125     REPLACE_REALPATH=1
31126     REPLACE_CANONICALIZE_FILE_NAME=1
31127   fi
31128
31129
31130
31131 cat >>confdefs.h <<_ACEOF
31132 #define GNULIB_CANONICALIZE_LGPL 1
31133 _ACEOF
31134
31135
31136
31137
31138
31139   GNULIB_CANONICALIZE_FILE_NAME=1
31140
31141
31142
31143 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
31144
31145
31146
31147
31148
31149
31150   GNULIB_REALPATH=1
31151
31152
31153
31154 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
31155
31156
31157
31158   # Code from module classpath:
31159   # Code from module clean-temp:
31160
31161 $as_echo "#define SIGNAL_SAFE_LIST 1" >>confdefs.h
31162
31163   # Code from module cloexec:
31164
31165
31166
31167
31168
31169
31170
31171
31172
31173   gl_LIBOBJS="$gl_LIBOBJS cloexec.$ac_objext"
31174
31175
31176
31177
31178 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
31179
31180
31181   # Code from module closeout:
31182   # Code from module concat-filename:
31183   # Code from module configmake:
31184   # Code from module copy-file:
31185
31186
31187   :
31188
31189
31190
31191
31192
31193
31194
31195
31196   for ac_func in chown utime utimes
31197 do :
31198   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31199 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31200 eval as_val=\$$as_ac_var
31201    if test "x$as_val" = x""yes; then :
31202   cat >>confdefs.h <<_ACEOF
31203 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31204 _ACEOF
31205
31206 fi
31207 done
31208
31209
31210   # Code from module csharpcomp:
31211   # Code from module csharpcomp-script:
31212
31213   ac_config_files="$ac_config_files csharpcomp.sh:../build-aux/csharpcomp.sh.in"
31214
31215   # Code from module csharpexec:
31216   # Code from module csharpexec-script:
31217   # You need to invoke gt_CSHARPEXEC yourself, possibly with arguments.
31218   ac_config_files="$ac_config_files csharpexec.sh:../build-aux/csharpexec.sh.in"
31219
31220   # Code from module diffseq:
31221   # Code from module double-slash-root:
31222
31223
31224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
31225 $as_echo_n "checking whether // is distinct from /... " >&6; }
31226 if test "${gl_cv_double_slash_root+set}" = set; then :
31227   $as_echo_n "(cached) " >&6
31228 else
31229    if test x"$cross_compiling" = xyes ; then
31230         # When cross-compiling, there is no way to tell whether // is special
31231         # short of a list of hosts.  However, the only known hosts to date
31232         # that have a distinct // are Apollo DomainOS (too old to port to),
31233         # Cygwin, and z/OS.  If anyone knows of another system for which // has
31234         # special semantics and is distinct from /, please report it to
31235         # <bug-gnulib@gnu.org>.
31236         case $host in
31237           *-cygwin | i370-ibm-openedition)
31238             gl_cv_double_slash_root=yes ;;
31239           *)
31240             # Be optimistic and assume that / and // are the same when we
31241             # don't know.
31242             gl_cv_double_slash_root='unknown, assuming no' ;;
31243         esac
31244       else
31245         set x `ls -di / // 2>/dev/null`
31246         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
31247           gl_cv_double_slash_root=no
31248         else
31249           gl_cv_double_slash_root=yes
31250         fi
31251       fi
31252 fi
31253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
31254 $as_echo "$gl_cv_double_slash_root" >&6; }
31255   if test "$gl_cv_double_slash_root" = yes; then
31256
31257 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
31258
31259   fi
31260
31261   # Code from module dup2:
31262
31263
31264
31265
31266   :
31267
31268
31269
31270
31271
31272   if test $ac_cv_func_dup2 = no; then
31273     HAVE_DUP2=0
31274
31275
31276
31277
31278
31279
31280
31281
31282   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
31283
31284   else
31285     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
31286 $as_echo_n "checking whether dup2 works... " >&6; }
31287 if test "${gl_cv_func_dup2_works+set}" = set; then :
31288   $as_echo_n "(cached) " >&6
31289 else
31290   if test "$cross_compiling" = yes; then :
31291   case "$host_os" in
31292            mingw*) # on this platform, dup2 always returns 0 for success
31293              gl_cv_func_dup2_works=no;;
31294            cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
31295              gl_cv_func_dup2_works=no;;
31296            linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
31297                    # closed fd may yield -EBADF instead of -1 / errno=EBADF.
31298              gl_cv_func_dup2_works=no;;
31299            freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
31300              gl_cv_func_dup2_works=no;;
31301            *) gl_cv_func_dup2_works=yes;;
31302          esac
31303 else
31304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31305 /* end confdefs.h.  */
31306
31307          #include <unistd.h>
31308 #include <errno.h>
31309 int
31310 main ()
31311 {
31312 if (dup2 (1, 1) == 0)
31313               return 1;
31314             close (0);
31315             if (dup2 (0, 0) != -1)
31316               return 2;
31317             /* Many gnulib modules require POSIX conformance of EBADF.  */
31318             if (dup2 (1, 1000000) == -1 && errno != EBADF)
31319               return 3;
31320             return 0;
31321
31322   ;
31323   return 0;
31324 }
31325
31326 _ACEOF
31327 if ac_fn_c_try_run "$LINENO"; then :
31328   gl_cv_func_dup2_works=yes
31329 else
31330   gl_cv_func_dup2_works=no
31331 fi
31332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31333   conftest.$ac_objext conftest.beam conftest.$ac_ext
31334 fi
31335
31336
31337 fi
31338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
31339 $as_echo "$gl_cv_func_dup2_works" >&6; }
31340     if test "$gl_cv_func_dup2_works" = no; then
31341
31342
31343   if test $ac_cv_func_dup2 = yes; then
31344     REPLACE_DUP2=1
31345   fi
31346
31347
31348
31349
31350
31351
31352
31353
31354   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
31355
31356
31357     fi
31358   fi
31359
31360
31361
31362
31363   GNULIB_DUP2=1
31364
31365
31366
31367 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
31368
31369
31370
31371   # Code from module environ:
31372
31373
31374
31375
31376   GNULIB_ENVIRON=1
31377
31378
31379
31380 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
31381
31382
31383
31384   # Code from module errno:
31385
31386   # Code from module error:
31387
31388
31389
31390
31391
31392
31393
31394
31395
31396
31397
31398
31399
31400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
31401 $as_echo_n "checking for error_at_line... " >&6; }
31402 if test "${ac_cv_lib_error_at_line+set}" = set; then :
31403   $as_echo_n "(cached) " >&6
31404 else
31405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31406 /* end confdefs.h.  */
31407 #include <error.h>
31408 int
31409 main ()
31410 {
31411 error_at_line (0, 0, "", 0, "an error occurred");
31412   ;
31413   return 0;
31414 }
31415 _ACEOF
31416 if ac_fn_c_try_link "$LINENO"; then :
31417   ac_cv_lib_error_at_line=yes
31418 else
31419   ac_cv_lib_error_at_line=no
31420 fi
31421 rm -f core conftest.err conftest.$ac_objext \
31422     conftest$ac_exeext conftest.$ac_ext
31423 fi
31424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
31425 $as_echo "$ac_cv_lib_error_at_line" >&6; }
31426 if test $ac_cv_lib_error_at_line = no; then
31427
31428
31429
31430
31431
31432
31433
31434
31435   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
31436
31437 fi
31438
31439
31440
31441
31442   :
31443
31444
31445
31446
31447   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
31448
31449
31450
31451   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
31452
31453   # Code from module error-progname:
31454   # Code from module execute:
31455
31456
31457
31458
31459   # Code from module exitfail:
31460   # Code from module extensions:
31461   # Code from module fatal-signal:
31462
31463
31464
31465
31466   :
31467
31468
31469
31470
31471
31472
31473
31474
31475
31476   # Code from module fcntl:
31477
31478
31479
31480
31481
31482   :
31483
31484
31485
31486
31487
31488   if test $ac_cv_func_fcntl = no; then
31489
31490
31491
31492   :
31493
31494
31495
31496
31497
31498   if test $ac_cv_func_fcntl = no; then
31499     HAVE_FCNTL=0
31500   else
31501     REPLACE_FCNTL=1
31502   fi
31503
31504
31505
31506
31507
31508
31509
31510
31511   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
31512
31513
31514   else
31515         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
31516 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
31517 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then :
31518   $as_echo_n "(cached) " >&6
31519 else
31520   if test "$cross_compiling" = yes; then :
31521   # Guess that it works on glibc systems
31522           case $host_os in #((
31523             *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";;
31524             *)      gl_cv_func_fcntl_f_dupfd_works="guessing no";;
31525           esac
31526 else
31527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31528 /* end confdefs.h.  */
31529
31530 #include <fcntl.h>
31531
31532 int
31533 main ()
31534 {
31535 return fcntl (0, F_DUPFD, -1) != -1;
31536
31537   ;
31538   return 0;
31539 }
31540 _ACEOF
31541 if ac_fn_c_try_run "$LINENO"; then :
31542   gl_cv_func_fcntl_f_dupfd_works=yes
31543 else
31544   gl_cv_func_fcntl_f_dupfd_works=no
31545 fi
31546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31547   conftest.$ac_objext conftest.beam conftest.$ac_ext
31548 fi
31549
31550 fi
31551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
31552 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
31553     case $gl_cv_func_fcntl_f_dupfd_works in
31554       *yes) ;;
31555       *)
31556
31557
31558   :
31559
31560
31561
31562
31563
31564   if test $ac_cv_func_fcntl = no; then
31565     HAVE_FCNTL=0
31566   else
31567     REPLACE_FCNTL=1
31568   fi
31569
31570
31571
31572
31573
31574
31575
31576
31577   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
31578
31579
31580
31581 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
31582  ;;
31583     esac
31584
31585         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
31586 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
31587 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then :
31588   $as_echo_n "(cached) " >&6
31589 else
31590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31591 /* end confdefs.h.  */
31592
31593 #include <fcntl.h>
31594 #ifndef F_DUPFD_CLOEXEC
31595 choke me
31596 #endif
31597
31598 int
31599 main ()
31600 {
31601
31602   ;
31603   return 0;
31604 }
31605 _ACEOF
31606 if ac_fn_c_try_compile "$LINENO"; then :
31607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31608 /* end confdefs.h.  */
31609
31610 #ifdef __linux__
31611 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
31612    it to support the semantics on older kernels that failed with EINVAL.  */
31613 choke me
31614 #endif
31615
31616 int
31617 main ()
31618 {
31619
31620   ;
31621   return 0;
31622 }
31623 _ACEOF
31624 if ac_fn_c_try_compile "$LINENO"; then :
31625   gl_cv_func_fcntl_f_dupfd_cloexec=yes
31626 else
31627   gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
31628 fi
31629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31630 else
31631   gl_cv_func_fcntl_f_dupfd_cloexec=no
31632 fi
31633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31634 fi
31635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
31636 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
31637     if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
31638
31639
31640
31641   :
31642
31643
31644
31645
31646
31647   if test $ac_cv_func_fcntl = no; then
31648     HAVE_FCNTL=0
31649   else
31650     REPLACE_FCNTL=1
31651   fi
31652
31653
31654
31655
31656
31657
31658
31659
31660   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
31661
31662
31663           fi
31664   fi
31665
31666
31667
31668
31669   GNULIB_FCNTL=1
31670
31671
31672
31673 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
31674
31675
31676
31677   # Code from module fcntl-h:
31678
31679
31680
31681
31682
31683
31684
31685   :
31686
31687
31688
31689
31690
31691
31692
31693      if test $gl_cv_have_include_next = yes; then
31694        gl_cv_next_fcntl_h='<'fcntl.h'>'
31695      else
31696        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
31697 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
31698 if test "${gl_cv_next_fcntl_h+set}" = set; then :
31699   $as_echo_n "(cached) " >&6
31700 else
31701
31702           if test $ac_cv_header_fcntl_h = yes; then
31703             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31704 /* end confdefs.h.  */
31705 #include <fcntl.h>
31706
31707 _ACEOF
31708                                                                                                 case "$host_os" in
31709               aix*) gl_absname_cpp="$ac_cpp -C" ;;
31710               *)    gl_absname_cpp="$ac_cpp" ;;
31711             esac
31712                                                 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31713                sed -n '\#/fcntl.h#{
31714                  s#.*"\(.*/fcntl.h\)".*#\1#
31715                  s#^/[^/]#//&#
31716                  p
31717                  q
31718                }'`'"'
31719           else
31720             gl_cv_next_fcntl_h='<'fcntl.h'>'
31721           fi
31722
31723 fi
31724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
31725 $as_echo "$gl_cv_next_fcntl_h" >&6; }
31726      fi
31727      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
31728
31729      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31730        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31731        gl_next_as_first_directive='<'fcntl.h'>'
31732      else
31733        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31734        gl_next_as_first_directive=$gl_cv_next_fcntl_h
31735      fi
31736      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
31737
31738
31739
31740
31741
31742     for gl_func in fcntl openat; do
31743     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31744     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
31745 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31746 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
31747   $as_echo_n "(cached) " >&6
31748 else
31749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31750 /* end confdefs.h.  */
31751 #include <fcntl.h>
31752
31753 int
31754 main ()
31755 {
31756 #undef $gl_func
31757   (void) $gl_func;
31758   ;
31759   return 0;
31760 }
31761 _ACEOF
31762 if ac_fn_c_try_compile "$LINENO"; then :
31763   eval "$as_gl_Symbol=yes"
31764 else
31765   eval "$as_gl_Symbol=no"
31766 fi
31767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31768 fi
31769 eval ac_res=\$$as_gl_Symbol
31770                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31771 $as_echo "$ac_res" >&6; }
31772      eval as_val=\$$as_gl_Symbol
31773    if test "x$as_val" = x""yes; then :
31774   cat >>confdefs.h <<_ACEOF
31775 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31776 _ACEOF
31777
31778                      eval ac_cv_have_decl_$gl_func=yes
31779 fi
31780       done
31781
31782
31783   # Code from module fd-ostream:
31784   # Code from module fd-safer-flag:
31785
31786
31787 cat >>confdefs.h <<_ACEOF
31788 #define GNULIB_FD_SAFER_FLAG 1
31789 _ACEOF
31790
31791
31792   # Code from module file-ostream:
31793   # Code from module filename:
31794   # Code from module findprog:
31795
31796
31797   :
31798
31799
31800
31801
31802
31803
31804
31805   # Code from module float:
31806
31807
31808
31809   FLOAT_H=
31810   case "$host_os" in
31811     beos* | openbsd*)
31812       FLOAT_H=float.h
31813
31814
31815
31816
31817   :
31818
31819
31820
31821
31822
31823
31824
31825      if test $gl_cv_have_include_next = yes; then
31826        gl_cv_next_float_h='<'float.h'>'
31827      else
31828        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
31829 $as_echo_n "checking absolute name of <float.h>... " >&6; }
31830 if test "${gl_cv_next_float_h+set}" = set; then :
31831   $as_echo_n "(cached) " >&6
31832 else
31833
31834           if test $ac_cv_header_float_h = yes; then
31835             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31836 /* end confdefs.h.  */
31837 #include <float.h>
31838
31839 _ACEOF
31840                                                                                                 case "$host_os" in
31841               aix*) gl_absname_cpp="$ac_cpp -C" ;;
31842               *)    gl_absname_cpp="$ac_cpp" ;;
31843             esac
31844                                                 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31845                sed -n '\#/float.h#{
31846                  s#.*"\(.*/float.h\)".*#\1#
31847                  s#^/[^/]#//&#
31848                  p
31849                  q
31850                }'`'"'
31851           else
31852             gl_cv_next_float_h='<'float.h'>'
31853           fi
31854
31855 fi
31856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
31857 $as_echo "$gl_cv_next_float_h" >&6; }
31858      fi
31859      NEXT_FLOAT_H=$gl_cv_next_float_h
31860
31861      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31862        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31863        gl_next_as_first_directive='<'float.h'>'
31864      else
31865        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31866        gl_next_as_first_directive=$gl_cv_next_float_h
31867      fi
31868      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
31869
31870
31871
31872       ;;
31873   esac
31874
31875
31876   # Code from module fnmatch:
31877
31878
31879
31880
31881
31882   FNMATCH_H=
31883   gl_fnmatch_required_lowercase=`echo $gl_fnmatch_required | tr 'A-Z' 'a-z'`
31884   gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
31885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
31886 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
31887 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
31888   $as_echo_n "(cached) " >&6
31889 else
31890                            if test $gl_fnmatch_required = GNU; then
31891        gl_fnmatch_gnu_start=
31892        gl_fnmatch_gnu_end=
31893      else
31894        gl_fnmatch_gnu_start='#if 0'
31895        gl_fnmatch_gnu_end='#endif'
31896      fi
31897      if test "$cross_compiling" = yes; then :
31898   eval "$gl_fnmatch_cache_var=\"guessing no\""
31899 else
31900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31901 /* end confdefs.h.  */
31902 #include <fnmatch.h>
31903             static int
31904             y (char const *pattern, char const *string, int flags)
31905             {
31906               return fnmatch (pattern, string, flags) == 0;
31907             }
31908             static int
31909             n (char const *pattern, char const *string, int flags)
31910             {
31911               return fnmatch (pattern, string, flags) == FNM_NOMATCH;
31912             }
31913
31914 int
31915 main ()
31916 {
31917 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
31918             char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
31919             static char const A_1[] = { 'A' - 1, 0 };
31920             static char const A01[] = { 'A' + 1, 0 };
31921             static char const a_1[] = { 'a' - 1, 0 };
31922             static char const a01[] = { 'a' + 1, 0 };
31923             static char const bs_1[] = { '\\\\' - 1, 0 };
31924             static char const bs01[] = { '\\\\' + 1, 0 };
31925             return
31926              !(n ("a*", "", 0)
31927                && y ("a*", "abc", 0)
31928                && n ("d*/*1", "d/s/1", FNM_PATHNAME)
31929                && y ("a\\\\bc", "abc", 0)
31930                && n ("a\\\\bc", "abc", FNM_NOESCAPE)
31931                && y ("*x", ".x", 0)
31932                && n ("*x", ".x", FNM_PERIOD)
31933                && y (Apat, "\\\\", 0) && y (Apat, "A", 0)
31934                && y (apat, "\\\\", 0) && y (apat, "a", 0)
31935                && n (Apat, A_1, 0) == ('A' < '\\\\')
31936                && n (apat, a_1, 0) == ('a' < '\\\\')
31937                && y (Apat, A01, 0) == ('A' < '\\\\')
31938                && y (apat, a01, 0) == ('a' < '\\\\')
31939                && y (Apat, bs_1, 0) == ('A' < '\\\\')
31940                && y (apat, bs_1, 0) == ('a' < '\\\\')
31941                && n (Apat, bs01, 0) == ('A' < '\\\\')
31942                && n (apat, bs01, 0) == ('a' < '\\\\')
31943                $gl_fnmatch_gnu_start
31944                && y ("xxXX", "xXxX", FNM_CASEFOLD)
31945                && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
31946                && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
31947                && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
31948                && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
31949                && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)
31950                $gl_fnmatch_gnu_end
31951               );
31952
31953   ;
31954   return 0;
31955 }
31956 _ACEOF
31957 if ac_fn_c_try_run "$LINENO"; then :
31958   eval "$gl_fnmatch_cache_var=yes"
31959 else
31960   eval "$gl_fnmatch_cache_var=no"
31961 fi
31962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31963   conftest.$ac_objext conftest.beam conftest.$ac_ext
31964 fi
31965
31966
31967 fi
31968 eval ac_res=\$$gl_fnmatch_cache_var
31969                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31970 $as_echo "$ac_res" >&6; }
31971   eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
31972   if test "$gl_fnmatch_result" = yes; then
31973             rm -f "$gl_source_base/fnmatch.h"
31974   else
31975     FNMATCH_H=fnmatch.h
31976
31977
31978
31979
31980
31981
31982
31983
31984   gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
31985
31986
31987 cat >>confdefs.h <<_ACEOF
31988 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
31989 _ACEOF
31990
31991
31992     ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
31993 "
31994 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
31995   ac_have_decl=1
31996 else
31997   ac_have_decl=0
31998 fi
31999
32000 cat >>confdefs.h <<_ACEOF
32001 #define HAVE_DECL_ISBLANK $ac_have_decl
32002 _ACEOF
32003
32004
32005   :
32006
32007
32008
32009
32010
32011
32012
32013
32014
32015
32016
32017
32018
32019
32020
32021
32022
32023
32024
32025
32026
32027
32028
32029
32030
32031
32032
32033   :
32034
32035
32036
32037
32038
32039   fi
32040
32041
32042   # Code from module fopen:
32043
32044
32045
32046   case "$host_os" in
32047     mingw* | pw*)
32048             REPLACE_FOPEN=1
32049             gl_cv_func_fopen_slash="guessing no"
32050       ;;
32051     *)
32052                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5
32053 $as_echo_n "checking whether fopen recognizes a trailing slash... " >&6; }
32054 if test "${gl_cv_func_fopen_slash+set}" = set; then :
32055   $as_echo_n "(cached) " >&6
32056 else
32057
32058           if test "$cross_compiling" = yes; then :
32059
32060              case "$host_os" in
32061                solaris2.[0-9]*) gl_cv_func_fopen_slash="guessing no" ;;
32062                hpux*)           gl_cv_func_fopen_slash="guessing no" ;;
32063                *)               gl_cv_func_fopen_slash="guessing yes" ;;
32064              esac
32065
32066 else
32067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32068 /* end confdefs.h.  */
32069
32070 #include <stddef.h>
32071 #include <stdio.h>
32072 int main ()
32073 {
32074   return fopen ("conftest.sl/", "w") != NULL;
32075 }
32076 _ACEOF
32077 if ac_fn_c_try_run "$LINENO"; then :
32078   gl_cv_func_fopen_slash=yes
32079 else
32080   gl_cv_func_fopen_slash=no
32081 fi
32082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32083   conftest.$ac_objext conftest.beam conftest.$ac_ext
32084 fi
32085
32086           rm -f conftest.sl
32087
32088 fi
32089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5
32090 $as_echo "$gl_cv_func_fopen_slash" >&6; }
32091       ;;
32092   esac
32093   case "$gl_cv_func_fopen_slash" in
32094     *no)
32095
32096 $as_echo "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
32097
32098       REPLACE_FOPEN=1
32099       ;;
32100   esac
32101   if test $REPLACE_FOPEN = 1; then
32102
32103
32104
32105
32106
32107
32108
32109
32110   gl_LIBOBJS="$gl_LIBOBJS fopen.$ac_objext"
32111
32112
32113
32114
32115   fi
32116
32117
32118
32119
32120   GNULIB_FOPEN=1
32121
32122
32123
32124 $as_echo "#define GNULIB_TEST_FOPEN 1" >>confdefs.h
32125
32126
32127
32128   # Code from module fstrcmp:
32129   # Code from module full-write:
32130   # Code from module fwriteerror:
32131
32132
32133 cat >>confdefs.h <<_ACEOF
32134 #define GNULIB_FWRITEERROR 1
32135 _ACEOF
32136
32137
32138   # Code from module gcd:
32139   # Code from module gcj:
32140
32141
32142
32143
32144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java to native code compiler" >&5
32145 $as_echo_n "checking for Java to native code compiler... " >&6; }
32146   # Search for the gcj command or use the one provided by the user.
32147   if test -z "$GCJ"; then
32148                 if test -n "$ac_tool_prefix"; then
32149   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
32150 set dummy ${ac_tool_prefix}gcj; ac_word=$2
32151 :
32152 if test "${ac_cv_prog_GCJ+set}" = set; then :
32153   $as_echo_n "(cached) " >&6
32154 else
32155   if test -n "$GCJ"; then
32156   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
32157 else
32158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32159 for as_dir in $PATH
32160 do
32161   IFS=$as_save_IFS
32162   test -z "$as_dir" && as_dir=.
32163     for ac_exec_ext in '' $ac_executable_extensions; do
32164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32165     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
32166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32167     break 2
32168   fi
32169 done
32170   done
32171 IFS=$as_save_IFS
32172
32173 fi
32174 fi
32175 GCJ=$ac_cv_prog_GCJ
32176 if test -n "$GCJ"; then
32177   :
32178 else
32179   :
32180 fi
32181
32182
32183 fi
32184 if test -z "$ac_cv_prog_GCJ"; then
32185   ac_ct_GCJ=$GCJ
32186   # Extract the first word of "gcj", so it can be a program name with args.
32187 set dummy gcj; ac_word=$2
32188 :
32189 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
32190   $as_echo_n "(cached) " >&6
32191 else
32192   if test -n "$ac_ct_GCJ"; then
32193   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
32194 else
32195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32196 for as_dir in $PATH
32197 do
32198   IFS=$as_save_IFS
32199   test -z "$as_dir" && as_dir=.
32200     for ac_exec_ext in '' $ac_executable_extensions; do
32201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32202     ac_cv_prog_ac_ct_GCJ="gcj"
32203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32204     break 2
32205   fi
32206 done
32207   done
32208 IFS=$as_save_IFS
32209
32210 fi
32211 fi
32212 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
32213 if test -n "$ac_ct_GCJ"; then
32214   :
32215 else
32216   :
32217 fi
32218
32219   if test "x$ac_ct_GCJ" = x; then
32220     GCJ="none"
32221   else
32222     case $cross_compiling:$ac_tool_warned in
32223 yes:)
32224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32226 ac_tool_warned=yes ;;
32227 esac
32228     GCJ=$ac_ct_GCJ
32229   fi
32230 else
32231   GCJ="$ac_cv_prog_GCJ"
32232 fi
32233
32234               fi
32235   # Choose GCJFLAGS or use the one provided by the user.
32236   if test "$GCJ" != none; then
32237     test "${GCJFLAGS+set}" != set || GCJFLAGS="-O2 -g"
32238   fi
32239   # Check whether the version is ok and it can create executables.
32240   ac_gcj_link="$GCJ $GCJFLAGS conftest.java --main=conftest -o conftest$ac_exeext"
32241   if test "$GCJ" != none \
32242      && $GCJ --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | grep '^[3-9]' >/dev/null \
32243      && (
32244       # See if libgcj.so is well installed and if exception handling works.
32245       cat > conftest.java <<EOF
32246 public class conftest {
32247   public static void main (String[] args) {
32248     try {
32249       java.util.ResourceBundle.getBundle("foobar");
32250     } catch (Exception e) {
32251     }
32252     System.exit(0);
32253   }
32254 }
32255 EOF
32256       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_gcj_link\""; } >&5
32257   (eval $ac_gcj_link) 2>&5
32258   ac_status=$?
32259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32260   test $ac_status = 0; }
32261       error=$?
32262       if test $error = 0 && test "$cross_compiling" != yes; then
32263         # Run conftest and catch its exit status, but silently.
32264         error=`./conftest >/dev/null 2>&1; echo $?`
32265         test $error = 0 || error=1
32266         rm -f core conftest.core
32267       fi
32268       rm -f conftest.java conftest$ac_exeext
32269       exit $error
32270      ); then
32271     :
32272   else
32273     GCJ=none
32274   fi
32275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
32276 $as_echo "$GCJ" >&6; }
32277   if test "$GCJ" != none; then
32278     HAVE_GCJ=1
32279   else
32280     HAVE_GCJ=
32281   fi
32282
32283
32284
32285
32286   # Code from module getdelim:
32287
32288
32289
32290
32291
32292
32293   :
32294
32295
32296
32297
32298
32299
32300
32301   :
32302
32303
32304
32305
32306
32307   if test $ac_cv_func_getdelim = yes; then
32308         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
32309 $as_echo_n "checking for working getdelim function... " >&6; }
32310 if test "${gl_cv_func_working_getdelim+set}" = set; then :
32311   $as_echo_n "(cached) " >&6
32312 else
32313   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
32314     if test "$cross_compiling" = yes; then :
32315         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32316 /* end confdefs.h.  */
32317
32318 #include <features.h>
32319 #ifdef __GNU_LIBRARY__
32320  #if (__GLIBC__ >= 2)
32321   Lucky GNU user
32322  #endif
32323 #endif
32324
32325 _ACEOF
32326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32327   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
32328   gl_cv_func_working_getdelim=yes
32329 else
32330   gl_cv_func_working_getdelim=no
32331 fi
32332 rm -f conftest*
32333
32334
32335 else
32336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32337 /* end confdefs.h.  */
32338
32339 #    include <stdio.h>
32340 #    include <stdlib.h>
32341 #    include <string.h>
32342     int main ()
32343     {
32344       FILE *in = fopen ("./conftest.data", "r");
32345       if (!in)
32346         return 1;
32347       {
32348         /* Test result for a NULL buffer and a zero size.
32349            Based on a test program from Karl Heuer.  */
32350         char *line = NULL;
32351         size_t siz = 0;
32352         int len = getdelim (&line, &siz, '\n', in);
32353         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
32354           return 1;
32355       }
32356       {
32357         /* Test result for a NULL buffer and a non-zero size.
32358            This crashes on FreeBSD 8.0.  */
32359         char *line = NULL;
32360         size_t siz = (size_t)(~0) / 4;
32361         if (getdelim (&line, &siz, '\n', in) == -1)
32362           return 1;
32363       }
32364       return 0;
32365     }
32366
32367 _ACEOF
32368 if ac_fn_c_try_run "$LINENO"; then :
32369   gl_cv_func_working_getdelim=yes
32370 else
32371   gl_cv_func_working_getdelim=no
32372 fi
32373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32374   conftest.$ac_objext conftest.beam conftest.$ac_ext
32375 fi
32376
32377 fi
32378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
32379 $as_echo "$gl_cv_func_working_getdelim" >&6; }
32380   else
32381     gl_cv_func_working_getdelim=no
32382   fi
32383
32384   if test $ac_cv_have_decl_getdelim = no; then
32385     HAVE_DECL_GETDELIM=0
32386   fi
32387
32388   if test $gl_cv_func_working_getdelim = no; then
32389     if test $ac_cv_func_getdelim = yes; then
32390       REPLACE_GETDELIM=1
32391     fi
32392
32393
32394
32395
32396
32397
32398
32399
32400   gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
32401
32402
32403   for ac_func in flockfile funlockfile
32404 do :
32405   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32406 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
32407 eval as_val=\$$as_ac_var
32408    if test "x$as_val" = x""yes; then :
32409   cat >>confdefs.h <<_ACEOF
32410 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32411 _ACEOF
32412
32413 fi
32414 done
32415
32416   ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
32417 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
32418   ac_have_decl=1
32419 else
32420   ac_have_decl=0
32421 fi
32422
32423 cat >>confdefs.h <<_ACEOF
32424 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
32425 _ACEOF
32426
32427
32428   fi
32429
32430
32431
32432
32433   GNULIB_GETDELIM=1
32434
32435
32436
32437 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
32438
32439
32440
32441   # Code from module getdtablesize:
32442
32443
32444
32445   :
32446
32447
32448
32449
32450
32451   if test $ac_cv_func_getdtablesize != yes; then
32452     HAVE_GETDTABLESIZE=0
32453
32454
32455
32456
32457
32458
32459
32460
32461   gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
32462
32463   fi
32464
32465
32466
32467
32468   GNULIB_GETDTABLESIZE=1
32469
32470
32471
32472 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
32473
32474
32475
32476   # Code from module getline:
32477
32478
32479
32480
32481
32482
32483   :
32484
32485
32486
32487
32488
32489
32490   gl_getline_needs_run_time_check=no
32491   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
32492 if test "x$ac_cv_func_getline" = x""yes; then :
32493                    gl_getline_needs_run_time_check=yes
32494 else
32495   am_cv_func_working_getline=no
32496 fi
32497
32498   if test $gl_getline_needs_run_time_check = yes; then
32499     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
32500 $as_echo_n "checking for working getline function... " >&6; }
32501 if test "${am_cv_func_working_getline+set}" = set; then :
32502   $as_echo_n "(cached) " >&6
32503 else
32504   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
32505     if test "$cross_compiling" = yes; then :
32506         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32507 /* end confdefs.h.  */
32508
32509 #include <features.h>
32510 #ifdef __GNU_LIBRARY__
32511  #if (__GLIBC__ >= 2)
32512   Lucky GNU user
32513  #endif
32514 #endif
32515
32516 _ACEOF
32517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32518   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
32519   am_cv_func_working_getline=yes
32520 else
32521   am_cv_func_working_getline=no
32522 fi
32523 rm -f conftest*
32524
32525
32526 else
32527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32528 /* end confdefs.h.  */
32529
32530 #    include <stdio.h>
32531 #    include <stdlib.h>
32532 #    include <string.h>
32533     int main ()
32534     {
32535       FILE *in = fopen ("./conftest.data", "r");
32536       if (!in)
32537         return 1;
32538       {
32539         /* Test result for a NULL buffer and a zero size.
32540            Based on a test program from Karl Heuer.  */
32541         char *line = NULL;
32542         size_t siz = 0;
32543         int len = getline (&line, &siz, in);
32544         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
32545           return 1;
32546       }
32547       {
32548         /* Test result for a NULL buffer and a non-zero size.
32549            This crashes on FreeBSD 8.0.  */
32550         char *line = NULL;
32551         size_t siz = (size_t)(~0) / 4;
32552         if (getline (&line, &siz, in) == -1)
32553           return 1;
32554       }
32555       return 0;
32556     }
32557
32558 _ACEOF
32559 if ac_fn_c_try_run "$LINENO"; then :
32560   am_cv_func_working_getline=yes
32561 else
32562   am_cv_func_working_getline=no
32563 fi
32564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32565   conftest.$ac_objext conftest.beam conftest.$ac_ext
32566 fi
32567
32568 fi
32569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
32570 $as_echo "$am_cv_func_working_getline" >&6; }
32571   fi
32572
32573   if test $ac_cv_have_decl_getline = no; then
32574     HAVE_DECL_GETLINE=0
32575   fi
32576
32577   if test $am_cv_func_working_getline = no; then
32578                 REPLACE_GETLINE=1
32579
32580
32581
32582
32583
32584
32585
32586
32587   gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
32588
32589
32590
32591
32592
32593
32594
32595
32596
32597   :
32598
32599
32600
32601
32602
32603
32604
32605   :
32606
32607
32608
32609
32610
32611   if test $ac_cv_func_getdelim = yes; then
32612         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
32613 $as_echo_n "checking for working getdelim function... " >&6; }
32614 if test "${gl_cv_func_working_getdelim+set}" = set; then :
32615   $as_echo_n "(cached) " >&6
32616 else
32617   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
32618     if test "$cross_compiling" = yes; then :
32619         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32620 /* end confdefs.h.  */
32621
32622 #include <features.h>
32623 #ifdef __GNU_LIBRARY__
32624  #if (__GLIBC__ >= 2)
32625   Lucky GNU user
32626  #endif
32627 #endif
32628
32629 _ACEOF
32630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32631   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
32632   gl_cv_func_working_getdelim=yes
32633 else
32634   gl_cv_func_working_getdelim=no
32635 fi
32636 rm -f conftest*
32637
32638
32639 else
32640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32641 /* end confdefs.h.  */
32642
32643 #    include <stdio.h>
32644 #    include <stdlib.h>
32645 #    include <string.h>
32646     int main ()
32647     {
32648       FILE *in = fopen ("./conftest.data", "r");
32649       if (!in)
32650         return 1;
32651       {
32652         /* Test result for a NULL buffer and a zero size.
32653            Based on a test program from Karl Heuer.  */
32654         char *line = NULL;
32655         size_t siz = 0;
32656         int len = getdelim (&line, &siz, '\n', in);
32657         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
32658           return 1;
32659       }
32660       {
32661         /* Test result for a NULL buffer and a non-zero size.
32662            This crashes on FreeBSD 8.0.  */
32663         char *line = NULL;
32664         size_t siz = (size_t)(~0) / 4;
32665         if (getdelim (&line, &siz, '\n', in) == -1)
32666           return 1;
32667       }
32668       return 0;
32669     }
32670
32671 _ACEOF
32672 if ac_fn_c_try_run "$LINENO"; then :
32673   gl_cv_func_working_getdelim=yes
32674 else
32675   gl_cv_func_working_getdelim=no
32676 fi
32677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32678   conftest.$ac_objext conftest.beam conftest.$ac_ext
32679 fi
32680
32681 fi
32682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
32683 $as_echo "$gl_cv_func_working_getdelim" >&6; }
32684   else
32685     gl_cv_func_working_getdelim=no
32686   fi
32687
32688   if test $ac_cv_have_decl_getdelim = no; then
32689     HAVE_DECL_GETDELIM=0
32690   fi
32691
32692   if test $gl_cv_func_working_getdelim = no; then
32693     if test $ac_cv_func_getdelim = yes; then
32694       REPLACE_GETDELIM=1
32695     fi
32696
32697
32698
32699
32700
32701
32702
32703
32704   gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
32705
32706
32707   for ac_func in flockfile funlockfile
32708 do :
32709   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32710 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
32711 eval as_val=\$$as_ac_var
32712    if test "x$as_val" = x""yes; then :
32713   cat >>confdefs.h <<_ACEOF
32714 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32715 _ACEOF
32716
32717 fi
32718 done
32719
32720   ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
32721 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
32722   ac_have_decl=1
32723 else
32724   ac_have_decl=0
32725 fi
32726
32727 cat >>confdefs.h <<_ACEOF
32728 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
32729 _ACEOF
32730
32731
32732   fi
32733
32734
32735   fi
32736
32737
32738
32739
32740   GNULIB_GETLINE=1
32741
32742
32743
32744 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
32745
32746
32747
32748   # Code from module getopt-gnu:
32749
32750
32751
32752
32753
32754
32755
32756 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
32757
32758
32759   # Code from module getopt-posix:
32760
32761
32762
32763
32764
32765   if test -n "$gl_replace_getopt"; then :
32766
32767
32768
32769   GETOPT_H=getopt.h
32770
32771 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
32772
32773
32774
32775     GNULIB_UNISTD_H_GETOPT=1
32776
32777
32778
32779
32780
32781
32782
32783
32784   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
32785
32786
32787
32788
32789
32790
32791
32792
32793
32794   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
32795
32796
32797
32798   :
32799
32800
32801
32802
32803
32804
32805
32806
32807 fi
32808
32809
32810   # Code from module gettext:
32811
32812   # Code from module gettext-h:
32813
32814
32815   # Code from module gettext-tools-misc:
32816   # Code from module gettimeofday:
32817
32818
32819
32820
32821
32822   :
32823
32824
32825
32826
32827
32828
32829   gl_gettimeofday_timezone=void
32830   if test $ac_cv_func_gettimeofday != yes; then
32831     HAVE_GETTIMEOFDAY=0
32832
32833
32834
32835
32836
32837
32838
32839
32840   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
32841
32842
32843   for ac_header in sys/timeb.h
32844 do :
32845   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
32846 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
32847   cat >>confdefs.h <<_ACEOF
32848 #define HAVE_SYS_TIMEB_H 1
32849 _ACEOF
32850
32851 fi
32852
32853 done
32854
32855   for ac_func in _ftime
32856 do :
32857   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
32858 if test "x$ac_cv_func__ftime" = x""yes; then :
32859   cat >>confdefs.h <<_ACEOF
32860 #define HAVE__FTIME 1
32861 _ACEOF
32862
32863 fi
32864 done
32865
32866
32867   else
32868
32869
32870
32871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
32872 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
32873 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
32874   $as_echo_n "(cached) " >&6
32875 else
32876   if test "$cross_compiling" = yes; then :
32877        gl_cv_func_gettimeofday_clobber=yes
32878 else
32879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32880 /* end confdefs.h.  */
32881 #include <string.h>
32882           #include <sys/time.h>
32883           #include <time.h>
32884           #include <stdlib.h>
32885
32886 int
32887 main ()
32888 {
32889
32890           time_t t = 0;
32891           struct tm *lt;
32892           struct tm saved_lt;
32893           struct timeval tv;
32894           lt = localtime (&t);
32895           saved_lt = *lt;
32896           gettimeofday (&tv, NULL);
32897           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
32898
32899   ;
32900   return 0;
32901 }
32902 _ACEOF
32903 if ac_fn_c_try_run "$LINENO"; then :
32904   gl_cv_func_gettimeofday_clobber=no
32905 else
32906   gl_cv_func_gettimeofday_clobber=yes
32907 fi
32908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32909   conftest.$ac_objext conftest.beam conftest.$ac_ext
32910 fi
32911
32912 fi
32913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
32914 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
32915
32916  if test $gl_cv_func_gettimeofday_clobber = yes; then
32917    REPLACE_GETTIMEOFDAY=1
32918
32919
32920
32921
32922
32923
32924
32925
32926
32927   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
32928
32929
32930   for ac_header in sys/timeb.h
32931 do :
32932   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
32933 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
32934   cat >>confdefs.h <<_ACEOF
32935 #define HAVE_SYS_TIMEB_H 1
32936 _ACEOF
32937
32938 fi
32939
32940 done
32941
32942   for ac_func in _ftime
32943 do :
32944   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
32945 if test "x$ac_cv_func__ftime" = x""yes; then :
32946   cat >>confdefs.h <<_ACEOF
32947 #define HAVE__FTIME 1
32948 _ACEOF
32949
32950 fi
32951 done
32952
32953
32954
32955 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
32956
32957
32958 $as_echo "#define localtime rpl_localtime" >>confdefs.h
32959
32960
32961
32962 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
32963
32964  fi
32965
32966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
32967 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
32968 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
32969   $as_echo_n "(cached) " >&6
32970 else
32971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32972 /* end confdefs.h.  */
32973 #include <sys/time.h>
32974               struct timeval c;
32975               int gettimeofday (struct timeval *restrict, void *restrict);
32976
32977 int
32978 main ()
32979 {
32980 /* glibc uses struct timezone * rather than the POSIX void *
32981                  if _GNU_SOURCE is defined.  However, since the only portable
32982                  use of gettimeofday uses NULL as the second parameter, and
32983                  since the glibc definition is actually more typesafe, it is
32984                  not worth wrapping this to get a compliant signature.  */
32985               int (*f) (struct timeval *restrict, void *restrict)
32986                 = gettimeofday;
32987               int x = f (&c, 0);
32988               return !(x | c.tv_sec | c.tv_usec);
32989
32990   ;
32991   return 0;
32992 }
32993 _ACEOF
32994 if ac_fn_c_try_compile "$LINENO"; then :
32995   gl_cv_func_gettimeofday_posix_signature=yes
32996 else
32997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32998 /* end confdefs.h.  */
32999 #include <sys/time.h>
33000 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
33001
33002 int
33003 main ()
33004 {
33005
33006   ;
33007   return 0;
33008 }
33009 _ACEOF
33010 if ac_fn_c_try_compile "$LINENO"; then :
33011   gl_cv_func_gettimeofday_posix_signature=almost
33012 else
33013   gl_cv_func_gettimeofday_posix_signature=no
33014 fi
33015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33016 fi
33017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33018 fi
33019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
33020 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
33021     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
33022       gl_gettimeofday_timezone='struct timezone'
33023     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
33024       REPLACE_GETTIMEOFDAY=1
33025
33026
33027
33028
33029
33030
33031
33032
33033   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
33034
33035
33036   for ac_header in sys/timeb.h
33037 do :
33038   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
33039 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
33040   cat >>confdefs.h <<_ACEOF
33041 #define HAVE_SYS_TIMEB_H 1
33042 _ACEOF
33043
33044 fi
33045
33046 done
33047
33048   for ac_func in _ftime
33049 do :
33050   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
33051 if test "x$ac_cv_func__ftime" = x""yes; then :
33052   cat >>confdefs.h <<_ACEOF
33053 #define HAVE__FTIME 1
33054 _ACEOF
33055
33056 fi
33057 done
33058
33059
33060     fi
33061   fi
33062
33063 cat >>confdefs.h <<_ACEOF
33064 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
33065 _ACEOF
33066
33067
33068
33069
33070
33071   GNULIB_GETTIMEOFDAY=1
33072
33073
33074
33075 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
33076
33077
33078
33079   # Code from module gperf:
33080   # Code from module hash:
33081   # Code from module havelib:
33082   # Code from module html-ostream:
33083   # Code from module html-styled-ostream:
33084   # Code from module iconv:
33085
33086   # Code from module iconv-h:
33087
33088
33089
33090
33091
33092
33093
33094   :
33095
33096
33097
33098
33099
33100
33101
33102      if test $gl_cv_have_include_next = yes; then
33103        gl_cv_next_iconv_h='<'iconv.h'>'
33104      else
33105        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5
33106 $as_echo_n "checking absolute name of <iconv.h>... " >&6; }
33107 if test "${gl_cv_next_iconv_h+set}" = set; then :
33108   $as_echo_n "(cached) " >&6
33109 else
33110
33111           if test $ac_cv_header_iconv_h = yes; then
33112             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33113 /* end confdefs.h.  */
33114 #include <iconv.h>
33115
33116 _ACEOF
33117                                                                                                 case "$host_os" in
33118               aix*) gl_absname_cpp="$ac_cpp -C" ;;
33119               *)    gl_absname_cpp="$ac_cpp" ;;
33120             esac
33121                                                 gl_cv_next_iconv_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33122                sed -n '\#/iconv.h#{
33123                  s#.*"\(.*/iconv.h\)".*#\1#
33124                  s#^/[^/]#//&#
33125                  p
33126                  q
33127                }'`'"'
33128           else
33129             gl_cv_next_iconv_h='<'iconv.h'>'
33130           fi
33131
33132 fi
33133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5
33134 $as_echo "$gl_cv_next_iconv_h" >&6; }
33135      fi
33136      NEXT_ICONV_H=$gl_cv_next_iconv_h
33137
33138      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33139        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33140        gl_next_as_first_directive='<'iconv.h'>'
33141      else
33142        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33143        gl_next_as_first_directive=$gl_cv_next_iconv_h
33144      fi
33145      NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
33146
33147
33148
33149
33150   # Code from module iconv_open:
33151
33152
33153
33154
33155   if test "$am_cv_func_iconv" = yes; then
33156
33157
33158   ICONV_H='iconv.h'
33159
33160             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33161 /* end confdefs.h.  */
33162
33163       #include <iconv.h>
33164       #if defined _LIBICONV_VERSION || defined __GLIBC__
33165        gnu_iconv
33166       #endif
33167
33168 _ACEOF
33169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33170   $EGREP "gnu_iconv" >/dev/null 2>&1; then :
33171   gl_func_iconv_gnu=yes
33172 else
33173   gl_func_iconv_gnu=no
33174 fi
33175 rm -f conftest*
33176
33177     if test $gl_func_iconv_gnu = no; then
33178       iconv_flavor=
33179       case "$host_os" in
33180         aix*)     iconv_flavor=ICONV_FLAVOR_AIX ;;
33181         irix*)    iconv_flavor=ICONV_FLAVOR_IRIX ;;
33182         hpux*)    iconv_flavor=ICONV_FLAVOR_HPUX ;;
33183         osf*)     iconv_flavor=ICONV_FLAVOR_OSF ;;
33184         solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;;
33185       esac
33186       if test -n "$iconv_flavor"; then
33187
33188 cat >>confdefs.h <<_ACEOF
33189 #define ICONV_FLAVOR $iconv_flavor
33190 _ACEOF
33191
33192
33193
33194
33195   ICONV_H='iconv.h'
33196
33197   REPLACE_ICONV_OPEN=1
33198
33199
33200
33201
33202
33203
33204
33205
33206   gl_LIBOBJS="$gl_LIBOBJS iconv_open.$ac_objext"
33207
33208
33209       fi
33210     fi
33211   fi
33212
33213   # Code from module include_next:
33214   # Code from module inline:
33215
33216
33217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
33218 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
33219 if test "${gl_cv_c_inline_effective+set}" = set; then :
33220   $as_echo_n "(cached) " >&6
33221 else
33222   if test $ac_cv_c_inline = no; then
33223        gl_cv_c_inline_effective=no
33224      else
33225                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33226 /* end confdefs.h.  */
33227
33228 int
33229 main ()
33230 {
33231 #ifdef __NO_INLINE__
33232                #error "inline is not effective"
33233              #endif
33234   ;
33235   return 0;
33236 }
33237 _ACEOF
33238 if ac_fn_c_try_compile "$LINENO"; then :
33239   gl_cv_c_inline_effective=yes
33240 else
33241   gl_cv_c_inline_effective=no
33242 fi
33243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33244      fi
33245
33246 fi
33247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
33248 $as_echo "$gl_cv_c_inline_effective" >&6; }
33249   if test $gl_cv_c_inline_effective = yes; then
33250
33251 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
33252
33253   fi
33254
33255   # Code from module intprops:
33256   # Code from module java:
33257
33258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5
33259 $as_echo_n "checking whether to use Java... " >&6; }
33260   # Check whether --enable-java was given.
33261 if test "${enable_java+set}" = set; then :
33262   enableval=$enable_java; JAVA_CHOICE="$enableval"
33263 else
33264   JAVA_CHOICE=yes
33265 fi
33266
33267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5
33268 $as_echo "$JAVA_CHOICE" >&6; }
33269   if test "$JAVA_CHOICE" = yes; then
33270     # Check whether --enable-native-java was given.
33271 if test "${enable_native_java+set}" = set; then :
33272   enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
33273 fi
33274
33275   fi
33276
33277
33278   # Code from module javacomp:
33279   # Code from module javacomp-script:
33280   # You need to invoke gt_JAVACOMP yourself, possibly with arguments.
33281   ac_config_files="$ac_config_files javacomp.sh:../build-aux/javacomp.sh.in"
33282
33283   # Code from module javaexec:
33284   # Code from module javaexec-script:
33285   # You need to invoke gt_JAVAEXEC yourself, possibly with arguments.
33286   ac_config_files="$ac_config_files javaexec.sh:../build-aux/javaexec.sh.in"
33287
33288   # Code from module javaversion:
33289   # Code from module libcroco:
33290
33291
33292
33293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included libcroco is requested" >&5
33294 $as_echo_n "checking whether included libcroco is requested... " >&6; }
33295
33296 # Check whether --with-included-libcroco was given.
33297 if test "${with_included_libcroco+set}" = set; then :
33298   withval=$with_included_libcroco; gl_cv_libcroco_force_included=$withval
33299 else
33300   gl_cv_libcroco_force_included=no
33301 fi
33302
33303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libcroco_force_included" >&5
33304 $as_echo "$gl_cv_libcroco_force_included" >&6; }
33305
33306   gl_cv_libcroco_use_included="$gl_cv_libcroco_force_included"
33307   LIBCROCO=
33308   LTLIBCROCO=
33309   INCCROCO=
33310   if test "$gl_cv_libcroco_use_included" != yes; then
33311             if test "${gl_cv_libcroco+set}" = set; then :
33312   $as_echo_n "(cached) " >&6
33313 else
33314
33315       gl_cv_libcroco=no
33316       gl_cv_LIBCROCO=
33317       gl_cv_LTLIBCROCO=
33318       gl_cv_INCCROCO=
33319       gl_save_LIBS="$LIBS"
33320
33321
33322
33323
33324
33325
33326
33327     use_additional=yes
33328
33329   acl_save_prefix="$prefix"
33330   prefix="$acl_final_prefix"
33331   acl_save_exec_prefix="$exec_prefix"
33332   exec_prefix="$acl_final_exec_prefix"
33333
33334     eval additional_includedir=\"$includedir\"
33335     eval additional_libdir=\"$libdir\"
33336
33337   exec_prefix="$acl_save_exec_prefix"
33338   prefix="$acl_save_prefix"
33339
33340
33341 # Check whether --with-libcroco-0.6-prefix was given.
33342 if test "${with_libcroco_06_prefix+set}" = set; then :
33343   withval=$with_libcroco_06_prefix;
33344     if test "X$withval" = "Xno"; then
33345       use_additional=no
33346     else
33347       if test "X$withval" = "X"; then
33348
33349   acl_save_prefix="$prefix"
33350   prefix="$acl_final_prefix"
33351   acl_save_exec_prefix="$exec_prefix"
33352   exec_prefix="$acl_final_exec_prefix"
33353
33354           eval additional_includedir=\"$includedir\"
33355           eval additional_libdir=\"$libdir\"
33356
33357   exec_prefix="$acl_save_exec_prefix"
33358   prefix="$acl_save_prefix"
33359
33360       else
33361         additional_includedir="$withval/include"
33362         additional_libdir="$withval/$acl_libdirstem"
33363         if test "$acl_libdirstem2" != "$acl_libdirstem" \
33364            && ! test -d "$withval/$acl_libdirstem"; then
33365           additional_libdir="$withval/$acl_libdirstem2"
33366         fi
33367       fi
33368     fi
33369
33370 fi
33371
33372       LIBCROCO_0_6=
33373   LTLIBCROCO_0_6=
33374   INCCROCO_0_6=
33375   LIBCROCO_0_6_PREFIX=
33376       HAVE_LIBCROCO_0_6=
33377   rpathdirs=
33378   ltrpathdirs=
33379   names_already_handled=
33380   names_next_round='croco-0.6 glib-2.0'
33381   while test -n "$names_next_round"; do
33382     names_this_round="$names_next_round"
33383     names_next_round=
33384     for name in $names_this_round; do
33385       already_handled=
33386       for n in $names_already_handled; do
33387         if test "$n" = "$name"; then
33388           already_handled=yes
33389           break
33390         fi
33391       done
33392       if test -z "$already_handled"; then
33393         names_already_handled="$names_already_handled $name"
33394                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
33395         eval value=\"\$HAVE_LIB$uppername\"
33396         if test -n "$value"; then
33397           if test "$value" = yes; then
33398             eval value=\"\$LIB$uppername\"
33399             test -z "$value" || LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$value"
33400             eval value=\"\$LTLIB$uppername\"
33401             test -z "$value" || LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }$value"
33402           else
33403                                     :
33404           fi
33405         else
33406                               found_dir=
33407           found_la=
33408           found_so=
33409           found_a=
33410           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
33411           if test -n "$acl_shlibext"; then
33412             shrext=".$acl_shlibext"             # typically: shrext=.so
33413           else
33414             shrext=
33415           fi
33416           if test $use_additional = yes; then
33417             dir="$additional_libdir"
33418                                     if test -n "$acl_shlibext"; then
33419               if test -f "$dir/$libname$shrext"; then
33420                 found_dir="$dir"
33421                 found_so="$dir/$libname$shrext"
33422               else
33423                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
33424                   ver=`(cd "$dir" && \
33425                         for f in "$libname$shrext".*; do echo "$f"; done \
33426                         | sed -e "s,^$libname$shrext\\\\.,," \
33427                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
33428                         | sed 1q ) 2>/dev/null`
33429                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
33430                     found_dir="$dir"
33431                     found_so="$dir/$libname$shrext.$ver"
33432                   fi
33433                 else
33434                   eval library_names=\"$acl_library_names_spec\"
33435                   for f in $library_names; do
33436                     if test -f "$dir/$f"; then
33437                       found_dir="$dir"
33438                       found_so="$dir/$f"
33439                       break
33440                     fi
33441                   done
33442                 fi
33443               fi
33444             fi
33445                         if test "X$found_dir" = "X"; then
33446               if test -f "$dir/$libname.$acl_libext"; then
33447                 found_dir="$dir"
33448                 found_a="$dir/$libname.$acl_libext"
33449               fi
33450             fi
33451             if test "X$found_dir" != "X"; then
33452               if test -f "$dir/$libname.la"; then
33453                 found_la="$dir/$libname.la"
33454               fi
33455             fi
33456           fi
33457           if test "X$found_dir" = "X"; then
33458             for x in $LDFLAGS $LTLIBCROCO_0_6; do
33459
33460   acl_save_prefix="$prefix"
33461   prefix="$acl_final_prefix"
33462   acl_save_exec_prefix="$exec_prefix"
33463   exec_prefix="$acl_final_exec_prefix"
33464   eval x=\"$x\"
33465   exec_prefix="$acl_save_exec_prefix"
33466   prefix="$acl_save_prefix"
33467
33468               case "$x" in
33469                 -L*)
33470                   dir=`echo "X$x" | sed -e 's/^X-L//'`
33471                                     if test -n "$acl_shlibext"; then
33472                     if test -f "$dir/$libname$shrext"; then
33473                       found_dir="$dir"
33474                       found_so="$dir/$libname$shrext"
33475                     else
33476                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
33477                         ver=`(cd "$dir" && \
33478                               for f in "$libname$shrext".*; do echo "$f"; done \
33479                               | sed -e "s,^$libname$shrext\\\\.,," \
33480                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
33481                               | sed 1q ) 2>/dev/null`
33482                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
33483                           found_dir="$dir"
33484                           found_so="$dir/$libname$shrext.$ver"
33485                         fi
33486                       else
33487                         eval library_names=\"$acl_library_names_spec\"
33488                         for f in $library_names; do
33489                           if test -f "$dir/$f"; then
33490                             found_dir="$dir"
33491                             found_so="$dir/$f"
33492                             break
33493                           fi
33494                         done
33495                       fi
33496                     fi
33497                   fi
33498                                     if test "X$found_dir" = "X"; then
33499                     if test -f "$dir/$libname.$acl_libext"; then
33500                       found_dir="$dir"
33501                       found_a="$dir/$libname.$acl_libext"
33502                     fi
33503                   fi
33504                   if test "X$found_dir" != "X"; then
33505                     if test -f "$dir/$libname.la"; then
33506                       found_la="$dir/$libname.la"
33507                     fi
33508                   fi
33509                   ;;
33510               esac
33511               if test "X$found_dir" != "X"; then
33512                 break
33513               fi
33514             done
33515           fi
33516           if test "X$found_dir" != "X"; then
33517                         LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-L$found_dir -l$name"
33518             if test "X$found_so" != "X"; then
33519                                                         if test "$enable_rpath" = no \
33520                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
33521                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
33522                                 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
33523               else
33524                                                                                 haveit=
33525                 for x in $ltrpathdirs; do
33526                   if test "X$x" = "X$found_dir"; then
33527                     haveit=yes
33528                     break
33529                   fi
33530                 done
33531                 if test -z "$haveit"; then
33532                   ltrpathdirs="$ltrpathdirs $found_dir"
33533                 fi
33534                                 if test "$acl_hardcode_direct" = yes; then
33535                                                       LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
33536                 else
33537                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
33538                                                             LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
33539                                                             haveit=
33540                     for x in $rpathdirs; do
33541                       if test "X$x" = "X$found_dir"; then
33542                         haveit=yes
33543                         break
33544                       fi
33545                     done
33546                     if test -z "$haveit"; then
33547                       rpathdirs="$rpathdirs $found_dir"
33548                     fi
33549                   else
33550                                                                                 haveit=
33551                     for x in $LDFLAGS $LIBCROCO_0_6; do
33552
33553   acl_save_prefix="$prefix"
33554   prefix="$acl_final_prefix"
33555   acl_save_exec_prefix="$exec_prefix"
33556   exec_prefix="$acl_final_exec_prefix"
33557   eval x=\"$x\"
33558   exec_prefix="$acl_save_exec_prefix"
33559   prefix="$acl_save_prefix"
33560
33561                       if test "X$x" = "X-L$found_dir"; then
33562                         haveit=yes
33563                         break
33564                       fi
33565                     done
33566                     if test -z "$haveit"; then
33567                       LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$found_dir"
33568                     fi
33569                     if test "$acl_hardcode_minus_L" != no; then
33570                                                                                         LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
33571                     else
33572                                                                                                                                                                                 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-l$name"
33573                     fi
33574                   fi
33575                 fi
33576               fi
33577             else
33578               if test "X$found_a" != "X"; then
33579                                 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_a"
33580               else
33581                                                 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$found_dir -l$name"
33582               fi
33583             fi
33584                         additional_includedir=
33585             case "$found_dir" in
33586               */$acl_libdirstem | */$acl_libdirstem/)
33587                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
33588                 if test "$name" = 'croco-0.6'; then
33589                   LIBCROCO_0_6_PREFIX="$basedir"
33590                 fi
33591                 additional_includedir="$basedir/include"
33592                 ;;
33593               */$acl_libdirstem2 | */$acl_libdirstem2/)
33594                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
33595                 if test "$name" = 'croco-0.6'; then
33596                   LIBCROCO_0_6_PREFIX="$basedir"
33597                 fi
33598                 additional_includedir="$basedir/include"
33599                 ;;
33600             esac
33601             if test "X$additional_includedir" != "X"; then
33602                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
33603                 haveit=
33604                 if test "X$additional_includedir" = "X/usr/local/include"; then
33605                   if test -n "$GCC"; then
33606                     case $host_os in
33607                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
33608                     esac
33609                   fi
33610                 fi
33611                 if test -z "$haveit"; then
33612                   for x in $CPPFLAGS $INCCROCO_0_6; do
33613
33614   acl_save_prefix="$prefix"
33615   prefix="$acl_final_prefix"
33616   acl_save_exec_prefix="$exec_prefix"
33617   exec_prefix="$acl_final_exec_prefix"
33618   eval x=\"$x\"
33619   exec_prefix="$acl_save_exec_prefix"
33620   prefix="$acl_save_prefix"
33621
33622                     if test "X$x" = "X-I$additional_includedir"; then
33623                       haveit=yes
33624                       break
33625                     fi
33626                   done
33627                   if test -z "$haveit"; then
33628                     if test -d "$additional_includedir"; then
33629                                             INCCROCO_0_6="${INCCROCO_0_6}${INCCROCO_0_6:+ }-I$additional_includedir"
33630                     fi
33631                   fi
33632                 fi
33633               fi
33634             fi
33635                         if test -n "$found_la"; then
33636                                                         save_libdir="$libdir"
33637               case "$found_la" in
33638                 */* | *\\*) . "$found_la" ;;
33639                 *) . "./$found_la" ;;
33640               esac
33641               libdir="$save_libdir"
33642                             for dep in $dependency_libs; do
33643                 case "$dep" in
33644                   -L*)
33645                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
33646                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
33647                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
33648                       haveit=
33649                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
33650                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
33651                         if test -n "$GCC"; then
33652                           case $host_os in
33653                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
33654                           esac
33655                         fi
33656                       fi
33657                       if test -z "$haveit"; then
33658                         haveit=
33659                         for x in $LDFLAGS $LIBCROCO_0_6; do
33660
33661   acl_save_prefix="$prefix"
33662   prefix="$acl_final_prefix"
33663   acl_save_exec_prefix="$exec_prefix"
33664   exec_prefix="$acl_final_exec_prefix"
33665   eval x=\"$x\"
33666   exec_prefix="$acl_save_exec_prefix"
33667   prefix="$acl_save_prefix"
33668
33669                           if test "X$x" = "X-L$additional_libdir"; then
33670                             haveit=yes
33671                             break
33672                           fi
33673                         done
33674                         if test -z "$haveit"; then
33675                           if test -d "$additional_libdir"; then
33676                                                         LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$additional_libdir"
33677                           fi
33678                         fi
33679                         haveit=
33680                         for x in $LDFLAGS $LTLIBCROCO_0_6; do
33681
33682   acl_save_prefix="$prefix"
33683   prefix="$acl_final_prefix"
33684   acl_save_exec_prefix="$exec_prefix"
33685   exec_prefix="$acl_final_exec_prefix"
33686   eval x=\"$x\"
33687   exec_prefix="$acl_save_exec_prefix"
33688   prefix="$acl_save_prefix"
33689
33690                           if test "X$x" = "X-L$additional_libdir"; then
33691                             haveit=yes
33692                             break
33693                           fi
33694                         done
33695                         if test -z "$haveit"; then
33696                           if test -d "$additional_libdir"; then
33697                                                         LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-L$additional_libdir"
33698                           fi
33699                         fi
33700                       fi
33701                     fi
33702                     ;;
33703                   -R*)
33704                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
33705                     if test "$enable_rpath" != no; then
33706                                                                   haveit=
33707                       for x in $rpathdirs; do
33708                         if test "X$x" = "X$dir"; then
33709                           haveit=yes
33710                           break
33711                         fi
33712                       done
33713                       if test -z "$haveit"; then
33714                         rpathdirs="$rpathdirs $dir"
33715                       fi
33716                                                                   haveit=
33717                       for x in $ltrpathdirs; do
33718                         if test "X$x" = "X$dir"; then
33719                           haveit=yes
33720                           break
33721                         fi
33722                       done
33723                       if test -z "$haveit"; then
33724                         ltrpathdirs="$ltrpathdirs $dir"
33725                       fi
33726                     fi
33727                     ;;
33728                   -l*)
33729                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
33730                     ;;
33731                   *.la)
33732                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
33733                     ;;
33734                   *)
33735                                         LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$dep"
33736                     LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }$dep"
33737                     ;;
33738                 esac
33739               done
33740             fi
33741           else
33742                                                             LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-l$name"
33743             LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-l$name"
33744           fi
33745         fi
33746       fi
33747     done
33748   done
33749   if test "X$rpathdirs" != "X"; then
33750     if test -n "$acl_hardcode_libdir_separator"; then
33751                         alldirs=
33752       for found_dir in $rpathdirs; do
33753         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
33754       done
33755             acl_save_libdir="$libdir"
33756       libdir="$alldirs"
33757       eval flag=\"$acl_hardcode_libdir_flag_spec\"
33758       libdir="$acl_save_libdir"
33759       LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$flag"
33760     else
33761             for found_dir in $rpathdirs; do
33762         acl_save_libdir="$libdir"
33763         libdir="$found_dir"
33764         eval flag=\"$acl_hardcode_libdir_flag_spec\"
33765         libdir="$acl_save_libdir"
33766         LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$flag"
33767       done
33768     fi
33769   fi
33770   if test "X$ltrpathdirs" != "X"; then
33771             for found_dir in $ltrpathdirs; do
33772       LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-R$found_dir"
33773     done
33774   fi
33775
33776
33777
33778
33779
33780
33781       LIBS="$gl_save_LIBS $LIBCROCO_0_6"
33782       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33783 /* end confdefs.h.  */
33784 #include <libcroco-config.h>
33785 int
33786 main ()
33787 {
33788 const char *version = LIBCROCO_VERSION; return !version;
33789   ;
33790   return 0;
33791 }
33792 _ACEOF
33793 if ac_fn_c_try_link "$LINENO"; then :
33794   gl_cv_libcroco=yes
33795          gl_cv_LIBCROCO="$LIBCROCO_0_6"
33796          gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6"
33797
33798 fi
33799 rm -f core conftest.err conftest.$ac_objext \
33800     conftest$ac_exeext conftest.$ac_ext
33801       if test "$gl_cv_libcroco" != yes; then
33802         gl_save_CPPFLAGS="$CPPFLAGS"
33803         CPPFLAGS="$CPPFLAGS $INCCROCO_0_6"
33804         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33805 /* end confdefs.h.  */
33806 #include <libcroco-config.h>
33807 int
33808 main ()
33809 {
33810 const char *version = LIBCROCO_VERSION; return !version;
33811   ;
33812   return 0;
33813 }
33814 _ACEOF
33815 if ac_fn_c_try_link "$LINENO"; then :
33816   gl_cv_libcroco=yes
33817            gl_cv_LIBCROCO="$LIBCROCO_0_6"
33818            gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6"
33819            gl_cv_INCCROCO="$INCCROCO_0_6"
33820
33821 fi
33822 rm -f core conftest.err conftest.$ac_objext \
33823     conftest$ac_exeext conftest.$ac_ext
33824         if test "$gl_cv_libcroco" != yes; then
33825                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33826 /* end confdefs.h.  */
33827 #include <libcroco-0.6/libcroco/libcroco-config.h>
33828 int
33829 main ()
33830 {
33831 const char *version = LIBCROCO_VERSION; return !version;
33832   ;
33833   return 0;
33834 }
33835 _ACEOF
33836 if ac_fn_c_try_link "$LINENO"; then :
33837
33838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <libcroco-0.6/libcroco/libcroco-config.h>" >&5
33839 $as_echo_n "checking absolute name of <libcroco-0.6/libcroco/libcroco-config.h>... " >&6; }
33840 if test "${gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h+set}" = set; then :
33841   $as_echo_n "(cached) " >&6
33842 else
33843
33844   :
33845
33846
33847
33848
33849     if test $ac_cv_header_libcroco_0_6_libcroco_libcroco_config_h = yes; then
33850
33851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33852 /* end confdefs.h.  */
33853 #include <libcroco-0.6/libcroco/libcroco-config.h>
33854 _ACEOF
33855                 case "$host_os" in
33856     aix*) gl_absname_cpp="$ac_cpp -C" ;;
33857     *)    gl_absname_cpp="$ac_cpp" ;;
33858   esac
33859         gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33860 sed -n '\#/libcroco-0.6/libcroco/libcroco-config.h#{
33861         s#.*"\(.*/libcroco-0.6/libcroco/libcroco-config.h\)".*#\1#
33862         s#^/[^/]#//&#
33863         p
33864         q
33865 }'`
33866
33867     fi
33868
33869 fi
33870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" >&5
33871 $as_echo "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" >&6; }
33872 cat >>confdefs.h <<_ACEOF
33873 #define ABSOLUTE_LIBCROCO_0_6_LIBCROCO_LIBCROCO_CONFIG_H "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h"
33874 _ACEOF
33875
33876
33877              libcroco_include_dir=`echo "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" | sed -e 's,.libcroco-config\.h$,,'`
33878              if test -d "$libcroco_include_dir"; then
33879                gl_cv_libcroco=yes
33880                gl_cv_LIBCROCO="$LIBCROCO_0_6"
33881                gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6"
33882                gl_cv_INCCROCO="-I$libcroco_include_dir"
33883              fi
33884
33885 fi
33886 rm -f core conftest.err conftest.$ac_objext \
33887     conftest$ac_exeext conftest.$ac_ext
33888         fi
33889         CPPFLAGS="$gl_save_CPPFLAGS"
33890       fi
33891       LIBS="$gl_save_LIBS"
33892
33893 fi
33894
33895     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcroco" >&5
33896 $as_echo_n "checking for libcroco... " >&6; }
33897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libcroco" >&5
33898 $as_echo "$gl_cv_libcroco" >&6; }
33899     if test $gl_cv_libcroco = yes; then
33900       LIBCROCO="$gl_cv_LIBCROCO"
33901       LTLIBCROCO="$gl_cv_LTLIBCROCO"
33902       INCCROCO="$gl_cv_INCCROCO"
33903     else
33904       gl_cv_libcroco_use_included=yes
33905     fi
33906   fi
33907
33908
33909
33910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libcroco" >&5
33911 $as_echo_n "checking whether to use the included libcroco... " >&6; }
33912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libcroco_use_included" >&5
33913 $as_echo "$gl_cv_libcroco_use_included" >&6; }
33914
33915    if test "$gl_cv_libcroco_use_included" = yes; then
33916   INCLUDED_LIBCROCO_TRUE=
33917   INCLUDED_LIBCROCO_FALSE='#'
33918 else
33919   INCLUDED_LIBCROCO_TRUE='#'
33920   INCLUDED_LIBCROCO_FALSE=
33921 fi
33922
33923
33924   # Code from module libglib:
33925
33926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included glib is requested" >&5
33927 $as_echo_n "checking whether included glib is requested... " >&6; }
33928
33929 # Check whether --with-included-glib was given.
33930 if test "${with_included_glib+set}" = set; then :
33931   withval=$with_included_glib; gl_cv_libglib_force_included=$withval
33932 else
33933   gl_cv_libglib_force_included=no
33934 fi
33935
33936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_force_included" >&5
33937 $as_echo "$gl_cv_libglib_force_included" >&6; }
33938
33939   gl_cv_libglib_use_included="$gl_cv_libglib_force_included"
33940   LIBGLIB=
33941   LTLIBGLIB=
33942   INCGLIB=
33943   if test "$gl_cv_libglib_use_included" != yes; then
33944             if test "${gl_cv_libglib+set}" = set; then :
33945   $as_echo_n "(cached) " >&6
33946 else
33947
33948       gl_cv_libglib=no
33949       gl_cv_LIBGLIB=
33950       gl_cv_LTLIBGLIB=
33951       gl_cv_INCGLIB=
33952       gl_save_LIBS="$LIBS"
33953
33954
33955
33956
33957
33958
33959
33960     use_additional=yes
33961
33962   acl_save_prefix="$prefix"
33963   prefix="$acl_final_prefix"
33964   acl_save_exec_prefix="$exec_prefix"
33965   exec_prefix="$acl_final_exec_prefix"
33966
33967     eval additional_includedir=\"$includedir\"
33968     eval additional_libdir=\"$libdir\"
33969
33970   exec_prefix="$acl_save_exec_prefix"
33971   prefix="$acl_save_prefix"
33972
33973
33974 # Check whether --with-libglib-2.0-prefix was given.
33975 if test "${with_libglib_20_prefix+set}" = set; then :
33976   withval=$with_libglib_20_prefix;
33977     if test "X$withval" = "Xno"; then
33978       use_additional=no
33979     else
33980       if test "X$withval" = "X"; then
33981
33982   acl_save_prefix="$prefix"
33983   prefix="$acl_final_prefix"
33984   acl_save_exec_prefix="$exec_prefix"
33985   exec_prefix="$acl_final_exec_prefix"
33986
33987           eval additional_includedir=\"$includedir\"
33988           eval additional_libdir=\"$libdir\"
33989
33990   exec_prefix="$acl_save_exec_prefix"
33991   prefix="$acl_save_prefix"
33992
33993       else
33994         additional_includedir="$withval/include"
33995         additional_libdir="$withval/$acl_libdirstem"
33996         if test "$acl_libdirstem2" != "$acl_libdirstem" \
33997            && ! test -d "$withval/$acl_libdirstem"; then
33998           additional_libdir="$withval/$acl_libdirstem2"
33999         fi
34000       fi
34001     fi
34002
34003 fi
34004
34005       LIBGLIB_2_0=
34006   LTLIBGLIB_2_0=
34007   INCGLIB_2_0=
34008   LIBGLIB_2_0_PREFIX=
34009       HAVE_LIBGLIB_2_0=
34010   rpathdirs=
34011   ltrpathdirs=
34012   names_already_handled=
34013   names_next_round='glib-2.0 '
34014   while test -n "$names_next_round"; do
34015     names_this_round="$names_next_round"
34016     names_next_round=
34017     for name in $names_this_round; do
34018       already_handled=
34019       for n in $names_already_handled; do
34020         if test "$n" = "$name"; then
34021           already_handled=yes
34022           break
34023         fi
34024       done
34025       if test -z "$already_handled"; then
34026         names_already_handled="$names_already_handled $name"
34027                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
34028         eval value=\"\$HAVE_LIB$uppername\"
34029         if test -n "$value"; then
34030           if test "$value" = yes; then
34031             eval value=\"\$LIB$uppername\"
34032             test -z "$value" || LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$value"
34033             eval value=\"\$LTLIB$uppername\"
34034             test -z "$value" || LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$value"
34035           else
34036                                     :
34037           fi
34038         else
34039                               found_dir=
34040           found_la=
34041           found_so=
34042           found_a=
34043           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
34044           if test -n "$acl_shlibext"; then
34045             shrext=".$acl_shlibext"             # typically: shrext=.so
34046           else
34047             shrext=
34048           fi
34049           if test $use_additional = yes; then
34050             dir="$additional_libdir"
34051                                     if test -n "$acl_shlibext"; then
34052               if test -f "$dir/$libname$shrext"; then
34053                 found_dir="$dir"
34054                 found_so="$dir/$libname$shrext"
34055               else
34056                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
34057                   ver=`(cd "$dir" && \
34058                         for f in "$libname$shrext".*; do echo "$f"; done \
34059                         | sed -e "s,^$libname$shrext\\\\.,," \
34060                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
34061                         | sed 1q ) 2>/dev/null`
34062                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
34063                     found_dir="$dir"
34064                     found_so="$dir/$libname$shrext.$ver"
34065                   fi
34066                 else
34067                   eval library_names=\"$acl_library_names_spec\"
34068                   for f in $library_names; do
34069                     if test -f "$dir/$f"; then
34070                       found_dir="$dir"
34071                       found_so="$dir/$f"
34072                       break
34073                     fi
34074                   done
34075                 fi
34076               fi
34077             fi
34078                         if test "X$found_dir" = "X"; then
34079               if test -f "$dir/$libname.$acl_libext"; then
34080                 found_dir="$dir"
34081                 found_a="$dir/$libname.$acl_libext"
34082               fi
34083             fi
34084             if test "X$found_dir" != "X"; then
34085               if test -f "$dir/$libname.la"; then
34086                 found_la="$dir/$libname.la"
34087               fi
34088             fi
34089           fi
34090           if test "X$found_dir" = "X"; then
34091             for x in $LDFLAGS $LTLIBGLIB_2_0; do
34092
34093   acl_save_prefix="$prefix"
34094   prefix="$acl_final_prefix"
34095   acl_save_exec_prefix="$exec_prefix"
34096   exec_prefix="$acl_final_exec_prefix"
34097   eval x=\"$x\"
34098   exec_prefix="$acl_save_exec_prefix"
34099   prefix="$acl_save_prefix"
34100
34101               case "$x" in
34102                 -L*)
34103                   dir=`echo "X$x" | sed -e 's/^X-L//'`
34104                                     if test -n "$acl_shlibext"; then
34105                     if test -f "$dir/$libname$shrext"; then
34106                       found_dir="$dir"
34107                       found_so="$dir/$libname$shrext"
34108                     else
34109                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
34110                         ver=`(cd "$dir" && \
34111                               for f in "$libname$shrext".*; do echo "$f"; done \
34112                               | sed -e "s,^$libname$shrext\\\\.,," \
34113                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
34114                               | sed 1q ) 2>/dev/null`
34115                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
34116                           found_dir="$dir"
34117                           found_so="$dir/$libname$shrext.$ver"
34118                         fi
34119                       else
34120                         eval library_names=\"$acl_library_names_spec\"
34121                         for f in $library_names; do
34122                           if test -f "$dir/$f"; then
34123                             found_dir="$dir"
34124                             found_so="$dir/$f"
34125                             break
34126                           fi
34127                         done
34128                       fi
34129                     fi
34130                   fi
34131                                     if test "X$found_dir" = "X"; then
34132                     if test -f "$dir/$libname.$acl_libext"; then
34133                       found_dir="$dir"
34134                       found_a="$dir/$libname.$acl_libext"
34135                     fi
34136                   fi
34137                   if test "X$found_dir" != "X"; then
34138                     if test -f "$dir/$libname.la"; then
34139                       found_la="$dir/$libname.la"
34140                     fi
34141                   fi
34142                   ;;
34143               esac
34144               if test "X$found_dir" != "X"; then
34145                 break
34146               fi
34147             done
34148           fi
34149           if test "X$found_dir" != "X"; then
34150                         LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$found_dir -l$name"
34151             if test "X$found_so" != "X"; then
34152                                                         if test "$enable_rpath" = no \
34153                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
34154                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
34155                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
34156               else
34157                                                                                 haveit=
34158                 for x in $ltrpathdirs; do
34159                   if test "X$x" = "X$found_dir"; then
34160                     haveit=yes
34161                     break
34162                   fi
34163                 done
34164                 if test -z "$haveit"; then
34165                   ltrpathdirs="$ltrpathdirs $found_dir"
34166                 fi
34167                                 if test "$acl_hardcode_direct" = yes; then
34168                                                       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
34169                 else
34170                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
34171                                                             LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
34172                                                             haveit=
34173                     for x in $rpathdirs; do
34174                       if test "X$x" = "X$found_dir"; then
34175                         haveit=yes
34176                         break
34177                       fi
34178                     done
34179                     if test -z "$haveit"; then
34180                       rpathdirs="$rpathdirs $found_dir"
34181                     fi
34182                   else
34183                                                                                 haveit=
34184                     for x in $LDFLAGS $LIBGLIB_2_0; do
34185
34186   acl_save_prefix="$prefix"
34187   prefix="$acl_final_prefix"
34188   acl_save_exec_prefix="$exec_prefix"
34189   exec_prefix="$acl_final_exec_prefix"
34190   eval x=\"$x\"
34191   exec_prefix="$acl_save_exec_prefix"
34192   prefix="$acl_save_prefix"
34193
34194                       if test "X$x" = "X-L$found_dir"; then
34195                         haveit=yes
34196                         break
34197                       fi
34198                     done
34199                     if test -z "$haveit"; then
34200                       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir"
34201                     fi
34202                     if test "$acl_hardcode_minus_L" != no; then
34203                                                                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
34204                     else
34205                                                                                                                                                                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
34206                     fi
34207                   fi
34208                 fi
34209               fi
34210             else
34211               if test "X$found_a" != "X"; then
34212                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_a"
34213               else
34214                                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir -l$name"
34215               fi
34216             fi
34217                         additional_includedir=
34218             case "$found_dir" in
34219               */$acl_libdirstem | */$acl_libdirstem/)
34220                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
34221                 if test "$name" = 'glib-2.0'; then
34222                   LIBGLIB_2_0_PREFIX="$basedir"
34223                 fi
34224                 additional_includedir="$basedir/include"
34225                 ;;
34226               */$acl_libdirstem2 | */$acl_libdirstem2/)
34227                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
34228                 if test "$name" = 'glib-2.0'; then
34229                   LIBGLIB_2_0_PREFIX="$basedir"
34230                 fi
34231                 additional_includedir="$basedir/include"
34232                 ;;
34233             esac
34234             if test "X$additional_includedir" != "X"; then
34235                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
34236                 haveit=
34237                 if test "X$additional_includedir" = "X/usr/local/include"; then
34238                   if test -n "$GCC"; then
34239                     case $host_os in
34240                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34241                     esac
34242                   fi
34243                 fi
34244                 if test -z "$haveit"; then
34245                   for x in $CPPFLAGS $INCGLIB_2_0; do
34246
34247   acl_save_prefix="$prefix"
34248   prefix="$acl_final_prefix"
34249   acl_save_exec_prefix="$exec_prefix"
34250   exec_prefix="$acl_final_exec_prefix"
34251   eval x=\"$x\"
34252   exec_prefix="$acl_save_exec_prefix"
34253   prefix="$acl_save_prefix"
34254
34255                     if test "X$x" = "X-I$additional_includedir"; then
34256                       haveit=yes
34257                       break
34258                     fi
34259                   done
34260                   if test -z "$haveit"; then
34261                     if test -d "$additional_includedir"; then
34262                                             INCGLIB_2_0="${INCGLIB_2_0}${INCGLIB_2_0:+ }-I$additional_includedir"
34263                     fi
34264                   fi
34265                 fi
34266               fi
34267             fi
34268                         if test -n "$found_la"; then
34269                                                         save_libdir="$libdir"
34270               case "$found_la" in
34271                 */* | *\\*) . "$found_la" ;;
34272                 *) . "./$found_la" ;;
34273               esac
34274               libdir="$save_libdir"
34275                             for dep in $dependency_libs; do
34276                 case "$dep" in
34277                   -L*)
34278                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
34279                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
34280                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
34281                       haveit=
34282                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
34283                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
34284                         if test -n "$GCC"; then
34285                           case $host_os in
34286                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34287                           esac
34288                         fi
34289                       fi
34290                       if test -z "$haveit"; then
34291                         haveit=
34292                         for x in $LDFLAGS $LIBGLIB_2_0; do
34293
34294   acl_save_prefix="$prefix"
34295   prefix="$acl_final_prefix"
34296   acl_save_exec_prefix="$exec_prefix"
34297   exec_prefix="$acl_final_exec_prefix"
34298   eval x=\"$x\"
34299   exec_prefix="$acl_save_exec_prefix"
34300   prefix="$acl_save_prefix"
34301
34302                           if test "X$x" = "X-L$additional_libdir"; then
34303                             haveit=yes
34304                             break
34305                           fi
34306                         done
34307                         if test -z "$haveit"; then
34308                           if test -d "$additional_libdir"; then
34309                                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$additional_libdir"
34310                           fi
34311                         fi
34312                         haveit=
34313                         for x in $LDFLAGS $LTLIBGLIB_2_0; do
34314
34315   acl_save_prefix="$prefix"
34316   prefix="$acl_final_prefix"
34317   acl_save_exec_prefix="$exec_prefix"
34318   exec_prefix="$acl_final_exec_prefix"
34319   eval x=\"$x\"
34320   exec_prefix="$acl_save_exec_prefix"
34321   prefix="$acl_save_prefix"
34322
34323                           if test "X$x" = "X-L$additional_libdir"; then
34324                             haveit=yes
34325                             break
34326                           fi
34327                         done
34328                         if test -z "$haveit"; then
34329                           if test -d "$additional_libdir"; then
34330                                                         LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$additional_libdir"
34331                           fi
34332                         fi
34333                       fi
34334                     fi
34335                     ;;
34336                   -R*)
34337                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
34338                     if test "$enable_rpath" != no; then
34339                                                                   haveit=
34340                       for x in $rpathdirs; do
34341                         if test "X$x" = "X$dir"; then
34342                           haveit=yes
34343                           break
34344                         fi
34345                       done
34346                       if test -z "$haveit"; then
34347                         rpathdirs="$rpathdirs $dir"
34348                       fi
34349                                                                   haveit=
34350                       for x in $ltrpathdirs; do
34351                         if test "X$x" = "X$dir"; then
34352                           haveit=yes
34353                           break
34354                         fi
34355                       done
34356                       if test -z "$haveit"; then
34357                         ltrpathdirs="$ltrpathdirs $dir"
34358                       fi
34359                     fi
34360                     ;;
34361                   -l*)
34362                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
34363                     ;;
34364                   *.la)
34365                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
34366                     ;;
34367                   *)
34368                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$dep"
34369                     LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$dep"
34370                     ;;
34371                 esac
34372               done
34373             fi
34374           else
34375                                                             LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
34376             LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-l$name"
34377           fi
34378         fi
34379       fi
34380     done
34381   done
34382   if test "X$rpathdirs" != "X"; then
34383     if test -n "$acl_hardcode_libdir_separator"; then
34384                         alldirs=
34385       for found_dir in $rpathdirs; do
34386         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
34387       done
34388             acl_save_libdir="$libdir"
34389       libdir="$alldirs"
34390       eval flag=\"$acl_hardcode_libdir_flag_spec\"
34391       libdir="$acl_save_libdir"
34392       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
34393     else
34394             for found_dir in $rpathdirs; do
34395         acl_save_libdir="$libdir"
34396         libdir="$found_dir"
34397         eval flag=\"$acl_hardcode_libdir_flag_spec\"
34398         libdir="$acl_save_libdir"
34399         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
34400       done
34401     fi
34402   fi
34403   if test "X$ltrpathdirs" != "X"; then
34404             for found_dir in $ltrpathdirs; do
34405       LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-R$found_dir"
34406     done
34407   fi
34408
34409
34410
34411
34412
34413
34414       LIBS="$gl_save_LIBS $LIBGLIB_2_0"
34415       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34416 /* end confdefs.h.  */
34417 #include <glib.h>
34418 #ifndef G_BEGIN_DECLS
34419 error this glib.h includes a glibconfig.h from a glib version 1.x
34420 #endif
34421
34422 int
34423 main ()
34424 {
34425 g_string_new ("foo");
34426   ;
34427   return 0;
34428 }
34429 _ACEOF
34430 if ac_fn_c_try_link "$LINENO"; then :
34431   gl_cv_libglib=yes
34432          gl_cv_LIBGLIB="$LIBGLIB_2_0"
34433          gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
34434
34435 fi
34436 rm -f core conftest.err conftest.$ac_objext \
34437     conftest$ac_exeext conftest.$ac_ext
34438       if test "$gl_cv_libglib" != yes; then
34439         gl_save_CPPFLAGS="$CPPFLAGS"
34440         CPPFLAGS="$CPPFLAGS $INCGLIB_2_0"
34441         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34442 /* end confdefs.h.  */
34443 #include <glib.h>
34444 #ifndef G_BEGIN_DECLS
34445 error this glib.h includes a glibconfig.h from a glib version 1.x
34446 #endif
34447
34448 int
34449 main ()
34450 {
34451 g_string_new ("foo");
34452   ;
34453   return 0;
34454 }
34455 _ACEOF
34456 if ac_fn_c_try_link "$LINENO"; then :
34457   gl_cv_libglib=yes
34458            gl_cv_LIBGLIB="$LIBGLIB_2_0"
34459            gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
34460            gl_cv_INCGLIB="$INCGLIB_2_0"
34461
34462 fi
34463 rm -f core conftest.err conftest.$ac_objext \
34464     conftest$ac_exeext conftest.$ac_ext
34465         if test "$gl_cv_libglib" != yes; then
34466                               if test -n "$LIBGLIB_2_0_PREFIX"; then
34467             CPPFLAGS="$gl_save_CPPFLAGS -I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
34468             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34469 /* end confdefs.h.  */
34470 #include <glib.h>
34471 #ifndef G_BEGIN_DECLS
34472 error this glib.h includes a glibconfig.h from a glib version 1.x
34473 #endif
34474
34475 int
34476 main ()
34477 {
34478 g_string_new ("foo");
34479   ;
34480   return 0;
34481 }
34482 _ACEOF
34483 if ac_fn_c_try_link "$LINENO"; then :
34484   gl_cv_libglib=yes
34485                gl_cv_LIBGLIB="$LIBGLIB_2_0"
34486                gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
34487                gl_cv_INCGLIB="-I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
34488
34489 fi
34490 rm -f core conftest.err conftest.$ac_objext \
34491     conftest$ac_exeext conftest.$ac_ext
34492           fi
34493         fi
34494         CPPFLAGS="$gl_save_CPPFLAGS"
34495       fi
34496       LIBS="$gl_save_LIBS"
34497
34498 fi
34499
34500     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib" >&5
34501 $as_echo_n "checking for glib... " >&6; }
34502     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib" >&5
34503 $as_echo "$gl_cv_libglib" >&6; }
34504     if test $gl_cv_libglib = yes; then
34505       LIBGLIB="$gl_cv_LIBGLIB"
34506       LTLIBGLIB="$gl_cv_LTLIBGLIB"
34507       INCGLIB="$gl_cv_INCGLIB"
34508     else
34509       gl_cv_libglib_use_included=yes
34510     fi
34511   fi
34512
34513
34514
34515   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included glib" >&5
34516 $as_echo_n "checking whether to use the included glib... " >&6; }
34517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_use_included" >&5
34518 $as_echo "$gl_cv_libglib_use_included" >&6; }
34519
34520   if test "$gl_cv_libglib_use_included" = yes; then
34521     LIBGLIB_H=
34522     LIBGLIB_H="$LIBGLIB_H glib.h"
34523     LIBGLIB_H="$LIBGLIB_H glibconfig.h"
34524     LIBGLIB_H="$LIBGLIB_H glib/ghash.h"
34525     LIBGLIB_H="$LIBGLIB_H glib/glist.h"
34526     LIBGLIB_H="$LIBGLIB_H glib/gprimes.h"
34527     LIBGLIB_H="$LIBGLIB_H glib/gstrfuncs.h"
34528     LIBGLIB_H="$LIBGLIB_H glib/gstring.h"
34529     LIBGLIB_H="$LIBGLIB_H glib/gtypes.h"
34530
34531     for ac_header in unistd.h
34532 do :
34533   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
34534 if test "x$ac_cv_header_unistd_h" = x""yes; then :
34535   cat >>confdefs.h <<_ACEOF
34536 #define HAVE_UNISTD_H 1
34537 _ACEOF
34538
34539 fi
34540
34541 done
34542
34543       else
34544     LIBGLIB_H=
34545   fi
34546
34547
34548    if test "$gl_cv_libglib_use_included" = yes; then
34549   INCLUDED_LIBGLIB_TRUE=
34550   INCLUDED_LIBGLIB_FALSE='#'
34551 else
34552   INCLUDED_LIBGLIB_TRUE='#'
34553   INCLUDED_LIBGLIB_FALSE=
34554 fi
34555
34556
34557   # Code from module libunistring-optional:
34558
34559
34560
34561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libunistring" >&5
34562 $as_echo_n "checking whether to use the included libunistring... " >&6; }
34563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_libunistring_use_included" >&5
34564 $as_echo "$gl_libunistring_use_included" >&6; }
34565
34566   # Code from module libxml:
34567
34568
34569
34570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included libxml is requested" >&5
34571 $as_echo_n "checking whether included libxml is requested... " >&6; }
34572
34573 # Check whether --with-included-libxml was given.
34574 if test "${with_included_libxml+set}" = set; then :
34575   withval=$with_included_libxml; gl_cv_libxml_force_included=$withval
34576 else
34577   gl_cv_libxml_force_included=no
34578 fi
34579
34580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libxml_force_included" >&5
34581 $as_echo "$gl_cv_libxml_force_included" >&6; }
34582
34583   gl_cv_libxml_use_included="$gl_cv_libxml_force_included"
34584   LIBXML=
34585   LTLIBXML=
34586   INCXML=
34587   if test "$gl_cv_libxml_use_included" != yes; then
34588             if test "${gl_cv_libxml+set}" = set; then :
34589   $as_echo_n "(cached) " >&6
34590 else
34591
34592       gl_cv_libxml=no
34593       gl_cv_LIBXML=
34594       gl_cv_LTLIBXML=
34595       gl_cv_INCXML=
34596       gl_save_LIBS="$LIBS"
34597       LIBS="$LIBS $LIBICONV"
34598
34599
34600
34601
34602
34603
34604
34605     use_additional=yes
34606
34607   acl_save_prefix="$prefix"
34608   prefix="$acl_final_prefix"
34609   acl_save_exec_prefix="$exec_prefix"
34610   exec_prefix="$acl_final_exec_prefix"
34611
34612     eval additional_includedir=\"$includedir\"
34613     eval additional_libdir=\"$libdir\"
34614
34615   exec_prefix="$acl_save_exec_prefix"
34616   prefix="$acl_save_prefix"
34617
34618
34619 # Check whether --with-libxml2-prefix was given.
34620 if test "${with_libxml2_prefix+set}" = set; then :
34621   withval=$with_libxml2_prefix;
34622     if test "X$withval" = "Xno"; then
34623       use_additional=no
34624     else
34625       if test "X$withval" = "X"; then
34626
34627   acl_save_prefix="$prefix"
34628   prefix="$acl_final_prefix"
34629   acl_save_exec_prefix="$exec_prefix"
34630   exec_prefix="$acl_final_exec_prefix"
34631
34632           eval additional_includedir=\"$includedir\"
34633           eval additional_libdir=\"$libdir\"
34634
34635   exec_prefix="$acl_save_exec_prefix"
34636   prefix="$acl_save_prefix"
34637
34638       else
34639         additional_includedir="$withval/include"
34640         additional_libdir="$withval/$acl_libdirstem"
34641         if test "$acl_libdirstem2" != "$acl_libdirstem" \
34642            && ! test -d "$withval/$acl_libdirstem"; then
34643           additional_libdir="$withval/$acl_libdirstem2"
34644         fi
34645       fi
34646     fi
34647
34648 fi
34649
34650       LIBXML2=
34651   LTLIBXML2=
34652   INCXML2=
34653   LIBXML2_PREFIX=
34654       HAVE_LIBXML2=
34655   rpathdirs=
34656   ltrpathdirs=
34657   names_already_handled=
34658   names_next_round='xml2 '
34659   while test -n "$names_next_round"; do
34660     names_this_round="$names_next_round"
34661     names_next_round=
34662     for name in $names_this_round; do
34663       already_handled=
34664       for n in $names_already_handled; do
34665         if test "$n" = "$name"; then
34666           already_handled=yes
34667           break
34668         fi
34669       done
34670       if test -z "$already_handled"; then
34671         names_already_handled="$names_already_handled $name"
34672                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
34673         eval value=\"\$HAVE_LIB$uppername\"
34674         if test -n "$value"; then
34675           if test "$value" = yes; then
34676             eval value=\"\$LIB$uppername\"
34677             test -z "$value" || LIBXML2="${LIBXML2}${LIBXML2:+ }$value"
34678             eval value=\"\$LTLIB$uppername\"
34679             test -z "$value" || LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }$value"
34680           else
34681                                     :
34682           fi
34683         else
34684                               found_dir=
34685           found_la=
34686           found_so=
34687           found_a=
34688           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
34689           if test -n "$acl_shlibext"; then
34690             shrext=".$acl_shlibext"             # typically: shrext=.so
34691           else
34692             shrext=
34693           fi
34694           if test $use_additional = yes; then
34695             dir="$additional_libdir"
34696                                     if test -n "$acl_shlibext"; then
34697               if test -f "$dir/$libname$shrext"; then
34698                 found_dir="$dir"
34699                 found_so="$dir/$libname$shrext"
34700               else
34701                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
34702                   ver=`(cd "$dir" && \
34703                         for f in "$libname$shrext".*; do echo "$f"; done \
34704                         | sed -e "s,^$libname$shrext\\\\.,," \
34705                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
34706                         | sed 1q ) 2>/dev/null`
34707                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
34708                     found_dir="$dir"
34709                     found_so="$dir/$libname$shrext.$ver"
34710                   fi
34711                 else
34712                   eval library_names=\"$acl_library_names_spec\"
34713                   for f in $library_names; do
34714                     if test -f "$dir/$f"; then
34715                       found_dir="$dir"
34716                       found_so="$dir/$f"
34717                       break
34718                     fi
34719                   done
34720                 fi
34721               fi
34722             fi
34723                         if test "X$found_dir" = "X"; then
34724               if test -f "$dir/$libname.$acl_libext"; then
34725                 found_dir="$dir"
34726                 found_a="$dir/$libname.$acl_libext"
34727               fi
34728             fi
34729             if test "X$found_dir" != "X"; then
34730               if test -f "$dir/$libname.la"; then
34731                 found_la="$dir/$libname.la"
34732               fi
34733             fi
34734           fi
34735           if test "X$found_dir" = "X"; then
34736             for x in $LDFLAGS $LTLIBXML2; do
34737
34738   acl_save_prefix="$prefix"
34739   prefix="$acl_final_prefix"
34740   acl_save_exec_prefix="$exec_prefix"
34741   exec_prefix="$acl_final_exec_prefix"
34742   eval x=\"$x\"
34743   exec_prefix="$acl_save_exec_prefix"
34744   prefix="$acl_save_prefix"
34745
34746               case "$x" in
34747                 -L*)
34748                   dir=`echo "X$x" | sed -e 's/^X-L//'`
34749                                     if test -n "$acl_shlibext"; then
34750                     if test -f "$dir/$libname$shrext"; then
34751                       found_dir="$dir"
34752                       found_so="$dir/$libname$shrext"
34753                     else
34754                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
34755                         ver=`(cd "$dir" && \
34756                               for f in "$libname$shrext".*; do echo "$f"; done \
34757                               | sed -e "s,^$libname$shrext\\\\.,," \
34758                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
34759                               | sed 1q ) 2>/dev/null`
34760                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
34761                           found_dir="$dir"
34762                           found_so="$dir/$libname$shrext.$ver"
34763                         fi
34764                       else
34765                         eval library_names=\"$acl_library_names_spec\"
34766                         for f in $library_names; do
34767                           if test -f "$dir/$f"; then
34768                             found_dir="$dir"
34769                             found_so="$dir/$f"
34770                             break
34771                           fi
34772                         done
34773                       fi
34774                     fi
34775                   fi
34776                                     if test "X$found_dir" = "X"; then
34777                     if test -f "$dir/$libname.$acl_libext"; then
34778                       found_dir="$dir"
34779                       found_a="$dir/$libname.$acl_libext"
34780                     fi
34781                   fi
34782                   if test "X$found_dir" != "X"; then
34783                     if test -f "$dir/$libname.la"; then
34784                       found_la="$dir/$libname.la"
34785                     fi
34786                   fi
34787                   ;;
34788               esac
34789               if test "X$found_dir" != "X"; then
34790                 break
34791               fi
34792             done
34793           fi
34794           if test "X$found_dir" != "X"; then
34795                         LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-L$found_dir -l$name"
34796             if test "X$found_so" != "X"; then
34797                                                         if test "$enable_rpath" = no \
34798                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
34799                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
34800                                 LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
34801               else
34802                                                                                 haveit=
34803                 for x in $ltrpathdirs; do
34804                   if test "X$x" = "X$found_dir"; then
34805                     haveit=yes
34806                     break
34807                   fi
34808                 done
34809                 if test -z "$haveit"; then
34810                   ltrpathdirs="$ltrpathdirs $found_dir"
34811                 fi
34812                                 if test "$acl_hardcode_direct" = yes; then
34813                                                       LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
34814                 else
34815                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
34816                                                             LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
34817                                                             haveit=
34818                     for x in $rpathdirs; do
34819                       if test "X$x" = "X$found_dir"; then
34820                         haveit=yes
34821                         break
34822                       fi
34823                     done
34824                     if test -z "$haveit"; then
34825                       rpathdirs="$rpathdirs $found_dir"
34826                     fi
34827                   else
34828                                                                                 haveit=
34829                     for x in $LDFLAGS $LIBXML2; do
34830
34831   acl_save_prefix="$prefix"
34832   prefix="$acl_final_prefix"
34833   acl_save_exec_prefix="$exec_prefix"
34834   exec_prefix="$acl_final_exec_prefix"
34835   eval x=\"$x\"
34836   exec_prefix="$acl_save_exec_prefix"
34837   prefix="$acl_save_prefix"
34838
34839                       if test "X$x" = "X-L$found_dir"; then
34840                         haveit=yes
34841                         break
34842                       fi
34843                     done
34844                     if test -z "$haveit"; then
34845                       LIBXML2="${LIBXML2}${LIBXML2:+ }-L$found_dir"
34846                     fi
34847                     if test "$acl_hardcode_minus_L" != no; then
34848                                                                                         LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
34849                     else
34850                                                                                                                                                                                 LIBXML2="${LIBXML2}${LIBXML2:+ }-l$name"
34851                     fi
34852                   fi
34853                 fi
34854               fi
34855             else
34856               if test "X$found_a" != "X"; then
34857                                 LIBXML2="${LIBXML2}${LIBXML2:+ }$found_a"
34858               else
34859                                                 LIBXML2="${LIBXML2}${LIBXML2:+ }-L$found_dir -l$name"
34860               fi
34861             fi
34862                         additional_includedir=
34863             case "$found_dir" in
34864               */$acl_libdirstem | */$acl_libdirstem/)
34865                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
34866                 if test "$name" = 'xml2'; then
34867                   LIBXML2_PREFIX="$basedir"
34868                 fi
34869                 additional_includedir="$basedir/include"
34870                 ;;
34871               */$acl_libdirstem2 | */$acl_libdirstem2/)
34872                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
34873                 if test "$name" = 'xml2'; then
34874                   LIBXML2_PREFIX="$basedir"
34875                 fi
34876                 additional_includedir="$basedir/include"
34877                 ;;
34878             esac
34879             if test "X$additional_includedir" != "X"; then
34880                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
34881                 haveit=
34882                 if test "X$additional_includedir" = "X/usr/local/include"; then
34883                   if test -n "$GCC"; then
34884                     case $host_os in
34885                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34886                     esac
34887                   fi
34888                 fi
34889                 if test -z "$haveit"; then
34890                   for x in $CPPFLAGS $INCXML2; do
34891
34892   acl_save_prefix="$prefix"
34893   prefix="$acl_final_prefix"
34894   acl_save_exec_prefix="$exec_prefix"
34895   exec_prefix="$acl_final_exec_prefix"
34896   eval x=\"$x\"
34897   exec_prefix="$acl_save_exec_prefix"
34898   prefix="$acl_save_prefix"
34899
34900                     if test "X$x" = "X-I$additional_includedir"; then
34901                       haveit=yes
34902                       break
34903                     fi
34904                   done
34905                   if test -z "$haveit"; then
34906                     if test -d "$additional_includedir"; then
34907                                             INCXML2="${INCXML2}${INCXML2:+ }-I$additional_includedir"
34908                     fi
34909                   fi
34910                 fi
34911               fi
34912             fi
34913                         if test -n "$found_la"; then
34914                                                         save_libdir="$libdir"
34915               case "$found_la" in
34916                 */* | *\\*) . "$found_la" ;;
34917                 *) . "./$found_la" ;;
34918               esac
34919               libdir="$save_libdir"
34920                             for dep in $dependency_libs; do
34921                 case "$dep" in
34922                   -L*)
34923                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
34924                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
34925                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
34926                       haveit=
34927                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
34928                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
34929                         if test -n "$GCC"; then
34930                           case $host_os in
34931                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34932                           esac
34933                         fi
34934                       fi
34935                       if test -z "$haveit"; then
34936                         haveit=
34937                         for x in $LDFLAGS $LIBXML2; do
34938
34939   acl_save_prefix="$prefix"
34940   prefix="$acl_final_prefix"
34941   acl_save_exec_prefix="$exec_prefix"
34942   exec_prefix="$acl_final_exec_prefix"
34943   eval x=\"$x\"
34944   exec_prefix="$acl_save_exec_prefix"
34945   prefix="$acl_save_prefix"
34946
34947                           if test "X$x" = "X-L$additional_libdir"; then
34948                             haveit=yes
34949                             break
34950                           fi
34951                         done
34952                         if test -z "$haveit"; then
34953                           if test -d "$additional_libdir"; then
34954                                                         LIBXML2="${LIBXML2}${LIBXML2:+ }-L$additional_libdir"
34955                           fi
34956                         fi
34957                         haveit=
34958                         for x in $LDFLAGS $LTLIBXML2; do
34959
34960   acl_save_prefix="$prefix"
34961   prefix="$acl_final_prefix"
34962   acl_save_exec_prefix="$exec_prefix"
34963   exec_prefix="$acl_final_exec_prefix"
34964   eval x=\"$x\"
34965   exec_prefix="$acl_save_exec_prefix"
34966   prefix="$acl_save_prefix"
34967
34968                           if test "X$x" = "X-L$additional_libdir"; then
34969                             haveit=yes
34970                             break
34971                           fi
34972                         done
34973                         if test -z "$haveit"; then
34974                           if test -d "$additional_libdir"; then
34975                                                         LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-L$additional_libdir"
34976                           fi
34977                         fi
34978                       fi
34979                     fi
34980                     ;;
34981                   -R*)
34982                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
34983                     if test "$enable_rpath" != no; then
34984                                                                   haveit=
34985                       for x in $rpathdirs; do
34986                         if test "X$x" = "X$dir"; then
34987                           haveit=yes
34988                           break
34989                         fi
34990                       done
34991                       if test -z "$haveit"; then
34992                         rpathdirs="$rpathdirs $dir"
34993                       fi
34994                                                                   haveit=
34995                       for x in $ltrpathdirs; do
34996                         if test "X$x" = "X$dir"; then
34997                           haveit=yes
34998                           break
34999                         fi
35000                       done
35001                       if test -z "$haveit"; then
35002                         ltrpathdirs="$ltrpathdirs $dir"
35003                       fi
35004                     fi
35005                     ;;
35006                   -l*)
35007                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
35008                     ;;
35009                   *.la)
35010                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
35011                     ;;
35012                   *)
35013                                         LIBXML2="${LIBXML2}${LIBXML2:+ }$dep"
35014                     LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }$dep"
35015                     ;;
35016                 esac
35017               done
35018             fi
35019           else
35020                                                             LIBXML2="${LIBXML2}${LIBXML2:+ }-l$name"
35021             LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-l$name"
35022           fi
35023         fi
35024       fi
35025     done
35026   done
35027   if test "X$rpathdirs" != "X"; then
35028     if test -n "$acl_hardcode_libdir_separator"; then
35029                         alldirs=
35030       for found_dir in $rpathdirs; do
35031         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
35032       done
35033             acl_save_libdir="$libdir"
35034       libdir="$alldirs"
35035       eval flag=\"$acl_hardcode_libdir_flag_spec\"
35036       libdir="$acl_save_libdir"
35037       LIBXML2="${LIBXML2}${LIBXML2:+ }$flag"
35038     else
35039             for found_dir in $rpathdirs; do
35040         acl_save_libdir="$libdir"
35041         libdir="$found_dir"
35042         eval flag=\"$acl_hardcode_libdir_flag_spec\"
35043         libdir="$acl_save_libdir"
35044         LIBXML2="${LIBXML2}${LIBXML2:+ }$flag"
35045       done
35046     fi
35047   fi
35048   if test "X$ltrpathdirs" != "X"; then
35049             for found_dir in $ltrpathdirs; do
35050       LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-R$found_dir"
35051     done
35052   fi
35053
35054
35055
35056
35057
35058
35059       LIBS="$gl_save_LIBS $LIBXML2 $LIBICONV"
35060       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35061 /* end confdefs.h.  */
35062 #include <libxml/xmlversion.h>
35063 int
35064 main ()
35065 {
35066 xmlCheckVersion (0);
35067   ;
35068   return 0;
35069 }
35070 _ACEOF
35071 if ac_fn_c_try_link "$LINENO"; then :
35072   gl_cv_libxml=yes
35073          gl_cv_LIBXML="$LIBXML2 $LIBICONV"
35074          gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"
35075
35076 fi
35077 rm -f core conftest.err conftest.$ac_objext \
35078     conftest$ac_exeext conftest.$ac_ext
35079       if test "$gl_cv_libxml" != yes; then
35080         gl_save_CPPFLAGS="$CPPFLAGS"
35081         CPPFLAGS="$CPPFLAGS $INCXML2"
35082         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35083 /* end confdefs.h.  */
35084 #include <libxml/xmlversion.h>
35085 int
35086 main ()
35087 {
35088 xmlCheckVersion (0);
35089   ;
35090   return 0;
35091 }
35092 _ACEOF
35093 if ac_fn_c_try_link "$LINENO"; then :
35094   gl_cv_libxml=yes
35095            gl_cv_LIBXML="$LIBXML2 $LIBICONV"
35096            gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"
35097            gl_cv_INCXML="$INCXML2"
35098
35099 fi
35100 rm -f core conftest.err conftest.$ac_objext \
35101     conftest$ac_exeext conftest.$ac_ext
35102         if test "$gl_cv_libxml" != yes; then
35103                                                   libxml2_include_dir=
35104           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35105 /* end confdefs.h.  */
35106 #include <libxml2/libxml/xmlexports.h>
35107 _ACEOF
35108 if ac_fn_c_try_cpp "$LINENO"; then :
35109
35110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <libxml2/libxml/xmlexports.h>" >&5
35111 $as_echo_n "checking absolute name of <libxml2/libxml/xmlexports.h>... " >&6; }
35112 if test "${gl_cv_absolute_libxml2_libxml_xmlexports_h+set}" = set; then :
35113   $as_echo_n "(cached) " >&6
35114 else
35115
35116   :
35117
35118
35119
35120
35121     if test $ac_cv_header_libxml2_libxml_xmlexports_h = yes; then
35122
35123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35124 /* end confdefs.h.  */
35125 #include <libxml2/libxml/xmlexports.h>
35126 _ACEOF
35127                 case "$host_os" in
35128     aix*) gl_absname_cpp="$ac_cpp -C" ;;
35129     *)    gl_absname_cpp="$ac_cpp" ;;
35130   esac
35131         gl_cv_absolute_libxml2_libxml_xmlexports_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35132 sed -n '\#/libxml2/libxml/xmlexports.h#{
35133         s#.*"\(.*/libxml2/libxml/xmlexports.h\)".*#\1#
35134         s#^/[^/]#//&#
35135         p
35136         q
35137 }'`
35138
35139     fi
35140
35141 fi
35142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_absolute_libxml2_libxml_xmlexports_h" >&5
35143 $as_echo "$gl_cv_absolute_libxml2_libxml_xmlexports_h" >&6; }
35144 cat >>confdefs.h <<_ACEOF
35145 #define ABSOLUTE_LIBXML2_LIBXML_XMLEXPORTS_H "$gl_cv_absolute_libxml2_libxml_xmlexports_h"
35146 _ACEOF
35147
35148
35149              libxml2_include_dir=`echo "$gl_cv_absolute_libxml2_libxml_xmlexports_h" | sed -e 's,.libxml.xmlexports\.h$,,'`
35150
35151 fi
35152 rm -f conftest.err conftest.$ac_ext
35153           if test -z "$libxml2_include_dir"; then
35154             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35155 /* end confdefs.h.  */
35156 #include <libxml2/libxml/xmlversion.h>
35157 _ACEOF
35158 if ac_fn_c_try_cpp "$LINENO"; then :
35159
35160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <libxml2/libxml/xmlversion.h>" >&5
35161 $as_echo_n "checking absolute name of <libxml2/libxml/xmlversion.h>... " >&6; }
35162 if test "${gl_cv_absolute_libxml2_libxml_xmlversion_h+set}" = set; then :
35163   $as_echo_n "(cached) " >&6
35164 else
35165
35166   :
35167
35168
35169
35170
35171     if test $ac_cv_header_libxml2_libxml_xmlversion_h = yes; then
35172
35173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35174 /* end confdefs.h.  */
35175 #include <libxml2/libxml/xmlversion.h>
35176 _ACEOF
35177                 case "$host_os" in
35178     aix*) gl_absname_cpp="$ac_cpp -C" ;;
35179     *)    gl_absname_cpp="$ac_cpp" ;;
35180   esac
35181         gl_cv_absolute_libxml2_libxml_xmlversion_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35182 sed -n '\#/libxml2/libxml/xmlversion.h#{
35183         s#.*"\(.*/libxml2/libxml/xmlversion.h\)".*#\1#
35184         s#^/[^/]#//&#
35185         p
35186         q
35187 }'`
35188
35189     fi
35190
35191 fi
35192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_absolute_libxml2_libxml_xmlversion_h" >&5
35193 $as_echo "$gl_cv_absolute_libxml2_libxml_xmlversion_h" >&6; }
35194 cat >>confdefs.h <<_ACEOF
35195 #define ABSOLUTE_LIBXML2_LIBXML_XMLVERSION_H "$gl_cv_absolute_libxml2_libxml_xmlversion_h"
35196 _ACEOF
35197
35198
35199                libxml2_include_dir=`echo "$gl_cv_absolute_libxml2_libxml_xmlversion_h" | sed -e 's,.libxml.xmlversion\.h$,,'`
35200
35201 fi
35202 rm -f conftest.err conftest.$ac_ext
35203           fi
35204           if test -n "$libxml2_include_dir" && test -d "$libxml2_include_dir"; then
35205             CPPFLAGS="$gl_save_CPPFLAGS -I$libxml2_include_dir"
35206             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35207 /* end confdefs.h.  */
35208 #include <libxml/xmlversion.h>
35209 int
35210 main ()
35211 {
35212 xmlCheckVersion (0);
35213   ;
35214   return 0;
35215 }
35216 _ACEOF
35217 if ac_fn_c_try_link "$LINENO"; then :
35218   gl_cv_libxml=yes
35219                gl_cv_LIBXML="$LIBXML2 $LIBICONV"
35220                gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"
35221                gl_cv_INCXML="-I$libxml2_include_dir"
35222
35223 fi
35224 rm -f core conftest.err conftest.$ac_objext \
35225     conftest$ac_exeext conftest.$ac_ext
35226           fi
35227         fi
35228         CPPFLAGS="$gl_save_CPPFLAGS"
35229       fi
35230       LIBS="$gl_save_LIBS"
35231
35232 fi
35233
35234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml" >&5
35235 $as_echo_n "checking for libxml... " >&6; }
35236     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libxml" >&5
35237 $as_echo "$gl_cv_libxml" >&6; }
35238     if test $gl_cv_libxml = yes; then
35239       LIBXML="$gl_cv_LIBXML"
35240       LTLIBXML="$gl_cv_LTLIBXML"
35241       INCXML="$gl_cv_INCXML"
35242     else
35243       gl_cv_libxml_use_included=yes
35244     fi
35245   fi
35246
35247
35248
35249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libxml" >&5
35250 $as_echo_n "checking whether to use the included libxml... " >&6; }
35251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libxml_use_included" >&5
35252 $as_echo "$gl_cv_libxml_use_included" >&6; }
35253
35254   if test "$gl_cv_libxml_use_included" = yes; then
35255     LIBXML_H=
35256     LIBXML_H="$LIBXML_H libxml/DOCBparser.h"
35257     LIBXML_H="$LIBXML_H libxml/HTMLparser.h"
35258     LIBXML_H="$LIBXML_H libxml/HTMLtree.h"
35259     LIBXML_H="$LIBXML_H libxml/SAX2.h"
35260     LIBXML_H="$LIBXML_H libxml/SAX.h"
35261     LIBXML_H="$LIBXML_H libxml/c14n.h"
35262     LIBXML_H="$LIBXML_H libxml/catalog.h"
35263     LIBXML_H="$LIBXML_H libxml/chvalid.h"
35264     LIBXML_H="$LIBXML_H libxml/debugXML.h"
35265     LIBXML_H="$LIBXML_H libxml/dict.h"
35266     LIBXML_H="$LIBXML_H libxml/encoding.h"
35267     LIBXML_H="$LIBXML_H libxml/entities.h"
35268     LIBXML_H="$LIBXML_H libxml/globals.h"
35269     LIBXML_H="$LIBXML_H libxml/hash.h"
35270     LIBXML_H="$LIBXML_H libxml/list.h"
35271     LIBXML_H="$LIBXML_H libxml/nanoftp.h"
35272     LIBXML_H="$LIBXML_H libxml/nanohttp.h"
35273     LIBXML_H="$LIBXML_H libxml/parser.h"
35274     LIBXML_H="$LIBXML_H libxml/parserInternals.h"
35275     LIBXML_H="$LIBXML_H libxml/pattern.h"
35276     LIBXML_H="$LIBXML_H libxml/relaxng.h"
35277     LIBXML_H="$LIBXML_H libxml/schemasInternals.h"
35278     LIBXML_H="$LIBXML_H libxml/schematron.h"
35279     LIBXML_H="$LIBXML_H libxml/threads.h"
35280     LIBXML_H="$LIBXML_H libxml/tree.h"
35281     LIBXML_H="$LIBXML_H libxml/uri.h"
35282     LIBXML_H="$LIBXML_H libxml/valid.h"
35283     LIBXML_H="$LIBXML_H libxml/xinclude.h"
35284     LIBXML_H="$LIBXML_H libxml/xlink.h"
35285     LIBXML_H="$LIBXML_H libxml/xmlIO.h"
35286     LIBXML_H="$LIBXML_H libxml/xmlautomata.h"
35287     LIBXML_H="$LIBXML_H libxml/xmlerror.h"
35288     LIBXML_H="$LIBXML_H libxml/xmlexports.h"
35289     LIBXML_H="$LIBXML_H libxml/xmlmemory.h"
35290     LIBXML_H="$LIBXML_H libxml/xmlmodule.h"
35291     LIBXML_H="$LIBXML_H libxml/xmlreader.h"
35292     LIBXML_H="$LIBXML_H libxml/xmlregexp.h"
35293     LIBXML_H="$LIBXML_H libxml/xmlsave.h"
35294     LIBXML_H="$LIBXML_H libxml/xmlschemas.h"
35295     LIBXML_H="$LIBXML_H libxml/xmlschemastypes.h"
35296     LIBXML_H="$LIBXML_H libxml/xmlstring.h"
35297     LIBXML_H="$LIBXML_H libxml/xmlunicode.h"
35298     LIBXML_H="$LIBXML_H libxml/xmlversion.h"
35299     LIBXML_H="$LIBXML_H libxml/xmlwriter.h"
35300     LIBXML_H="$LIBXML_H libxml/xpath.h"
35301     LIBXML_H="$LIBXML_H libxml/xpathInternals.h"
35302     LIBXML_H="$LIBXML_H libxml/xpointer.h"
35303     for ac_header in arpa/inet.h ctype.h dlfcn.h dl.h errno.h \
35304                       fcntl.h float.h limits.h malloc.h math.h netdb.h \
35305                       netinet/in.h signal.h stdlib.h string.h \
35306                       strings.h sys/select.h sys/socket.h sys/stat.h \
35307                       sys/time.h sys/types.h time.h unistd.h
35308 do :
35309   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35310 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
35311 eval as_val=\$$as_ac_Header
35312    if test "x$as_val" = x""yes; then :
35313   cat >>confdefs.h <<_ACEOF
35314 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35315 _ACEOF
35316
35317 fi
35318
35319 done
35320
35321     for ac_header in arpa/nameser.h
35322 do :
35323   ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "
35324       #if HAVE_SYS_TYPES_H
35325       # include <sys/types.h>
35326       #endif
35327
35328 "
35329 if test "x$ac_cv_header_arpa_nameser_h" = x""yes; then :
35330   cat >>confdefs.h <<_ACEOF
35331 #define HAVE_ARPA_NAMESER_H 1
35332 _ACEOF
35333
35334 fi
35335
35336 done
35337
35338     for ac_header in resolv.h
35339 do :
35340   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
35341       #if HAVE_SYS_TYPES_H
35342       # include <sys/types.h>
35343       #endif
35344       #if HAVE_NETINET_IN_H
35345       # include <netinet/in.h>
35346       #endif
35347       #if HAVE_ARPA_NAMESER_H
35348       # include <arpa/nameser.h>
35349       #endif
35350
35351 "
35352 if test "x$ac_cv_header_resolv_h" = x""yes; then :
35353   cat >>confdefs.h <<_ACEOF
35354 #define HAVE_RESOLV_H 1
35355 _ACEOF
35356
35357 fi
35358
35359 done
35360
35361     for ac_func in dlopen getaddrinfo localtime shlload stat _stat strftime
35362 do :
35363   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35364 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
35365 eval as_val=\$$as_ac_var
35366    if test "x$as_val" = x""yes; then :
35367   cat >>confdefs.h <<_ACEOF
35368 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35369 _ACEOF
35370
35371 fi
35372 done
35373
35374
35375 $as_echo "#define VA_COPY va_copy" >>confdefs.h
35376
35377           else
35378     LIBXML_H=
35379   fi
35380
35381
35382    if test "$gl_cv_libxml_use_included" = yes; then
35383   INCLUDED_LIBXML_TRUE=
35384   INCLUDED_LIBXML_FALSE='#'
35385 else
35386   INCLUDED_LIBXML_TRUE='#'
35387   INCLUDED_LIBXML_FALSE=
35388 fi
35389
35390
35391   # Code from module linkedhash-list:
35392   # Code from module list:
35393
35394
35395
35396   # Code from module localcharset:
35397
35398
35399
35400
35401   :
35402
35403
35404
35405
35406
35407
35408
35409
35410
35411   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
35412
35413   # Code from module locale:
35414
35415
35416
35417
35418
35419
35420
35421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
35422 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
35423 if test "${gl_cv_header_locale_h_posix2001+set}" = set; then :
35424   $as_echo_n "(cached) " >&6
35425 else
35426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35427 /* end confdefs.h.  */
35428 #include <locale.h>
35429 int x = LC_MESSAGES;
35430 int
35431 main ()
35432 {
35433
35434   ;
35435   return 0;
35436 }
35437 _ACEOF
35438 if ac_fn_c_try_compile "$LINENO"; then :
35439   gl_cv_header_locale_h_posix2001=yes
35440 else
35441   gl_cv_header_locale_h_posix2001=no
35442 fi
35443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35444 fi
35445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
35446 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
35447
35448
35449   :
35450
35451
35452
35453
35454
35455   if test $ac_cv_header_xlocale_h = yes; then
35456     HAVE_XLOCALE_H=1
35457                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
35458 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
35459 if test "${gl_cv_header_locale_has_locale_t+set}" = set; then :
35460   $as_echo_n "(cached) " >&6
35461 else
35462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35463 /* end confdefs.h.  */
35464 #include <locale.h>
35465 locale_t x;
35466 int
35467 main ()
35468 {
35469
35470   ;
35471   return 0;
35472 }
35473 _ACEOF
35474 if ac_fn_c_try_compile "$LINENO"; then :
35475   gl_cv_header_locale_has_locale_t=yes
35476 else
35477   gl_cv_header_locale_has_locale_t=no
35478 fi
35479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35480
35481 fi
35482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
35483 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
35484     if test $gl_cv_header_locale_has_locale_t = yes; then
35485       gl_cv_header_locale_h_needs_xlocale_h=no
35486     else
35487       gl_cv_header_locale_h_needs_xlocale_h=yes
35488     fi
35489   else
35490     HAVE_XLOCALE_H=0
35491     gl_cv_header_locale_h_needs_xlocale_h=no
35492   fi
35493
35494
35495
35496
35497
35498
35499   :
35500
35501
35502
35503
35504
35505
35506
35507      if test $gl_cv_have_include_next = yes; then
35508        gl_cv_next_locale_h='<'locale.h'>'
35509      else
35510        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
35511 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
35512 if test "${gl_cv_next_locale_h+set}" = set; then :
35513   $as_echo_n "(cached) " >&6
35514 else
35515
35516           if test $ac_cv_header_locale_h = yes; then
35517             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35518 /* end confdefs.h.  */
35519 #include <locale.h>
35520
35521 _ACEOF
35522                                                                                                 case "$host_os" in
35523               aix*) gl_absname_cpp="$ac_cpp -C" ;;
35524               *)    gl_absname_cpp="$ac_cpp" ;;
35525             esac
35526                                                 gl_cv_next_locale_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35527                sed -n '\#/locale.h#{
35528                  s#.*"\(.*/locale.h\)".*#\1#
35529                  s#^/[^/]#//&#
35530                  p
35531                  q
35532                }'`'"'
35533           else
35534             gl_cv_next_locale_h='<'locale.h'>'
35535           fi
35536
35537 fi
35538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
35539 $as_echo "$gl_cv_next_locale_h" >&6; }
35540      fi
35541      NEXT_LOCALE_H=$gl_cv_next_locale_h
35542
35543      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35544        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35545        gl_next_as_first_directive='<'locale.h'>'
35546      else
35547        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35548        gl_next_as_first_directive=$gl_cv_next_locale_h
35549      fi
35550      NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
35551
35552
35553
35554
35555   if test -n "$STDDEF_H" \
35556      || test $gl_cv_header_locale_h_posix2001 = no \
35557      || test $gl_cv_header_locale_h_needs_xlocale_h = yes; then
35558
35559     :
35560
35561   fi
35562
35563
35564     for gl_func in duplocale; do
35565     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
35566     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
35567 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
35568 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
35569   $as_echo_n "(cached) " >&6
35570 else
35571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35572 /* end confdefs.h.  */
35573 #include <locale.h>
35574 /* Some systems provide declarations in a non-standard header.  */
35575 #if HAVE_XLOCALE_H
35576 # include <xlocale.h>
35577 #endif
35578
35579 int
35580 main ()
35581 {
35582 #undef $gl_func
35583   (void) $gl_func;
35584   ;
35585   return 0;
35586 }
35587 _ACEOF
35588 if ac_fn_c_try_compile "$LINENO"; then :
35589   eval "$as_gl_Symbol=yes"
35590 else
35591   eval "$as_gl_Symbol=no"
35592 fi
35593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35594 fi
35595 eval ac_res=\$$as_gl_Symbol
35596                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35597 $as_echo "$ac_res" >&6; }
35598      eval as_val=\$$as_gl_Symbol
35599    if test "x$as_val" = x""yes; then :
35600   cat >>confdefs.h <<_ACEOF
35601 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
35602 _ACEOF
35603
35604                      eval ac_cv_have_decl_$gl_func=yes
35605 fi
35606       done
35607
35608
35609   # Code from module localename:
35610
35611
35612
35613   for ac_func in setlocale uselocale
35614 do :
35615   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35616 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
35617 eval as_val=\$$as_ac_var
35618    if test "x$as_val" = x""yes; then :
35619   cat >>confdefs.h <<_ACEOF
35620 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35621 _ACEOF
35622
35623 fi
35624 done
35625
35626
35627   # Code from module lock:
35628
35629
35630   if test "$gl_threads_api" = posix; then
35631     # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
35632     # pthread_rwlock_* functions.
35633     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
35634 "
35635 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
35636
35637 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
35638
35639 fi
35640
35641     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
35642     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35643 /* end confdefs.h.  */
35644 #include <pthread.h>
35645 int
35646 main ()
35647 {
35648 #if __FreeBSD__ == 4
35649 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
35650 #else
35651 int x = (int)PTHREAD_MUTEX_RECURSIVE;
35652 return !x;
35653 #endif
35654   ;
35655   return 0;
35656 }
35657 _ACEOF
35658 if ac_fn_c_try_compile "$LINENO"; then :
35659
35660 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
35661
35662 fi
35663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35664   fi
35665
35666
35667
35668
35669   # Code from module lstat:
35670
35671
35672
35673   :
35674
35675
35676
35677
35678
35679   if test $ac_cv_func_lstat = yes; then
35680
35681     if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
35682             REPLACE_LSTAT=1
35683     fi
35684     # Prerequisites of lib/lstat.c.
35685
35686   else
35687     HAVE_LSTAT=0
35688   fi
35689
35690
35691
35692
35693   GNULIB_LSTAT=1
35694
35695
35696
35697 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
35698
35699
35700
35701   # Code from module malloc-posix:
35702
35703
35704   if test $gl_cv_func_malloc_posix = yes; then
35705     HAVE_MALLOC_POSIX=1
35706
35707 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
35708
35709   else
35710
35711
35712
35713
35714
35715
35716
35717
35718   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
35719
35720     HAVE_MALLOC_POSIX=0
35721   fi
35722
35723
35724
35725
35726
35727   GNULIB_MALLOC_POSIX=1
35728
35729
35730
35731 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
35732
35733
35734
35735   # Code from module malloca:
35736
35737
35738
35739
35740   # Code from module mbchar:
35741
35742
35743
35744
35745   # Code from module mbiter:
35746
35747
35748
35749
35750   :
35751
35752   # Code from module mbrtowc:
35753
35754
35755
35756
35757
35758
35759
35760
35761
35762   :
35763
35764
35765
35766
35767
35768
35769   :
35770
35771
35772
35773
35774
35775   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
35776
35777
35778
35779      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
35780 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
35781 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
35782   $as_echo_n "(cached) " >&6
35783 else
35784
35785                   case "$host_os" in
35786               # Guess no on AIX and OSF/1.
35787         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
35788               # Guess yes otherwise.
35789         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
35790       esac
35791       if test $LOCALE_JA != none; then
35792         if test "$cross_compiling" = yes; then :
35793   :
35794 else
35795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35796 /* end confdefs.h.  */
35797
35798 #include <locale.h>
35799 #include <string.h>
35800 #include <wchar.h>
35801 int main ()
35802 {
35803   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
35804     {
35805       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
35806       mbstate_t state;
35807       wchar_t wc;
35808
35809       memset (&state, '\0', sizeof (mbstate_t));
35810       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
35811         if (mbsinit (&state))
35812           return 1;
35813     }
35814   return 0;
35815 }
35816 _ACEOF
35817 if ac_fn_c_try_run "$LINENO"; then :
35818   gl_cv_func_mbrtowc_incomplete_state=yes
35819 else
35820   gl_cv_func_mbrtowc_incomplete_state=no
35821 fi
35822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35823   conftest.$ac_objext conftest.beam conftest.$ac_ext
35824 fi
35825
35826       fi
35827
35828 fi
35829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
35830 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
35831
35832
35833
35834
35835      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
35836 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
35837 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
35838   $as_echo_n "(cached) " >&6
35839 else
35840
35841                   case "$host_os" in
35842                     # Guess no on Solaris 8.
35843         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
35844                     # Guess yes otherwise.
35845         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
35846       esac
35847       if test $LOCALE_ZH_CN != none; then
35848         if test "$cross_compiling" = yes; then :
35849   :
35850 else
35851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35852 /* end confdefs.h.  */
35853
35854 #include <locale.h>
35855 #include <stdlib.h>
35856 #include <string.h>
35857 #include <wchar.h>
35858 int main ()
35859 {
35860   /* This fails on Solaris 8:
35861      mbrtowc returns 2, and sets wc to 0x00F0.
35862      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
35863   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
35864     {
35865       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
35866       mbstate_t state;
35867       wchar_t wc;
35868
35869       memset (&state, '\0', sizeof (mbstate_t));
35870       if (mbrtowc (&wc, input + 3, 6, &state) != 4
35871           && mbtowc (&wc, input + 3, 6) == 4)
35872         return 1;
35873     }
35874   return 0;
35875 }
35876 _ACEOF
35877 if ac_fn_c_try_run "$LINENO"; then :
35878   gl_cv_func_mbrtowc_sanitycheck=yes
35879 else
35880   gl_cv_func_mbrtowc_sanitycheck=no
35881 fi
35882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35883   conftest.$ac_objext conftest.beam conftest.$ac_ext
35884 fi
35885
35886       fi
35887
35888 fi
35889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
35890 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
35891
35892     REPLACE_MBSTATE_T=0
35893     case "$gl_cv_func_mbrtowc_incomplete_state" in
35894       *yes) ;;
35895       *) REPLACE_MBSTATE_T=1 ;;
35896     esac
35897     case "$gl_cv_func_mbrtowc_sanitycheck" in
35898       *yes) ;;
35899       *) REPLACE_MBSTATE_T=1 ;;
35900     esac
35901   else
35902     REPLACE_MBSTATE_T=1
35903   fi
35904   if test $REPLACE_MBSTATE_T = 1; then
35905
35906     :
35907
35908   fi
35909
35910
35911
35912   :
35913
35914
35915
35916
35917
35918   if test $ac_cv_func_mbrtowc = no; then
35919     HAVE_MBRTOWC=0
35920   else
35921     if test $REPLACE_MBSTATE_T = 1; then
35922       REPLACE_MBRTOWC=1
35923     else
35924
35925
35926
35927      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
35928 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
35929 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then :
35930   $as_echo_n "(cached) " >&6
35931 else
35932
35933                   case "$host_os" in
35934               # Guess no on OSF/1.
35935         osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
35936               # Guess yes otherwise.
35937         *)    gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
35938       esac
35939       if test $LOCALE_FR_UTF8 != none; then
35940         if test "$cross_compiling" = yes; then :
35941   :
35942 else
35943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35944 /* end confdefs.h.  */
35945
35946 #include <locale.h>
35947 #include <string.h>
35948 #include <wchar.h>
35949 int main ()
35950 {
35951   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
35952     {
35953       mbstate_t state;
35954       wchar_t wc;
35955       int ret;
35956
35957       memset (&state, '\0', sizeof (mbstate_t));
35958       wc = (wchar_t) 0xBADFACE;
35959       mbrtowc (&wc, NULL, 5, &state);
35960       /* Check that wc was not modified.  */
35961       if (wc != (wchar_t) 0xBADFACE)
35962         return 1;
35963     }
35964   return 0;
35965 }
35966 _ACEOF
35967 if ac_fn_c_try_run "$LINENO"; then :
35968   gl_cv_func_mbrtowc_null_arg=yes
35969 else
35970   gl_cv_func_mbrtowc_null_arg=no
35971 fi
35972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35973   conftest.$ac_objext conftest.beam conftest.$ac_ext
35974 fi
35975
35976       fi
35977
35978 fi
35979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5
35980 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
35981
35982
35983
35984
35985
35986      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
35987 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
35988 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
35989   $as_echo_n "(cached) " >&6
35990 else
35991
35992                   case "$host_os" in
35993                           # Guess no on HP-UX and Solaris.
35994         hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
35995                           # Guess yes otherwise.
35996         *)                gl_cv_func_mbrtowc_retval="guessing yes" ;;
35997       esac
35998       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
35999         if test "$cross_compiling" = yes; then :
36000   :
36001 else
36002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36003 /* end confdefs.h.  */
36004
36005 #include <locale.h>
36006 #include <string.h>
36007 #include <wchar.h>
36008 int main ()
36009 {
36010   /* This fails on Solaris.  */
36011   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
36012     {
36013       char input[] = "B\303\274\303\237er"; /* "Büßer" */
36014       mbstate_t state;
36015       wchar_t wc;
36016
36017       memset (&state, '\0', sizeof (mbstate_t));
36018       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
36019         {
36020           input[1] = '\0';
36021           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
36022             return 1;
36023         }
36024     }
36025   /* This fails on HP-UX 11.11.  */
36026   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
36027     {
36028       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
36029       mbstate_t state;
36030       wchar_t wc;
36031
36032       memset (&state, '\0', sizeof (mbstate_t));
36033       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
36034         {
36035           input[1] = '\0';
36036           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
36037             return 1;
36038         }
36039     }
36040   return 0;
36041 }
36042 _ACEOF
36043 if ac_fn_c_try_run "$LINENO"; then :
36044   gl_cv_func_mbrtowc_retval=yes
36045 else
36046   gl_cv_func_mbrtowc_retval=no
36047 fi
36048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36049   conftest.$ac_objext conftest.beam conftest.$ac_ext
36050 fi
36051
36052       fi
36053
36054 fi
36055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
36056 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
36057
36058
36059
36060
36061      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
36062 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
36063 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
36064   $as_echo_n "(cached) " >&6
36065 else
36066
36067                   case "$host_os" in
36068                        # Guess no on Solaris 8 and 9.
36069         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
36070                        # Guess yes otherwise.
36071         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
36072       esac
36073       if test $LOCALE_ZH_CN != none; then
36074         if test "$cross_compiling" = yes; then :
36075   :
36076 else
36077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36078 /* end confdefs.h.  */
36079
36080 #include <locale.h>
36081 #include <string.h>
36082 #include <wchar.h>
36083 int main ()
36084 {
36085   /* This fails on Solaris 8 and 9.  */
36086   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
36087     {
36088       mbstate_t state;
36089       wchar_t wc;
36090
36091       memset (&state, '\0', sizeof (mbstate_t));
36092       if (mbrtowc (&wc, "", 1, &state) != 0)
36093         return 1;
36094     }
36095   return 0;
36096 }
36097 _ACEOF
36098 if ac_fn_c_try_run "$LINENO"; then :
36099   gl_cv_func_mbrtowc_nul_retval=yes
36100 else
36101   gl_cv_func_mbrtowc_nul_retval=no
36102 fi
36103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36104   conftest.$ac_objext conftest.beam conftest.$ac_ext
36105 fi
36106
36107       fi
36108
36109 fi
36110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
36111 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
36112
36113       case "$gl_cv_func_mbrtowc_null_arg" in
36114         *yes) ;;
36115         *)
36116 $as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h
36117
36118            REPLACE_MBRTOWC=1
36119            ;;
36120       esac
36121       case "$gl_cv_func_mbrtowc_retval" in
36122         *yes) ;;
36123         *)
36124 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
36125
36126            REPLACE_MBRTOWC=1
36127            ;;
36128       esac
36129       case "$gl_cv_func_mbrtowc_nul_retval" in
36130         *yes) ;;
36131         *)
36132 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
36133
36134            REPLACE_MBRTOWC=1
36135            ;;
36136       esac
36137     fi
36138   fi
36139   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
36140
36141     :
36142
36143
36144
36145
36146
36147
36148
36149
36150
36151   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
36152
36153
36154   :
36155
36156   fi
36157
36158
36159
36160
36161   GNULIB_MBRTOWC=1
36162
36163
36164
36165 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
36166
36167
36168
36169   # Code from module mbsinit:
36170
36171
36172
36173
36174
36175
36176
36177
36178
36179   :
36180
36181
36182
36183
36184
36185
36186   :
36187
36188
36189
36190
36191
36192   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
36193
36194
36195
36196      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
36197 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
36198 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
36199   $as_echo_n "(cached) " >&6
36200 else
36201
36202                   case "$host_os" in
36203               # Guess no on AIX and OSF/1.
36204         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
36205               # Guess yes otherwise.
36206         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
36207       esac
36208       if test $LOCALE_JA != none; then
36209         if test "$cross_compiling" = yes; then :
36210   :
36211 else
36212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36213 /* end confdefs.h.  */
36214
36215 #include <locale.h>
36216 #include <string.h>
36217 #include <wchar.h>
36218 int main ()
36219 {
36220   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
36221     {
36222       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
36223       mbstate_t state;
36224       wchar_t wc;
36225
36226       memset (&state, '\0', sizeof (mbstate_t));
36227       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
36228         if (mbsinit (&state))
36229           return 1;
36230     }
36231   return 0;
36232 }
36233 _ACEOF
36234 if ac_fn_c_try_run "$LINENO"; then :
36235   gl_cv_func_mbrtowc_incomplete_state=yes
36236 else
36237   gl_cv_func_mbrtowc_incomplete_state=no
36238 fi
36239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36240   conftest.$ac_objext conftest.beam conftest.$ac_ext
36241 fi
36242
36243       fi
36244
36245 fi
36246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
36247 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
36248
36249
36250
36251
36252      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
36253 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
36254 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
36255   $as_echo_n "(cached) " >&6
36256 else
36257
36258                   case "$host_os" in
36259                     # Guess no on Solaris 8.
36260         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
36261                     # Guess yes otherwise.
36262         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
36263       esac
36264       if test $LOCALE_ZH_CN != none; then
36265         if test "$cross_compiling" = yes; then :
36266   :
36267 else
36268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36269 /* end confdefs.h.  */
36270
36271 #include <locale.h>
36272 #include <stdlib.h>
36273 #include <string.h>
36274 #include <wchar.h>
36275 int main ()
36276 {
36277   /* This fails on Solaris 8:
36278      mbrtowc returns 2, and sets wc to 0x00F0.
36279      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
36280   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
36281     {
36282       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
36283       mbstate_t state;
36284       wchar_t wc;
36285
36286       memset (&state, '\0', sizeof (mbstate_t));
36287       if (mbrtowc (&wc, input + 3, 6, &state) != 4
36288           && mbtowc (&wc, input + 3, 6) == 4)
36289         return 1;
36290     }
36291   return 0;
36292 }
36293 _ACEOF
36294 if ac_fn_c_try_run "$LINENO"; then :
36295   gl_cv_func_mbrtowc_sanitycheck=yes
36296 else
36297   gl_cv_func_mbrtowc_sanitycheck=no
36298 fi
36299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36300   conftest.$ac_objext conftest.beam conftest.$ac_ext
36301 fi
36302
36303       fi
36304
36305 fi
36306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
36307 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
36308
36309     REPLACE_MBSTATE_T=0
36310     case "$gl_cv_func_mbrtowc_incomplete_state" in
36311       *yes) ;;
36312       *) REPLACE_MBSTATE_T=1 ;;
36313     esac
36314     case "$gl_cv_func_mbrtowc_sanitycheck" in
36315       *yes) ;;
36316       *) REPLACE_MBSTATE_T=1 ;;
36317     esac
36318   else
36319     REPLACE_MBSTATE_T=1
36320   fi
36321   if test $REPLACE_MBSTATE_T = 1; then
36322
36323     :
36324
36325   fi
36326
36327
36328
36329   :
36330
36331
36332
36333
36334
36335   if test $ac_cv_func_mbsinit = no; then
36336     HAVE_MBSINIT=0
36337   else
36338     if test $REPLACE_MBSTATE_T = 1; then
36339       REPLACE_MBSINIT=1
36340     fi
36341   fi
36342   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
36343
36344     :
36345
36346
36347
36348
36349
36350
36351
36352
36353
36354   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
36355
36356
36357   :
36358
36359   fi
36360
36361
36362
36363
36364   GNULIB_MBSINIT=1
36365
36366
36367
36368 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
36369
36370
36371
36372   # Code from module mbslen:
36373
36374
36375
36376   :
36377
36378
36379
36380
36381
36382   if test $ac_cv_func_mbslen = yes; then
36383     HAVE_MBSLEN=1
36384   else
36385     HAVE_MBSLEN=0
36386   fi
36387
36388
36389
36390
36391   GNULIB_MBSLEN=1
36392
36393
36394
36395 $as_echo "#define GNULIB_TEST_MBSLEN 1" >>confdefs.h
36396
36397
36398
36399   # Code from module mbsrtowcs:
36400
36401
36402
36403
36404
36405
36406
36407
36408
36409   :
36410
36411
36412
36413
36414
36415
36416   :
36417
36418
36419
36420
36421
36422   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
36423
36424
36425
36426      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
36427 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
36428 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
36429   $as_echo_n "(cached) " >&6
36430 else
36431
36432                   case "$host_os" in
36433               # Guess no on AIX and OSF/1.
36434         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
36435               # Guess yes otherwise.
36436         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
36437       esac
36438       if test $LOCALE_JA != none; then
36439         if test "$cross_compiling" = yes; then :
36440   :
36441 else
36442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36443 /* end confdefs.h.  */
36444
36445 #include <locale.h>
36446 #include <string.h>
36447 #include <wchar.h>
36448 int main ()
36449 {
36450   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
36451     {
36452       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
36453       mbstate_t state;
36454       wchar_t wc;
36455
36456       memset (&state, '\0', sizeof (mbstate_t));
36457       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
36458         if (mbsinit (&state))
36459           return 1;
36460     }
36461   return 0;
36462 }
36463 _ACEOF
36464 if ac_fn_c_try_run "$LINENO"; then :
36465   gl_cv_func_mbrtowc_incomplete_state=yes
36466 else
36467   gl_cv_func_mbrtowc_incomplete_state=no
36468 fi
36469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36470   conftest.$ac_objext conftest.beam conftest.$ac_ext
36471 fi
36472
36473       fi
36474
36475 fi
36476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
36477 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
36478
36479
36480
36481
36482      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
36483 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
36484 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
36485   $as_echo_n "(cached) " >&6
36486 else
36487
36488                   case "$host_os" in
36489                     # Guess no on Solaris 8.
36490         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
36491                     # Guess yes otherwise.
36492         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
36493       esac
36494       if test $LOCALE_ZH_CN != none; then
36495         if test "$cross_compiling" = yes; then :
36496   :
36497 else
36498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36499 /* end confdefs.h.  */
36500
36501 #include <locale.h>
36502 #include <stdlib.h>
36503 #include <string.h>
36504 #include <wchar.h>
36505 int main ()
36506 {
36507   /* This fails on Solaris 8:
36508      mbrtowc returns 2, and sets wc to 0x00F0.
36509      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
36510   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
36511     {
36512       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
36513       mbstate_t state;
36514       wchar_t wc;
36515
36516       memset (&state, '\0', sizeof (mbstate_t));
36517       if (mbrtowc (&wc, input + 3, 6, &state) != 4
36518           && mbtowc (&wc, input + 3, 6) == 4)
36519         return 1;
36520     }
36521   return 0;
36522 }
36523 _ACEOF
36524 if ac_fn_c_try_run "$LINENO"; then :
36525   gl_cv_func_mbrtowc_sanitycheck=yes
36526 else
36527   gl_cv_func_mbrtowc_sanitycheck=no
36528 fi
36529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36530   conftest.$ac_objext conftest.beam conftest.$ac_ext
36531 fi
36532
36533       fi
36534
36535 fi
36536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
36537 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
36538
36539     REPLACE_MBSTATE_T=0
36540     case "$gl_cv_func_mbrtowc_incomplete_state" in
36541       *yes) ;;
36542       *) REPLACE_MBSTATE_T=1 ;;
36543     esac
36544     case "$gl_cv_func_mbrtowc_sanitycheck" in
36545       *yes) ;;
36546       *) REPLACE_MBSTATE_T=1 ;;
36547     esac
36548   else
36549     REPLACE_MBSTATE_T=1
36550   fi
36551   if test $REPLACE_MBSTATE_T = 1; then
36552
36553     :
36554
36555   fi
36556
36557
36558
36559   :
36560
36561
36562
36563
36564
36565   if test $ac_cv_func_mbsrtowcs = no; then
36566     HAVE_MBSRTOWCS=0
36567   else
36568     if test $REPLACE_MBSTATE_T = 1; then
36569       REPLACE_MBSRTOWCS=1
36570     else
36571
36572
36573
36574
36575
36576      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
36577 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
36578 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
36579   $as_echo_n "(cached) " >&6
36580 else
36581
36582                   case "$host_os" in
36583                           # Guess no on HP-UX and Solaris.
36584         hpux* | solaris*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
36585                           # Guess yes otherwise.
36586         *)                gl_cv_func_mbsrtowcs_works="guessing yes" ;;
36587       esac
36588       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
36589         if test "$cross_compiling" = yes; then :
36590   :
36591 else
36592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36593 /* end confdefs.h.  */
36594
36595 #include <locale.h>
36596 #include <string.h>
36597 #include <wchar.h>
36598 int main ()
36599 {
36600   /* Test whether the function works when started with a conversion state
36601      in non-initial state.  This fails on HP-UX 11.11 and Solaris 10.  */
36602   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
36603     {
36604       const char input[] = "B\303\274\303\237er";
36605       mbstate_t state;
36606
36607       memset (&state, '\0', sizeof (mbstate_t));
36608       if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
36609         if (!mbsinit (&state))
36610           {
36611             const char *src = input + 2;
36612             if (mbsrtowcs (NULL, &src, 10, &state) != 4)
36613               return 1;
36614           }
36615     }
36616   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
36617     {
36618       const char input[] = "<\306\374\313\334\270\354>";
36619       mbstate_t state;
36620
36621       memset (&state, '\0', sizeof (mbstate_t));
36622       if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
36623         if (!mbsinit (&state))
36624           {
36625             const char *src = input + 4;
36626             if (mbsrtowcs (NULL, &src, 10, &state) != 3)
36627               return 1;
36628           }
36629     }
36630   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
36631     {
36632       const char input[] = "B\250\271\201\060\211\070er";
36633       mbstate_t state;
36634
36635       memset (&state, '\0', sizeof (mbstate_t));
36636       if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
36637         if (!mbsinit (&state))
36638           {
36639             const char *src = input + 2;
36640             if (mbsrtowcs (NULL, &src, 10, &state) != 4)
36641               return 1;
36642           }
36643     }
36644   return 0;
36645 }
36646 _ACEOF
36647 if ac_fn_c_try_run "$LINENO"; then :
36648   gl_cv_func_mbsrtowcs_works=yes
36649 else
36650   gl_cv_func_mbsrtowcs_works=no
36651 fi
36652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36653   conftest.$ac_objext conftest.beam conftest.$ac_ext
36654 fi
36655
36656       fi
36657
36658 fi
36659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
36660 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
36661
36662       case "$gl_cv_func_mbsrtowcs_works" in
36663         *yes) ;;
36664         *) REPLACE_MBSRTOWCS=1 ;;
36665       esac
36666     fi
36667   fi
36668   if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
36669
36670     :
36671
36672
36673
36674
36675
36676
36677
36678
36679
36680   gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
36681
36682
36683
36684
36685
36686
36687
36688
36689
36690   gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
36691
36692
36693   :
36694
36695   fi
36696
36697
36698
36699
36700   GNULIB_MBSRTOWCS=1
36701
36702
36703
36704 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
36705
36706
36707
36708   # Code from module mbsstr:
36709
36710
36711
36712   GNULIB_MBSSTR=1
36713
36714
36715
36716 $as_echo "#define GNULIB_TEST_MBSSTR 1" >>confdefs.h
36717
36718
36719
36720   # Code from module mbswidth:
36721
36722
36723   :
36724
36725
36726
36727
36728
36729
36730   :
36731
36732
36733
36734
36735
36736
36737
36738
36739
36740       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbswidth is declared in <wchar.h>" >&5
36741 $as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
36742 if test "${ac_cv_have_decl_mbswidth+set}" = set; then :
36743   $as_echo_n "(cached) " >&6
36744 else
36745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36746 /* end confdefs.h.  */
36747
36748 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
36749    <wchar.h>.
36750    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
36751    before <wchar.h>.  */
36752 #include <stddef.h>
36753 #include <stdio.h>
36754 #include <time.h>
36755 #include <wchar.h>
36756
36757 int
36758 main ()
36759 {
36760
36761   char *p = (char *) mbswidth;
36762   return !p;
36763
36764   ;
36765   return 0;
36766 }
36767 _ACEOF
36768 if ac_fn_c_try_compile "$LINENO"; then :
36769   ac_cv_have_decl_mbswidth=yes
36770 else
36771   ac_cv_have_decl_mbswidth=no
36772 fi
36773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36774 fi
36775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_mbswidth" >&5
36776 $as_echo "$ac_cv_have_decl_mbswidth" >&6; }
36777   if test $ac_cv_have_decl_mbswidth = yes; then
36778     ac_val=1
36779   else
36780     ac_val=0
36781   fi
36782
36783 cat >>confdefs.h <<_ACEOF
36784 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
36785 _ACEOF
36786
36787
36788
36789
36790    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
36791 $as_echo_n "checking for mbstate_t... " >&6; }
36792 if test "${ac_cv_type_mbstate_t+set}" = set; then :
36793   $as_echo_n "(cached) " >&6
36794 else
36795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36796 /* end confdefs.h.  */
36797 $ac_includes_default
36798 #           include <wchar.h>
36799 int
36800 main ()
36801 {
36802 mbstate_t x; return sizeof x;
36803   ;
36804   return 0;
36805 }
36806 _ACEOF
36807 if ac_fn_c_try_compile "$LINENO"; then :
36808   ac_cv_type_mbstate_t=yes
36809 else
36810   ac_cv_type_mbstate_t=no
36811 fi
36812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36813 fi
36814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
36815 $as_echo "$ac_cv_type_mbstate_t" >&6; }
36816    if test $ac_cv_type_mbstate_t = yes; then
36817
36818 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
36819
36820    else
36821
36822 $as_echo "#define mbstate_t int" >>confdefs.h
36823
36824    fi
36825
36826
36827   # Code from module mbuiter:
36828
36829
36830
36831
36832   :
36833
36834   # Code from module memchr:
36835
36836
36837
36838
36839   GNULIB_MEMCHR=1
36840
36841
36842
36843 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
36844
36845
36846
36847   # Code from module memmove:
36848
36849
36850
36851
36852
36853
36854
36855
36856
36857   for ac_func in memmove
36858 do :
36859   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
36860 if test "x$ac_cv_func_memmove" = x""yes; then :
36861   cat >>confdefs.h <<_ACEOF
36862 #define HAVE_MEMMOVE 1
36863 _ACEOF
36864
36865 else
36866
36867     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
36868
36869 fi
36870 done
36871
36872
36873   if test $ac_cv_func_memmove = no; then
36874
36875   :
36876
36877   fi
36878
36879   # Code from module memset:
36880
36881
36882
36883
36884
36885
36886
36887
36888
36889   for ac_func in memset
36890 do :
36891   ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
36892 if test "x$ac_cv_func_memset" = x""yes; then :
36893   cat >>confdefs.h <<_ACEOF
36894 #define HAVE_MEMSET 1
36895 _ACEOF
36896
36897 else
36898
36899     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
36900
36901 fi
36902 done
36903
36904
36905   if test $ac_cv_func_memset = no; then
36906
36907   :
36908
36909   fi
36910
36911   # Code from module minmax:
36912
36913
36914
36915   # Code from module mkdtemp:
36916
36917
36918
36919
36920
36921
36922
36923
36924
36925
36926   for ac_func in mkdtemp
36927 do :
36928   ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
36929 if test "x$ac_cv_func_mkdtemp" = x""yes; then :
36930   cat >>confdefs.h <<_ACEOF
36931 #define HAVE_MKDTEMP 1
36932 _ACEOF
36933
36934 else
36935
36936     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
36937
36938 fi
36939 done
36940
36941
36942   if test $ac_cv_func_mkdtemp = no; then
36943     HAVE_MKDTEMP=0
36944     :
36945
36946   fi
36947
36948
36949
36950
36951   GNULIB_MKDTEMP=1
36952
36953
36954
36955 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
36956
36957
36958
36959   # Code from module moo:
36960
36961
36962           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler is actually a C++ compiler" >&5
36963 $as_echo_n "checking whether the C compiler is actually a C++ compiler... " >&6; }
36964 if test "${gl_cv_c_cplusplus+set}" = set; then :
36965   $as_echo_n "(cached) " >&6
36966 else
36967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36968 /* end confdefs.h.  */
36969
36970 #ifdef __cplusplus
36971   Is c++
36972 #endif
36973
36974 _ACEOF
36975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36976   $EGREP "Is c++" >/dev/null 2>&1; then :
36977   gl_cv_c_cplusplus=yes
36978 else
36979   gl_cv_c_cplusplus=no
36980 fi
36981 rm -f conftest*
36982
36983 fi
36984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_cplusplus" >&5
36985 $as_echo "$gl_cv_c_cplusplus" >&6; }
36986   if test $gl_cv_c_cplusplus = yes; then
36987
36988 $as_echo "#define IS_CPLUSPLUS 1" >>confdefs.h
36989
36990   fi
36991
36992   # Code from module multiarch:
36993
36994   # Code from module no-c++:
36995
36996   NO_CXX=
36997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36998 /* end confdefs.h.  */
36999
37000 #if defined __GNUC__ && defined __cplusplus
37001   Is g++
37002 #endif
37003
37004 _ACEOF
37005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37006   $EGREP "Is g++" >/dev/null 2>&1; then :
37007   NO_CXX="-x c"
37008 fi
37009 rm -f conftest*
37010
37011
37012
37013   # Code from module obstack:
37014
37015
37016
37017
37018
37019
37020
37021
37022
37023
37024
37025
37026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
37027 $as_echo_n "checking for obstacks... " >&6; }
37028 if test "${ac_cv_func_obstack+set}" = set; then :
37029   $as_echo_n "(cached) " >&6
37030 else
37031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37032 /* end confdefs.h.  */
37033 $ac_includes_default
37034                       #include "obstack.h"
37035 int
37036 main ()
37037 {
37038 struct obstack mem;
37039                        #define obstack_chunk_alloc malloc
37040                        #define obstack_chunk_free free
37041                        obstack_init (&mem);
37042                        obstack_free (&mem, 0);
37043   ;
37044   return 0;
37045 }
37046 _ACEOF
37047 if ac_fn_c_try_link "$LINENO"; then :
37048   ac_cv_func_obstack=yes
37049 else
37050   ac_cv_func_obstack=no
37051 fi
37052 rm -f core conftest.err conftest.$ac_objext \
37053     conftest$ac_exeext conftest.$ac_ext
37054 fi
37055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
37056 $as_echo "$ac_cv_func_obstack" >&6; }
37057 if test $ac_cv_func_obstack = yes; then
37058
37059 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
37060
37061 else
37062
37063
37064
37065
37066
37067
37068
37069
37070   gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
37071
37072 fi
37073
37074     # Code from module open:
37075
37076
37077   case "$host_os" in
37078     mingw* | pw*)
37079
37080
37081   REPLACE_OPEN=1
37082
37083
37084
37085
37086
37087
37088
37089
37090   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
37091
37092
37093
37094
37095   :
37096
37097
37098       ;;
37099     *)
37100
37101   :
37102
37103
37104
37105
37106
37107       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
37108 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
37109 if test "${gl_cv_func_open_slash+set}" = set; then :
37110   $as_echo_n "(cached) " >&6
37111 else
37112   # Assume that if we have lstat, we can also check symlinks.
37113           if test $ac_cv_func_lstat = yes; then
37114             touch conftest.tmp
37115             ln -s conftest.tmp conftest.lnk
37116           fi
37117           if test "$cross_compiling" = yes; then :
37118
37119              case "$host_os" in
37120                freebsd*)        gl_cv_func_open_slash="guessing no" ;;
37121                solaris2.[0-9]*) gl_cv_func_open_slash="guessing no" ;;
37122                hpux*)           gl_cv_func_open_slash="guessing no" ;;
37123                *)               gl_cv_func_open_slash="guessing yes" ;;
37124              esac
37125
37126 else
37127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37128 /* end confdefs.h.  */
37129
37130 #include <fcntl.h>
37131 #if HAVE_UNISTD_H
37132 # include <unistd.h>
37133 #endif
37134 int main ()
37135 {
37136 #if HAVE_LSTAT
37137   if (open ("conftest.lnk/", O_RDONLY) != -1) return 2;
37138 #endif
37139   return open ("conftest.sl/", O_CREAT, 0600) >= 0;
37140 }
37141 _ACEOF
37142 if ac_fn_c_try_run "$LINENO"; then :
37143   gl_cv_func_open_slash=yes
37144 else
37145   gl_cv_func_open_slash=no
37146 fi
37147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37148   conftest.$ac_objext conftest.beam conftest.$ac_ext
37149 fi
37150
37151           rm -f conftest.sl conftest.tmp conftest.lnk
37152
37153 fi
37154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
37155 $as_echo "$gl_cv_func_open_slash" >&6; }
37156       case "$gl_cv_func_open_slash" in
37157         *no)
37158
37159 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
37160
37161
37162
37163   REPLACE_OPEN=1
37164
37165
37166
37167
37168
37169
37170
37171
37172   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
37173
37174
37175
37176
37177   :
37178
37179
37180           ;;
37181       esac
37182       ;;
37183   esac
37184
37185
37186
37187
37188   GNULIB_OPEN=1
37189
37190
37191
37192 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
37193
37194
37195
37196   # Code from module openmp:
37197
37198   OPENMP_CFLAGS=
37199   # Check whether --enable-openmp was given.
37200 if test "${enable_openmp+set}" = set; then :
37201   enableval=$enable_openmp;
37202 fi
37203
37204   if test "$enable_openmp" != no; then
37205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
37206 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
37207 if test "${ac_cv_prog_c_openmp+set}" = set; then :
37208   $as_echo_n "(cached) " >&6
37209 else
37210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37211 /* end confdefs.h.  */
37212
37213 #ifndef _OPENMP
37214  choke me
37215 #endif
37216 #include <omp.h>
37217 int main () { return omp_get_num_threads (); }
37218
37219 _ACEOF
37220 if ac_fn_c_try_link "$LINENO"; then :
37221   ac_cv_prog_c_openmp='none needed'
37222 else
37223   ac_cv_prog_c_openmp='unsupported'
37224                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
37225             ac_save_CFLAGS=$CFLAGS
37226             CFLAGS="$CFLAGS $ac_option"
37227             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37228 /* end confdefs.h.  */
37229
37230 #ifndef _OPENMP
37231  choke me
37232 #endif
37233 #include <omp.h>
37234 int main () { return omp_get_num_threads (); }
37235
37236 _ACEOF
37237 if ac_fn_c_try_link "$LINENO"; then :
37238   ac_cv_prog_c_openmp=$ac_option
37239 fi
37240 rm -f core conftest.err conftest.$ac_objext \
37241     conftest$ac_exeext conftest.$ac_ext
37242             CFLAGS=$ac_save_CFLAGS
37243             if test "$ac_cv_prog_c_openmp" != unsupported; then
37244               break
37245             fi
37246           done
37247 fi
37248 rm -f core conftest.err conftest.$ac_objext \
37249     conftest$ac_exeext conftest.$ac_ext
37250 fi
37251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
37252 $as_echo "$ac_cv_prog_c_openmp" >&6; }
37253     case $ac_cv_prog_c_openmp in #(
37254       "none needed" | unsupported)
37255         ;; #(
37256       *)
37257         OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
37258     esac
37259   fi
37260
37261
37262   # Code from module ostream:
37263   # Code from module pathmax:
37264
37265
37266   :
37267
37268
37269
37270
37271
37272
37273   :
37274
37275
37276
37277
37278
37279
37280   # Code from module pipe:
37281
37282
37283
37284
37285   # Code from module pipe-filter-ii:
37286
37287
37288   :
37289
37290
37291
37292
37293
37294   # Code from module pipe2:
37295
37296
37297
37298
37299
37300
37301   :
37302
37303
37304
37305
37306
37307   if test $ac_cv_func_pipe2 != yes; then
37308     HAVE_PIPE2=0
37309   fi
37310
37311
37312
37313
37314   GNULIB_PIPE2=1
37315
37316
37317
37318 $as_echo "#define GNULIB_TEST_PIPE2 1" >>confdefs.h
37319
37320
37321
37322   # Code from module pipe2-safer:
37323
37324
37325 cat >>confdefs.h <<_ACEOF
37326 #define GNULIB_PIPE2_SAFER 1
37327 _ACEOF
37328
37329
37330   # Code from module posix_spawn-internal:
37331   # Code from module posix_spawn_file_actions_addclose:
37332
37333
37334
37335   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
37336
37337     :
37338
37339
37340
37341
37342
37343
37344
37345
37346
37347   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_addclose.$ac_objext"
37348
37349   fi
37350
37351
37352
37353   GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=1
37354
37355
37356
37357 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE 1" >>confdefs.h
37358
37359
37360
37361   # Code from module posix_spawn_file_actions_adddup2:
37362
37363
37364
37365   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
37366
37367     :
37368
37369
37370
37371
37372
37373
37374
37375
37376
37377   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_adddup2.$ac_objext"
37378
37379   fi
37380
37381
37382
37383   GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=1
37384
37385
37386
37387 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 1" >>confdefs.h
37388
37389
37390
37391   # Code from module posix_spawn_file_actions_addopen:
37392
37393
37394
37395   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
37396
37397     :
37398
37399
37400
37401
37402
37403
37404
37405
37406
37407   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_addopen.$ac_objext"
37408
37409   fi
37410
37411
37412
37413   GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=1
37414
37415
37416
37417 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN 1" >>confdefs.h
37418
37419
37420
37421   # Code from module posix_spawn_file_actions_destroy:
37422
37423
37424
37425   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
37426
37427     :
37428
37429
37430
37431
37432
37433
37434
37435
37436
37437   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_destroy.$ac_objext"
37438
37439   fi
37440
37441
37442
37443   GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY=1
37444
37445
37446
37447 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_DESTROY 1" >>confdefs.h
37448
37449
37450
37451   # Code from module posix_spawn_file_actions_init:
37452
37453
37454
37455   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
37456
37457     :
37458
37459
37460
37461
37462
37463
37464
37465
37466
37467   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_init.$ac_objext"
37468
37469   fi
37470
37471
37472
37473   GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT=1
37474
37475
37476
37477 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_INIT 1" >>confdefs.h
37478
37479
37480
37481   # Code from module posix_spawnattr_destroy:
37482
37483
37484
37485   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
37486
37487     :
37488
37489
37490
37491
37492
37493
37494
37495
37496
37497   gl_LIBOBJS="$gl_LIBOBJS spawnattr_destroy.$ac_objext"
37498
37499   fi
37500
37501
37502
37503   GNULIB_POSIX_SPAWNATTR_DESTROY=1
37504
37505
37506
37507 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_DESTROY 1" >>confdefs.h
37508
37509
37510
37511   # Code from module posix_spawnattr_init:
37512
37513
37514
37515   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
37516
37517     :
37518
37519
37520
37521
37522
37523
37524
37525
37526
37527   gl_LIBOBJS="$gl_LIBOBJS spawnattr_init.$ac_objext"
37528
37529   fi
37530
37531
37532
37533   GNULIB_POSIX_SPAWNATTR_INIT=1
37534
37535
37536
37537 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_INIT 1" >>confdefs.h
37538
37539
37540
37541   # Code from module posix_spawnattr_setflags:
37542
37543
37544
37545   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
37546
37547     :
37548
37549
37550
37551
37552
37553
37554
37555
37556
37557   gl_LIBOBJS="$gl_LIBOBJS spawnattr_setflags.$ac_objext"
37558
37559   fi
37560
37561
37562
37563   GNULIB_POSIX_SPAWNATTR_SETFLAGS=1
37564
37565
37566
37567 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_SETFLAGS 1" >>confdefs.h
37568
37569
37570
37571   # Code from module posix_spawnattr_setsigmask:
37572
37573
37574
37575   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
37576
37577     :
37578
37579
37580
37581
37582
37583
37584
37585
37586
37587   gl_LIBOBJS="$gl_LIBOBJS spawnattr_setsigmask.$ac_objext"
37588
37589   fi
37590
37591
37592
37593   GNULIB_POSIX_SPAWNATTR_SETSIGMASK=1
37594
37595
37596
37597 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_SETSIGMASK 1" >>confdefs.h
37598
37599
37600
37601   # Code from module posix_spawnp:
37602
37603
37604
37605   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
37606
37607     :
37608
37609
37610
37611
37612
37613
37614
37615
37616
37617   gl_LIBOBJS="$gl_LIBOBJS spawnp.$ac_objext"
37618
37619
37620
37621
37622
37623
37624
37625
37626
37627
37628   gl_LIBOBJS="$gl_LIBOBJS spawni.$ac_objext"
37629
37630     for ac_header in paths.h
37631 do :
37632   ac_fn_c_check_header_mongrel "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
37633 if test "x$ac_cv_header_paths_h" = x""yes; then :
37634   cat >>confdefs.h <<_ACEOF
37635 #define HAVE_PATHS_H 1
37636 _ACEOF
37637
37638 fi
37639
37640 done
37641
37642   for ac_func in confstr sched_setparam sched_setscheduler setegid seteuid vfork
37643 do :
37644   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37645 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
37646 eval as_val=\$$as_ac_var
37647    if test "x$as_val" = x""yes; then :
37648   cat >>confdefs.h <<_ACEOF
37649 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37650 _ACEOF
37651
37652 fi
37653 done
37654
37655
37656   fi
37657
37658
37659
37660   GNULIB_POSIX_SPAWNP=1
37661
37662
37663
37664 $as_echo "#define GNULIB_TEST_POSIX_SPAWNP 1" >>confdefs.h
37665
37666
37667
37668   # Code from module progname:
37669   ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
37670 "
37671 if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then :
37672   ac_have_decl=1
37673 else
37674   ac_have_decl=0
37675 fi
37676
37677 cat >>confdefs.h <<_ACEOF
37678 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
37679 _ACEOF
37680
37681   ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
37682 "
37683 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then :
37684   ac_have_decl=1
37685 else
37686   ac_have_decl=0
37687 fi
37688
37689 cat >>confdefs.h <<_ACEOF
37690 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
37691 _ACEOF
37692
37693   # Code from module propername:
37694
37695
37696   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name:1,\"This is a proper name. See the gettext manual, section Names.\"'"
37697
37698
37699
37700   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name_utf8:1,\"This is a proper name. See the gettext manual, section Names.\"'"
37701
37702   # Code from module quote:
37703
37704
37705   # Code from module quotearg:
37706
37707
37708   # Code from module quotearg-simple:
37709   # Code from module rawmemchr:
37710
37711
37712
37713
37714
37715
37716
37717
37718
37719
37720
37721
37722   for ac_func in rawmemchr
37723 do :
37724   ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
37725 if test "x$ac_cv_func_rawmemchr" = x""yes; then :
37726   cat >>confdefs.h <<_ACEOF
37727 #define HAVE_RAWMEMCHR 1
37728 _ACEOF
37729
37730 else
37731
37732     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
37733
37734 fi
37735 done
37736
37737
37738   if test $ac_cv_func_rawmemchr = no; then
37739     HAVE_RAWMEMCHR=0
37740     :
37741   fi
37742
37743
37744
37745
37746   GNULIB_RAWMEMCHR=1
37747
37748
37749
37750 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
37751
37752
37753
37754   # Code from module readlink:
37755
37756
37757
37758   :
37759
37760
37761
37762
37763
37764   if test $ac_cv_func_readlink = no; then
37765     HAVE_READLINK=0
37766
37767
37768
37769
37770
37771
37772
37773
37774   gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
37775
37776
37777   :
37778
37779   else
37780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
37781 $as_echo_n "checking whether readlink signature is correct... " >&6; }
37782 if test "${gl_cv_decl_readlink_works+set}" = set; then :
37783   $as_echo_n "(cached) " >&6
37784 else
37785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37786 /* end confdefs.h.  */
37787 #include <unistd.h>
37788       /* Cause compilation failure if original declaration has wrong type.  */
37789       ssize_t readlink (const char *, char *, size_t);
37790 int
37791 main ()
37792 {
37793
37794   ;
37795   return 0;
37796 }
37797 _ACEOF
37798 if ac_fn_c_try_compile "$LINENO"; then :
37799   gl_cv_decl_readlink_works=yes
37800 else
37801   gl_cv_decl_readlink_works=no
37802 fi
37803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37804 fi
37805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
37806 $as_echo "$gl_cv_decl_readlink_works" >&6; }
37807             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
37808 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
37809 if test "${gl_cv_func_readlink_works+set}" = set; then :
37810   $as_echo_n "(cached) " >&6
37811 else
37812   # We have readlink, so assume ln -s works.
37813        ln -s conftest.no-such conftest.link
37814        ln -s conftest.link conftest.lnk2
37815        if test "$cross_compiling" = yes; then :
37816   gl_cv_func_readlink_works="guessing no"
37817 else
37818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37819 /* end confdefs.h.  */
37820 #include <unistd.h>
37821
37822 int
37823 main ()
37824 {
37825 char buf[20];
37826       return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
37827   ;
37828   return 0;
37829 }
37830 _ACEOF
37831 if ac_fn_c_try_run "$LINENO"; then :
37832   gl_cv_func_readlink_works=yes
37833 else
37834   gl_cv_func_readlink_works=no
37835 fi
37836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37837   conftest.$ac_objext conftest.beam conftest.$ac_ext
37838 fi
37839
37840       rm -f conftest.link conftest.lnk2
37841 fi
37842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
37843 $as_echo "$gl_cv_func_readlink_works" >&6; }
37844     if test "$gl_cv_func_readlink_works" != yes; then
37845
37846 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
37847
37848       REPLACE_READLINK=1
37849
37850
37851
37852
37853
37854
37855
37856
37857   gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
37858
37859     elif test "$gl_cv_decl_readlink_works" != yes; then
37860       REPLACE_READLINK=1
37861
37862
37863
37864
37865
37866
37867
37868
37869   gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
37870
37871     fi
37872   fi
37873
37874
37875
37876
37877   GNULIB_READLINK=1
37878
37879
37880
37881 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
37882
37883
37884
37885   # Code from module realloc-posix:
37886
37887
37888   if test $gl_cv_func_malloc_posix = yes; then
37889     HAVE_REALLOC_POSIX=1
37890
37891 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
37892
37893   else
37894
37895
37896
37897
37898
37899
37900
37901
37902   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
37903
37904     HAVE_REALLOC_POSIX=0
37905   fi
37906
37907
37908
37909
37910
37911   GNULIB_REALLOC_POSIX=1
37912
37913
37914
37915 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
37916
37917
37918
37919   # Code from module relocatable-prog:
37920
37921
37922
37923
37924   if test $RELOCATABLE = yes; then
37925
37926
37927
37928
37929
37930
37931
37932
37933   gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext"
37934
37935   fi
37936
37937   if test $RELOCATABLE = yes; then
37938
37939
37940
37941
37942
37943
37944
37945
37946   gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext"
37947
37948   fi
37949   : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
37950   RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
37951   RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
37952
37953   # Code from module relocatable-prog-wrapper:
37954
37955
37956   :
37957
37958
37959
37960
37961
37962
37963   :
37964
37965
37966
37967
37968
37969   :
37970
37971
37972
37973
37974
37975
37976
37977
37978
37979
37980
37981
37982
37983
37984   :
37985
37986
37987
37988
37989
37990
37991
37992
37993
37994
37995
37996
37997
37998
37999
38000
38001   :
38002
38003
38004
38005
38006
38007   if test $ac_cv_func_setenv = no; then
38008     HAVE_SETENV=0
38009   else
38010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
38011 $as_echo_n "checking whether setenv validates arguments... " >&6; }
38012 if test "${gl_cv_func_setenv_works+set}" = set; then :
38013   $as_echo_n "(cached) " >&6
38014 else
38015   if test "$cross_compiling" = yes; then :
38016   gl_cv_func_setenv_works="guessing no"
38017 else
38018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38019 /* end confdefs.h.  */
38020
38021        #include <stdlib.h>
38022        #include <errno.h>
38023        #include <string.h>
38024
38025 int
38026 main ()
38027 {
38028
38029        if (setenv ("", "", 0) != -1) return 1;
38030        if (errno != EINVAL) return 2;
38031        if (setenv ("a", "=", 1) != 0) return 3;
38032        if (strcmp (getenv ("a"), "=") != 0) return 4;
38033
38034   ;
38035   return 0;
38036 }
38037 _ACEOF
38038 if ac_fn_c_try_run "$LINENO"; then :
38039   gl_cv_func_setenv_works=yes
38040 else
38041   gl_cv_func_setenv_works=no
38042 fi
38043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38044   conftest.$ac_objext conftest.beam conftest.$ac_ext
38045 fi
38046
38047 fi
38048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
38049 $as_echo "$gl_cv_func_setenv_works" >&6; }
38050     if test "$gl_cv_func_setenv_works" != yes; then
38051       REPLACE_SETENV=1
38052
38053
38054
38055
38056
38057
38058
38059
38060   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
38061
38062     fi
38063   fi
38064
38065
38066
38067
38068   :
38069
38070
38071
38072
38073
38074   for ac_header in search.h
38075 do :
38076   ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
38077 if test "x$ac_cv_header_search_h" = x""yes; then :
38078   cat >>confdefs.h <<_ACEOF
38079 #define HAVE_SEARCH_H 1
38080 _ACEOF
38081
38082 fi
38083
38084 done
38085
38086   for ac_func in tsearch
38087 do :
38088   ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
38089 if test "x$ac_cv_func_tsearch" = x""yes; then :
38090   cat >>confdefs.h <<_ACEOF
38091 #define HAVE_TSEARCH 1
38092 _ACEOF
38093
38094 fi
38095 done
38096
38097
38098
38099
38100
38101
38102   if test -z "$ERRNO_H"; then
38103     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
38104 $as_echo_n "checking for working strerror function... " >&6; }
38105 if test "${gl_cv_func_working_strerror+set}" = set; then :
38106   $as_echo_n "(cached) " >&6
38107 else
38108   if test "$cross_compiling" = yes; then :
38109            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38110 /* end confdefs.h.  */
38111 #include <string.h>
38112
38113 int
38114 main ()
38115 {
38116 return !*strerror (-2);
38117   ;
38118   return 0;
38119 }
38120 _ACEOF
38121 if ac_fn_c_try_compile "$LINENO"; then :
38122   gl_cv_func_working_strerror=yes
38123 else
38124   gl_cv_func_working_strerror=no
38125 fi
38126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38127
38128 else
38129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38130 /* end confdefs.h.  */
38131 #include <string.h>
38132
38133 int
38134 main ()
38135 {
38136 return !*strerror (-2);
38137   ;
38138   return 0;
38139 }
38140 _ACEOF
38141 if ac_fn_c_try_run "$LINENO"; then :
38142   gl_cv_func_working_strerror=yes
38143 else
38144   gl_cv_func_working_strerror=no
38145 fi
38146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38147   conftest.$ac_objext conftest.beam conftest.$ac_ext
38148 fi
38149
38150
38151 fi
38152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
38153 $as_echo "$gl_cv_func_working_strerror" >&6; }
38154     if test $gl_cv_func_working_strerror = no; then
38155                   REPLACE_STRERROR=1
38156     fi
38157   else
38158             REPLACE_STRERROR=1
38159   fi
38160   if test $REPLACE_STRERROR = 1; then
38161
38162   ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
38163 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
38164   ac_have_decl=1
38165 else
38166   ac_have_decl=0
38167 fi
38168
38169 cat >>confdefs.h <<_ACEOF
38170 #define HAVE_DECL_STRERROR $ac_have_decl
38171 _ACEOF
38172
38173
38174   :
38175
38176
38177
38178
38179
38180   if test $ac_cv_header_sys_socket_h != yes; then
38181                     for ac_header in winsock2.h
38182 do :
38183   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
38184 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
38185   cat >>confdefs.h <<_ACEOF
38186 #define HAVE_WINSOCK2_H 1
38187 _ACEOF
38188
38189 fi
38190
38191 done
38192
38193   fi
38194
38195   fi
38196
38197   # Code from module relocatable-script:
38198
38199   relocatable_sh=$ac_aux_dir/relocatable.sh.in
38200
38201   # Code from module rmdir:
38202
38203
38204
38205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
38206 $as_echo_n "checking whether rmdir works... " >&6; }
38207 if test "${gl_cv_func_rmdir_works+set}" = set; then :
38208   $as_echo_n "(cached) " >&6
38209 else
38210   mkdir conftest.dir
38211      touch conftest.file
38212      if test "$cross_compiling" = yes; then :
38213   gl_cv_func_rmdir_works="guessing no"
38214 else
38215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38216 /* end confdefs.h.  */
38217 #include <stdio.h>
38218            #include <errno.h>
38219            #include <unistd.h>
38220
38221 int
38222 main ()
38223 {
38224 return !rmdir ("conftest.file/") || errno != ENOTDIR
38225        || !rmdir ("conftest.dir/./");
38226   ;
38227   return 0;
38228 }
38229 _ACEOF
38230 if ac_fn_c_try_run "$LINENO"; then :
38231   gl_cv_func_rmdir_works=yes
38232 else
38233   gl_cv_func_rmdir_works=no
38234 fi
38235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38236   conftest.$ac_objext conftest.beam conftest.$ac_ext
38237 fi
38238
38239      rm -rf conftest.dir conftest.file
38240 fi
38241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
38242 $as_echo "$gl_cv_func_rmdir_works" >&6; }
38243   if test x"$gl_cv_func_rmdir_works" != xyes; then
38244     REPLACE_RMDIR=1
38245
38246
38247
38248
38249
38250
38251
38252
38253   gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
38254
38255   fi
38256
38257
38258
38259
38260   GNULIB_RMDIR=1
38261
38262
38263
38264 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
38265
38266
38267
38268   # Code from module safe-read:
38269
38270
38271
38272
38273
38274
38275
38276
38277
38278   gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
38279
38280
38281
38282
38283
38284
38285   # Code from module safe-write:
38286
38287
38288
38289
38290
38291
38292
38293
38294
38295   gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
38296
38297
38298
38299
38300
38301
38302
38303
38304   # Code from module sched:
38305
38306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38307 /* end confdefs.h.  */
38308
38309        #include <sched.h>
38310        struct sched_param a;
38311        int b[] = { SCHED_FIFO, SCHED_RR, SCHED_OTHER };
38312
38313 int
38314 main ()
38315 {
38316
38317   ;
38318   return 0;
38319 }
38320 _ACEOF
38321 if ac_fn_c_try_compile "$LINENO"; then :
38322   SCHED_H=''
38323 else
38324   SCHED_H='sched.h'
38325
38326
38327
38328
38329
38330   :
38331
38332
38333
38334
38335
38336
38337
38338      if test $gl_cv_have_include_next = yes; then
38339        gl_cv_next_sched_h='<'sched.h'>'
38340      else
38341        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sched.h>" >&5
38342 $as_echo_n "checking absolute name of <sched.h>... " >&6; }
38343 if test "${gl_cv_next_sched_h+set}" = set; then :
38344   $as_echo_n "(cached) " >&6
38345 else
38346
38347           if test $ac_cv_header_sched_h = yes; then
38348             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38349 /* end confdefs.h.  */
38350 #include <sched.h>
38351
38352 _ACEOF
38353                                                                                                 case "$host_os" in
38354               aix*) gl_absname_cpp="$ac_cpp -C" ;;
38355               *)    gl_absname_cpp="$ac_cpp" ;;
38356             esac
38357                                                 gl_cv_next_sched_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
38358                sed -n '\#/sched.h#{
38359                  s#.*"\(.*/sched.h\)".*#\1#
38360                  s#^/[^/]#//&#
38361                  p
38362                  q
38363                }'`'"'
38364           else
38365             gl_cv_next_sched_h='<'sched.h'>'
38366           fi
38367
38368 fi
38369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sched_h" >&5
38370 $as_echo "$gl_cv_next_sched_h" >&6; }
38371      fi
38372      NEXT_SCHED_H=$gl_cv_next_sched_h
38373
38374      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
38375        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
38376        gl_next_as_first_directive='<'sched.h'>'
38377      else
38378        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
38379        gl_next_as_first_directive=$gl_cv_next_sched_h
38380      fi
38381      NEXT_AS_FIRST_DIRECTIVE_SCHED_H=$gl_next_as_first_directive
38382
38383
38384
38385
38386
38387   :
38388
38389
38390
38391
38392
38393      if test $ac_cv_header_sched_h = yes; then
38394        HAVE_SCHED_H=1
38395      else
38396        HAVE_SCHED_H=0
38397      fi
38398
38399
38400      ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <sched.h>
38401 "
38402 if test "x$ac_cv_type_struct_sched_param" = x""yes; then :
38403   HAVE_STRUCT_SCHED_PARAM=1
38404 else
38405   HAVE_STRUCT_SCHED_PARAM=0
38406 fi
38407
38408
38409
38410 fi
38411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38412
38413
38414   # Code from module setenv:
38415
38416
38417   if test $HAVE_SETENV$REPLACE_SETENV != 10; then
38418
38419
38420
38421
38422
38423
38424
38425
38426   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
38427
38428   fi
38429
38430
38431
38432
38433   GNULIB_SETENV=1
38434
38435
38436
38437 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
38438
38439
38440
38441   # Code from module sh-quote:
38442   # Code from module sigaction:
38443
38444
38445
38446   :
38447
38448
38449
38450
38451
38452   if test $ac_cv_func_sigaction = yes; then
38453     ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
38454 "
38455 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = x""yes; then :
38456
38457 cat >>confdefs.h <<_ACEOF
38458 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
38459 _ACEOF
38460
38461
38462 fi
38463
38464     if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
38465       HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
38466     fi
38467   else
38468     HAVE_SIGACTION=0
38469
38470
38471
38472
38473
38474
38475
38476
38477   gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
38478
38479
38480
38481
38482
38483
38484
38485   :
38486
38487
38488
38489
38490
38491
38492
38493
38494   ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
38495 #include <signal.h>
38496
38497 "
38498 if test "x$ac_cv_type_siginfo_t" = x""yes; then :
38499
38500 cat >>confdefs.h <<_ACEOF
38501 #define HAVE_SIGINFO_T 1
38502 _ACEOF
38503
38504
38505 fi
38506
38507   if test $ac_cv_type_siginfo_t = no; then
38508     HAVE_SIGINFO_T=0
38509   fi
38510
38511   fi
38512
38513
38514
38515
38516   GNULIB_SIGACTION=1
38517
38518
38519
38520 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
38521
38522
38523
38524   # Code from module signal:
38525
38526
38527
38528
38529
38530
38531   :
38532
38533
38534
38535
38536
38537
38538
38539      if test $gl_cv_have_include_next = yes; then
38540        gl_cv_next_signal_h='<'signal.h'>'
38541      else
38542        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
38543 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
38544 if test "${gl_cv_next_signal_h+set}" = set; then :
38545   $as_echo_n "(cached) " >&6
38546 else
38547
38548           if test $ac_cv_header_signal_h = yes; then
38549             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38550 /* end confdefs.h.  */
38551 #include <signal.h>
38552
38553 _ACEOF
38554                                                                                                 case "$host_os" in
38555               aix*) gl_absname_cpp="$ac_cpp -C" ;;
38556               *)    gl_absname_cpp="$ac_cpp" ;;
38557             esac
38558                                                 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
38559                sed -n '\#/signal.h#{
38560                  s#.*"\(.*/signal.h\)".*#\1#
38561                  s#^/[^/]#//&#
38562                  p
38563                  q
38564                }'`'"'
38565           else
38566             gl_cv_next_signal_h='<'signal.h'>'
38567           fi
38568
38569 fi
38570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
38571 $as_echo "$gl_cv_next_signal_h" >&6; }
38572      fi
38573      NEXT_SIGNAL_H=$gl_cv_next_signal_h
38574
38575      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
38576        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
38577        gl_next_as_first_directive='<'signal.h'>'
38578      else
38579        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
38580        gl_next_as_first_directive=$gl_cv_next_signal_h
38581      fi
38582      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
38583
38584
38585
38586 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
38587 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
38588   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
38589 #include <signal.h>
38590
38591 "
38592 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
38593
38594 else
38595   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
38596 fi
38597
38598
38599
38600
38601     for gl_func in sigaction sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
38602     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
38603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
38604 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
38605 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
38606   $as_echo_n "(cached) " >&6
38607 else
38608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38609 /* end confdefs.h.  */
38610 #include <signal.h>
38611
38612 int
38613 main ()
38614 {
38615 #undef $gl_func
38616   (void) $gl_func;
38617   ;
38618   return 0;
38619 }
38620 _ACEOF
38621 if ac_fn_c_try_compile "$LINENO"; then :
38622   eval "$as_gl_Symbol=yes"
38623 else
38624   eval "$as_gl_Symbol=no"
38625 fi
38626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38627 fi
38628 eval ac_res=\$$as_gl_Symbol
38629                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
38630 $as_echo "$ac_res" >&6; }
38631      eval as_val=\$$as_gl_Symbol
38632    if test "x$as_val" = x""yes; then :
38633   cat >>confdefs.h <<_ACEOF
38634 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
38635 _ACEOF
38636
38637                      eval ac_cv_have_decl_$gl_func=yes
38638 fi
38639       done
38640
38641
38642   # Code from module sigpipe:
38643
38644
38645
38646
38647
38648 cat >>confdefs.h <<_ACEOF
38649 #define GNULIB_SIGPIPE 1
38650 _ACEOF
38651
38652
38653
38654   GNULIB_SIGNAL_H_SIGPIPE=1
38655
38656   GNULIB_STDIO_H_SIGPIPE=1
38657
38658   GNULIB_UNISTD_H_SIGPIPE=1
38659   # Code from module sigprocmask:
38660
38661
38662   signals_not_posix=
38663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38664 /* end confdefs.h.  */
38665 #include <signal.h>
38666
38667 _ACEOF
38668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38669   $EGREP "sigset_t" >/dev/null 2>&1; then :
38670
38671 else
38672   signals_not_posix=1
38673 fi
38674 rm -f conftest*
38675
38676   if test -z "$signals_not_posix"; then
38677     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
38678 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
38679   gl_cv_func_sigprocmask=1
38680 fi
38681
38682   fi
38683   if test -z "$gl_cv_func_sigprocmask"; then
38684     HAVE_POSIX_SIGNALBLOCKING=0
38685
38686
38687
38688
38689
38690
38691
38692
38693   gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
38694
38695
38696
38697   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
38698 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
38699 #include <sys/types.h>
38700 "
38701 if test "x$ac_cv_type_sigset_t" = x""yes; then :
38702
38703 cat >>confdefs.h <<_ACEOF
38704 #define HAVE_SIGSET_T 1
38705 _ACEOF
38706
38707 gl_cv_type_sigset_t=yes
38708 else
38709   gl_cv_type_sigset_t=no
38710 fi
38711
38712   if test $gl_cv_type_sigset_t != yes; then
38713     HAVE_SIGSET_T=0
38714   fi
38715
38716
38717   fi
38718
38719
38720
38721
38722   GNULIB_SIGPROCMASK=1
38723
38724
38725
38726 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
38727
38728
38729
38730   # Code from module size_max:
38731
38732   for ac_header in stdint.h
38733 do :
38734   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
38735 if test "x$ac_cv_header_stdint_h" = x""yes; then :
38736   cat >>confdefs.h <<_ACEOF
38737 #define HAVE_STDINT_H 1
38738 _ACEOF
38739
38740 fi
38741
38742 done
38743
38744     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
38745 $as_echo_n "checking for SIZE_MAX... " >&6; }
38746 if test "${gl_cv_size_max+set}" = set; then :
38747   $as_echo_n "(cached) " >&6
38748 else
38749
38750     gl_cv_size_max=
38751     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38752 /* end confdefs.h.  */
38753
38754 #include <limits.h>
38755 #if HAVE_STDINT_H
38756 #include <stdint.h>
38757 #endif
38758 #ifdef SIZE_MAX
38759 Found it
38760 #endif
38761
38762 _ACEOF
38763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38764   $EGREP "Found it" >/dev/null 2>&1; then :
38765   gl_cv_size_max=yes
38766 fi
38767 rm -f conftest*
38768
38769     if test -z "$gl_cv_size_max"; then
38770                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
38771 #include <limits.h>"; then :
38772
38773 else
38774   size_t_bits_minus_1=
38775 fi
38776
38777       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
38778
38779 else
38780   fits_in_uint=
38781 fi
38782
38783       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
38784         if test $fits_in_uint = 1; then
38785                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38786 /* end confdefs.h.  */
38787 #include <stddef.h>
38788             extern size_t foo;
38789             extern unsigned long foo;
38790
38791 int
38792 main ()
38793 {
38794
38795   ;
38796   return 0;
38797 }
38798 _ACEOF
38799 if ac_fn_c_try_compile "$LINENO"; then :
38800   fits_in_uint=0
38801 fi
38802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38803         fi
38804                                 if test $fits_in_uint = 1; then
38805           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
38806         else
38807           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
38808         fi
38809       else
38810                 gl_cv_size_max='((size_t)~(size_t)0)'
38811       fi
38812     fi
38813
38814 fi
38815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
38816 $as_echo "$gl_cv_size_max" >&6; }
38817   if test "$gl_cv_size_max" != yes; then
38818
38819 cat >>confdefs.h <<_ACEOF
38820 #define SIZE_MAX $gl_cv_size_max
38821 _ACEOF
38822
38823   fi
38824
38825
38826   # Code from module snprintf:
38827
38828
38829   gl_cv_func_snprintf_usable=no
38830   for ac_func in snprintf
38831 do :
38832   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
38833 if test "x$ac_cv_func_snprintf" = x""yes; then :
38834   cat >>confdefs.h <<_ACEOF
38835 #define HAVE_SNPRINTF 1
38836 _ACEOF
38837
38838 fi
38839 done
38840
38841   if test $ac_cv_func_snprintf = yes; then
38842
38843
38844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
38845 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
38846 if test "${gl_cv_func_snprintf_size1+set}" = set; then :
38847   $as_echo_n "(cached) " >&6
38848 else
38849
38850       if test "$cross_compiling" = yes; then :
38851   gl_cv_func_snprintf_size1="guessing yes"
38852 else
38853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38854 /* end confdefs.h.  */
38855
38856 #include <stdio.h>
38857 int main()
38858 {
38859   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
38860   snprintf (buf, 1, "%d", 12345);
38861   return buf[1] != 'E';
38862 }
38863 _ACEOF
38864 if ac_fn_c_try_run "$LINENO"; then :
38865   gl_cv_func_snprintf_size1=yes
38866 else
38867   gl_cv_func_snprintf_size1=no
38868 fi
38869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38870   conftest.$ac_objext conftest.beam conftest.$ac_ext
38871 fi
38872
38873
38874 fi
38875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
38876 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
38877
38878     case "$gl_cv_func_snprintf_size1" in
38879       *yes)
38880         gl_cv_func_snprintf_usable=yes
38881         ;;
38882     esac
38883   fi
38884   if test $gl_cv_func_snprintf_usable = no; then
38885
38886
38887
38888
38889
38890
38891
38892
38893
38894
38895   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
38896
38897   if test $ac_cv_func_snprintf = yes; then
38898     REPLACE_SNPRINTF=1
38899   fi
38900   :
38901
38902   fi
38903
38904   :
38905
38906
38907
38908
38909
38910   if test $ac_cv_have_decl_snprintf = no; then
38911     HAVE_DECL_SNPRINTF=0
38912   fi
38913
38914
38915
38916
38917   GNULIB_SNPRINTF=1
38918
38919
38920
38921 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
38922
38923
38924
38925   # Code from module spawn:
38926
38927
38928
38929
38930
38931
38932
38933   :
38934
38935
38936
38937
38938
38939
38940
38941      if test $gl_cv_have_include_next = yes; then
38942        gl_cv_next_spawn_h='<'spawn.h'>'
38943      else
38944        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <spawn.h>" >&5
38945 $as_echo_n "checking absolute name of <spawn.h>... " >&6; }
38946 if test "${gl_cv_next_spawn_h+set}" = set; then :
38947   $as_echo_n "(cached) " >&6
38948 else
38949
38950           if test $ac_cv_header_spawn_h = yes; then
38951             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38952 /* end confdefs.h.  */
38953 #include <spawn.h>
38954
38955 _ACEOF
38956                                                                                                 case "$host_os" in
38957               aix*) gl_absname_cpp="$ac_cpp -C" ;;
38958               *)    gl_absname_cpp="$ac_cpp" ;;
38959             esac
38960                                                 gl_cv_next_spawn_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
38961                sed -n '\#/spawn.h#{
38962                  s#.*"\(.*/spawn.h\)".*#\1#
38963                  s#^/[^/]#//&#
38964                  p
38965                  q
38966                }'`'"'
38967           else
38968             gl_cv_next_spawn_h='<'spawn.h'>'
38969           fi
38970
38971 fi
38972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_spawn_h" >&5
38973 $as_echo "$gl_cv_next_spawn_h" >&6; }
38974      fi
38975      NEXT_SPAWN_H=$gl_cv_next_spawn_h
38976
38977      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
38978        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
38979        gl_next_as_first_directive='<'spawn.h'>'
38980      else
38981        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
38982        gl_next_as_first_directive=$gl_cv_next_spawn_h
38983      fi
38984      NEXT_AS_FIRST_DIRECTIVE_SPAWN_H=$gl_next_as_first_directive
38985
38986
38987
38988
38989
38990   :
38991
38992
38993
38994
38995
38996   if test $ac_cv_header_spawn_h = yes; then
38997     HAVE_SPAWN_H=1
38998     ac_fn_c_check_type "$LINENO" "posix_spawnattr_t" "ac_cv_type_posix_spawnattr_t" "
38999 #include <spawn.h>
39000
39001 "
39002 if test "x$ac_cv_type_posix_spawnattr_t" = x""yes; then :
39003
39004 cat >>confdefs.h <<_ACEOF
39005 #define HAVE_POSIX_SPAWNATTR_T 1
39006 _ACEOF
39007
39008
39009 else
39010   HAVE_POSIX_SPAWNATTR_T=0
39011 fi
39012
39013     ac_fn_c_check_type "$LINENO" "posix_spawn_file_actions_t" "ac_cv_type_posix_spawn_file_actions_t" "
39014 #include <spawn.h>
39015
39016 "
39017 if test "x$ac_cv_type_posix_spawn_file_actions_t" = x""yes; then :
39018
39019 cat >>confdefs.h <<_ACEOF
39020 #define HAVE_POSIX_SPAWN_FILE_ACTIONS_T 1
39021 _ACEOF
39022
39023
39024 else
39025   HAVE_POSIX_SPAWN_FILE_ACTIONS_T=0
39026 fi
39027
39028   else
39029     HAVE_SPAWN_H=0
39030     HAVE_POSIX_SPAWNATTR_T=0
39031     HAVE_POSIX_SPAWN_FILE_ACTIONS_T=0
39032
39033     :
39034
39035   fi
39036
39037
39038
39039
39040
39041
39042
39043     for gl_func in posix_spawn posix_spawnp posix_spawnattr_init posix_spawnattr_destroy     posix_spawnattr_getsigdefault posix_spawnattr_setsigdefault     posix_spawnattr_getsigmask posix_spawnattr_setsigmask     posix_spawnattr_getflags posix_spawnattr_setflags     posix_spawnattr_getpgroup posix_spawnattr_setpgroup     posix_spawnattr_getschedpolicy posix_spawnattr_setschedpolicy     posix_spawnattr_getschedparam posix_spawnattr_setschedparam     posix_spawn_file_actions_init posix_spawn_file_actions_destroy     posix_spawn_file_actions_addopen posix_spawn_file_actions_addclose     posix_spawn_file_actions_adddup2; do
39044     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
39045     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
39046 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
39047 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
39048   $as_echo_n "(cached) " >&6
39049 else
39050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39051 /* end confdefs.h.  */
39052 #include <spawn.h>
39053
39054 int
39055 main ()
39056 {
39057 #undef $gl_func
39058   (void) $gl_func;
39059   ;
39060   return 0;
39061 }
39062 _ACEOF
39063 if ac_fn_c_try_compile "$LINENO"; then :
39064   eval "$as_gl_Symbol=yes"
39065 else
39066   eval "$as_gl_Symbol=no"
39067 fi
39068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39069 fi
39070 eval ac_res=\$$as_gl_Symbol
39071                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
39072 $as_echo "$ac_res" >&6; }
39073      eval as_val=\$$as_gl_Symbol
39074    if test "x$as_val" = x""yes; then :
39075   cat >>confdefs.h <<_ACEOF
39076 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
39077 _ACEOF
39078
39079                      eval ac_cv_have_decl_$gl_func=yes
39080 fi
39081       done
39082
39083
39084   # Code from module ssize_t:
39085
39086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
39087 $as_echo_n "checking for ssize_t... " >&6; }
39088 if test "${gt_cv_ssize_t+set}" = set; then :
39089   $as_echo_n "(cached) " >&6
39090 else
39091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39092 /* end confdefs.h.  */
39093 #include <sys/types.h>
39094 int
39095 main ()
39096 {
39097 int x = sizeof (ssize_t *) + sizeof (ssize_t);
39098         return !x;
39099   ;
39100   return 0;
39101 }
39102 _ACEOF
39103 if ac_fn_c_try_compile "$LINENO"; then :
39104   gt_cv_ssize_t=yes
39105 else
39106   gt_cv_ssize_t=no
39107 fi
39108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39109 fi
39110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
39111 $as_echo "$gt_cv_ssize_t" >&6; }
39112   if test $gt_cv_ssize_t = no; then
39113
39114 $as_echo "#define ssize_t int" >>confdefs.h
39115
39116   fi
39117
39118   # Code from module stat:
39119
39120
39121
39122
39123   :
39124
39125
39126
39127
39128
39129     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
39130 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
39131 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
39132   $as_echo_n "(cached) " >&6
39133 else
39134   if test "$cross_compiling" = yes; then :
39135   case $host_os in
39136             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
39137             *) gl_cv_func_stat_dir_slash="guessing yes";;
39138           esac
39139 else
39140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39141 /* end confdefs.h.  */
39142 #include <sys/stat.h>
39143
39144 int
39145 main ()
39146 {
39147 struct stat st; return stat (".", &st) != stat ("./", &st);
39148   ;
39149   return 0;
39150 }
39151 _ACEOF
39152 if ac_fn_c_try_run "$LINENO"; then :
39153   gl_cv_func_stat_dir_slash=yes
39154 else
39155   gl_cv_func_stat_dir_slash=no
39156 fi
39157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39158   conftest.$ac_objext conftest.beam conftest.$ac_ext
39159 fi
39160
39161 fi
39162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
39163 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
39164       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
39165 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
39166 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
39167   $as_echo_n "(cached) " >&6
39168 else
39169   touch conftest.tmp
39170        # Assume that if we have lstat, we can also check symlinks.
39171        if test $ac_cv_func_lstat = yes; then
39172          ln -s conftest.tmp conftest.lnk
39173        fi
39174        if test "$cross_compiling" = yes; then :
39175   gl_cv_func_stat_file_slash="guessing no"
39176 else
39177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39178 /* end confdefs.h.  */
39179 #include <sys/stat.h>
39180
39181 int
39182 main ()
39183 {
39184 struct stat st;
39185       if (!stat ("conftest.tmp/", &st)) return 1;
39186 #if HAVE_LSTAT
39187       if (!stat ("conftest.lnk/", &st)) return 2;
39188 #endif
39189
39190   ;
39191   return 0;
39192 }
39193 _ACEOF
39194 if ac_fn_c_try_run "$LINENO"; then :
39195   gl_cv_func_stat_file_slash=yes
39196 else
39197   gl_cv_func_stat_file_slash=no
39198 fi
39199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39200   conftest.$ac_objext conftest.beam conftest.$ac_ext
39201 fi
39202
39203        rm -f conftest.tmp conftest.lnk
39204 fi
39205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
39206 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
39207   case $gl_cv_func_stat_dir_slash in
39208     *no) REPLACE_STAT=1
39209
39210 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
39211 ;;
39212   esac
39213   case $gl_cv_func_stat_file_slash in
39214     *no) REPLACE_STAT=1
39215
39216 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
39217 ;;
39218   esac
39219   if test $REPLACE_STAT = 1; then
39220
39221
39222
39223
39224
39225
39226
39227
39228   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
39229
39230
39231   fi
39232
39233
39234
39235
39236   GNULIB_STAT=1
39237
39238
39239
39240 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
39241
39242
39243
39244   # Code from module stdarg:
39245
39246   STDARG_H='';
39247   NEXT_STDARG_H='<stdarg.h>';
39248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
39249 $as_echo_n "checking for va_copy... " >&6; }
39250   if test "${gl_cv_func_va_copy+set}" = set; then :
39251   $as_echo_n "(cached) " >&6
39252 else
39253
39254     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39255 /* end confdefs.h.  */
39256 #include <stdarg.h>
39257 int
39258 main ()
39259 {
39260
39261 #ifndef va_copy
39262 void (*func) (va_list, va_list) = va_copy;
39263 #endif
39264
39265   ;
39266   return 0;
39267 }
39268 _ACEOF
39269 if ac_fn_c_try_compile "$LINENO"; then :
39270   gl_cv_func_va_copy=yes
39271 else
39272   gl_cv_func_va_copy=no
39273 fi
39274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39275 fi
39276
39277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
39278 $as_echo "$gl_cv_func_va_copy" >&6; }
39279   if test $gl_cv_func_va_copy = no; then
39280                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39281 /* end confdefs.h.  */
39282 #if defined _AIX && !defined __GNUC__
39283         AIX vaccine
39284        #endif
39285
39286 _ACEOF
39287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39288   $EGREP "vaccine" >/dev/null 2>&1; then :
39289   gl_aixcc=yes
39290 else
39291   gl_aixcc=no
39292 fi
39293 rm -f conftest*
39294
39295     if test $gl_aixcc = yes; then
39296             STDARG_H=stdarg.h
39297
39298
39299
39300
39301   :
39302
39303
39304
39305
39306
39307
39308
39309      if test $gl_cv_have_include_next = yes; then
39310        gl_cv_next_stdarg_h='<'stdarg.h'>'
39311      else
39312        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
39313 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
39314 if test "${gl_cv_next_stdarg_h+set}" = set; then :
39315   $as_echo_n "(cached) " >&6
39316 else
39317
39318           if test $ac_cv_header_stdarg_h = yes; then
39319             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39320 /* end confdefs.h.  */
39321 #include <stdarg.h>
39322
39323 _ACEOF
39324                                                                                                 case "$host_os" in
39325               aix*) gl_absname_cpp="$ac_cpp -C" ;;
39326               *)    gl_absname_cpp="$ac_cpp" ;;
39327             esac
39328                                                 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
39329                sed -n '\#/stdarg.h#{
39330                  s#.*"\(.*/stdarg.h\)".*#\1#
39331                  s#^/[^/]#//&#
39332                  p
39333                  q
39334                }'`'"'
39335           else
39336             gl_cv_next_stdarg_h='<'stdarg.h'>'
39337           fi
39338
39339 fi
39340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
39341 $as_echo "$gl_cv_next_stdarg_h" >&6; }
39342      fi
39343      NEXT_STDARG_H=$gl_cv_next_stdarg_h
39344
39345      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
39346        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
39347        gl_next_as_first_directive='<'stdarg.h'>'
39348      else
39349        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
39350        gl_next_as_first_directive=$gl_cv_next_stdarg_h
39351      fi
39352      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
39353
39354
39355
39356             if test "$gl_cv_next_stdarg_h" = '""'; then
39357         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
39358         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
39359       fi
39360     else
39361
39362   saved_as_echo_n="$as_echo_n"
39363   as_echo_n=':'
39364   if test "${gl_cv_func___va_copy+set}" = set; then :
39365   $as_echo_n "(cached) " >&6
39366 else
39367
39368         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39369 /* end confdefs.h.  */
39370 #include <stdarg.h>
39371 int
39372 main ()
39373 {
39374
39375 #ifndef __va_copy
39376 error, bail out
39377 #endif
39378
39379   ;
39380   return 0;
39381 }
39382 _ACEOF
39383 if ac_fn_c_try_compile "$LINENO"; then :
39384   gl_cv_func___va_copy=yes
39385 else
39386   gl_cv_func___va_copy=no
39387 fi
39388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39389 fi
39390
39391   as_echo_n="$saved_as_echo_n"
39392
39393       if test $gl_cv_func___va_copy = yes; then
39394
39395 $as_echo "#define va_copy __va_copy" >>confdefs.h
39396
39397       else
39398
39399
39400 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
39401
39402       fi
39403     fi
39404   fi
39405
39406   # Code from module stdbool:
39407
39408
39409
39410   # Define two additional variables used in the Makefile substitution.
39411
39412   if test "$ac_cv_header_stdbool_h" = yes; then
39413     STDBOOL_H=''
39414   else
39415     STDBOOL_H='stdbool.h'
39416   fi
39417
39418
39419   if test "$ac_cv_type__Bool" = yes; then
39420     HAVE__BOOL=1
39421   else
39422     HAVE__BOOL=0
39423   fi
39424
39425
39426   # Code from module stddef:
39427
39428
39429
39430   if test $gt_cv_c_wchar_t = no; then
39431     HAVE_WCHAR_T=0
39432     STDDEF_H=stddef.h
39433   fi
39434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
39435 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
39436 if test "${gl_cv_decl_null_works+set}" = set; then :
39437   $as_echo_n "(cached) " >&6
39438 else
39439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39440 /* end confdefs.h.  */
39441 #include <stddef.h>
39442       int test[2 * (sizeof NULL == sizeof (void *)) -1];
39443
39444 int
39445 main ()
39446 {
39447
39448   ;
39449   return 0;
39450 }
39451 _ACEOF
39452 if ac_fn_c_try_compile "$LINENO"; then :
39453   gl_cv_decl_null_works=yes
39454 else
39455   gl_cv_decl_null_works=no
39456 fi
39457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39458 fi
39459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
39460 $as_echo "$gl_cv_decl_null_works" >&6; }
39461   if test $gl_cv_decl_null_works = no; then
39462     REPLACE_NULL=1
39463     STDDEF_H=stddef.h
39464   fi
39465   if test -n "$STDDEF_H"; then
39466
39467
39468
39469
39470   :
39471
39472
39473
39474
39475
39476
39477
39478      if test $gl_cv_have_include_next = yes; then
39479        gl_cv_next_stddef_h='<'stddef.h'>'
39480      else
39481        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
39482 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
39483 if test "${gl_cv_next_stddef_h+set}" = set; then :
39484   $as_echo_n "(cached) " >&6
39485 else
39486
39487           if test $ac_cv_header_stddef_h = yes; then
39488             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39489 /* end confdefs.h.  */
39490 #include <stddef.h>
39491
39492 _ACEOF
39493                                                                                                 case "$host_os" in
39494               aix*) gl_absname_cpp="$ac_cpp -C" ;;
39495               *)    gl_absname_cpp="$ac_cpp" ;;
39496             esac
39497                                                 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
39498                sed -n '\#/stddef.h#{
39499                  s#.*"\(.*/stddef.h\)".*#\1#
39500                  s#^/[^/]#//&#
39501                  p
39502                  q
39503                }'`'"'
39504           else
39505             gl_cv_next_stddef_h='<'stddef.h'>'
39506           fi
39507
39508 fi
39509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
39510 $as_echo "$gl_cv_next_stddef_h" >&6; }
39511      fi
39512      NEXT_STDDEF_H=$gl_cv_next_stddef_h
39513
39514      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
39515        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
39516        gl_next_as_first_directive='<'stddef.h'>'
39517      else
39518        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
39519        gl_next_as_first_directive=$gl_cv_next_stddef_h
39520      fi
39521      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
39522
39523
39524
39525   fi
39526
39527   # Code from module stdint:
39528
39529
39530
39531   if test $ac_cv_type_long_long_int = yes; then
39532     HAVE_LONG_LONG_INT=1
39533   else
39534     HAVE_LONG_LONG_INT=0
39535   fi
39536
39537
39538   if test $ac_cv_type_unsigned_long_long_int = yes; then
39539     HAVE_UNSIGNED_LONG_LONG_INT=1
39540   else
39541     HAVE_UNSIGNED_LONG_LONG_INT=0
39542   fi
39543
39544
39545       if test $ac_cv_header_inttypes_h = yes; then
39546     HAVE_INTTYPES_H=1
39547   else
39548     HAVE_INTTYPES_H=0
39549   fi
39550
39551
39552       if test $ac_cv_header_sys_types_h = yes; then
39553     HAVE_SYS_TYPES_H=1
39554   else
39555     HAVE_SYS_TYPES_H=0
39556   fi
39557
39558
39559
39560
39561
39562
39563   :
39564
39565
39566
39567
39568
39569
39570
39571      if test $gl_cv_have_include_next = yes; then
39572        gl_cv_next_stdint_h='<'stdint.h'>'
39573      else
39574        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
39575 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
39576 if test "${gl_cv_next_stdint_h+set}" = set; then :
39577   $as_echo_n "(cached) " >&6
39578 else
39579
39580           if test $ac_cv_header_stdint_h = yes; then
39581             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39582 /* end confdefs.h.  */
39583 #include <stdint.h>
39584
39585 _ACEOF
39586                                                                                                 case "$host_os" in
39587               aix*) gl_absname_cpp="$ac_cpp -C" ;;
39588               *)    gl_absname_cpp="$ac_cpp" ;;
39589             esac
39590                                                 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
39591                sed -n '\#/stdint.h#{
39592                  s#.*"\(.*/stdint.h\)".*#\1#
39593                  s#^/[^/]#//&#
39594                  p
39595                  q
39596                }'`'"'
39597           else
39598             gl_cv_next_stdint_h='<'stdint.h'>'
39599           fi
39600
39601 fi
39602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
39603 $as_echo "$gl_cv_next_stdint_h" >&6; }
39604      fi
39605      NEXT_STDINT_H=$gl_cv_next_stdint_h
39606
39607      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
39608        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
39609        gl_next_as_first_directive='<'stdint.h'>'
39610      else
39611        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
39612        gl_next_as_first_directive=$gl_cv_next_stdint_h
39613      fi
39614      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
39615
39616
39617
39618   if test $ac_cv_header_stdint_h = yes; then
39619     HAVE_STDINT_H=1
39620   else
39621     HAVE_STDINT_H=0
39622   fi
39623
39624
39625     if test $ac_cv_header_stdint_h = yes; then
39626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
39627 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
39628 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
39629   $as_echo_n "(cached) " >&6
39630 else
39631   gl_cv_header_working_stdint_h=no
39632        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39633 /* end confdefs.h.  */
39634
39635
39636 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
39637 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
39638 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
39639 #include <stdint.h>
39640 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
39641 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
39642 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
39643 #endif
39644
39645
39646   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39647      included before <wchar.h>.  */
39648   #include <stddef.h>
39649   #include <signal.h>
39650   #if HAVE_WCHAR_H
39651   # include <stdio.h>
39652   # include <time.h>
39653   # include <wchar.h>
39654   #endif
39655
39656
39657 #ifdef INT8_MAX
39658 int8_t a1 = INT8_MAX;
39659 int8_t a1min = INT8_MIN;
39660 #endif
39661 #ifdef INT16_MAX
39662 int16_t a2 = INT16_MAX;
39663 int16_t a2min = INT16_MIN;
39664 #endif
39665 #ifdef INT32_MAX
39666 int32_t a3 = INT32_MAX;
39667 int32_t a3min = INT32_MIN;
39668 #endif
39669 #ifdef INT64_MAX
39670 int64_t a4 = INT64_MAX;
39671 int64_t a4min = INT64_MIN;
39672 #endif
39673 #ifdef UINT8_MAX
39674 uint8_t b1 = UINT8_MAX;
39675 #else
39676 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
39677 #endif
39678 #ifdef UINT16_MAX
39679 uint16_t b2 = UINT16_MAX;
39680 #endif
39681 #ifdef UINT32_MAX
39682 uint32_t b3 = UINT32_MAX;
39683 #endif
39684 #ifdef UINT64_MAX
39685 uint64_t b4 = UINT64_MAX;
39686 #endif
39687 int_least8_t c1 = INT8_C (0x7f);
39688 int_least8_t c1max = INT_LEAST8_MAX;
39689 int_least8_t c1min = INT_LEAST8_MIN;
39690 int_least16_t c2 = INT16_C (0x7fff);
39691 int_least16_t c2max = INT_LEAST16_MAX;
39692 int_least16_t c2min = INT_LEAST16_MIN;
39693 int_least32_t c3 = INT32_C (0x7fffffff);
39694 int_least32_t c3max = INT_LEAST32_MAX;
39695 int_least32_t c3min = INT_LEAST32_MIN;
39696 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
39697 int_least64_t c4max = INT_LEAST64_MAX;
39698 int_least64_t c4min = INT_LEAST64_MIN;
39699 uint_least8_t d1 = UINT8_C (0xff);
39700 uint_least8_t d1max = UINT_LEAST8_MAX;
39701 uint_least16_t d2 = UINT16_C (0xffff);
39702 uint_least16_t d2max = UINT_LEAST16_MAX;
39703 uint_least32_t d3 = UINT32_C (0xffffffff);
39704 uint_least32_t d3max = UINT_LEAST32_MAX;
39705 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
39706 uint_least64_t d4max = UINT_LEAST64_MAX;
39707 int_fast8_t e1 = INT_FAST8_MAX;
39708 int_fast8_t e1min = INT_FAST8_MIN;
39709 int_fast16_t e2 = INT_FAST16_MAX;
39710 int_fast16_t e2min = INT_FAST16_MIN;
39711 int_fast32_t e3 = INT_FAST32_MAX;
39712 int_fast32_t e3min = INT_FAST32_MIN;
39713 int_fast64_t e4 = INT_FAST64_MAX;
39714 int_fast64_t e4min = INT_FAST64_MIN;
39715 uint_fast8_t f1 = UINT_FAST8_MAX;
39716 uint_fast16_t f2 = UINT_FAST16_MAX;
39717 uint_fast32_t f3 = UINT_FAST32_MAX;
39718 uint_fast64_t f4 = UINT_FAST64_MAX;
39719 #ifdef INTPTR_MAX
39720 intptr_t g = INTPTR_MAX;
39721 intptr_t gmin = INTPTR_MIN;
39722 #endif
39723 #ifdef UINTPTR_MAX
39724 uintptr_t h = UINTPTR_MAX;
39725 #endif
39726 intmax_t i = INTMAX_MAX;
39727 uintmax_t j = UINTMAX_MAX;
39728
39729 #include <limits.h> /* for CHAR_BIT */
39730 #define TYPE_MINIMUM(t) \
39731   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
39732 #define TYPE_MAXIMUM(t) \
39733   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
39734 struct s {
39735   int check_PTRDIFF:
39736       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
39737       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
39738       ? 1 : -1;
39739   /* Detect bug in FreeBSD 6.0 / ia64.  */
39740   int check_SIG_ATOMIC:
39741       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
39742       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
39743       ? 1 : -1;
39744   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
39745   int check_WCHAR:
39746       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
39747       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
39748       ? 1 : -1;
39749   /* Detect bug in mingw.  */
39750   int check_WINT:
39751       WINT_MIN == TYPE_MINIMUM (wint_t)
39752       && WINT_MAX == TYPE_MAXIMUM (wint_t)
39753       ? 1 : -1;
39754
39755   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
39756   int check_UINT8_C:
39757         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
39758   int check_UINT16_C:
39759         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
39760
39761   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
39762 #ifdef UINT8_MAX
39763   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
39764 #endif
39765 #ifdef UINT16_MAX
39766   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
39767 #endif
39768 #ifdef UINT32_MAX
39769   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
39770 #endif
39771 #ifdef UINT64_MAX
39772   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
39773 #endif
39774   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
39775   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
39776   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
39777   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
39778   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
39779   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
39780   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
39781   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
39782   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
39783   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
39784   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
39785 };
39786
39787 int
39788 main ()
39789 {
39790
39791   ;
39792   return 0;
39793 }
39794 _ACEOF
39795 if ac_fn_c_try_compile "$LINENO"; then :
39796                                                     if test "$cross_compiling" = yes; then :
39797                  gl_cv_header_working_stdint_h=yes
39798
39799 else
39800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39801 /* end confdefs.h.  */
39802
39803
39804 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
39805 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
39806 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
39807 #include <stdint.h>
39808
39809
39810   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39811      included before <wchar.h>.  */
39812   #include <stddef.h>
39813   #include <signal.h>
39814   #if HAVE_WCHAR_H
39815   # include <stdio.h>
39816   # include <time.h>
39817   # include <wchar.h>
39818   #endif
39819
39820
39821 #include <stdio.h>
39822 #include <string.h>
39823 #define MVAL(macro) MVAL1(macro)
39824 #define MVAL1(expression) #expression
39825 static const char *macro_values[] =
39826   {
39827 #ifdef INT8_MAX
39828     MVAL (INT8_MAX),
39829 #endif
39830 #ifdef INT16_MAX
39831     MVAL (INT16_MAX),
39832 #endif
39833 #ifdef INT32_MAX
39834     MVAL (INT32_MAX),
39835 #endif
39836 #ifdef INT64_MAX
39837     MVAL (INT64_MAX),
39838 #endif
39839 #ifdef UINT8_MAX
39840     MVAL (UINT8_MAX),
39841 #endif
39842 #ifdef UINT16_MAX
39843     MVAL (UINT16_MAX),
39844 #endif
39845 #ifdef UINT32_MAX
39846     MVAL (UINT32_MAX),
39847 #endif
39848 #ifdef UINT64_MAX
39849     MVAL (UINT64_MAX),
39850 #endif
39851     NULL
39852   };
39853
39854 int
39855 main ()
39856 {
39857
39858   const char **mv;
39859   for (mv = macro_values; *mv != NULL; mv++)
39860     {
39861       const char *value = *mv;
39862       /* Test whether it looks like a cast expression.  */
39863       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
39864           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
39865           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
39866           || strncmp (value, "((int)"/*)*/, 6) == 0
39867           || strncmp (value, "((signed short)"/*)*/, 15) == 0
39868           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
39869         return 1;
39870     }
39871   return 0;
39872
39873   ;
39874   return 0;
39875 }
39876 _ACEOF
39877 if ac_fn_c_try_run "$LINENO"; then :
39878   gl_cv_header_working_stdint_h=yes
39879 fi
39880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39881   conftest.$ac_objext conftest.beam conftest.$ac_ext
39882 fi
39883
39884
39885 fi
39886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39887
39888 fi
39889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
39890 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
39891   fi
39892   if test "$gl_cv_header_working_stdint_h" = yes; then
39893     STDINT_H=
39894   else
39895             for ac_header in sys/inttypes.h sys/bitypes.h
39896 do :
39897   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39898 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39899 eval as_val=\$$as_ac_Header
39900    if test "x$as_val" = x""yes; then :
39901   cat >>confdefs.h <<_ACEOF
39902 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39903 _ACEOF
39904
39905 fi
39906
39907 done
39908
39909     if test $ac_cv_header_sys_inttypes_h = yes; then
39910       HAVE_SYS_INTTYPES_H=1
39911     else
39912       HAVE_SYS_INTTYPES_H=0
39913     fi
39914
39915     if test $ac_cv_header_sys_bitypes_h = yes; then
39916       HAVE_SYS_BITYPES_H=1
39917     else
39918       HAVE_SYS_BITYPES_H=0
39919     fi
39920
39921
39922
39923   :
39924
39925
39926
39927
39928
39929
39930
39931
39932   if test $APPLE_UNIVERSAL_BUILD = 0; then
39933
39934
39935   for gltype in ptrdiff_t size_t ; do
39936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
39937 $as_echo_n "checking for bit size of $gltype... " >&6; }
39938 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
39939   $as_echo_n "(cached) " >&6
39940 else
39941   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
39942   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39943      included before <wchar.h>.  */
39944   #include <stddef.h>
39945   #include <signal.h>
39946   #if HAVE_WCHAR_H
39947   # include <stdio.h>
39948   # include <time.h>
39949   # include <wchar.h>
39950   #endif
39951
39952 #include <limits.h>"; then :
39953
39954 else
39955   result=unknown
39956 fi
39957
39958        eval gl_cv_bitsizeof_${gltype}=\$result
39959
39960 fi
39961 eval ac_res=\$gl_cv_bitsizeof_${gltype}
39962                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
39963 $as_echo "$ac_res" >&6; }
39964     eval result=\$gl_cv_bitsizeof_${gltype}
39965     if test $result = unknown; then
39966                                                 result=0
39967     fi
39968     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
39969     cat >>confdefs.h <<_ACEOF
39970 #define BITSIZEOF_${GLTYPE} $result
39971 _ACEOF
39972
39973     eval BITSIZEOF_${GLTYPE}=\$result
39974   done
39975
39976
39977   fi
39978
39979
39980   for gltype in sig_atomic_t wchar_t wint_t ; do
39981     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
39982 $as_echo_n "checking for bit size of $gltype... " >&6; }
39983 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
39984   $as_echo_n "(cached) " >&6
39985 else
39986   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
39987   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39988      included before <wchar.h>.  */
39989   #include <stddef.h>
39990   #include <signal.h>
39991   #if HAVE_WCHAR_H
39992   # include <stdio.h>
39993   # include <time.h>
39994   # include <wchar.h>
39995   #endif
39996
39997 #include <limits.h>"; then :
39998
39999 else
40000   result=unknown
40001 fi
40002
40003        eval gl_cv_bitsizeof_${gltype}=\$result
40004
40005 fi
40006 eval ac_res=\$gl_cv_bitsizeof_${gltype}
40007                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
40008 $as_echo "$ac_res" >&6; }
40009     eval result=\$gl_cv_bitsizeof_${gltype}
40010     if test $result = unknown; then
40011                                                 result=0
40012     fi
40013     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40014     cat >>confdefs.h <<_ACEOF
40015 #define BITSIZEOF_${GLTYPE} $result
40016 _ACEOF
40017
40018     eval BITSIZEOF_${GLTYPE}=\$result
40019   done
40020
40021
40022
40023
40024   for gltype in sig_atomic_t wchar_t wint_t ; do
40025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
40026 $as_echo_n "checking whether $gltype is signed... " >&6; }
40027 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
40028   $as_echo_n "(cached) " >&6
40029 else
40030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40031 /* end confdefs.h.  */
40032
40033   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40034      included before <wchar.h>.  */
40035   #include <stddef.h>
40036   #include <signal.h>
40037   #if HAVE_WCHAR_H
40038   # include <stdio.h>
40039   # include <time.h>
40040   # include <wchar.h>
40041   #endif
40042
40043             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
40044 int
40045 main ()
40046 {
40047
40048   ;
40049   return 0;
40050 }
40051 _ACEOF
40052 if ac_fn_c_try_compile "$LINENO"; then :
40053   result=yes
40054 else
40055   result=no
40056 fi
40057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40058        eval gl_cv_type_${gltype}_signed=\$result
40059
40060 fi
40061 eval ac_res=\$gl_cv_type_${gltype}_signed
40062                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
40063 $as_echo "$ac_res" >&6; }
40064     eval result=\$gl_cv_type_${gltype}_signed
40065     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40066     if test "$result" = yes; then
40067       cat >>confdefs.h <<_ACEOF
40068 #define HAVE_SIGNED_${GLTYPE} 1
40069 _ACEOF
40070
40071       eval HAVE_SIGNED_${GLTYPE}=1
40072     else
40073       eval HAVE_SIGNED_${GLTYPE}=0
40074     fi
40075   done
40076
40077
40078   gl_cv_type_ptrdiff_t_signed=yes
40079   gl_cv_type_size_t_signed=no
40080   if test $APPLE_UNIVERSAL_BUILD = 0; then
40081
40082
40083   for gltype in ptrdiff_t size_t ; do
40084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
40085 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
40086 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
40087   $as_echo_n "(cached) " >&6
40088 else
40089   eval gl_cv_type_${gltype}_suffix=no
40090        eval result=\$gl_cv_type_${gltype}_signed
40091        if test "$result" = yes; then
40092          glsufu=
40093        else
40094          glsufu=u
40095        fi
40096        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
40097          case $glsuf in
40098            '')  gltype1='int';;
40099            l)   gltype1='long int';;
40100            ll)  gltype1='long long int';;
40101            i64) gltype1='__int64';;
40102            u)   gltype1='unsigned int';;
40103            ul)  gltype1='unsigned long int';;
40104            ull) gltype1='unsigned long long int';;
40105            ui64)gltype1='unsigned __int64';;
40106          esac
40107          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40108 /* end confdefs.h.  */
40109
40110   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40111      included before <wchar.h>.  */
40112   #include <stddef.h>
40113   #include <signal.h>
40114   #if HAVE_WCHAR_H
40115   # include <stdio.h>
40116   # include <time.h>
40117   # include <wchar.h>
40118   #endif
40119
40120               extern $gltype foo;
40121               extern $gltype1 foo;
40122 int
40123 main ()
40124 {
40125
40126   ;
40127   return 0;
40128 }
40129 _ACEOF
40130 if ac_fn_c_try_compile "$LINENO"; then :
40131   eval gl_cv_type_${gltype}_suffix=\$glsuf
40132 fi
40133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40134          eval result=\$gl_cv_type_${gltype}_suffix
40135          test "$result" != no && break
40136        done
40137 fi
40138 eval ac_res=\$gl_cv_type_${gltype}_suffix
40139                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
40140 $as_echo "$ac_res" >&6; }
40141     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40142     eval result=\$gl_cv_type_${gltype}_suffix
40143     test "$result" = no && result=
40144     eval ${GLTYPE}_SUFFIX=\$result
40145     cat >>confdefs.h <<_ACEOF
40146 #define ${GLTYPE}_SUFFIX $result
40147 _ACEOF
40148
40149   done
40150
40151
40152   fi
40153
40154
40155   for gltype in sig_atomic_t wchar_t wint_t ; do
40156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
40157 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
40158 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
40159   $as_echo_n "(cached) " >&6
40160 else
40161   eval gl_cv_type_${gltype}_suffix=no
40162        eval result=\$gl_cv_type_${gltype}_signed
40163        if test "$result" = yes; then
40164          glsufu=
40165        else
40166          glsufu=u
40167        fi
40168        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
40169          case $glsuf in
40170            '')  gltype1='int';;
40171            l)   gltype1='long int';;
40172            ll)  gltype1='long long int';;
40173            i64) gltype1='__int64';;
40174            u)   gltype1='unsigned int';;
40175            ul)  gltype1='unsigned long int';;
40176            ull) gltype1='unsigned long long int';;
40177            ui64)gltype1='unsigned __int64';;
40178          esac
40179          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40180 /* end confdefs.h.  */
40181
40182   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40183      included before <wchar.h>.  */
40184   #include <stddef.h>
40185   #include <signal.h>
40186   #if HAVE_WCHAR_H
40187   # include <stdio.h>
40188   # include <time.h>
40189   # include <wchar.h>
40190   #endif
40191
40192               extern $gltype foo;
40193               extern $gltype1 foo;
40194 int
40195 main ()
40196 {
40197
40198   ;
40199   return 0;
40200 }
40201 _ACEOF
40202 if ac_fn_c_try_compile "$LINENO"; then :
40203   eval gl_cv_type_${gltype}_suffix=\$glsuf
40204 fi
40205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40206          eval result=\$gl_cv_type_${gltype}_suffix
40207          test "$result" != no && break
40208        done
40209 fi
40210 eval ac_res=\$gl_cv_type_${gltype}_suffix
40211                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
40212 $as_echo "$ac_res" >&6; }
40213     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40214     eval result=\$gl_cv_type_${gltype}_suffix
40215     test "$result" = no && result=
40216     eval ${GLTYPE}_SUFFIX=\$result
40217     cat >>confdefs.h <<_ACEOF
40218 #define ${GLTYPE}_SUFFIX $result
40219 _ACEOF
40220
40221   done
40222
40223
40224
40225     STDINT_H=stdint.h
40226   fi
40227
40228
40229   # Code from module stdio:
40230
40231
40232
40233
40234
40235
40236
40237
40238   :
40239
40240
40241
40242
40243
40244
40245
40246      if test $gl_cv_have_include_next = yes; then
40247        gl_cv_next_stdio_h='<'stdio.h'>'
40248      else
40249        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
40250 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
40251 if test "${gl_cv_next_stdio_h+set}" = set; then :
40252   $as_echo_n "(cached) " >&6
40253 else
40254
40255           if test $ac_cv_header_stdio_h = yes; then
40256             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40257 /* end confdefs.h.  */
40258 #include <stdio.h>
40259
40260 _ACEOF
40261                                                                                                 case "$host_os" in
40262               aix*) gl_absname_cpp="$ac_cpp -C" ;;
40263               *)    gl_absname_cpp="$ac_cpp" ;;
40264             esac
40265                                                 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
40266                sed -n '\#/stdio.h#{
40267                  s#.*"\(.*/stdio.h\)".*#\1#
40268                  s#^/[^/]#//&#
40269                  p
40270                  q
40271                }'`'"'
40272           else
40273             gl_cv_next_stdio_h='<'stdio.h'>'
40274           fi
40275
40276 fi
40277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
40278 $as_echo "$gl_cv_next_stdio_h" >&6; }
40279      fi
40280      NEXT_STDIO_H=$gl_cv_next_stdio_h
40281
40282      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
40283        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
40284        gl_next_as_first_directive='<'stdio.h'>'
40285      else
40286        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
40287        gl_next_as_first_directive=$gl_cv_next_stdio_h
40288      fi
40289      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
40290
40291
40292
40293       GNULIB_FPRINTF=1
40294   GNULIB_PRINTF=1
40295   GNULIB_VFPRINTF=1
40296   GNULIB_VPRINTF=1
40297   GNULIB_FPUTC=1
40298   GNULIB_PUTC=1
40299   GNULIB_PUTCHAR=1
40300   GNULIB_FPUTS=1
40301   GNULIB_PUTS=1
40302   GNULIB_FWRITE=1
40303
40304
40305
40306
40307     if test $gl_cv_header_signal_h_SIGPIPE != yes; then
40308       REPLACE_STDIO_WRITE_FUNCS=1
40309
40310
40311
40312
40313
40314
40315
40316
40317   gl_LIBOBJS="$gl_LIBOBJS stdio-write.$ac_objext"
40318
40319     fi
40320
40321
40322
40323     for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat     snprintf tmpfile vdprintf vsnprintf; do
40324     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
40325     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
40326 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
40327 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
40328   $as_echo_n "(cached) " >&6
40329 else
40330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40331 /* end confdefs.h.  */
40332 #include <stdio.h>
40333
40334 int
40335 main ()
40336 {
40337 #undef $gl_func
40338   (void) $gl_func;
40339   ;
40340   return 0;
40341 }
40342 _ACEOF
40343 if ac_fn_c_try_compile "$LINENO"; then :
40344   eval "$as_gl_Symbol=yes"
40345 else
40346   eval "$as_gl_Symbol=no"
40347 fi
40348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40349 fi
40350 eval ac_res=\$$as_gl_Symbol
40351                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
40352 $as_echo "$ac_res" >&6; }
40353      eval as_val=\$$as_gl_Symbol
40354    if test "x$as_val" = x""yes; then :
40355   cat >>confdefs.h <<_ACEOF
40356 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
40357 _ACEOF
40358
40359                      eval ac_cv_have_decl_$gl_func=yes
40360 fi
40361       done
40362
40363
40364   # Code from module stdlib:
40365
40366
40367
40368
40369
40370
40371   :
40372
40373
40374
40375
40376
40377
40378
40379      if test $gl_cv_have_include_next = yes; then
40380        gl_cv_next_stdlib_h='<'stdlib.h'>'
40381      else
40382        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
40383 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
40384 if test "${gl_cv_next_stdlib_h+set}" = set; then :
40385   $as_echo_n "(cached) " >&6
40386 else
40387
40388           if test $ac_cv_header_stdlib_h = yes; then
40389             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40390 /* end confdefs.h.  */
40391 #include <stdlib.h>
40392
40393 _ACEOF
40394                                                                                                 case "$host_os" in
40395               aix*) gl_absname_cpp="$ac_cpp -C" ;;
40396               *)    gl_absname_cpp="$ac_cpp" ;;
40397             esac
40398                                                 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
40399                sed -n '\#/stdlib.h#{
40400                  s#.*"\(.*/stdlib.h\)".*#\1#
40401                  s#^/[^/]#//&#
40402                  p
40403                  q
40404                }'`'"'
40405           else
40406             gl_cv_next_stdlib_h='<'stdlib.h'>'
40407           fi
40408
40409 fi
40410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
40411 $as_echo "$gl_cv_next_stdlib_h" >&6; }
40412      fi
40413      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
40414
40415      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
40416        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
40417        gl_next_as_first_directive='<'stdlib.h'>'
40418      else
40419        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
40420        gl_next_as_first_directive=$gl_cv_next_stdlib_h
40421      fi
40422      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
40423
40424
40425
40426   for ac_header in random.h
40427 do :
40428   ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
40429 "
40430 if test "x$ac_cv_header_random_h" = x""yes; then :
40431   cat >>confdefs.h <<_ACEOF
40432 #define HAVE_RANDOM_H 1
40433 _ACEOF
40434
40435 fi
40436
40437 done
40438
40439   if test $ac_cv_header_random_h = yes; then
40440     HAVE_RANDOM_H=1
40441   else
40442     HAVE_RANDOM_H=0
40443   fi
40444
40445   ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
40446       #if HAVE_RANDOM_H
40447       # include <random.h>
40448       #endif
40449
40450 "
40451 if test "x$ac_cv_type_struct_random_data" = x""yes; then :
40452
40453 cat >>confdefs.h <<_ACEOF
40454 #define HAVE_STRUCT_RANDOM_DATA 1
40455 _ACEOF
40456
40457
40458 else
40459   HAVE_STRUCT_RANDOM_DATA=0
40460 fi
40461
40462
40463
40464     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
40465     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
40466     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
40467 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
40468 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
40469   $as_echo_n "(cached) " >&6
40470 else
40471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40472 /* end confdefs.h.  */
40473 #include <stdlib.h>
40474 #if HAVE_SYS_LOADAVG_H
40475 # include <sys/loadavg.h>
40476 #endif
40477 #if HAVE_RANDOM_H
40478 # include <random.h>
40479 #endif
40480
40481 int
40482 main ()
40483 {
40484 #undef $gl_func
40485   (void) $gl_func;
40486   ;
40487   return 0;
40488 }
40489 _ACEOF
40490 if ac_fn_c_try_compile "$LINENO"; then :
40491   eval "$as_gl_Symbol=yes"
40492 else
40493   eval "$as_gl_Symbol=no"
40494 fi
40495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40496 fi
40497 eval ac_res=\$$as_gl_Symbol
40498                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
40499 $as_echo "$ac_res" >&6; }
40500      eval as_val=\$$as_gl_Symbol
40501    if test "x$as_val" = x""yes; then :
40502   cat >>confdefs.h <<_ACEOF
40503 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
40504 _ACEOF
40505
40506                      eval ac_cv_have_decl_$gl_func=yes
40507 fi
40508       done
40509
40510
40511   # Code from module stpcpy:
40512
40513
40514
40515
40516
40517
40518
40519
40520
40521
40522
40523
40524
40525
40526   for ac_func in stpcpy
40527 do :
40528   ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
40529 if test "x$ac_cv_func_stpcpy" = x""yes; then :
40530   cat >>confdefs.h <<_ACEOF
40531 #define HAVE_STPCPY 1
40532 _ACEOF
40533
40534 else
40535
40536     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
40537
40538 fi
40539 done
40540
40541
40542   if test $ac_cv_func_stpcpy = no; then
40543     HAVE_STPCPY=0
40544
40545   :
40546
40547   fi
40548
40549
40550
40551
40552   GNULIB_STPCPY=1
40553
40554
40555
40556 $as_echo "#define GNULIB_TEST_STPCPY 1" >>confdefs.h
40557
40558
40559
40560   # Code from module stpncpy:
40561
40562
40563
40564
40565
40566
40567
40568
40569
40570   :
40571
40572
40573
40574
40575
40576   if test $ac_cv_func_stpncpy = yes; then
40577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stpncpy" >&5
40578 $as_echo_n "checking for working stpncpy... " >&6; }
40579 if test "${gl_cv_func_stpncpy+set}" = set; then :
40580   $as_echo_n "(cached) " >&6
40581 else
40582
40583       if test "$cross_compiling" = yes; then :
40584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40585 /* end confdefs.h.  */
40586
40587 #include <features.h>
40588 #ifdef __GNU_LIBRARY__
40589   Thanks for using GNU
40590 #endif
40591
40592 _ACEOF
40593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40594   $EGREP "Thanks for using GNU" >/dev/null 2>&1; then :
40595   gl_cv_func_stpncpy=yes
40596 else
40597   gl_cv_func_stpncpy=no
40598 fi
40599 rm -f conftest*
40600
40601
40602 else
40603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40604 /* end confdefs.h.  */
40605
40606 #include <stdlib.h>
40607 #include <string.h> /* for strcpy */
40608 /* The stpncpy prototype is missing in <string.h> on AIX 4.  */
40609 extern char *stpncpy (char *dest, const char *src, size_t n);
40610 int main () {
40611   const char *src = "Hello";
40612   char dest[10];
40613   /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+1 here.  */
40614   strcpy (dest, "\377\377\377\377\377\377");
40615   if (stpncpy (dest, src, 2) != dest + 2) exit(1);
40616   /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+4 here.  */
40617   strcpy (dest, "\377\377\377\377\377\377");
40618   if (stpncpy (dest, src, 5) != dest + 5) exit(1);
40619   /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+6 here.  */
40620   strcpy (dest, "\377\377\377\377\377\377");
40621   if (stpncpy (dest, src, 7) != dest + 5) exit(1);
40622   exit(0);
40623 }
40624
40625 _ACEOF
40626 if ac_fn_c_try_run "$LINENO"; then :
40627   gl_cv_func_stpncpy=yes
40628 else
40629   gl_cv_func_stpncpy=no
40630 fi
40631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40632   conftest.$ac_objext conftest.beam conftest.$ac_ext
40633 fi
40634
40635
40636 fi
40637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stpncpy" >&5
40638 $as_echo "$gl_cv_func_stpncpy" >&6; }
40639     if test $gl_cv_func_stpncpy = yes; then
40640
40641 $as_echo "#define HAVE_STPNCPY 1" >>confdefs.h
40642
40643     else
40644       REPLACE_STPNCPY=1
40645
40646
40647
40648
40649
40650
40651
40652
40653   gl_LIBOBJS="$gl_LIBOBJS stpncpy.$ac_objext"
40654
40655
40656   :
40657
40658     fi
40659   else
40660     HAVE_STPNCPY=0
40661
40662
40663
40664
40665
40666
40667
40668
40669   gl_LIBOBJS="$gl_LIBOBJS stpncpy.$ac_objext"
40670
40671
40672   :
40673
40674   fi
40675
40676
40677
40678
40679   GNULIB_STPNCPY=1
40680
40681
40682
40683 $as_echo "#define GNULIB_TEST_STPNCPY 1" >>confdefs.h
40684
40685
40686
40687   # Code from module strchrnul:
40688
40689
40690
40691
40692
40693
40694
40695
40696
40697
40698
40699
40700   for ac_func in strchrnul
40701 do :
40702   ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
40703 if test "x$ac_cv_func_strchrnul" = x""yes; then :
40704   cat >>confdefs.h <<_ACEOF
40705 #define HAVE_STRCHRNUL 1
40706 _ACEOF
40707
40708 else
40709
40710     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
40711
40712 fi
40713 done
40714
40715
40716   if test $ac_cv_func_strchrnul = no; then
40717     HAVE_STRCHRNUL=0
40718     :
40719   fi
40720
40721
40722
40723
40724   GNULIB_STRCHRNUL=1
40725
40726
40727
40728 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
40729
40730
40731
40732   # Code from module strcspn:
40733
40734
40735
40736
40737
40738
40739
40740
40741
40742   for ac_func in strcspn
40743 do :
40744   ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
40745 if test "x$ac_cv_func_strcspn" = x""yes; then :
40746   cat >>confdefs.h <<_ACEOF
40747 #define HAVE_STRCSPN 1
40748 _ACEOF
40749
40750 else
40751
40752     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
40753
40754 fi
40755 done
40756
40757
40758   if test $ac_cv_func_strcspn = no; then
40759     :
40760   fi
40761
40762   # Code from module streq:
40763   # Code from module strerror:
40764
40765
40766   if test $REPLACE_STRERROR = 1; then
40767
40768
40769
40770
40771
40772
40773
40774
40775   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
40776
40777
40778 cat >>confdefs.h <<_ACEOF
40779 #define REPLACE_STRERROR $REPLACE_STRERROR
40780 _ACEOF
40781
40782   fi
40783
40784
40785
40786
40787   GNULIB_STRERROR=1
40788
40789
40790
40791 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
40792
40793
40794
40795   # Code from module striconv:
40796   if test $gl_cond_libtool = false; then
40797     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
40798     gl_libdeps="$gl_libdeps $LIBICONV"
40799   fi
40800   # Code from module striconveh:
40801   if test $gl_cond_libtool = false; then
40802     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
40803     gl_libdeps="$gl_libdeps $LIBICONV"
40804   fi
40805   # Code from module striconveha:
40806   # Code from module string:
40807
40808
40809
40810   # Code from module strnlen:
40811
40812
40813
40814
40815
40816
40817   :
40818
40819
40820
40821
40822
40823   if test $ac_cv_have_decl_strnlen = no; then
40824     HAVE_DECL_STRNLEN=0
40825   else
40826     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
40827 $as_echo_n "checking for working strnlen... " >&6; }
40828 if test "${ac_cv_func_strnlen_working+set}" = set; then :
40829   $as_echo_n "(cached) " >&6
40830 else
40831   if test "$cross_compiling" = yes; then :
40832   ac_cv_func_strnlen_working=no
40833 else
40834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40835 /* end confdefs.h.  */
40836 $ac_includes_default
40837 int
40838 main ()
40839 {
40840
40841 #define S "foobar"
40842 #define S_LEN (sizeof S - 1)
40843
40844   /* At least one implementation is buggy: that of AIX 4.3 would
40845      give strnlen (S, 1) == 3.  */
40846
40847   int i;
40848   for (i = 0; i < S_LEN + 1; ++i)
40849     {
40850       int expected = i <= S_LEN ? i : S_LEN;
40851       if (strnlen (S, i) != expected)
40852         return 1;
40853     }
40854   return 0;
40855
40856   ;
40857   return 0;
40858 }
40859 _ACEOF
40860 if ac_fn_c_try_run "$LINENO"; then :
40861   ac_cv_func_strnlen_working=yes
40862 else
40863   ac_cv_func_strnlen_working=no
40864 fi
40865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40866   conftest.$ac_objext conftest.beam conftest.$ac_ext
40867 fi
40868
40869 fi
40870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
40871 $as_echo "$ac_cv_func_strnlen_working" >&6; }
40872 test $ac_cv_func_strnlen_working = no &&
40873
40874
40875
40876
40877
40878
40879
40880   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
40881
40882
40883         if test $ac_cv_func_strnlen_working = no; then
40884       REPLACE_STRNLEN=1
40885     fi
40886   fi
40887   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
40888
40889
40890
40891
40892
40893
40894
40895
40896   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
40897
40898     :
40899   fi
40900
40901
40902
40903
40904   GNULIB_STRNLEN=1
40905
40906
40907
40908 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
40909
40910
40911
40912   # Code from module strnlen1:
40913   # Code from module strpbrk:
40914
40915
40916
40917
40918
40919
40920
40921
40922
40923
40924   for ac_func in strpbrk
40925 do :
40926   ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
40927 if test "x$ac_cv_func_strpbrk" = x""yes; then :
40928   cat >>confdefs.h <<_ACEOF
40929 #define HAVE_STRPBRK 1
40930 _ACEOF
40931
40932 else
40933
40934     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
40935
40936 fi
40937 done
40938
40939
40940   if test $ac_cv_func_strpbrk = no; then
40941     HAVE_STRPBRK=0
40942     :
40943   fi
40944
40945
40946
40947
40948   GNULIB_STRPBRK=1
40949
40950
40951
40952 $as_echo "#define GNULIB_TEST_STRPBRK 1" >>confdefs.h
40953
40954
40955
40956   # Code from module strstr:
40957
40958
40959   if test $REPLACE_STRSTR = 0; then
40960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
40961 $as_echo_n "checking whether strstr works in linear time... " >&6; }
40962 if test "${gl_cv_func_strstr_linear+set}" = set; then :
40963   $as_echo_n "(cached) " >&6
40964 else
40965   if test "$cross_compiling" = yes; then :
40966                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40967 /* end confdefs.h.  */
40968
40969 #include <features.h>
40970 #ifdef __GNU_LIBRARY__
40971  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
40972   Lucky user
40973  #endif
40974 #endif
40975 #ifdef __CYGWIN__
40976  #include <cygwin/version.h>
40977  #if CYGWIN_VERSION_DLL_MAJOR >= 1007
40978   Lucky user
40979  #endif
40980 #endif
40981
40982 _ACEOF
40983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40984   $EGREP "Lucky user" >/dev/null 2>&1; then :
40985   gl_cv_func_strstr_linear=yes
40986 else
40987   gl_cv_func_strstr_linear="guessing no"
40988 fi
40989 rm -f conftest*
40990
40991
40992 else
40993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40994 /* end confdefs.h.  */
40995
40996 #include <signal.h> /* for signal */
40997 #include <string.h> /* for memmem */
40998 #include <stdlib.h> /* for malloc */
40999 #include <unistd.h> /* for alarm */
41000
41001 int
41002 main ()
41003 {
41004 size_t m = 1000000;
41005     char *haystack = (char *) malloc (2 * m + 2);
41006     char *needle = (char *) malloc (m + 2);
41007     void *result = 0;
41008     /* Failure to compile this test due to missing alarm is okay,
41009        since all such platforms (mingw) also have quadratic strstr.  */
41010     signal (SIGALRM, SIG_DFL);
41011     alarm (5);
41012     /* Check for quadratic performance.  */
41013     if (haystack && needle)
41014       {
41015         memset (haystack, 'A', 2 * m);
41016         haystack[2 * m] = 'B';
41017         haystack[2 * m + 1] = 0;
41018         memset (needle, 'A', m);
41019         needle[m] = 'B';
41020         needle[m + 1] = 0;
41021         result = strstr (haystack, needle);
41022       }
41023     return !result;
41024   ;
41025   return 0;
41026 }
41027 _ACEOF
41028 if ac_fn_c_try_run "$LINENO"; then :
41029   gl_cv_func_strstr_linear=yes
41030 else
41031   gl_cv_func_strstr_linear=no
41032 fi
41033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41034   conftest.$ac_objext conftest.beam conftest.$ac_ext
41035 fi
41036
41037
41038 fi
41039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
41040 $as_echo "$gl_cv_func_strstr_linear" >&6; }
41041     if test "$gl_cv_func_strstr_linear" != yes; then
41042       REPLACE_STRSTR=1
41043     fi
41044   fi
41045   if test $REPLACE_STRSTR = 1; then
41046
41047
41048
41049
41050
41051
41052
41053
41054   gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
41055
41056   fi
41057
41058   # Code from module strstr-simple:
41059
41060
41061
41062   if test "$gl_cv_func_memchr_works" != yes; then
41063     REPLACE_STRSTR=1
41064
41065
41066
41067
41068
41069
41070
41071
41072   gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
41073
41074   fi
41075
41076
41077
41078
41079   GNULIB_STRSTR=1
41080
41081
41082
41083 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
41084
41085
41086
41087   # Code from module strtol:
41088
41089
41090
41091
41092
41093
41094
41095
41096
41097   for ac_func in strtol
41098 do :
41099   ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
41100 if test "x$ac_cv_func_strtol" = x""yes; then :
41101   cat >>confdefs.h <<_ACEOF
41102 #define HAVE_STRTOL 1
41103 _ACEOF
41104
41105 else
41106
41107     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
41108
41109 fi
41110 done
41111
41112
41113
41114   # Code from module strtoul:
41115
41116
41117
41118
41119
41120
41121
41122
41123
41124   for ac_func in strtoul
41125 do :
41126   ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
41127 if test "x$ac_cv_func_strtoul" = x""yes; then :
41128   cat >>confdefs.h <<_ACEOF
41129 #define HAVE_STRTOUL 1
41130 _ACEOF
41131
41132 else
41133
41134     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
41135
41136 fi
41137 done
41138
41139
41140
41141   # Code from module styled-ostream:
41142   # Code from module sys_select:
41143
41144
41145
41146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
41147 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
41148 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
41149   $as_echo_n "(cached) " >&6
41150 else
41151
41152                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41153 /* end confdefs.h.  */
41154 #include <sys/select.h>
41155 int
41156 main ()
41157 {
41158 struct timeval b;
41159   ;
41160   return 0;
41161 }
41162 _ACEOF
41163 if ac_fn_c_try_compile "$LINENO"; then :
41164   gl_cv_header_sys_select_h_selfcontained=yes
41165 else
41166   gl_cv_header_sys_select_h_selfcontained=no
41167 fi
41168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41169                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
41170         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41171 /* end confdefs.h.  */
41172 #include <sys/select.h>
41173 int
41174 main ()
41175 {
41176 int memset; int bzero;
41177   ;
41178   return 0;
41179 }
41180
41181 _ACEOF
41182 if ac_fn_c_try_compile "$LINENO"; then :
41183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41184 /* end confdefs.h.  */
41185 #include <sys/select.h>
41186 int
41187 main ()
41188 {
41189
41190                   #undef memset
41191                   #define memset nonexistent_memset
41192                   extern void *memset (void *, int, unsigned long);
41193                   #undef bzero
41194                   #define bzero nonexistent_bzero
41195                   extern void bzero (void *, unsigned long);
41196                   fd_set fds;
41197                   FD_ZERO (&fds);
41198
41199   ;
41200   return 0;
41201 }
41202
41203 _ACEOF
41204 if ac_fn_c_try_link "$LINENO"; then :
41205
41206 else
41207   gl_cv_header_sys_select_h_selfcontained=no
41208 fi
41209 rm -f core conftest.err conftest.$ac_objext \
41210     conftest$ac_exeext conftest.$ac_ext
41211
41212 fi
41213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41214       fi
41215
41216 fi
41217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
41218 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
41219
41220   :
41221
41222
41223
41224
41225
41226
41227
41228
41229
41230   :
41231
41232
41233
41234
41235
41236
41237
41238      if test $gl_cv_have_include_next = yes; then
41239        gl_cv_next_sys_select_h='<'sys/select.h'>'
41240      else
41241        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
41242 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
41243 if test "${gl_cv_next_sys_select_h+set}" = set; then :
41244   $as_echo_n "(cached) " >&6
41245 else
41246
41247           if test $ac_cv_header_sys_select_h = yes; then
41248             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41249 /* end confdefs.h.  */
41250 #include <sys/select.h>
41251
41252 _ACEOF
41253                                                                                                 case "$host_os" in
41254               aix*) gl_absname_cpp="$ac_cpp -C" ;;
41255               *)    gl_absname_cpp="$ac_cpp" ;;
41256             esac
41257                                                 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
41258                sed -n '\#/sys/select.h#{
41259                  s#.*"\(.*/sys/select.h\)".*#\1#
41260                  s#^/[^/]#//&#
41261                  p
41262                  q
41263                }'`'"'
41264           else
41265             gl_cv_next_sys_select_h='<'sys/select.h'>'
41266           fi
41267
41268 fi
41269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
41270 $as_echo "$gl_cv_next_sys_select_h" >&6; }
41271      fi
41272      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
41273
41274      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
41275        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
41276        gl_next_as_first_directive='<'sys/select.h'>'
41277      else
41278        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
41279        gl_next_as_first_directive=$gl_cv_next_sys_select_h
41280      fi
41281      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
41282
41283
41284
41285   if test $ac_cv_header_sys_select_h = yes; then
41286     HAVE_SYS_SELECT_H=1
41287   else
41288     HAVE_SYS_SELECT_H=0
41289   fi
41290
41291
41292
41293
41294
41295   :
41296
41297
41298
41299
41300
41301   if test $ac_cv_header_sys_socket_h != yes; then
41302                     for ac_header in winsock2.h
41303 do :
41304   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
41305 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
41306   cat >>confdefs.h <<_ACEOF
41307 #define HAVE_WINSOCK2_H 1
41308 _ACEOF
41309
41310 fi
41311
41312 done
41313
41314   fi
41315   if test "$ac_cv_header_winsock2_h" = yes; then
41316     HAVE_WINSOCK2_H=1
41317     UNISTD_H_HAVE_WINSOCK2_H=1
41318     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
41319   else
41320     HAVE_WINSOCK2_H=0
41321   fi
41322
41323
41324
41325
41326     for gl_func in select; do
41327     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
41328     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
41329 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
41330 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
41331   $as_echo_n "(cached) " >&6
41332 else
41333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41334 /* end confdefs.h.  */
41335
41336 /* Some systems require prerequisite headers.  */
41337 #include <sys/types.h>
41338 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
41339 # include <sys/time.h>
41340 #endif
41341 #include <sys/select.h>
41342
41343 int
41344 main ()
41345 {
41346 #undef $gl_func
41347   (void) $gl_func;
41348   ;
41349   return 0;
41350 }
41351 _ACEOF
41352 if ac_fn_c_try_compile "$LINENO"; then :
41353   eval "$as_gl_Symbol=yes"
41354 else
41355   eval "$as_gl_Symbol=no"
41356 fi
41357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41358 fi
41359 eval ac_res=\$$as_gl_Symbol
41360                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
41361 $as_echo "$ac_res" >&6; }
41362      eval as_val=\$$as_gl_Symbol
41363    if test "x$as_val" = x""yes; then :
41364   cat >>confdefs.h <<_ACEOF
41365 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
41366 _ACEOF
41367
41368                      eval ac_cv_have_decl_$gl_func=yes
41369 fi
41370       done
41371
41372
41373
41374   # Code from module sys_socket:
41375
41376
41377
41378
41379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
41380 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
41381 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then :
41382   $as_echo_n "(cached) " >&6
41383 else
41384
41385       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41386 /* end confdefs.h.  */
41387 #include <sys/socket.h>
41388 int
41389 main ()
41390 {
41391
41392   ;
41393   return 0;
41394 }
41395 _ACEOF
41396 if ac_fn_c_try_compile "$LINENO"; then :
41397   gl_cv_header_sys_socket_h_selfcontained=yes
41398 else
41399   gl_cv_header_sys_socket_h_selfcontained=no
41400 fi
41401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41402
41403 fi
41404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
41405 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
41406   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
41407             for ac_func in shutdown
41408 do :
41409   ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
41410 if test "x$ac_cv_func_shutdown" = x""yes; then :
41411   cat >>confdefs.h <<_ACEOF
41412 #define HAVE_SHUTDOWN 1
41413 _ACEOF
41414
41415 fi
41416 done
41417
41418     if test $ac_cv_func_shutdown = yes; then
41419       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
41420 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
41421 if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then :
41422   $as_echo_n "(cached) " >&6
41423 else
41424
41425           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41426 /* end confdefs.h.  */
41427 #include <sys/socket.h>
41428 int
41429 main ()
41430 {
41431 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
41432   ;
41433   return 0;
41434 }
41435 _ACEOF
41436 if ac_fn_c_try_compile "$LINENO"; then :
41437   gl_cv_header_sys_socket_h_shut=yes
41438 else
41439   gl_cv_header_sys_socket_h_shut=no
41440 fi
41441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41442
41443 fi
41444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
41445 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
41446       if test $gl_cv_header_sys_socket_h_shut = no; then
41447         SYS_SOCKET_H='sys/socket.h'
41448       fi
41449     fi
41450   fi
41451   # We need to check for ws2tcpip.h now.
41452
41453
41454
41455
41456
41457   :
41458
41459
41460
41461
41462
41463
41464
41465      if test $gl_cv_have_include_next = yes; then
41466        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
41467      else
41468        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
41469 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
41470 if test "${gl_cv_next_sys_socket_h+set}" = set; then :
41471   $as_echo_n "(cached) " >&6
41472 else
41473
41474           if test $ac_cv_header_sys_socket_h = yes; then
41475             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41476 /* end confdefs.h.  */
41477 #include <sys/socket.h>
41478
41479 _ACEOF
41480                                                                                                 case "$host_os" in
41481               aix*) gl_absname_cpp="$ac_cpp -C" ;;
41482               *)    gl_absname_cpp="$ac_cpp" ;;
41483             esac
41484                                                 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
41485                sed -n '\#/sys/socket.h#{
41486                  s#.*"\(.*/sys/socket.h\)".*#\1#
41487                  s#^/[^/]#//&#
41488                  p
41489                  q
41490                }'`'"'
41491           else
41492             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
41493           fi
41494
41495 fi
41496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
41497 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
41498      fi
41499      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
41500
41501      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
41502        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
41503        gl_next_as_first_directive='<'sys/socket.h'>'
41504      else
41505        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
41506        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
41507      fi
41508      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
41509
41510
41511
41512   if test $ac_cv_header_sys_socket_h = yes; then
41513     HAVE_SYS_SOCKET_H=1
41514     HAVE_WS2TCPIP_H=0
41515   else
41516     HAVE_SYS_SOCKET_H=0
41517                     for ac_header in ws2tcpip.h
41518 do :
41519   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
41520 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
41521   cat >>confdefs.h <<_ACEOF
41522 #define HAVE_WS2TCPIP_H 1
41523 _ACEOF
41524
41525 fi
41526
41527 done
41528
41529     if test $ac_cv_header_ws2tcpip_h = yes; then
41530       HAVE_WS2TCPIP_H=1
41531     else
41532       HAVE_WS2TCPIP_H=0
41533     fi
41534   fi
41535
41536
41537
41538   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
41539   /* sys/types.h is not needed according to POSIX, but the
41540      sys/socket.h in i386-unknown-freebsd4.10 and
41541      powerpc-apple-darwin5.5 required it. */
41542 #include <sys/types.h>
41543 #ifdef HAVE_SYS_SOCKET_H
41544 #include <sys/socket.h>
41545 #endif
41546 #ifdef HAVE_WS2TCPIP_H
41547 #include <ws2tcpip.h>
41548 #endif
41549
41550 "
41551 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
41552
41553 cat >>confdefs.h <<_ACEOF
41554 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
41555 _ACEOF
41556
41557
41558 fi
41559 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
41560   /* sys/types.h is not needed according to POSIX, but the
41561      sys/socket.h in i386-unknown-freebsd4.10 and
41562      powerpc-apple-darwin5.5 required it. */
41563 #include <sys/types.h>
41564 #ifdef HAVE_SYS_SOCKET_H
41565 #include <sys/socket.h>
41566 #endif
41567 #ifdef HAVE_WS2TCPIP_H
41568 #include <ws2tcpip.h>
41569 #endif
41570
41571 "
41572 if test "x$ac_cv_type_sa_family_t" = x""yes; then :
41573
41574 cat >>confdefs.h <<_ACEOF
41575 #define HAVE_SA_FAMILY_T 1
41576 _ACEOF
41577
41578
41579 fi
41580
41581   if test $ac_cv_type_struct_sockaddr_storage = no; then
41582     HAVE_STRUCT_SOCKADDR_STORAGE=0
41583   fi
41584   if test $ac_cv_type_sa_family_t = no; then
41585     HAVE_SA_FAMILY_T=0
41586   fi
41587
41588
41589
41590
41591   :
41592
41593
41594
41595
41596
41597   if test $ac_cv_header_sys_socket_h != yes; then
41598                     for ac_header in winsock2.h
41599 do :
41600   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
41601 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
41602   cat >>confdefs.h <<_ACEOF
41603 #define HAVE_WINSOCK2_H 1
41604 _ACEOF
41605
41606 fi
41607
41608 done
41609
41610   fi
41611   if test "$ac_cv_header_winsock2_h" = yes; then
41612     HAVE_WINSOCK2_H=1
41613     UNISTD_H_HAVE_WINSOCK2_H=1
41614     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
41615   else
41616     HAVE_WINSOCK2_H=0
41617   fi
41618
41619
41620
41621
41622     for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
41623     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
41624     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
41625 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
41626 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
41627   $as_echo_n "(cached) " >&6
41628 else
41629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41630 /* end confdefs.h.  */
41631
41632 /* Some systems require prerequisite headers.  */
41633 #include <sys/types.h>
41634 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
41635 # include <sys/time.h>
41636 #endif
41637 #include <sys/select.h>
41638
41639 int
41640 main ()
41641 {
41642 #undef $gl_func
41643   (void) $gl_func;
41644   ;
41645   return 0;
41646 }
41647 _ACEOF
41648 if ac_fn_c_try_compile "$LINENO"; then :
41649   eval "$as_gl_Symbol=yes"
41650 else
41651   eval "$as_gl_Symbol=no"
41652 fi
41653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41654 fi
41655 eval ac_res=\$$as_gl_Symbol
41656                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
41657 $as_echo "$ac_res" >&6; }
41658      eval as_val=\$$as_gl_Symbol
41659    if test "x$as_val" = x""yes; then :
41660   cat >>confdefs.h <<_ACEOF
41661 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
41662 _ACEOF
41663
41664                      eval ac_cv_have_decl_$gl_func=yes
41665 fi
41666       done
41667
41668
41669
41670   # Code from module sys_stat:
41671
41672
41673
41674
41675
41676
41677
41678
41679
41680
41681
41682   :
41683
41684
41685
41686
41687
41688
41689
41690      if test $gl_cv_have_include_next = yes; then
41691        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
41692      else
41693        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
41694 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
41695 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
41696   $as_echo_n "(cached) " >&6
41697 else
41698
41699           if test $ac_cv_header_sys_stat_h = yes; then
41700             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41701 /* end confdefs.h.  */
41702 #include <sys/stat.h>
41703
41704 _ACEOF
41705                                                                                                 case "$host_os" in
41706               aix*) gl_absname_cpp="$ac_cpp -C" ;;
41707               *)    gl_absname_cpp="$ac_cpp" ;;
41708             esac
41709                                                 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
41710                sed -n '\#/sys/stat.h#{
41711                  s#.*"\(.*/sys/stat.h\)".*#\1#
41712                  s#^/[^/]#//&#
41713                  p
41714                  q
41715                }'`'"'
41716           else
41717             gl_cv_next_sys_stat_h='<'sys/stat.h'>'
41718           fi
41719
41720 fi
41721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
41722 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
41723      fi
41724      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
41725
41726      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
41727        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
41728        gl_next_as_first_directive='<'sys/stat.h'>'
41729      else
41730        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
41731        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
41732      fi
41733      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
41734
41735
41736
41737
41738       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
41739      #include <sys/stat.h>
41740 "
41741 if test "x$ac_cv_type_nlink_t" = x""yes; then :
41742
41743 else
41744
41745 $as_echo "#define nlink_t int" >>confdefs.h
41746
41747 fi
41748
41749
41750
41751     for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
41752     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
41753     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
41754 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
41755 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
41756   $as_echo_n "(cached) " >&6
41757 else
41758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41759 /* end confdefs.h.  */
41760 #include <sys/stat.h>
41761
41762 int
41763 main ()
41764 {
41765 #undef $gl_func
41766   (void) $gl_func;
41767   ;
41768   return 0;
41769 }
41770 _ACEOF
41771 if ac_fn_c_try_compile "$LINENO"; then :
41772   eval "$as_gl_Symbol=yes"
41773 else
41774   eval "$as_gl_Symbol=no"
41775 fi
41776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41777 fi
41778 eval ac_res=\$$as_gl_Symbol
41779                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
41780 $as_echo "$ac_res" >&6; }
41781      eval as_val=\$$as_gl_Symbol
41782    if test "x$as_val" = x""yes; then :
41783   cat >>confdefs.h <<_ACEOF
41784 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
41785 _ACEOF
41786
41787                      eval ac_cv_have_decl_$gl_func=yes
41788 fi
41789       done
41790
41791
41792
41793   # Code from module sys_time:
41794
41795
41796
41797
41798   # Code from module sys_wait:
41799
41800
41801
41802
41803
41804
41805
41806   :
41807
41808
41809
41810
41811
41812
41813
41814      if test $gl_cv_have_include_next = yes; then
41815        gl_cv_next_sys_wait_h='<'sys/wait.h'>'
41816      else
41817        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
41818 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
41819 if test "${gl_cv_next_sys_wait_h+set}" = set; then :
41820   $as_echo_n "(cached) " >&6
41821 else
41822
41823           if test $ac_cv_header_sys_wait_h = yes; then
41824             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41825 /* end confdefs.h.  */
41826 #include <sys/wait.h>
41827
41828 _ACEOF
41829                                                                                                 case "$host_os" in
41830               aix*) gl_absname_cpp="$ac_cpp -C" ;;
41831               *)    gl_absname_cpp="$ac_cpp" ;;
41832             esac
41833                                                 gl_cv_next_sys_wait_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
41834                sed -n '\#/sys/wait.h#{
41835                  s#.*"\(.*/sys/wait.h\)".*#\1#
41836                  s#^/[^/]#//&#
41837                  p
41838                  q
41839                }'`'"'
41840           else
41841             gl_cv_next_sys_wait_h='<'sys/wait.h'>'
41842           fi
41843
41844 fi
41845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
41846 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
41847      fi
41848      NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
41849
41850      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
41851        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
41852        gl_next_as_first_directive='<'sys/wait.h'>'
41853      else
41854        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
41855        gl_next_as_first_directive=$gl_cv_next_sys_wait_h
41856      fi
41857      NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
41858
41859
41860
41861
41862
41863   # Code from module tempname:
41864
41865
41866
41867
41868
41869
41870
41871
41872
41873
41874
41875   gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
41876
41877
41878   :
41879
41880
41881   # Code from module term-ostream:
41882
41883
41884
41885   # Code from module term-styled-ostream:
41886   # Code from module terminfo:
41887
41888
41889   if test $gl_cv_terminfo_tparam = no && test $gl_cv_terminfo_tparm = no; then
41890
41891
41892
41893
41894
41895
41896
41897
41898   gl_LIBOBJS="$gl_LIBOBJS tparm.$ac_objext"
41899
41900   fi
41901   case "$gl_cv_terminfo" in
41902     no*)
41903       case "$gl_cv_termcap" in
41904         no*)
41905
41906
41907
41908
41909
41910
41911
41912
41913   gl_LIBOBJS="$gl_LIBOBJS tputs.$ac_objext"
41914
41915           ;;
41916       esac
41917       ;;
41918   esac
41919
41920   # Code from module terminfo-h:
41921   # Code from module threadlib:
41922
41923
41924
41925
41926   # Code from module time:
41927
41928
41929
41930   # Code from module tls:
41931
41932
41933
41934   # Code from module tmpdir:
41935
41936   for ac_func in __secure_getenv
41937 do :
41938   ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
41939 if test "x$ac_cv_func___secure_getenv" = x""yes; then :
41940   cat >>confdefs.h <<_ACEOF
41941 #define HAVE___SECURE_GETENV 1
41942 _ACEOF
41943
41944 fi
41945 done
41946
41947
41948   # Code from module trim:
41949   # Code from module uniconv/base:
41950
41951
41952       if  { test "$HAVE_LIBUNISTRING" != yes \
41953     || {
41954
41955
41956
41957             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
41958             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
41959                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
41960                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
41961                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
41962                          }
41963                     }
41964                }
41965
41966
41967
41968
41969        }
41970   }; then
41971     LIBUNISTRING_UNICONV_H='uniconv.h'
41972   else
41973     LIBUNISTRING_UNICONV_H=
41974   fi
41975
41976
41977   # Code from module uniconv/u8-conv-from-enc:
41978
41979
41980        if  { test "$HAVE_LIBUNISTRING" != yes \
41981     || {
41982
41983
41984
41985             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
41986             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
41987                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
41988                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
41989                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
41990                          }
41991                     }
41992                }
41993
41994
41995
41996
41997        }
41998   }; then
41999   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE=
42000   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE='#'
42001 else
42002   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE='#'
42003   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE=
42004 fi
42005
42006
42007   # Code from module unilbrk/base:
42008
42009
42010       if  { test "$HAVE_LIBUNISTRING" != yes \
42011     || {
42012
42013
42014
42015             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42016             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42017                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42018                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42019                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42020                          }
42021                     }
42022                }
42023
42024
42025
42026
42027        }
42028   }; then
42029     LIBUNISTRING_UNILBRK_H='unilbrk.h'
42030   else
42031     LIBUNISTRING_UNILBRK_H=
42032   fi
42033
42034
42035   # Code from module unilbrk/tables:
42036
42037   # Code from module unilbrk/u8-possible-linebreaks:
42038
42039
42040        if  { test "$HAVE_LIBUNISTRING" != yes \
42041     || {
42042
42043
42044
42045             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42046             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42047                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42048                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42049                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42050                          }
42051                     }
42052                }
42053
42054
42055
42056
42057        }
42058   }; then
42059   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE=
42060   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE='#'
42061 else
42062   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE='#'
42063   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE=
42064 fi
42065
42066
42067   # Code from module unilbrk/u8-width-linebreaks:
42068
42069
42070        if  { test "$HAVE_LIBUNISTRING" != yes \
42071     || {
42072
42073
42074
42075             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42076             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42077                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42078                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42079                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42080                          }
42081                     }
42082                }
42083
42084
42085
42086
42087        }
42088   }; then
42089   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE=
42090   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE='#'
42091 else
42092   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE='#'
42093   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE=
42094 fi
42095
42096
42097   # Code from module unilbrk/ulc-common:
42098   # Code from module unilbrk/ulc-width-linebreaks:
42099
42100
42101        if  { test "$HAVE_LIBUNISTRING" != yes \
42102     || {
42103
42104
42105
42106             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42107             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42108                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42109                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42110                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42111                          }
42112                     }
42113                }
42114
42115
42116
42117
42118        }
42119   }; then
42120   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE=
42121   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE='#'
42122 else
42123   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE='#'
42124   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE=
42125 fi
42126
42127
42128   # Code from module uniname/base:
42129
42130
42131       if  { test "$HAVE_LIBUNISTRING" != yes \
42132     || {
42133
42134
42135
42136             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42137             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42138                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42139                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42140                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42141                          }
42142                     }
42143                }
42144
42145
42146
42147
42148        }
42149   }; then
42150     LIBUNISTRING_UNINAME_H='uniname.h'
42151   else
42152     LIBUNISTRING_UNINAME_H=
42153   fi
42154
42155
42156   # Code from module uniname/uniname:
42157
42158
42159        if  { test "$HAVE_LIBUNISTRING" != yes \
42160     || {
42161
42162
42163
42164             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42165             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42166                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42167                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42168                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42169                          }
42170                     }
42171                }
42172
42173
42174
42175
42176        }
42177   }; then
42178   LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE=
42179   LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE='#'
42180 else
42181   LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE='#'
42182   LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE=
42183 fi
42184
42185
42186   # Code from module unistd:
42187
42188
42189
42190
42191
42192
42193
42194
42195   :
42196
42197
42198
42199
42200
42201
42202
42203      if test $gl_cv_have_include_next = yes; then
42204        gl_cv_next_unistd_h='<'unistd.h'>'
42205      else
42206        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
42207 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
42208 if test "${gl_cv_next_unistd_h+set}" = set; then :
42209   $as_echo_n "(cached) " >&6
42210 else
42211
42212           if test $ac_cv_header_unistd_h = yes; then
42213             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42214 /* end confdefs.h.  */
42215 #include <unistd.h>
42216
42217 _ACEOF
42218                                                                                                 case "$host_os" in
42219               aix*) gl_absname_cpp="$ac_cpp -C" ;;
42220               *)    gl_absname_cpp="$ac_cpp" ;;
42221             esac
42222                                                 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
42223                sed -n '\#/unistd.h#{
42224                  s#.*"\(.*/unistd.h\)".*#\1#
42225                  s#^/[^/]#//&#
42226                  p
42227                  q
42228                }'`'"'
42229           else
42230             gl_cv_next_unistd_h='<'unistd.h'>'
42231           fi
42232
42233 fi
42234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
42235 $as_echo "$gl_cv_next_unistd_h" >&6; }
42236      fi
42237      NEXT_UNISTD_H=$gl_cv_next_unistd_h
42238
42239      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
42240        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
42241        gl_next_as_first_directive='<'unistd.h'>'
42242      else
42243        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
42244        gl_next_as_first_directive=$gl_cv_next_unistd_h
42245      fi
42246      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
42247
42248
42249
42250
42251
42252   :
42253
42254
42255
42256
42257
42258   if test $ac_cv_header_unistd_h = yes; then
42259     HAVE_UNISTD_H=1
42260   else
42261     HAVE_UNISTD_H=0
42262   fi
42263
42264
42265
42266     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 pwrite readlink     readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat     usleep; do
42267     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
42268     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
42269 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
42270 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
42271   $as_echo_n "(cached) " >&6
42272 else
42273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42274 /* end confdefs.h.  */
42275 #include <unistd.h>
42276 /* Some systems declare various items in the wrong headers.  */
42277 #ifndef __GLIBC__
42278 # include <fcntl.h>
42279 # include <stdio.h>
42280 # include <stdlib.h>
42281 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
42282 #  include <io.h>
42283 # endif
42284 #endif
42285
42286 int
42287 main ()
42288 {
42289 #undef $gl_func
42290   (void) $gl_func;
42291   ;
42292   return 0;
42293 }
42294 _ACEOF
42295 if ac_fn_c_try_compile "$LINENO"; then :
42296   eval "$as_gl_Symbol=yes"
42297 else
42298   eval "$as_gl_Symbol=no"
42299 fi
42300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42301 fi
42302 eval ac_res=\$$as_gl_Symbol
42303                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
42304 $as_echo "$ac_res" >&6; }
42305      eval as_val=\$$as_gl_Symbol
42306    if test "x$as_val" = x""yes; then :
42307   cat >>confdefs.h <<_ACEOF
42308 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
42309 _ACEOF
42310
42311                      eval ac_cv_have_decl_$gl_func=yes
42312 fi
42313       done
42314
42315
42316   # Code from module unistd-safer:
42317
42318
42319   :
42320
42321
42322
42323
42324
42325
42326
42327
42328
42329
42330
42331
42332
42333   gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext"
42334
42335
42336
42337
42338
42339
42340
42341
42342
42343   gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext"
42344
42345
42346
42347
42348
42349
42350
42351
42352
42353   gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
42354
42355
42356   # Code from module unistr/base:
42357
42358
42359       if  { test "$HAVE_LIBUNISTRING" != yes \
42360     || {
42361
42362
42363
42364             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42365             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42366                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42367                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42368                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 2
42369                          }
42370                     }
42371                }
42372
42373
42374
42375
42376        }
42377   }; then
42378     LIBUNISTRING_UNISTR_H='unistr.h'
42379   else
42380     LIBUNISTRING_UNISTR_H=
42381   fi
42382
42383
42384   # Code from module unistr/u16-mbtouc:
42385
42386
42387 cat >>confdefs.h <<_ACEOF
42388 #define GNULIB_UNISTR_U16_MBTOUC 1
42389 _ACEOF
42390
42391
42392
42393
42394        if  { test "$HAVE_LIBUNISTRING" != yes \
42395     || {
42396
42397
42398
42399             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42400             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42401                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42402                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42403                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42404                          }
42405                     }
42406                }
42407
42408
42409
42410
42411        }
42412   }; then
42413   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE=
42414   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE='#'
42415 else
42416   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE='#'
42417   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE=
42418 fi
42419
42420
42421   # Code from module unistr/u8-check:
42422
42423
42424        if  { test "$HAVE_LIBUNISTRING" != yes \
42425     || {
42426
42427
42428
42429             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42430             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42431                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42432                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42433                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42434                          }
42435                     }
42436                }
42437
42438
42439
42440
42441        }
42442   }; then
42443   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE=
42444   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE='#'
42445 else
42446   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE='#'
42447   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE=
42448 fi
42449
42450
42451   # Code from module unistr/u8-mblen:
42452
42453
42454        if  { test "$HAVE_LIBUNISTRING" != yes \
42455     || {
42456
42457
42458
42459             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42460             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42461                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42462                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42463                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42464                          }
42465                     }
42466                }
42467
42468
42469
42470
42471        }
42472   }; then
42473   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE=
42474   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE='#'
42475 else
42476   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE='#'
42477   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE=
42478 fi
42479
42480
42481   # Code from module unistr/u8-mbtouc:
42482
42483
42484 cat >>confdefs.h <<_ACEOF
42485 #define GNULIB_UNISTR_U8_MBTOUC 1
42486 _ACEOF
42487
42488
42489
42490
42491        if  { test "$HAVE_LIBUNISTRING" != yes \
42492     || {
42493
42494
42495
42496             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42497             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42498                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42499                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42500                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42501                          }
42502                     }
42503                }
42504
42505
42506
42507
42508        }
42509   }; then
42510   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE=
42511   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE='#'
42512 else
42513   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE='#'
42514   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE=
42515 fi
42516
42517
42518   # Code from module unistr/u8-mbtouc-unsafe:
42519
42520
42521 cat >>confdefs.h <<_ACEOF
42522 #define GNULIB_UNISTR_U8_MBTOUC_UNSAFE 1
42523 _ACEOF
42524
42525
42526
42527
42528        if  { test "$HAVE_LIBUNISTRING" != yes \
42529     || {
42530
42531
42532
42533             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42534             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42535                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42536                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42537                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42538                          }
42539                     }
42540                }
42541
42542
42543
42544
42545        }
42546   }; then
42547   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE=
42548   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE='#'
42549 else
42550   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE='#'
42551   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE=
42552 fi
42553
42554
42555   # Code from module unistr/u8-mbtoucr:
42556
42557
42558 cat >>confdefs.h <<_ACEOF
42559 #define GNULIB_UNISTR_U8_MBTOUCR 1
42560 _ACEOF
42561
42562
42563
42564
42565        if  { test "$HAVE_LIBUNISTRING" != yes \
42566     || {
42567
42568
42569
42570             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42571             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42572                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42573                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42574                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42575                          }
42576                     }
42577                }
42578
42579
42580
42581
42582        }
42583   }; then
42584   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE=
42585   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#'
42586 else
42587   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#'
42588   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE=
42589 fi
42590
42591
42592   # Code from module unistr/u8-prev:
42593
42594
42595        if  { test "$HAVE_LIBUNISTRING" != yes \
42596     || {
42597
42598
42599
42600             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42601             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42602                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42603                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42604                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42605                          }
42606                     }
42607                }
42608
42609
42610
42611
42612        }
42613   }; then
42614   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE=
42615   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE='#'
42616 else
42617   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE='#'
42618   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE=
42619 fi
42620
42621
42622   # Code from module unistr/u8-uctomb:
42623
42624
42625 cat >>confdefs.h <<_ACEOF
42626 #define GNULIB_UNISTR_U8_UCTOMB 1
42627 _ACEOF
42628
42629
42630
42631
42632        if  { test "$HAVE_LIBUNISTRING" != yes \
42633     || {
42634
42635
42636
42637             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42638             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42639                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42640                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42641                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42642                          }
42643                     }
42644                }
42645
42646
42647
42648
42649        }
42650   }; then
42651   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE=
42652   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#'
42653 else
42654   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#'
42655   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE=
42656 fi
42657
42658
42659   # Code from module unitypes:
42660
42661
42662       if  { test "$HAVE_LIBUNISTRING" != yes \
42663     || {
42664
42665
42666
42667             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42668             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42669                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42670                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42671                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42672                          }
42673                     }
42674                }
42675
42676
42677
42678
42679        }
42680   }; then
42681     LIBUNISTRING_UNITYPES_H='unitypes.h'
42682   else
42683     LIBUNISTRING_UNITYPES_H=
42684   fi
42685
42686
42687   # Code from module uniwidth/base:
42688
42689
42690       if  { test "$HAVE_LIBUNISTRING" != yes \
42691     || {
42692
42693
42694
42695             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42696             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42697                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42698                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42699                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42700                          }
42701                     }
42702                }
42703
42704
42705
42706
42707        }
42708   }; then
42709     LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
42710   else
42711     LIBUNISTRING_UNIWIDTH_H=
42712   fi
42713
42714
42715   # Code from module uniwidth/width:
42716
42717
42718        if  { test "$HAVE_LIBUNISTRING" != yes \
42719     || {
42720
42721
42722
42723             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42724             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42725                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42726                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42727                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42728                          }
42729                     }
42730                }
42731
42732
42733
42734
42735        }
42736   }; then
42737   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
42738   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
42739 else
42740   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
42741   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
42742 fi
42743
42744
42745   # Code from module unlocked-io:
42746
42747
42748 $as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h
42749
42750
42751
42752
42753
42754   :
42755
42756
42757
42758
42759
42760
42761   :
42762
42763
42764
42765
42766
42767
42768   :
42769
42770
42771
42772
42773
42774
42775   :
42776
42777
42778
42779
42780
42781
42782   :
42783
42784
42785
42786
42787
42788
42789   :
42790
42791
42792
42793
42794
42795
42796   :
42797
42798
42799
42800
42801
42802
42803   :
42804
42805
42806
42807
42808
42809
42810   :
42811
42812
42813
42814
42815
42816
42817   :
42818
42819
42820
42821
42822
42823
42824   :
42825
42826
42827
42828
42829
42830
42831   :
42832
42833
42834
42835
42836
42837
42838   :
42839
42840
42841
42842
42843
42844
42845   # Code from module unsetenv:
42846
42847
42848   for ac_func in unsetenv
42849 do :
42850   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
42851 if test "x$ac_cv_func_unsetenv" = x""yes; then :
42852   cat >>confdefs.h <<_ACEOF
42853 #define HAVE_UNSETENV 1
42854 _ACEOF
42855
42856 fi
42857 done
42858
42859   if test $ac_cv_func_unsetenv = no; then
42860     HAVE_UNSETENV=0
42861
42862
42863
42864
42865
42866
42867
42868
42869   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
42870
42871
42872
42873
42874   :
42875
42876
42877
42878
42879
42880
42881   else
42882         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
42883 $as_echo_n "checking for unsetenv() return type... " >&6; }
42884 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
42885   $as_echo_n "(cached) " >&6
42886 else
42887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42888 /* end confdefs.h.  */
42889 #include <stdlib.h>
42890 extern
42891 #ifdef __cplusplus
42892 "C"
42893 #endif
42894 #if defined(__STDC__) || defined(__cplusplus)
42895 int unsetenv (const char *name);
42896 #else
42897 int unsetenv();
42898 #endif
42899
42900 int
42901 main ()
42902 {
42903
42904   ;
42905   return 0;
42906 }
42907 _ACEOF
42908 if ac_fn_c_try_compile "$LINENO"; then :
42909   gt_cv_func_unsetenv_ret='int'
42910 else
42911   gt_cv_func_unsetenv_ret='void'
42912 fi
42913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42914 fi
42915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
42916 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
42917     if test $gt_cv_func_unsetenv_ret = 'void'; then
42918
42919 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
42920
42921       REPLACE_UNSETENV=1
42922
42923
42924
42925
42926
42927
42928
42929
42930   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
42931
42932     fi
42933
42934         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv works on duplicates" >&5
42935 $as_echo_n "checking whether unsetenv works on duplicates... " >&6; }
42936 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
42937   $as_echo_n "(cached) " >&6
42938 else
42939   if test "$cross_compiling" = yes; then :
42940   gl_cv_func_unsetenv_works="guessing no"
42941 else
42942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42943 /* end confdefs.h.  */
42944
42945        #include <stdlib.h>
42946
42947 int
42948 main ()
42949 {
42950
42951        char entry[] = "b=2";
42952        if (putenv ((char *) "a=1")) return 1;
42953        if (putenv (entry)) return 2;
42954        entry[0] = 'a';
42955        unsetenv ("a");
42956        if (getenv ("a")) return 3;
42957
42958   ;
42959   return 0;
42960 }
42961 _ACEOF
42962 if ac_fn_c_try_run "$LINENO"; then :
42963   gl_cv_func_unsetenv_works=yes
42964 else
42965   gl_cv_func_unsetenv_works=no
42966 fi
42967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42968   conftest.$ac_objext conftest.beam conftest.$ac_ext
42969 fi
42970
42971 fi
42972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
42973 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
42974     if test "$gl_cv_func_unsetenv_works" != yes; then
42975       REPLACE_UNSETENV=1
42976
42977
42978
42979
42980
42981
42982
42983
42984   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
42985
42986     fi
42987   fi
42988
42989
42990
42991
42992   GNULIB_UNSETENV=1
42993
42994
42995
42996 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
42997
42998
42999
43000   # Code from module unused-parameter:
43001   # Code from module vasnprintf:
43002
43003
43004   :
43005
43006
43007
43008
43009
43010   if test $ac_cv_func_vasnprintf = no; then
43011
43012
43013   :
43014
43015
43016
43017
43018
43019
43020
43021
43022
43023
43024
43025
43026
43027   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
43028
43029
43030
43031
43032
43033
43034
43035
43036
43037   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
43038
43039
43040
43041
43042
43043
43044
43045
43046
43047   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
43048
43049
43050
43051
43052
43053
43054
43055
43056
43057   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
43058
43059   if test $ac_cv_func_vasnprintf = yes; then
43060
43061 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
43062
43063   fi
43064
43065
43066
43067
43068
43069
43070
43071
43072
43073
43074   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
43075 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
43076
43077 else
43078
43079 $as_echo "#define ptrdiff_t long" >>confdefs.h
43080
43081
43082 fi
43083
43084
43085
43086
43087
43088
43089
43090   fi
43091
43092   # Code from module vasprintf:
43093
43094   for ac_func in vasprintf
43095 do :
43096   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
43097 if test "x$ac_cv_func_vasprintf" = x""yes; then :
43098   cat >>confdefs.h <<_ACEOF
43099 #define HAVE_VASPRINTF 1
43100 _ACEOF
43101
43102 fi
43103 done
43104
43105   if test $ac_cv_func_vasprintf = no; then
43106
43107
43108
43109
43110
43111
43112
43113
43114
43115   gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
43116
43117
43118
43119
43120
43121
43122
43123
43124
43125   gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
43126
43127
43128   if test $ac_cv_func_vasprintf = yes; then
43129     REPLACE_VASPRINTF=1
43130   else
43131     HAVE_VASPRINTF=0
43132   fi
43133
43134
43135
43136
43137
43138
43139
43140
43141   fi
43142
43143
43144
43145
43146   GNULIB_VASPRINTF=1
43147
43148
43149
43150 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
43151
43152
43153
43154
43155
43156   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
43157
43158
43159
43160   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
43161
43162   # Code from module verify:
43163   # Code from module vsnprintf:
43164
43165
43166   gl_cv_func_vsnprintf_usable=no
43167   for ac_func in vsnprintf
43168 do :
43169   ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
43170 if test "x$ac_cv_func_vsnprintf" = x""yes; then :
43171   cat >>confdefs.h <<_ACEOF
43172 #define HAVE_VSNPRINTF 1
43173 _ACEOF
43174
43175 fi
43176 done
43177
43178   if test $ac_cv_func_vsnprintf = yes; then
43179
43180
43181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
43182 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
43183 if test "${gl_cv_func_snprintf_size1+set}" = set; then :
43184   $as_echo_n "(cached) " >&6
43185 else
43186
43187       if test "$cross_compiling" = yes; then :
43188   gl_cv_func_snprintf_size1="guessing yes"
43189 else
43190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43191 /* end confdefs.h.  */
43192
43193 #include <stdio.h>
43194 int main()
43195 {
43196   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
43197   snprintf (buf, 1, "%d", 12345);
43198   return buf[1] != 'E';
43199 }
43200 _ACEOF
43201 if ac_fn_c_try_run "$LINENO"; then :
43202   gl_cv_func_snprintf_size1=yes
43203 else
43204   gl_cv_func_snprintf_size1=no
43205 fi
43206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43207   conftest.$ac_objext conftest.beam conftest.$ac_ext
43208 fi
43209
43210
43211 fi
43212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
43213 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
43214
43215     case "$gl_cv_func_snprintf_size1" in
43216       *yes)
43217         gl_cv_func_vsnprintf_usable=yes
43218         ;;
43219     esac
43220   fi
43221   if test $gl_cv_func_vsnprintf_usable = no; then
43222
43223
43224
43225
43226
43227
43228
43229
43230
43231
43232   gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
43233
43234   if test $ac_cv_func_vsnprintf = yes; then
43235     REPLACE_VSNPRINTF=1
43236   fi
43237   :
43238
43239   fi
43240
43241   :
43242
43243
43244
43245
43246
43247   if test $ac_cv_have_decl_vsnprintf = no; then
43248     HAVE_DECL_VSNPRINTF=0
43249   fi
43250
43251
43252
43253
43254   GNULIB_VSNPRINTF=1
43255
43256
43257
43258 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
43259
43260
43261
43262   # Code from module wait-process:
43263
43264
43265
43266   for ac_func in waitid
43267 do :
43268   ac_fn_c_check_func "$LINENO" "waitid" "ac_cv_func_waitid"
43269 if test "x$ac_cv_func_waitid" = x""yes; then :
43270   cat >>confdefs.h <<_ACEOF
43271 #define HAVE_WAITID 1
43272 _ACEOF
43273
43274 fi
43275 done
43276
43277
43278
43279 for ac_func in waitpid
43280 do :
43281   ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
43282 if test "x$ac_cv_func_waitpid" = x""yes; then :
43283   cat >>confdefs.h <<_ACEOF
43284 #define HAVE_WAITPID 1
43285 _ACEOF
43286
43287 fi
43288 done
43289
43290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union wait" >&5
43291 $as_echo_n "checking for union wait... " >&6; }
43292 if test "${gt_cv_union_wait+set}" = set; then :
43293   $as_echo_n "(cached) " >&6
43294 else
43295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43296 /* end confdefs.h.  */
43297 #include <sys/types.h>
43298 #include <sys/wait.h>
43299 int
43300 main ()
43301 {
43302 union wait status; int pid; pid = wait (&status);
43303 #ifdef WEXITSTATUS
43304 /* Some POSIXoid systems have both the new-style macros and the old
43305    union wait type, and they do not work together.  If union wait
43306    conflicts with WEXITSTATUS et al, we don't want to use it at all.  */
43307 if (WEXITSTATUS (status) != 0) pid = -1;
43308 #ifdef WTERMSIG
43309 /* If we have WEXITSTATUS and WTERMSIG, just use them on ints.  */
43310 -- blow chunks here --
43311 #endif
43312 #endif
43313 #ifdef HAVE_WAITPID
43314 /* Make sure union wait works with waitpid.  */
43315 pid = waitpid (-1, &status, 0);
43316 #endif
43317
43318   ;
43319   return 0;
43320 }
43321 _ACEOF
43322 if ac_fn_c_try_link "$LINENO"; then :
43323   gt_cv_union_wait=yes
43324 else
43325   gt_cv_union_wait=no
43326 fi
43327 rm -f core conftest.err conftest.$ac_objext \
43328     conftest$ac_exeext conftest.$ac_ext
43329 fi
43330
43331 if test "$gt_cv_union_wait" = yes; then
43332
43333 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
43334
43335 fi
43336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_union_wait" >&5
43337 $as_echo "$gt_cv_union_wait" >&6; }
43338
43339   # Code from module warn-on-use:
43340   # Code from module wchar:
43341
43342
43343
43344
43345   :
43346
43347
43348
43349
43350
43351
43352
43353
43354
43355   :
43356
43357
43358
43359
43360
43361
43362
43363      if test $gl_cv_have_include_next = yes; then
43364        gl_cv_next_wchar_h='<'wchar.h'>'
43365      else
43366        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
43367 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
43368 if test "${gl_cv_next_wchar_h+set}" = set; then :
43369   $as_echo_n "(cached) " >&6
43370 else
43371
43372           if test $ac_cv_header_wchar_h = yes; then
43373             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43374 /* end confdefs.h.  */
43375 #include <wchar.h>
43376
43377 _ACEOF
43378                                                                                                 case "$host_os" in
43379               aix*) gl_absname_cpp="$ac_cpp -C" ;;
43380               *)    gl_absname_cpp="$ac_cpp" ;;
43381             esac
43382                                                 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43383                sed -n '\#/wchar.h#{
43384                  s#.*"\(.*/wchar.h\)".*#\1#
43385                  s#^/[^/]#//&#
43386                  p
43387                  q
43388                }'`'"'
43389           else
43390             gl_cv_next_wchar_h='<'wchar.h'>'
43391           fi
43392
43393 fi
43394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
43395 $as_echo "$gl_cv_next_wchar_h" >&6; }
43396      fi
43397      NEXT_WCHAR_H=$gl_cv_next_wchar_h
43398
43399      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43400        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43401        gl_next_as_first_directive='<'wchar.h'>'
43402      else
43403        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43404        gl_next_as_first_directive=$gl_cv_next_wchar_h
43405      fi
43406      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
43407
43408
43409
43410   if test $ac_cv_header_wchar_h = yes; then
43411     HAVE_WCHAR_H=1
43412   else
43413     HAVE_WCHAR_H=0
43414   fi
43415
43416
43417
43418   if test $gt_cv_c_wint_t = yes; then
43419     HAVE_WINT_T=1
43420   else
43421     HAVE_WINT_T=0
43422   fi
43423
43424
43425
43426     for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb     wcsrtombs wcsnrtombs wcwidth; do
43427     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
43428     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
43429 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
43430 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
43431   $as_echo_n "(cached) " >&6
43432 else
43433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43434 /* end confdefs.h.  */
43435
43436 /* Some systems require additional headers.  */
43437 #ifndef __GLIBC__
43438 # include <stddef.h>
43439 # include <stdio.h>
43440 # include <time.h>
43441 #endif
43442 #include <wchar.h>
43443
43444 int
43445 main ()
43446 {
43447 #undef $gl_func
43448   (void) $gl_func;
43449   ;
43450   return 0;
43451 }
43452 _ACEOF
43453 if ac_fn_c_try_compile "$LINENO"; then :
43454   eval "$as_gl_Symbol=yes"
43455 else
43456   eval "$as_gl_Symbol=no"
43457 fi
43458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43459 fi
43460 eval ac_res=\$$as_gl_Symbol
43461                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
43462 $as_echo "$ac_res" >&6; }
43463      eval as_val=\$$as_gl_Symbol
43464    if test "x$as_val" = x""yes; then :
43465   cat >>confdefs.h <<_ACEOF
43466 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
43467 _ACEOF
43468
43469                      eval ac_cv_have_decl_$gl_func=yes
43470 fi
43471       done
43472
43473
43474   # Code from module wctype:
43475
43476
43477
43478
43479   :
43480
43481
43482
43483
43484
43485   if test $ac_cv_func_iswcntrl = yes; then
43486     HAVE_ISWCNTRL=1
43487   else
43488     HAVE_ISWCNTRL=0
43489   fi
43490
43491
43492   :
43493
43494
43495
43496
43497
43498   if test $ac_cv_func_iswblank = yes; then
43499     HAVE_ISWBLANK=1
43500   else
43501     HAVE_ISWBLANK=0
43502   fi
43503
43504
43505   :
43506
43507
43508
43509
43510
43511
43512
43513
43514   if test $gt_cv_c_wint_t = yes; then
43515     HAVE_WINT_T=1
43516   else
43517     HAVE_WINT_T=0
43518   fi
43519
43520
43521   if test $ac_cv_header_wctype_h = yes; then
43522     if test $ac_cv_func_iswcntrl = yes; then
43523                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
43524 $as_echo_n "checking whether iswcntrl works... " >&6; }
43525 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
43526   $as_echo_n "(cached) " >&6
43527 else
43528
43529           if test "$cross_compiling" = yes; then :
43530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43531 /* end confdefs.h.  */
43532 #include <stdlib.h>
43533                           #if __GNU_LIBRARY__ == 1
43534                           Linux libc5 i18n is broken.
43535                           #endif
43536 int
43537 main ()
43538 {
43539
43540   ;
43541   return 0;
43542 }
43543 _ACEOF
43544 if ac_fn_c_try_compile "$LINENO"; then :
43545   gl_cv_func_iswcntrl_works=yes
43546 else
43547   gl_cv_func_iswcntrl_works=no
43548 fi
43549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43550
43551 else
43552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43553 /* end confdefs.h.  */
43554
43555                             #include <stddef.h>
43556                             #include <stdio.h>
43557                             #include <time.h>
43558                             #include <wchar.h>
43559                             #include <wctype.h>
43560                             int main () { return iswprint ('x') == 0; }
43561 _ACEOF
43562 if ac_fn_c_try_run "$LINENO"; then :
43563   gl_cv_func_iswcntrl_works=yes
43564 else
43565   gl_cv_func_iswcntrl_works=no
43566 fi
43567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43568   conftest.$ac_objext conftest.beam conftest.$ac_ext
43569 fi
43570
43571
43572 fi
43573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
43574 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
43575     fi
43576
43577
43578
43579
43580   :
43581
43582
43583
43584
43585
43586
43587
43588      if test $gl_cv_have_include_next = yes; then
43589        gl_cv_next_wctype_h='<'wctype.h'>'
43590      else
43591        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
43592 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
43593 if test "${gl_cv_next_wctype_h+set}" = set; then :
43594   $as_echo_n "(cached) " >&6
43595 else
43596
43597           if test $ac_cv_header_wctype_h = yes; then
43598             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43599 /* end confdefs.h.  */
43600 #include <wctype.h>
43601
43602 _ACEOF
43603                                                                                                 case "$host_os" in
43604               aix*) gl_absname_cpp="$ac_cpp -C" ;;
43605               *)    gl_absname_cpp="$ac_cpp" ;;
43606             esac
43607                                                 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43608                sed -n '\#/wctype.h#{
43609                  s#.*"\(.*/wctype.h\)".*#\1#
43610                  s#^/[^/]#//&#
43611                  p
43612                  q
43613                }'`'"'
43614           else
43615             gl_cv_next_wctype_h='<'wctype.h'>'
43616           fi
43617
43618 fi
43619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
43620 $as_echo "$gl_cv_next_wctype_h" >&6; }
43621      fi
43622      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
43623
43624      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43625        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43626        gl_next_as_first_directive='<'wctype.h'>'
43627      else
43628        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43629        gl_next_as_first_directive=$gl_cv_next_wctype_h
43630      fi
43631      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
43632
43633
43634
43635     HAVE_WCTYPE_H=1
43636   else
43637     HAVE_WCTYPE_H=0
43638   fi
43639
43640
43641   if test "$gl_cv_func_iswcntrl_works" = no; then
43642     REPLACE_ISWCNTRL=1
43643   else
43644     REPLACE_ISWCNTRL=0
43645   fi
43646
43647
43648   # Code from module wcwidth:
43649
43650
43651
43652
43653
43654
43655
43656
43657
43658   :
43659
43660
43661
43662
43663
43664
43665   :
43666
43667
43668
43669
43670
43671
43672   ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
43673 /* AIX 3.2.5 declares wcwidth in <string.h>. */
43674 #include <string.h>
43675 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
43676    <wchar.h>.
43677    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
43678    before <wchar.h>.  */
43679 #include <stddef.h>
43680 #include <stdio.h>
43681 #include <time.h>
43682 #include <wchar.h>
43683
43684 "
43685 if test "x$ac_cv_have_decl_wcwidth" = x""yes; then :
43686   ac_have_decl=1
43687 else
43688   ac_have_decl=0
43689 fi
43690
43691 cat >>confdefs.h <<_ACEOF
43692 #define HAVE_DECL_WCWIDTH $ac_have_decl
43693 _ACEOF
43694
43695   if test $ac_cv_have_decl_wcwidth != yes; then
43696     HAVE_DECL_WCWIDTH=0
43697   fi
43698
43699   if test $ac_cv_func_wcwidth = yes; then
43700                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
43701 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
43702 if test "${gl_cv_func_wcwidth_works+set}" = set; then :
43703   $as_echo_n "(cached) " >&6
43704 else
43705
43706         if test "$cross_compiling" = yes; then :
43707
43708            case "$host_os" in
43709                      # Guess yes on glibc systems.
43710              *-gnu*) gl_cv_func_wcwidth_works="guessing yes";;
43711              *)      gl_cv_func_wcwidth_works="guessing no";;
43712            esac
43713
43714 else
43715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43716 /* end confdefs.h.  */
43717
43718 #include <locale.h>
43719 /* AIX 3.2.5 declares wcwidth in <string.h>. */
43720 #include <string.h>
43721 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
43722    <wchar.h>.
43723    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
43724    before <wchar.h>.  */
43725 #include <stddef.h>
43726 #include <stdio.h>
43727 #include <time.h>
43728 #include <wchar.h>
43729 #if !HAVE_DECL_WCWIDTH
43730 extern
43731 # ifdef __cplusplus
43732 "C"
43733 # endif
43734 int wcwidth (int);
43735 #endif
43736 int main ()
43737 {
43738   if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
43739     if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
43740       return 1;
43741   return 0;
43742 }
43743 _ACEOF
43744 if ac_fn_c_try_run "$LINENO"; then :
43745   gl_cv_func_wcwidth_works=yes
43746 else
43747   gl_cv_func_wcwidth_works=no
43748 fi
43749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43750   conftest.$ac_objext conftest.beam conftest.$ac_ext
43751 fi
43752
43753
43754 fi
43755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
43756 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
43757     case "$gl_cv_func_wcwidth_works" in
43758       *yes) ;;
43759       *no) REPLACE_WCWIDTH=1 ;;
43760     esac
43761   fi
43762   if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1; then
43763
43764
43765
43766
43767
43768
43769
43770
43771   gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
43772
43773   fi
43774   if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1 \
43775      || test $HAVE_DECL_WCWIDTH = 0; then
43776
43777     :
43778
43779   fi
43780
43781
43782
43783
43784   GNULIB_WCWIDTH=1
43785
43786
43787
43788 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
43789
43790
43791
43792   # Code from module write:
43793
43794
43795
43796
43797
43798
43799     if test $gl_cv_header_signal_h_SIGPIPE != yes; then
43800       REPLACE_WRITE=1
43801
43802
43803
43804
43805
43806
43807
43808
43809   gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
43810
43811     fi
43812
43813
43814
43815
43816
43817   GNULIB_WRITE=1
43818
43819
43820
43821 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
43822
43823
43824
43825   # Code from module xalloc:
43826   # Code from module xalloc-die:
43827   # Code from module xconcat-filename:
43828   # Code from module xerror:
43829   # Code from module xlist:
43830
43831
43832
43833   # Code from module xmalloca:
43834   # Code from module xreadlink:
43835   # Code from module xsetenv:
43836   # Code from module xsize:
43837
43838
43839
43840   for ac_header in stdint.h
43841 do :
43842   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
43843 if test "x$ac_cv_header_stdint_h" = x""yes; then :
43844   cat >>confdefs.h <<_ACEOF
43845 #define HAVE_STDINT_H 1
43846 _ACEOF
43847
43848 fi
43849
43850 done
43851
43852
43853   # Code from module xstriconv:
43854   # Code from module xstriconveh:
43855   # Code from module xvasprintf:
43856
43857
43858
43859
43860
43861   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
43862
43863   # End of code from modules
43864
43865
43866
43867
43868
43869
43870
43871
43872
43873   gltests_libdeps=
43874   gltests_ltlibdeps=
43875
43876
43877
43878
43879
43880
43881
43882
43883
43884   gl_source_base='gnulib-tests'
43885   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
43886
43887   gl_module_indicator_condition=$gltests_WITNESS
43888
43889
43890   :
43891
43892
43893
43894
43895
43896
43897
43898
43899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
43900 $as_echo_n "checking for a traditional french locale... " >&6; }
43901 if test "${gt_cv_locale_fr+set}" = set; then :
43902   $as_echo_n "(cached) " >&6
43903 else
43904
43905     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43906 /* end confdefs.h.  */
43907
43908 #include <locale.h>
43909 #include <time.h>
43910 #if HAVE_LANGINFO_CODESET
43911 # include <langinfo.h>
43912 #endif
43913 #include <stdlib.h>
43914 #include <string.h>
43915 struct tm t;
43916 char buf[16];
43917 int main () {
43918   /* Check whether the given locale name is recognized by the system.  */
43919   if (setlocale (LC_ALL, "") == NULL) return 1;
43920   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
43921      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
43922      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
43923      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
43924      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
43925      some unit tests fail.  */
43926 #if HAVE_LANGINFO_CODESET
43927   {
43928     const char *cs = nl_langinfo (CODESET);
43929     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
43930       return 1;
43931   }
43932 #endif
43933 #ifdef __CYGWIN__
43934   /* On Cygwin, avoid locale names without encoding suffix, because the
43935      locale_charset() function relies on the encoding suffix.  Note that
43936      LC_ALL is set on the command line.  */
43937   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
43938 #endif
43939   /* Check whether in the abbreviation of the second month, the second
43940      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
43941      one byte long. This excludes the UTF-8 encoding.  */
43942   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
43943   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
43944   /* Check whether the decimal separator is a comma.
43945      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
43946      are nl_langinfo(RADIXCHAR) are both ".".  */
43947   if (localeconv () ->decimal_point[0] != ',') return 1;
43948   return 0;
43949 }
43950
43951 _ACEOF
43952     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
43953   (eval $ac_link) 2>&5
43954   ac_status=$?
43955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43956   test $ac_status = 0; } && test -s conftest$ac_exeext; then
43957       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
43958       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
43959       # configure script would override the LC_ALL setting. Likewise for
43960       # LC_CTYPE, which is also set at the beginning of the configure script.
43961       # Test for the usual locale name.
43962       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
43963         gt_cv_locale_fr=fr_FR
43964       else
43965         # Test for the locale name with explicit encoding suffix.
43966         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
43967           gt_cv_locale_fr=fr_FR.ISO-8859-1
43968         else
43969           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
43970           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
43971             gt_cv_locale_fr=fr_FR.ISO8859-1
43972           else
43973             # Test for the HP-UX locale name.
43974             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
43975               gt_cv_locale_fr=fr_FR.iso88591
43976             else
43977               # Test for the Solaris 7 locale name.
43978               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
43979                 gt_cv_locale_fr=fr
43980               else
43981                 # None found.
43982                 gt_cv_locale_fr=none
43983               fi
43984             fi
43985           fi
43986         fi
43987       fi
43988     fi
43989     rm -fr conftest*
43990
43991 fi
43992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
43993 $as_echo "$gt_cv_locale_fr" >&6; }
43994   LOCALE_FR=$gt_cv_locale_fr
43995
43996
43997
43998
43999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a turkish Unicode locale" >&5
44000 $as_echo_n "checking for a turkish Unicode locale... " >&6; }
44001 if test "${gt_cv_locale_tr_utf8+set}" = set; then :
44002   $as_echo_n "(cached) " >&6
44003 else
44004
44005     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44006 /* end confdefs.h.  */
44007
44008 #include <locale.h>
44009 #include <time.h>
44010 #if HAVE_LANGINFO_CODESET
44011 # include <langinfo.h>
44012 #endif
44013 #include <stdlib.h>
44014 #include <string.h>
44015 struct tm t;
44016 char buf[16];
44017 int main () {
44018   /* On BeOS, locales are not implemented in libc.  Rather, libintl
44019      imitates locale dependent behaviour by looking at the environment
44020      variables, and all locales use the UTF-8 encoding.  But BeOS does not
44021      implement the Turkish upper-/lowercase mappings.  Therefore, let this
44022      program return 1 on BeOS.  */
44023   /* Check whether the given locale name is recognized by the system.  */
44024   if (setlocale (LC_ALL, "") == NULL) return 1;
44025   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
44026      On MacOS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET)
44027      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
44028      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
44029      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
44030      some unit tests fail.  */
44031 #if HAVE_LANGINFO_CODESET
44032   {
44033     const char *cs = nl_langinfo (CODESET);
44034     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
44035       return 1;
44036   }
44037 #endif
44038 #ifdef __CYGWIN__
44039   /* On Cygwin, avoid locale names without encoding suffix, because the
44040      locale_charset() function relies on the encoding suffix.  Note that
44041      LC_ALL is set on the command line.  */
44042   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
44043 #endif
44044   /* Check whether in the abbreviation of the eighth month, the second
44045      character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is
44046      two bytes long, with UTF-8 encoding.  */
44047   t.tm_year = 1992 - 1900; t.tm_mon = 8 - 1; t.tm_mday = 19;
44048   if (strftime (buf, sizeof (buf), "%b", &t) < 4
44049       || buf[1] != (char) 0xc4 || buf[2] != (char) 0x9f)
44050     return 1;
44051   /* Check whether the upper-/lowercase mappings are as expected for
44052      Turkish.  */
44053   if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i'
44054       || towupper(0x0131) != 'I' || towlower ('I') != 0x0131)
44055     return 1;
44056   return 0;
44057 }
44058
44059 _ACEOF
44060     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
44061   (eval $ac_link) 2>&5
44062   ac_status=$?
44063   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44064   test $ac_status = 0; } && test -s conftest$ac_exeext; then
44065       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
44066       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
44067       # configure script would override the LC_ALL setting. Likewise for
44068       # LC_CTYPE, which is also set at the beginning of the configure script.
44069       # Test for the usual locale name.
44070       if (LC_ALL=tr_TR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44071         gt_cv_locale_tr_utf8=tr_TR
44072       else
44073         # Test for the locale name with explicit encoding suffix.
44074         if (LC_ALL=tr_TR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44075           gt_cv_locale_tr_utf8=tr_TR.UTF-8
44076         else
44077           # Test for the Solaris 7 locale name.
44078           if (LC_ALL=tr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44079             gt_cv_locale_tr_utf8=tr.UTF-8
44080           else
44081             # None found.
44082             gt_cv_locale_tr_utf8=none
44083           fi
44084         fi
44085       fi
44086     else
44087       gt_cv_locale_tr_utf8=none
44088     fi
44089     rm -fr conftest*
44090
44091 fi
44092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_tr_utf8" >&5
44093 $as_echo "$gt_cv_locale_tr_utf8" >&6; }
44094   LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8
44095
44096
44097
44098
44099
44100   for ac_func in getpagesize
44101 do :
44102   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
44103 if test "x$ac_cv_func_getpagesize" = x""yes; then :
44104   cat >>confdefs.h <<_ACEOF
44105 #define HAVE_GETPAGESIZE 1
44106 _ACEOF
44107
44108 fi
44109 done
44110
44111   if test $ac_cv_func_getpagesize = no; then
44112     HAVE_GETPAGESIZE=0
44113     for ac_header in OS.h
44114 do :
44115   ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
44116 if test "x$ac_cv_header_OS_h" = x""yes; then :
44117   cat >>confdefs.h <<_ACEOF
44118 #define HAVE_OS_H 1
44119 _ACEOF
44120
44121 fi
44122
44123 done
44124
44125     if test $ac_cv_header_OS_h = yes; then
44126       HAVE_OS_H=1
44127     fi
44128     for ac_header in sys/param.h
44129 do :
44130   ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
44131 if test "x$ac_cv_header_sys_param_h" = x""yes; then :
44132   cat >>confdefs.h <<_ACEOF
44133 #define HAVE_SYS_PARAM_H 1
44134 _ACEOF
44135
44136 fi
44137
44138 done
44139
44140     if test $ac_cv_header_sys_param_h = yes; then
44141       HAVE_SYS_PARAM_H=1
44142     fi
44143   fi
44144   case "$host_os" in
44145     mingw*)
44146       REPLACE_GETPAGESIZE=1
44147
44148
44149
44150
44151
44152
44153
44154
44155   gltests_LIBOBJS="$gltests_LIBOBJS getpagesize.$ac_objext"
44156
44157       ;;
44158   esac
44159       ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
44160 if test "x$ac_cv_have_decl_getpagesize" = x""yes; then :
44161
44162 else
44163   HAVE_DECL_GETPAGESIZE=0
44164 fi
44165
44166
44167
44168
44169
44170   GNULIB_GETPAGESIZE=$gl_module_indicator_condition
44171
44172
44173
44174 $as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
44175
44176
44177
44178
44179
44180   :
44181
44182
44183
44184
44185
44186
44187   :
44188
44189
44190
44191
44192
44193
44194
44195
44196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
44197 $as_echo_n "checking for a traditional french locale... " >&6; }
44198 if test "${gt_cv_locale_fr+set}" = set; then :
44199   $as_echo_n "(cached) " >&6
44200 else
44201
44202     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44203 /* end confdefs.h.  */
44204
44205 #include <locale.h>
44206 #include <time.h>
44207 #if HAVE_LANGINFO_CODESET
44208 # include <langinfo.h>
44209 #endif
44210 #include <stdlib.h>
44211 #include <string.h>
44212 struct tm t;
44213 char buf[16];
44214 int main () {
44215   /* Check whether the given locale name is recognized by the system.  */
44216   if (setlocale (LC_ALL, "") == NULL) return 1;
44217   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
44218      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
44219      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
44220      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
44221      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
44222      some unit tests fail.  */
44223 #if HAVE_LANGINFO_CODESET
44224   {
44225     const char *cs = nl_langinfo (CODESET);
44226     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
44227       return 1;
44228   }
44229 #endif
44230 #ifdef __CYGWIN__
44231   /* On Cygwin, avoid locale names without encoding suffix, because the
44232      locale_charset() function relies on the encoding suffix.  Note that
44233      LC_ALL is set on the command line.  */
44234   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
44235 #endif
44236   /* Check whether in the abbreviation of the second month, the second
44237      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
44238      one byte long. This excludes the UTF-8 encoding.  */
44239   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
44240   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
44241   /* Check whether the decimal separator is a comma.
44242      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
44243      are nl_langinfo(RADIXCHAR) are both ".".  */
44244   if (localeconv () ->decimal_point[0] != ',') return 1;
44245   return 0;
44246 }
44247
44248 _ACEOF
44249     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
44250   (eval $ac_link) 2>&5
44251   ac_status=$?
44252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44253   test $ac_status = 0; } && test -s conftest$ac_exeext; then
44254       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
44255       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
44256       # configure script would override the LC_ALL setting. Likewise for
44257       # LC_CTYPE, which is also set at the beginning of the configure script.
44258       # Test for the usual locale name.
44259       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44260         gt_cv_locale_fr=fr_FR
44261       else
44262         # Test for the locale name with explicit encoding suffix.
44263         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44264           gt_cv_locale_fr=fr_FR.ISO-8859-1
44265         else
44266           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
44267           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44268             gt_cv_locale_fr=fr_FR.ISO8859-1
44269           else
44270             # Test for the HP-UX locale name.
44271             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44272               gt_cv_locale_fr=fr_FR.iso88591
44273             else
44274               # Test for the Solaris 7 locale name.
44275               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44276                 gt_cv_locale_fr=fr
44277               else
44278                 # None found.
44279                 gt_cv_locale_fr=none
44280               fi
44281             fi
44282           fi
44283         fi
44284       fi
44285     fi
44286     rm -fr conftest*
44287
44288 fi
44289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
44290 $as_echo "$gt_cv_locale_fr" >&6; }
44291   LOCALE_FR=$gt_cv_locale_fr
44292
44293
44294
44295
44296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
44297 $as_echo_n "checking for a french Unicode locale... " >&6; }
44298 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
44299   $as_echo_n "(cached) " >&6
44300 else
44301
44302     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44303 /* end confdefs.h.  */
44304
44305 #include <locale.h>
44306 #include <time.h>
44307 #if HAVE_LANGINFO_CODESET
44308 # include <langinfo.h>
44309 #endif
44310 #include <stdlib.h>
44311 #include <string.h>
44312 struct tm t;
44313 char buf[16];
44314 int main () {
44315   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
44316      imitates locale dependent behaviour by looking at the environment
44317      variables, and all locales use the UTF-8 encoding.  */
44318 #if !(defined __BEOS__ || defined __HAIKU__)
44319   /* Check whether the given locale name is recognized by the system.  */
44320   if (setlocale (LC_ALL, "") == NULL) return 1;
44321   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
44322      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
44323      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
44324      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
44325      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
44326      some unit tests fail.  */
44327 # if HAVE_LANGINFO_CODESET
44328   {
44329     const char *cs = nl_langinfo (CODESET);
44330     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
44331       return 1;
44332   }
44333 # endif
44334 # ifdef __CYGWIN__
44335   /* On Cygwin, avoid locale names without encoding suffix, because the
44336      locale_charset() function relies on the encoding suffix.  Note that
44337      LC_ALL is set on the command line.  */
44338   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
44339 # endif
44340   /* Check whether in the abbreviation of the second month, the second
44341      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
44342      two bytes long, with UTF-8 encoding.  */
44343   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
44344   if (strftime (buf, sizeof (buf), "%b", &t) < 4
44345       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
44346     return 1;
44347 #endif
44348   /* Check whether the decimal separator is a comma.
44349      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
44350      are nl_langinfo(RADIXCHAR) are both ".".  */
44351   if (localeconv () ->decimal_point[0] != ',') return 1;
44352   return 0;
44353 }
44354
44355 _ACEOF
44356     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
44357   (eval $ac_link) 2>&5
44358   ac_status=$?
44359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44360   test $ac_status = 0; } && test -s conftest$ac_exeext; then
44361       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
44362       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
44363       # configure script would override the LC_ALL setting. Likewise for
44364       # LC_CTYPE, which is also set at the beginning of the configure script.
44365       # Test for the usual locale name.
44366       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44367         gt_cv_locale_fr_utf8=fr_FR
44368       else
44369         # Test for the locale name with explicit encoding suffix.
44370         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44371           gt_cv_locale_fr_utf8=fr_FR.UTF-8
44372         else
44373           # Test for the Solaris 7 locale name.
44374           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44375             gt_cv_locale_fr_utf8=fr.UTF-8
44376           else
44377             # None found.
44378             gt_cv_locale_fr_utf8=none
44379           fi
44380         fi
44381       fi
44382     fi
44383     rm -fr conftest*
44384
44385 fi
44386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
44387 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
44388   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
44389
44390
44391
44392
44393
44394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
44395 $as_echo_n "checking for a traditional japanese locale... " >&6; }
44396 if test "${gt_cv_locale_ja+set}" = set; then :
44397   $as_echo_n "(cached) " >&6
44398 else
44399
44400     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44401 /* end confdefs.h.  */
44402
44403 #include <locale.h>
44404 #include <time.h>
44405 #if HAVE_LANGINFO_CODESET
44406 # include <langinfo.h>
44407 #endif
44408 #include <stdlib.h>
44409 #include <string.h>
44410 struct tm t;
44411 char buf[16];
44412 int main ()
44413 {
44414   const char *p;
44415   /* Check whether the given locale name is recognized by the system.  */
44416   if (setlocale (LC_ALL, "") == NULL) return 1;
44417   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
44418      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
44419      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
44420      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
44421      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
44422      some unit tests fail.  */
44423 #if HAVE_LANGINFO_CODESET
44424   {
44425     const char *cs = nl_langinfo (CODESET);
44426     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
44427       return 1;
44428   }
44429 #endif
44430 #ifdef __CYGWIN__
44431   /* On Cygwin, avoid locale names without encoding suffix, because the
44432      locale_charset() function relies on the encoding suffix.  Note that
44433      LC_ALL is set on the command line.  */
44434   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
44435 #endif
44436   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
44437      on Cygwin 1.5.x.  */
44438   if (MB_CUR_MAX == 1)
44439     return 1;
44440   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
44441      This excludes the UTF-8 encoding.  */
44442   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
44443   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
44444   for (p = buf; *p != '\0'; p++)
44445     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
44446       return 1;
44447   return 0;
44448 }
44449
44450 _ACEOF
44451     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
44452   (eval $ac_link) 2>&5
44453   ac_status=$?
44454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44455   test $ac_status = 0; } && test -s conftest$ac_exeext; then
44456       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
44457       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
44458       # configure script would override the LC_ALL setting. Likewise for
44459       # LC_CTYPE, which is also set at the beginning of the configure script.
44460       # Test for the AIX locale name.
44461       if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44462         gt_cv_locale_ja=ja_JP
44463       else
44464         # Test for the locale name with explicit encoding suffix.
44465         if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44466           gt_cv_locale_ja=ja_JP.EUC-JP
44467         else
44468           # Test for the HP-UX, OSF/1, NetBSD locale name.
44469           if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44470             gt_cv_locale_ja=ja_JP.eucJP
44471           else
44472             # Test for the IRIX, FreeBSD locale name.
44473             if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44474               gt_cv_locale_ja=ja_JP.EUC
44475             else
44476               # Test for the Solaris 7 locale name.
44477               if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44478                 gt_cv_locale_ja=ja
44479               else
44480                 # Special test for NetBSD 1.6.
44481                 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
44482                   gt_cv_locale_ja=ja_JP.eucJP
44483                 else
44484                   # None found.
44485                   gt_cv_locale_ja=none
44486                 fi
44487               fi
44488             fi
44489           fi
44490         fi
44491       fi
44492     fi
44493     rm -fr conftest*
44494
44495 fi
44496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
44497 $as_echo "$gt_cv_locale_ja" >&6; }
44498   LOCALE_JA=$gt_cv_locale_ja
44499
44500
44501
44502
44503
44504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
44505 $as_echo_n "checking for a transitional chinese locale... " >&6; }
44506 if test "${gt_cv_locale_zh_CN+set}" = set; then :
44507   $as_echo_n "(cached) " >&6
44508 else
44509
44510     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44511 /* end confdefs.h.  */
44512
44513 #include <locale.h>
44514 #include <stdlib.h>
44515 #include <time.h>
44516 #if HAVE_LANGINFO_CODESET
44517 # include <langinfo.h>
44518 #endif
44519 #include <stdlib.h>
44520 #include <string.h>
44521 struct tm t;
44522 char buf[16];
44523 int main ()
44524 {
44525   const char *p;
44526   /* Check whether the given locale name is recognized by the system.  */
44527   if (setlocale (LC_ALL, "") == NULL) return 1;
44528   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
44529      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
44530      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
44531      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
44532      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
44533      some unit tests fail.  */
44534 #if HAVE_LANGINFO_CODESET
44535   {
44536     const char *cs = nl_langinfo (CODESET);
44537     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
44538       return 1;
44539   }
44540 #endif
44541 #ifdef __CYGWIN__
44542   /* On Cygwin, avoid locale names without encoding suffix, because the
44543      locale_charset() function relies on the encoding suffix.  Note that
44544      LC_ALL is set on the command line.  */
44545   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
44546 #endif
44547   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
44548      This excludes the UTF-8 encoding.  */
44549   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
44550   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
44551   for (p = buf; *p != '\0'; p++)
44552     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
44553       return 1;
44554   /* Check whether a typical GB18030 multibyte sequence is recognized as a
44555      single wide character.  This excludes the GB2312 and GBK encodings.  */
44556   if (mblen ("\203\062\332\066", 5) != 4)
44557     return 1;
44558   return 0;
44559 }
44560
44561 _ACEOF
44562     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
44563   (eval $ac_link) 2>&5
44564   ac_status=$?
44565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44566   test $ac_status = 0; } && test -s conftest$ac_exeext; then
44567       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
44568       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
44569       # configure script would override the LC_ALL setting. Likewise for
44570       # LC_CTYPE, which is also set at the beginning of the configure script.
44571       # Test for the locale name without encoding suffix.
44572       if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44573         gt_cv_locale_zh_CN=zh_CN
44574       else
44575         # Test for the locale name with explicit encoding suffix.
44576         if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44577           gt_cv_locale_zh_CN=zh_CN.GB18030
44578         else
44579           # None found.
44580           gt_cv_locale_zh_CN=none
44581         fi
44582       fi
44583     else
44584       # If there was a link error, due to mblen(), the system is so old that
44585       # it certainly doesn't have a chinese locale.
44586       gt_cv_locale_zh_CN=none
44587     fi
44588     rm -fr conftest*
44589
44590 fi
44591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
44592 $as_echo "$gt_cv_locale_zh_CN" >&6; }
44593   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
44594
44595
44596
44597
44598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
44599 $as_echo_n "checking for a french Unicode locale... " >&6; }
44600 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
44601   $as_echo_n "(cached) " >&6
44602 else
44603
44604     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44605 /* end confdefs.h.  */
44606
44607 #include <locale.h>
44608 #include <time.h>
44609 #if HAVE_LANGINFO_CODESET
44610 # include <langinfo.h>
44611 #endif
44612 #include <stdlib.h>
44613 #include <string.h>
44614 struct tm t;
44615 char buf[16];
44616 int main () {
44617   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
44618      imitates locale dependent behaviour by looking at the environment
44619      variables, and all locales use the UTF-8 encoding.  */
44620 #if !(defined __BEOS__ || defined __HAIKU__)
44621   /* Check whether the given locale name is recognized by the system.  */
44622   if (setlocale (LC_ALL, "") == NULL) return 1;
44623   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
44624      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
44625      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
44626      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
44627      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
44628      some unit tests fail.  */
44629 # if HAVE_LANGINFO_CODESET
44630   {
44631     const char *cs = nl_langinfo (CODESET);
44632     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
44633       return 1;
44634   }
44635 # endif
44636 # ifdef __CYGWIN__
44637   /* On Cygwin, avoid locale names without encoding suffix, because the
44638      locale_charset() function relies on the encoding suffix.  Note that
44639      LC_ALL is set on the command line.  */
44640   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
44641 # endif
44642   /* Check whether in the abbreviation of the second month, the second
44643      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
44644      two bytes long, with UTF-8 encoding.  */
44645   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
44646   if (strftime (buf, sizeof (buf), "%b", &t) < 4
44647       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
44648     return 1;
44649 #endif
44650   /* Check whether the decimal separator is a comma.
44651      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
44652      are nl_langinfo(RADIXCHAR) are both ".".  */
44653   if (localeconv () ->decimal_point[0] != ',') return 1;
44654   return 0;
44655 }
44656
44657 _ACEOF
44658     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
44659   (eval $ac_link) 2>&5
44660   ac_status=$?
44661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44662   test $ac_status = 0; } && test -s conftest$ac_exeext; then
44663       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
44664       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
44665       # configure script would override the LC_ALL setting. Likewise for
44666       # LC_CTYPE, which is also set at the beginning of the configure script.
44667       # Test for the usual locale name.
44668       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44669         gt_cv_locale_fr_utf8=fr_FR
44670       else
44671         # Test for the locale name with explicit encoding suffix.
44672         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44673           gt_cv_locale_fr_utf8=fr_FR.UTF-8
44674         else
44675           # Test for the Solaris 7 locale name.
44676           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44677             gt_cv_locale_fr_utf8=fr.UTF-8
44678           else
44679             # None found.
44680             gt_cv_locale_fr_utf8=none
44681           fi
44682         fi
44683       fi
44684     fi
44685     rm -fr conftest*
44686
44687 fi
44688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
44689 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
44690   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
44691
44692
44693
44694
44695
44696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
44697 $as_echo_n "checking for a traditional french locale... " >&6; }
44698 if test "${gt_cv_locale_fr+set}" = set; then :
44699   $as_echo_n "(cached) " >&6
44700 else
44701
44702     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44703 /* end confdefs.h.  */
44704
44705 #include <locale.h>
44706 #include <time.h>
44707 #if HAVE_LANGINFO_CODESET
44708 # include <langinfo.h>
44709 #endif
44710 #include <stdlib.h>
44711 #include <string.h>
44712 struct tm t;
44713 char buf[16];
44714 int main () {
44715   /* Check whether the given locale name is recognized by the system.  */
44716   if (setlocale (LC_ALL, "") == NULL) return 1;
44717   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
44718      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
44719      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
44720      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
44721      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
44722      some unit tests fail.  */
44723 #if HAVE_LANGINFO_CODESET
44724   {
44725     const char *cs = nl_langinfo (CODESET);
44726     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
44727       return 1;
44728   }
44729 #endif
44730 #ifdef __CYGWIN__
44731   /* On Cygwin, avoid locale names without encoding suffix, because the
44732      locale_charset() function relies on the encoding suffix.  Note that
44733      LC_ALL is set on the command line.  */
44734   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
44735 #endif
44736   /* Check whether in the abbreviation of the second month, the second
44737      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
44738      one byte long. This excludes the UTF-8 encoding.  */
44739   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
44740   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
44741   /* Check whether the decimal separator is a comma.
44742      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
44743      are nl_langinfo(RADIXCHAR) are both ".".  */
44744   if (localeconv () ->decimal_point[0] != ',') return 1;
44745   return 0;
44746 }
44747
44748 _ACEOF
44749     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
44750   (eval $ac_link) 2>&5
44751   ac_status=$?
44752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44753   test $ac_status = 0; } && test -s conftest$ac_exeext; then
44754       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
44755       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
44756       # configure script would override the LC_ALL setting. Likewise for
44757       # LC_CTYPE, which is also set at the beginning of the configure script.
44758       # Test for the usual locale name.
44759       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44760         gt_cv_locale_fr=fr_FR
44761       else
44762         # Test for the locale name with explicit encoding suffix.
44763         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44764           gt_cv_locale_fr=fr_FR.ISO-8859-1
44765         else
44766           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
44767           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44768             gt_cv_locale_fr=fr_FR.ISO8859-1
44769           else
44770             # Test for the HP-UX locale name.
44771             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44772               gt_cv_locale_fr=fr_FR.iso88591
44773             else
44774               # Test for the Solaris 7 locale name.
44775               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44776                 gt_cv_locale_fr=fr
44777               else
44778                 # None found.
44779                 gt_cv_locale_fr=none
44780               fi
44781             fi
44782           fi
44783         fi
44784       fi
44785     fi
44786     rm -fr conftest*
44787
44788 fi
44789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
44790 $as_echo "$gt_cv_locale_fr" >&6; }
44791   LOCALE_FR=$gt_cv_locale_fr
44792
44793
44794
44795
44796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
44797 $as_echo_n "checking for a french Unicode locale... " >&6; }
44798 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
44799   $as_echo_n "(cached) " >&6
44800 else
44801
44802     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44803 /* end confdefs.h.  */
44804
44805 #include <locale.h>
44806 #include <time.h>
44807 #if HAVE_LANGINFO_CODESET
44808 # include <langinfo.h>
44809 #endif
44810 #include <stdlib.h>
44811 #include <string.h>
44812 struct tm t;
44813 char buf[16];
44814 int main () {
44815   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
44816      imitates locale dependent behaviour by looking at the environment
44817      variables, and all locales use the UTF-8 encoding.  */
44818 #if !(defined __BEOS__ || defined __HAIKU__)
44819   /* Check whether the given locale name is recognized by the system.  */
44820   if (setlocale (LC_ALL, "") == NULL) return 1;
44821   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
44822      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
44823      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
44824      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
44825      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
44826      some unit tests fail.  */
44827 # if HAVE_LANGINFO_CODESET
44828   {
44829     const char *cs = nl_langinfo (CODESET);
44830     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
44831       return 1;
44832   }
44833 # endif
44834 # ifdef __CYGWIN__
44835   /* On Cygwin, avoid locale names without encoding suffix, because the
44836      locale_charset() function relies on the encoding suffix.  Note that
44837      LC_ALL is set on the command line.  */
44838   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
44839 # endif
44840   /* Check whether in the abbreviation of the second month, the second
44841      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
44842      two bytes long, with UTF-8 encoding.  */
44843   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
44844   if (strftime (buf, sizeof (buf), "%b", &t) < 4
44845       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
44846     return 1;
44847 #endif
44848   /* Check whether the decimal separator is a comma.
44849      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
44850      are nl_langinfo(RADIXCHAR) are both ".".  */
44851   if (localeconv () ->decimal_point[0] != ',') return 1;
44852   return 0;
44853 }
44854
44855 _ACEOF
44856     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
44857   (eval $ac_link) 2>&5
44858   ac_status=$?
44859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44860   test $ac_status = 0; } && test -s conftest$ac_exeext; then
44861       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
44862       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
44863       # configure script would override the LC_ALL setting. Likewise for
44864       # LC_CTYPE, which is also set at the beginning of the configure script.
44865       # Test for the usual locale name.
44866       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44867         gt_cv_locale_fr_utf8=fr_FR
44868       else
44869         # Test for the locale name with explicit encoding suffix.
44870         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44871           gt_cv_locale_fr_utf8=fr_FR.UTF-8
44872         else
44873           # Test for the Solaris 7 locale name.
44874           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44875             gt_cv_locale_fr_utf8=fr.UTF-8
44876           else
44877             # None found.
44878             gt_cv_locale_fr_utf8=none
44879           fi
44880         fi
44881       fi
44882     fi
44883     rm -fr conftest*
44884
44885 fi
44886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
44887 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
44888   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
44889
44890
44891
44892
44893
44894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
44895 $as_echo_n "checking for a traditional japanese locale... " >&6; }
44896 if test "${gt_cv_locale_ja+set}" = set; then :
44897   $as_echo_n "(cached) " >&6
44898 else
44899
44900     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44901 /* end confdefs.h.  */
44902
44903 #include <locale.h>
44904 #include <time.h>
44905 #if HAVE_LANGINFO_CODESET
44906 # include <langinfo.h>
44907 #endif
44908 #include <stdlib.h>
44909 #include <string.h>
44910 struct tm t;
44911 char buf[16];
44912 int main ()
44913 {
44914   const char *p;
44915   /* Check whether the given locale name is recognized by the system.  */
44916   if (setlocale (LC_ALL, "") == NULL) return 1;
44917   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
44918      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
44919      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
44920      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
44921      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
44922      some unit tests fail.  */
44923 #if HAVE_LANGINFO_CODESET
44924   {
44925     const char *cs = nl_langinfo (CODESET);
44926     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
44927       return 1;
44928   }
44929 #endif
44930 #ifdef __CYGWIN__
44931   /* On Cygwin, avoid locale names without encoding suffix, because the
44932      locale_charset() function relies on the encoding suffix.  Note that
44933      LC_ALL is set on the command line.  */
44934   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
44935 #endif
44936   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
44937      on Cygwin 1.5.x.  */
44938   if (MB_CUR_MAX == 1)
44939     return 1;
44940   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
44941      This excludes the UTF-8 encoding.  */
44942   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
44943   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
44944   for (p = buf; *p != '\0'; p++)
44945     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
44946       return 1;
44947   return 0;
44948 }
44949
44950 _ACEOF
44951     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
44952   (eval $ac_link) 2>&5
44953   ac_status=$?
44954   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44955   test $ac_status = 0; } && test -s conftest$ac_exeext; then
44956       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
44957       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
44958       # configure script would override the LC_ALL setting. Likewise for
44959       # LC_CTYPE, which is also set at the beginning of the configure script.
44960       # Test for the AIX locale name.
44961       if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44962         gt_cv_locale_ja=ja_JP
44963       else
44964         # Test for the locale name with explicit encoding suffix.
44965         if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44966           gt_cv_locale_ja=ja_JP.EUC-JP
44967         else
44968           # Test for the HP-UX, OSF/1, NetBSD locale name.
44969           if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44970             gt_cv_locale_ja=ja_JP.eucJP
44971           else
44972             # Test for the IRIX, FreeBSD locale name.
44973             if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44974               gt_cv_locale_ja=ja_JP.EUC
44975             else
44976               # Test for the Solaris 7 locale name.
44977               if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44978                 gt_cv_locale_ja=ja
44979               else
44980                 # Special test for NetBSD 1.6.
44981                 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
44982                   gt_cv_locale_ja=ja_JP.eucJP
44983                 else
44984                   # None found.
44985                   gt_cv_locale_ja=none
44986                 fi
44987               fi
44988             fi
44989           fi
44990         fi
44991       fi
44992     fi
44993     rm -fr conftest*
44994
44995 fi
44996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
44997 $as_echo "$gt_cv_locale_ja" >&6; }
44998   LOCALE_JA=$gt_cv_locale_ja
44999
45000
45001
45002
45003
45004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
45005 $as_echo_n "checking for a transitional chinese locale... " >&6; }
45006 if test "${gt_cv_locale_zh_CN+set}" = set; then :
45007   $as_echo_n "(cached) " >&6
45008 else
45009
45010     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45011 /* end confdefs.h.  */
45012
45013 #include <locale.h>
45014 #include <stdlib.h>
45015 #include <time.h>
45016 #if HAVE_LANGINFO_CODESET
45017 # include <langinfo.h>
45018 #endif
45019 #include <stdlib.h>
45020 #include <string.h>
45021 struct tm t;
45022 char buf[16];
45023 int main ()
45024 {
45025   const char *p;
45026   /* Check whether the given locale name is recognized by the system.  */
45027   if (setlocale (LC_ALL, "") == NULL) return 1;
45028   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
45029      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
45030      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
45031      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
45032      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
45033      some unit tests fail.  */
45034 #if HAVE_LANGINFO_CODESET
45035   {
45036     const char *cs = nl_langinfo (CODESET);
45037     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
45038       return 1;
45039   }
45040 #endif
45041 #ifdef __CYGWIN__
45042   /* On Cygwin, avoid locale names without encoding suffix, because the
45043      locale_charset() function relies on the encoding suffix.  Note that
45044      LC_ALL is set on the command line.  */
45045   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
45046 #endif
45047   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
45048      This excludes the UTF-8 encoding.  */
45049   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
45050   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
45051   for (p = buf; *p != '\0'; p++)
45052     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
45053       return 1;
45054   /* Check whether a typical GB18030 multibyte sequence is recognized as a
45055      single wide character.  This excludes the GB2312 and GBK encodings.  */
45056   if (mblen ("\203\062\332\066", 5) != 4)
45057     return 1;
45058   return 0;
45059 }
45060
45061 _ACEOF
45062     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
45063   (eval $ac_link) 2>&5
45064   ac_status=$?
45065   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45066   test $ac_status = 0; } && test -s conftest$ac_exeext; then
45067       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
45068       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
45069       # configure script would override the LC_ALL setting. Likewise for
45070       # LC_CTYPE, which is also set at the beginning of the configure script.
45071       # Test for the locale name without encoding suffix.
45072       if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
45073         gt_cv_locale_zh_CN=zh_CN
45074       else
45075         # Test for the locale name with explicit encoding suffix.
45076         if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
45077           gt_cv_locale_zh_CN=zh_CN.GB18030
45078         else
45079           # None found.
45080           gt_cv_locale_zh_CN=none
45081         fi
45082       fi
45083     else
45084       # If there was a link error, due to mblen(), the system is so old that
45085       # it certainly doesn't have a chinese locale.
45086       gt_cv_locale_zh_CN=none
45087     fi
45088     rm -fr conftest*
45089
45090 fi
45091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
45092 $as_echo "$gt_cv_locale_zh_CN" >&6; }
45093   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
45094
45095
45096
45097
45098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
45099 $as_echo_n "checking for a french Unicode locale... " >&6; }
45100 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
45101   $as_echo_n "(cached) " >&6
45102 else
45103
45104     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45105 /* end confdefs.h.  */
45106
45107 #include <locale.h>
45108 #include <time.h>
45109 #if HAVE_LANGINFO_CODESET
45110 # include <langinfo.h>
45111 #endif
45112 #include <stdlib.h>
45113 #include <string.h>
45114 struct tm t;
45115 char buf[16];
45116 int main () {
45117   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
45118      imitates locale dependent behaviour by looking at the environment
45119      variables, and all locales use the UTF-8 encoding.  */
45120 #if !(defined __BEOS__ || defined __HAIKU__)
45121   /* Check whether the given locale name is recognized by the system.  */
45122   if (setlocale (LC_ALL, "") == NULL) return 1;
45123   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
45124      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
45125      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
45126      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
45127      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
45128      some unit tests fail.  */
45129 # if HAVE_LANGINFO_CODESET
45130   {
45131     const char *cs = nl_langinfo (CODESET);
45132     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
45133       return 1;
45134   }
45135 # endif
45136 # ifdef __CYGWIN__
45137   /* On Cygwin, avoid locale names without encoding suffix, because the
45138      locale_charset() function relies on the encoding suffix.  Note that
45139      LC_ALL is set on the command line.  */
45140   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
45141 # endif
45142   /* Check whether in the abbreviation of the second month, the second
45143      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
45144      two bytes long, with UTF-8 encoding.  */
45145   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
45146   if (strftime (buf, sizeof (buf), "%b", &t) < 4
45147       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
45148     return 1;
45149 #endif
45150   /* Check whether the decimal separator is a comma.
45151      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
45152      are nl_langinfo(RADIXCHAR) are both ".".  */
45153   if (localeconv () ->decimal_point[0] != ',') return 1;
45154   return 0;
45155 }
45156
45157 _ACEOF
45158     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
45159   (eval $ac_link) 2>&5
45160   ac_status=$?
45161   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45162   test $ac_status = 0; } && test -s conftest$ac_exeext; then
45163       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
45164       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
45165       # configure script would override the LC_ALL setting. Likewise for
45166       # LC_CTYPE, which is also set at the beginning of the configure script.
45167       # Test for the usual locale name.
45168       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
45169         gt_cv_locale_fr_utf8=fr_FR
45170       else
45171         # Test for the locale name with explicit encoding suffix.
45172         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
45173           gt_cv_locale_fr_utf8=fr_FR.UTF-8
45174         else
45175           # Test for the Solaris 7 locale name.
45176           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
45177             gt_cv_locale_fr_utf8=fr.UTF-8
45178           else
45179             # None found.
45180             gt_cv_locale_fr_utf8=none
45181           fi
45182         fi
45183       fi
45184     fi
45185     rm -fr conftest*
45186
45187 fi
45188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
45189 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
45190   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
45191
45192
45193
45194
45195
45196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
45197 $as_echo_n "checking for a transitional chinese locale... " >&6; }
45198 if test "${gt_cv_locale_zh_CN+set}" = set; then :
45199   $as_echo_n "(cached) " >&6
45200 else
45201
45202     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45203 /* end confdefs.h.  */
45204
45205 #include <locale.h>
45206 #include <stdlib.h>
45207 #include <time.h>
45208 #if HAVE_LANGINFO_CODESET
45209 # include <langinfo.h>
45210 #endif
45211 #include <stdlib.h>
45212 #include <string.h>
45213 struct tm t;
45214 char buf[16];
45215 int main ()
45216 {
45217   const char *p;
45218   /* Check whether the given locale name is recognized by the system.  */
45219   if (setlocale (LC_ALL, "") == NULL) return 1;
45220   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
45221      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
45222      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
45223      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
45224      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
45225      some unit tests fail.  */
45226 #if HAVE_LANGINFO_CODESET
45227   {
45228     const char *cs = nl_langinfo (CODESET);
45229     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
45230       return 1;
45231   }
45232 #endif
45233 #ifdef __CYGWIN__
45234   /* On Cygwin, avoid locale names without encoding suffix, because the
45235      locale_charset() function relies on the encoding suffix.  Note that
45236      LC_ALL is set on the command line.  */
45237   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
45238 #endif
45239   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
45240      This excludes the UTF-8 encoding.  */
45241   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
45242   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
45243   for (p = buf; *p != '\0'; p++)
45244     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
45245       return 1;
45246   /* Check whether a typical GB18030 multibyte sequence is recognized as a
45247      single wide character.  This excludes the GB2312 and GBK encodings.  */
45248   if (mblen ("\203\062\332\066", 5) != 4)
45249     return 1;
45250   return 0;
45251 }
45252
45253 _ACEOF
45254     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
45255   (eval $ac_link) 2>&5
45256   ac_status=$?
45257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45258   test $ac_status = 0; } && test -s conftest$ac_exeext; then
45259       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
45260       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
45261       # configure script would override the LC_ALL setting. Likewise for
45262       # LC_CTYPE, which is also set at the beginning of the configure script.
45263       # Test for the locale name without encoding suffix.
45264       if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
45265         gt_cv_locale_zh_CN=zh_CN
45266       else
45267         # Test for the locale name with explicit encoding suffix.
45268         if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
45269           gt_cv_locale_zh_CN=zh_CN.GB18030
45270         else
45271           # None found.
45272           gt_cv_locale_zh_CN=none
45273         fi
45274       fi
45275     else
45276       # If there was a link error, due to mblen(), the system is so old that
45277       # it certainly doesn't have a chinese locale.
45278       gt_cv_locale_zh_CN=none
45279     fi
45280     rm -fr conftest*
45281
45282 fi
45283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
45284 $as_echo "$gt_cv_locale_zh_CN" >&6; }
45285   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
45286
45287
45288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45289 /* end confdefs.h.  */
45290 [
45291   #if defined _MSC_VER || defined __MINGW32__
45292     notposix
45293   #endif
45294     ]
45295 _ACEOF
45296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45297   $EGREP "notposix" >/dev/null 2>&1; then :
45298   posix_spawn_ported=no
45299 else
45300   posix_spawn_ported=yes
45301 fi
45302 rm -f conftest*
45303
45304    if test $posix_spawn_ported = yes; then
45305   POSIX_SPAWN_PORTED_TRUE=
45306   POSIX_SPAWN_PORTED_FALSE='#'
45307 else
45308   POSIX_SPAWN_PORTED_TRUE='#'
45309   POSIX_SPAWN_PORTED_FALSE=
45310 fi
45311
45312
45313
45314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
45315 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
45316 if test "${gl_cv_func_svid_putenv+set}" = set; then :
45317   $as_echo_n "(cached) " >&6
45318 else
45319   if test "$cross_compiling" = yes; then :
45320                gl_cv_func_svid_putenv=no
45321 else
45322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45323 /* end confdefs.h.  */
45324 $ac_includes_default
45325 int
45326 main ()
45327 {
45328
45329     /* Put it in env.  */
45330     if (putenv ("CONFTEST_putenv=val"))
45331       return 1;
45332
45333     /* Try to remove it.  */
45334     if (putenv ("CONFTEST_putenv"))
45335       return 1;
45336
45337     /* Make sure it was deleted.  */
45338     if (getenv ("CONFTEST_putenv") != 0)
45339       return 1;
45340
45341     return 0;
45342
45343   ;
45344   return 0;
45345 }
45346 _ACEOF
45347 if ac_fn_c_try_run "$LINENO"; then :
45348   gl_cv_func_svid_putenv=yes
45349 else
45350   gl_cv_func_svid_putenv=no
45351 fi
45352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45353   conftest.$ac_objext conftest.beam conftest.$ac_ext
45354 fi
45355
45356
45357 fi
45358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
45359 $as_echo "$gl_cv_func_svid_putenv" >&6; }
45360   if test $gl_cv_func_svid_putenv = no; then
45361     REPLACE_PUTENV=1
45362
45363
45364
45365
45366
45367
45368
45369
45370   gltests_LIBOBJS="$gltests_LIBOBJS putenv.$ac_objext"
45371
45372   fi
45373
45374
45375
45376
45377   GNULIB_PUTENV=$gl_module_indicator_condition
45378
45379
45380
45381 $as_echo "#define GNULIB_TEST_PUTENV 1" >>confdefs.h
45382
45383
45384
45385
45386
45387
45388
45389
45390
45391
45392
45393
45394   gltests_LIBOBJS="$gltests_LIBOBJS read-file.$ac_objext"
45395
45396   :
45397
45398
45399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
45400 $as_echo_n "checking for wchar_t... " >&6; }
45401 if test "${gt_cv_c_wchar_t+set}" = set; then :
45402   $as_echo_n "(cached) " >&6
45403 else
45404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45405 /* end confdefs.h.  */
45406 #include <stddef.h>
45407        wchar_t foo = (wchar_t)'\0';
45408 int
45409 main ()
45410 {
45411
45412   ;
45413   return 0;
45414 }
45415 _ACEOF
45416 if ac_fn_c_try_compile "$LINENO"; then :
45417   gt_cv_c_wchar_t=yes
45418 else
45419   gt_cv_c_wchar_t=no
45420 fi
45421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45422 fi
45423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
45424 $as_echo "$gt_cv_c_wchar_t" >&6; }
45425   if test $gt_cv_c_wchar_t = yes; then
45426
45427 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
45428
45429   fi
45430
45431
45432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
45433 $as_echo_n "checking for wint_t... " >&6; }
45434 if test "${gt_cv_c_wint_t+set}" = set; then :
45435   $as_echo_n "(cached) " >&6
45436 else
45437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45438 /* end confdefs.h.  */
45439
45440 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
45441    <wchar.h>.
45442    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
45443    before <wchar.h>.  */
45444 #include <stddef.h>
45445 #include <stdio.h>
45446 #include <time.h>
45447 #include <wchar.h>
45448        wint_t foo = (wchar_t)'\0';
45449 int
45450 main ()
45451 {
45452
45453   ;
45454   return 0;
45455 }
45456 _ACEOF
45457 if ac_fn_c_try_compile "$LINENO"; then :
45458   gt_cv_c_wint_t=yes
45459 else
45460   gt_cv_c_wint_t=no
45461 fi
45462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45463 fi
45464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
45465 $as_echo "$gt_cv_c_wint_t" >&6; }
45466   if test $gt_cv_c_wint_t = yes; then
45467
45468 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
45469
45470   fi
45471
45472
45473   :
45474
45475
45476
45477
45478
45479
45480
45481
45482
45483
45484
45485   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
45486   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
45487   # irrelevant for anonymous mappings.
45488   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
45489 if test "x$ac_cv_func_mmap" = x""yes; then :
45490   gl_have_mmap=yes
45491 else
45492   gl_have_mmap=no
45493 fi
45494
45495
45496   # Try to allow MAP_ANONYMOUS.
45497   gl_have_mmap_anonymous=no
45498   if test $gl_have_mmap = yes; then
45499     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
45500 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
45501     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45502 /* end confdefs.h.  */
45503
45504 #include <sys/mman.h>
45505 #ifdef MAP_ANONYMOUS
45506     I cant identify this map.
45507 #endif
45508
45509 _ACEOF
45510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45511   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
45512   gl_have_mmap_anonymous=yes
45513 fi
45514 rm -f conftest*
45515
45516     if test $gl_have_mmap_anonymous != yes; then
45517       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45518 /* end confdefs.h.  */
45519
45520 #include <sys/mman.h>
45521 #ifdef MAP_ANON
45522     I cant identify this map.
45523 #endif
45524
45525 _ACEOF
45526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45527   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
45528
45529 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
45530
45531          gl_have_mmap_anonymous=yes
45532 fi
45533 rm -f conftest*
45534
45535     fi
45536     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
45537 $as_echo "$gl_have_mmap_anonymous" >&6; }
45538     if test $gl_have_mmap_anonymous = yes; then
45539
45540 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
45541
45542     fi
45543   fi
45544
45545
45546   :
45547
45548
45549
45550
45551
45552
45553   :
45554
45555
45556
45557
45558
45559
45560
45561
45562   :
45563
45564
45565
45566
45567
45568         if test $ac_cv_func_symlink = no; then
45569     HAVE_SYMLINK=0
45570
45571
45572
45573
45574
45575
45576
45577
45578   gltests_LIBOBJS="$gltests_LIBOBJS symlink.$ac_objext"
45579
45580   else
45581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
45582 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
45583 if test "${gl_cv_func_symlink_works+set}" = set; then :
45584   $as_echo_n "(cached) " >&6
45585 else
45586   if test "$cross_compiling" = yes; then :
45587   gl_cv_func_symlink_works="guessing no"
45588 else
45589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45590 /* end confdefs.h.  */
45591 #include <unistd.h>
45592
45593 int
45594 main ()
45595 {
45596 if (!symlink ("a", "conftest.link/")) return 1;
45597       if (symlink ("conftest.f", "conftest.lnk2")) return 2;
45598       if (!symlink ("a", "conftest.lnk2/")) return 3;
45599   ;
45600   return 0;
45601 }
45602 _ACEOF
45603 if ac_fn_c_try_run "$LINENO"; then :
45604   gl_cv_func_symlink_works=yes
45605 else
45606   gl_cv_func_symlink_works=no
45607 fi
45608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45609   conftest.$ac_objext conftest.beam conftest.$ac_ext
45610 fi
45611
45612       rm -f conftest.f conftest.link conftest.lnk2
45613 fi
45614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
45615 $as_echo "$gl_cv_func_symlink_works" >&6; }
45616     if test "$gl_cv_func_symlink_works" != yes; then
45617       REPLACE_SYMLINK=1
45618
45619
45620
45621
45622
45623
45624
45625
45626   gltests_LIBOBJS="$gltests_LIBOBJS symlink.$ac_objext"
45627
45628     fi
45629   fi
45630
45631
45632
45633
45634   GNULIB_SYMLINK=$gl_module_indicator_condition
45635
45636
45637
45638 $as_echo "#define GNULIB_TEST_SYMLINK 1" >>confdefs.h
45639
45640
45641
45642
45643   :
45644
45645
45646
45647
45648
45649
45650
45651
45652
45653   if test $gl_threads_api = posix; then
45654     gl_save_LIBS="$LIBS"
45655     LIBS="$LIBS $LIBMULTITHREAD"
45656     for ac_func in pthread_atfork
45657 do :
45658   ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
45659 if test "x$ac_cv_func_pthread_atfork" = x""yes; then :
45660   cat >>confdefs.h <<_ACEOF
45661 #define HAVE_PTHREAD_ATFORK 1
45662 _ACEOF
45663
45664 fi
45665 done
45666
45667     LIBS="$gl_save_LIBS"
45668   fi
45669
45670
45671
45672        if  { test "$HAVE_LIBUNISTRING" != yes \
45673     || {
45674
45675
45676
45677             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
45678             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
45679                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
45680                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
45681                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
45682                          }
45683                     }
45684                }
45685
45686
45687
45688
45689        }
45690   }; then
45691   LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE=
45692   LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE='#'
45693 else
45694   LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE='#'
45695   LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE=
45696 fi
45697
45698
45699
45700
45701
45702
45703
45704
45705   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
45706   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
45707   # irrelevant for anonymous mappings.
45708   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
45709 if test "x$ac_cv_func_mmap" = x""yes; then :
45710   gl_have_mmap=yes
45711 else
45712   gl_have_mmap=no
45713 fi
45714
45715
45716   # Try to allow MAP_ANONYMOUS.
45717   gl_have_mmap_anonymous=no
45718   if test $gl_have_mmap = yes; then
45719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
45720 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
45721     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45722 /* end confdefs.h.  */
45723
45724 #include <sys/mman.h>
45725 #ifdef MAP_ANONYMOUS
45726     I cant identify this map.
45727 #endif
45728
45729 _ACEOF
45730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45731   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
45732   gl_have_mmap_anonymous=yes
45733 fi
45734 rm -f conftest*
45735
45736     if test $gl_have_mmap_anonymous != yes; then
45737       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45738 /* end confdefs.h.  */
45739
45740 #include <sys/mman.h>
45741 #ifdef MAP_ANON
45742     I cant identify this map.
45743 #endif
45744
45745 _ACEOF
45746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45747   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
45748
45749 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
45750
45751          gl_have_mmap_anonymous=yes
45752 fi
45753 rm -f conftest*
45754
45755     fi
45756     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
45757 $as_echo "$gl_have_mmap_anonymous" >&6; }
45758     if test $gl_have_mmap_anonymous = yes; then
45759
45760 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
45761
45762     fi
45763   fi
45764
45765
45766   :
45767
45768
45769
45770
45771
45772
45773   :
45774
45775
45776
45777
45778
45779
45780
45781        if  { test "$HAVE_LIBUNISTRING" != yes \
45782     || {
45783
45784
45785
45786             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
45787             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
45788                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
45789                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
45790                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
45791                          }
45792                     }
45793                }
45794
45795
45796
45797
45798        }
45799   }; then
45800   LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE=
45801   LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE='#'
45802 else
45803   LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE='#'
45804   LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE=
45805 fi
45806
45807
45808
45809
45810
45811
45812   :
45813
45814
45815
45816
45817
45818   if test $ac_cv_func_wctob = no; then
45819     HAVE_DECL_WCTOB=0
45820
45821     :
45822
45823
45824
45825
45826
45827
45828
45829
45830
45831   gltests_LIBOBJS="$gltests_LIBOBJS wctob.$ac_objext"
45832
45833
45834   :
45835
45836   else
45837
45838
45839
45840          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wctob works" >&5
45841 $as_echo_n "checking whether wctob works... " >&6; }
45842 if test "${gl_cv_func_wctob_works+set}" = set; then :
45843   $as_echo_n "(cached) " >&6
45844 else
45845
45846                         case "$host_os" in
45847             # Guess no on Solaris <= 9 and Cygwin.
45848           solaris2.[1-9] | solaris2.[1-9].* | cygwin*)
45849             gl_cv_func_wctob_works="guessing no" ;;
45850             # Guess yes otherwise.
45851           *) gl_cv_func_wctob_works="guessing yes" ;;
45852         esac
45853         case "$host_os" in
45854           cygwin*)
45855             if test "$cross_compiling" = yes; then :
45856   :
45857 else
45858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45859 /* end confdefs.h.  */
45860
45861 #include <locale.h>
45862 #include <wchar.h>
45863
45864 register long global __asm__ ("%ebx");
45865
45866 int main ()
45867 {
45868   setlocale (LC_ALL, "en_US.UTF-8");
45869
45870   global = 0x12345678;
45871   if (wctob (0x00FC) != -1)
45872     return 1;
45873   if (global != 0x12345678)
45874     return 2;
45875   return 0;
45876 }
45877 _ACEOF
45878 if ac_fn_c_try_run "$LINENO"; then :
45879   :
45880 else
45881   gl_cv_func_wctob_works=no
45882 fi
45883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45884   conftest.$ac_objext conftest.beam conftest.$ac_ext
45885 fi
45886
45887             ;;
45888         esac
45889         if test "$gl_cv_func_wctob_works" != no && test $LOCALE_FR != none; then
45890           if test "$cross_compiling" = yes; then :
45891   :
45892 else
45893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45894 /* end confdefs.h.  */
45895
45896 #include <locale.h>
45897 #include <string.h>
45898 #include <wchar.h>
45899 int main ()
45900 {
45901   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
45902     {
45903       wchar_t wc;
45904
45905       if (mbtowc (&wc, "\374", 1) == 1)
45906         if (wctob (wc) != (unsigned char) '\374')
45907           return 1;
45908     }
45909   return 0;
45910 }
45911 _ACEOF
45912 if ac_fn_c_try_run "$LINENO"; then :
45913   gl_cv_func_wctob_works=yes
45914 else
45915   gl_cv_func_wctob_works=no
45916 fi
45917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45918   conftest.$ac_objext conftest.beam conftest.$ac_ext
45919 fi
45920
45921         fi
45922
45923 fi
45924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wctob_works" >&5
45925 $as_echo "$gl_cv_func_wctob_works" >&6; }
45926     case "$gl_cv_func_wctob_works" in
45927       *yes) ;;
45928       *) REPLACE_WCTOB=1 ;;
45929     esac
45930     if test $REPLACE_WCTOB = 1; then
45931
45932     :
45933
45934
45935
45936
45937
45938
45939
45940
45941
45942   gltests_LIBOBJS="$gltests_LIBOBJS wctob.$ac_objext"
45943
45944
45945   :
45946
45947     else
45948
45949             ac_fn_c_check_decl "$LINENO" "wctob" "ac_cv_have_decl_wctob" "
45950 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
45951    <wchar.h>.
45952    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
45953    before <wchar.h>.  */
45954 #include <stddef.h>
45955 #include <stdio.h>
45956 #include <time.h>
45957 #include <wchar.h>
45958
45959 "
45960 if test "x$ac_cv_have_decl_wctob" = x""yes; then :
45961   ac_have_decl=1
45962 else
45963   ac_have_decl=0
45964 fi
45965
45966 cat >>confdefs.h <<_ACEOF
45967 #define HAVE_DECL_WCTOB $ac_have_decl
45968 _ACEOF
45969
45970       if test $ac_cv_have_decl_wctob != yes; then
45971         HAVE_DECL_WCTOB=0
45972
45973     :
45974
45975       fi
45976     fi
45977   fi
45978
45979
45980
45981
45982   GNULIB_WCTOB=$gl_module_indicator_condition
45983
45984
45985
45986 $as_echo "#define GNULIB_TEST_WCTOB 1" >>confdefs.h
45987
45988
45989
45990
45991
45992     YIELD_LIB=
45993   if test $gl_threads_api = posix; then
45994         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
45995 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
45996 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
45997   $as_echo_n "(cached) " >&6
45998 else
45999   ac_check_lib_save_LIBS=$LIBS
46000 LIBS="-lrt  $LIBS"
46001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46002 /* end confdefs.h.  */
46003
46004 /* Override any GCC internal prototype to avoid an error.
46005    Use char because int might match the return type of a GCC
46006    builtin and then its argument prototype would still apply.  */
46007 #ifdef __cplusplus
46008 extern "C"
46009 #endif
46010 char sched_yield ();
46011 int
46012 main ()
46013 {
46014 return sched_yield ();
46015   ;
46016   return 0;
46017 }
46018 _ACEOF
46019 if ac_fn_c_try_link "$LINENO"; then :
46020   ac_cv_lib_rt_sched_yield=yes
46021 else
46022   ac_cv_lib_rt_sched_yield=no
46023 fi
46024 rm -f core conftest.err conftest.$ac_objext \
46025     conftest$ac_exeext conftest.$ac_ext
46026 LIBS=$ac_check_lib_save_LIBS
46027 fi
46028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
46029 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
46030 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
46031   YIELD_LIB=-lrt
46032 else
46033          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
46034 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
46035 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
46036   $as_echo_n "(cached) " >&6
46037 else
46038   ac_check_lib_save_LIBS=$LIBS
46039 LIBS="-lposix4  $LIBS"
46040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46041 /* end confdefs.h.  */
46042
46043 /* Override any GCC internal prototype to avoid an error.
46044    Use char because int might match the return type of a GCC
46045    builtin and then its argument prototype would still apply.  */
46046 #ifdef __cplusplus
46047 extern "C"
46048 #endif
46049 char sched_yield ();
46050 int
46051 main ()
46052 {
46053 return sched_yield ();
46054   ;
46055   return 0;
46056 }
46057 _ACEOF
46058 if ac_fn_c_try_link "$LINENO"; then :
46059   ac_cv_lib_posix4_sched_yield=yes
46060 else
46061   ac_cv_lib_posix4_sched_yield=no
46062 fi
46063 rm -f core conftest.err conftest.$ac_objext \
46064     conftest$ac_exeext conftest.$ac_ext
46065 LIBS=$ac_check_lib_save_LIBS
46066 fi
46067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
46068 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
46069 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
46070   YIELD_LIB=-lposix4
46071 fi
46072
46073 fi
46074
46075   fi
46076
46077
46078
46079
46080
46081
46082
46083
46084
46085
46086
46087
46088   LIBTESTS_LIBDEPS="$gltests_libdeps"
46089
46090
46091
46092   GNULIB_NL_LANGINFO=0;
46093     HAVE_NL_LANGINFO=1;
46094   REPLACE_NL_LANGINFO=0;
46095
46096
46097
46098
46099
46100
46101
46102
46103
46104
46105
46106
46107
46108
46109
46110
46111
46112
46113
46114
46115
46116
46117    if false; then
46118   GL_COND_LIBTOOL_TRUE=
46119   GL_COND_LIBTOOL_FALSE='#'
46120 else
46121   GL_COND_LIBTOOL_TRUE='#'
46122   GL_COND_LIBTOOL_FALSE=
46123 fi
46124
46125   gl_cond_libtool=false
46126   gl_libdeps=
46127   gl_ltlibdeps=
46128   gl_m4_base='libgrep/gnulib-m4'
46129
46130
46131
46132
46133
46134
46135
46136
46137
46138   gl_source_base='libgrep'
46139   # Code from module btowc:
46140
46141
46142
46143
46144
46145
46146   :
46147
46148
46149
46150
46151
46152   if test $ac_cv_func_btowc = no; then
46153     HAVE_BTOWC=0
46154   else
46155
46156
46157
46158
46159         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
46160 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
46161 if test "${gl_cv_func_btowc_nul+set}" = set; then :
46162   $as_echo_n "(cached) " >&6
46163 else
46164
46165         if test "$cross_compiling" = yes; then :
46166
46167            case "$host_os" in
46168                       # Guess no on Cygwin.
46169              cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
46170                       # Guess yes otherwise.
46171              *)       gl_cv_func_btowc_nul="guessing yes" ;;
46172            esac
46173
46174 else
46175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46176 /* end confdefs.h.  */
46177
46178 #include <stdio.h>
46179 #include <string.h>
46180 #include <wchar.h>
46181 int main ()
46182 {
46183   if (btowc ('\0') != 0)
46184     return 1;
46185   return 0;
46186 }
46187 _ACEOF
46188 if ac_fn_c_try_run "$LINENO"; then :
46189   gl_cv_func_btowc_nul=yes
46190 else
46191   gl_cv_func_btowc_nul=no
46192 fi
46193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46194   conftest.$ac_objext conftest.beam conftest.$ac_ext
46195 fi
46196
46197
46198 fi
46199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
46200 $as_echo "$gl_cv_func_btowc_nul" >&6; }
46201
46202         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
46203 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
46204 if test "${gl_cv_func_btowc_eof+set}" = set; then :
46205   $as_echo_n "(cached) " >&6
46206 else
46207
46208                         case "$host_os" in
46209                  # Guess no on IRIX.
46210           irix*) gl_cv_func_btowc_eof="guessing no" ;;
46211                  # Guess yes otherwise.
46212           *)     gl_cv_func_btowc_eof="guessing yes" ;;
46213         esac
46214         if test $LOCALE_FR != none; then
46215           if test "$cross_compiling" = yes; then :
46216   :
46217 else
46218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46219 /* end confdefs.h.  */
46220
46221 #include <locale.h>
46222 #include <stdio.h>
46223 #include <string.h>
46224 #include <wchar.h>
46225 int main ()
46226 {
46227   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
46228     {
46229       if (btowc (EOF) != WEOF)
46230         return 1;
46231     }
46232   return 0;
46233 }
46234 _ACEOF
46235 if ac_fn_c_try_run "$LINENO"; then :
46236   gl_cv_func_btowc_eof=yes
46237 else
46238   gl_cv_func_btowc_eof=no
46239 fi
46240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46241   conftest.$ac_objext conftest.beam conftest.$ac_ext
46242 fi
46243
46244         fi
46245
46246 fi
46247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
46248 $as_echo "$gl_cv_func_btowc_eof" >&6; }
46249
46250     case "$gl_cv_func_btowc_nul" in
46251       *yes) ;;
46252       *) REPLACE_BTOWC=1 ;;
46253     esac
46254     case "$gl_cv_func_btowc_eof" in
46255       *yes) ;;
46256       *) REPLACE_BTOWC=1 ;;
46257     esac
46258   fi
46259   if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
46260
46261     :
46262
46263
46264
46265
46266
46267
46268
46269
46270
46271   grgl_LIBOBJS="$grgl_LIBOBJS btowc.$ac_objext"
46272
46273
46274   :
46275
46276   fi
46277
46278
46279
46280
46281   GNULIB_BTOWC=1
46282
46283
46284
46285 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
46286
46287
46288
46289   # Code from module c++defs:
46290   # Code from module langinfo:
46291
46292
46293
46294
46295
46296
46297
46298
46299
46300   :
46301
46302
46303
46304
46305
46306
46307
46308      if test $gl_cv_have_include_next = yes; then
46309        gl_cv_next_langinfo_h='<'langinfo.h'>'
46310      else
46311        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
46312 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
46313 if test "${gl_cv_next_langinfo_h+set}" = set; then :
46314   $as_echo_n "(cached) " >&6
46315 else
46316
46317           if test $ac_cv_header_langinfo_h = yes; then
46318             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46319 /* end confdefs.h.  */
46320 #include <langinfo.h>
46321
46322 _ACEOF
46323                                                                                                 case "$host_os" in
46324               aix*) gl_absname_cpp="$ac_cpp -C" ;;
46325               *)    gl_absname_cpp="$ac_cpp" ;;
46326             esac
46327                                                 gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
46328                sed -n '\#/langinfo.h#{
46329                  s#.*"\(.*/langinfo.h\)".*#\1#
46330                  s#^/[^/]#//&#
46331                  p
46332                  q
46333                }'`'"'
46334           else
46335             gl_cv_next_langinfo_h='<'langinfo.h'>'
46336           fi
46337
46338 fi
46339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
46340 $as_echo "$gl_cv_next_langinfo_h" >&6; }
46341      fi
46342      NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
46343
46344      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
46345        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
46346        gl_next_as_first_directive='<'langinfo.h'>'
46347      else
46348        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
46349        gl_next_as_first_directive=$gl_cv_next_langinfo_h
46350      fi
46351      NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
46352
46353
46354
46355
46356     HAVE_LANGINFO_CODESET=0
46357   HAVE_LANGINFO_ERA=0
46358
46359   :
46360
46361
46362
46363
46364
46365   if test $ac_cv_header_langinfo_h = yes; then
46366     HAVE_LANGINFO_H=1
46367             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
46368 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
46369 if test "${gl_cv_header_langinfo_codeset+set}" = set; then :
46370   $as_echo_n "(cached) " >&6
46371 else
46372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46373 /* end confdefs.h.  */
46374 #include <langinfo.h>
46375 int a = CODESET;
46376
46377 int
46378 main ()
46379 {
46380
46381   ;
46382   return 0;
46383 }
46384 _ACEOF
46385 if ac_fn_c_try_compile "$LINENO"; then :
46386   gl_cv_header_langinfo_codeset=yes
46387 else
46388   gl_cv_header_langinfo_codeset=no
46389 fi
46390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46391
46392 fi
46393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
46394 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
46395     if test $gl_cv_header_langinfo_codeset = yes; then
46396       HAVE_LANGINFO_CODESET=1
46397     fi
46398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
46399 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
46400 if test "${gl_cv_header_langinfo_era+set}" = set; then :
46401   $as_echo_n "(cached) " >&6
46402 else
46403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46404 /* end confdefs.h.  */
46405 #include <langinfo.h>
46406 int a = ERA;
46407
46408 int
46409 main ()
46410 {
46411
46412   ;
46413   return 0;
46414 }
46415 _ACEOF
46416 if ac_fn_c_try_compile "$LINENO"; then :
46417   gl_cv_header_langinfo_era=yes
46418 else
46419   gl_cv_header_langinfo_era=no
46420 fi
46421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46422
46423 fi
46424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
46425 $as_echo "$gl_cv_header_langinfo_era" >&6; }
46426     if test $gl_cv_header_langinfo_era = yes; then
46427       HAVE_LANGINFO_ERA=1
46428     fi
46429   else
46430     HAVE_LANGINFO_H=0
46431   fi
46432
46433
46434
46435
46436
46437     for gl_func in nl_langinfo; do
46438     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
46439     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
46440 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
46441 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
46442   $as_echo_n "(cached) " >&6
46443 else
46444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46445 /* end confdefs.h.  */
46446 #include <langinfo.h>
46447
46448 int
46449 main ()
46450 {
46451 #undef $gl_func
46452   (void) $gl_func;
46453   ;
46454   return 0;
46455 }
46456 _ACEOF
46457 if ac_fn_c_try_compile "$LINENO"; then :
46458   eval "$as_gl_Symbol=yes"
46459 else
46460   eval "$as_gl_Symbol=no"
46461 fi
46462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46463 fi
46464 eval ac_res=\$$as_gl_Symbol
46465                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
46466 $as_echo "$ac_res" >&6; }
46467      eval as_val=\$$as_gl_Symbol
46468    if test "x$as_val" = x""yes; then :
46469   cat >>confdefs.h <<_ACEOF
46470 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
46471 _ACEOF
46472
46473                      eval ac_cv_have_decl_$gl_func=yes
46474 fi
46475       done
46476
46477
46478   # Code from module nl_langinfo:
46479
46480
46481
46482
46483   :
46484
46485
46486
46487
46488
46489   if test $ac_cv_func_nl_langinfo = yes; then
46490     if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
46491       :
46492     else
46493       REPLACE_NL_LANGINFO=1
46494
46495 $as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
46496
46497
46498
46499
46500
46501
46502
46503
46504
46505   grgl_LIBOBJS="$grgl_LIBOBJS nl_langinfo.$ac_objext"
46506
46507     fi
46508   else
46509     HAVE_NL_LANGINFO=0
46510
46511
46512
46513
46514
46515
46516
46517
46518   grgl_LIBOBJS="$grgl_LIBOBJS nl_langinfo.$ac_objext"
46519
46520   fi
46521
46522
46523
46524
46525   GNULIB_NL_LANGINFO=1
46526
46527
46528
46529 $as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
46530
46531
46532
46533   # Code from module regex:
46534
46535
46536   :
46537
46538
46539
46540
46541
46542
46543
46544 # Check whether --with-included-regex was given.
46545 if test "${with_included_regex+set}" = set; then :
46546   withval=$with_included_regex;
46547 fi
46548
46549
46550   case $with_included_regex in #(
46551   yes|no) ac_use_included_regex=$with_included_regex
46552         ;;
46553   '')
46554     # If the system regex support is good enough that it passes the
46555     # following run test, then default to *not* using the included regex.c.
46556     # If cross compiling, assume the test would fail and use the included
46557     # regex.c.
46558     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
46559 $as_echo_n "checking for working re_compile_pattern... " >&6; }
46560 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then :
46561   $as_echo_n "(cached) " >&6
46562 else
46563   if test "$cross_compiling" = yes; then :
46564          gl_cv_func_re_compile_pattern_working=no
46565 else
46566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46567 /* end confdefs.h.  */
46568 $ac_includes_default
46569            #if HAVE_LOCALE_H
46570             #include <locale.h>
46571            #endif
46572            #include <limits.h>
46573            #include <regex.h>
46574
46575 int
46576 main ()
46577 {
46578 static struct re_pattern_buffer regex;
46579             unsigned char folded_chars[UCHAR_MAX + 1];
46580             int i;
46581             const char *s;
46582             struct re_registers regs;
46583
46584             #if HAVE_LOCALE_H
46585               /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
46586                  This test needs valgrind to catch the bug on Debian
46587                  GNU/Linux 3.1 x86, but it might catch the bug better
46588                  on other platforms and it shouldn't hurt to try the
46589                  test here.  */
46590               if (setlocale (LC_ALL, "en_US.UTF-8"))
46591                 {
46592                   static char const pat[] = "insert into";
46593                   static char const data[] =
46594                     "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
46595                   re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
46596                                  | RE_ICASE);
46597                   memset (&regex, 0, sizeof regex);
46598                   s = re_compile_pattern (pat, sizeof pat - 1, &regex);
46599                   if (s)
46600                     return 1;
46601                   if (re_search (&regex, data, sizeof data - 1,
46602                                  0, sizeof data - 1, &regs)
46603                       != -1)
46604                     return 1;
46605                   if (! setlocale (LC_ALL, "C"))
46606                     return 1;
46607                 }
46608             #endif
46609
46610             /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
46611             re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
46612             memset (&regex, 0, sizeof regex);
46613             s = re_compile_pattern ("a[^x]b", 6, &regex);
46614             if (s)
46615               return 1;
46616
46617             /* This should fail, but succeeds for glibc-2.5.  */
46618             if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
46619               return 1;
46620
46621             /* This regular expression is from Spencer ere test number 75
46622                in grep-2.3.  */
46623             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
46624             memset (&regex, 0, sizeof regex);
46625             for (i = 0; i <= UCHAR_MAX; i++)
46626               folded_chars[i] = i;
46627             regex.translate = folded_chars;
46628             s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
46629             /* This should fail with _Invalid character class name_ error.  */
46630             if (!s)
46631               return 1;
46632
46633             /* Ensure that [b-a] is diagnosed as invalid, when
46634                using RE_NO_EMPTY_RANGES. */
46635             re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
46636             memset (&regex, 0, sizeof regex);
46637             s = re_compile_pattern ("a[b-a]", 6, &regex);
46638             if (s == 0)
46639               return 1;
46640
46641             /* This should succeed, but does not for glibc-2.1.3.  */
46642             memset (&regex, 0, sizeof regex);
46643             s = re_compile_pattern ("{1", 2, &regex);
46644
46645             if (s)
46646               return 1;
46647
46648             /* The following example is derived from a problem report
46649                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
46650             memset (&regex, 0, sizeof regex);
46651             s = re_compile_pattern ("[an\371]*n", 7, &regex);
46652             if (s)
46653               return 1;
46654
46655             /* This should match, but does not for glibc-2.2.1.  */
46656             if (re_match (&regex, "an", 2, 0, &regs) != 2)
46657               return 1;
46658
46659             memset (&regex, 0, sizeof regex);
46660             s = re_compile_pattern ("x", 1, &regex);
46661             if (s)
46662               return 1;
46663
46664             /* glibc-2.2.93 does not work with a negative RANGE argument.  */
46665             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
46666               return 1;
46667
46668             /* The version of regex.c in older versions of gnulib
46669                ignored RE_ICASE.  Detect that problem too.  */
46670             re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
46671             memset (&regex, 0, sizeof regex);
46672             s = re_compile_pattern ("x", 1, &regex);
46673             if (s)
46674               return 1;
46675
46676             if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
46677               return 1;
46678
46679             /* Catch a bug reported by Vin Shelton in
46680                http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
46681                */
46682             re_set_syntax (RE_SYNTAX_POSIX_BASIC
46683                            & ~RE_CONTEXT_INVALID_DUP
46684                            & ~RE_NO_EMPTY_RANGES);
46685             memset (&regex, 0, sizeof regex);
46686             s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
46687             if (s)
46688               return 1;
46689
46690             /* REG_STARTEND was added to glibc on 2004-01-15.
46691                Reject older versions.  */
46692             if (! REG_STARTEND)
46693               return 1;
46694
46695             /* Reject hosts whose regoff_t values are too narrow.
46696                These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
46697                and 32-bit int.  */
46698             if (sizeof (regoff_t) < sizeof (ptrdiff_t)
46699                 || sizeof (regoff_t) < sizeof (ssize_t))
46700               return 1;
46701
46702             return 0;
46703   ;
46704   return 0;
46705 }
46706 _ACEOF
46707 if ac_fn_c_try_run "$LINENO"; then :
46708   gl_cv_func_re_compile_pattern_working=yes
46709 else
46710   gl_cv_func_re_compile_pattern_working=no
46711 fi
46712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46713   conftest.$ac_objext conftest.beam conftest.$ac_ext
46714 fi
46715
46716 fi
46717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
46718 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
46719     case $gl_cv_func_re_compile_pattern_working in #(
46720     yes) ac_use_included_regex=no;; #(
46721     no) ac_use_included_regex=yes;;
46722     esac
46723     ;;
46724   *) as_fn_error "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
46725     ;;
46726   esac
46727
46728   if test $ac_use_included_regex = yes; then
46729
46730 $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
46731
46732
46733 $as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
46734
46735
46736 $as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
46737
46738
46739 $as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
46740
46741
46742 $as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
46743
46744
46745 $as_echo "#define re_search rpl_re_search" >>confdefs.h
46746
46747
46748 $as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
46749
46750
46751 $as_echo "#define re_match rpl_re_match" >>confdefs.h
46752
46753
46754 $as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
46755
46756
46757 $as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
46758
46759
46760 $as_echo "#define re_comp rpl_re_comp" >>confdefs.h
46761
46762
46763 $as_echo "#define re_exec rpl_re_exec" >>confdefs.h
46764
46765
46766 $as_echo "#define regcomp rpl_regcomp" >>confdefs.h
46767
46768
46769 $as_echo "#define regexec rpl_regexec" >>confdefs.h
46770
46771
46772 $as_echo "#define regerror rpl_regerror" >>confdefs.h
46773
46774
46775 $as_echo "#define regfree rpl_regfree" >>confdefs.h
46776
46777
46778
46779
46780
46781
46782
46783
46784
46785   grgl_LIBOBJS="$grgl_LIBOBJS regex.$ac_objext"
46786
46787
46788
46789
46790
46791
46792   for ac_header in libintl.h
46793 do :
46794   ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
46795 if test "x$ac_cv_header_libintl_h" = x""yes; then :
46796   cat >>confdefs.h <<_ACEOF
46797 #define HAVE_LIBINTL_H 1
46798 _ACEOF
46799
46800 fi
46801
46802 done
46803
46804
46805   :
46806
46807
46808
46809
46810
46811
46812
46813
46814
46815
46816
46817   ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
46818 "
46819 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
46820   ac_have_decl=1
46821 else
46822   ac_have_decl=0
46823 fi
46824
46825 cat >>confdefs.h <<_ACEOF
46826 #define HAVE_DECL_ISBLANK $ac_have_decl
46827 _ACEOF
46828
46829
46830   fi
46831
46832   # Code from module warn-on-use:
46833   # Code from module wcrtomb:
46834
46835
46836
46837
46838
46839
46840
46841
46842
46843   :
46844
46845
46846
46847
46848
46849
46850   :
46851
46852
46853
46854
46855
46856   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
46857
46858
46859
46860      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
46861 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
46862 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
46863   $as_echo_n "(cached) " >&6
46864 else
46865
46866                   case "$host_os" in
46867               # Guess no on AIX and OSF/1.
46868         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
46869               # Guess yes otherwise.
46870         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
46871       esac
46872       if test $LOCALE_JA != none; then
46873         if test "$cross_compiling" = yes; then :
46874   :
46875 else
46876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46877 /* end confdefs.h.  */
46878
46879 #include <locale.h>
46880 #include <string.h>
46881 #include <wchar.h>
46882 int main ()
46883 {
46884   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
46885     {
46886       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
46887       mbstate_t state;
46888       wchar_t wc;
46889
46890       memset (&state, '\0', sizeof (mbstate_t));
46891       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
46892         if (mbsinit (&state))
46893           return 1;
46894     }
46895   return 0;
46896 }
46897 _ACEOF
46898 if ac_fn_c_try_run "$LINENO"; then :
46899   gl_cv_func_mbrtowc_incomplete_state=yes
46900 else
46901   gl_cv_func_mbrtowc_incomplete_state=no
46902 fi
46903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46904   conftest.$ac_objext conftest.beam conftest.$ac_ext
46905 fi
46906
46907       fi
46908
46909 fi
46910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
46911 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
46912
46913
46914
46915
46916      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
46917 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
46918 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
46919   $as_echo_n "(cached) " >&6
46920 else
46921
46922                   case "$host_os" in
46923                     # Guess no on Solaris 8.
46924         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
46925                     # Guess yes otherwise.
46926         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
46927       esac
46928       if test $LOCALE_ZH_CN != none; then
46929         if test "$cross_compiling" = yes; then :
46930   :
46931 else
46932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46933 /* end confdefs.h.  */
46934
46935 #include <locale.h>
46936 #include <stdlib.h>
46937 #include <string.h>
46938 #include <wchar.h>
46939 int main ()
46940 {
46941   /* This fails on Solaris 8:
46942      mbrtowc returns 2, and sets wc to 0x00F0.
46943      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
46944   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
46945     {
46946       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
46947       mbstate_t state;
46948       wchar_t wc;
46949
46950       memset (&state, '\0', sizeof (mbstate_t));
46951       if (mbrtowc (&wc, input + 3, 6, &state) != 4
46952           && mbtowc (&wc, input + 3, 6) == 4)
46953         return 1;
46954     }
46955   return 0;
46956 }
46957 _ACEOF
46958 if ac_fn_c_try_run "$LINENO"; then :
46959   gl_cv_func_mbrtowc_sanitycheck=yes
46960 else
46961   gl_cv_func_mbrtowc_sanitycheck=no
46962 fi
46963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46964   conftest.$ac_objext conftest.beam conftest.$ac_ext
46965 fi
46966
46967       fi
46968
46969 fi
46970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
46971 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
46972
46973     REPLACE_MBSTATE_T=0
46974     case "$gl_cv_func_mbrtowc_incomplete_state" in
46975       *yes) ;;
46976       *) REPLACE_MBSTATE_T=1 ;;
46977     esac
46978     case "$gl_cv_func_mbrtowc_sanitycheck" in
46979       *yes) ;;
46980       *) REPLACE_MBSTATE_T=1 ;;
46981     esac
46982   else
46983     REPLACE_MBSTATE_T=1
46984   fi
46985   if test $REPLACE_MBSTATE_T = 1; then
46986
46987     :
46988
46989   fi
46990
46991
46992
46993   :
46994
46995
46996
46997
46998
46999   if test $ac_cv_func_wcrtomb = no; then
47000     HAVE_WCRTOMB=0
47001   else
47002     if test $REPLACE_MBSTATE_T = 1; then
47003       REPLACE_WCRTOMB=1
47004     else
47005
47006
47007
47008
47009
47010              { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
47011 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
47012 if test "${gl_cv_func_wcrtomb_retval+set}" = set; then :
47013   $as_echo_n "(cached) " >&6
47014 else
47015
47016                               case "$host_os" in
47017                                      # Guess no on AIX 4, OSF/1 and Solaris.
47018             aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
47019                                      # Guess yes otherwise.
47020             *)                       gl_cv_func_wcrtomb_retval="guessing yes" ;;
47021           esac
47022           if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
47023             if test "$cross_compiling" = yes; then :
47024   :
47025 else
47026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47027 /* end confdefs.h.  */
47028
47029 #include <locale.h>
47030 #include <stdio.h>
47031 #include <string.h>
47032 #include <wchar.h>
47033 int main ()
47034 {
47035   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
47036     {
47037       if (wcrtomb (NULL, 0, NULL) != 1)
47038         return 1;
47039     }
47040   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
47041     {
47042       if (wcrtomb (NULL, 0, NULL) != 1)
47043         return 1;
47044     }
47045   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
47046     {
47047       if (wcrtomb (NULL, 0, NULL) != 1)
47048         return 1;
47049     }
47050   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
47051     {
47052       if (wcrtomb (NULL, 0, NULL) != 1)
47053         return 1;
47054     }
47055   return 0;
47056 }
47057 _ACEOF
47058 if ac_fn_c_try_run "$LINENO"; then :
47059   gl_cv_func_wcrtomb_retval=yes
47060 else
47061   gl_cv_func_wcrtomb_retval=no
47062 fi
47063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47064   conftest.$ac_objext conftest.beam conftest.$ac_ext
47065 fi
47066
47067           fi
47068
47069 fi
47070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
47071 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
47072       case "$gl_cv_func_wcrtomb_retval" in
47073         *yes) ;;
47074         *) REPLACE_WCRTOMB=1 ;;
47075       esac
47076     fi
47077   fi
47078   if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
47079
47080     :
47081
47082
47083
47084
47085
47086
47087
47088
47089
47090   grgl_LIBOBJS="$grgl_LIBOBJS wcrtomb.$ac_objext"
47091
47092
47093   :
47094
47095   fi
47096
47097
47098
47099
47100   GNULIB_WCRTOMB=1
47101
47102
47103
47104 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
47105
47106
47107
47108   # Code from module dummy:
47109   # End of code from modules
47110
47111
47112
47113
47114
47115
47116
47117
47118
47119   gltests_libdeps=
47120   gltests_ltlibdeps=
47121
47122
47123
47124
47125
47126
47127
47128
47129
47130   gl_source_base='tests'
47131   grgltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
47132
47133   gl_module_indicator_condition=$grgltests_WITNESS
47134
47135
47136
47137
47138
47139
47140
47141
47142
47143   LIBGREP_LIBDEPS="$gl_libdeps"
47144
47145   LIBGREP_LTLIBDEPS="$gl_ltlibdeps"
47146
47147
47148
47149    if true; then
47150   GL_COND_LIBTOOL_TRUE=
47151   GL_COND_LIBTOOL_FALSE='#'
47152 else
47153   GL_COND_LIBTOOL_TRUE='#'
47154   GL_COND_LIBTOOL_FALSE=
47155 fi
47156
47157   gl_cond_libtool=true
47158   gl_m4_base='libgettextpo/gnulib-m4'
47159
47160
47161
47162
47163
47164
47165
47166
47167
47168   gl_source_base='libgettextpo'
47169   # Code from module alloca-opt:
47170
47171
47172
47173
47174
47175   if test $ac_cv_func_alloca_works = no; then
47176
47177
47178   :
47179
47180
47181
47182
47183
47184
47185
47186
47187   :
47188
47189   fi
47190
47191   # Define an additional variable used in the Makefile substitution.
47192
47193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47194 /* end confdefs.h.  */
47195
47196 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
47197   Need own alloca
47198 #endif
47199
47200 _ACEOF
47201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47202   $EGREP "Need own alloca" >/dev/null 2>&1; then :
47203   ALLOCA_H=alloca.h
47204 else
47205   ALLOCA_H=
47206 fi
47207 rm -f conftest*
47208
47209
47210
47211   # Code from module arg-nonnull:
47212   # Code from module basename:
47213   # Code from module c++defs:
47214   # Code from module c-ctype:
47215   # Code from module c-strcase:
47216   # Code from module c-strcaseeq:
47217   # Code from module c-strstr:
47218   # Code from module concat-filename:
47219   # Code from module configmake:
47220   # Code from module diffseq:
47221   # Code from module errno:
47222
47223   # Code from module error:
47224
47225
47226
47227
47228
47229
47230
47231
47232
47233
47234
47235
47236
47237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
47238 $as_echo_n "checking for error_at_line... " >&6; }
47239 if test "${ac_cv_lib_error_at_line+set}" = set; then :
47240   $as_echo_n "(cached) " >&6
47241 else
47242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47243 /* end confdefs.h.  */
47244 #include <error.h>
47245 int
47246 main ()
47247 {
47248 error_at_line (0, 0, "", 0, "an error occurred");
47249   ;
47250   return 0;
47251 }
47252 _ACEOF
47253 if ac_fn_c_try_link "$LINENO"; then :
47254   ac_cv_lib_error_at_line=yes
47255 else
47256   ac_cv_lib_error_at_line=no
47257 fi
47258 rm -f core conftest.err conftest.$ac_objext \
47259     conftest$ac_exeext conftest.$ac_ext
47260 fi
47261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
47262 $as_echo "$ac_cv_lib_error_at_line" >&6; }
47263 if test $ac_cv_lib_error_at_line = no; then
47264
47265
47266
47267
47268
47269
47270
47271
47272   gtpo_LIBOBJS="$gtpo_LIBOBJS error.$ac_objext"
47273
47274 fi
47275
47276
47277
47278
47279   :
47280
47281
47282
47283
47284   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
47285
47286
47287
47288   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
47289
47290   # Code from module error-progname:
47291   # Code from module exitfail:
47292   # Code from module extensions:
47293   # Code from module fcntl-h:
47294
47295
47296
47297
47298
47299
47300
47301   :
47302
47303
47304
47305
47306
47307
47308
47309      if test $gl_cv_have_include_next = yes; then
47310        gl_cv_next_fcntl_h='<'fcntl.h'>'
47311      else
47312        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
47313 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
47314 if test "${gl_cv_next_fcntl_h+set}" = set; then :
47315   $as_echo_n "(cached) " >&6
47316 else
47317
47318           if test $ac_cv_header_fcntl_h = yes; then
47319             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47320 /* end confdefs.h.  */
47321 #include <fcntl.h>
47322
47323 _ACEOF
47324                                                                                                 case "$host_os" in
47325               aix*) gl_absname_cpp="$ac_cpp -C" ;;
47326               *)    gl_absname_cpp="$ac_cpp" ;;
47327             esac
47328                                                 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
47329                sed -n '\#/fcntl.h#{
47330                  s#.*"\(.*/fcntl.h\)".*#\1#
47331                  s#^/[^/]#//&#
47332                  p
47333                  q
47334                }'`'"'
47335           else
47336             gl_cv_next_fcntl_h='<'fcntl.h'>'
47337           fi
47338
47339 fi
47340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
47341 $as_echo "$gl_cv_next_fcntl_h" >&6; }
47342      fi
47343      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
47344
47345      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
47346        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
47347        gl_next_as_first_directive='<'fcntl.h'>'
47348      else
47349        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
47350        gl_next_as_first_directive=$gl_cv_next_fcntl_h
47351      fi
47352      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
47353
47354
47355
47356
47357
47358     for gl_func in fcntl openat; do
47359     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
47360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
47361 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
47362 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
47363   $as_echo_n "(cached) " >&6
47364 else
47365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47366 /* end confdefs.h.  */
47367 #include <fcntl.h>
47368
47369 int
47370 main ()
47371 {
47372 #undef $gl_func
47373   (void) $gl_func;
47374   ;
47375   return 0;
47376 }
47377 _ACEOF
47378 if ac_fn_c_try_compile "$LINENO"; then :
47379   eval "$as_gl_Symbol=yes"
47380 else
47381   eval "$as_gl_Symbol=no"
47382 fi
47383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47384 fi
47385 eval ac_res=\$$as_gl_Symbol
47386                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
47387 $as_echo "$ac_res" >&6; }
47388      eval as_val=\$$as_gl_Symbol
47389    if test "x$as_val" = x""yes; then :
47390   cat >>confdefs.h <<_ACEOF
47391 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
47392 _ACEOF
47393
47394                      eval ac_cv_have_decl_$gl_func=yes
47395 fi
47396       done
47397
47398
47399   # Code from module file-ostream:
47400   # Code from module filename:
47401   # Code from module float:
47402
47403
47404
47405   FLOAT_H=
47406   case "$host_os" in
47407     beos* | openbsd*)
47408       FLOAT_H=float.h
47409
47410
47411
47412
47413   :
47414
47415
47416
47417
47418
47419
47420
47421      if test $gl_cv_have_include_next = yes; then
47422        gl_cv_next_float_h='<'float.h'>'
47423      else
47424        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
47425 $as_echo_n "checking absolute name of <float.h>... " >&6; }
47426 if test "${gl_cv_next_float_h+set}" = set; then :
47427   $as_echo_n "(cached) " >&6
47428 else
47429
47430           if test $ac_cv_header_float_h = yes; then
47431             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47432 /* end confdefs.h.  */
47433 #include <float.h>
47434
47435 _ACEOF
47436                                                                                                 case "$host_os" in
47437               aix*) gl_absname_cpp="$ac_cpp -C" ;;
47438               *)    gl_absname_cpp="$ac_cpp" ;;
47439             esac
47440                                                 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
47441                sed -n '\#/float.h#{
47442                  s#.*"\(.*/float.h\)".*#\1#
47443                  s#^/[^/]#//&#
47444                  p
47445                  q
47446                }'`'"'
47447           else
47448             gl_cv_next_float_h='<'float.h'>'
47449           fi
47450
47451 fi
47452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
47453 $as_echo "$gl_cv_next_float_h" >&6; }
47454      fi
47455      NEXT_FLOAT_H=$gl_cv_next_float_h
47456
47457      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
47458        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
47459        gl_next_as_first_directive='<'float.h'>'
47460      else
47461        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
47462        gl_next_as_first_directive=$gl_cv_next_float_h
47463      fi
47464      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
47465
47466
47467
47468       ;;
47469   esac
47470
47471
47472   # Code from module fopen:
47473
47474
47475
47476   case "$host_os" in
47477     mingw* | pw*)
47478             REPLACE_FOPEN=1
47479             gl_cv_func_fopen_slash="guessing no"
47480       ;;
47481     *)
47482                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5
47483 $as_echo_n "checking whether fopen recognizes a trailing slash... " >&6; }
47484 if test "${gl_cv_func_fopen_slash+set}" = set; then :
47485   $as_echo_n "(cached) " >&6
47486 else
47487
47488           if test "$cross_compiling" = yes; then :
47489
47490              case "$host_os" in
47491                solaris2.[0-9]*) gl_cv_func_fopen_slash="guessing no" ;;
47492                hpux*)           gl_cv_func_fopen_slash="guessing no" ;;
47493                *)               gl_cv_func_fopen_slash="guessing yes" ;;
47494              esac
47495
47496 else
47497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47498 /* end confdefs.h.  */
47499
47500 #include <stddef.h>
47501 #include <stdio.h>
47502 int main ()
47503 {
47504   return fopen ("conftest.sl/", "w") != NULL;
47505 }
47506 _ACEOF
47507 if ac_fn_c_try_run "$LINENO"; then :
47508   gl_cv_func_fopen_slash=yes
47509 else
47510   gl_cv_func_fopen_slash=no
47511 fi
47512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47513   conftest.$ac_objext conftest.beam conftest.$ac_ext
47514 fi
47515
47516           rm -f conftest.sl
47517
47518 fi
47519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5
47520 $as_echo "$gl_cv_func_fopen_slash" >&6; }
47521       ;;
47522   esac
47523   case "$gl_cv_func_fopen_slash" in
47524     *no)
47525
47526 $as_echo "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
47527
47528       REPLACE_FOPEN=1
47529       ;;
47530   esac
47531   if test $REPLACE_FOPEN = 1; then
47532
47533
47534
47535
47536
47537
47538
47539
47540   gtpo_LIBOBJS="$gtpo_LIBOBJS fopen.$ac_objext"
47541
47542
47543
47544
47545   fi
47546
47547
47548
47549
47550   GNULIB_FOPEN=1
47551
47552
47553
47554 $as_echo "#define GNULIB_TEST_FOPEN 1" >>confdefs.h
47555
47556
47557
47558   # Code from module fstrcmp:
47559   # Code from module fwriteerror:
47560
47561
47562 cat >>confdefs.h <<_ACEOF
47563 #define GNULIB_FWRITEERROR 1
47564 _ACEOF
47565
47566
47567   # Code from module gcd:
47568   # Code from module getdelim:
47569
47570
47571
47572
47573
47574
47575   :
47576
47577
47578
47579
47580
47581
47582
47583   :
47584
47585
47586
47587
47588
47589   if test $ac_cv_func_getdelim = yes; then
47590         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
47591 $as_echo_n "checking for working getdelim function... " >&6; }
47592 if test "${gl_cv_func_working_getdelim+set}" = set; then :
47593   $as_echo_n "(cached) " >&6
47594 else
47595   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
47596     if test "$cross_compiling" = yes; then :
47597         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47598 /* end confdefs.h.  */
47599
47600 #include <features.h>
47601 #ifdef __GNU_LIBRARY__
47602  #if (__GLIBC__ >= 2)
47603   Lucky GNU user
47604  #endif
47605 #endif
47606
47607 _ACEOF
47608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47609   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
47610   gl_cv_func_working_getdelim=yes
47611 else
47612   gl_cv_func_working_getdelim=no
47613 fi
47614 rm -f conftest*
47615
47616
47617 else
47618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47619 /* end confdefs.h.  */
47620
47621 #    include <stdio.h>
47622 #    include <stdlib.h>
47623 #    include <string.h>
47624     int main ()
47625     {
47626       FILE *in = fopen ("./conftest.data", "r");
47627       if (!in)
47628         return 1;
47629       {
47630         /* Test result for a NULL buffer and a zero size.
47631            Based on a test program from Karl Heuer.  */
47632         char *line = NULL;
47633         size_t siz = 0;
47634         int len = getdelim (&line, &siz, '\n', in);
47635         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
47636           return 1;
47637       }
47638       {
47639         /* Test result for a NULL buffer and a non-zero size.
47640            This crashes on FreeBSD 8.0.  */
47641         char *line = NULL;
47642         size_t siz = (size_t)(~0) / 4;
47643         if (getdelim (&line, &siz, '\n', in) == -1)
47644           return 1;
47645       }
47646       return 0;
47647     }
47648
47649 _ACEOF
47650 if ac_fn_c_try_run "$LINENO"; then :
47651   gl_cv_func_working_getdelim=yes
47652 else
47653   gl_cv_func_working_getdelim=no
47654 fi
47655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47656   conftest.$ac_objext conftest.beam conftest.$ac_ext
47657 fi
47658
47659 fi
47660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
47661 $as_echo "$gl_cv_func_working_getdelim" >&6; }
47662   else
47663     gl_cv_func_working_getdelim=no
47664   fi
47665
47666   if test $ac_cv_have_decl_getdelim = no; then
47667     HAVE_DECL_GETDELIM=0
47668   fi
47669
47670   if test $gl_cv_func_working_getdelim = no; then
47671     if test $ac_cv_func_getdelim = yes; then
47672       REPLACE_GETDELIM=1
47673     fi
47674
47675
47676
47677
47678
47679
47680
47681
47682   gtpo_LIBOBJS="$gtpo_LIBOBJS getdelim.$ac_objext"
47683
47684
47685   for ac_func in flockfile funlockfile
47686 do :
47687   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47688 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
47689 eval as_val=\$$as_ac_var
47690    if test "x$as_val" = x""yes; then :
47691   cat >>confdefs.h <<_ACEOF
47692 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47693 _ACEOF
47694
47695 fi
47696 done
47697
47698   ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
47699 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
47700   ac_have_decl=1
47701 else
47702   ac_have_decl=0
47703 fi
47704
47705 cat >>confdefs.h <<_ACEOF
47706 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
47707 _ACEOF
47708
47709
47710   fi
47711
47712
47713
47714
47715   GNULIB_GETDELIM=1
47716
47717
47718
47719 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
47720
47721
47722
47723   # Code from module getline:
47724
47725
47726
47727
47728
47729
47730   :
47731
47732
47733
47734
47735
47736
47737   gl_getline_needs_run_time_check=no
47738   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
47739 if test "x$ac_cv_func_getline" = x""yes; then :
47740                    gl_getline_needs_run_time_check=yes
47741 else
47742   am_cv_func_working_getline=no
47743 fi
47744
47745   if test $gl_getline_needs_run_time_check = yes; then
47746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
47747 $as_echo_n "checking for working getline function... " >&6; }
47748 if test "${am_cv_func_working_getline+set}" = set; then :
47749   $as_echo_n "(cached) " >&6
47750 else
47751   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
47752     if test "$cross_compiling" = yes; then :
47753         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47754 /* end confdefs.h.  */
47755
47756 #include <features.h>
47757 #ifdef __GNU_LIBRARY__
47758  #if (__GLIBC__ >= 2)
47759   Lucky GNU user
47760  #endif
47761 #endif
47762
47763 _ACEOF
47764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47765   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
47766   am_cv_func_working_getline=yes
47767 else
47768   am_cv_func_working_getline=no
47769 fi
47770 rm -f conftest*
47771
47772
47773 else
47774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47775 /* end confdefs.h.  */
47776
47777 #    include <stdio.h>
47778 #    include <stdlib.h>
47779 #    include <string.h>
47780     int main ()
47781     {
47782       FILE *in = fopen ("./conftest.data", "r");
47783       if (!in)
47784         return 1;
47785       {
47786         /* Test result for a NULL buffer and a zero size.
47787            Based on a test program from Karl Heuer.  */
47788         char *line = NULL;
47789         size_t siz = 0;
47790         int len = getline (&line, &siz, in);
47791         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
47792           return 1;
47793       }
47794       {
47795         /* Test result for a NULL buffer and a non-zero size.
47796            This crashes on FreeBSD 8.0.  */
47797         char *line = NULL;
47798         size_t siz = (size_t)(~0) / 4;
47799         if (getline (&line, &siz, in) == -1)
47800           return 1;
47801       }
47802       return 0;
47803     }
47804
47805 _ACEOF
47806 if ac_fn_c_try_run "$LINENO"; then :
47807   am_cv_func_working_getline=yes
47808 else
47809   am_cv_func_working_getline=no
47810 fi
47811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47812   conftest.$ac_objext conftest.beam conftest.$ac_ext
47813 fi
47814
47815 fi
47816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
47817 $as_echo "$am_cv_func_working_getline" >&6; }
47818   fi
47819
47820   if test $ac_cv_have_decl_getline = no; then
47821     HAVE_DECL_GETLINE=0
47822   fi
47823
47824   if test $am_cv_func_working_getline = no; then
47825                 REPLACE_GETLINE=1
47826
47827
47828
47829
47830
47831
47832
47833
47834   gtpo_LIBOBJS="$gtpo_LIBOBJS getline.$ac_objext"
47835
47836
47837
47838
47839
47840
47841
47842
47843
47844   :
47845
47846
47847
47848
47849
47850
47851
47852   :
47853
47854
47855
47856
47857
47858   if test $ac_cv_func_getdelim = yes; then
47859         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
47860 $as_echo_n "checking for working getdelim function... " >&6; }
47861 if test "${gl_cv_func_working_getdelim+set}" = set; then :
47862   $as_echo_n "(cached) " >&6
47863 else
47864   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
47865     if test "$cross_compiling" = yes; then :
47866         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47867 /* end confdefs.h.  */
47868
47869 #include <features.h>
47870 #ifdef __GNU_LIBRARY__
47871  #if (__GLIBC__ >= 2)
47872   Lucky GNU user
47873  #endif
47874 #endif
47875
47876 _ACEOF
47877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47878   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
47879   gl_cv_func_working_getdelim=yes
47880 else
47881   gl_cv_func_working_getdelim=no
47882 fi
47883 rm -f conftest*
47884
47885
47886 else
47887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47888 /* end confdefs.h.  */
47889
47890 #    include <stdio.h>
47891 #    include <stdlib.h>
47892 #    include <string.h>
47893     int main ()
47894     {
47895       FILE *in = fopen ("./conftest.data", "r");
47896       if (!in)
47897         return 1;
47898       {
47899         /* Test result for a NULL buffer and a zero size.
47900            Based on a test program from Karl Heuer.  */
47901         char *line = NULL;
47902         size_t siz = 0;
47903         int len = getdelim (&line, &siz, '\n', in);
47904         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
47905           return 1;
47906       }
47907       {
47908         /* Test result for a NULL buffer and a non-zero size.
47909            This crashes on FreeBSD 8.0.  */
47910         char *line = NULL;
47911         size_t siz = (size_t)(~0) / 4;
47912         if (getdelim (&line, &siz, '\n', in) == -1)
47913           return 1;
47914       }
47915       return 0;
47916     }
47917
47918 _ACEOF
47919 if ac_fn_c_try_run "$LINENO"; then :
47920   gl_cv_func_working_getdelim=yes
47921 else
47922   gl_cv_func_working_getdelim=no
47923 fi
47924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47925   conftest.$ac_objext conftest.beam conftest.$ac_ext
47926 fi
47927
47928 fi
47929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
47930 $as_echo "$gl_cv_func_working_getdelim" >&6; }
47931   else
47932     gl_cv_func_working_getdelim=no
47933   fi
47934
47935   if test $ac_cv_have_decl_getdelim = no; then
47936     HAVE_DECL_GETDELIM=0
47937   fi
47938
47939   if test $gl_cv_func_working_getdelim = no; then
47940     if test $ac_cv_func_getdelim = yes; then
47941       REPLACE_GETDELIM=1
47942     fi
47943
47944
47945
47946
47947
47948
47949
47950
47951   gtpo_LIBOBJS="$gtpo_LIBOBJS getdelim.$ac_objext"
47952
47953
47954   for ac_func in flockfile funlockfile
47955 do :
47956   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47957 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
47958 eval as_val=\$$as_ac_var
47959    if test "x$as_val" = x""yes; then :
47960   cat >>confdefs.h <<_ACEOF
47961 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47962 _ACEOF
47963
47964 fi
47965 done
47966
47967   ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
47968 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
47969   ac_have_decl=1
47970 else
47971   ac_have_decl=0
47972 fi
47973
47974 cat >>confdefs.h <<_ACEOF
47975 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
47976 _ACEOF
47977
47978
47979   fi
47980
47981
47982   fi
47983
47984
47985
47986
47987   GNULIB_GETLINE=1
47988
47989
47990
47991 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
47992
47993
47994
47995   # Code from module gettext-h:
47996
47997
47998   # Code from module gperf:
47999   # Code from module hash:
48000   # Code from module havelib:
48001   # Code from module iconv:
48002
48003   # Code from module iconv-h:
48004
48005
48006
48007
48008
48009
48010
48011   :
48012
48013
48014
48015
48016
48017
48018
48019      if test $gl_cv_have_include_next = yes; then
48020        gl_cv_next_iconv_h='<'iconv.h'>'
48021      else
48022        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5
48023 $as_echo_n "checking absolute name of <iconv.h>... " >&6; }
48024 if test "${gl_cv_next_iconv_h+set}" = set; then :
48025   $as_echo_n "(cached) " >&6
48026 else
48027
48028           if test $ac_cv_header_iconv_h = yes; then
48029             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48030 /* end confdefs.h.  */
48031 #include <iconv.h>
48032
48033 _ACEOF
48034                                                                                                 case "$host_os" in
48035               aix*) gl_absname_cpp="$ac_cpp -C" ;;
48036               *)    gl_absname_cpp="$ac_cpp" ;;
48037             esac
48038                                                 gl_cv_next_iconv_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
48039                sed -n '\#/iconv.h#{
48040                  s#.*"\(.*/iconv.h\)".*#\1#
48041                  s#^/[^/]#//&#
48042                  p
48043                  q
48044                }'`'"'
48045           else
48046             gl_cv_next_iconv_h='<'iconv.h'>'
48047           fi
48048
48049 fi
48050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5
48051 $as_echo "$gl_cv_next_iconv_h" >&6; }
48052      fi
48053      NEXT_ICONV_H=$gl_cv_next_iconv_h
48054
48055      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
48056        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
48057        gl_next_as_first_directive='<'iconv.h'>'
48058      else
48059        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
48060        gl_next_as_first_directive=$gl_cv_next_iconv_h
48061      fi
48062      NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
48063
48064
48065
48066
48067   # Code from module iconv_open:
48068
48069
48070
48071
48072   if test "$am_cv_func_iconv" = yes; then
48073
48074
48075   ICONV_H='iconv.h'
48076
48077             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48078 /* end confdefs.h.  */
48079
48080       #include <iconv.h>
48081       #if defined _LIBICONV_VERSION || defined __GLIBC__
48082        gnu_iconv
48083       #endif
48084
48085 _ACEOF
48086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48087   $EGREP "gnu_iconv" >/dev/null 2>&1; then :
48088   gl_func_iconv_gnu=yes
48089 else
48090   gl_func_iconv_gnu=no
48091 fi
48092 rm -f conftest*
48093
48094     if test $gl_func_iconv_gnu = no; then
48095       iconv_flavor=
48096       case "$host_os" in
48097         aix*)     iconv_flavor=ICONV_FLAVOR_AIX ;;
48098         irix*)    iconv_flavor=ICONV_FLAVOR_IRIX ;;
48099         hpux*)    iconv_flavor=ICONV_FLAVOR_HPUX ;;
48100         osf*)     iconv_flavor=ICONV_FLAVOR_OSF ;;
48101         solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;;
48102       esac
48103       if test -n "$iconv_flavor"; then
48104
48105 cat >>confdefs.h <<_ACEOF
48106 #define ICONV_FLAVOR $iconv_flavor
48107 _ACEOF
48108
48109
48110
48111
48112   ICONV_H='iconv.h'
48113
48114   REPLACE_ICONV_OPEN=1
48115
48116
48117
48118
48119
48120
48121
48122
48123   gtpo_LIBOBJS="$gtpo_LIBOBJS iconv_open.$ac_objext"
48124
48125
48126       fi
48127     fi
48128   fi
48129
48130   # Code from module include_next:
48131   # Code from module inline:
48132
48133
48134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
48135 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
48136 if test "${gl_cv_c_inline_effective+set}" = set; then :
48137   $as_echo_n "(cached) " >&6
48138 else
48139   if test $ac_cv_c_inline = no; then
48140        gl_cv_c_inline_effective=no
48141      else
48142                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48143 /* end confdefs.h.  */
48144
48145 int
48146 main ()
48147 {
48148 #ifdef __NO_INLINE__
48149                #error "inline is not effective"
48150              #endif
48151   ;
48152   return 0;
48153 }
48154 _ACEOF
48155 if ac_fn_c_try_compile "$LINENO"; then :
48156   gl_cv_c_inline_effective=yes
48157 else
48158   gl_cv_c_inline_effective=no
48159 fi
48160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48161      fi
48162
48163 fi
48164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
48165 $as_echo "$gl_cv_c_inline_effective" >&6; }
48166   if test $gl_cv_c_inline_effective = yes; then
48167
48168 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
48169
48170   fi
48171
48172   # Code from module intprops:
48173   # Code from module libunistring-optional:
48174
48175
48176
48177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libunistring" >&5
48178 $as_echo_n "checking whether to use the included libunistring... " >&6; }
48179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_libunistring_use_included" >&5
48180 $as_echo "$gl_libunistring_use_included" >&6; }
48181
48182   # Code from module localcharset:
48183
48184
48185
48186
48187   :
48188
48189
48190
48191
48192
48193
48194
48195
48196
48197   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
48198
48199   # Code from module lock:
48200
48201
48202   if test "$gl_threads_api" = posix; then
48203     # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
48204     # pthread_rwlock_* functions.
48205     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
48206 "
48207 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
48208
48209 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
48210
48211 fi
48212
48213     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
48214     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48215 /* end confdefs.h.  */
48216 #include <pthread.h>
48217 int
48218 main ()
48219 {
48220 #if __FreeBSD__ == 4
48221 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
48222 #else
48223 int x = (int)PTHREAD_MUTEX_RECURSIVE;
48224 return !x;
48225 #endif
48226   ;
48227   return 0;
48228 }
48229 _ACEOF
48230 if ac_fn_c_try_compile "$LINENO"; then :
48231
48232 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
48233
48234 fi
48235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48236   fi
48237
48238
48239
48240
48241   # Code from module malloc-posix:
48242
48243
48244   if test $gl_cv_func_malloc_posix = yes; then
48245     HAVE_MALLOC_POSIX=1
48246
48247 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
48248
48249   else
48250
48251
48252
48253
48254
48255
48256
48257
48258   gtpo_LIBOBJS="$gtpo_LIBOBJS malloc.$ac_objext"
48259
48260     HAVE_MALLOC_POSIX=0
48261   fi
48262
48263
48264
48265
48266
48267   GNULIB_MALLOC_POSIX=1
48268
48269
48270
48271 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
48272
48273
48274
48275   # Code from module malloca:
48276
48277
48278
48279
48280   # Code from module mbrtowc:
48281
48282
48283
48284
48285
48286
48287
48288
48289
48290   :
48291
48292
48293
48294
48295
48296
48297   :
48298
48299
48300
48301
48302
48303   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
48304
48305
48306
48307      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
48308 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
48309 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
48310   $as_echo_n "(cached) " >&6
48311 else
48312
48313                   case "$host_os" in
48314               # Guess no on AIX and OSF/1.
48315         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
48316               # Guess yes otherwise.
48317         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
48318       esac
48319       if test $LOCALE_JA != none; then
48320         if test "$cross_compiling" = yes; then :
48321   :
48322 else
48323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48324 /* end confdefs.h.  */
48325
48326 #include <locale.h>
48327 #include <string.h>
48328 #include <wchar.h>
48329 int main ()
48330 {
48331   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
48332     {
48333       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
48334       mbstate_t state;
48335       wchar_t wc;
48336
48337       memset (&state, '\0', sizeof (mbstate_t));
48338       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
48339         if (mbsinit (&state))
48340           return 1;
48341     }
48342   return 0;
48343 }
48344 _ACEOF
48345 if ac_fn_c_try_run "$LINENO"; then :
48346   gl_cv_func_mbrtowc_incomplete_state=yes
48347 else
48348   gl_cv_func_mbrtowc_incomplete_state=no
48349 fi
48350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48351   conftest.$ac_objext conftest.beam conftest.$ac_ext
48352 fi
48353
48354       fi
48355
48356 fi
48357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
48358 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
48359
48360
48361
48362
48363      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
48364 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
48365 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
48366   $as_echo_n "(cached) " >&6
48367 else
48368
48369                   case "$host_os" in
48370                     # Guess no on Solaris 8.
48371         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
48372                     # Guess yes otherwise.
48373         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
48374       esac
48375       if test $LOCALE_ZH_CN != none; then
48376         if test "$cross_compiling" = yes; then :
48377   :
48378 else
48379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48380 /* end confdefs.h.  */
48381
48382 #include <locale.h>
48383 #include <stdlib.h>
48384 #include <string.h>
48385 #include <wchar.h>
48386 int main ()
48387 {
48388   /* This fails on Solaris 8:
48389      mbrtowc returns 2, and sets wc to 0x00F0.
48390      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
48391   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
48392     {
48393       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
48394       mbstate_t state;
48395       wchar_t wc;
48396
48397       memset (&state, '\0', sizeof (mbstate_t));
48398       if (mbrtowc (&wc, input + 3, 6, &state) != 4
48399           && mbtowc (&wc, input + 3, 6) == 4)
48400         return 1;
48401     }
48402   return 0;
48403 }
48404 _ACEOF
48405 if ac_fn_c_try_run "$LINENO"; then :
48406   gl_cv_func_mbrtowc_sanitycheck=yes
48407 else
48408   gl_cv_func_mbrtowc_sanitycheck=no
48409 fi
48410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48411   conftest.$ac_objext conftest.beam conftest.$ac_ext
48412 fi
48413
48414       fi
48415
48416 fi
48417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
48418 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
48419
48420     REPLACE_MBSTATE_T=0
48421     case "$gl_cv_func_mbrtowc_incomplete_state" in
48422       *yes) ;;
48423       *) REPLACE_MBSTATE_T=1 ;;
48424     esac
48425     case "$gl_cv_func_mbrtowc_sanitycheck" in
48426       *yes) ;;
48427       *) REPLACE_MBSTATE_T=1 ;;
48428     esac
48429   else
48430     REPLACE_MBSTATE_T=1
48431   fi
48432   if test $REPLACE_MBSTATE_T = 1; then
48433
48434     :
48435
48436   fi
48437
48438
48439
48440   :
48441
48442
48443
48444
48445
48446   if test $ac_cv_func_mbrtowc = no; then
48447     HAVE_MBRTOWC=0
48448   else
48449     if test $REPLACE_MBSTATE_T = 1; then
48450       REPLACE_MBRTOWC=1
48451     else
48452
48453
48454
48455      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
48456 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
48457 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then :
48458   $as_echo_n "(cached) " >&6
48459 else
48460
48461                   case "$host_os" in
48462               # Guess no on OSF/1.
48463         osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
48464               # Guess yes otherwise.
48465         *)    gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
48466       esac
48467       if test $LOCALE_FR_UTF8 != none; then
48468         if test "$cross_compiling" = yes; then :
48469   :
48470 else
48471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48472 /* end confdefs.h.  */
48473
48474 #include <locale.h>
48475 #include <string.h>
48476 #include <wchar.h>
48477 int main ()
48478 {
48479   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
48480     {
48481       mbstate_t state;
48482       wchar_t wc;
48483       int ret;
48484
48485       memset (&state, '\0', sizeof (mbstate_t));
48486       wc = (wchar_t) 0xBADFACE;
48487       mbrtowc (&wc, NULL, 5, &state);
48488       /* Check that wc was not modified.  */
48489       if (wc != (wchar_t) 0xBADFACE)
48490         return 1;
48491     }
48492   return 0;
48493 }
48494 _ACEOF
48495 if ac_fn_c_try_run "$LINENO"; then :
48496   gl_cv_func_mbrtowc_null_arg=yes
48497 else
48498   gl_cv_func_mbrtowc_null_arg=no
48499 fi
48500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48501   conftest.$ac_objext conftest.beam conftest.$ac_ext
48502 fi
48503
48504       fi
48505
48506 fi
48507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5
48508 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
48509
48510
48511
48512
48513
48514      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
48515 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
48516 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
48517   $as_echo_n "(cached) " >&6
48518 else
48519
48520                   case "$host_os" in
48521                           # Guess no on HP-UX and Solaris.
48522         hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
48523                           # Guess yes otherwise.
48524         *)                gl_cv_func_mbrtowc_retval="guessing yes" ;;
48525       esac
48526       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
48527         if test "$cross_compiling" = yes; then :
48528   :
48529 else
48530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48531 /* end confdefs.h.  */
48532
48533 #include <locale.h>
48534 #include <string.h>
48535 #include <wchar.h>
48536 int main ()
48537 {
48538   /* This fails on Solaris.  */
48539   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
48540     {
48541       char input[] = "B\303\274\303\237er"; /* "Büßer" */
48542       mbstate_t state;
48543       wchar_t wc;
48544
48545       memset (&state, '\0', sizeof (mbstate_t));
48546       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
48547         {
48548           input[1] = '\0';
48549           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
48550             return 1;
48551         }
48552     }
48553   /* This fails on HP-UX 11.11.  */
48554   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
48555     {
48556       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
48557       mbstate_t state;
48558       wchar_t wc;
48559
48560       memset (&state, '\0', sizeof (mbstate_t));
48561       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
48562         {
48563           input[1] = '\0';
48564           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
48565             return 1;
48566         }
48567     }
48568   return 0;
48569 }
48570 _ACEOF
48571 if ac_fn_c_try_run "$LINENO"; then :
48572   gl_cv_func_mbrtowc_retval=yes
48573 else
48574   gl_cv_func_mbrtowc_retval=no
48575 fi
48576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48577   conftest.$ac_objext conftest.beam conftest.$ac_ext
48578 fi
48579
48580       fi
48581
48582 fi
48583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
48584 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
48585
48586
48587
48588
48589      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
48590 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
48591 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
48592   $as_echo_n "(cached) " >&6
48593 else
48594
48595                   case "$host_os" in
48596                        # Guess no on Solaris 8 and 9.
48597         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
48598                        # Guess yes otherwise.
48599         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
48600       esac
48601       if test $LOCALE_ZH_CN != none; then
48602         if test "$cross_compiling" = yes; then :
48603   :
48604 else
48605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48606 /* end confdefs.h.  */
48607
48608 #include <locale.h>
48609 #include <string.h>
48610 #include <wchar.h>
48611 int main ()
48612 {
48613   /* This fails on Solaris 8 and 9.  */
48614   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
48615     {
48616       mbstate_t state;
48617       wchar_t wc;
48618
48619       memset (&state, '\0', sizeof (mbstate_t));
48620       if (mbrtowc (&wc, "", 1, &state) != 0)
48621         return 1;
48622     }
48623   return 0;
48624 }
48625 _ACEOF
48626 if ac_fn_c_try_run "$LINENO"; then :
48627   gl_cv_func_mbrtowc_nul_retval=yes
48628 else
48629   gl_cv_func_mbrtowc_nul_retval=no
48630 fi
48631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48632   conftest.$ac_objext conftest.beam conftest.$ac_ext
48633 fi
48634
48635       fi
48636
48637 fi
48638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
48639 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
48640
48641       case "$gl_cv_func_mbrtowc_null_arg" in
48642         *yes) ;;
48643         *)
48644 $as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h
48645
48646            REPLACE_MBRTOWC=1
48647            ;;
48648       esac
48649       case "$gl_cv_func_mbrtowc_retval" in
48650         *yes) ;;
48651         *)
48652 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
48653
48654            REPLACE_MBRTOWC=1
48655            ;;
48656       esac
48657       case "$gl_cv_func_mbrtowc_nul_retval" in
48658         *yes) ;;
48659         *)
48660 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
48661
48662            REPLACE_MBRTOWC=1
48663            ;;
48664       esac
48665     fi
48666   fi
48667   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
48668
48669     :
48670
48671
48672
48673
48674
48675
48676
48677
48678
48679   gtpo_LIBOBJS="$gtpo_LIBOBJS mbrtowc.$ac_objext"
48680
48681
48682   :
48683
48684   fi
48685
48686
48687
48688
48689   GNULIB_MBRTOWC=1
48690
48691
48692
48693 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
48694
48695
48696
48697   # Code from module mbsinit:
48698
48699
48700
48701
48702
48703
48704
48705
48706
48707   :
48708
48709
48710
48711
48712
48713
48714   :
48715
48716
48717
48718
48719
48720   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
48721
48722
48723
48724      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
48725 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
48726 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
48727   $as_echo_n "(cached) " >&6
48728 else
48729
48730                   case "$host_os" in
48731               # Guess no on AIX and OSF/1.
48732         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
48733               # Guess yes otherwise.
48734         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
48735       esac
48736       if test $LOCALE_JA != none; then
48737         if test "$cross_compiling" = yes; then :
48738   :
48739 else
48740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48741 /* end confdefs.h.  */
48742
48743 #include <locale.h>
48744 #include <string.h>
48745 #include <wchar.h>
48746 int main ()
48747 {
48748   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
48749     {
48750       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
48751       mbstate_t state;
48752       wchar_t wc;
48753
48754       memset (&state, '\0', sizeof (mbstate_t));
48755       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
48756         if (mbsinit (&state))
48757           return 1;
48758     }
48759   return 0;
48760 }
48761 _ACEOF
48762 if ac_fn_c_try_run "$LINENO"; then :
48763   gl_cv_func_mbrtowc_incomplete_state=yes
48764 else
48765   gl_cv_func_mbrtowc_incomplete_state=no
48766 fi
48767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48768   conftest.$ac_objext conftest.beam conftest.$ac_ext
48769 fi
48770
48771       fi
48772
48773 fi
48774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
48775 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
48776
48777
48778
48779
48780      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
48781 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
48782 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
48783   $as_echo_n "(cached) " >&6
48784 else
48785
48786                   case "$host_os" in
48787                     # Guess no on Solaris 8.
48788         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
48789                     # Guess yes otherwise.
48790         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
48791       esac
48792       if test $LOCALE_ZH_CN != none; then
48793         if test "$cross_compiling" = yes; then :
48794   :
48795 else
48796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48797 /* end confdefs.h.  */
48798
48799 #include <locale.h>
48800 #include <stdlib.h>
48801 #include <string.h>
48802 #include <wchar.h>
48803 int main ()
48804 {
48805   /* This fails on Solaris 8:
48806      mbrtowc returns 2, and sets wc to 0x00F0.
48807      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
48808   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
48809     {
48810       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
48811       mbstate_t state;
48812       wchar_t wc;
48813
48814       memset (&state, '\0', sizeof (mbstate_t));
48815       if (mbrtowc (&wc, input + 3, 6, &state) != 4
48816           && mbtowc (&wc, input + 3, 6) == 4)
48817         return 1;
48818     }
48819   return 0;
48820 }
48821 _ACEOF
48822 if ac_fn_c_try_run "$LINENO"; then :
48823   gl_cv_func_mbrtowc_sanitycheck=yes
48824 else
48825   gl_cv_func_mbrtowc_sanitycheck=no
48826 fi
48827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48828   conftest.$ac_objext conftest.beam conftest.$ac_ext
48829 fi
48830
48831       fi
48832
48833 fi
48834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
48835 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
48836
48837     REPLACE_MBSTATE_T=0
48838     case "$gl_cv_func_mbrtowc_incomplete_state" in
48839       *yes) ;;
48840       *) REPLACE_MBSTATE_T=1 ;;
48841     esac
48842     case "$gl_cv_func_mbrtowc_sanitycheck" in
48843       *yes) ;;
48844       *) REPLACE_MBSTATE_T=1 ;;
48845     esac
48846   else
48847     REPLACE_MBSTATE_T=1
48848   fi
48849   if test $REPLACE_MBSTATE_T = 1; then
48850
48851     :
48852
48853   fi
48854
48855
48856
48857   :
48858
48859
48860
48861
48862
48863   if test $ac_cv_func_mbsinit = no; then
48864     HAVE_MBSINIT=0
48865   else
48866     if test $REPLACE_MBSTATE_T = 1; then
48867       REPLACE_MBSINIT=1
48868     fi
48869   fi
48870   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
48871
48872     :
48873
48874
48875
48876
48877
48878
48879
48880
48881
48882   gtpo_LIBOBJS="$gtpo_LIBOBJS mbsinit.$ac_objext"
48883
48884
48885   :
48886
48887   fi
48888
48889
48890
48891
48892   GNULIB_MBSINIT=1
48893
48894
48895
48896 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
48897
48898
48899
48900   # Code from module mbswidth:
48901
48902
48903   :
48904
48905
48906
48907
48908
48909
48910   :
48911
48912
48913
48914
48915
48916
48917
48918
48919
48920       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbswidth is declared in <wchar.h>" >&5
48921 $as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
48922 if test "${ac_cv_have_decl_mbswidth+set}" = set; then :
48923   $as_echo_n "(cached) " >&6
48924 else
48925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48926 /* end confdefs.h.  */
48927
48928 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
48929    <wchar.h>.
48930    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
48931    before <wchar.h>.  */
48932 #include <stddef.h>
48933 #include <stdio.h>
48934 #include <time.h>
48935 #include <wchar.h>
48936
48937 int
48938 main ()
48939 {
48940
48941   char *p = (char *) mbswidth;
48942   return !p;
48943
48944   ;
48945   return 0;
48946 }
48947 _ACEOF
48948 if ac_fn_c_try_compile "$LINENO"; then :
48949   ac_cv_have_decl_mbswidth=yes
48950 else
48951   ac_cv_have_decl_mbswidth=no
48952 fi
48953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48954 fi
48955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_mbswidth" >&5
48956 $as_echo "$ac_cv_have_decl_mbswidth" >&6; }
48957   if test $ac_cv_have_decl_mbswidth = yes; then
48958     ac_val=1
48959   else
48960     ac_val=0
48961   fi
48962
48963 cat >>confdefs.h <<_ACEOF
48964 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
48965 _ACEOF
48966
48967
48968
48969
48970    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
48971 $as_echo_n "checking for mbstate_t... " >&6; }
48972 if test "${ac_cv_type_mbstate_t+set}" = set; then :
48973   $as_echo_n "(cached) " >&6
48974 else
48975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48976 /* end confdefs.h.  */
48977 $ac_includes_default
48978 #           include <wchar.h>
48979 int
48980 main ()
48981 {
48982 mbstate_t x; return sizeof x;
48983   ;
48984   return 0;
48985 }
48986 _ACEOF
48987 if ac_fn_c_try_compile "$LINENO"; then :
48988   ac_cv_type_mbstate_t=yes
48989 else
48990   ac_cv_type_mbstate_t=no
48991 fi
48992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48993 fi
48994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
48995 $as_echo "$ac_cv_type_mbstate_t" >&6; }
48996    if test $ac_cv_type_mbstate_t = yes; then
48997
48998 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
48999
49000    else
49001
49002 $as_echo "#define mbstate_t int" >>confdefs.h
49003
49004    fi
49005
49006
49007   # Code from module memchr:
49008
49009
49010
49011
49012   GNULIB_MEMCHR=1
49013
49014
49015
49016 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
49017
49018
49019
49020   # Code from module minmax:
49021
49022
49023
49024   # Code from module moo:
49025
49026
49027           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler is actually a C++ compiler" >&5
49028 $as_echo_n "checking whether the C compiler is actually a C++ compiler... " >&6; }
49029 if test "${gl_cv_c_cplusplus+set}" = set; then :
49030   $as_echo_n "(cached) " >&6
49031 else
49032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49033 /* end confdefs.h.  */
49034
49035 #ifdef __cplusplus
49036   Is c++
49037 #endif
49038
49039 _ACEOF
49040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49041   $EGREP "Is c++" >/dev/null 2>&1; then :
49042   gl_cv_c_cplusplus=yes
49043 else
49044   gl_cv_c_cplusplus=no
49045 fi
49046 rm -f conftest*
49047
49048 fi
49049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_cplusplus" >&5
49050 $as_echo "$gl_cv_c_cplusplus" >&6; }
49051   if test $gl_cv_c_cplusplus = yes; then
49052
49053 $as_echo "#define IS_CPLUSPLUS 1" >>confdefs.h
49054
49055   fi
49056
49057   # Code from module multiarch:
49058
49059   # Code from module obstack:
49060
49061
49062
49063
49064
49065
49066
49067
49068
49069
49070
49071
49072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
49073 $as_echo_n "checking for obstacks... " >&6; }
49074 if test "${ac_cv_func_obstack+set}" = set; then :
49075   $as_echo_n "(cached) " >&6
49076 else
49077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49078 /* end confdefs.h.  */
49079 $ac_includes_default
49080                       #include "obstack.h"
49081 int
49082 main ()
49083 {
49084 struct obstack mem;
49085                        #define obstack_chunk_alloc malloc
49086                        #define obstack_chunk_free free
49087                        obstack_init (&mem);
49088                        obstack_free (&mem, 0);
49089   ;
49090   return 0;
49091 }
49092 _ACEOF
49093 if ac_fn_c_try_link "$LINENO"; then :
49094   ac_cv_func_obstack=yes
49095 else
49096   ac_cv_func_obstack=no
49097 fi
49098 rm -f core conftest.err conftest.$ac_objext \
49099     conftest$ac_exeext conftest.$ac_ext
49100 fi
49101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
49102 $as_echo "$ac_cv_func_obstack" >&6; }
49103 if test $ac_cv_func_obstack = yes; then
49104
49105 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
49106
49107 else
49108
49109
49110
49111
49112
49113
49114
49115
49116   gtpo_LIBOBJS="$gtpo_LIBOBJS obstack.$ac_objext"
49117
49118 fi
49119
49120     # Code from module open:
49121
49122
49123   case "$host_os" in
49124     mingw* | pw*)
49125
49126
49127   REPLACE_OPEN=1
49128
49129
49130
49131
49132
49133
49134
49135
49136   gtpo_LIBOBJS="$gtpo_LIBOBJS open.$ac_objext"
49137
49138
49139
49140
49141   :
49142
49143
49144       ;;
49145     *)
49146
49147   :
49148
49149
49150
49151
49152
49153       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
49154 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
49155 if test "${gl_cv_func_open_slash+set}" = set; then :
49156   $as_echo_n "(cached) " >&6
49157 else
49158   # Assume that if we have lstat, we can also check symlinks.
49159           if test $ac_cv_func_lstat = yes; then
49160             touch conftest.tmp
49161             ln -s conftest.tmp conftest.lnk
49162           fi
49163           if test "$cross_compiling" = yes; then :
49164
49165              case "$host_os" in
49166                freebsd*)        gl_cv_func_open_slash="guessing no" ;;
49167                solaris2.[0-9]*) gl_cv_func_open_slash="guessing no" ;;
49168                hpux*)           gl_cv_func_open_slash="guessing no" ;;
49169                *)               gl_cv_func_open_slash="guessing yes" ;;
49170              esac
49171
49172 else
49173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49174 /* end confdefs.h.  */
49175
49176 #include <fcntl.h>
49177 #if HAVE_UNISTD_H
49178 # include <unistd.h>
49179 #endif
49180 int main ()
49181 {
49182 #if HAVE_LSTAT
49183   if (open ("conftest.lnk/", O_RDONLY) != -1) return 2;
49184 #endif
49185   return open ("conftest.sl/", O_CREAT, 0600) >= 0;
49186 }
49187 _ACEOF
49188 if ac_fn_c_try_run "$LINENO"; then :
49189   gl_cv_func_open_slash=yes
49190 else
49191   gl_cv_func_open_slash=no
49192 fi
49193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49194   conftest.$ac_objext conftest.beam conftest.$ac_ext
49195 fi
49196
49197           rm -f conftest.sl conftest.tmp conftest.lnk
49198
49199 fi
49200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
49201 $as_echo "$gl_cv_func_open_slash" >&6; }
49202       case "$gl_cv_func_open_slash" in
49203         *no)
49204
49205 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
49206
49207
49208
49209   REPLACE_OPEN=1
49210
49211
49212
49213
49214
49215
49216
49217
49218   gtpo_LIBOBJS="$gtpo_LIBOBJS open.$ac_objext"
49219
49220
49221
49222
49223   :
49224
49225
49226           ;;
49227       esac
49228       ;;
49229   esac
49230
49231
49232
49233
49234   GNULIB_OPEN=1
49235
49236
49237
49238 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
49239
49240
49241
49242   # Code from module ostream:
49243   # Code from module progname:
49244   ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
49245 "
49246 if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then :
49247   ac_have_decl=1
49248 else
49249   ac_have_decl=0
49250 fi
49251
49252 cat >>confdefs.h <<_ACEOF
49253 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
49254 _ACEOF
49255
49256   ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
49257 "
49258 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then :
49259   ac_have_decl=1
49260 else
49261   ac_have_decl=0
49262 fi
49263
49264 cat >>confdefs.h <<_ACEOF
49265 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
49266 _ACEOF
49267
49268   # Code from module realloc-posix:
49269
49270
49271   if test $gl_cv_func_malloc_posix = yes; then
49272     HAVE_REALLOC_POSIX=1
49273
49274 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
49275
49276   else
49277
49278
49279
49280
49281
49282
49283
49284
49285   gtpo_LIBOBJS="$gtpo_LIBOBJS realloc.$ac_objext"
49286
49287     HAVE_REALLOC_POSIX=0
49288   fi
49289
49290
49291
49292
49293
49294   GNULIB_REALLOC_POSIX=1
49295
49296
49297
49298 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
49299
49300
49301
49302   # Code from module relocatable-lib:
49303
49304
49305   if test $RELOCATABLE = yes; then
49306
49307
49308
49309
49310
49311
49312
49313
49314   gtpo_LIBOBJS="$gtpo_LIBOBJS relocatable.$ac_objext"
49315
49316   fi
49317
49318   # Code from module signal:
49319
49320
49321
49322
49323
49324
49325   :
49326
49327
49328
49329
49330
49331
49332
49333      if test $gl_cv_have_include_next = yes; then
49334        gl_cv_next_signal_h='<'signal.h'>'
49335      else
49336        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
49337 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
49338 if test "${gl_cv_next_signal_h+set}" = set; then :
49339   $as_echo_n "(cached) " >&6
49340 else
49341
49342           if test $ac_cv_header_signal_h = yes; then
49343             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49344 /* end confdefs.h.  */
49345 #include <signal.h>
49346
49347 _ACEOF
49348                                                                                                 case "$host_os" in
49349               aix*) gl_absname_cpp="$ac_cpp -C" ;;
49350               *)    gl_absname_cpp="$ac_cpp" ;;
49351             esac
49352                                                 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
49353                sed -n '\#/signal.h#{
49354                  s#.*"\(.*/signal.h\)".*#\1#
49355                  s#^/[^/]#//&#
49356                  p
49357                  q
49358                }'`'"'
49359           else
49360             gl_cv_next_signal_h='<'signal.h'>'
49361           fi
49362
49363 fi
49364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
49365 $as_echo "$gl_cv_next_signal_h" >&6; }
49366      fi
49367      NEXT_SIGNAL_H=$gl_cv_next_signal_h
49368
49369      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
49370        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
49371        gl_next_as_first_directive='<'signal.h'>'
49372      else
49373        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
49374        gl_next_as_first_directive=$gl_cv_next_signal_h
49375      fi
49376      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
49377
49378
49379
49380 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
49381 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
49382   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
49383 #include <signal.h>
49384
49385 "
49386 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
49387
49388 else
49389   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
49390 fi
49391
49392
49393
49394
49395     for gl_func in sigaction sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
49396     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
49397     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
49398 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
49399 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
49400   $as_echo_n "(cached) " >&6
49401 else
49402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49403 /* end confdefs.h.  */
49404 #include <signal.h>
49405
49406 int
49407 main ()
49408 {
49409 #undef $gl_func
49410   (void) $gl_func;
49411   ;
49412   return 0;
49413 }
49414 _ACEOF
49415 if ac_fn_c_try_compile "$LINENO"; then :
49416   eval "$as_gl_Symbol=yes"
49417 else
49418   eval "$as_gl_Symbol=no"
49419 fi
49420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49421 fi
49422 eval ac_res=\$$as_gl_Symbol
49423                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
49424 $as_echo "$ac_res" >&6; }
49425      eval as_val=\$$as_gl_Symbol
49426    if test "x$as_val" = x""yes; then :
49427   cat >>confdefs.h <<_ACEOF
49428 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
49429 _ACEOF
49430
49431                      eval ac_cv_have_decl_$gl_func=yes
49432 fi
49433       done
49434
49435
49436   # Code from module sigpipe:
49437
49438
49439
49440
49441
49442 cat >>confdefs.h <<_ACEOF
49443 #define GNULIB_SIGPIPE 1
49444 _ACEOF
49445
49446
49447
49448   GNULIB_SIGNAL_H_SIGPIPE=1
49449
49450   GNULIB_STDIO_H_SIGPIPE=1
49451
49452   GNULIB_UNISTD_H_SIGPIPE=1
49453   # Code from module sigprocmask:
49454
49455
49456   signals_not_posix=
49457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49458 /* end confdefs.h.  */
49459 #include <signal.h>
49460
49461 _ACEOF
49462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49463   $EGREP "sigset_t" >/dev/null 2>&1; then :
49464
49465 else
49466   signals_not_posix=1
49467 fi
49468 rm -f conftest*
49469
49470   if test -z "$signals_not_posix"; then
49471     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
49472 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
49473   gl_cv_func_sigprocmask=1
49474 fi
49475
49476   fi
49477   if test -z "$gl_cv_func_sigprocmask"; then
49478     HAVE_POSIX_SIGNALBLOCKING=0
49479
49480
49481
49482
49483
49484
49485
49486
49487   gtpo_LIBOBJS="$gtpo_LIBOBJS sigprocmask.$ac_objext"
49488
49489
49490
49491   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
49492 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
49493 #include <sys/types.h>
49494 "
49495 if test "x$ac_cv_type_sigset_t" = x""yes; then :
49496
49497 cat >>confdefs.h <<_ACEOF
49498 #define HAVE_SIGSET_T 1
49499 _ACEOF
49500
49501 gl_cv_type_sigset_t=yes
49502 else
49503   gl_cv_type_sigset_t=no
49504 fi
49505
49506   if test $gl_cv_type_sigset_t != yes; then
49507     HAVE_SIGSET_T=0
49508   fi
49509
49510
49511   fi
49512
49513
49514
49515
49516   GNULIB_SIGPROCMASK=1
49517
49518
49519
49520 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
49521
49522
49523
49524   # Code from module size_max:
49525
49526   for ac_header in stdint.h
49527 do :
49528   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
49529 if test "x$ac_cv_header_stdint_h" = x""yes; then :
49530   cat >>confdefs.h <<_ACEOF
49531 #define HAVE_STDINT_H 1
49532 _ACEOF
49533
49534 fi
49535
49536 done
49537
49538     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
49539 $as_echo_n "checking for SIZE_MAX... " >&6; }
49540 if test "${gl_cv_size_max+set}" = set; then :
49541   $as_echo_n "(cached) " >&6
49542 else
49543
49544     gl_cv_size_max=
49545     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49546 /* end confdefs.h.  */
49547
49548 #include <limits.h>
49549 #if HAVE_STDINT_H
49550 #include <stdint.h>
49551 #endif
49552 #ifdef SIZE_MAX
49553 Found it
49554 #endif
49555
49556 _ACEOF
49557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49558   $EGREP "Found it" >/dev/null 2>&1; then :
49559   gl_cv_size_max=yes
49560 fi
49561 rm -f conftest*
49562
49563     if test -z "$gl_cv_size_max"; then
49564                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
49565 #include <limits.h>"; then :
49566
49567 else
49568   size_t_bits_minus_1=
49569 fi
49570
49571       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
49572
49573 else
49574   fits_in_uint=
49575 fi
49576
49577       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
49578         if test $fits_in_uint = 1; then
49579                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49580 /* end confdefs.h.  */
49581 #include <stddef.h>
49582             extern size_t foo;
49583             extern unsigned long foo;
49584
49585 int
49586 main ()
49587 {
49588
49589   ;
49590   return 0;
49591 }
49592 _ACEOF
49593 if ac_fn_c_try_compile "$LINENO"; then :
49594   fits_in_uint=0
49595 fi
49596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49597         fi
49598                                 if test $fits_in_uint = 1; then
49599           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
49600         else
49601           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
49602         fi
49603       else
49604                 gl_cv_size_max='((size_t)~(size_t)0)'
49605       fi
49606     fi
49607
49608 fi
49609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
49610 $as_echo "$gl_cv_size_max" >&6; }
49611   if test "$gl_cv_size_max" != yes; then
49612
49613 cat >>confdefs.h <<_ACEOF
49614 #define SIZE_MAX $gl_cv_size_max
49615 _ACEOF
49616
49617   fi
49618
49619
49620   # Code from module stat:
49621
49622
49623
49624
49625   :
49626
49627
49628
49629
49630
49631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
49632 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
49633 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
49634   $as_echo_n "(cached) " >&6
49635 else
49636   if test "$cross_compiling" = yes; then :
49637   case $host_os in
49638             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
49639             *) gl_cv_func_stat_dir_slash="guessing yes";;
49640           esac
49641 else
49642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49643 /* end confdefs.h.  */
49644 #include <sys/stat.h>
49645
49646 int
49647 main ()
49648 {
49649 struct stat st; return stat (".", &st) != stat ("./", &st);
49650   ;
49651   return 0;
49652 }
49653 _ACEOF
49654 if ac_fn_c_try_run "$LINENO"; then :
49655   gl_cv_func_stat_dir_slash=yes
49656 else
49657   gl_cv_func_stat_dir_slash=no
49658 fi
49659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49660   conftest.$ac_objext conftest.beam conftest.$ac_ext
49661 fi
49662
49663 fi
49664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
49665 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
49666       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
49667 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
49668 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
49669   $as_echo_n "(cached) " >&6
49670 else
49671   touch conftest.tmp
49672        # Assume that if we have lstat, we can also check symlinks.
49673        if test $ac_cv_func_lstat = yes; then
49674          ln -s conftest.tmp conftest.lnk
49675        fi
49676        if test "$cross_compiling" = yes; then :
49677   gl_cv_func_stat_file_slash="guessing no"
49678 else
49679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49680 /* end confdefs.h.  */
49681 #include <sys/stat.h>
49682
49683 int
49684 main ()
49685 {
49686 struct stat st;
49687       if (!stat ("conftest.tmp/", &st)) return 1;
49688 #if HAVE_LSTAT
49689       if (!stat ("conftest.lnk/", &st)) return 2;
49690 #endif
49691
49692   ;
49693   return 0;
49694 }
49695 _ACEOF
49696 if ac_fn_c_try_run "$LINENO"; then :
49697   gl_cv_func_stat_file_slash=yes
49698 else
49699   gl_cv_func_stat_file_slash=no
49700 fi
49701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49702   conftest.$ac_objext conftest.beam conftest.$ac_ext
49703 fi
49704
49705        rm -f conftest.tmp conftest.lnk
49706 fi
49707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
49708 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
49709   case $gl_cv_func_stat_dir_slash in
49710     *no) REPLACE_STAT=1
49711
49712 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
49713 ;;
49714   esac
49715   case $gl_cv_func_stat_file_slash in
49716     *no) REPLACE_STAT=1
49717
49718 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
49719 ;;
49720   esac
49721   if test $REPLACE_STAT = 1; then
49722
49723
49724
49725
49726
49727
49728
49729
49730   gtpo_LIBOBJS="$gtpo_LIBOBJS stat.$ac_objext"
49731
49732
49733   fi
49734
49735
49736
49737
49738   GNULIB_STAT=1
49739
49740
49741
49742 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
49743
49744
49745
49746   # Code from module stdarg:
49747
49748   STDARG_H='';
49749   NEXT_STDARG_H='<stdarg.h>';
49750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
49751 $as_echo_n "checking for va_copy... " >&6; }
49752   if test "${gl_cv_func_va_copy+set}" = set; then :
49753   $as_echo_n "(cached) " >&6
49754 else
49755
49756     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49757 /* end confdefs.h.  */
49758 #include <stdarg.h>
49759 int
49760 main ()
49761 {
49762
49763 #ifndef va_copy
49764 void (*func) (va_list, va_list) = va_copy;
49765 #endif
49766
49767   ;
49768   return 0;
49769 }
49770 _ACEOF
49771 if ac_fn_c_try_compile "$LINENO"; then :
49772   gl_cv_func_va_copy=yes
49773 else
49774   gl_cv_func_va_copy=no
49775 fi
49776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49777 fi
49778
49779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
49780 $as_echo "$gl_cv_func_va_copy" >&6; }
49781   if test $gl_cv_func_va_copy = no; then
49782                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49783 /* end confdefs.h.  */
49784 #if defined _AIX && !defined __GNUC__
49785         AIX vaccine
49786        #endif
49787
49788 _ACEOF
49789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49790   $EGREP "vaccine" >/dev/null 2>&1; then :
49791   gl_aixcc=yes
49792 else
49793   gl_aixcc=no
49794 fi
49795 rm -f conftest*
49796
49797     if test $gl_aixcc = yes; then
49798             STDARG_H=stdarg.h
49799
49800
49801
49802
49803   :
49804
49805
49806
49807
49808
49809
49810
49811      if test $gl_cv_have_include_next = yes; then
49812        gl_cv_next_stdarg_h='<'stdarg.h'>'
49813      else
49814        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
49815 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
49816 if test "${gl_cv_next_stdarg_h+set}" = set; then :
49817   $as_echo_n "(cached) " >&6
49818 else
49819
49820           if test $ac_cv_header_stdarg_h = yes; then
49821             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49822 /* end confdefs.h.  */
49823 #include <stdarg.h>
49824
49825 _ACEOF
49826                                                                                                 case "$host_os" in
49827               aix*) gl_absname_cpp="$ac_cpp -C" ;;
49828               *)    gl_absname_cpp="$ac_cpp" ;;
49829             esac
49830                                                 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
49831                sed -n '\#/stdarg.h#{
49832                  s#.*"\(.*/stdarg.h\)".*#\1#
49833                  s#^/[^/]#//&#
49834                  p
49835                  q
49836                }'`'"'
49837           else
49838             gl_cv_next_stdarg_h='<'stdarg.h'>'
49839           fi
49840
49841 fi
49842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
49843 $as_echo "$gl_cv_next_stdarg_h" >&6; }
49844      fi
49845      NEXT_STDARG_H=$gl_cv_next_stdarg_h
49846
49847      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
49848        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
49849        gl_next_as_first_directive='<'stdarg.h'>'
49850      else
49851        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
49852        gl_next_as_first_directive=$gl_cv_next_stdarg_h
49853      fi
49854      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
49855
49856
49857
49858             if test "$gl_cv_next_stdarg_h" = '""'; then
49859         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
49860         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
49861       fi
49862     else
49863
49864   saved_as_echo_n="$as_echo_n"
49865   as_echo_n=':'
49866   if test "${gl_cv_func___va_copy+set}" = set; then :
49867   $as_echo_n "(cached) " >&6
49868 else
49869
49870         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49871 /* end confdefs.h.  */
49872 #include <stdarg.h>
49873 int
49874 main ()
49875 {
49876
49877 #ifndef __va_copy
49878 error, bail out
49879 #endif
49880
49881   ;
49882   return 0;
49883 }
49884 _ACEOF
49885 if ac_fn_c_try_compile "$LINENO"; then :
49886   gl_cv_func___va_copy=yes
49887 else
49888   gl_cv_func___va_copy=no
49889 fi
49890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49891 fi
49892
49893   as_echo_n="$saved_as_echo_n"
49894
49895       if test $gl_cv_func___va_copy = yes; then
49896
49897 $as_echo "#define va_copy __va_copy" >>confdefs.h
49898
49899       else
49900
49901
49902 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
49903
49904       fi
49905     fi
49906   fi
49907
49908   # Code from module stdbool:
49909
49910
49911
49912   # Define two additional variables used in the Makefile substitution.
49913
49914   if test "$ac_cv_header_stdbool_h" = yes; then
49915     STDBOOL_H=''
49916   else
49917     STDBOOL_H='stdbool.h'
49918   fi
49919
49920
49921   if test "$ac_cv_type__Bool" = yes; then
49922     HAVE__BOOL=1
49923   else
49924     HAVE__BOOL=0
49925   fi
49926
49927
49928   # Code from module stddef:
49929
49930
49931
49932   if test $gt_cv_c_wchar_t = no; then
49933     HAVE_WCHAR_T=0
49934     STDDEF_H=stddef.h
49935   fi
49936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
49937 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
49938 if test "${gl_cv_decl_null_works+set}" = set; then :
49939   $as_echo_n "(cached) " >&6
49940 else
49941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49942 /* end confdefs.h.  */
49943 #include <stddef.h>
49944       int test[2 * (sizeof NULL == sizeof (void *)) -1];
49945
49946 int
49947 main ()
49948 {
49949
49950   ;
49951   return 0;
49952 }
49953 _ACEOF
49954 if ac_fn_c_try_compile "$LINENO"; then :
49955   gl_cv_decl_null_works=yes
49956 else
49957   gl_cv_decl_null_works=no
49958 fi
49959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49960 fi
49961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
49962 $as_echo "$gl_cv_decl_null_works" >&6; }
49963   if test $gl_cv_decl_null_works = no; then
49964     REPLACE_NULL=1
49965     STDDEF_H=stddef.h
49966   fi
49967   if test -n "$STDDEF_H"; then
49968
49969
49970
49971
49972   :
49973
49974
49975
49976
49977
49978
49979
49980      if test $gl_cv_have_include_next = yes; then
49981        gl_cv_next_stddef_h='<'stddef.h'>'
49982      else
49983        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
49984 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
49985 if test "${gl_cv_next_stddef_h+set}" = set; then :
49986   $as_echo_n "(cached) " >&6
49987 else
49988
49989           if test $ac_cv_header_stddef_h = yes; then
49990             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49991 /* end confdefs.h.  */
49992 #include <stddef.h>
49993
49994 _ACEOF
49995                                                                                                 case "$host_os" in
49996               aix*) gl_absname_cpp="$ac_cpp -C" ;;
49997               *)    gl_absname_cpp="$ac_cpp" ;;
49998             esac
49999                                                 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
50000                sed -n '\#/stddef.h#{
50001                  s#.*"\(.*/stddef.h\)".*#\1#
50002                  s#^/[^/]#//&#
50003                  p
50004                  q
50005                }'`'"'
50006           else
50007             gl_cv_next_stddef_h='<'stddef.h'>'
50008           fi
50009
50010 fi
50011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
50012 $as_echo "$gl_cv_next_stddef_h" >&6; }
50013      fi
50014      NEXT_STDDEF_H=$gl_cv_next_stddef_h
50015
50016      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
50017        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
50018        gl_next_as_first_directive='<'stddef.h'>'
50019      else
50020        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
50021        gl_next_as_first_directive=$gl_cv_next_stddef_h
50022      fi
50023      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
50024
50025
50026
50027   fi
50028
50029   # Code from module stdint:
50030
50031
50032
50033   if test $ac_cv_type_long_long_int = yes; then
50034     HAVE_LONG_LONG_INT=1
50035   else
50036     HAVE_LONG_LONG_INT=0
50037   fi
50038
50039
50040   if test $ac_cv_type_unsigned_long_long_int = yes; then
50041     HAVE_UNSIGNED_LONG_LONG_INT=1
50042   else
50043     HAVE_UNSIGNED_LONG_LONG_INT=0
50044   fi
50045
50046
50047       if test $ac_cv_header_inttypes_h = yes; then
50048     HAVE_INTTYPES_H=1
50049   else
50050     HAVE_INTTYPES_H=0
50051   fi
50052
50053
50054       if test $ac_cv_header_sys_types_h = yes; then
50055     HAVE_SYS_TYPES_H=1
50056   else
50057     HAVE_SYS_TYPES_H=0
50058   fi
50059
50060
50061
50062
50063
50064
50065   :
50066
50067
50068
50069
50070
50071
50072
50073      if test $gl_cv_have_include_next = yes; then
50074        gl_cv_next_stdint_h='<'stdint.h'>'
50075      else
50076        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
50077 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
50078 if test "${gl_cv_next_stdint_h+set}" = set; then :
50079   $as_echo_n "(cached) " >&6
50080 else
50081
50082           if test $ac_cv_header_stdint_h = yes; then
50083             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50084 /* end confdefs.h.  */
50085 #include <stdint.h>
50086
50087 _ACEOF
50088                                                                                                 case "$host_os" in
50089               aix*) gl_absname_cpp="$ac_cpp -C" ;;
50090               *)    gl_absname_cpp="$ac_cpp" ;;
50091             esac
50092                                                 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
50093                sed -n '\#/stdint.h#{
50094                  s#.*"\(.*/stdint.h\)".*#\1#
50095                  s#^/[^/]#//&#
50096                  p
50097                  q
50098                }'`'"'
50099           else
50100             gl_cv_next_stdint_h='<'stdint.h'>'
50101           fi
50102
50103 fi
50104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
50105 $as_echo "$gl_cv_next_stdint_h" >&6; }
50106      fi
50107      NEXT_STDINT_H=$gl_cv_next_stdint_h
50108
50109      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
50110        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
50111        gl_next_as_first_directive='<'stdint.h'>'
50112      else
50113        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
50114        gl_next_as_first_directive=$gl_cv_next_stdint_h
50115      fi
50116      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
50117
50118
50119
50120   if test $ac_cv_header_stdint_h = yes; then
50121     HAVE_STDINT_H=1
50122   else
50123     HAVE_STDINT_H=0
50124   fi
50125
50126
50127     if test $ac_cv_header_stdint_h = yes; then
50128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
50129 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
50130 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
50131   $as_echo_n "(cached) " >&6
50132 else
50133   gl_cv_header_working_stdint_h=no
50134        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50135 /* end confdefs.h.  */
50136
50137
50138 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
50139 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
50140 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
50141 #include <stdint.h>
50142 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
50143 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
50144 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
50145 #endif
50146
50147
50148   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
50149      included before <wchar.h>.  */
50150   #include <stddef.h>
50151   #include <signal.h>
50152   #if HAVE_WCHAR_H
50153   # include <stdio.h>
50154   # include <time.h>
50155   # include <wchar.h>
50156   #endif
50157
50158
50159 #ifdef INT8_MAX
50160 int8_t a1 = INT8_MAX;
50161 int8_t a1min = INT8_MIN;
50162 #endif
50163 #ifdef INT16_MAX
50164 int16_t a2 = INT16_MAX;
50165 int16_t a2min = INT16_MIN;
50166 #endif
50167 #ifdef INT32_MAX
50168 int32_t a3 = INT32_MAX;
50169 int32_t a3min = INT32_MIN;
50170 #endif
50171 #ifdef INT64_MAX
50172 int64_t a4 = INT64_MAX;
50173 int64_t a4min = INT64_MIN;
50174 #endif
50175 #ifdef UINT8_MAX
50176 uint8_t b1 = UINT8_MAX;
50177 #else
50178 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
50179 #endif
50180 #ifdef UINT16_MAX
50181 uint16_t b2 = UINT16_MAX;
50182 #endif
50183 #ifdef UINT32_MAX
50184 uint32_t b3 = UINT32_MAX;
50185 #endif
50186 #ifdef UINT64_MAX
50187 uint64_t b4 = UINT64_MAX;
50188 #endif
50189 int_least8_t c1 = INT8_C (0x7f);
50190 int_least8_t c1max = INT_LEAST8_MAX;
50191 int_least8_t c1min = INT_LEAST8_MIN;
50192 int_least16_t c2 = INT16_C (0x7fff);
50193 int_least16_t c2max = INT_LEAST16_MAX;
50194 int_least16_t c2min = INT_LEAST16_MIN;
50195 int_least32_t c3 = INT32_C (0x7fffffff);
50196 int_least32_t c3max = INT_LEAST32_MAX;
50197 int_least32_t c3min = INT_LEAST32_MIN;
50198 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
50199 int_least64_t c4max = INT_LEAST64_MAX;
50200 int_least64_t c4min = INT_LEAST64_MIN;
50201 uint_least8_t d1 = UINT8_C (0xff);
50202 uint_least8_t d1max = UINT_LEAST8_MAX;
50203 uint_least16_t d2 = UINT16_C (0xffff);
50204 uint_least16_t d2max = UINT_LEAST16_MAX;
50205 uint_least32_t d3 = UINT32_C (0xffffffff);
50206 uint_least32_t d3max = UINT_LEAST32_MAX;
50207 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
50208 uint_least64_t d4max = UINT_LEAST64_MAX;
50209 int_fast8_t e1 = INT_FAST8_MAX;
50210 int_fast8_t e1min = INT_FAST8_MIN;
50211 int_fast16_t e2 = INT_FAST16_MAX;
50212 int_fast16_t e2min = INT_FAST16_MIN;
50213 int_fast32_t e3 = INT_FAST32_MAX;
50214 int_fast32_t e3min = INT_FAST32_MIN;
50215 int_fast64_t e4 = INT_FAST64_MAX;
50216 int_fast64_t e4min = INT_FAST64_MIN;
50217 uint_fast8_t f1 = UINT_FAST8_MAX;
50218 uint_fast16_t f2 = UINT_FAST16_MAX;
50219 uint_fast32_t f3 = UINT_FAST32_MAX;
50220 uint_fast64_t f4 = UINT_FAST64_MAX;
50221 #ifdef INTPTR_MAX
50222 intptr_t g = INTPTR_MAX;
50223 intptr_t gmin = INTPTR_MIN;
50224 #endif
50225 #ifdef UINTPTR_MAX
50226 uintptr_t h = UINTPTR_MAX;
50227 #endif
50228 intmax_t i = INTMAX_MAX;
50229 uintmax_t j = UINTMAX_MAX;
50230
50231 #include <limits.h> /* for CHAR_BIT */
50232 #define TYPE_MINIMUM(t) \
50233   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
50234 #define TYPE_MAXIMUM(t) \
50235   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
50236 struct s {
50237   int check_PTRDIFF:
50238       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
50239       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
50240       ? 1 : -1;
50241   /* Detect bug in FreeBSD 6.0 / ia64.  */
50242   int check_SIG_ATOMIC:
50243       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
50244       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
50245       ? 1 : -1;
50246   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
50247   int check_WCHAR:
50248       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
50249       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
50250       ? 1 : -1;
50251   /* Detect bug in mingw.  */
50252   int check_WINT:
50253       WINT_MIN == TYPE_MINIMUM (wint_t)
50254       && WINT_MAX == TYPE_MAXIMUM (wint_t)
50255       ? 1 : -1;
50256
50257   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
50258   int check_UINT8_C:
50259         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
50260   int check_UINT16_C:
50261         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
50262
50263   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
50264 #ifdef UINT8_MAX
50265   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
50266 #endif
50267 #ifdef UINT16_MAX
50268   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
50269 #endif
50270 #ifdef UINT32_MAX
50271   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
50272 #endif
50273 #ifdef UINT64_MAX
50274   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
50275 #endif
50276   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
50277   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
50278   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
50279   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
50280   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
50281   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
50282   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
50283   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
50284   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
50285   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
50286   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
50287 };
50288
50289 int
50290 main ()
50291 {
50292
50293   ;
50294   return 0;
50295 }
50296 _ACEOF
50297 if ac_fn_c_try_compile "$LINENO"; then :
50298                                                     if test "$cross_compiling" = yes; then :
50299                  gl_cv_header_working_stdint_h=yes
50300
50301 else
50302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50303 /* end confdefs.h.  */
50304
50305
50306 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
50307 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
50308 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
50309 #include <stdint.h>
50310
50311
50312   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
50313      included before <wchar.h>.  */
50314   #include <stddef.h>
50315   #include <signal.h>
50316   #if HAVE_WCHAR_H
50317   # include <stdio.h>
50318   # include <time.h>
50319   # include <wchar.h>
50320   #endif
50321
50322
50323 #include <stdio.h>
50324 #include <string.h>
50325 #define MVAL(macro) MVAL1(macro)
50326 #define MVAL1(expression) #expression
50327 static const char *macro_values[] =
50328   {
50329 #ifdef INT8_MAX
50330     MVAL (INT8_MAX),
50331 #endif
50332 #ifdef INT16_MAX
50333     MVAL (INT16_MAX),
50334 #endif
50335 #ifdef INT32_MAX
50336     MVAL (INT32_MAX),
50337 #endif
50338 #ifdef INT64_MAX
50339     MVAL (INT64_MAX),
50340 #endif
50341 #ifdef UINT8_MAX
50342     MVAL (UINT8_MAX),
50343 #endif
50344 #ifdef UINT16_MAX
50345     MVAL (UINT16_MAX),
50346 #endif
50347 #ifdef UINT32_MAX
50348     MVAL (UINT32_MAX),
50349 #endif
50350 #ifdef UINT64_MAX
50351     MVAL (UINT64_MAX),
50352 #endif
50353     NULL
50354   };
50355
50356 int
50357 main ()
50358 {
50359
50360   const char **mv;
50361   for (mv = macro_values; *mv != NULL; mv++)
50362     {
50363       const char *value = *mv;
50364       /* Test whether it looks like a cast expression.  */
50365       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
50366           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
50367           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
50368           || strncmp (value, "((int)"/*)*/, 6) == 0
50369           || strncmp (value, "((signed short)"/*)*/, 15) == 0
50370           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
50371         return 1;
50372     }
50373   return 0;
50374
50375   ;
50376   return 0;
50377 }
50378 _ACEOF
50379 if ac_fn_c_try_run "$LINENO"; then :
50380   gl_cv_header_working_stdint_h=yes
50381 fi
50382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50383   conftest.$ac_objext conftest.beam conftest.$ac_ext
50384 fi
50385
50386
50387 fi
50388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50389
50390 fi
50391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
50392 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
50393   fi
50394   if test "$gl_cv_header_working_stdint_h" = yes; then
50395     STDINT_H=
50396   else
50397             for ac_header in sys/inttypes.h sys/bitypes.h
50398 do :
50399   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
50400 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
50401 eval as_val=\$$as_ac_Header
50402    if test "x$as_val" = x""yes; then :
50403   cat >>confdefs.h <<_ACEOF
50404 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
50405 _ACEOF
50406
50407 fi
50408
50409 done
50410
50411     if test $ac_cv_header_sys_inttypes_h = yes; then
50412       HAVE_SYS_INTTYPES_H=1
50413     else
50414       HAVE_SYS_INTTYPES_H=0
50415     fi
50416
50417     if test $ac_cv_header_sys_bitypes_h = yes; then
50418       HAVE_SYS_BITYPES_H=1
50419     else
50420       HAVE_SYS_BITYPES_H=0
50421     fi
50422
50423
50424
50425   :
50426
50427
50428
50429
50430
50431
50432
50433
50434   if test $APPLE_UNIVERSAL_BUILD = 0; then
50435
50436
50437   for gltype in ptrdiff_t size_t ; do
50438     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
50439 $as_echo_n "checking for bit size of $gltype... " >&6; }
50440 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
50441   $as_echo_n "(cached) " >&6
50442 else
50443   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
50444   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
50445      included before <wchar.h>.  */
50446   #include <stddef.h>
50447   #include <signal.h>
50448   #if HAVE_WCHAR_H
50449   # include <stdio.h>
50450   # include <time.h>
50451   # include <wchar.h>
50452   #endif
50453
50454 #include <limits.h>"; then :
50455
50456 else
50457   result=unknown
50458 fi
50459
50460        eval gl_cv_bitsizeof_${gltype}=\$result
50461
50462 fi
50463 eval ac_res=\$gl_cv_bitsizeof_${gltype}
50464                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
50465 $as_echo "$ac_res" >&6; }
50466     eval result=\$gl_cv_bitsizeof_${gltype}
50467     if test $result = unknown; then
50468                                                 result=0
50469     fi
50470     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
50471     cat >>confdefs.h <<_ACEOF
50472 #define BITSIZEOF_${GLTYPE} $result
50473 _ACEOF
50474
50475     eval BITSIZEOF_${GLTYPE}=\$result
50476   done
50477
50478
50479   fi
50480
50481
50482   for gltype in sig_atomic_t wchar_t wint_t ; do
50483     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
50484 $as_echo_n "checking for bit size of $gltype... " >&6; }
50485 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
50486   $as_echo_n "(cached) " >&6
50487 else
50488   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
50489   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
50490      included before <wchar.h>.  */
50491   #include <stddef.h>
50492   #include <signal.h>
50493   #if HAVE_WCHAR_H
50494   # include <stdio.h>
50495   # include <time.h>
50496   # include <wchar.h>
50497   #endif
50498
50499 #include <limits.h>"; then :
50500
50501 else
50502   result=unknown
50503 fi
50504
50505        eval gl_cv_bitsizeof_${gltype}=\$result
50506
50507 fi
50508 eval ac_res=\$gl_cv_bitsizeof_${gltype}
50509                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
50510 $as_echo "$ac_res" >&6; }
50511     eval result=\$gl_cv_bitsizeof_${gltype}
50512     if test $result = unknown; then
50513                                                 result=0
50514     fi
50515     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
50516     cat >>confdefs.h <<_ACEOF
50517 #define BITSIZEOF_${GLTYPE} $result
50518 _ACEOF
50519
50520     eval BITSIZEOF_${GLTYPE}=\$result
50521   done
50522
50523
50524
50525
50526   for gltype in sig_atomic_t wchar_t wint_t ; do
50527     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
50528 $as_echo_n "checking whether $gltype is signed... " >&6; }
50529 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
50530   $as_echo_n "(cached) " >&6
50531 else
50532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50533 /* end confdefs.h.  */
50534
50535   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
50536      included before <wchar.h>.  */
50537   #include <stddef.h>
50538   #include <signal.h>
50539   #if HAVE_WCHAR_H
50540   # include <stdio.h>
50541   # include <time.h>
50542   # include <wchar.h>
50543   #endif
50544
50545             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
50546 int
50547 main ()
50548 {
50549
50550   ;
50551   return 0;
50552 }
50553 _ACEOF
50554 if ac_fn_c_try_compile "$LINENO"; then :
50555   result=yes
50556 else
50557   result=no
50558 fi
50559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50560        eval gl_cv_type_${gltype}_signed=\$result
50561
50562 fi
50563 eval ac_res=\$gl_cv_type_${gltype}_signed
50564                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
50565 $as_echo "$ac_res" >&6; }
50566     eval result=\$gl_cv_type_${gltype}_signed
50567     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
50568     if test "$result" = yes; then
50569       cat >>confdefs.h <<_ACEOF
50570 #define HAVE_SIGNED_${GLTYPE} 1
50571 _ACEOF
50572
50573       eval HAVE_SIGNED_${GLTYPE}=1
50574     else
50575       eval HAVE_SIGNED_${GLTYPE}=0
50576     fi
50577   done
50578
50579
50580   gl_cv_type_ptrdiff_t_signed=yes
50581   gl_cv_type_size_t_signed=no
50582   if test $APPLE_UNIVERSAL_BUILD = 0; then
50583
50584
50585   for gltype in ptrdiff_t size_t ; do
50586     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
50587 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
50588 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
50589   $as_echo_n "(cached) " >&6
50590 else
50591   eval gl_cv_type_${gltype}_suffix=no
50592        eval result=\$gl_cv_type_${gltype}_signed
50593        if test "$result" = yes; then
50594          glsufu=
50595        else
50596          glsufu=u
50597        fi
50598        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
50599          case $glsuf in
50600            '')  gltype1='int';;
50601            l)   gltype1='long int';;
50602            ll)  gltype1='long long int';;
50603            i64) gltype1='__int64';;
50604            u)   gltype1='unsigned int';;
50605            ul)  gltype1='unsigned long int';;
50606            ull) gltype1='unsigned long long int';;
50607            ui64)gltype1='unsigned __int64';;
50608          esac
50609          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50610 /* end confdefs.h.  */
50611
50612   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
50613      included before <wchar.h>.  */
50614   #include <stddef.h>
50615   #include <signal.h>
50616   #if HAVE_WCHAR_H
50617   # include <stdio.h>
50618   # include <time.h>
50619   # include <wchar.h>
50620   #endif
50621
50622               extern $gltype foo;
50623               extern $gltype1 foo;
50624 int
50625 main ()
50626 {
50627
50628   ;
50629   return 0;
50630 }
50631 _ACEOF
50632 if ac_fn_c_try_compile "$LINENO"; then :
50633   eval gl_cv_type_${gltype}_suffix=\$glsuf
50634 fi
50635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50636          eval result=\$gl_cv_type_${gltype}_suffix
50637          test "$result" != no && break
50638        done
50639 fi
50640 eval ac_res=\$gl_cv_type_${gltype}_suffix
50641                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
50642 $as_echo "$ac_res" >&6; }
50643     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
50644     eval result=\$gl_cv_type_${gltype}_suffix
50645     test "$result" = no && result=
50646     eval ${GLTYPE}_SUFFIX=\$result
50647     cat >>confdefs.h <<_ACEOF
50648 #define ${GLTYPE}_SUFFIX $result
50649 _ACEOF
50650
50651   done
50652
50653
50654   fi
50655
50656
50657   for gltype in sig_atomic_t wchar_t wint_t ; do
50658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
50659 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
50660 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
50661   $as_echo_n "(cached) " >&6
50662 else
50663   eval gl_cv_type_${gltype}_suffix=no
50664        eval result=\$gl_cv_type_${gltype}_signed
50665        if test "$result" = yes; then
50666          glsufu=
50667        else
50668          glsufu=u
50669        fi
50670        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
50671          case $glsuf in
50672            '')  gltype1='int';;
50673            l)   gltype1='long int';;
50674            ll)  gltype1='long long int';;
50675            i64) gltype1='__int64';;
50676            u)   gltype1='unsigned int';;
50677            ul)  gltype1='unsigned long int';;
50678            ull) gltype1='unsigned long long int';;
50679            ui64)gltype1='unsigned __int64';;
50680          esac
50681          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50682 /* end confdefs.h.  */
50683
50684   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
50685      included before <wchar.h>.  */
50686   #include <stddef.h>
50687   #include <signal.h>
50688   #if HAVE_WCHAR_H
50689   # include <stdio.h>
50690   # include <time.h>
50691   # include <wchar.h>
50692   #endif
50693
50694               extern $gltype foo;
50695               extern $gltype1 foo;
50696 int
50697 main ()
50698 {
50699
50700   ;
50701   return 0;
50702 }
50703 _ACEOF
50704 if ac_fn_c_try_compile "$LINENO"; then :
50705   eval gl_cv_type_${gltype}_suffix=\$glsuf
50706 fi
50707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50708          eval result=\$gl_cv_type_${gltype}_suffix
50709          test "$result" != no && break
50710        done
50711 fi
50712 eval ac_res=\$gl_cv_type_${gltype}_suffix
50713                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
50714 $as_echo "$ac_res" >&6; }
50715     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
50716     eval result=\$gl_cv_type_${gltype}_suffix
50717     test "$result" = no && result=
50718     eval ${GLTYPE}_SUFFIX=\$result
50719     cat >>confdefs.h <<_ACEOF
50720 #define ${GLTYPE}_SUFFIX $result
50721 _ACEOF
50722
50723   done
50724
50725
50726
50727     STDINT_H=stdint.h
50728   fi
50729
50730
50731   # Code from module stdio:
50732
50733
50734
50735
50736
50737
50738
50739
50740   :
50741
50742
50743
50744
50745
50746
50747
50748      if test $gl_cv_have_include_next = yes; then
50749        gl_cv_next_stdio_h='<'stdio.h'>'
50750      else
50751        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
50752 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
50753 if test "${gl_cv_next_stdio_h+set}" = set; then :
50754   $as_echo_n "(cached) " >&6
50755 else
50756
50757           if test $ac_cv_header_stdio_h = yes; then
50758             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50759 /* end confdefs.h.  */
50760 #include <stdio.h>
50761
50762 _ACEOF
50763                                                                                                 case "$host_os" in
50764               aix*) gl_absname_cpp="$ac_cpp -C" ;;
50765               *)    gl_absname_cpp="$ac_cpp" ;;
50766             esac
50767                                                 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
50768                sed -n '\#/stdio.h#{
50769                  s#.*"\(.*/stdio.h\)".*#\1#
50770                  s#^/[^/]#//&#
50771                  p
50772                  q
50773                }'`'"'
50774           else
50775             gl_cv_next_stdio_h='<'stdio.h'>'
50776           fi
50777
50778 fi
50779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
50780 $as_echo "$gl_cv_next_stdio_h" >&6; }
50781      fi
50782      NEXT_STDIO_H=$gl_cv_next_stdio_h
50783
50784      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
50785        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
50786        gl_next_as_first_directive='<'stdio.h'>'
50787      else
50788        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
50789        gl_next_as_first_directive=$gl_cv_next_stdio_h
50790      fi
50791      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
50792
50793
50794
50795       GNULIB_FPRINTF=1
50796   GNULIB_PRINTF=1
50797   GNULIB_VFPRINTF=1
50798   GNULIB_VPRINTF=1
50799   GNULIB_FPUTC=1
50800   GNULIB_PUTC=1
50801   GNULIB_PUTCHAR=1
50802   GNULIB_FPUTS=1
50803   GNULIB_PUTS=1
50804   GNULIB_FWRITE=1
50805
50806
50807
50808
50809     if test $gl_cv_header_signal_h_SIGPIPE != yes; then
50810       REPLACE_STDIO_WRITE_FUNCS=1
50811
50812
50813
50814
50815
50816
50817
50818
50819   gtpo_LIBOBJS="$gtpo_LIBOBJS stdio-write.$ac_objext"
50820
50821     fi
50822
50823
50824
50825     for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat     snprintf tmpfile vdprintf vsnprintf; do
50826     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
50827     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
50828 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
50829 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
50830   $as_echo_n "(cached) " >&6
50831 else
50832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50833 /* end confdefs.h.  */
50834 #include <stdio.h>
50835
50836 int
50837 main ()
50838 {
50839 #undef $gl_func
50840   (void) $gl_func;
50841   ;
50842   return 0;
50843 }
50844 _ACEOF
50845 if ac_fn_c_try_compile "$LINENO"; then :
50846   eval "$as_gl_Symbol=yes"
50847 else
50848   eval "$as_gl_Symbol=no"
50849 fi
50850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50851 fi
50852 eval ac_res=\$$as_gl_Symbol
50853                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
50854 $as_echo "$ac_res" >&6; }
50855      eval as_val=\$$as_gl_Symbol
50856    if test "x$as_val" = x""yes; then :
50857   cat >>confdefs.h <<_ACEOF
50858 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
50859 _ACEOF
50860
50861                      eval ac_cv_have_decl_$gl_func=yes
50862 fi
50863       done
50864
50865
50866   # Code from module stdlib:
50867
50868
50869
50870
50871
50872
50873   :
50874
50875
50876
50877
50878
50879
50880
50881      if test $gl_cv_have_include_next = yes; then
50882        gl_cv_next_stdlib_h='<'stdlib.h'>'
50883      else
50884        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
50885 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
50886 if test "${gl_cv_next_stdlib_h+set}" = set; then :
50887   $as_echo_n "(cached) " >&6
50888 else
50889
50890           if test $ac_cv_header_stdlib_h = yes; then
50891             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50892 /* end confdefs.h.  */
50893 #include <stdlib.h>
50894
50895 _ACEOF
50896                                                                                                 case "$host_os" in
50897               aix*) gl_absname_cpp="$ac_cpp -C" ;;
50898               *)    gl_absname_cpp="$ac_cpp" ;;
50899             esac
50900                                                 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
50901                sed -n '\#/stdlib.h#{
50902                  s#.*"\(.*/stdlib.h\)".*#\1#
50903                  s#^/[^/]#//&#
50904                  p
50905                  q
50906                }'`'"'
50907           else
50908             gl_cv_next_stdlib_h='<'stdlib.h'>'
50909           fi
50910
50911 fi
50912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
50913 $as_echo "$gl_cv_next_stdlib_h" >&6; }
50914      fi
50915      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
50916
50917      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
50918        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
50919        gl_next_as_first_directive='<'stdlib.h'>'
50920      else
50921        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
50922        gl_next_as_first_directive=$gl_cv_next_stdlib_h
50923      fi
50924      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
50925
50926
50927
50928   for ac_header in random.h
50929 do :
50930   ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
50931 "
50932 if test "x$ac_cv_header_random_h" = x""yes; then :
50933   cat >>confdefs.h <<_ACEOF
50934 #define HAVE_RANDOM_H 1
50935 _ACEOF
50936
50937 fi
50938
50939 done
50940
50941   if test $ac_cv_header_random_h = yes; then
50942     HAVE_RANDOM_H=1
50943   else
50944     HAVE_RANDOM_H=0
50945   fi
50946
50947   ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
50948       #if HAVE_RANDOM_H
50949       # include <random.h>
50950       #endif
50951
50952 "
50953 if test "x$ac_cv_type_struct_random_data" = x""yes; then :
50954
50955 cat >>confdefs.h <<_ACEOF
50956 #define HAVE_STRUCT_RANDOM_DATA 1
50957 _ACEOF
50958
50959
50960 else
50961   HAVE_STRUCT_RANDOM_DATA=0
50962 fi
50963
50964
50965
50966     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
50967     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
50968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
50969 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
50970 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
50971   $as_echo_n "(cached) " >&6
50972 else
50973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50974 /* end confdefs.h.  */
50975 #include <stdlib.h>
50976 #if HAVE_SYS_LOADAVG_H
50977 # include <sys/loadavg.h>
50978 #endif
50979 #if HAVE_RANDOM_H
50980 # include <random.h>
50981 #endif
50982
50983 int
50984 main ()
50985 {
50986 #undef $gl_func
50987   (void) $gl_func;
50988   ;
50989   return 0;
50990 }
50991 _ACEOF
50992 if ac_fn_c_try_compile "$LINENO"; then :
50993   eval "$as_gl_Symbol=yes"
50994 else
50995   eval "$as_gl_Symbol=no"
50996 fi
50997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50998 fi
50999 eval ac_res=\$$as_gl_Symbol
51000                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
51001 $as_echo "$ac_res" >&6; }
51002      eval as_val=\$$as_gl_Symbol
51003    if test "x$as_val" = x""yes; then :
51004   cat >>confdefs.h <<_ACEOF
51005 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
51006 _ACEOF
51007
51008                      eval ac_cv_have_decl_$gl_func=yes
51009 fi
51010       done
51011
51012
51013   # Code from module stpcpy:
51014
51015
51016
51017
51018
51019
51020
51021
51022
51023
51024
51025
51026
51027
51028   for ac_func in stpcpy
51029 do :
51030   ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
51031 if test "x$ac_cv_func_stpcpy" = x""yes; then :
51032   cat >>confdefs.h <<_ACEOF
51033 #define HAVE_STPCPY 1
51034 _ACEOF
51035
51036 else
51037
51038     gtpo_LIBOBJS="$gtpo_LIBOBJS $ac_func.$ac_objext"
51039
51040 fi
51041 done
51042
51043
51044   if test $ac_cv_func_stpcpy = no; then
51045     HAVE_STPCPY=0
51046
51047   :
51048
51049   fi
51050
51051
51052
51053
51054   GNULIB_STPCPY=1
51055
51056
51057
51058 $as_echo "#define GNULIB_TEST_STPCPY 1" >>confdefs.h
51059
51060
51061
51062   # Code from module streq:
51063   # Code from module strerror:
51064
51065
51066   if test $REPLACE_STRERROR = 1; then
51067
51068
51069
51070
51071
51072
51073
51074
51075   gtpo_LIBOBJS="$gtpo_LIBOBJS strerror.$ac_objext"
51076
51077
51078 cat >>confdefs.h <<_ACEOF
51079 #define REPLACE_STRERROR $REPLACE_STRERROR
51080 _ACEOF
51081
51082   fi
51083
51084
51085
51086
51087   GNULIB_STRERROR=1
51088
51089
51090
51091 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
51092
51093
51094
51095   # Code from module striconv:
51096   if test $gl_cond_libtool = false; then
51097     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
51098     gl_libdeps="$gl_libdeps $LIBICONV"
51099   fi
51100   # Code from module striconveh:
51101   if test $gl_cond_libtool = false; then
51102     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
51103     gl_libdeps="$gl_libdeps $LIBICONV"
51104   fi
51105   # Code from module striconveha:
51106   # Code from module string:
51107
51108
51109
51110   # Code from module strstr:
51111
51112
51113   if test $REPLACE_STRSTR = 0; then
51114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
51115 $as_echo_n "checking whether strstr works in linear time... " >&6; }
51116 if test "${gl_cv_func_strstr_linear+set}" = set; then :
51117   $as_echo_n "(cached) " >&6
51118 else
51119   if test "$cross_compiling" = yes; then :
51120                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51121 /* end confdefs.h.  */
51122
51123 #include <features.h>
51124 #ifdef __GNU_LIBRARY__
51125  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
51126   Lucky user
51127  #endif
51128 #endif
51129 #ifdef __CYGWIN__
51130  #include <cygwin/version.h>
51131  #if CYGWIN_VERSION_DLL_MAJOR >= 1007
51132   Lucky user
51133  #endif
51134 #endif
51135
51136 _ACEOF
51137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51138   $EGREP "Lucky user" >/dev/null 2>&1; then :
51139   gl_cv_func_strstr_linear=yes
51140 else
51141   gl_cv_func_strstr_linear="guessing no"
51142 fi
51143 rm -f conftest*
51144
51145
51146 else
51147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51148 /* end confdefs.h.  */
51149
51150 #include <signal.h> /* for signal */
51151 #include <string.h> /* for memmem */
51152 #include <stdlib.h> /* for malloc */
51153 #include <unistd.h> /* for alarm */
51154
51155 int
51156 main ()
51157 {
51158 size_t m = 1000000;
51159     char *haystack = (char *) malloc (2 * m + 2);
51160     char *needle = (char *) malloc (m + 2);
51161     void *result = 0;
51162     /* Failure to compile this test due to missing alarm is okay,
51163        since all such platforms (mingw) also have quadratic strstr.  */
51164     signal (SIGALRM, SIG_DFL);
51165     alarm (5);
51166     /* Check for quadratic performance.  */
51167     if (haystack && needle)
51168       {
51169         memset (haystack, 'A', 2 * m);
51170         haystack[2 * m] = 'B';
51171         haystack[2 * m + 1] = 0;
51172         memset (needle, 'A', m);
51173         needle[m] = 'B';
51174         needle[m + 1] = 0;
51175         result = strstr (haystack, needle);
51176       }
51177     return !result;
51178   ;
51179   return 0;
51180 }
51181 _ACEOF
51182 if ac_fn_c_try_run "$LINENO"; then :
51183   gl_cv_func_strstr_linear=yes
51184 else
51185   gl_cv_func_strstr_linear=no
51186 fi
51187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
51188   conftest.$ac_objext conftest.beam conftest.$ac_ext
51189 fi
51190
51191
51192 fi
51193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
51194 $as_echo "$gl_cv_func_strstr_linear" >&6; }
51195     if test "$gl_cv_func_strstr_linear" != yes; then
51196       REPLACE_STRSTR=1
51197     fi
51198   fi
51199   if test $REPLACE_STRSTR = 1; then
51200
51201
51202
51203
51204
51205
51206
51207
51208   gtpo_LIBOBJS="$gtpo_LIBOBJS strstr.$ac_objext"
51209
51210   fi
51211
51212   # Code from module strstr-simple:
51213
51214
51215
51216   if test "$gl_cv_func_memchr_works" != yes; then
51217     REPLACE_STRSTR=1
51218
51219
51220
51221
51222
51223
51224
51225
51226   gtpo_LIBOBJS="$gtpo_LIBOBJS strstr.$ac_objext"
51227
51228   fi
51229
51230
51231
51232
51233   GNULIB_STRSTR=1
51234
51235
51236
51237 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
51238
51239
51240
51241   # Code from module sys_stat:
51242
51243
51244
51245
51246
51247
51248
51249
51250
51251
51252
51253   :
51254
51255
51256
51257
51258
51259
51260
51261      if test $gl_cv_have_include_next = yes; then
51262        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
51263      else
51264        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
51265 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
51266 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
51267   $as_echo_n "(cached) " >&6
51268 else
51269
51270           if test $ac_cv_header_sys_stat_h = yes; then
51271             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51272 /* end confdefs.h.  */
51273 #include <sys/stat.h>
51274
51275 _ACEOF
51276                                                                                                 case "$host_os" in
51277               aix*) gl_absname_cpp="$ac_cpp -C" ;;
51278               *)    gl_absname_cpp="$ac_cpp" ;;
51279             esac
51280                                                 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
51281                sed -n '\#/sys/stat.h#{
51282                  s#.*"\(.*/sys/stat.h\)".*#\1#
51283                  s#^/[^/]#//&#
51284                  p
51285                  q
51286                }'`'"'
51287           else
51288             gl_cv_next_sys_stat_h='<'sys/stat.h'>'
51289           fi
51290
51291 fi
51292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
51293 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
51294      fi
51295      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
51296
51297      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
51298        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
51299        gl_next_as_first_directive='<'sys/stat.h'>'
51300      else
51301        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
51302        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
51303      fi
51304      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
51305
51306
51307
51308
51309       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
51310      #include <sys/stat.h>
51311 "
51312 if test "x$ac_cv_type_nlink_t" = x""yes; then :
51313
51314 else
51315
51316 $as_echo "#define nlink_t int" >>confdefs.h
51317
51318 fi
51319
51320
51321
51322     for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
51323     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
51324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
51325 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
51326 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
51327   $as_echo_n "(cached) " >&6
51328 else
51329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51330 /* end confdefs.h.  */
51331 #include <sys/stat.h>
51332
51333 int
51334 main ()
51335 {
51336 #undef $gl_func
51337   (void) $gl_func;
51338   ;
51339   return 0;
51340 }
51341 _ACEOF
51342 if ac_fn_c_try_compile "$LINENO"; then :
51343   eval "$as_gl_Symbol=yes"
51344 else
51345   eval "$as_gl_Symbol=no"
51346 fi
51347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51348 fi
51349 eval ac_res=\$$as_gl_Symbol
51350                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
51351 $as_echo "$ac_res" >&6; }
51352      eval as_val=\$$as_gl_Symbol
51353    if test "x$as_val" = x""yes; then :
51354   cat >>confdefs.h <<_ACEOF
51355 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
51356 _ACEOF
51357
51358                      eval ac_cv_have_decl_$gl_func=yes
51359 fi
51360       done
51361
51362
51363
51364   # Code from module threadlib:
51365
51366
51367
51368
51369   # Code from module time:
51370
51371
51372
51373   # Code from module tls:
51374
51375
51376
51377   # Code from module uniconv/base:
51378
51379
51380       if  { test "$HAVE_LIBUNISTRING" != yes \
51381     || {
51382
51383
51384
51385             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51386             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51387                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51388                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51389                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51390                          }
51391                     }
51392                }
51393
51394
51395
51396
51397        }
51398   }; then
51399     LIBUNISTRING_UNICONV_H='uniconv.h'
51400   else
51401     LIBUNISTRING_UNICONV_H=
51402   fi
51403
51404
51405   # Code from module uniconv/u8-conv-from-enc:
51406
51407
51408        if  { test "$HAVE_LIBUNISTRING" != yes \
51409     || {
51410
51411
51412
51413             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51414             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51415                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51416                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51417                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51418                          }
51419                     }
51420                }
51421
51422
51423
51424
51425        }
51426   }; then
51427   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE=
51428   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE='#'
51429 else
51430   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE='#'
51431   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE=
51432 fi
51433
51434
51435   # Code from module unilbrk/base:
51436
51437
51438       if  { test "$HAVE_LIBUNISTRING" != yes \
51439     || {
51440
51441
51442
51443             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51444             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51445                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51446                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51447                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51448                          }
51449                     }
51450                }
51451
51452
51453
51454
51455        }
51456   }; then
51457     LIBUNISTRING_UNILBRK_H='unilbrk.h'
51458   else
51459     LIBUNISTRING_UNILBRK_H=
51460   fi
51461
51462
51463   # Code from module unilbrk/tables:
51464
51465   # Code from module unilbrk/u8-possible-linebreaks:
51466
51467
51468        if  { test "$HAVE_LIBUNISTRING" != yes \
51469     || {
51470
51471
51472
51473             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51474             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51475                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51476                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51477                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51478                          }
51479                     }
51480                }
51481
51482
51483
51484
51485        }
51486   }; then
51487   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE=
51488   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE='#'
51489 else
51490   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE='#'
51491   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE=
51492 fi
51493
51494
51495   # Code from module unilbrk/u8-width-linebreaks:
51496
51497
51498        if  { test "$HAVE_LIBUNISTRING" != yes \
51499     || {
51500
51501
51502
51503             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51504             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51505                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51506                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51507                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51508                          }
51509                     }
51510                }
51511
51512
51513
51514
51515        }
51516   }; then
51517   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE=
51518   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE='#'
51519 else
51520   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE='#'
51521   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE=
51522 fi
51523
51524
51525   # Code from module unilbrk/ulc-common:
51526   # Code from module unilbrk/ulc-width-linebreaks:
51527
51528
51529        if  { test "$HAVE_LIBUNISTRING" != yes \
51530     || {
51531
51532
51533
51534             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51535             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51536                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51537                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51538                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51539                          }
51540                     }
51541                }
51542
51543
51544
51545
51546        }
51547   }; then
51548   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE=
51549   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE='#'
51550 else
51551   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE='#'
51552   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE=
51553 fi
51554
51555
51556   # Code from module unistd:
51557
51558
51559
51560
51561
51562
51563
51564
51565   :
51566
51567
51568
51569
51570
51571
51572
51573      if test $gl_cv_have_include_next = yes; then
51574        gl_cv_next_unistd_h='<'unistd.h'>'
51575      else
51576        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
51577 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
51578 if test "${gl_cv_next_unistd_h+set}" = set; then :
51579   $as_echo_n "(cached) " >&6
51580 else
51581
51582           if test $ac_cv_header_unistd_h = yes; then
51583             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51584 /* end confdefs.h.  */
51585 #include <unistd.h>
51586
51587 _ACEOF
51588                                                                                                 case "$host_os" in
51589               aix*) gl_absname_cpp="$ac_cpp -C" ;;
51590               *)    gl_absname_cpp="$ac_cpp" ;;
51591             esac
51592                                                 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
51593                sed -n '\#/unistd.h#{
51594                  s#.*"\(.*/unistd.h\)".*#\1#
51595                  s#^/[^/]#//&#
51596                  p
51597                  q
51598                }'`'"'
51599           else
51600             gl_cv_next_unistd_h='<'unistd.h'>'
51601           fi
51602
51603 fi
51604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
51605 $as_echo "$gl_cv_next_unistd_h" >&6; }
51606      fi
51607      NEXT_UNISTD_H=$gl_cv_next_unistd_h
51608
51609      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
51610        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
51611        gl_next_as_first_directive='<'unistd.h'>'
51612      else
51613        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
51614        gl_next_as_first_directive=$gl_cv_next_unistd_h
51615      fi
51616      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
51617
51618
51619
51620
51621
51622   :
51623
51624
51625
51626
51627
51628   if test $ac_cv_header_unistd_h = yes; then
51629     HAVE_UNISTD_H=1
51630   else
51631     HAVE_UNISTD_H=0
51632   fi
51633
51634
51635
51636     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 pwrite readlink     readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat     usleep; do
51637     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
51638     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
51639 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
51640 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
51641   $as_echo_n "(cached) " >&6
51642 else
51643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51644 /* end confdefs.h.  */
51645 #include <unistd.h>
51646 /* Some systems declare various items in the wrong headers.  */
51647 #ifndef __GLIBC__
51648 # include <fcntl.h>
51649 # include <stdio.h>
51650 # include <stdlib.h>
51651 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
51652 #  include <io.h>
51653 # endif
51654 #endif
51655
51656 int
51657 main ()
51658 {
51659 #undef $gl_func
51660   (void) $gl_func;
51661   ;
51662   return 0;
51663 }
51664 _ACEOF
51665 if ac_fn_c_try_compile "$LINENO"; then :
51666   eval "$as_gl_Symbol=yes"
51667 else
51668   eval "$as_gl_Symbol=no"
51669 fi
51670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51671 fi
51672 eval ac_res=\$$as_gl_Symbol
51673                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
51674 $as_echo "$ac_res" >&6; }
51675      eval as_val=\$$as_gl_Symbol
51676    if test "x$as_val" = x""yes; then :
51677   cat >>confdefs.h <<_ACEOF
51678 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
51679 _ACEOF
51680
51681                      eval ac_cv_have_decl_$gl_func=yes
51682 fi
51683       done
51684
51685
51686   # Code from module unistr/base:
51687
51688
51689       if  { test "$HAVE_LIBUNISTRING" != yes \
51690     || {
51691
51692
51693
51694             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51695             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51696                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51697                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51698                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 2
51699                          }
51700                     }
51701                }
51702
51703
51704
51705
51706        }
51707   }; then
51708     LIBUNISTRING_UNISTR_H='unistr.h'
51709   else
51710     LIBUNISTRING_UNISTR_H=
51711   fi
51712
51713
51714   # Code from module unistr/u16-mbtouc:
51715
51716
51717 cat >>confdefs.h <<_ACEOF
51718 #define GNULIB_UNISTR_U16_MBTOUC 1
51719 _ACEOF
51720
51721
51722
51723
51724        if  { test "$HAVE_LIBUNISTRING" != yes \
51725     || {
51726
51727
51728
51729             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51730             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51731                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51732                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51733                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51734                          }
51735                     }
51736                }
51737
51738
51739
51740
51741        }
51742   }; then
51743   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE=
51744   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE='#'
51745 else
51746   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE='#'
51747   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE=
51748 fi
51749
51750
51751   # Code from module unistr/u8-check:
51752
51753
51754        if  { test "$HAVE_LIBUNISTRING" != yes \
51755     || {
51756
51757
51758
51759             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51760             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51761                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51762                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51763                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51764                          }
51765                     }
51766                }
51767
51768
51769
51770
51771        }
51772   }; then
51773   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE=
51774   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE='#'
51775 else
51776   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE='#'
51777   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE=
51778 fi
51779
51780
51781   # Code from module unistr/u8-mblen:
51782
51783
51784        if  { test "$HAVE_LIBUNISTRING" != yes \
51785     || {
51786
51787
51788
51789             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51790             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51791                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51792                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51793                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51794                          }
51795                     }
51796                }
51797
51798
51799
51800
51801        }
51802   }; then
51803   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE=
51804   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE='#'
51805 else
51806   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE='#'
51807   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE=
51808 fi
51809
51810
51811   # Code from module unistr/u8-mbtouc:
51812
51813
51814 cat >>confdefs.h <<_ACEOF
51815 #define GNULIB_UNISTR_U8_MBTOUC 1
51816 _ACEOF
51817
51818
51819
51820
51821        if  { test "$HAVE_LIBUNISTRING" != yes \
51822     || {
51823
51824
51825
51826             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51827             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51828                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51829                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51830                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51831                          }
51832                     }
51833                }
51834
51835
51836
51837
51838        }
51839   }; then
51840   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE=
51841   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE='#'
51842 else
51843   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE='#'
51844   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE=
51845 fi
51846
51847
51848   # Code from module unistr/u8-mbtouc-unsafe:
51849
51850
51851 cat >>confdefs.h <<_ACEOF
51852 #define GNULIB_UNISTR_U8_MBTOUC_UNSAFE 1
51853 _ACEOF
51854
51855
51856
51857
51858        if  { test "$HAVE_LIBUNISTRING" != yes \
51859     || {
51860
51861
51862
51863             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51864             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51865                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51866                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51867                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51868                          }
51869                     }
51870                }
51871
51872
51873
51874
51875        }
51876   }; then
51877   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE=
51878   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE='#'
51879 else
51880   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE='#'
51881   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE=
51882 fi
51883
51884
51885   # Code from module unistr/u8-mbtoucr:
51886
51887
51888 cat >>confdefs.h <<_ACEOF
51889 #define GNULIB_UNISTR_U8_MBTOUCR 1
51890 _ACEOF
51891
51892
51893
51894
51895        if  { test "$HAVE_LIBUNISTRING" != yes \
51896     || {
51897
51898
51899
51900             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51901             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51902                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51903                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51904                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51905                          }
51906                     }
51907                }
51908
51909
51910
51911
51912        }
51913   }; then
51914   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE=
51915   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#'
51916 else
51917   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#'
51918   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE=
51919 fi
51920
51921
51922   # Code from module unistr/u8-prev:
51923
51924
51925        if  { test "$HAVE_LIBUNISTRING" != yes \
51926     || {
51927
51928
51929
51930             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51931             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51932                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51933                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51934                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51935                          }
51936                     }
51937                }
51938
51939
51940
51941
51942        }
51943   }; then
51944   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE=
51945   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE='#'
51946 else
51947   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE='#'
51948   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE=
51949 fi
51950
51951
51952   # Code from module unistr/u8-uctomb:
51953
51954
51955 cat >>confdefs.h <<_ACEOF
51956 #define GNULIB_UNISTR_U8_UCTOMB 1
51957 _ACEOF
51958
51959
51960
51961
51962        if  { test "$HAVE_LIBUNISTRING" != yes \
51963     || {
51964
51965
51966
51967             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51968             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51969                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51970                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51971                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51972                          }
51973                     }
51974                }
51975
51976
51977
51978
51979        }
51980   }; then
51981   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE=
51982   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#'
51983 else
51984   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#'
51985   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE=
51986 fi
51987
51988
51989   # Code from module unitypes:
51990
51991
51992       if  { test "$HAVE_LIBUNISTRING" != yes \
51993     || {
51994
51995
51996
51997             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51998             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51999                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52000                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52001                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
52002                          }
52003                     }
52004                }
52005
52006
52007
52008
52009        }
52010   }; then
52011     LIBUNISTRING_UNITYPES_H='unitypes.h'
52012   else
52013     LIBUNISTRING_UNITYPES_H=
52014   fi
52015
52016
52017   # Code from module uniwidth/base:
52018
52019
52020       if  { test "$HAVE_LIBUNISTRING" != yes \
52021     || {
52022
52023
52024
52025             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52026             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52027                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52028                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52029                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
52030                          }
52031                     }
52032                }
52033
52034
52035
52036
52037        }
52038   }; then
52039     LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
52040   else
52041     LIBUNISTRING_UNIWIDTH_H=
52042   fi
52043
52044
52045   # Code from module uniwidth/width:
52046
52047
52048        if  { test "$HAVE_LIBUNISTRING" != yes \
52049     || {
52050
52051
52052
52053             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52054             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52055                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52056                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52057                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
52058                          }
52059                     }
52060                }
52061
52062
52063
52064
52065        }
52066   }; then
52067   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
52068   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
52069 else
52070   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
52071   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
52072 fi
52073
52074
52075   # Code from module unlocked-io:
52076
52077
52078 $as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h
52079
52080
52081
52082
52083
52084   :
52085
52086
52087
52088
52089
52090
52091   :
52092
52093
52094
52095
52096
52097
52098   :
52099
52100
52101
52102
52103
52104
52105   :
52106
52107
52108
52109
52110
52111
52112   :
52113
52114
52115
52116
52117
52118
52119   :
52120
52121
52122
52123
52124
52125
52126   :
52127
52128
52129
52130
52131
52132
52133   :
52134
52135
52136
52137
52138
52139
52140   :
52141
52142
52143
52144
52145
52146
52147   :
52148
52149
52150
52151
52152
52153
52154   :
52155
52156
52157
52158
52159
52160
52161   :
52162
52163
52164
52165
52166
52167
52168   :
52169
52170
52171
52172
52173
52174
52175   # Code from module unused-parameter:
52176   # Code from module vasnprintf:
52177
52178
52179   :
52180
52181
52182
52183
52184
52185   if test $ac_cv_func_vasnprintf = no; then
52186
52187
52188   :
52189
52190
52191
52192
52193
52194
52195
52196
52197
52198
52199
52200
52201
52202   gtpo_LIBOBJS="$gtpo_LIBOBJS vasnprintf.$ac_objext"
52203
52204
52205
52206
52207
52208
52209
52210
52211
52212   gtpo_LIBOBJS="$gtpo_LIBOBJS printf-args.$ac_objext"
52213
52214
52215
52216
52217
52218
52219
52220
52221
52222   gtpo_LIBOBJS="$gtpo_LIBOBJS printf-parse.$ac_objext"
52223
52224
52225
52226
52227
52228
52229
52230
52231
52232   gtpo_LIBOBJS="$gtpo_LIBOBJS asnprintf.$ac_objext"
52233
52234   if test $ac_cv_func_vasnprintf = yes; then
52235
52236 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
52237
52238   fi
52239
52240
52241
52242
52243
52244
52245
52246
52247
52248
52249   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
52250 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
52251
52252 else
52253
52254 $as_echo "#define ptrdiff_t long" >>confdefs.h
52255
52256
52257 fi
52258
52259
52260
52261
52262
52263
52264
52265   fi
52266
52267   # Code from module vasprintf:
52268
52269   for ac_func in vasprintf
52270 do :
52271   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
52272 if test "x$ac_cv_func_vasprintf" = x""yes; then :
52273   cat >>confdefs.h <<_ACEOF
52274 #define HAVE_VASPRINTF 1
52275 _ACEOF
52276
52277 fi
52278 done
52279
52280   if test $ac_cv_func_vasprintf = no; then
52281
52282
52283
52284
52285
52286
52287
52288
52289
52290   gtpo_LIBOBJS="$gtpo_LIBOBJS vasprintf.$ac_objext"
52291
52292
52293
52294
52295
52296
52297
52298
52299
52300   gtpo_LIBOBJS="$gtpo_LIBOBJS asprintf.$ac_objext"
52301
52302
52303   if test $ac_cv_func_vasprintf = yes; then
52304     REPLACE_VASPRINTF=1
52305   else
52306     HAVE_VASPRINTF=0
52307   fi
52308
52309
52310
52311
52312
52313
52314
52315
52316   fi
52317
52318
52319
52320
52321   GNULIB_VASPRINTF=1
52322
52323
52324
52325 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
52326
52327
52328
52329
52330
52331   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
52332
52333
52334
52335   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
52336
52337   # Code from module verify:
52338   # Code from module warn-on-use:
52339   # Code from module wchar:
52340
52341
52342
52343
52344   :
52345
52346
52347
52348
52349
52350
52351
52352
52353
52354   :
52355
52356
52357
52358
52359
52360
52361
52362      if test $gl_cv_have_include_next = yes; then
52363        gl_cv_next_wchar_h='<'wchar.h'>'
52364      else
52365        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
52366 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
52367 if test "${gl_cv_next_wchar_h+set}" = set; then :
52368   $as_echo_n "(cached) " >&6
52369 else
52370
52371           if test $ac_cv_header_wchar_h = yes; then
52372             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52373 /* end confdefs.h.  */
52374 #include <wchar.h>
52375
52376 _ACEOF
52377                                                                                                 case "$host_os" in
52378               aix*) gl_absname_cpp="$ac_cpp -C" ;;
52379               *)    gl_absname_cpp="$ac_cpp" ;;
52380             esac
52381                                                 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
52382                sed -n '\#/wchar.h#{
52383                  s#.*"\(.*/wchar.h\)".*#\1#
52384                  s#^/[^/]#//&#
52385                  p
52386                  q
52387                }'`'"'
52388           else
52389             gl_cv_next_wchar_h='<'wchar.h'>'
52390           fi
52391
52392 fi
52393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
52394 $as_echo "$gl_cv_next_wchar_h" >&6; }
52395      fi
52396      NEXT_WCHAR_H=$gl_cv_next_wchar_h
52397
52398      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
52399        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
52400        gl_next_as_first_directive='<'wchar.h'>'
52401      else
52402        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
52403        gl_next_as_first_directive=$gl_cv_next_wchar_h
52404      fi
52405      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
52406
52407
52408
52409   if test $ac_cv_header_wchar_h = yes; then
52410     HAVE_WCHAR_H=1
52411   else
52412     HAVE_WCHAR_H=0
52413   fi
52414
52415
52416
52417   if test $gt_cv_c_wint_t = yes; then
52418     HAVE_WINT_T=1
52419   else
52420     HAVE_WINT_T=0
52421   fi
52422
52423
52424
52425     for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb     wcsrtombs wcsnrtombs wcwidth; do
52426     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
52427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
52428 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
52429 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
52430   $as_echo_n "(cached) " >&6
52431 else
52432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52433 /* end confdefs.h.  */
52434
52435 /* Some systems require additional headers.  */
52436 #ifndef __GLIBC__
52437 # include <stddef.h>
52438 # include <stdio.h>
52439 # include <time.h>
52440 #endif
52441 #include <wchar.h>
52442
52443 int
52444 main ()
52445 {
52446 #undef $gl_func
52447   (void) $gl_func;
52448   ;
52449   return 0;
52450 }
52451 _ACEOF
52452 if ac_fn_c_try_compile "$LINENO"; then :
52453   eval "$as_gl_Symbol=yes"
52454 else
52455   eval "$as_gl_Symbol=no"
52456 fi
52457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52458 fi
52459 eval ac_res=\$$as_gl_Symbol
52460                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
52461 $as_echo "$ac_res" >&6; }
52462      eval as_val=\$$as_gl_Symbol
52463    if test "x$as_val" = x""yes; then :
52464   cat >>confdefs.h <<_ACEOF
52465 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
52466 _ACEOF
52467
52468                      eval ac_cv_have_decl_$gl_func=yes
52469 fi
52470       done
52471
52472
52473   # Code from module wctype:
52474
52475
52476
52477
52478   :
52479
52480
52481
52482
52483
52484   if test $ac_cv_func_iswcntrl = yes; then
52485     HAVE_ISWCNTRL=1
52486   else
52487     HAVE_ISWCNTRL=0
52488   fi
52489
52490
52491   :
52492
52493
52494
52495
52496
52497   if test $ac_cv_func_iswblank = yes; then
52498     HAVE_ISWBLANK=1
52499   else
52500     HAVE_ISWBLANK=0
52501   fi
52502
52503
52504   :
52505
52506
52507
52508
52509
52510
52511
52512
52513   if test $gt_cv_c_wint_t = yes; then
52514     HAVE_WINT_T=1
52515   else
52516     HAVE_WINT_T=0
52517   fi
52518
52519
52520   if test $ac_cv_header_wctype_h = yes; then
52521     if test $ac_cv_func_iswcntrl = yes; then
52522                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
52523 $as_echo_n "checking whether iswcntrl works... " >&6; }
52524 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
52525   $as_echo_n "(cached) " >&6
52526 else
52527
52528           if test "$cross_compiling" = yes; then :
52529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52530 /* end confdefs.h.  */
52531 #include <stdlib.h>
52532                           #if __GNU_LIBRARY__ == 1
52533                           Linux libc5 i18n is broken.
52534                           #endif
52535 int
52536 main ()
52537 {
52538
52539   ;
52540   return 0;
52541 }
52542 _ACEOF
52543 if ac_fn_c_try_compile "$LINENO"; then :
52544   gl_cv_func_iswcntrl_works=yes
52545 else
52546   gl_cv_func_iswcntrl_works=no
52547 fi
52548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52549
52550 else
52551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52552 /* end confdefs.h.  */
52553
52554                             #include <stddef.h>
52555                             #include <stdio.h>
52556                             #include <time.h>
52557                             #include <wchar.h>
52558                             #include <wctype.h>
52559                             int main () { return iswprint ('x') == 0; }
52560 _ACEOF
52561 if ac_fn_c_try_run "$LINENO"; then :
52562   gl_cv_func_iswcntrl_works=yes
52563 else
52564   gl_cv_func_iswcntrl_works=no
52565 fi
52566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
52567   conftest.$ac_objext conftest.beam conftest.$ac_ext
52568 fi
52569
52570
52571 fi
52572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
52573 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
52574     fi
52575
52576
52577
52578
52579   :
52580
52581
52582
52583
52584
52585
52586
52587      if test $gl_cv_have_include_next = yes; then
52588        gl_cv_next_wctype_h='<'wctype.h'>'
52589      else
52590        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
52591 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
52592 if test "${gl_cv_next_wctype_h+set}" = set; then :
52593   $as_echo_n "(cached) " >&6
52594 else
52595
52596           if test $ac_cv_header_wctype_h = yes; then
52597             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52598 /* end confdefs.h.  */
52599 #include <wctype.h>
52600
52601 _ACEOF
52602                                                                                                 case "$host_os" in
52603               aix*) gl_absname_cpp="$ac_cpp -C" ;;
52604               *)    gl_absname_cpp="$ac_cpp" ;;
52605             esac
52606                                                 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
52607                sed -n '\#/wctype.h#{
52608                  s#.*"\(.*/wctype.h\)".*#\1#
52609                  s#^/[^/]#//&#
52610                  p
52611                  q
52612                }'`'"'
52613           else
52614             gl_cv_next_wctype_h='<'wctype.h'>'
52615           fi
52616
52617 fi
52618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
52619 $as_echo "$gl_cv_next_wctype_h" >&6; }
52620      fi
52621      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
52622
52623      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
52624        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
52625        gl_next_as_first_directive='<'wctype.h'>'
52626      else
52627        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
52628        gl_next_as_first_directive=$gl_cv_next_wctype_h
52629      fi
52630      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
52631
52632
52633
52634     HAVE_WCTYPE_H=1
52635   else
52636     HAVE_WCTYPE_H=0
52637   fi
52638
52639
52640   if test "$gl_cv_func_iswcntrl_works" = no; then
52641     REPLACE_ISWCNTRL=1
52642   else
52643     REPLACE_ISWCNTRL=0
52644   fi
52645
52646
52647   # Code from module wcwidth:
52648
52649
52650
52651
52652
52653
52654
52655
52656
52657   :
52658
52659
52660
52661
52662
52663
52664   :
52665
52666
52667
52668
52669
52670
52671   ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
52672 /* AIX 3.2.5 declares wcwidth in <string.h>. */
52673 #include <string.h>
52674 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
52675    <wchar.h>.
52676    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
52677    before <wchar.h>.  */
52678 #include <stddef.h>
52679 #include <stdio.h>
52680 #include <time.h>
52681 #include <wchar.h>
52682
52683 "
52684 if test "x$ac_cv_have_decl_wcwidth" = x""yes; then :
52685   ac_have_decl=1
52686 else
52687   ac_have_decl=0
52688 fi
52689
52690 cat >>confdefs.h <<_ACEOF
52691 #define HAVE_DECL_WCWIDTH $ac_have_decl
52692 _ACEOF
52693
52694   if test $ac_cv_have_decl_wcwidth != yes; then
52695     HAVE_DECL_WCWIDTH=0
52696   fi
52697
52698   if test $ac_cv_func_wcwidth = yes; then
52699                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
52700 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
52701 if test "${gl_cv_func_wcwidth_works+set}" = set; then :
52702   $as_echo_n "(cached) " >&6
52703 else
52704
52705         if test "$cross_compiling" = yes; then :
52706
52707            case "$host_os" in
52708                      # Guess yes on glibc systems.
52709              *-gnu*) gl_cv_func_wcwidth_works="guessing yes";;
52710              *)      gl_cv_func_wcwidth_works="guessing no";;
52711            esac
52712
52713 else
52714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52715 /* end confdefs.h.  */
52716
52717 #include <locale.h>
52718 /* AIX 3.2.5 declares wcwidth in <string.h>. */
52719 #include <string.h>
52720 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
52721    <wchar.h>.
52722    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
52723    before <wchar.h>.  */
52724 #include <stddef.h>
52725 #include <stdio.h>
52726 #include <time.h>
52727 #include <wchar.h>
52728 #if !HAVE_DECL_WCWIDTH
52729 extern
52730 # ifdef __cplusplus
52731 "C"
52732 # endif
52733 int wcwidth (int);
52734 #endif
52735 int main ()
52736 {
52737   if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
52738     if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
52739       return 1;
52740   return 0;
52741 }
52742 _ACEOF
52743 if ac_fn_c_try_run "$LINENO"; then :
52744   gl_cv_func_wcwidth_works=yes
52745 else
52746   gl_cv_func_wcwidth_works=no
52747 fi
52748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
52749   conftest.$ac_objext conftest.beam conftest.$ac_ext
52750 fi
52751
52752
52753 fi
52754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
52755 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
52756     case "$gl_cv_func_wcwidth_works" in
52757       *yes) ;;
52758       *no) REPLACE_WCWIDTH=1 ;;
52759     esac
52760   fi
52761   if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1; then
52762
52763
52764
52765
52766
52767
52768
52769
52770   gtpo_LIBOBJS="$gtpo_LIBOBJS wcwidth.$ac_objext"
52771
52772   fi
52773   if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1 \
52774      || test $HAVE_DECL_WCWIDTH = 0; then
52775
52776     :
52777
52778   fi
52779
52780
52781
52782
52783   GNULIB_WCWIDTH=1
52784
52785
52786
52787 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
52788
52789
52790
52791   # Code from module xalloc:
52792   # Code from module xalloc-die:
52793   # Code from module xconcat-filename:
52794   # Code from module xerror:
52795   # Code from module xmalloca:
52796   # Code from module xsize:
52797
52798
52799
52800   for ac_header in stdint.h
52801 do :
52802   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
52803 if test "x$ac_cv_header_stdint_h" = x""yes; then :
52804   cat >>confdefs.h <<_ACEOF
52805 #define HAVE_STDINT_H 1
52806 _ACEOF
52807
52808 fi
52809
52810 done
52811
52812
52813   # Code from module xstriconv:
52814   # Code from module xvasprintf:
52815
52816
52817
52818
52819
52820   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
52821
52822   # End of code from modules
52823
52824
52825
52826
52827
52828
52829
52830
52831
52832   gltests_libdeps=
52833   gltests_ltlibdeps=
52834
52835
52836
52837
52838
52839
52840
52841
52842
52843   gl_source_base='tests'
52844   gtpotests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
52845
52846   gl_module_indicator_condition=$gtpotests_WITNESS
52847
52848
52849
52850
52851
52852
52853
52854
52855
52856
52857
52858 for ac_header in pwd.h
52859 do :
52860   ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
52861 if test "x$ac_cv_header_pwd_h" = x""yes; then :
52862   cat >>confdefs.h <<_ACEOF
52863 #define HAVE_PWD_H 1
52864 _ACEOF
52865
52866 fi
52867
52868 done
52869
52870
52871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
52872 $as_echo_n "checking for inline... " >&6; }
52873 if test "${ac_cv_c_inline+set}" = set; then :
52874   $as_echo_n "(cached) " >&6
52875 else
52876   ac_cv_c_inline=no
52877 for ac_kw in inline __inline__ __inline; do
52878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52879 /* end confdefs.h.  */
52880 #ifndef __cplusplus
52881 typedef int foo_t;
52882 static $ac_kw foo_t static_foo () {return 0; }
52883 $ac_kw foo_t foo () {return 0; }
52884 #endif
52885
52886 _ACEOF
52887 if ac_fn_c_try_compile "$LINENO"; then :
52888   ac_cv_c_inline=$ac_kw
52889 fi
52890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52891   test "$ac_cv_c_inline" != no && break
52892 done
52893
52894 fi
52895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
52896 $as_echo "$ac_cv_c_inline" >&6; }
52897
52898 case $ac_cv_c_inline in
52899   inline | yes) ;;
52900   *)
52901     case $ac_cv_c_inline in
52902       no) ac_val=;;
52903       *) ac_val=$ac_cv_c_inline;;
52904     esac
52905     cat >>confdefs.h <<_ACEOF
52906 #ifndef __cplusplus
52907 #define inline $ac_val
52908 #endif
52909 _ACEOF
52910     ;;
52911 esac
52912
52913
52914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
52915 $as_echo_n "checking for unsigned long long int... " >&6; }
52916 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
52917   $as_echo_n "(cached) " >&6
52918 else
52919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52920 /* end confdefs.h.  */
52921
52922   /* For now, do not test the preprocessor; as of 2007 there are too many
52923          implementations with broken preprocessors.  Perhaps this can
52924          be revisited in 2012.  In the meantime, code should not expect
52925          #if to work with literals wider than 32 bits.  */
52926       /* Test literals.  */
52927       long long int ll = 9223372036854775807ll;
52928       long long int nll = -9223372036854775807LL;
52929       unsigned long long int ull = 18446744073709551615ULL;
52930       /* Test constant expressions.   */
52931       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
52932                      ? 1 : -1)];
52933       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
52934                      ? 1 : -1)];
52935       int i = 63;
52936 int
52937 main ()
52938 {
52939 /* Test availability of runtime routines for shift and division.  */
52940       long long int llmax = 9223372036854775807ll;
52941       unsigned long long int ullmax = 18446744073709551615ull;
52942       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
52943               | (llmax / ll) | (llmax % ll)
52944               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
52945               | (ullmax / ull) | (ullmax % ull));
52946   ;
52947   return 0;
52948 }
52949
52950 _ACEOF
52951 if ac_fn_c_try_link "$LINENO"; then :
52952   ac_cv_type_unsigned_long_long_int=yes
52953 else
52954   ac_cv_type_unsigned_long_long_int=no
52955 fi
52956 rm -f core conftest.err conftest.$ac_objext \
52957     conftest$ac_exeext conftest.$ac_ext
52958 fi
52959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
52960 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
52961   if test $ac_cv_type_unsigned_long_long_int = yes; then
52962
52963 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
52964
52965   fi
52966
52967 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
52968 if test "x$ac_cv_type_size_t" = x""yes; then :
52969
52970 else
52971
52972 cat >>confdefs.h <<_ACEOF
52973 #define size_t unsigned int
52974 _ACEOF
52975
52976 fi
52977
52978 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
52979 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
52980
52981 cat >>confdefs.h <<_ACEOF
52982 #define HAVE_PTRDIFF_T 1
52983 _ACEOF
52984
52985
52986 fi
52987
52988
52989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
52990 $as_echo_n "checking for ssize_t... " >&6; }
52991 if test "${gt_cv_ssize_t+set}" = set; then :
52992   $as_echo_n "(cached) " >&6
52993 else
52994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52995 /* end confdefs.h.  */
52996 #include <sys/types.h>
52997 int
52998 main ()
52999 {
53000 int x = sizeof (ssize_t *) + sizeof (ssize_t);
53001         return !x;
53002   ;
53003   return 0;
53004 }
53005 _ACEOF
53006 if ac_fn_c_try_compile "$LINENO"; then :
53007   gt_cv_ssize_t=yes
53008 else
53009   gt_cv_ssize_t=no
53010 fi
53011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53012 fi
53013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
53014 $as_echo "$gt_cv_ssize_t" >&6; }
53015   if test $gt_cv_ssize_t = no; then
53016
53017 $as_echo "#define ssize_t int" >>confdefs.h
53018
53019   fi
53020
53021 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
53022 if test "x$ac_cv_type_pid_t" = x""yes; then :
53023
53024 else
53025
53026 cat >>confdefs.h <<_ACEOF
53027 #define pid_t int
53028 _ACEOF
53029
53030 fi
53031
53032
53033     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
53034 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
53035 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
53036   $as_echo_n "(cached) " >&6
53037 else
53038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53039 /* end confdefs.h.  */
53040
53041 #include <features.h>
53042 #ifdef __GNU_LIBRARY__
53043  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
53044   Lucky GNU user
53045  #endif
53046 #endif
53047
53048 _ACEOF
53049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53050   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
53051   ac_cv_gnu_library_2_1=yes
53052 else
53053   ac_cv_gnu_library_2_1=no
53054 fi
53055 rm -f conftest*
53056
53057
53058
53059 fi
53060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
53061 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
53062
53063     GLIBC21="$ac_cv_gnu_library_2_1"
53064
53065
53066 if test $GLIBC21 = yes; then
53067   ac_fn_c_check_member "$LINENO" "struct __locale_struct" "__names" "ac_cv_member_struct___locale_struct___names" "#include <xlocale.h>
53068 "
53069 if test "x$ac_cv_member_struct___locale_struct___names" = x""yes; then :
53070
53071 cat >>confdefs.h <<_ACEOF
53072 #define HAVE_STRUCT___LOCALE_STRUCT___NAMES 1
53073 _ACEOF
53074
53075
53076 fi
53077
53078 fi
53079
53080 for ac_func in select
53081 do :
53082   ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
53083 if test "x$ac_cv_func_select" = x""yes; then :
53084   cat >>confdefs.h <<_ACEOF
53085 #define HAVE_SELECT 1
53086 _ACEOF
53087
53088 fi
53089 done
53090
53091 for ac_header in vfork.h
53092 do :
53093   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
53094 if test "x$ac_cv_header_vfork_h" = x""yes; then :
53095   cat >>confdefs.h <<_ACEOF
53096 #define HAVE_VFORK_H 1
53097 _ACEOF
53098
53099 fi
53100
53101 done
53102
53103 for ac_func in fork vfork
53104 do :
53105   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
53106 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
53107 eval as_val=\$$as_ac_var
53108    if test "x$as_val" = x""yes; then :
53109   cat >>confdefs.h <<_ACEOF
53110 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
53111 _ACEOF
53112
53113 fi
53114 done
53115
53116 if test "x$ac_cv_func_fork" = xyes; then
53117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
53118 $as_echo_n "checking for working fork... " >&6; }
53119 if test "${ac_cv_func_fork_works+set}" = set; then :
53120   $as_echo_n "(cached) " >&6
53121 else
53122   if test "$cross_compiling" = yes; then :
53123   ac_cv_func_fork_works=cross
53124 else
53125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53126 /* end confdefs.h.  */
53127 $ac_includes_default
53128 int
53129 main ()
53130 {
53131
53132           /* By Ruediger Kuhlmann. */
53133           return fork () < 0;
53134
53135   ;
53136   return 0;
53137 }
53138 _ACEOF
53139 if ac_fn_c_try_run "$LINENO"; then :
53140   ac_cv_func_fork_works=yes
53141 else
53142   ac_cv_func_fork_works=no
53143 fi
53144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53145   conftest.$ac_objext conftest.beam conftest.$ac_ext
53146 fi
53147
53148 fi
53149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
53150 $as_echo "$ac_cv_func_fork_works" >&6; }
53151
53152 else
53153   ac_cv_func_fork_works=$ac_cv_func_fork
53154 fi
53155 if test "x$ac_cv_func_fork_works" = xcross; then
53156   case $host in
53157     *-*-amigaos* | *-*-msdosdjgpp*)
53158       # Override, as these systems have only a dummy fork() stub
53159       ac_cv_func_fork_works=no
53160       ;;
53161     *)
53162       ac_cv_func_fork_works=yes
53163       ;;
53164   esac
53165   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
53166 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
53167 fi
53168 ac_cv_func_vfork_works=$ac_cv_func_vfork
53169 if test "x$ac_cv_func_vfork" = xyes; then
53170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
53171 $as_echo_n "checking for working vfork... " >&6; }
53172 if test "${ac_cv_func_vfork_works+set}" = set; then :
53173   $as_echo_n "(cached) " >&6
53174 else
53175   if test "$cross_compiling" = yes; then :
53176   ac_cv_func_vfork_works=cross
53177 else
53178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53179 /* end confdefs.h.  */
53180 /* Thanks to Paul Eggert for this test.  */
53181 $ac_includes_default
53182 #include <sys/wait.h>
53183 #ifdef HAVE_VFORK_H
53184 # include <vfork.h>
53185 #endif
53186 /* On some sparc systems, changes by the child to local and incoming
53187    argument registers are propagated back to the parent.  The compiler
53188    is told about this with #include <vfork.h>, but some compilers
53189    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
53190    static variable whose address is put into a register that is
53191    clobbered by the vfork.  */
53192 static void
53193 #ifdef __cplusplus
53194 sparc_address_test (int arg)
53195 # else
53196 sparc_address_test (arg) int arg;
53197 #endif
53198 {
53199   static pid_t child;
53200   if (!child) {
53201     child = vfork ();
53202     if (child < 0) {
53203       perror ("vfork");
53204       _exit(2);
53205     }
53206     if (!child) {
53207       arg = getpid();
53208       write(-1, "", 0);
53209       _exit (arg);
53210     }
53211   }
53212 }
53213
53214 int
53215 main ()
53216 {
53217   pid_t parent = getpid ();
53218   pid_t child;
53219
53220   sparc_address_test (0);
53221
53222   child = vfork ();
53223
53224   if (child == 0) {
53225     /* Here is another test for sparc vfork register problems.  This
53226        test uses lots of local variables, at least as many local
53227        variables as main has allocated so far including compiler
53228        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
53229        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
53230        reuse the register of parent for one of the local variables,
53231        since it will think that parent can't possibly be used any more
53232        in this routine.  Assigning to the local variable will thus
53233        munge parent in the parent process.  */
53234     pid_t
53235       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
53236       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
53237     /* Convince the compiler that p..p7 are live; otherwise, it might
53238        use the same hardware register for all 8 local variables.  */
53239     if (p != p1 || p != p2 || p != p3 || p != p4
53240         || p != p5 || p != p6 || p != p7)
53241       _exit(1);
53242
53243     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
53244        from child file descriptors.  If the child closes a descriptor
53245        before it execs or exits, this munges the parent's descriptor
53246        as well.  Test for this by closing stdout in the child.  */
53247     _exit(close(fileno(stdout)) != 0);
53248   } else {
53249     int status;
53250     struct stat st;
53251
53252     while (wait(&status) != child)
53253       ;
53254     return (
53255          /* Was there some problem with vforking?  */
53256          child < 0
53257
53258          /* Did the child fail?  (This shouldn't happen.)  */
53259          || status
53260
53261          /* Did the vfork/compiler bug occur?  */
53262          || parent != getpid()
53263
53264          /* Did the file descriptor bug occur?  */
53265          || fstat(fileno(stdout), &st) != 0
53266          );
53267   }
53268 }
53269 _ACEOF
53270 if ac_fn_c_try_run "$LINENO"; then :
53271   ac_cv_func_vfork_works=yes
53272 else
53273   ac_cv_func_vfork_works=no
53274 fi
53275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53276   conftest.$ac_objext conftest.beam conftest.$ac_ext
53277 fi
53278
53279 fi
53280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
53281 $as_echo "$ac_cv_func_vfork_works" >&6; }
53282
53283 fi;
53284 if test "x$ac_cv_func_fork_works" = xcross; then
53285   ac_cv_func_vfork_works=$ac_cv_func_vfork
53286   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
53287 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
53288 fi
53289
53290 if test "x$ac_cv_func_vfork_works" = xyes; then
53291
53292 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
53293
53294 else
53295
53296 $as_echo "#define vfork fork" >>confdefs.h
53297
53298 fi
53299 if test "x$ac_cv_func_fork_works" = xyes; then
53300
53301 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
53302
53303 fi
53304
53305
53306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signal handlers with siginfo_t" >&5
53307 $as_echo_n "checking for signal handlers with siginfo_t... " >&6; }
53308 if test "${gt_cv_siginfo_t+set}" = set; then :
53309   $as_echo_n "(cached) " >&6
53310 else
53311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53312 /* end confdefs.h.  */
53313
53314 #include <signal.h>
53315 int
53316 main ()
53317 {
53318
53319 struct sigaction action;
53320 siginfo_t info;
53321 action.sa_flags = SA_SIGINFO;
53322 action.sa_sigaction = (void *) 0;
53323
53324   ;
53325   return 0;
53326 }
53327 _ACEOF
53328 if ac_fn_c_try_compile "$LINENO"; then :
53329   gt_cv_siginfo_t=yes
53330 else
53331   gt_cv_siginfo_t=no
53332 fi
53333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53334 fi
53335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_siginfo_t" >&5
53336 $as_echo "$gt_cv_siginfo_t" >&6; }
53337   if test $gt_cv_siginfo_t = yes; then
53338
53339 $as_echo "#define HAVE_SIGINFO 1" >>confdefs.h
53340
53341   fi
53342
53343
53344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setlocale declaration" >&5
53345 $as_echo_n "checking for setlocale declaration... " >&6; }
53346 if test "${gt_cv_proto_setlocale+set}" = set; then :
53347   $as_echo_n "(cached) " >&6
53348 else
53349
53350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53351 /* end confdefs.h.  */
53352
53353 #include <stdlib.h>
53354 #include <locale.h>
53355 extern
53356 #ifdef __cplusplus
53357 "C"
53358 #endif
53359 #if defined(__STDC__) || defined(__cplusplus)
53360 char *setlocale (int category, char *locale);
53361 #else
53362 char *setlocale();
53363 #endif
53364
53365 int
53366 main ()
53367 {
53368
53369   ;
53370   return 0;
53371 }
53372 _ACEOF
53373 if ac_fn_c_try_compile "$LINENO"; then :
53374   gt_cv_proto_setlocale_arg1=""
53375 else
53376   gt_cv_proto_setlocale_arg1="const"
53377 fi
53378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53379 gt_cv_proto_setlocale="extern char *setlocale (int category, $gt_cv_proto_setlocale_arg1 char *locale);"
53380 fi
53381
53382 gt_cv_proto_setlocale=`echo "$gt_cv_proto_setlocale" | tr -s ' ' | sed -e 's/( /(/'`
53383 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
53384          $gt_cv_proto_setlocale" >&5
53385 $as_echo "
53386          $gt_cv_proto_setlocale" >&6; }
53387
53388 cat >>confdefs.h <<_ACEOF
53389 #define SETLOCALE_CONST $gt_cv_proto_setlocale_arg1
53390 _ACEOF
53391
53392
53393
53394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
53395 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
53396 if test "${ac_cv_c_bigendian+set}" = set; then :
53397   $as_echo_n "(cached) " >&6
53398 else
53399   ac_cv_c_bigendian=unknown
53400     # See if we're dealing with a universal compiler.
53401     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53402 /* end confdefs.h.  */
53403 #ifndef __APPLE_CC__
53404                not a universal capable compiler
53405              #endif
53406              typedef int dummy;
53407
53408 _ACEOF
53409 if ac_fn_c_try_compile "$LINENO"; then :
53410
53411         # Check for potential -arch flags.  It is not universal unless
53412         # there are at least two -arch flags with different values.
53413         ac_arch=
53414         ac_prev=
53415         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
53416          if test -n "$ac_prev"; then
53417            case $ac_word in
53418              i?86 | x86_64 | ppc | ppc64)
53419                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
53420                  ac_arch=$ac_word
53421                else
53422                  ac_cv_c_bigendian=universal
53423                  break
53424                fi
53425                ;;
53426            esac
53427            ac_prev=
53428          elif test "x$ac_word" = "x-arch"; then
53429            ac_prev=arch
53430          fi
53431        done
53432 fi
53433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53434     if test $ac_cv_c_bigendian = unknown; then
53435       # See if sys/param.h defines the BYTE_ORDER macro.
53436       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53437 /* end confdefs.h.  */
53438 #include <sys/types.h>
53439              #include <sys/param.h>
53440
53441 int
53442 main ()
53443 {
53444 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
53445                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
53446                      && LITTLE_ENDIAN)
53447               bogus endian macros
53448              #endif
53449
53450   ;
53451   return 0;
53452 }
53453 _ACEOF
53454 if ac_fn_c_try_compile "$LINENO"; then :
53455   # It does; now see whether it defined to BIG_ENDIAN or not.
53456          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53457 /* end confdefs.h.  */
53458 #include <sys/types.h>
53459                 #include <sys/param.h>
53460
53461 int
53462 main ()
53463 {
53464 #if BYTE_ORDER != BIG_ENDIAN
53465                  not big endian
53466                 #endif
53467
53468   ;
53469   return 0;
53470 }
53471 _ACEOF
53472 if ac_fn_c_try_compile "$LINENO"; then :
53473   ac_cv_c_bigendian=yes
53474 else
53475   ac_cv_c_bigendian=no
53476 fi
53477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53478 fi
53479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53480     fi
53481     if test $ac_cv_c_bigendian = unknown; then
53482       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
53483       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53484 /* end confdefs.h.  */
53485 #include <limits.h>
53486
53487 int
53488 main ()
53489 {
53490 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
53491               bogus endian macros
53492              #endif
53493
53494   ;
53495   return 0;
53496 }
53497 _ACEOF
53498 if ac_fn_c_try_compile "$LINENO"; then :
53499   # It does; now see whether it defined to _BIG_ENDIAN or not.
53500          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53501 /* end confdefs.h.  */
53502 #include <limits.h>
53503
53504 int
53505 main ()
53506 {
53507 #ifndef _BIG_ENDIAN
53508                  not big endian
53509                 #endif
53510
53511   ;
53512   return 0;
53513 }
53514 _ACEOF
53515 if ac_fn_c_try_compile "$LINENO"; then :
53516   ac_cv_c_bigendian=yes
53517 else
53518   ac_cv_c_bigendian=no
53519 fi
53520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53521 fi
53522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53523     fi
53524     if test $ac_cv_c_bigendian = unknown; then
53525       # Compile a test program.
53526       if test "$cross_compiling" = yes; then :
53527   # Try to guess by grepping values from an object file.
53528          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53529 /* end confdefs.h.  */
53530 short int ascii_mm[] =
53531                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
53532                 short int ascii_ii[] =
53533                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
53534                 int use_ascii (int i) {
53535                   return ascii_mm[i] + ascii_ii[i];
53536                 }
53537                 short int ebcdic_ii[] =
53538                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
53539                 short int ebcdic_mm[] =
53540                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
53541                 int use_ebcdic (int i) {
53542                   return ebcdic_mm[i] + ebcdic_ii[i];
53543                 }
53544                 extern int foo;
53545
53546 int
53547 main ()
53548 {
53549 return use_ascii (foo) == use_ebcdic (foo);
53550   ;
53551   return 0;
53552 }
53553 _ACEOF
53554 if ac_fn_c_try_compile "$LINENO"; then :
53555   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
53556               ac_cv_c_bigendian=yes
53557             fi
53558             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
53559               if test "$ac_cv_c_bigendian" = unknown; then
53560                 ac_cv_c_bigendian=no
53561               else
53562                 # finding both strings is unlikely to happen, but who knows?
53563                 ac_cv_c_bigendian=unknown
53564               fi
53565             fi
53566 fi
53567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53568 else
53569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53570 /* end confdefs.h.  */
53571 $ac_includes_default
53572 int
53573 main ()
53574 {
53575
53576              /* Are we little or big endian?  From Harbison&Steele.  */
53577              union
53578              {
53579                long int l;
53580                char c[sizeof (long int)];
53581              } u;
53582              u.l = 1;
53583              return u.c[sizeof (long int) - 1] == 1;
53584
53585   ;
53586   return 0;
53587 }
53588 _ACEOF
53589 if ac_fn_c_try_run "$LINENO"; then :
53590   ac_cv_c_bigendian=no
53591 else
53592   ac_cv_c_bigendian=yes
53593 fi
53594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53595   conftest.$ac_objext conftest.beam conftest.$ac_ext
53596 fi
53597
53598     fi
53599 fi
53600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
53601 $as_echo "$ac_cv_c_bigendian" >&6; }
53602  case $ac_cv_c_bigendian in #(
53603    yes)
53604      endianness=1;; #(
53605    no)
53606      endianness=0 ;; #(
53607    universal)
53608      endianness=universal
53609      ;; #(
53610    *)
53611      echo "AC-C-BIGENDIAN fails to work on your system." | sed -e 's,-,_,g' 1>&2
53612    echo "Please report this as a bug to bug-autoconf@gnu.org" 1>&2
53613    exit 1 ;;
53614  esac
53615
53616 if test $endianness != universal; then
53617
53618 cat >>confdefs.h <<_ACEOF
53619 #define ENDIANNESS $endianness
53620 _ACEOF
53621
53622 fi
53623
53624
53625
53626   for ac_header in arpa/inet.h
53627 do :
53628   ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
53629 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
53630   cat >>confdefs.h <<_ACEOF
53631 #define HAVE_ARPA_INET_H 1
53632 _ACEOF
53633
53634 fi
53635
53636 done
53637
53638   for ac_func in gethostname gethostbyname inet_ntop
53639 do :
53640   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
53641 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
53642 eval as_val=\$$as_ac_var
53643    if test "x$as_val" = x""yes; then :
53644   cat >>confdefs.h <<_ACEOF
53645 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
53646 _ACEOF
53647
53648 fi
53649 done
53650
53651
53652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
53653 $as_echo_n "checking for IPv6 sockets... " >&6; }
53654   if test "${gt_cv_socket_ipv6+set}" = set; then :
53655   $as_echo_n "(cached) " >&6
53656 else
53657
53658     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53659 /* end confdefs.h.  */
53660
53661 #include <sys/types.h>
53662 #include <sys/socket.h>
53663 #include <netinet/in.h>
53664 int
53665 main ()
53666 {
53667 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
53668   ;
53669   return 0;
53670 }
53671 _ACEOF
53672 if ac_fn_c_try_compile "$LINENO"; then :
53673   gt_cv_socket_ipv6=yes
53674 else
53675   gt_cv_socket_ipv6=no
53676 fi
53677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53678
53679 fi
53680
53681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_socket_ipv6" >&5
53682 $as_echo "$gt_cv_socket_ipv6" >&6; }
53683   if test $gt_cv_socket_ipv6 = yes; then
53684
53685 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
53686
53687   fi
53688
53689
53690 if test "$enable_shared" = yes; then
53691   case "$host_os" in
53692     mingw* | cygwin*) is_woe32dll=yes ;;
53693     *) is_woe32dll=no ;;
53694   esac
53695 else
53696   is_woe32dll=no
53697 fi
53698  if test $is_woe32dll = yes; then
53699   WOE32DLL_TRUE=
53700   WOE32DLL_FALSE='#'
53701 else
53702   WOE32DLL_TRUE='#'
53703   WOE32DLL_FALSE=
53704 fi
53705
53706 if test $is_woe32dll = yes; then
53707
53708 $as_echo "#define WOE32DLL 1" >>confdefs.h
53709
53710 fi
53711
53712 if test -n "$GETOPT_H"; then
53713   GETTEXTLIB_EXPORTS_FLAGS="-DGNULIB_DEFINED_GETOPT"
53714 else
53715   GETTEXTLIB_EXPORTS_FLAGS=
53716 fi
53717
53718
53719
53720
53721
53722 case "$host_os" in
53723   linux*)
53724
53725 $as_echo "#define DYNLOAD_LIBEXPAT 1" >>confdefs.h
53726
53727     LIBEXPAT="-ldl"
53728     LTLIBEXPAT="-ldl"
53729
53730
53731     ;;
53732   *)
53733
53734
53735
53736
53737
53738
53739
53740
53741
53742
53743
53744
53745
53746     use_additional=yes
53747
53748   acl_save_prefix="$prefix"
53749   prefix="$acl_final_prefix"
53750   acl_save_exec_prefix="$exec_prefix"
53751   exec_prefix="$acl_final_exec_prefix"
53752
53753     eval additional_includedir=\"$includedir\"
53754     eval additional_libdir=\"$libdir\"
53755
53756   exec_prefix="$acl_save_exec_prefix"
53757   prefix="$acl_save_prefix"
53758
53759
53760 # Check whether --with-libexpat-prefix was given.
53761 if test "${with_libexpat_prefix+set}" = set; then :
53762   withval=$with_libexpat_prefix;
53763     if test "X$withval" = "Xno"; then
53764       use_additional=no
53765     else
53766       if test "X$withval" = "X"; then
53767
53768   acl_save_prefix="$prefix"
53769   prefix="$acl_final_prefix"
53770   acl_save_exec_prefix="$exec_prefix"
53771   exec_prefix="$acl_final_exec_prefix"
53772
53773           eval additional_includedir=\"$includedir\"
53774           eval additional_libdir=\"$libdir\"
53775
53776   exec_prefix="$acl_save_exec_prefix"
53777   prefix="$acl_save_prefix"
53778
53779       else
53780         additional_includedir="$withval/include"
53781         additional_libdir="$withval/$acl_libdirstem"
53782         if test "$acl_libdirstem2" != "$acl_libdirstem" \
53783            && ! test -d "$withval/$acl_libdirstem"; then
53784           additional_libdir="$withval/$acl_libdirstem2"
53785         fi
53786       fi
53787     fi
53788
53789 fi
53790
53791       LIBEXPAT=
53792   LTLIBEXPAT=
53793   INCEXPAT=
53794   LIBEXPAT_PREFIX=
53795       HAVE_LIBEXPAT=
53796   rpathdirs=
53797   ltrpathdirs=
53798   names_already_handled=
53799   names_next_round='expat '
53800   while test -n "$names_next_round"; do
53801     names_this_round="$names_next_round"
53802     names_next_round=
53803     for name in $names_this_round; do
53804       already_handled=
53805       for n in $names_already_handled; do
53806         if test "$n" = "$name"; then
53807           already_handled=yes
53808           break
53809         fi
53810       done
53811       if test -z "$already_handled"; then
53812         names_already_handled="$names_already_handled $name"
53813                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
53814         eval value=\"\$HAVE_LIB$uppername\"
53815         if test -n "$value"; then
53816           if test "$value" = yes; then
53817             eval value=\"\$LIB$uppername\"
53818             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
53819             eval value=\"\$LTLIB$uppername\"
53820             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
53821           else
53822                                     :
53823           fi
53824         else
53825                               found_dir=
53826           found_la=
53827           found_so=
53828           found_a=
53829           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
53830           if test -n "$acl_shlibext"; then
53831             shrext=".$acl_shlibext"             # typically: shrext=.so
53832           else
53833             shrext=
53834           fi
53835           if test $use_additional = yes; then
53836             dir="$additional_libdir"
53837                                     if test -n "$acl_shlibext"; then
53838               if test -f "$dir/$libname$shrext"; then
53839                 found_dir="$dir"
53840                 found_so="$dir/$libname$shrext"
53841               else
53842                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
53843                   ver=`(cd "$dir" && \
53844                         for f in "$libname$shrext".*; do echo "$f"; done \
53845                         | sed -e "s,^$libname$shrext\\\\.,," \
53846                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
53847                         | sed 1q ) 2>/dev/null`
53848                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
53849                     found_dir="$dir"
53850                     found_so="$dir/$libname$shrext.$ver"
53851                   fi
53852                 else
53853                   eval library_names=\"$acl_library_names_spec\"
53854                   for f in $library_names; do
53855                     if test -f "$dir/$f"; then
53856                       found_dir="$dir"
53857                       found_so="$dir/$f"
53858                       break
53859                     fi
53860                   done
53861                 fi
53862               fi
53863             fi
53864                         if test "X$found_dir" = "X"; then
53865               if test -f "$dir/$libname.$acl_libext"; then
53866                 found_dir="$dir"
53867                 found_a="$dir/$libname.$acl_libext"
53868               fi
53869             fi
53870             if test "X$found_dir" != "X"; then
53871               if test -f "$dir/$libname.la"; then
53872                 found_la="$dir/$libname.la"
53873               fi
53874             fi
53875           fi
53876           if test "X$found_dir" = "X"; then
53877             for x in $LDFLAGS $LTLIBEXPAT; do
53878
53879   acl_save_prefix="$prefix"
53880   prefix="$acl_final_prefix"
53881   acl_save_exec_prefix="$exec_prefix"
53882   exec_prefix="$acl_final_exec_prefix"
53883   eval x=\"$x\"
53884   exec_prefix="$acl_save_exec_prefix"
53885   prefix="$acl_save_prefix"
53886
53887               case "$x" in
53888                 -L*)
53889                   dir=`echo "X$x" | sed -e 's/^X-L//'`
53890                                     if test -n "$acl_shlibext"; then
53891                     if test -f "$dir/$libname$shrext"; then
53892                       found_dir="$dir"
53893                       found_so="$dir/$libname$shrext"
53894                     else
53895                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
53896                         ver=`(cd "$dir" && \
53897                               for f in "$libname$shrext".*; do echo "$f"; done \
53898                               | sed -e "s,^$libname$shrext\\\\.,," \
53899                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
53900                               | sed 1q ) 2>/dev/null`
53901                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
53902                           found_dir="$dir"
53903                           found_so="$dir/$libname$shrext.$ver"
53904                         fi
53905                       else
53906                         eval library_names=\"$acl_library_names_spec\"
53907                         for f in $library_names; do
53908                           if test -f "$dir/$f"; then
53909                             found_dir="$dir"
53910                             found_so="$dir/$f"
53911                             break
53912                           fi
53913                         done
53914                       fi
53915                     fi
53916                   fi
53917                                     if test "X$found_dir" = "X"; then
53918                     if test -f "$dir/$libname.$acl_libext"; then
53919                       found_dir="$dir"
53920                       found_a="$dir/$libname.$acl_libext"
53921                     fi
53922                   fi
53923                   if test "X$found_dir" != "X"; then
53924                     if test -f "$dir/$libname.la"; then
53925                       found_la="$dir/$libname.la"
53926                     fi
53927                   fi
53928                   ;;
53929               esac
53930               if test "X$found_dir" != "X"; then
53931                 break
53932               fi
53933             done
53934           fi
53935           if test "X$found_dir" != "X"; then
53936                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
53937             if test "X$found_so" != "X"; then
53938                                                         if test "$enable_rpath" = no \
53939                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
53940                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
53941                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
53942               else
53943                                                                                 haveit=
53944                 for x in $ltrpathdirs; do
53945                   if test "X$x" = "X$found_dir"; then
53946                     haveit=yes
53947                     break
53948                   fi
53949                 done
53950                 if test -z "$haveit"; then
53951                   ltrpathdirs="$ltrpathdirs $found_dir"
53952                 fi
53953                                 if test "$acl_hardcode_direct" = yes; then
53954                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
53955                 else
53956                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
53957                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
53958                                                             haveit=
53959                     for x in $rpathdirs; do
53960                       if test "X$x" = "X$found_dir"; then
53961                         haveit=yes
53962                         break
53963                       fi
53964                     done
53965                     if test -z "$haveit"; then
53966                       rpathdirs="$rpathdirs $found_dir"
53967                     fi
53968                   else
53969                                                                                 haveit=
53970                     for x in $LDFLAGS $LIBEXPAT; do
53971
53972   acl_save_prefix="$prefix"
53973   prefix="$acl_final_prefix"
53974   acl_save_exec_prefix="$exec_prefix"
53975   exec_prefix="$acl_final_exec_prefix"
53976   eval x=\"$x\"
53977   exec_prefix="$acl_save_exec_prefix"
53978   prefix="$acl_save_prefix"
53979
53980                       if test "X$x" = "X-L$found_dir"; then
53981                         haveit=yes
53982                         break
53983                       fi
53984                     done
53985                     if test -z "$haveit"; then
53986                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
53987                     fi
53988                     if test "$acl_hardcode_minus_L" != no; then
53989                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
53990                     else
53991                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
53992                     fi
53993                   fi
53994                 fi
53995               fi
53996             else
53997               if test "X$found_a" != "X"; then
53998                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
53999               else
54000                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
54001               fi
54002             fi
54003                         additional_includedir=
54004             case "$found_dir" in
54005               */$acl_libdirstem | */$acl_libdirstem/)
54006                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
54007                 if test "$name" = 'expat'; then
54008                   LIBEXPAT_PREFIX="$basedir"
54009                 fi
54010                 additional_includedir="$basedir/include"
54011                 ;;
54012               */$acl_libdirstem2 | */$acl_libdirstem2/)
54013                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
54014                 if test "$name" = 'expat'; then
54015                   LIBEXPAT_PREFIX="$basedir"
54016                 fi
54017                 additional_includedir="$basedir/include"
54018                 ;;
54019             esac
54020             if test "X$additional_includedir" != "X"; then
54021                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
54022                 haveit=
54023                 if test "X$additional_includedir" = "X/usr/local/include"; then
54024                   if test -n "$GCC"; then
54025                     case $host_os in
54026                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
54027                     esac
54028                   fi
54029                 fi
54030                 if test -z "$haveit"; then
54031                   for x in $CPPFLAGS $INCEXPAT; do
54032
54033   acl_save_prefix="$prefix"
54034   prefix="$acl_final_prefix"
54035   acl_save_exec_prefix="$exec_prefix"
54036   exec_prefix="$acl_final_exec_prefix"
54037   eval x=\"$x\"
54038   exec_prefix="$acl_save_exec_prefix"
54039   prefix="$acl_save_prefix"
54040
54041                     if test "X$x" = "X-I$additional_includedir"; then
54042                       haveit=yes
54043                       break
54044                     fi
54045                   done
54046                   if test -z "$haveit"; then
54047                     if test -d "$additional_includedir"; then
54048                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
54049                     fi
54050                   fi
54051                 fi
54052               fi
54053             fi
54054                         if test -n "$found_la"; then
54055                                                         save_libdir="$libdir"
54056               case "$found_la" in
54057                 */* | *\\*) . "$found_la" ;;
54058                 *) . "./$found_la" ;;
54059               esac
54060               libdir="$save_libdir"
54061                             for dep in $dependency_libs; do
54062                 case "$dep" in
54063                   -L*)
54064                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
54065                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
54066                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
54067                       haveit=
54068                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
54069                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
54070                         if test -n "$GCC"; then
54071                           case $host_os in
54072                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
54073                           esac
54074                         fi
54075                       fi
54076                       if test -z "$haveit"; then
54077                         haveit=
54078                         for x in $LDFLAGS $LIBEXPAT; do
54079
54080   acl_save_prefix="$prefix"
54081   prefix="$acl_final_prefix"
54082   acl_save_exec_prefix="$exec_prefix"
54083   exec_prefix="$acl_final_exec_prefix"
54084   eval x=\"$x\"
54085   exec_prefix="$acl_save_exec_prefix"
54086   prefix="$acl_save_prefix"
54087
54088                           if test "X$x" = "X-L$additional_libdir"; then
54089                             haveit=yes
54090                             break
54091                           fi
54092                         done
54093                         if test -z "$haveit"; then
54094                           if test -d "$additional_libdir"; then
54095                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
54096                           fi
54097                         fi
54098                         haveit=
54099                         for x in $LDFLAGS $LTLIBEXPAT; do
54100
54101   acl_save_prefix="$prefix"
54102   prefix="$acl_final_prefix"
54103   acl_save_exec_prefix="$exec_prefix"
54104   exec_prefix="$acl_final_exec_prefix"
54105   eval x=\"$x\"
54106   exec_prefix="$acl_save_exec_prefix"
54107   prefix="$acl_save_prefix"
54108
54109                           if test "X$x" = "X-L$additional_libdir"; then
54110                             haveit=yes
54111                             break
54112                           fi
54113                         done
54114                         if test -z "$haveit"; then
54115                           if test -d "$additional_libdir"; then
54116                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
54117                           fi
54118                         fi
54119                       fi
54120                     fi
54121                     ;;
54122                   -R*)
54123                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
54124                     if test "$enable_rpath" != no; then
54125                                                                   haveit=
54126                       for x in $rpathdirs; do
54127                         if test "X$x" = "X$dir"; then
54128                           haveit=yes
54129                           break
54130                         fi
54131                       done
54132                       if test -z "$haveit"; then
54133                         rpathdirs="$rpathdirs $dir"
54134                       fi
54135                                                                   haveit=
54136                       for x in $ltrpathdirs; do
54137                         if test "X$x" = "X$dir"; then
54138                           haveit=yes
54139                           break
54140                         fi
54141                       done
54142                       if test -z "$haveit"; then
54143                         ltrpathdirs="$ltrpathdirs $dir"
54144                       fi
54145                     fi
54146                     ;;
54147                   -l*)
54148                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
54149                     ;;
54150                   *.la)
54151                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
54152                     ;;
54153                   *)
54154                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
54155                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
54156                     ;;
54157                 esac
54158               done
54159             fi
54160           else
54161                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
54162             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
54163           fi
54164         fi
54165       fi
54166     done
54167   done
54168   if test "X$rpathdirs" != "X"; then
54169     if test -n "$acl_hardcode_libdir_separator"; then
54170                         alldirs=
54171       for found_dir in $rpathdirs; do
54172         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
54173       done
54174             acl_save_libdir="$libdir"
54175       libdir="$alldirs"
54176       eval flag=\"$acl_hardcode_libdir_flag_spec\"
54177       libdir="$acl_save_libdir"
54178       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
54179     else
54180             for found_dir in $rpathdirs; do
54181         acl_save_libdir="$libdir"
54182         libdir="$found_dir"
54183         eval flag=\"$acl_hardcode_libdir_flag_spec\"
54184         libdir="$acl_save_libdir"
54185         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
54186       done
54187     fi
54188   fi
54189   if test "X$ltrpathdirs" != "X"; then
54190             for found_dir in $ltrpathdirs; do
54191       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
54192     done
54193   fi
54194
54195
54196
54197
54198
54199
54200
54201         ac_save_CPPFLAGS="$CPPFLAGS"
54202
54203   for element in $INCEXPAT; do
54204     haveit=
54205     for x in $CPPFLAGS; do
54206
54207   acl_save_prefix="$prefix"
54208   prefix="$acl_final_prefix"
54209   acl_save_exec_prefix="$exec_prefix"
54210   exec_prefix="$acl_final_exec_prefix"
54211   eval x=\"$x\"
54212   exec_prefix="$acl_save_exec_prefix"
54213   prefix="$acl_save_prefix"
54214
54215       if test "X$x" = "X$element"; then
54216         haveit=yes
54217         break
54218       fi
54219     done
54220     if test -z "$haveit"; then
54221       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
54222     fi
54223   done
54224
54225
54226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
54227 $as_echo_n "checking for libexpat... " >&6; }
54228 if test "${ac_cv_libexpat+set}" = set; then :
54229   $as_echo_n "(cached) " >&6
54230 else
54231
54232     ac_save_LIBS="$LIBS"
54233                                 case " $LIBEXPAT" in
54234       *" -l"*) LIBS="$LIBS $LIBEXPAT" ;;
54235       *)       LIBS="$LIBEXPAT $LIBS" ;;
54236     esac
54237     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54238 /* end confdefs.h.  */
54239 #include <expat.h>
54240 int
54241 main ()
54242 {
54243 XML_ExpatVersion();
54244   ;
54245   return 0;
54246 }
54247 _ACEOF
54248 if ac_fn_c_try_link "$LINENO"; then :
54249   ac_cv_libexpat=yes
54250 else
54251   ac_cv_libexpat='no'
54252 fi
54253 rm -f core conftest.err conftest.$ac_objext \
54254     conftest$ac_exeext conftest.$ac_ext
54255     LIBS="$ac_save_LIBS"
54256
54257 fi
54258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
54259 $as_echo "$ac_cv_libexpat" >&6; }
54260   if test "$ac_cv_libexpat" = yes; then
54261     HAVE_LIBEXPAT=yes
54262
54263 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
54264
54265     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
54266 $as_echo_n "checking how to link with libexpat... " >&6; }
54267     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
54268 $as_echo "$LIBEXPAT" >&6; }
54269   else
54270     HAVE_LIBEXPAT=no
54271             CPPFLAGS="$ac_save_CPPFLAGS"
54272     LIBEXPAT=
54273     LTLIBEXPAT=
54274     LIBEXPAT_PREFIX=
54275   fi
54276
54277
54278
54279
54280
54281
54282
54283     ;;
54284 esac
54285
54286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
54287 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
54288 if test "${lt_cv_path_NM+set}" = set; then :
54289   $as_echo_n "(cached) " >&6
54290 else
54291   if test -n "$NM"; then
54292   # Let the user override the test.
54293   lt_cv_path_NM="$NM"
54294 else
54295   lt_nm_to_check="${ac_tool_prefix}nm"
54296   if test -n "$ac_tool_prefix" \
54297      && { test "$build" = "$host" \
54298           || { test "$build_os" = cygwin && test "$host_os" = mingw32; }; \
54299         }; then
54300     lt_nm_to_check="$lt_nm_to_check nm"
54301   fi
54302   for lt_tmp_nm in $lt_nm_to_check; do
54303     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
54304     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
54305       IFS="$lt_save_ifs"
54306       test -z "$ac_dir" && ac_dir=.
54307       tmp_nm="$ac_dir/$lt_tmp_nm"
54308       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
54309         # Check to see if the nm accepts a BSD-compat flag.
54310         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
54311         #   nm: unknown option "B" ignored
54312         # Tru64's nm complains that /dev/null is an invalid object file
54313         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
54314         */dev/null* | *'Invalid file or object type'*)
54315           lt_cv_path_NM="$tmp_nm -B"
54316           break
54317           ;;
54318         *)
54319           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
54320           */dev/null*)
54321             lt_cv_path_NM="$tmp_nm -p"
54322             break
54323             ;;
54324           *)
54325             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
54326             continue # so that we can try to find one that supports BSD flags
54327             ;;
54328           esac
54329           ;;
54330         esac
54331       fi
54332     done
54333     IFS="$lt_save_ifs"
54334   done
54335   : ${lt_cv_path_NM=no}
54336 fi
54337 fi
54338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
54339 $as_echo "$lt_cv_path_NM" >&6; }
54340 if test "$lt_cv_path_NM" != "no"; then
54341   NM="$lt_cv_path_NM"
54342 else
54343   # Didn't find any BSD compatible name lister, look for dumpbin.
54344   if test -n "$DUMPBIN"; then :
54345     # Let the user override the test.
54346   else
54347     if test -n "$ac_tool_prefix"; then
54348   for ac_prog in dumpbin "link -dump"
54349   do
54350     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
54351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
54352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54353 $as_echo_n "checking for $ac_word... " >&6; }
54354 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
54355   $as_echo_n "(cached) " >&6
54356 else
54357   if test -n "$DUMPBIN"; then
54358   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
54359 else
54360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54361 for as_dir in $PATH
54362 do
54363   IFS=$as_save_IFS
54364   test -z "$as_dir" && as_dir=.
54365     for ac_exec_ext in '' $ac_executable_extensions; do
54366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54367     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
54368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54369     break 2
54370   fi
54371 done
54372   done
54373 IFS=$as_save_IFS
54374
54375 fi
54376 fi
54377 DUMPBIN=$ac_cv_prog_DUMPBIN
54378 if test -n "$DUMPBIN"; then
54379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
54380 $as_echo "$DUMPBIN" >&6; }
54381 else
54382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54383 $as_echo "no" >&6; }
54384 fi
54385
54386
54387     test -n "$DUMPBIN" && break
54388   done
54389 fi
54390 if test -z "$DUMPBIN"; then
54391   ac_ct_DUMPBIN=$DUMPBIN
54392   for ac_prog in dumpbin "link -dump"
54393 do
54394   # Extract the first word of "$ac_prog", so it can be a program name with args.
54395 set dummy $ac_prog; ac_word=$2
54396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54397 $as_echo_n "checking for $ac_word... " >&6; }
54398 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
54399   $as_echo_n "(cached) " >&6
54400 else
54401   if test -n "$ac_ct_DUMPBIN"; then
54402   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
54403 else
54404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54405 for as_dir in $PATH
54406 do
54407   IFS=$as_save_IFS
54408   test -z "$as_dir" && as_dir=.
54409     for ac_exec_ext in '' $ac_executable_extensions; do
54410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54411     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
54412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54413     break 2
54414   fi
54415 done
54416   done
54417 IFS=$as_save_IFS
54418
54419 fi
54420 fi
54421 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
54422 if test -n "$ac_ct_DUMPBIN"; then
54423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
54424 $as_echo "$ac_ct_DUMPBIN" >&6; }
54425 else
54426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54427 $as_echo "no" >&6; }
54428 fi
54429
54430
54431   test -n "$ac_ct_DUMPBIN" && break
54432 done
54433
54434   if test "x$ac_ct_DUMPBIN" = x; then
54435     DUMPBIN=":"
54436   else
54437     case $cross_compiling:$ac_tool_warned in
54438 yes:)
54439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
54440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
54441 ac_tool_warned=yes ;;
54442 esac
54443     DUMPBIN=$ac_ct_DUMPBIN
54444   fi
54445 fi
54446
54447     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
54448     *COFF*)
54449       DUMPBIN="$DUMPBIN -symbols"
54450       ;;
54451     *)
54452       DUMPBIN=:
54453       ;;
54454     esac
54455   fi
54456
54457   if test "$DUMPBIN" != ":"; then
54458     NM="$DUMPBIN"
54459   fi
54460 fi
54461 test -z "$NM" && NM=nm
54462
54463
54464
54465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
54466 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
54467 if test "${lt_cv_nm_interface+set}" = set; then :
54468   $as_echo_n "(cached) " >&6
54469 else
54470   lt_cv_nm_interface="BSD nm"
54471   echo "int some_variable = 0;" > conftest.$ac_ext
54472   (eval echo "\"\$as_me:54472: $ac_compile\"" >&5)
54473   (eval "$ac_compile" 2>conftest.err)
54474   cat conftest.err >&5
54475   (eval echo "\"\$as_me:54475: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
54476   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
54477   cat conftest.err >&5
54478   (eval echo "\"\$as_me:54478: output\"" >&5)
54479   cat conftest.out >&5
54480   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
54481     lt_cv_nm_interface="MS dumpbin"
54482   fi
54483   rm -f conftest*
54484 fi
54485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
54486 $as_echo "$lt_cv_nm_interface" >&6; }
54487
54488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
54489 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
54490 if test "${ac_cv_path_SED+set}" = set; then :
54491   $as_echo_n "(cached) " >&6
54492 else
54493             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
54494      for ac_i in 1 2 3 4 5 6 7; do
54495        ac_script="$ac_script$as_nl$ac_script"
54496      done
54497      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
54498      { ac_script=; unset ac_script;}
54499      if test -z "$SED"; then
54500   ac_path_SED_found=false
54501   # Loop through the user's path and test for each of PROGNAME-LIST
54502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54503 for as_dir in $PATH
54504 do
54505   IFS=$as_save_IFS
54506   test -z "$as_dir" && as_dir=.
54507     for ac_prog in sed gsed; do
54508     for ac_exec_ext in '' $ac_executable_extensions; do
54509       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
54510       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
54511 # Check for GNU ac_path_SED and select it if it is found.
54512   # Check for GNU $ac_path_SED
54513 case `"$ac_path_SED" --version 2>&1` in
54514 *GNU*)
54515   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
54516 *)
54517   ac_count=0
54518   $as_echo_n 0123456789 >"conftest.in"
54519   while :
54520   do
54521     cat "conftest.in" "conftest.in" >"conftest.tmp"
54522     mv "conftest.tmp" "conftest.in"
54523     cp "conftest.in" "conftest.nl"
54524     $as_echo '' >> "conftest.nl"
54525     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
54526     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
54527     as_fn_arith $ac_count + 1 && ac_count=$as_val
54528     if test $ac_count -gt ${ac_path_SED_max-0}; then
54529       # Best one so far, save it but keep looking for a better one
54530       ac_cv_path_SED="$ac_path_SED"
54531       ac_path_SED_max=$ac_count
54532     fi
54533     # 10*(2^10) chars as input seems more than enough
54534     test $ac_count -gt 10 && break
54535   done
54536   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
54537 esac
54538
54539       $ac_path_SED_found && break 3
54540     done
54541   done
54542   done
54543 IFS=$as_save_IFS
54544   if test -z "$ac_cv_path_SED"; then
54545     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
54546   fi
54547 else
54548   ac_cv_path_SED=$SED
54549 fi
54550
54551 fi
54552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
54553 $as_echo "$ac_cv_path_SED" >&6; }
54554  SED="$ac_cv_path_SED"
54555   rm -f conftest.sed
54556
54557
54558
54559
54560
54561 # Check for command to grab the raw symbol name followed by C symbol from nm.
54562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
54563 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
54564 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
54565   $as_echo_n "(cached) " >&6
54566 else
54567
54568 # These are sane defaults that work on at least a few old systems.
54569 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
54570
54571 # Character class describing NM global symbol codes.
54572 symcode='[BCDEGRST]'
54573
54574 # Regexp to match symbols that can be accessed directly from C.
54575 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
54576
54577 # Transform an extracted symbol line into a proper C declaration
54578 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
54579
54580 # Transform an extracted symbol line into symbol name and symbol address
54581 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'"
54582
54583 # Define system-specific variables.
54584 case $host_os in
54585 aix*)
54586   symcode='[BCDT]'
54587   ;;
54588 cygwin* | mingw* | pw32*)
54589   symcode='[ABCDGISTW]'
54590   ;;
54591 hpux*) # Its linker distinguishes data from code symbols
54592   if test "$host_cpu" = ia64; then
54593     symcode='[ABCDEGRST]'
54594   fi
54595   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
54596   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'"
54597   ;;
54598 linux* | k*bsd*-gnu)
54599   if test "$host_cpu" = ia64; then
54600     symcode='[ABCDGIRSTW]'
54601     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
54602     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'"
54603   fi
54604   ;;
54605 irix* | nonstopux*)
54606   symcode='[BCDEGRST]'
54607   ;;
54608 osf*)
54609   symcode='[BCDEGQRST]'
54610   ;;
54611 solaris*)
54612   symcode='[BDRT]'
54613   ;;
54614 sco3.2v5*)
54615   symcode='[DT]'
54616   ;;
54617 sysv4.2uw2*)
54618   symcode='[DT]'
54619   ;;
54620 sysv5* | sco5v6* | unixware* | OpenUNIX*)
54621   symcode='[ABDT]'
54622   ;;
54623 sysv4)
54624   symcode='[DFNSTU]'
54625   ;;
54626 esac
54627
54628 # Handle CRLF in mingw tool chain
54629 opt_cr=
54630 case $build_os in
54631 mingw*)
54632   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
54633   ;;
54634 esac
54635
54636 # If we're using GNU nm, then use its standard symbol codes.
54637 case `$NM -V 2>&1` in
54638 *GNU* | *'with BFD'*)
54639   symcode='[ABCDGIRSTW]' ;;
54640 esac
54641
54642 # Try without a prefix undercore, then with it.
54643 for ac_symprfx in "" "_"; do
54644
54645   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
54646   symxfrm="\\1 $ac_symprfx\\2 \\2"
54647
54648   # Write the raw and C identifiers.
54649   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
54650
54651   # Check to see that the pipe works correctly.
54652   pipe_works=no
54653
54654   rm -f conftest*
54655   cat > conftest.$ac_ext <<EOF
54656 #ifdef __cplusplus
54657 extern "C" {
54658 #endif
54659 char nm_test_var;
54660 void nm_test_func(){}
54661 #ifdef __cplusplus
54662 }
54663 #endif
54664 int main(){nm_test_var='a';nm_test_func();return(0);}
54665 EOF
54666
54667   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
54668   (eval $ac_compile) 2>&5
54669   ac_status=$?
54670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54671   test $ac_status = 0; }; then
54672     # Now try to grab the symbols.
54673     nlist=conftest.nm
54674     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
54675   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
54676   ac_status=$?
54677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54678   test $ac_status = 0; } && test -s "$nlist"; then
54679       # Try sorting and uniquifying the output.
54680       if sort "$nlist" | uniq > "$nlist"T; then
54681         mv -f "$nlist"T "$nlist"
54682       else
54683         rm -f "$nlist"T
54684       fi
54685
54686       # Make sure that we snagged all the symbols we need.
54687       if grep ' nm_test_var$' "$nlist" >/dev/null; then
54688         if grep ' nm_test_func$' "$nlist" >/dev/null; then
54689           cat <<EOF > conftest.$ac_ext
54690 #ifdef __cplusplus
54691 extern "C" {
54692 #endif
54693
54694 EOF
54695           # Now generate the symbol file.
54696           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
54697
54698           cat <<EOF >> conftest.$ac_ext
54699 #if defined (__STDC__) && __STDC__
54700 # define lt_ptr_t void *
54701 #else
54702 # define lt_ptr_t char *
54703 # define const
54704 #endif
54705
54706 /* The mapping between symbol names and symbols. */
54707 const struct {
54708   const char *name;
54709   lt_ptr_t address;
54710 }
54711 lt_preloaded_symbols[] =
54712 {
54713 EOF
54714           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
54715           cat <<\EOF >> conftest.$ac_ext
54716   {0, (lt_ptr_t) 0}
54717 };
54718
54719 #ifdef __cplusplus
54720 }
54721 #endif
54722 EOF
54723           # Now try linking the two files.
54724           mv conftest.$ac_objext conftstm.$ac_objext
54725           lt_save_LIBS="$LIBS"
54726           lt_save_CFLAGS="$CFLAGS"
54727           LIBS="conftstm.$ac_objext"
54728           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
54729           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
54730   (eval $ac_link) 2>&5
54731   ac_status=$?
54732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54733   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
54734             pipe_works=yes
54735           fi
54736           LIBS="$lt_save_LIBS"
54737           CFLAGS="$lt_save_CFLAGS"
54738         else
54739           echo "cannot find nm_test_func in $nlist" >&5
54740         fi
54741       else
54742         echo "cannot find nm_test_var in $nlist" >&5
54743       fi
54744     else
54745       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
54746     fi
54747   else
54748     echo "$progname: failed program was:" >&5
54749     cat conftest.$ac_ext >&5
54750   fi
54751   rm -rf conftest* conftst*
54752
54753   # Do not use the global_symbol_pipe unless it works.
54754   if test "$pipe_works" = yes; then
54755     break
54756   else
54757     lt_cv_sys_global_symbol_pipe=
54758   fi
54759 done
54760
54761 fi
54762
54763 if test -z "$lt_cv_sys_global_symbol_pipe"; then
54764   lt_cv_sys_global_symbol_to_cdecl=
54765 fi
54766 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
54767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
54768 $as_echo "failed" >&6; }
54769 else
54770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
54771 $as_echo "ok" >&6; }
54772 fi
54773
54774
54775
54776      GLOBAL_SYMBOL_PIPE=$lt_cv_sys_global_symbol_pipe
54777
54778   if test -n "$GLOBAL_SYMBOL_PIPE"; then
54779     HAVE_GLOBAL_SYMBOL_PIPE=1
54780   else
54781     HAVE_GLOBAL_SYMBOL_PIPE=
54782   fi
54783
54784
54785
54786  # If set to t, that means we are running in a shell under Emacs.
54787  # If you have an Emacs named "t", then use the full path.
54788  test x"$EMACS" = xt && EMACS=
54789  for ac_prog in emacs xemacs
54790 do
54791   # Extract the first word of "$ac_prog", so it can be a program name with args.
54792 set dummy $ac_prog; ac_word=$2
54793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54794 $as_echo_n "checking for $ac_word... " >&6; }
54795 if test "${ac_cv_prog_EMACS+set}" = set; then :
54796   $as_echo_n "(cached) " >&6
54797 else
54798   if test -n "$EMACS"; then
54799   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
54800 else
54801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54802 for as_dir in $PATH
54803 do
54804   IFS=$as_save_IFS
54805   test -z "$as_dir" && as_dir=.
54806     for ac_exec_ext in '' $ac_executable_extensions; do
54807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54808     ac_cv_prog_EMACS="$ac_prog"
54809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54810     break 2
54811   fi
54812 done
54813   done
54814 IFS=$as_save_IFS
54815
54816 fi
54817 fi
54818 EMACS=$ac_cv_prog_EMACS
54819 if test -n "$EMACS"; then
54820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5
54821 $as_echo "$EMACS" >&6; }
54822 else
54823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54824 $as_echo "no" >&6; }
54825 fi
54826
54827
54828   test -n "$EMACS" && break
54829 done
54830 test -n "$EMACS" || EMACS="no"
54831
54832
54833
54834
54835 # Check whether --with-lispdir was given.
54836 if test "${with_lispdir+set}" = set; then :
54837   withval=$with_lispdir;  lispdir="$withval"
54838    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
54839 $as_echo_n "checking where .elc files should go... " >&6; }
54840    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lispdir" >&5
54841 $as_echo "$lispdir" >&6; }
54842 else
54843
54844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
54845 $as_echo_n "checking where .elc files should go... " >&6; }
54846 if test "${am_cv_lispdir+set}" = set; then :
54847   $as_echo_n "(cached) " >&6
54848 else
54849
54850    if test $EMACS != "no"; then
54851      if test x${lispdir+set} != xset; then
54852   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
54853   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
54854   #  which is non-obvious for non-emacs users.
54855   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
54856   #  emacsen earlier and avoid running this altogether.
54857   { { $as_echo "$as_me:${as_lineno-$LINENO}: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out"; } >&5
54858   ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
54859   ac_status=$?
54860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54861   test $ac_status = 0; }
54862         am_cv_lispdir=`sed -n \
54863        -e 's,/$,,' \
54864        -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
54865        -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
54866        conftest.out`
54867        rm conftest.out
54868      fi
54869    fi
54870    test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
54871
54872 fi
54873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_lispdir" >&5
54874 $as_echo "$am_cv_lispdir" >&6; }
54875   lispdir="$am_cv_lispdir"
54876
54877 fi
54878
54879
54880
54881
54882 # Check whether --with-emacs was given.
54883 if test "${with_emacs+set}" = set; then :
54884   withval=$with_emacs; gt_use_emacs=$withval
54885 else
54886   gt_use_emacs=yes
54887 fi
54888
54889 if test "$EMACS" != no; then
54890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Emacs support is requested" >&5
54891 $as_echo_n "checking whether Emacs support is requested... " >&6; }
54892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_use_emacs" >&5
54893 $as_echo "$gt_use_emacs" >&6; }
54894   if test "$gt_use_emacs" = no; then
54895     EMACS=no
54896   fi
54897 fi
54898
54899 aclocaldir='${datadir}/aclocal'
54900
54901
54902
54903 # Check whether --with-git was given.
54904 if test "${with_git+set}" = set; then :
54905   withval=$with_git; gt_use_git=$withval
54906 else
54907   gt_use_git=maybe
54908 fi
54909
54910
54911 # Check whether --with-cvs was given.
54912 if test "${with_cvs+set}" = set; then :
54913   withval=$with_cvs; gt_use_cvs=$withval
54914 else
54915   gt_use_cvs=no
54916 fi
54917
54918 # The CVS format is deprecated, because "cvs init" does not work in all
54919 # circumstances
54920 # (see <http://lists.gnu.org/archive/html/bug-cvs/2010-05/msg00003.html>)
54921 # and we are not allowed to distribute the cvs infrastructure files ourselves
54922 # (see <http://lists.gnu.org/archive/html/bug-cvs/2010-06/msg00011.html>).
54923 if test "$gt_use_git" != no && test "$gt_use_git" != maybe; then
54924   # --with-git is specified. Even if --with-cvs is also specified, we use the
54925   # git format.
54926   ARCHIVE_FORMAT=git
54927 else
54928   if test "$gt_use_cvs" != no; then
54929     # --with-cvs is specified.
54930     ARCHIVE_FORMAT=cvs
54931   else
54932     # Neither --with-git nor --with-cvs is specified.
54933     if test "$gt_use_git" != no \
54934        && (git --version) >/dev/null 2>&1 \
54935        && { case `git --version | sed -e 's/^[^0-9]*//'` in
54936               0.* | 1.[0-5].*) false ;;
54937               *) true ;;
54938             esac
54939           }; then
54940       # --without-git is not specified, and the git program exists
54941       # in version 1.6 or newer. Use git format.
54942       ARCHIVE_FORMAT=git
54943     else
54944       # --without-git is specified, or the git program is missing.
54945       ARCHIVE_FORMAT=dir
54946     fi
54947   fi
54948 fi
54949
54950
54951 ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
54952 # Extract the first word of "dvips", so it can be a program name with args.
54953 set dummy dvips; ac_word=$2
54954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54955 $as_echo_n "checking for $ac_word... " >&6; }
54956 if test "${ac_cv_path_DVIPS+set}" = set; then :
54957   $as_echo_n "(cached) " >&6
54958 else
54959   case $DVIPS in
54960   [\\/]* | ?:[\\/]*)
54961   ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
54962   ;;
54963   *)
54964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54965 for as_dir in $PATH
54966 do
54967   IFS=$as_save_IFS
54968   test -z "$as_dir" && as_dir=.
54969     for ac_exec_ext in '' $ac_executable_extensions; do
54970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54971     ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
54972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54973     break 2
54974   fi
54975 done
54976   done
54977 IFS=$as_save_IFS
54978
54979   test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="$ac_aux_dir_abs/missing dvips"
54980   ;;
54981 esac
54982 fi
54983 DVIPS=$ac_cv_path_DVIPS
54984 if test -n "$DVIPS"; then
54985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
54986 $as_echo "$DVIPS" >&6; }
54987 else
54988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54989 $as_echo "no" >&6; }
54990 fi
54991
54992
54993 # Extract the first word of "texi2pdf", so it can be a program name with args.
54994 set dummy texi2pdf; ac_word=$2
54995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54996 $as_echo_n "checking for $ac_word... " >&6; }
54997 if test "${ac_cv_path_TEXI2PDF+set}" = set; then :
54998   $as_echo_n "(cached) " >&6
54999 else
55000   case $TEXI2PDF in
55001   [\\/]* | ?:[\\/]*)
55002   ac_cv_path_TEXI2PDF="$TEXI2PDF" # Let the user override the test with a path.
55003   ;;
55004   *)
55005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55006 for as_dir in $PATH
55007 do
55008   IFS=$as_save_IFS
55009   test -z "$as_dir" && as_dir=.
55010     for ac_exec_ext in '' $ac_executable_extensions; do
55011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
55012     ac_cv_path_TEXI2PDF="$as_dir/$ac_word$ac_exec_ext"
55013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55014     break 2
55015   fi
55016 done
55017   done
55018 IFS=$as_save_IFS
55019
55020   test -z "$ac_cv_path_TEXI2PDF" && ac_cv_path_TEXI2PDF="$ac_aux_dir_abs/missing texi2pdf"
55021   ;;
55022 esac
55023 fi
55024 TEXI2PDF=$ac_cv_path_TEXI2PDF
55025 if test -n "$TEXI2PDF"; then
55026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2PDF" >&5
55027 $as_echo "$TEXI2PDF" >&6; }
55028 else
55029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55030 $as_echo "no" >&6; }
55031 fi
55032
55033
55034 # Extract the first word of "perl", so it can be a program name with args.
55035 set dummy perl; ac_word=$2
55036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55037 $as_echo_n "checking for $ac_word... " >&6; }
55038 if test "${ac_cv_path_PERL+set}" = set; then :
55039   $as_echo_n "(cached) " >&6
55040 else
55041   case $PERL in
55042   [\\/]* | ?:[\\/]*)
55043   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
55044   ;;
55045   *)
55046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55047 for as_dir in $PATH
55048 do
55049   IFS=$as_save_IFS
55050   test -z "$as_dir" && as_dir=.
55051     for ac_exec_ext in '' $ac_executable_extensions; do
55052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
55053     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
55054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55055     break 2
55056   fi
55057 done
55058   done
55059 IFS=$as_save_IFS
55060
55061   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
55062   ;;
55063 esac
55064 fi
55065 PERL=$ac_cv_path_PERL
55066 if test -n "$PERL"; then
55067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
55068 $as_echo "$PERL" >&6; }
55069 else
55070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55071 $as_echo "no" >&6; }
55072 fi
55073
55074
55075
55076 CROSS_COMPILING=$cross_compiling
55077
55078
55079
55080 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
55081 do
55082   # Extract the first word of "$ac_prog", so it can be a program name with args.
55083 set dummy $ac_prog; ac_word=$2
55084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55085 $as_echo_n "checking for $ac_word... " >&6; }
55086 if test "${ac_cv_prog_CXX+set}" = set; then :
55087   $as_echo_n "(cached) " >&6
55088 else
55089   if test -n "$CXX"; then
55090   ac_cv_prog_CXX="$CXX" # Let the user override the test.
55091 else
55092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55093 for as_dir in $PATH
55094 do
55095   IFS=$as_save_IFS
55096   test -z "$as_dir" && as_dir=.
55097     for ac_exec_ext in '' $ac_executable_extensions; do
55098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
55099     ac_cv_prog_CXX="$ac_prog"
55100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55101     break 2
55102   fi
55103 done
55104   done
55105 IFS=$as_save_IFS
55106
55107 fi
55108 fi
55109 CXX=$ac_cv_prog_CXX
55110 if test -n "$CXX"; then
55111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
55112 $as_echo "$CXX" >&6; }
55113 else
55114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55115 $as_echo "no" >&6; }
55116 fi
55117
55118
55119   test -n "$CXX" && break
55120 done
55121 test -n "$CXX" || CXX=":"
55122
55123 if test "$CXX" != ":"; then
55124       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
55125 $as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; }
55126   ac_ext=cpp
55127 ac_cpp='$CXXCPP $CPPFLAGS'
55128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
55129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
55130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
55131
55132
55133
55134   echo 'int main () { return 0; }' > conftest.$ac_ext
55135   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
55136   (eval $ac_link) 2>&5
55137   ac_status=$?
55138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55139   test $ac_status = 0; } && test -s conftest$ac_exeext; then
55140     ac_cv_prog_cxx_works=yes
55141     if (./conftest; exit) 2>/dev/null; then
55142       ac_cv_prog_cxx_cross=no
55143     else
55144       ac_cv_prog_cxx_cross=yes
55145     fi
55146   else
55147     ac_cv_prog_cxx_works=no
55148   fi
55149   rm -fr conftest*
55150   ac_ext=c
55151 ac_cpp='$CPP $CPPFLAGS'
55152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
55153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
55154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
55155
55156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_works" >&5
55157 $as_echo "$ac_cv_prog_cxx_works" >&6; }
55158   if test $ac_cv_prog_cxx_works = no; then
55159     CXX=:
55160   else
55161             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports namespaces" >&5
55162 $as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; }
55163     ac_ext=cpp
55164 ac_cpp='$CXXCPP $CPPFLAGS'
55165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
55166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
55167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
55168
55169     cat <<EOF > conftest.$ac_ext
55170 #include <iostream>
55171 namespace test { using namespace std; }
55172 std::ostream* ptr;
55173 int main () { return 0; }
55174 EOF
55175     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
55176   (eval $ac_link) 2>&5
55177   ac_status=$?
55178   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55179   test $ac_status = 0; } && test -s conftest$ac_exeext; then
55180       gt_cv_prog_cxx_namespaces=yes
55181     else
55182       gt_cv_prog_cxx_namespaces=no
55183     fi
55184     rm -fr conftest*
55185     ac_ext=c
55186 ac_cpp='$CPP $CPPFLAGS'
55187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
55188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
55189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
55190
55191     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_prog_cxx_namespaces" >&5
55192 $as_echo "$gt_cv_prog_cxx_namespaces" >&6; }
55193     if test $gt_cv_prog_cxx_namespaces = no; then
55194       CXX=:
55195     fi
55196   fi
55197 fi
55198
55199
55200
55201
55202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
55203 $as_echo_n "checking for a traditional french locale... " >&6; }
55204 if test "${gt_cv_locale_fr+set}" = set; then :
55205   $as_echo_n "(cached) " >&6
55206 else
55207
55208     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55209 /* end confdefs.h.  */
55210
55211 #include <locale.h>
55212 #include <time.h>
55213 #if HAVE_LANGINFO_CODESET
55214 # include <langinfo.h>
55215 #endif
55216 #include <stdlib.h>
55217 #include <string.h>
55218 struct tm t;
55219 char buf[16];
55220 int main () {
55221   /* Check whether the given locale name is recognized by the system.  */
55222   if (setlocale (LC_ALL, "") == NULL) return 1;
55223   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
55224      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
55225      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
55226      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
55227      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
55228      some unit tests fail.  */
55229 #if HAVE_LANGINFO_CODESET
55230   {
55231     const char *cs = nl_langinfo (CODESET);
55232     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
55233       return 1;
55234   }
55235 #endif
55236 #ifdef __CYGWIN__
55237   /* On Cygwin, avoid locale names without encoding suffix, because the
55238      locale_charset() function relies on the encoding suffix.  Note that
55239      LC_ALL is set on the command line.  */
55240   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
55241 #endif
55242   /* Check whether in the abbreviation of the second month, the second
55243      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
55244      one byte long. This excludes the UTF-8 encoding.  */
55245   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
55246   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
55247   /* Check whether the decimal separator is a comma.
55248      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
55249      are nl_langinfo(RADIXCHAR) are both ".".  */
55250   if (localeconv () ->decimal_point[0] != ',') return 1;
55251   return 0;
55252 }
55253
55254 _ACEOF
55255     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
55256   (eval $ac_link) 2>&5
55257   ac_status=$?
55258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55259   test $ac_status = 0; } && test -s conftest$ac_exeext; then
55260       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
55261       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
55262       # configure script would override the LC_ALL setting. Likewise for
55263       # LC_CTYPE, which is also set at the beginning of the configure script.
55264       # Test for the usual locale name.
55265       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55266         gt_cv_locale_fr=fr_FR
55267       else
55268         # Test for the locale name with explicit encoding suffix.
55269         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55270           gt_cv_locale_fr=fr_FR.ISO-8859-1
55271         else
55272           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
55273           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55274             gt_cv_locale_fr=fr_FR.ISO8859-1
55275           else
55276             # Test for the HP-UX locale name.
55277             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55278               gt_cv_locale_fr=fr_FR.iso88591
55279             else
55280               # Test for the Solaris 7 locale name.
55281               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55282                 gt_cv_locale_fr=fr
55283               else
55284                 # None found.
55285                 gt_cv_locale_fr=none
55286               fi
55287             fi
55288           fi
55289         fi
55290       fi
55291     fi
55292     rm -fr conftest*
55293
55294 fi
55295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
55296 $as_echo "$gt_cv_locale_fr" >&6; }
55297   LOCALE_FR=$gt_cv_locale_fr
55298
55299
55300
55301
55302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
55303 $as_echo_n "checking for a french Unicode locale... " >&6; }
55304 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
55305   $as_echo_n "(cached) " >&6
55306 else
55307
55308     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55309 /* end confdefs.h.  */
55310
55311 #include <locale.h>
55312 #include <time.h>
55313 #if HAVE_LANGINFO_CODESET
55314 # include <langinfo.h>
55315 #endif
55316 #include <stdlib.h>
55317 #include <string.h>
55318 struct tm t;
55319 char buf[16];
55320 int main () {
55321   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
55322      imitates locale dependent behaviour by looking at the environment
55323      variables, and all locales use the UTF-8 encoding.  */
55324 #if !(defined __BEOS__ || defined __HAIKU__)
55325   /* Check whether the given locale name is recognized by the system.  */
55326   if (setlocale (LC_ALL, "") == NULL) return 1;
55327   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
55328      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
55329      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
55330      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
55331      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
55332      some unit tests fail.  */
55333 # if HAVE_LANGINFO_CODESET
55334   {
55335     const char *cs = nl_langinfo (CODESET);
55336     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
55337       return 1;
55338   }
55339 # endif
55340 # ifdef __CYGWIN__
55341   /* On Cygwin, avoid locale names without encoding suffix, because the
55342      locale_charset() function relies on the encoding suffix.  Note that
55343      LC_ALL is set on the command line.  */
55344   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
55345 # endif
55346   /* Check whether in the abbreviation of the second month, the second
55347      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
55348      two bytes long, with UTF-8 encoding.  */
55349   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
55350   if (strftime (buf, sizeof (buf), "%b", &t) < 4
55351       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
55352     return 1;
55353 #endif
55354   /* Check whether the decimal separator is a comma.
55355      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
55356      are nl_langinfo(RADIXCHAR) are both ".".  */
55357   if (localeconv () ->decimal_point[0] != ',') return 1;
55358   return 0;
55359 }
55360
55361 _ACEOF
55362     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
55363   (eval $ac_link) 2>&5
55364   ac_status=$?
55365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55366   test $ac_status = 0; } && test -s conftest$ac_exeext; then
55367       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
55368       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
55369       # configure script would override the LC_ALL setting. Likewise for
55370       # LC_CTYPE, which is also set at the beginning of the configure script.
55371       # Test for the usual locale name.
55372       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55373         gt_cv_locale_fr_utf8=fr_FR
55374       else
55375         # Test for the locale name with explicit encoding suffix.
55376         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55377           gt_cv_locale_fr_utf8=fr_FR.UTF-8
55378         else
55379           # Test for the Solaris 7 locale name.
55380           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55381             gt_cv_locale_fr_utf8=fr.UTF-8
55382           else
55383             # None found.
55384             gt_cv_locale_fr_utf8=none
55385           fi
55386         fi
55387       fi
55388     fi
55389     rm -fr conftest*
55390
55391 fi
55392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
55393 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
55394   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
55395
55396
55397
55398
55399
55400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
55401 $as_echo_n "checking for a traditional japanese locale... " >&6; }
55402 if test "${gt_cv_locale_ja+set}" = set; then :
55403   $as_echo_n "(cached) " >&6
55404 else
55405
55406     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55407 /* end confdefs.h.  */
55408
55409 #include <locale.h>
55410 #include <time.h>
55411 #if HAVE_LANGINFO_CODESET
55412 # include <langinfo.h>
55413 #endif
55414 #include <stdlib.h>
55415 #include <string.h>
55416 struct tm t;
55417 char buf[16];
55418 int main ()
55419 {
55420   const char *p;
55421   /* Check whether the given locale name is recognized by the system.  */
55422   if (setlocale (LC_ALL, "") == NULL) return 1;
55423   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
55424      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
55425      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
55426      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
55427      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
55428      some unit tests fail.  */
55429 #if HAVE_LANGINFO_CODESET
55430   {
55431     const char *cs = nl_langinfo (CODESET);
55432     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
55433       return 1;
55434   }
55435 #endif
55436 #ifdef __CYGWIN__
55437   /* On Cygwin, avoid locale names without encoding suffix, because the
55438      locale_charset() function relies on the encoding suffix.  Note that
55439      LC_ALL is set on the command line.  */
55440   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
55441 #endif
55442   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
55443      on Cygwin 1.5.x.  */
55444   if (MB_CUR_MAX == 1)
55445     return 1;
55446   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
55447      This excludes the UTF-8 encoding.  */
55448   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
55449   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
55450   for (p = buf; *p != '\0'; p++)
55451     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
55452       return 1;
55453   return 0;
55454 }
55455
55456 _ACEOF
55457     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
55458   (eval $ac_link) 2>&5
55459   ac_status=$?
55460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55461   test $ac_status = 0; } && test -s conftest$ac_exeext; then
55462       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
55463       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
55464       # configure script would override the LC_ALL setting. Likewise for
55465       # LC_CTYPE, which is also set at the beginning of the configure script.
55466       # Test for the AIX locale name.
55467       if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55468         gt_cv_locale_ja=ja_JP
55469       else
55470         # Test for the locale name with explicit encoding suffix.
55471         if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55472           gt_cv_locale_ja=ja_JP.EUC-JP
55473         else
55474           # Test for the HP-UX, OSF/1, NetBSD locale name.
55475           if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55476             gt_cv_locale_ja=ja_JP.eucJP
55477           else
55478             # Test for the IRIX, FreeBSD locale name.
55479             if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55480               gt_cv_locale_ja=ja_JP.EUC
55481             else
55482               # Test for the Solaris 7 locale name.
55483               if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55484                 gt_cv_locale_ja=ja
55485               else
55486                 # Special test for NetBSD 1.6.
55487                 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
55488                   gt_cv_locale_ja=ja_JP.eucJP
55489                 else
55490                   # None found.
55491                   gt_cv_locale_ja=none
55492                 fi
55493               fi
55494             fi
55495           fi
55496         fi
55497       fi
55498     fi
55499     rm -fr conftest*
55500
55501 fi
55502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
55503 $as_echo "$gt_cv_locale_ja" >&6; }
55504   LOCALE_JA=$gt_cv_locale_ja
55505
55506
55507
55508
55509
55510
55511
55512
55513
55514
55515
55516
55517
55518
55519
55520
55521
55522
55523
55524   :
55525
55526
55527
55528
55529
55530
55531
55532
55533
55534
55535
55536
55537
55538
55539 ac_ext=cpp
55540 ac_cpp='$CXXCPP $CPPFLAGS'
55541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
55542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
55543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
55544 if test -z "$CXX"; then
55545   if test -n "$CCC"; then
55546     CXX=$CCC
55547   else
55548     if test -n "$ac_tool_prefix"; then
55549   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
55550   do
55551     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
55552 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
55553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55554 $as_echo_n "checking for $ac_word... " >&6; }
55555 if test "${ac_cv_prog_CXX+set}" = set; then :
55556   $as_echo_n "(cached) " >&6
55557 else
55558   if test -n "$CXX"; then
55559   ac_cv_prog_CXX="$CXX" # Let the user override the test.
55560 else
55561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55562 for as_dir in $PATH
55563 do
55564   IFS=$as_save_IFS
55565   test -z "$as_dir" && as_dir=.
55566     for ac_exec_ext in '' $ac_executable_extensions; do
55567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
55568     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
55569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55570     break 2
55571   fi
55572 done
55573   done
55574 IFS=$as_save_IFS
55575
55576 fi
55577 fi
55578 CXX=$ac_cv_prog_CXX
55579 if test -n "$CXX"; then
55580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
55581 $as_echo "$CXX" >&6; }
55582 else
55583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55584 $as_echo "no" >&6; }
55585 fi
55586
55587
55588     test -n "$CXX" && break
55589   done
55590 fi
55591 if test -z "$CXX"; then
55592   ac_ct_CXX=$CXX
55593   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
55594 do
55595   # Extract the first word of "$ac_prog", so it can be a program name with args.
55596 set dummy $ac_prog; ac_word=$2
55597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55598 $as_echo_n "checking for $ac_word... " >&6; }
55599 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
55600   $as_echo_n "(cached) " >&6
55601 else
55602   if test -n "$ac_ct_CXX"; then
55603   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
55604 else
55605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55606 for as_dir in $PATH
55607 do
55608   IFS=$as_save_IFS
55609   test -z "$as_dir" && as_dir=.
55610     for ac_exec_ext in '' $ac_executable_extensions; do
55611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
55612     ac_cv_prog_ac_ct_CXX="$ac_prog"
55613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55614     break 2
55615   fi
55616 done
55617   done
55618 IFS=$as_save_IFS
55619
55620 fi
55621 fi
55622 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
55623 if test -n "$ac_ct_CXX"; then
55624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
55625 $as_echo "$ac_ct_CXX" >&6; }
55626 else
55627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55628 $as_echo "no" >&6; }
55629 fi
55630
55631
55632   test -n "$ac_ct_CXX" && break
55633 done
55634
55635   if test "x$ac_ct_CXX" = x; then
55636     CXX="g++"
55637   else
55638     case $cross_compiling:$ac_tool_warned in
55639 yes:)
55640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
55641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
55642 ac_tool_warned=yes ;;
55643 esac
55644     CXX=$ac_ct_CXX
55645   fi
55646 fi
55647
55648   fi
55649 fi
55650 # Provide some information about the compiler.
55651 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
55652 set X $ac_compile
55653 ac_compiler=$2
55654 for ac_option in --version -v -V -qversion; do
55655   { { ac_try="$ac_compiler $ac_option >&5"
55656 case "(($ac_try" in
55657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55658   *) ac_try_echo=$ac_try;;
55659 esac
55660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
55661 $as_echo "$ac_try_echo"; } >&5
55662   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
55663   ac_status=$?
55664   if test -s conftest.err; then
55665     sed '10a\
55666 ... rest of stderr output deleted ...
55667          10q' conftest.err >conftest.er1
55668     cat conftest.er1 >&5
55669   fi
55670   rm -f conftest.er1 conftest.err
55671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55672   test $ac_status = 0; }
55673 done
55674
55675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
55676 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
55677 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
55678   $as_echo_n "(cached) " >&6
55679 else
55680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55681 /* end confdefs.h.  */
55682
55683 int
55684 main ()
55685 {
55686 #ifndef __GNUC__
55687        choke me
55688 #endif
55689
55690   ;
55691   return 0;
55692 }
55693 _ACEOF
55694 if ac_fn_cxx_try_compile "$LINENO"; then :
55695   ac_compiler_gnu=yes
55696 else
55697   ac_compiler_gnu=no
55698 fi
55699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55700 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
55701
55702 fi
55703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
55704 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
55705 if test $ac_compiler_gnu = yes; then
55706   GXX=yes
55707 else
55708   GXX=
55709 fi
55710 ac_test_CXXFLAGS=${CXXFLAGS+set}
55711 ac_save_CXXFLAGS=$CXXFLAGS
55712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
55713 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
55714 if test "${ac_cv_prog_cxx_g+set}" = set; then :
55715   $as_echo_n "(cached) " >&6
55716 else
55717   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
55718    ac_cxx_werror_flag=yes
55719    ac_cv_prog_cxx_g=no
55720    CXXFLAGS="-g"
55721    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55722 /* end confdefs.h.  */
55723
55724 int
55725 main ()
55726 {
55727
55728   ;
55729   return 0;
55730 }
55731 _ACEOF
55732 if ac_fn_cxx_try_compile "$LINENO"; then :
55733   ac_cv_prog_cxx_g=yes
55734 else
55735   CXXFLAGS=""
55736       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55737 /* end confdefs.h.  */
55738
55739 int
55740 main ()
55741 {
55742
55743   ;
55744   return 0;
55745 }
55746 _ACEOF
55747 if ac_fn_cxx_try_compile "$LINENO"; then :
55748
55749 else
55750   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
55751          CXXFLAGS="-g"
55752          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55753 /* end confdefs.h.  */
55754
55755 int
55756 main ()
55757 {
55758
55759   ;
55760   return 0;
55761 }
55762 _ACEOF
55763 if ac_fn_cxx_try_compile "$LINENO"; then :
55764   ac_cv_prog_cxx_g=yes
55765 fi
55766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55767 fi
55768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55769 fi
55770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55771    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
55772 fi
55773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
55774 $as_echo "$ac_cv_prog_cxx_g" >&6; }
55775 if test "$ac_test_CXXFLAGS" = set; then
55776   CXXFLAGS=$ac_save_CXXFLAGS
55777 elif test $ac_cv_prog_cxx_g = yes; then
55778   if test "$GXX" = yes; then
55779     CXXFLAGS="-g -O2"
55780   else
55781     CXXFLAGS="-g"
55782   fi
55783 else
55784   if test "$GXX" = yes; then
55785     CXXFLAGS="-O2"
55786   else
55787     CXXFLAGS=
55788   fi
55789 fi
55790 ac_ext=c
55791 ac_cpp='$CPP $CPPFLAGS'
55792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
55793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
55794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
55795
55796 depcc="$CXX"  am_compiler_list=
55797
55798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
55799 $as_echo_n "checking dependency style of $depcc... " >&6; }
55800 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
55801   $as_echo_n "(cached) " >&6
55802 else
55803   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
55804   # We make a subdir and do the tests there.  Otherwise we can end up
55805   # making bogus files that we don't know about and never remove.  For
55806   # instance it was reported that on HP-UX the gcc test will end up
55807   # making a dummy file named `D' -- because `-MD' means `put the output
55808   # in D'.
55809   mkdir conftest.dir
55810   # Copy depcomp to subdir because otherwise we won't find it if we're
55811   # using a relative directory.
55812   cp "$am_depcomp" conftest.dir
55813   cd conftest.dir
55814   # We will build objects and dependencies in a subdirectory because
55815   # it helps to detect inapplicable dependency modes.  For instance
55816   # both Tru64's cc and ICC support -MD to output dependencies as a
55817   # side effect of compilation, but ICC will put the dependencies in
55818   # the current directory while Tru64 will put them in the object
55819   # directory.
55820   mkdir sub
55821
55822   am_cv_CXX_dependencies_compiler_type=none
55823   if test "$am_compiler_list" = ""; then
55824      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
55825   fi
55826   am__universal=false
55827   case " $depcc " in #(
55828      *\ -arch\ *\ -arch\ *) am__universal=true ;;
55829      esac
55830
55831   for depmode in $am_compiler_list; do
55832     # Setup a source with many dependencies, because some compilers
55833     # like to wrap large dependency lists on column 80 (with \), and
55834     # we should not choose a depcomp mode which is confused by this.
55835     #
55836     # We need to recreate these files for each test, as the compiler may
55837     # overwrite some of them when testing with obscure command lines.
55838     # This happens at least with the AIX C compiler.
55839     : > sub/conftest.c
55840     for i in 1 2 3 4 5 6; do
55841       echo '#include "conftst'$i'.h"' >> sub/conftest.c
55842       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
55843       # Solaris 8's {/usr,}/bin/sh.
55844       touch sub/conftst$i.h
55845     done
55846     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
55847
55848     # We check with `-c' and `-o' for the sake of the "dashmstdout"
55849     # mode.  It turns out that the SunPro C++ compiler does not properly
55850     # handle `-M -o', and we need to detect this.  Also, some Intel
55851     # versions had trouble with output in subdirs
55852     am__obj=sub/conftest.${OBJEXT-o}
55853     am__minus_obj="-o $am__obj"
55854     case $depmode in
55855     gcc)
55856       # This depmode causes a compiler race in universal mode.
55857       test "$am__universal" = false || continue
55858       ;;
55859     nosideeffect)
55860       # after this tag, mechanisms are not by side-effect, so they'll
55861       # only be used when explicitly requested
55862       if test "x$enable_dependency_tracking" = xyes; then
55863         continue
55864       else
55865         break
55866       fi
55867       ;;
55868     msvisualcpp | msvcmsys)
55869       # This compiler won't grok `-c -o', but also, the minuso test has
55870       # not run yet.  These depmodes are late enough in the game, and
55871       # so weak that their functioning should not be impacted.
55872       am__obj=conftest.${OBJEXT-o}
55873       am__minus_obj=
55874       ;;
55875     none) break ;;
55876     esac
55877     if depmode=$depmode \
55878        source=sub/conftest.c object=$am__obj \
55879        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
55880        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
55881          >/dev/null 2>conftest.err &&
55882        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
55883        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
55884        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
55885        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
55886       # icc doesn't choke on unknown options, it will just issue warnings
55887       # or remarks (even with -Werror).  So we grep stderr for any message
55888       # that says an option was ignored or not supported.
55889       # When given -MP, icc 7.0 and 7.1 complain thusly:
55890       #   icc: Command line warning: ignoring option '-M'; no argument required
55891       # The diagnosis changed in icc 8.0:
55892       #   icc: Command line remark: option '-MP' not supported
55893       if (grep 'ignoring option' conftest.err ||
55894           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
55895         am_cv_CXX_dependencies_compiler_type=$depmode
55896         break
55897       fi
55898     fi
55899   done
55900
55901   cd ..
55902   rm -rf conftest.dir
55903 else
55904   am_cv_CXX_dependencies_compiler_type=none
55905 fi
55906
55907 fi
55908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
55909 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
55910 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
55911
55912  if
55913   test "x$enable_dependency_tracking" != xno \
55914   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
55915   am__fastdepCXX_TRUE=
55916   am__fastdepCXX_FALSE='#'
55917 else
55918   am__fastdepCXX_TRUE='#'
55919   am__fastdepCXX_FALSE=
55920 fi
55921
55922
55923 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
55924     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
55925     (test "X$CXX" != "Xg++"))) ; then
55926   ac_ext=cpp
55927 ac_cpp='$CXXCPP $CPPFLAGS'
55928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
55929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
55930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
55931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
55932 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
55933 if test -z "$CXXCPP"; then
55934   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
55935   $as_echo_n "(cached) " >&6
55936 else
55937       # Double quotes because CXXCPP needs to be expanded
55938     for CXXCPP in "$CXX -E" "/lib/cpp"
55939     do
55940       ac_preproc_ok=false
55941 for ac_cxx_preproc_warn_flag in '' yes
55942 do
55943   # Use a header file that comes with gcc, so configuring glibc
55944   # with a fresh cross-compiler works.
55945   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55946   # <limits.h> exists even on freestanding compilers.
55947   # On the NeXT, cc -E runs the code through the compiler's parser,
55948   # not just through cpp. "Syntax error" is here to catch this case.
55949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55950 /* end confdefs.h.  */
55951 #ifdef __STDC__
55952 # include <limits.h>
55953 #else
55954 # include <assert.h>
55955 #endif
55956                      Syntax error
55957 _ACEOF
55958 if ac_fn_cxx_try_cpp "$LINENO"; then :
55959
55960 else
55961   # Broken: fails on valid input.
55962 continue
55963 fi
55964 rm -f conftest.err conftest.$ac_ext
55965
55966   # OK, works on sane cases.  Now check whether nonexistent headers
55967   # can be detected and how.
55968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55969 /* end confdefs.h.  */
55970 #include <ac_nonexistent.h>
55971 _ACEOF
55972 if ac_fn_cxx_try_cpp "$LINENO"; then :
55973   # Broken: success on invalid input.
55974 continue
55975 else
55976   # Passes both tests.
55977 ac_preproc_ok=:
55978 break
55979 fi
55980 rm -f conftest.err conftest.$ac_ext
55981
55982 done
55983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
55984 rm -f conftest.err conftest.$ac_ext
55985 if $ac_preproc_ok; then :
55986   break
55987 fi
55988
55989     done
55990     ac_cv_prog_CXXCPP=$CXXCPP
55991
55992 fi
55993   CXXCPP=$ac_cv_prog_CXXCPP
55994 else
55995   ac_cv_prog_CXXCPP=$CXXCPP
55996 fi
55997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
55998 $as_echo "$CXXCPP" >&6; }
55999 ac_preproc_ok=false
56000 for ac_cxx_preproc_warn_flag in '' yes
56001 do
56002   # Use a header file that comes with gcc, so configuring glibc
56003   # with a fresh cross-compiler works.
56004   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56005   # <limits.h> exists even on freestanding compilers.
56006   # On the NeXT, cc -E runs the code through the compiler's parser,
56007   # not just through cpp. "Syntax error" is here to catch this case.
56008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56009 /* end confdefs.h.  */
56010 #ifdef __STDC__
56011 # include <limits.h>
56012 #else
56013 # include <assert.h>
56014 #endif
56015                      Syntax error
56016 _ACEOF
56017 if ac_fn_cxx_try_cpp "$LINENO"; then :
56018
56019 else
56020   # Broken: fails on valid input.
56021 continue
56022 fi
56023 rm -f conftest.err conftest.$ac_ext
56024
56025   # OK, works on sane cases.  Now check whether nonexistent headers
56026   # can be detected and how.
56027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56028 /* end confdefs.h.  */
56029 #include <ac_nonexistent.h>
56030 _ACEOF
56031 if ac_fn_cxx_try_cpp "$LINENO"; then :
56032   # Broken: success on invalid input.
56033 continue
56034 else
56035   # Passes both tests.
56036 ac_preproc_ok=:
56037 break
56038 fi
56039 rm -f conftest.err conftest.$ac_ext
56040
56041 done
56042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
56043 rm -f conftest.err conftest.$ac_ext
56044 if $ac_preproc_ok; then :
56045
56046 else
56047   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
56048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
56049 _lt_caught_CXX_error=yes; }
56050 fi
56051
56052 ac_ext=c
56053 ac_cpp='$CPP $CPPFLAGS'
56054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
56055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
56056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
56057
56058 else
56059   _lt_caught_CXX_error=yes
56060 fi
56061
56062
56063
56064
56065 ac_ext=cpp
56066 ac_cpp='$CXXCPP $CPPFLAGS'
56067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
56068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
56069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
56070
56071 archive_cmds_need_lc_CXX=no
56072 allow_undefined_flag_CXX=
56073 always_export_symbols_CXX=no
56074 archive_expsym_cmds_CXX=
56075 compiler_needs_object_CXX=no
56076 export_dynamic_flag_spec_CXX=
56077 hardcode_direct_CXX=no
56078 hardcode_direct_absolute_CXX=no
56079 hardcode_libdir_flag_spec_CXX=
56080 hardcode_libdir_flag_spec_ld_CXX=
56081 hardcode_libdir_separator_CXX=
56082 hardcode_minus_L_CXX=no
56083 hardcode_shlibpath_var_CXX=unsupported
56084 hardcode_automatic_CXX=no
56085 inherit_rpath_CXX=no
56086 module_cmds_CXX=
56087 module_expsym_cmds_CXX=
56088 link_all_deplibs_CXX=unknown
56089 old_archive_cmds_CXX=$old_archive_cmds
56090 no_undefined_flag_CXX=
56091 whole_archive_flag_spec_CXX=
56092 enable_shared_with_static_runtimes_CXX=no
56093
56094 # Source file extension for C++ test sources.
56095 ac_ext=cpp
56096
56097 # Object file extension for compiled C++ test sources.
56098 objext=o
56099 objext_CXX=$objext
56100
56101 # No sense in running all these tests if we already determined that
56102 # the CXX compiler isn't working.  Some variables (like enable_shared)
56103 # are currently assumed to apply to all compilers on this platform,
56104 # and will be corrupted by setting them based on a non-working compiler.
56105 if test "$_lt_caught_CXX_error" != yes; then
56106   # Code to be used in simple compile tests
56107   lt_simple_compile_test_code="int some_variable = 0;"
56108
56109   # Code to be used in simple link tests
56110   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
56111
56112   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
56113
56114
56115
56116
56117
56118
56119 # If no C compiler was specified, use CC.
56120 LTCC=${LTCC-"$CC"}
56121
56122 # If no C compiler flags were specified, use CFLAGS.
56123 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
56124
56125 # Allow CC to be a program name with arguments.
56126 compiler=$CC
56127
56128
56129   # save warnings/boilerplate of simple test code
56130   ac_outfile=conftest.$ac_objext
56131 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
56132 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
56133 _lt_compiler_boilerplate=`cat conftest.err`
56134 $RM conftest*
56135
56136   ac_outfile=conftest.$ac_objext
56137 echo "$lt_simple_link_test_code" >conftest.$ac_ext
56138 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
56139 _lt_linker_boilerplate=`cat conftest.err`
56140 $RM -r conftest*
56141
56142
56143   # Allow CC to be a program name with arguments.
56144   lt_save_CC=$CC
56145   lt_save_LD=$LD
56146   lt_save_GCC=$GCC
56147   GCC=$GXX
56148   lt_save_with_gnu_ld=$with_gnu_ld
56149   lt_save_path_LD=$lt_cv_path_LD
56150   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
56151     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
56152   else
56153     $as_unset lt_cv_prog_gnu_ld
56154   fi
56155   if test -n "${lt_cv_path_LDCXX+set}"; then
56156     lt_cv_path_LD=$lt_cv_path_LDCXX
56157   else
56158     $as_unset lt_cv_path_LD
56159   fi
56160   test -z "${LDCXX+set}" || LD=$LDCXX
56161   CC=${CXX-"c++"}
56162   compiler=$CC
56163   compiler_CXX=$CC
56164   for cc_temp in $compiler""; do
56165   case $cc_temp in
56166     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
56167     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
56168     \-*) ;;
56169     *) break;;
56170   esac
56171 done
56172 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
56173
56174
56175   if test -n "$compiler"; then
56176     # We don't want -fno-exception when compiling C++ code, so set the
56177     # no_builtin_flag separately
56178     if test "$GXX" = yes; then
56179       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
56180     else
56181       lt_prog_compiler_no_builtin_flag_CXX=
56182     fi
56183
56184     if test "$GXX" = yes; then
56185       # Set up default GNU C++ configuration
56186
56187
56188
56189 # Check whether --with-gnu-ld was given.
56190 if test "${with_gnu_ld+set}" = set; then :
56191   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
56192 else
56193   with_gnu_ld=no
56194 fi
56195
56196 ac_prog=ld
56197 if test "$GCC" = yes; then
56198   # Check if gcc -print-prog-name=ld gives a path.
56199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
56200 $as_echo_n "checking for ld used by $CC... " >&6; }
56201   case $host in
56202   *-*-mingw*)
56203     # gcc leaves a trailing carriage return which upsets mingw
56204     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
56205   *)
56206     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
56207   esac
56208   case $ac_prog in
56209     # Accept absolute paths.
56210     [\\/]* | ?:[\\/]*)
56211       re_direlt='/[^/][^/]*/\.\./'
56212       # Canonicalize the pathname of ld
56213       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
56214       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
56215         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
56216       done
56217       test -z "$LD" && LD="$ac_prog"
56218       ;;
56219   "")
56220     # If it fails, then pretend we aren't using GCC.
56221     ac_prog=ld
56222     ;;
56223   *)
56224     # If it is relative, then search for the first ld in PATH.
56225     with_gnu_ld=unknown
56226     ;;
56227   esac
56228 elif test "$with_gnu_ld" = yes; then
56229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
56230 $as_echo_n "checking for GNU ld... " >&6; }
56231 else
56232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
56233 $as_echo_n "checking for non-GNU ld... " >&6; }
56234 fi
56235 if test "${lt_cv_path_LD+set}" = set; then :
56236   $as_echo_n "(cached) " >&6
56237 else
56238   if test -z "$LD"; then
56239   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
56240   for ac_dir in $PATH; do
56241     IFS="$lt_save_ifs"
56242     test -z "$ac_dir" && ac_dir=.
56243     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
56244       lt_cv_path_LD="$ac_dir/$ac_prog"
56245       # Check to see if the program is GNU ld.  I'd rather use --version,
56246       # but apparently some variants of GNU ld only accept -v.
56247       # Break only if it was the GNU/non-GNU ld that we prefer.
56248       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
56249       *GNU* | *'with BFD'*)
56250         test "$with_gnu_ld" != no && break
56251         ;;
56252       *)
56253         test "$with_gnu_ld" != yes && break
56254         ;;
56255       esac
56256     fi
56257   done
56258   IFS="$lt_save_ifs"
56259 else
56260   lt_cv_path_LD="$LD" # Let the user override the test with a path.
56261 fi
56262 fi
56263
56264 LD="$lt_cv_path_LD"
56265 if test -n "$LD"; then
56266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
56267 $as_echo "$LD" >&6; }
56268 else
56269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56270 $as_echo "no" >&6; }
56271 fi
56272 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
56273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
56274 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
56275 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
56276   $as_echo_n "(cached) " >&6
56277 else
56278   # I'd rather use --version here, but apparently some GNU lds only accept -v.
56279 case `$LD -v 2>&1 </dev/null` in
56280 *GNU* | *'with BFD'*)
56281   lt_cv_prog_gnu_ld=yes
56282   ;;
56283 *)
56284   lt_cv_prog_gnu_ld=no
56285   ;;
56286 esac
56287 fi
56288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
56289 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
56290 with_gnu_ld=$lt_cv_prog_gnu_ld
56291
56292
56293
56294
56295
56296
56297
56298       # Check if GNU C++ uses GNU ld as the underlying linker, since the
56299       # archiving commands below assume that GNU ld is being used.
56300       if test "$with_gnu_ld" = yes; then
56301         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
56302         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
56303
56304         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
56305         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
56306
56307         # If archive_cmds runs LD, not CC, wlarc should be empty
56308         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
56309         #     investigate it a little bit more. (MM)
56310         wlarc='${wl}'
56311
56312         # ancient GNU ld didn't support --whole-archive et. al.
56313         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
56314           $GREP 'no-whole-archive' > /dev/null; then
56315           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
56316         else
56317           whole_archive_flag_spec_CXX=
56318         fi
56319       else
56320         with_gnu_ld=no
56321         wlarc=
56322
56323         # A generic and very simple default shared library creation
56324         # command for GNU C++ for the case where it uses the native
56325         # linker, instead of GNU ld.  If possible, this setting should
56326         # overridden to take advantage of the native linker features on
56327         # the platform it is being used on.
56328         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
56329       fi
56330
56331       # Commands to make compiler produce verbose output that lists
56332       # what "hidden" libraries, object files and flags are used when
56333       # linking a shared library.
56334       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
56335
56336     else
56337       GXX=no
56338       with_gnu_ld=no
56339       wlarc=
56340     fi
56341
56342     # PORTME: fill in a description of your system's C++ link characteristics
56343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
56344 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
56345     ld_shlibs_CXX=yes
56346     case $host_os in
56347       aix3*)
56348         # FIXME: insert proper C++ library support
56349         ld_shlibs_CXX=no
56350         ;;
56351       aix[4-9]*)
56352         if test "$host_cpu" = ia64; then
56353           # On IA64, the linker does run time linking by default, so we don't
56354           # have to do anything special.
56355           aix_use_runtimelinking=no
56356           exp_sym_flag='-Bexport'
56357           no_entry_flag=""
56358         else
56359           aix_use_runtimelinking=no
56360
56361           # Test if we are trying to use run time linking or normal
56362           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
56363           # need to do runtime linking.
56364           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
56365             for ld_flag in $LDFLAGS; do
56366               case $ld_flag in
56367               *-brtl*)
56368                 aix_use_runtimelinking=yes
56369                 break
56370                 ;;
56371               esac
56372             done
56373             ;;
56374           esac
56375
56376           exp_sym_flag='-bexport'
56377           no_entry_flag='-bnoentry'
56378         fi
56379
56380         # When large executables or shared objects are built, AIX ld can
56381         # have problems creating the table of contents.  If linking a library
56382         # or program results in "error TOC overflow" add -mminimal-toc to
56383         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
56384         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
56385
56386         archive_cmds_CXX=''
56387         hardcode_direct_CXX=yes
56388         hardcode_direct_absolute_CXX=yes
56389         hardcode_libdir_separator_CXX=':'
56390         link_all_deplibs_CXX=yes
56391         file_list_spec_CXX='${wl}-f,'
56392
56393         if test "$GXX" = yes; then
56394           case $host_os in aix4.[012]|aix4.[012].*)
56395           # We only want to do this on AIX 4.2 and lower, the check
56396           # below for broken collect2 doesn't work under 4.3+
56397           collect2name=`${CC} -print-prog-name=collect2`
56398           if test -f "$collect2name" &&
56399              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
56400           then
56401             # We have reworked collect2
56402             :
56403           else
56404             # We have old collect2
56405             hardcode_direct_CXX=unsupported
56406             # It fails to find uninstalled libraries when the uninstalled
56407             # path is not listed in the libpath.  Setting hardcode_minus_L
56408             # to unsupported forces relinking
56409             hardcode_minus_L_CXX=yes
56410             hardcode_libdir_flag_spec_CXX='-L$libdir'
56411             hardcode_libdir_separator_CXX=
56412           fi
56413           esac
56414           shared_flag='-shared'
56415           if test "$aix_use_runtimelinking" = yes; then
56416             shared_flag="$shared_flag "'${wl}-G'
56417           fi
56418         else
56419           # not using gcc
56420           if test "$host_cpu" = ia64; then
56421           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
56422           # chokes on -Wl,-G. The following line is correct:
56423           shared_flag='-G'
56424           else
56425             if test "$aix_use_runtimelinking" = yes; then
56426               shared_flag='${wl}-G'
56427             else
56428               shared_flag='${wl}-bM:SRE'
56429             fi
56430           fi
56431         fi
56432
56433         export_dynamic_flag_spec_CXX='${wl}-bexpall'
56434         # It seems that -bexpall does not export symbols beginning with
56435         # underscore (_), so it is better to generate a list of symbols to
56436         # export.
56437         always_export_symbols_CXX=yes
56438         if test "$aix_use_runtimelinking" = yes; then
56439           # Warning - without using the other runtime loading flags (-brtl),
56440           # -berok will link without error, but may produce a broken library.
56441           allow_undefined_flag_CXX='-berok'
56442           # Determine the default libpath from the value encoded in an empty
56443           # executable.
56444           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56445 /* end confdefs.h.  */
56446
56447 int
56448 main ()
56449 {
56450
56451   ;
56452   return 0;
56453 }
56454 _ACEOF
56455 if ac_fn_cxx_try_link "$LINENO"; then :
56456
56457 lt_aix_libpath_sed='
56458     /Import File Strings/,/^$/ {
56459         /^0/ {
56460             s/^0  *\(.*\)$/\1/
56461             p
56462         }
56463     }'
56464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
56465 # Check for a 64-bit object if we didn't find anything.
56466 if test -z "$aix_libpath"; then
56467   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
56468 fi
56469 fi
56470 rm -f core conftest.err conftest.$ac_objext \
56471     conftest$ac_exeext conftest.$ac_ext
56472 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
56473
56474           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
56475
56476           archive_expsym_cmds_CXX='$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"
56477         else
56478           if test "$host_cpu" = ia64; then
56479             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
56480             allow_undefined_flag_CXX="-z nodefs"
56481             archive_expsym_cmds_CXX="\$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"
56482           else
56483             # Determine the default libpath from the value encoded in an
56484             # empty executable.
56485             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56486 /* end confdefs.h.  */
56487
56488 int
56489 main ()
56490 {
56491
56492   ;
56493   return 0;
56494 }
56495 _ACEOF
56496 if ac_fn_cxx_try_link "$LINENO"; then :
56497
56498 lt_aix_libpath_sed='
56499     /Import File Strings/,/^$/ {
56500         /^0/ {
56501             s/^0  *\(.*\)$/\1/
56502             p
56503         }
56504     }'
56505 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
56506 # Check for a 64-bit object if we didn't find anything.
56507 if test -z "$aix_libpath"; then
56508   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
56509 fi
56510 fi
56511 rm -f core conftest.err conftest.$ac_objext \
56512     conftest$ac_exeext conftest.$ac_ext
56513 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
56514
56515             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
56516             # Warning - without using the other run time loading flags,
56517             # -berok will link without error, but may produce a broken library.
56518             no_undefined_flag_CXX=' ${wl}-bernotok'
56519             allow_undefined_flag_CXX=' ${wl}-berok'
56520             # Exported symbols can be pulled into shared objects from archives
56521             whole_archive_flag_spec_CXX='$convenience'
56522             archive_cmds_need_lc_CXX=yes
56523             # This is similar to how AIX traditionally builds its shared
56524             # libraries.
56525             archive_expsym_cmds_CXX="\$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'
56526           fi
56527         fi
56528         ;;
56529
56530       beos*)
56531         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
56532           allow_undefined_flag_CXX=unsupported
56533           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
56534           # support --undefined.  This deserves some investigation.  FIXME
56535           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
56536         else
56537           ld_shlibs_CXX=no
56538         fi
56539         ;;
56540
56541       chorus*)
56542         case $cc_basename in
56543           *)
56544           # FIXME: insert proper C++ library support
56545           ld_shlibs_CXX=no
56546           ;;
56547         esac
56548         ;;
56549
56550       cygwin* | mingw* | pw32* | cegcc*)
56551         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
56552         # as there is no search path for DLLs.
56553         hardcode_libdir_flag_spec_CXX='-L$libdir'
56554         allow_undefined_flag_CXX=unsupported
56555         always_export_symbols_CXX=no
56556         enable_shared_with_static_runtimes_CXX=yes
56557
56558         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
56559           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
56560           # If the export-symbols file already is a .def file (1st line
56561           # is EXPORTS), use it as is; otherwise, prepend...
56562           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
56563             cp $export_symbols $output_objdir/$soname.def;
56564           else
56565             echo EXPORTS > $output_objdir/$soname.def;
56566             cat $export_symbols >> $output_objdir/$soname.def;
56567           fi~
56568           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
56569         else
56570           ld_shlibs_CXX=no
56571         fi
56572         ;;
56573       darwin* | rhapsody*)
56574
56575
56576   archive_cmds_need_lc_CXX=no
56577   hardcode_direct_CXX=no
56578   hardcode_automatic_CXX=yes
56579   hardcode_shlibpath_var_CXX=unsupported
56580   whole_archive_flag_spec_CXX=''
56581   link_all_deplibs_CXX=yes
56582   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
56583   case $cc_basename in
56584      ifort*) _lt_dar_can_shared=yes ;;
56585      *) _lt_dar_can_shared=$GCC ;;
56586   esac
56587   if test "$_lt_dar_can_shared" = "yes"; then
56588     output_verbose_link_cmd=echo
56589     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
56590     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
56591     archive_expsym_cmds_CXX="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}"
56592     module_expsym_cmds_CXX="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}"
56593        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
56594       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
56595       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
56596     fi
56597
56598   else
56599   ld_shlibs_CXX=no
56600   fi
56601
56602         ;;
56603
56604       dgux*)
56605         case $cc_basename in
56606           ec++*)
56607             # FIXME: insert proper C++ library support
56608             ld_shlibs_CXX=no
56609             ;;
56610           ghcx*)
56611             # Green Hills C++ Compiler
56612             # FIXME: insert proper C++ library support
56613             ld_shlibs_CXX=no
56614             ;;
56615           *)
56616             # FIXME: insert proper C++ library support
56617             ld_shlibs_CXX=no
56618             ;;
56619         esac
56620         ;;
56621
56622       freebsd[12]*)
56623         # C++ shared libraries reported to be fairly broken before
56624         # switch to ELF
56625         ld_shlibs_CXX=no
56626         ;;
56627
56628       freebsd-elf*)
56629         archive_cmds_need_lc_CXX=no
56630         ;;
56631
56632       freebsd* | dragonfly*)
56633         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
56634         # conventions
56635         ld_shlibs_CXX=yes
56636         ;;
56637
56638       gnu*)
56639         ;;
56640
56641       hpux9*)
56642         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
56643         hardcode_libdir_separator_CXX=:
56644         export_dynamic_flag_spec_CXX='${wl}-E'
56645         hardcode_direct_CXX=yes
56646         hardcode_minus_L_CXX=yes # Not in the search PATH,
56647                                              # but as the default
56648                                              # location of the library.
56649
56650         case $cc_basename in
56651           CC*)
56652             # FIXME: insert proper C++ library support
56653             ld_shlibs_CXX=no
56654             ;;
56655           aCC*)
56656             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
56657             # Commands to make compiler produce verbose output that lists
56658             # what "hidden" libraries, object files and flags are used when
56659             # linking a shared library.
56660             #
56661             # There doesn't appear to be a way to prevent this compiler from
56662             # explicitly linking system object files so we need to strip them
56663             # from the output so that they don't get included in the library
56664             # dependencies.
56665             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
56666             ;;
56667           *)
56668             if test "$GXX" = yes; then
56669               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
56670             else
56671               # FIXME: insert proper C++ library support
56672               ld_shlibs_CXX=no
56673             fi
56674             ;;
56675         esac
56676         ;;
56677
56678       hpux10*|hpux11*)
56679         if test $with_gnu_ld = no; then
56680           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
56681           hardcode_libdir_separator_CXX=:
56682
56683           case $host_cpu in
56684             hppa*64*|ia64*)
56685               ;;
56686             *)
56687               export_dynamic_flag_spec_CXX='${wl}-E'
56688               ;;
56689           esac
56690         fi
56691         case $host_cpu in
56692           hppa*64*|ia64*)
56693             hardcode_direct_CXX=no
56694             hardcode_shlibpath_var_CXX=no
56695             ;;
56696           *)
56697             hardcode_direct_CXX=yes
56698             hardcode_direct_absolute_CXX=yes
56699             hardcode_minus_L_CXX=yes # Not in the search PATH,
56700                                                  # but as the default
56701                                                  # location of the library.
56702             ;;
56703         esac
56704
56705         case $cc_basename in
56706           CC*)
56707             # FIXME: insert proper C++ library support
56708             ld_shlibs_CXX=no
56709             ;;
56710           aCC*)
56711             case $host_cpu in
56712               hppa*64*)
56713                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
56714                 ;;
56715               ia64*)
56716                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
56717                 ;;
56718               *)
56719                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
56720                 ;;
56721             esac
56722             # Commands to make compiler produce verbose output that lists
56723             # what "hidden" libraries, object files and flags are used when
56724             # linking a shared library.
56725             #
56726             # There doesn't appear to be a way to prevent this compiler from
56727             # explicitly linking system object files so we need to strip them
56728             # from the output so that they don't get included in the library
56729             # dependencies.
56730             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
56731             ;;
56732           *)
56733             if test "$GXX" = yes; then
56734               if test $with_gnu_ld = no; then
56735                 case $host_cpu in
56736                   hppa*64*)
56737                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
56738                     ;;
56739                   ia64*)
56740                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
56741                     ;;
56742                   *)
56743                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
56744                     ;;
56745                 esac
56746               fi
56747             else
56748               # FIXME: insert proper C++ library support
56749               ld_shlibs_CXX=no
56750             fi
56751             ;;
56752         esac
56753         ;;
56754
56755       interix[3-9]*)
56756         hardcode_direct_CXX=no
56757         hardcode_shlibpath_var_CXX=no
56758         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
56759         export_dynamic_flag_spec_CXX='${wl}-E'
56760         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
56761         # Instead, shared libraries are loaded at an image base (0x10000000 by
56762         # default) and relocated if they conflict, which is a slow very memory
56763         # consuming and fragmenting process.  To avoid this, we pick a random,
56764         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
56765         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
56766         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
56767         archive_expsym_cmds_CXX='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'
56768         ;;
56769       irix5* | irix6*)
56770         case $cc_basename in
56771           CC*)
56772             # SGI C++
56773             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
56774
56775             # Archives containing C++ object files must be created using
56776             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
56777             # necessary to make sure instantiated templates are included
56778             # in the archive.
56779             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
56780             ;;
56781           *)
56782             if test "$GXX" = yes; then
56783               if test "$with_gnu_ld" = no; then
56784                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
56785               else
56786                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
56787               fi
56788             fi
56789             link_all_deplibs_CXX=yes
56790             ;;
56791         esac
56792         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
56793         hardcode_libdir_separator_CXX=:
56794         inherit_rpath_CXX=yes
56795         ;;
56796
56797       linux* | k*bsd*-gnu)
56798         case $cc_basename in
56799           KCC*)
56800             # Kuck and Associates, Inc. (KAI) C++ Compiler
56801
56802             # KCC will only create a shared library if the output file
56803             # ends with ".so" (or ".sl" for HP-UX), so rename the library
56804             # to its proper name (with version) after linking.
56805             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
56806             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
56807             # Commands to make compiler produce verbose output that lists
56808             # what "hidden" libraries, object files and flags are used when
56809             # linking a shared library.
56810             #
56811             # There doesn't appear to be a way to prevent this compiler from
56812             # explicitly linking system object files so we need to strip them
56813             # from the output so that they don't get included in the library
56814             # dependencies.
56815             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
56816
56817             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
56818             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
56819
56820             # Archives containing C++ object files must be created using
56821             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
56822             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
56823             ;;
56824           icpc* | ecpc* )
56825             # Intel C++
56826             with_gnu_ld=yes
56827             # version 8.0 and above of icpc choke on multiply defined symbols
56828             # if we add $predep_objects and $postdep_objects, however 7.1 and
56829             # earlier do not add the objects themselves.
56830             case `$CC -V 2>&1` in
56831               *"Version 7."*)
56832                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
56833                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
56834                 ;;
56835               *)  # Version 8.0 or newer
56836                 tmp_idyn=
56837                 case $host_cpu in
56838                   ia64*) tmp_idyn=' -i_dynamic';;
56839                 esac
56840                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
56841                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
56842                 ;;
56843             esac
56844             archive_cmds_need_lc_CXX=no
56845             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
56846             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
56847             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
56848             ;;
56849           pgCC* | pgcpp*)
56850             # Portland Group C++ compiler
56851             case `$CC -V` in
56852             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
56853               prelink_cmds_CXX='tpldir=Template.dir~
56854                 rm -rf $tpldir~
56855                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
56856                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
56857               old_archive_cmds_CXX='tpldir=Template.dir~
56858                 rm -rf $tpldir~
56859                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
56860                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
56861                 $RANLIB $oldlib'
56862               archive_cmds_CXX='tpldir=Template.dir~
56863                 rm -rf $tpldir~
56864                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
56865                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
56866               archive_expsym_cmds_CXX='tpldir=Template.dir~
56867                 rm -rf $tpldir~
56868                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
56869                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
56870               ;;
56871             *) # Version 6 will use weak symbols
56872               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
56873               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
56874               ;;
56875             esac
56876
56877             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
56878             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
56879             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
56880             ;;
56881           cxx*)
56882             # Compaq C++
56883             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
56884             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
56885
56886             runpath_var=LD_RUN_PATH
56887             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
56888             hardcode_libdir_separator_CXX=:
56889
56890             # Commands to make compiler produce verbose output that lists
56891             # what "hidden" libraries, object files and flags are used when
56892             # linking a shared library.
56893             #
56894             # There doesn't appear to be a way to prevent this compiler from
56895             # explicitly linking system object files so we need to strip them
56896             # from the output so that they don't get included in the library
56897             # dependencies.
56898             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
56899             ;;
56900           xl*)
56901             # IBM XL 8.0 on PPC, with GNU ld
56902             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
56903             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
56904             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
56905             if test "x$supports_anon_versioning" = xyes; then
56906               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
56907                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
56908                 echo "local: *; };" >> $output_objdir/$libname.ver~
56909                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
56910             fi
56911             ;;
56912           *)
56913             case `$CC -V 2>&1 | sed 5q` in
56914             *Sun\ C*)
56915               # Sun C++ 5.9
56916               no_undefined_flag_CXX=' -zdefs'
56917               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
56918               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
56919               hardcode_libdir_flag_spec_CXX='-R$libdir'
56920               whole_archive_flag_spec_CXX='${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'
56921               compiler_needs_object_CXX=yes
56922
56923               # Not sure whether something based on
56924               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
56925               # would be better.
56926               output_verbose_link_cmd='echo'
56927
56928               # Archives containing C++ object files must be created using
56929               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
56930               # necessary to make sure instantiated templates are included
56931               # in the archive.
56932               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
56933               ;;
56934             esac
56935             ;;
56936         esac
56937         ;;
56938
56939       lynxos*)
56940         # FIXME: insert proper C++ library support
56941         ld_shlibs_CXX=no
56942         ;;
56943
56944       m88k*)
56945         # FIXME: insert proper C++ library support
56946         ld_shlibs_CXX=no
56947         ;;
56948
56949       mvs*)
56950         case $cc_basename in
56951           cxx*)
56952             # FIXME: insert proper C++ library support
56953             ld_shlibs_CXX=no
56954             ;;
56955           *)
56956             # FIXME: insert proper C++ library support
56957             ld_shlibs_CXX=no
56958             ;;
56959         esac
56960         ;;
56961
56962       netbsd*)
56963         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
56964           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
56965           wlarc=
56966           hardcode_libdir_flag_spec_CXX='-R$libdir'
56967           hardcode_direct_CXX=yes
56968           hardcode_shlibpath_var_CXX=no
56969         fi
56970         # Workaround some broken pre-1.5 toolchains
56971         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
56972         ;;
56973
56974       *nto* | *qnx*)
56975         ld_shlibs_CXX=yes
56976         ;;
56977
56978       openbsd2*)
56979         # C++ shared libraries are fairly broken
56980         ld_shlibs_CXX=no
56981         ;;
56982
56983       openbsd*)
56984         if test -f /usr/libexec/ld.so; then
56985           hardcode_direct_CXX=yes
56986           hardcode_shlibpath_var_CXX=no
56987           hardcode_direct_absolute_CXX=yes
56988           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
56989           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
56990           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
56991             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
56992             export_dynamic_flag_spec_CXX='${wl}-E'
56993             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
56994           fi
56995           output_verbose_link_cmd=echo
56996         else
56997           ld_shlibs_CXX=no
56998         fi
56999         ;;
57000
57001       osf3* | osf4* | osf5*)
57002         case $cc_basename in
57003           KCC*)
57004             # Kuck and Associates, Inc. (KAI) C++ Compiler
57005
57006             # KCC will only create a shared library if the output file
57007             # ends with ".so" (or ".sl" for HP-UX), so rename the library
57008             # to its proper name (with version) after linking.
57009             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
57010
57011             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
57012             hardcode_libdir_separator_CXX=:
57013
57014             # Archives containing C++ object files must be created using
57015             # the KAI C++ compiler.
57016             case $host in
57017               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
57018               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
57019             esac
57020             ;;
57021           RCC*)
57022             # Rational C++ 2.4.1
57023             # FIXME: insert proper C++ library support
57024             ld_shlibs_CXX=no
57025             ;;
57026           cxx*)
57027             case $host in
57028               osf3*)
57029                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
57030                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
57031                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
57032                 ;;
57033               *)
57034                 allow_undefined_flag_CXX=' -expect_unresolved \*'
57035                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
57036                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
57037                   echo "-hidden">> $lib.exp~
57038                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
57039                   $RM $lib.exp'
57040                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
57041                 ;;
57042             esac
57043
57044             hardcode_libdir_separator_CXX=:
57045
57046             # Commands to make compiler produce verbose output that lists
57047             # what "hidden" libraries, object files and flags are used when
57048             # linking a shared library.
57049             #
57050             # There doesn't appear to be a way to prevent this compiler from
57051             # explicitly linking system object files so we need to strip them
57052             # from the output so that they don't get included in the library
57053             # dependencies.
57054             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
57055             ;;
57056           *)
57057             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
57058               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
57059               case $host in
57060                 osf3*)
57061                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
57062                   ;;
57063                 *)
57064                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
57065                   ;;
57066               esac
57067
57068               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
57069               hardcode_libdir_separator_CXX=:
57070
57071               # Commands to make compiler produce verbose output that lists
57072               # what "hidden" libraries, object files and flags are used when
57073               # linking a shared library.
57074               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
57075
57076             else
57077               # FIXME: insert proper C++ library support
57078               ld_shlibs_CXX=no
57079             fi
57080             ;;
57081         esac
57082         ;;
57083
57084       psos*)
57085         # FIXME: insert proper C++ library support
57086         ld_shlibs_CXX=no
57087         ;;
57088
57089       sunos4*)
57090         case $cc_basename in
57091           CC*)
57092             # Sun C++ 4.x
57093             # FIXME: insert proper C++ library support
57094             ld_shlibs_CXX=no
57095             ;;
57096           lcc*)
57097             # Lucid
57098             # FIXME: insert proper C++ library support
57099             ld_shlibs_CXX=no
57100             ;;
57101           *)
57102             # FIXME: insert proper C++ library support
57103             ld_shlibs_CXX=no
57104             ;;
57105         esac
57106         ;;
57107
57108       solaris*)
57109         case $cc_basename in
57110           CC*)
57111             # Sun C++ 4.2, 5.x and Centerline C++
57112             archive_cmds_need_lc_CXX=yes
57113             no_undefined_flag_CXX=' -zdefs'
57114             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
57115             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
57116               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
57117
57118             hardcode_libdir_flag_spec_CXX='-R$libdir'
57119             hardcode_shlibpath_var_CXX=no
57120             case $host_os in
57121               solaris2.[0-5] | solaris2.[0-5].*) ;;
57122               *)
57123                 # The compiler driver will combine and reorder linker options,
57124                 # but understands `-z linker_flag'.
57125                 # Supported since Solaris 2.6 (maybe 2.5.1?)
57126                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
57127                 ;;
57128             esac
57129             link_all_deplibs_CXX=yes
57130
57131             output_verbose_link_cmd='echo'
57132
57133             # Archives containing C++ object files must be created using
57134             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
57135             # necessary to make sure instantiated templates are included
57136             # in the archive.
57137             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
57138             ;;
57139           gcx*)
57140             # Green Hills C++ Compiler
57141             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
57142
57143             # The C++ compiler must be used to create the archive.
57144             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
57145             ;;
57146           *)
57147             # GNU C++ compiler with Solaris linker
57148             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
57149               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
57150               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
57151                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
57152                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
57153                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
57154
57155                 # Commands to make compiler produce verbose output that lists
57156                 # what "hidden" libraries, object files and flags are used when
57157                 # linking a shared library.
57158                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
57159               else
57160                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
57161                 # platform.
57162                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
57163                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
57164                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
57165
57166                 # Commands to make compiler produce verbose output that lists
57167                 # what "hidden" libraries, object files and flags are used when
57168                 # linking a shared library.
57169                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
57170               fi
57171
57172               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
57173               case $host_os in
57174                 solaris2.[0-5] | solaris2.[0-5].*) ;;
57175                 *)
57176                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
57177                   ;;
57178               esac
57179             fi
57180             ;;
57181         esac
57182         ;;
57183
57184     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
57185       no_undefined_flag_CXX='${wl}-z,text'
57186       archive_cmds_need_lc_CXX=no
57187       hardcode_shlibpath_var_CXX=no
57188       runpath_var='LD_RUN_PATH'
57189
57190       case $cc_basename in
57191         CC*)
57192           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
57193           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
57194           ;;
57195         *)
57196           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
57197           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
57198           ;;
57199       esac
57200       ;;
57201
57202       sysv5* | sco3.2v5* | sco5v6*)
57203         # Note: We can NOT use -z defs as we might desire, because we do not
57204         # link with -lc, and that would cause any symbols used from libc to
57205         # always be unresolved, which means just about no library would
57206         # ever link correctly.  If we're not using GNU ld we use -z text
57207         # though, which does catch some bad symbols but isn't as heavy-handed
57208         # as -z defs.
57209         no_undefined_flag_CXX='${wl}-z,text'
57210         allow_undefined_flag_CXX='${wl}-z,nodefs'
57211         archive_cmds_need_lc_CXX=no
57212         hardcode_shlibpath_var_CXX=no
57213         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
57214         hardcode_libdir_separator_CXX=':'
57215         link_all_deplibs_CXX=yes
57216         export_dynamic_flag_spec_CXX='${wl}-Bexport'
57217         runpath_var='LD_RUN_PATH'
57218
57219         case $cc_basename in
57220           CC*)
57221             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
57222             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
57223             ;;
57224           *)
57225             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
57226             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
57227             ;;
57228         esac
57229       ;;
57230
57231       tandem*)
57232         case $cc_basename in
57233           NCC*)
57234             # NonStop-UX NCC 3.20
57235             # FIXME: insert proper C++ library support
57236             ld_shlibs_CXX=no
57237             ;;
57238           *)
57239             # FIXME: insert proper C++ library support
57240             ld_shlibs_CXX=no
57241             ;;
57242         esac
57243         ;;
57244
57245       vxworks*)
57246         # FIXME: insert proper C++ library support
57247         ld_shlibs_CXX=no
57248         ;;
57249
57250       *)
57251         # FIXME: insert proper C++ library support
57252         ld_shlibs_CXX=no
57253         ;;
57254     esac
57255
57256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
57257 $as_echo "$ld_shlibs_CXX" >&6; }
57258     test "$ld_shlibs_CXX" = no && can_build_shared=no
57259
57260     GCC_CXX="$GXX"
57261     LD_CXX="$LD"
57262
57263     ## CAVEAT EMPTOR:
57264     ## There is no encapsulation within the following macros, do not change
57265     ## the running order or otherwise move them around unless you know exactly
57266     ## what you are doing...
57267     # Dependencies to place before and after the object being linked:
57268 predep_objects_CXX=
57269 postdep_objects_CXX=
57270 predeps_CXX=
57271 postdeps_CXX=
57272 compiler_lib_search_path_CXX=
57273
57274 cat > conftest.$ac_ext <<_LT_EOF
57275 class Foo
57276 {
57277 public:
57278   Foo (void) { a = 0; }
57279 private:
57280   int a;
57281 };
57282 _LT_EOF
57283
57284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
57285   (eval $ac_compile) 2>&5
57286   ac_status=$?
57287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57288   test $ac_status = 0; }; then
57289   # Parse the compiler output and extract the necessary
57290   # objects, libraries and library flags.
57291
57292   # Sentinel used to keep track of whether or not we are before
57293   # the conftest object file.
57294   pre_test_object_deps_done=no
57295
57296   for p in `eval "$output_verbose_link_cmd"`; do
57297     case $p in
57298
57299     -L* | -R* | -l*)
57300        # Some compilers place space between "-{L,R}" and the path.
57301        # Remove the space.
57302        if test $p = "-L" ||
57303           test $p = "-R"; then
57304          prev=$p
57305          continue
57306        else
57307          prev=
57308        fi
57309
57310        if test "$pre_test_object_deps_done" = no; then
57311          case $p in
57312          -L* | -R*)
57313            # Internal compiler library paths should come after those
57314            # provided the user.  The postdeps already come after the
57315            # user supplied libs so there is no need to process them.
57316            if test -z "$compiler_lib_search_path_CXX"; then
57317              compiler_lib_search_path_CXX="${prev}${p}"
57318            else
57319              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
57320            fi
57321            ;;
57322          # The "-l" case would never come before the object being
57323          # linked, so don't bother handling this case.
57324          esac
57325        else
57326          if test -z "$postdeps_CXX"; then
57327            postdeps_CXX="${prev}${p}"
57328          else
57329            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
57330          fi
57331        fi
57332        ;;
57333
57334     *.$objext)
57335        # This assumes that the test object file only shows up
57336        # once in the compiler output.
57337        if test "$p" = "conftest.$objext"; then
57338          pre_test_object_deps_done=yes
57339          continue
57340        fi
57341
57342        if test "$pre_test_object_deps_done" = no; then
57343          if test -z "$predep_objects_CXX"; then
57344            predep_objects_CXX="$p"
57345          else
57346            predep_objects_CXX="$predep_objects_CXX $p"
57347          fi
57348        else
57349          if test -z "$postdep_objects_CXX"; then
57350            postdep_objects_CXX="$p"
57351          else
57352            postdep_objects_CXX="$postdep_objects_CXX $p"
57353          fi
57354        fi
57355        ;;
57356
57357     *) ;; # Ignore the rest.
57358
57359     esac
57360   done
57361
57362   # Clean up.
57363   rm -f a.out a.exe
57364 else
57365   echo "libtool.m4: error: problem compiling CXX test program"
57366 fi
57367
57368 $RM -f confest.$objext
57369
57370 # PORTME: override above test on systems where it is broken
57371 case $host_os in
57372 interix[3-9]*)
57373   # Interix 3.5 installs completely hosed .la files for C++, so rather than
57374   # hack all around it, let's just trust "g++" to DTRT.
57375   predep_objects_CXX=
57376   postdep_objects_CXX=
57377   postdeps_CXX=
57378   ;;
57379
57380 linux*)
57381   case `$CC -V 2>&1 | sed 5q` in
57382   *Sun\ C*)
57383     # Sun C++ 5.9
57384
57385     # The more standards-conforming stlport4 library is
57386     # incompatible with the Cstd library. Avoid specifying
57387     # it if it's in CXXFLAGS. Ignore libCrun as
57388     # -library=stlport4 depends on it.
57389     case " $CXX $CXXFLAGS " in
57390     *" -library=stlport4 "*)
57391       solaris_use_stlport4=yes
57392       ;;
57393     esac
57394
57395     if test "$solaris_use_stlport4" != yes; then
57396       postdeps_CXX='-library=Cstd -library=Crun'
57397     fi
57398     ;;
57399   esac
57400   ;;
57401
57402 solaris*)
57403   case $cc_basename in
57404   CC*)
57405     # The more standards-conforming stlport4 library is
57406     # incompatible with the Cstd library. Avoid specifying
57407     # it if it's in CXXFLAGS. Ignore libCrun as
57408     # -library=stlport4 depends on it.
57409     case " $CXX $CXXFLAGS " in
57410     *" -library=stlport4 "*)
57411       solaris_use_stlport4=yes
57412       ;;
57413     esac
57414
57415     # Adding this requires a known-good setup of shared libraries for
57416     # Sun compiler versions before 5.6, else PIC objects from an old
57417     # archive will be linked into the output, leading to subtle bugs.
57418     if test "$solaris_use_stlport4" != yes; then
57419       postdeps_CXX='-library=Cstd -library=Crun'
57420     fi
57421     ;;
57422   esac
57423   ;;
57424 esac
57425
57426
57427 case " $postdeps_CXX " in
57428 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
57429 esac
57430  compiler_lib_search_dirs_CXX=
57431 if test -n "${compiler_lib_search_path_CXX}"; then
57432  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
57433 fi
57434
57435
57436
57437
57438
57439
57440
57441
57442
57443
57444
57445
57446
57447
57448
57449
57450
57451
57452
57453
57454
57455
57456
57457
57458
57459
57460
57461
57462
57463
57464
57465     lt_prog_compiler_wl_CXX=
57466 lt_prog_compiler_pic_CXX=
57467 lt_prog_compiler_static_CXX=
57468
57469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
57470 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
57471
57472   # C++ specific cases for pic, static, wl, etc.
57473   if test "$GXX" = yes; then
57474     lt_prog_compiler_wl_CXX='-Wl,'
57475     lt_prog_compiler_static_CXX='-static'
57476
57477     case $host_os in
57478     aix*)
57479       # All AIX code is PIC.
57480       if test "$host_cpu" = ia64; then
57481         # AIX 5 now supports IA64 processor
57482         lt_prog_compiler_static_CXX='-Bstatic'
57483       fi
57484       ;;
57485
57486     amigaos*)
57487       case $host_cpu in
57488       powerpc)
57489             # see comment about AmigaOS4 .so support
57490             lt_prog_compiler_pic_CXX='-fPIC'
57491         ;;
57492       m68k)
57493             # FIXME: we need at least 68020 code to build shared libraries, but
57494             # adding the `-m68020' flag to GCC prevents building anything better,
57495             # like `-m68040'.
57496             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
57497         ;;
57498       esac
57499       ;;
57500
57501     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
57502       # PIC is the default for these OSes.
57503       ;;
57504     mingw* | cygwin* | os2* | pw32* | cegcc*)
57505       # This hack is so that the source file can tell whether it is being
57506       # built for inclusion in a dll (and should export symbols for example).
57507       # Although the cygwin gcc ignores -fPIC, still need this for old-style
57508       # (--disable-auto-import) libraries
57509       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
57510       ;;
57511     darwin* | rhapsody*)
57512       # PIC is the default on this platform
57513       # Common symbols not allowed in MH_DYLIB files
57514       lt_prog_compiler_pic_CXX='-fno-common'
57515       ;;
57516     *djgpp*)
57517       # DJGPP does not support shared libraries at all
57518       lt_prog_compiler_pic_CXX=
57519       ;;
57520     interix[3-9]*)
57521       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
57522       # Instead, we relocate shared libraries at runtime.
57523       ;;
57524     sysv4*MP*)
57525       if test -d /usr/nec; then
57526         lt_prog_compiler_pic_CXX=-Kconform_pic
57527       fi
57528       ;;
57529     hpux*)
57530       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
57531       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
57532       # sets the default TLS model and affects inlining.
57533       case $host_cpu in
57534       hppa*64*)
57535         ;;
57536       *)
57537         lt_prog_compiler_pic_CXX='-fPIC'
57538         ;;
57539       esac
57540       ;;
57541     *qnx* | *nto*)
57542       # QNX uses GNU C++, but need to define -shared option too, otherwise
57543       # it will coredump.
57544       lt_prog_compiler_pic_CXX='-fPIC -shared'
57545       ;;
57546     *)
57547       lt_prog_compiler_pic_CXX='-fPIC'
57548       ;;
57549     esac
57550   else
57551     case $host_os in
57552       aix[4-9]*)
57553         # All AIX code is PIC.
57554         if test "$host_cpu" = ia64; then
57555           # AIX 5 now supports IA64 processor
57556           lt_prog_compiler_static_CXX='-Bstatic'
57557         else
57558           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
57559         fi
57560         ;;
57561       chorus*)
57562         case $cc_basename in
57563         cxch68*)
57564           # Green Hills C++ Compiler
57565           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
57566           ;;
57567         esac
57568         ;;
57569       dgux*)
57570         case $cc_basename in
57571           ec++*)
57572             lt_prog_compiler_pic_CXX='-KPIC'
57573             ;;
57574           ghcx*)
57575             # Green Hills C++ Compiler
57576             lt_prog_compiler_pic_CXX='-pic'
57577             ;;
57578           *)
57579             ;;
57580         esac
57581         ;;
57582       freebsd* | dragonfly*)
57583         # FreeBSD uses GNU C++
57584         ;;
57585       hpux9* | hpux10* | hpux11*)
57586         case $cc_basename in
57587           CC*)
57588             lt_prog_compiler_wl_CXX='-Wl,'
57589             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
57590             if test "$host_cpu" != ia64; then
57591               lt_prog_compiler_pic_CXX='+Z'
57592             fi
57593             ;;
57594           aCC*)
57595             lt_prog_compiler_wl_CXX='-Wl,'
57596             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
57597             case $host_cpu in
57598             hppa*64*|ia64*)
57599               # +Z the default
57600               ;;
57601             *)
57602               lt_prog_compiler_pic_CXX='+Z'
57603               ;;
57604             esac
57605             ;;
57606           *)
57607             ;;
57608         esac
57609         ;;
57610       interix*)
57611         # This is c89, which is MS Visual C++ (no shared libs)
57612         # Anyone wants to do a port?
57613         ;;
57614       irix5* | irix6* | nonstopux*)
57615         case $cc_basename in
57616           CC*)
57617             lt_prog_compiler_wl_CXX='-Wl,'
57618             lt_prog_compiler_static_CXX='-non_shared'
57619             # CC pic flag -KPIC is the default.
57620             ;;
57621           *)
57622             ;;
57623         esac
57624         ;;
57625       linux* | k*bsd*-gnu)
57626         case $cc_basename in
57627           KCC*)
57628             # KAI C++ Compiler
57629             lt_prog_compiler_wl_CXX='--backend -Wl,'
57630             lt_prog_compiler_pic_CXX='-fPIC'
57631             ;;
57632           ecpc* )
57633             # old Intel C++ for x86_64 which still supported -KPIC.
57634             lt_prog_compiler_wl_CXX='-Wl,'
57635             lt_prog_compiler_pic_CXX='-KPIC'
57636             lt_prog_compiler_static_CXX='-static'
57637             ;;
57638           icpc* )
57639             # Intel C++, used to be incompatible with GCC.
57640             # ICC 10 doesn't accept -KPIC any more.
57641             lt_prog_compiler_wl_CXX='-Wl,'
57642             lt_prog_compiler_pic_CXX='-fPIC'
57643             lt_prog_compiler_static_CXX='-static'
57644             ;;
57645           pgCC* | pgcpp*)
57646             # Portland Group C++ compiler
57647             lt_prog_compiler_wl_CXX='-Wl,'
57648             lt_prog_compiler_pic_CXX='-fpic'
57649             lt_prog_compiler_static_CXX='-Bstatic'
57650             ;;
57651           cxx*)
57652             # Compaq C++
57653             # Make sure the PIC flag is empty.  It appears that all Alpha
57654             # Linux and Compaq Tru64 Unix objects are PIC.
57655             lt_prog_compiler_pic_CXX=
57656             lt_prog_compiler_static_CXX='-non_shared'
57657             ;;
57658           xlc* | xlC*)
57659             # IBM XL 8.0 on PPC
57660             lt_prog_compiler_wl_CXX='-Wl,'
57661             lt_prog_compiler_pic_CXX='-qpic'
57662             lt_prog_compiler_static_CXX='-qstaticlink'
57663             ;;
57664           *)
57665             case `$CC -V 2>&1 | sed 5q` in
57666             *Sun\ C*)
57667               # Sun C++ 5.9
57668               lt_prog_compiler_pic_CXX='-KPIC'
57669               lt_prog_compiler_static_CXX='-Bstatic'
57670               lt_prog_compiler_wl_CXX='-Qoption ld '
57671               ;;
57672             esac
57673             ;;
57674         esac
57675         ;;
57676       lynxos*)
57677         ;;
57678       m88k*)
57679         ;;
57680       mvs*)
57681         case $cc_basename in
57682           cxx*)
57683             lt_prog_compiler_pic_CXX='-W c,exportall'
57684             ;;
57685           *)
57686             ;;
57687         esac
57688         ;;
57689       netbsd*)
57690         ;;
57691       *qnx* | *nto*)
57692         # QNX uses GNU C++, but need to define -shared option too, otherwise
57693         # it will coredump.
57694         lt_prog_compiler_pic_CXX='-fPIC -shared'
57695         ;;
57696       osf3* | osf4* | osf5*)
57697         case $cc_basename in
57698           KCC*)
57699             lt_prog_compiler_wl_CXX='--backend -Wl,'
57700             ;;
57701           RCC*)
57702             # Rational C++ 2.4.1
57703             lt_prog_compiler_pic_CXX='-pic'
57704             ;;
57705           cxx*)
57706             # Digital/Compaq C++
57707             lt_prog_compiler_wl_CXX='-Wl,'
57708             # Make sure the PIC flag is empty.  It appears that all Alpha
57709             # Linux and Compaq Tru64 Unix objects are PIC.
57710             lt_prog_compiler_pic_CXX=
57711             lt_prog_compiler_static_CXX='-non_shared'
57712             ;;
57713           *)
57714             ;;
57715         esac
57716         ;;
57717       psos*)
57718         ;;
57719       solaris*)
57720         case $cc_basename in
57721           CC*)
57722             # Sun C++ 4.2, 5.x and Centerline C++
57723             lt_prog_compiler_pic_CXX='-KPIC'
57724             lt_prog_compiler_static_CXX='-Bstatic'
57725             lt_prog_compiler_wl_CXX='-Qoption ld '
57726             ;;
57727           gcx*)
57728             # Green Hills C++ Compiler
57729             lt_prog_compiler_pic_CXX='-PIC'
57730             ;;
57731           *)
57732             ;;
57733         esac
57734         ;;
57735       sunos4*)
57736         case $cc_basename in
57737           CC*)
57738             # Sun C++ 4.x
57739             lt_prog_compiler_pic_CXX='-pic'
57740             lt_prog_compiler_static_CXX='-Bstatic'
57741             ;;
57742           lcc*)
57743             # Lucid
57744             lt_prog_compiler_pic_CXX='-pic'
57745             ;;
57746           *)
57747             ;;
57748         esac
57749         ;;
57750       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
57751         case $cc_basename in
57752           CC*)
57753             lt_prog_compiler_wl_CXX='-Wl,'
57754             lt_prog_compiler_pic_CXX='-KPIC'
57755             lt_prog_compiler_static_CXX='-Bstatic'
57756             ;;
57757         esac
57758         ;;
57759       tandem*)
57760         case $cc_basename in
57761           NCC*)
57762             # NonStop-UX NCC 3.20
57763             lt_prog_compiler_pic_CXX='-KPIC'
57764             ;;
57765           *)
57766             ;;
57767         esac
57768         ;;
57769       vxworks*)
57770         ;;
57771       *)
57772         lt_prog_compiler_can_build_shared_CXX=no
57773         ;;
57774     esac
57775   fi
57776
57777 case $host_os in
57778   # For platforms which do not support PIC, -DPIC is meaningless:
57779   *djgpp*)
57780     lt_prog_compiler_pic_CXX=
57781     ;;
57782   *)
57783     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
57784     ;;
57785 esac
57786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
57787 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
57788
57789
57790
57791 #
57792 # Check to make sure the PIC flag actually works.
57793 #
57794 if test -n "$lt_prog_compiler_pic_CXX"; then
57795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
57796 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
57797 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
57798   $as_echo_n "(cached) " >&6
57799 else
57800   lt_cv_prog_compiler_pic_works_CXX=no
57801    ac_outfile=conftest.$ac_objext
57802    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
57803    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
57804    # Insert the option either (1) after the last *FLAGS variable, or
57805    # (2) before a word containing "conftest.", or (3) at the end.
57806    # Note that $ac_compile itself does not contain backslashes and begins
57807    # with a dollar sign (not a hyphen), so the echo should work correctly.
57808    # The option is referenced via a variable to avoid confusing sed.
57809    lt_compile=`echo "$ac_compile" | $SED \
57810    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
57811    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
57812    -e 's:$: $lt_compiler_flag:'`
57813    (eval echo "\"\$as_me:57813: $lt_compile\"" >&5)
57814    (eval "$lt_compile" 2>conftest.err)
57815    ac_status=$?
57816    cat conftest.err >&5
57817    echo "$as_me:57817: \$? = $ac_status" >&5
57818    if (exit $ac_status) && test -s "$ac_outfile"; then
57819      # The compiler can only warn and ignore the option if not recognized
57820      # So say no if there are warnings other than the usual output.
57821      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
57822      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
57823      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
57824        lt_cv_prog_compiler_pic_works_CXX=yes
57825      fi
57826    fi
57827    $RM conftest*
57828
57829 fi
57830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
57831 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
57832
57833 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
57834     case $lt_prog_compiler_pic_CXX in
57835      "" | " "*) ;;
57836      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
57837      esac
57838 else
57839     lt_prog_compiler_pic_CXX=
57840      lt_prog_compiler_can_build_shared_CXX=no
57841 fi
57842
57843 fi
57844
57845
57846
57847 #
57848 # Check to make sure the static flag actually works.
57849 #
57850 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
57851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
57852 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
57853 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
57854   $as_echo_n "(cached) " >&6
57855 else
57856   lt_cv_prog_compiler_static_works_CXX=no
57857    save_LDFLAGS="$LDFLAGS"
57858    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
57859    echo "$lt_simple_link_test_code" > conftest.$ac_ext
57860    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
57861      # The linker can only warn and ignore the option if not recognized
57862      # So say no if there are warnings
57863      if test -s conftest.err; then
57864        # Append any errors to the config.log.
57865        cat conftest.err 1>&5
57866        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
57867        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
57868        if diff conftest.exp conftest.er2 >/dev/null; then
57869          lt_cv_prog_compiler_static_works_CXX=yes
57870        fi
57871      else
57872        lt_cv_prog_compiler_static_works_CXX=yes
57873      fi
57874    fi
57875    $RM -r conftest*
57876    LDFLAGS="$save_LDFLAGS"
57877
57878 fi
57879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
57880 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
57881
57882 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
57883     :
57884 else
57885     lt_prog_compiler_static_CXX=
57886 fi
57887
57888
57889
57890
57891     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
57892 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
57893 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
57894   $as_echo_n "(cached) " >&6
57895 else
57896   lt_cv_prog_compiler_c_o_CXX=no
57897    $RM -r conftest 2>/dev/null
57898    mkdir conftest
57899    cd conftest
57900    mkdir out
57901    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
57902
57903    lt_compiler_flag="-o out/conftest2.$ac_objext"
57904    # Insert the option either (1) after the last *FLAGS variable, or
57905    # (2) before a word containing "conftest.", or (3) at the end.
57906    # Note that $ac_compile itself does not contain backslashes and begins
57907    # with a dollar sign (not a hyphen), so the echo should work correctly.
57908    lt_compile=`echo "$ac_compile" | $SED \
57909    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
57910    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
57911    -e 's:$: $lt_compiler_flag:'`
57912    (eval echo "\"\$as_me:57912: $lt_compile\"" >&5)
57913    (eval "$lt_compile" 2>out/conftest.err)
57914    ac_status=$?
57915    cat out/conftest.err >&5
57916    echo "$as_me:57916: \$? = $ac_status" >&5
57917    if (exit $ac_status) && test -s out/conftest2.$ac_objext
57918    then
57919      # The compiler can only warn and ignore the option if not recognized
57920      # So say no if there are warnings
57921      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
57922      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
57923      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
57924        lt_cv_prog_compiler_c_o_CXX=yes
57925      fi
57926    fi
57927    chmod u+w . 2>&5
57928    $RM conftest*
57929    # SGI C++ compiler will create directory out/ii_files/ for
57930    # template instantiation
57931    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
57932    $RM out/* && rmdir out
57933    cd ..
57934    $RM -r conftest
57935    $RM conftest*
57936
57937 fi
57938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
57939 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
57940
57941
57942
57943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
57944 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
57945 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
57946   $as_echo_n "(cached) " >&6
57947 else
57948   lt_cv_prog_compiler_c_o_CXX=no
57949    $RM -r conftest 2>/dev/null
57950    mkdir conftest
57951    cd conftest
57952    mkdir out
57953    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
57954
57955    lt_compiler_flag="-o out/conftest2.$ac_objext"
57956    # Insert the option either (1) after the last *FLAGS variable, or
57957    # (2) before a word containing "conftest.", or (3) at the end.
57958    # Note that $ac_compile itself does not contain backslashes and begins
57959    # with a dollar sign (not a hyphen), so the echo should work correctly.
57960    lt_compile=`echo "$ac_compile" | $SED \
57961    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
57962    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
57963    -e 's:$: $lt_compiler_flag:'`
57964    (eval echo "\"\$as_me:57964: $lt_compile\"" >&5)
57965    (eval "$lt_compile" 2>out/conftest.err)
57966    ac_status=$?
57967    cat out/conftest.err >&5
57968    echo "$as_me:57968: \$? = $ac_status" >&5
57969    if (exit $ac_status) && test -s out/conftest2.$ac_objext
57970    then
57971      # The compiler can only warn and ignore the option if not recognized
57972      # So say no if there are warnings
57973      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
57974      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
57975      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
57976        lt_cv_prog_compiler_c_o_CXX=yes
57977      fi
57978    fi
57979    chmod u+w . 2>&5
57980    $RM conftest*
57981    # SGI C++ compiler will create directory out/ii_files/ for
57982    # template instantiation
57983    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
57984    $RM out/* && rmdir out
57985    cd ..
57986    $RM -r conftest
57987    $RM conftest*
57988
57989 fi
57990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
57991 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
57992
57993
57994
57995
57996 hard_links="nottested"
57997 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
57998   # do not overwrite the value of need_locks provided by the user
57999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
58000 $as_echo_n "checking if we can lock with hard links... " >&6; }
58001   hard_links=yes
58002   $RM conftest*
58003   ln conftest.a conftest.b 2>/dev/null && hard_links=no
58004   touch conftest.a
58005   ln conftest.a conftest.b 2>&5 || hard_links=no
58006   ln conftest.a conftest.b 2>/dev/null && hard_links=no
58007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
58008 $as_echo "$hard_links" >&6; }
58009   if test "$hard_links" = no; then
58010     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
58011 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
58012     need_locks=warn
58013   fi
58014 else
58015   need_locks=no
58016 fi
58017
58018
58019
58020     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
58021 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
58022
58023   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
58024   case $host_os in
58025   aix[4-9]*)
58026     # If we're using GNU nm, then we don't want the "-C" option.
58027     # -C means demangle to AIX nm, but means don't demangle with GNU nm
58028     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
58029       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
58030     else
58031       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
58032     fi
58033     ;;
58034   pw32*)
58035     export_symbols_cmds_CXX="$ltdll_cmds"
58036   ;;
58037   cygwin* | mingw* | cegcc*)
58038     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
58039   ;;
58040   *)
58041     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
58042   ;;
58043   esac
58044   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
58045
58046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
58047 $as_echo "$ld_shlibs_CXX" >&6; }
58048 test "$ld_shlibs_CXX" = no && can_build_shared=no
58049
58050 with_gnu_ld_CXX=$with_gnu_ld
58051
58052
58053
58054
58055
58056
58057 #
58058 # Do we need to explicitly link libc?
58059 #
58060 case "x$archive_cmds_need_lc_CXX" in
58061 x|xyes)
58062   # Assume -lc should be added
58063   archive_cmds_need_lc_CXX=yes
58064
58065   if test "$enable_shared" = yes && test "$GCC" = yes; then
58066     case $archive_cmds_CXX in
58067     *'~'*)
58068       # FIXME: we may have to deal with multi-command sequences.
58069       ;;
58070     '$CC '*)
58071       # Test whether the compiler implicitly links with -lc since on some
58072       # systems, -lgcc has to come before -lc. If gcc already passes -lc
58073       # to ld, don't add -lc before -lgcc.
58074       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
58075 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
58076       $RM conftest*
58077       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
58078
58079       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
58080   (eval $ac_compile) 2>&5
58081   ac_status=$?
58082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58083   test $ac_status = 0; } 2>conftest.err; then
58084         soname=conftest
58085         lib=conftest
58086         libobjs=conftest.$ac_objext
58087         deplibs=
58088         wl=$lt_prog_compiler_wl_CXX
58089         pic_flag=$lt_prog_compiler_pic_CXX
58090         compiler_flags=-v
58091         linker_flags=-v
58092         verstring=
58093         output_objdir=.
58094         libname=conftest
58095         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
58096         allow_undefined_flag_CXX=
58097         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
58098   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
58099   ac_status=$?
58100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58101   test $ac_status = 0; }
58102         then
58103           archive_cmds_need_lc_CXX=no
58104         else
58105           archive_cmds_need_lc_CXX=yes
58106         fi
58107         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
58108       else
58109         cat conftest.err 1>&5
58110       fi
58111       $RM conftest*
58112       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
58113 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
58114       ;;
58115     esac
58116   fi
58117   ;;
58118 esac
58119
58120
58121
58122
58123
58124
58125
58126
58127
58128
58129
58130
58131
58132
58133
58134
58135
58136
58137
58138
58139
58140
58141
58142
58143
58144
58145
58146
58147
58148
58149
58150
58151
58152
58153
58154
58155
58156
58157
58158
58159
58160
58161
58162
58163
58164
58165
58166
58167
58168
58169
58170
58171
58172
58173
58174
58175
58176
58177
58178
58179
58180
58181
58182
58183     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
58184 $as_echo_n "checking dynamic linker characteristics... " >&6; }
58185
58186 library_names_spec=
58187 libname_spec='lib$name'
58188 soname_spec=
58189 shrext_cmds=".so"
58190 postinstall_cmds=
58191 postuninstall_cmds=
58192 finish_cmds=
58193 finish_eval=
58194 shlibpath_var=
58195 shlibpath_overrides_runpath=unknown
58196 version_type=none
58197 dynamic_linker="$host_os ld.so"
58198 sys_lib_dlsearch_path_spec="/lib /usr/lib"
58199 need_lib_prefix=unknown
58200 hardcode_into_libs=no
58201
58202 # when you set need_version to no, make sure it does not cause -set_version
58203 # flags to be left without arguments
58204 need_version=unknown
58205
58206 case $host_os in
58207 aix3*)
58208   version_type=linux
58209   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
58210   shlibpath_var=LIBPATH
58211
58212   # AIX 3 has no versioning support, so we append a major version to the name.
58213   soname_spec='${libname}${release}${shared_ext}$major'
58214   ;;
58215
58216 aix[4-9]*)
58217   version_type=linux
58218   need_lib_prefix=no
58219   need_version=no
58220   hardcode_into_libs=yes
58221   if test "$host_cpu" = ia64; then
58222     # AIX 5 supports IA64
58223     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
58224     shlibpath_var=LD_LIBRARY_PATH
58225   else
58226     # With GCC up to 2.95.x, collect2 would create an import file
58227     # for dependence libraries.  The import file would start with
58228     # the line `#! .'.  This would cause the generated library to
58229     # depend on `.', always an invalid library.  This was fixed in
58230     # development snapshots of GCC prior to 3.0.
58231     case $host_os in
58232       aix4 | aix4.[01] | aix4.[01].*)
58233       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
58234            echo ' yes '
58235            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
58236         :
58237       else
58238         can_build_shared=no
58239       fi
58240       ;;
58241     esac
58242     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
58243     # soname into executable. Probably we can add versioning support to
58244     # collect2, so additional links can be useful in future.
58245     if test "$aix_use_runtimelinking" = yes; then
58246       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
58247       # instead of lib<name>.a to let people know that these are not
58248       # typical AIX shared libraries.
58249       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58250     else
58251       # We preserve .a as extension for shared libraries through AIX4.2
58252       # and later when we are not doing run time linking.
58253       library_names_spec='${libname}${release}.a $libname.a'
58254       soname_spec='${libname}${release}${shared_ext}$major'
58255     fi
58256     shlibpath_var=LIBPATH
58257   fi
58258   ;;
58259
58260 amigaos*)
58261   case $host_cpu in
58262   powerpc)
58263     # Since July 2007 AmigaOS4 officially supports .so libraries.
58264     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
58265     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58266     ;;
58267   m68k)
58268     library_names_spec='$libname.ixlibrary $libname.a'
58269     # Create ${libname}_ixlibrary.a entries in /sys/libs.
58270     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'
58271     ;;
58272   esac
58273   ;;
58274
58275 beos*)
58276   library_names_spec='${libname}${shared_ext}'
58277   dynamic_linker="$host_os ld.so"
58278   shlibpath_var=LIBRARY_PATH
58279   ;;
58280
58281 bsdi[45]*)
58282   version_type=linux
58283   need_version=no
58284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58285   soname_spec='${libname}${release}${shared_ext}$major'
58286   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
58287   shlibpath_var=LD_LIBRARY_PATH
58288   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
58289   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
58290   # the default ld.so.conf also contains /usr/contrib/lib and
58291   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
58292   # libtool to hard-code these into programs
58293   ;;
58294
58295 cygwin* | mingw* | pw32* | cegcc*)
58296   version_type=windows
58297   shrext_cmds=".dll"
58298   need_version=no
58299   need_lib_prefix=no
58300
58301   case $GCC,$host_os in
58302   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
58303     library_names_spec='$libname.dll.a'
58304     # DLL is installed to $(libdir)/../bin by postinstall_cmds
58305     postinstall_cmds='base_file=`basename \${file}`~
58306       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
58307       dldir=$destdir/`dirname \$dlpath`~
58308       test -d \$dldir || mkdir -p \$dldir~
58309       $install_prog $dir/$dlname \$dldir/$dlname~
58310       chmod a+x \$dldir/$dlname~
58311       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
58312         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
58313       fi'
58314     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
58315       dlpath=$dir/\$dldll~
58316        $RM \$dlpath'
58317     shlibpath_overrides_runpath=yes
58318
58319     case $host_os in
58320     cygwin*)
58321       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
58322       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
58323       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
58324       ;;
58325     mingw* | cegcc*)
58326       # MinGW DLLs use traditional 'lib' prefix
58327       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
58328       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
58329       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
58330         # It is most probably a Windows format PATH printed by
58331         # mingw gcc, but we are running on Cygwin. Gcc prints its search
58332         # path with ; separators, and with drive letters. We can handle the
58333         # drive letters (cygwin fileutils understands them), so leave them,
58334         # especially as we might pass files found there to a mingw objdump,
58335         # which wouldn't understand a cygwinified path. Ahh.
58336         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
58337       else
58338         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
58339       fi
58340       ;;
58341     pw32*)
58342       # pw32 DLLs use 'pw' prefix rather than 'lib'
58343       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
58344       ;;
58345     esac
58346     ;;
58347
58348   *)
58349     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
58350     ;;
58351   esac
58352   dynamic_linker='Win32 ld.exe'
58353   # FIXME: first we should search . and the directory the executable is in
58354   shlibpath_var=PATH
58355   ;;
58356
58357 darwin* | rhapsody*)
58358   dynamic_linker="$host_os dyld"
58359   version_type=darwin
58360   need_lib_prefix=no
58361   need_version=no
58362   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
58363   soname_spec='${libname}${release}${major}$shared_ext'
58364   shlibpath_overrides_runpath=yes
58365   shlibpath_var=DYLD_LIBRARY_PATH
58366   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
58367
58368   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
58369   ;;
58370
58371 dgux*)
58372   version_type=linux
58373   need_lib_prefix=no
58374   need_version=no
58375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
58376   soname_spec='${libname}${release}${shared_ext}$major'
58377   shlibpath_var=LD_LIBRARY_PATH
58378   ;;
58379
58380 freebsd1*)
58381   dynamic_linker=no
58382   ;;
58383
58384 freebsd* | dragonfly*)
58385   # DragonFly does not have aout.  When/if they implement a new
58386   # versioning mechanism, adjust this.
58387   if test -x /usr/bin/objformat; then
58388     objformat=`/usr/bin/objformat`
58389   else
58390     case $host_os in
58391     freebsd[123]*) objformat=aout ;;
58392     *) objformat=elf ;;
58393     esac
58394   fi
58395   version_type=freebsd-$objformat
58396   case $version_type in
58397     freebsd-elf*)
58398       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
58399       need_version=no
58400       need_lib_prefix=no
58401       ;;
58402     freebsd-*)
58403       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
58404       need_version=yes
58405       ;;
58406   esac
58407   shlibpath_var=LD_LIBRARY_PATH
58408   case $host_os in
58409   freebsd2*)
58410     shlibpath_overrides_runpath=yes
58411     ;;
58412   freebsd3.[01]* | freebsdelf3.[01]*)
58413     shlibpath_overrides_runpath=yes
58414     hardcode_into_libs=yes
58415     ;;
58416   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
58417   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
58418     shlibpath_overrides_runpath=no
58419     hardcode_into_libs=yes
58420     ;;
58421   *) # from 4.6 on, and DragonFly
58422     shlibpath_overrides_runpath=yes
58423     hardcode_into_libs=yes
58424     ;;
58425   esac
58426   ;;
58427
58428 gnu*)
58429   version_type=linux
58430   need_lib_prefix=no
58431   need_version=no
58432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
58433   soname_spec='${libname}${release}${shared_ext}$major'
58434   shlibpath_var=LD_LIBRARY_PATH
58435   hardcode_into_libs=yes
58436   ;;
58437
58438 hpux9* | hpux10* | hpux11*)
58439   # Give a soname corresponding to the major version so that dld.sl refuses to
58440   # link against other versions.
58441   version_type=sunos
58442   need_lib_prefix=no
58443   need_version=no
58444   case $host_cpu in
58445   ia64*)
58446     shrext_cmds='.so'
58447     hardcode_into_libs=yes
58448     dynamic_linker="$host_os dld.so"
58449     shlibpath_var=LD_LIBRARY_PATH
58450     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
58451     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58452     soname_spec='${libname}${release}${shared_ext}$major'
58453     if test "X$HPUX_IA64_MODE" = X32; then
58454       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
58455     else
58456       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
58457     fi
58458     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
58459     ;;
58460   hppa*64*)
58461     shrext_cmds='.sl'
58462     hardcode_into_libs=yes
58463     dynamic_linker="$host_os dld.sl"
58464     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
58465     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
58466     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58467     soname_spec='${libname}${release}${shared_ext}$major'
58468     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
58469     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
58470     ;;
58471   *)
58472     shrext_cmds='.sl'
58473     dynamic_linker="$host_os dld.sl"
58474     shlibpath_var=SHLIB_PATH
58475     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
58476     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58477     soname_spec='${libname}${release}${shared_ext}$major'
58478     ;;
58479   esac
58480   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
58481   postinstall_cmds='chmod 555 $lib'
58482   # or fails outright, so override atomically:
58483   install_override_mode=555
58484   ;;
58485
58486 interix[3-9]*)
58487   version_type=linux
58488   need_lib_prefix=no
58489   need_version=no
58490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
58491   soname_spec='${libname}${release}${shared_ext}$major'
58492   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
58493   shlibpath_var=LD_LIBRARY_PATH
58494   shlibpath_overrides_runpath=no
58495   hardcode_into_libs=yes
58496   ;;
58497
58498 irix5* | irix6* | nonstopux*)
58499   case $host_os in
58500     nonstopux*) version_type=nonstopux ;;
58501     *)
58502         if test "$lt_cv_prog_gnu_ld" = yes; then
58503                 version_type=linux
58504         else
58505                 version_type=irix
58506         fi ;;
58507   esac
58508   need_lib_prefix=no
58509   need_version=no
58510   soname_spec='${libname}${release}${shared_ext}$major'
58511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
58512   case $host_os in
58513   irix5* | nonstopux*)
58514     libsuff= shlibsuff=
58515     ;;
58516   *)
58517     case $LD in # libtool.m4 will add one of these switches to LD
58518     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
58519       libsuff= shlibsuff= libmagic=32-bit;;
58520     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
58521       libsuff=32 shlibsuff=N32 libmagic=N32;;
58522     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
58523       libsuff=64 shlibsuff=64 libmagic=64-bit;;
58524     *) libsuff= shlibsuff= libmagic=never-match;;
58525     esac
58526     ;;
58527   esac
58528   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
58529   shlibpath_overrides_runpath=no
58530   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
58531   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
58532   hardcode_into_libs=yes
58533   ;;
58534
58535 # No shared lib support for Linux oldld, aout, or coff.
58536 linux*oldld* | linux*aout* | linux*coff*)
58537   dynamic_linker=no
58538   ;;
58539
58540 # This must be Linux ELF.
58541 linux* | k*bsd*-gnu)
58542   version_type=linux
58543   need_lib_prefix=no
58544   need_version=no
58545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58546   soname_spec='${libname}${release}${shared_ext}$major'
58547   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
58548   shlibpath_var=LD_LIBRARY_PATH
58549   shlibpath_overrides_runpath=no
58550   # Some binutils ld are patched to set DT_RUNPATH
58551   save_LDFLAGS=$LDFLAGS
58552   save_libdir=$libdir
58553   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
58554        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
58555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58556 /* end confdefs.h.  */
58557
58558 int
58559 main ()
58560 {
58561
58562   ;
58563   return 0;
58564 }
58565 _ACEOF
58566 if ac_fn_cxx_try_link "$LINENO"; then :
58567   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
58568   shlibpath_overrides_runpath=yes
58569 fi
58570 fi
58571 rm -f core conftest.err conftest.$ac_objext \
58572     conftest$ac_exeext conftest.$ac_ext
58573   LDFLAGS=$save_LDFLAGS
58574   libdir=$save_libdir
58575
58576   # This implies no fast_install, which is unacceptable.
58577   # Some rework will be needed to allow for fast_install
58578   # before this can be enabled.
58579   hardcode_into_libs=yes
58580
58581   # Append ld.so.conf contents to the search path
58582   if test -f /etc/ld.so.conf; then
58583     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' ' '`
58584     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
58585   fi
58586
58587   # We used to test for /lib/ld.so.1 and disable shared libraries on
58588   # powerpc, because MkLinux only supported shared libraries with the
58589   # GNU dynamic linker.  Since this was broken with cross compilers,
58590   # most powerpc-linux boxes support dynamic linking these days and
58591   # people can always --disable-shared, the test was removed, and we
58592   # assume the GNU/Linux dynamic linker is in use.
58593   dynamic_linker='GNU/Linux ld.so'
58594   ;;
58595
58596 netbsd*)
58597   version_type=sunos
58598   need_lib_prefix=no
58599   need_version=no
58600   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
58601     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
58602     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
58603     dynamic_linker='NetBSD (a.out) ld.so'
58604   else
58605     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
58606     soname_spec='${libname}${release}${shared_ext}$major'
58607     dynamic_linker='NetBSD ld.elf_so'
58608   fi
58609   shlibpath_var=LD_LIBRARY_PATH
58610   shlibpath_overrides_runpath=yes
58611   hardcode_into_libs=yes
58612   ;;
58613
58614 newsos6)
58615   version_type=linux
58616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58617   shlibpath_var=LD_LIBRARY_PATH
58618   shlibpath_overrides_runpath=yes
58619   ;;
58620
58621 *nto* | *qnx*)
58622   version_type=qnx
58623   need_lib_prefix=no
58624   need_version=no
58625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58626   soname_spec='${libname}${release}${shared_ext}$major'
58627   shlibpath_var=LD_LIBRARY_PATH
58628   shlibpath_overrides_runpath=no
58629   hardcode_into_libs=yes
58630   dynamic_linker='ldqnx.so'
58631   ;;
58632
58633 openbsd*)
58634   version_type=sunos
58635   sys_lib_dlsearch_path_spec="/usr/lib"
58636   need_lib_prefix=no
58637   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
58638   case $host_os in
58639     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
58640     *)                          need_version=no  ;;
58641   esac
58642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
58643   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
58644   shlibpath_var=LD_LIBRARY_PATH
58645   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
58646     case $host_os in
58647       openbsd2.[89] | openbsd2.[89].*)
58648         shlibpath_overrides_runpath=no
58649         ;;
58650       *)
58651         shlibpath_overrides_runpath=yes
58652         ;;
58653       esac
58654   else
58655     shlibpath_overrides_runpath=yes
58656   fi
58657   ;;
58658
58659 os2*)
58660   libname_spec='$name'
58661   shrext_cmds=".dll"
58662   need_lib_prefix=no
58663   library_names_spec='$libname${shared_ext} $libname.a'
58664   dynamic_linker='OS/2 ld.exe'
58665   shlibpath_var=LIBPATH
58666   ;;
58667
58668 osf3* | osf4* | osf5*)
58669   version_type=osf
58670   need_lib_prefix=no
58671   need_version=no
58672   soname_spec='${libname}${release}${shared_ext}$major'
58673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58674   shlibpath_var=LD_LIBRARY_PATH
58675   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
58676   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
58677   ;;
58678
58679 rdos*)
58680   dynamic_linker=no
58681   ;;
58682
58683 solaris*)
58684   version_type=linux
58685   need_lib_prefix=no
58686   need_version=no
58687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58688   soname_spec='${libname}${release}${shared_ext}$major'
58689   shlibpath_var=LD_LIBRARY_PATH
58690   shlibpath_overrides_runpath=yes
58691   hardcode_into_libs=yes
58692   # ldd complains unless libraries are executable
58693   postinstall_cmds='chmod +x $lib'
58694   ;;
58695
58696 sunos4*)
58697   version_type=sunos
58698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
58699   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
58700   shlibpath_var=LD_LIBRARY_PATH
58701   shlibpath_overrides_runpath=yes
58702   if test "$with_gnu_ld" = yes; then
58703     need_lib_prefix=no
58704   fi
58705   need_version=yes
58706   ;;
58707
58708 sysv4 | sysv4.3*)
58709   version_type=linux
58710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58711   soname_spec='${libname}${release}${shared_ext}$major'
58712   shlibpath_var=LD_LIBRARY_PATH
58713   case $host_vendor in
58714     sni)
58715       shlibpath_overrides_runpath=no
58716       need_lib_prefix=no
58717       runpath_var=LD_RUN_PATH
58718       ;;
58719     siemens)
58720       need_lib_prefix=no
58721       ;;
58722     motorola)
58723       need_lib_prefix=no
58724       need_version=no
58725       shlibpath_overrides_runpath=no
58726       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
58727       ;;
58728   esac
58729   ;;
58730
58731 sysv4*MP*)
58732   if test -d /usr/nec ;then
58733     version_type=linux
58734     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
58735     soname_spec='$libname${shared_ext}.$major'
58736     shlibpath_var=LD_LIBRARY_PATH
58737   fi
58738   ;;
58739
58740 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
58741   version_type=freebsd-elf
58742   need_lib_prefix=no
58743   need_version=no
58744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
58745   soname_spec='${libname}${release}${shared_ext}$major'
58746   shlibpath_var=LD_LIBRARY_PATH
58747   shlibpath_overrides_runpath=yes
58748   hardcode_into_libs=yes
58749   if test "$with_gnu_ld" = yes; then
58750     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
58751   else
58752     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
58753     case $host_os in
58754       sco3.2v5*)
58755         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
58756         ;;
58757     esac
58758   fi
58759   sys_lib_dlsearch_path_spec='/usr/lib'
58760   ;;
58761
58762 tpf*)
58763   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
58764   version_type=linux
58765   need_lib_prefix=no
58766   need_version=no
58767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58768   shlibpath_var=LD_LIBRARY_PATH
58769   shlibpath_overrides_runpath=no
58770   hardcode_into_libs=yes
58771   ;;
58772
58773 uts4*)
58774   version_type=linux
58775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58776   soname_spec='${libname}${release}${shared_ext}$major'
58777   shlibpath_var=LD_LIBRARY_PATH
58778   ;;
58779
58780 *)
58781   dynamic_linker=no
58782   ;;
58783 esac
58784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
58785 $as_echo "$dynamic_linker" >&6; }
58786 test "$dynamic_linker" = no && can_build_shared=no
58787
58788 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
58789 if test "$GCC" = yes; then
58790   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
58791 fi
58792
58793 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
58794   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
58795 fi
58796 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
58797   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
58798 fi
58799
58800
58801
58802
58803
58804
58805
58806
58807
58808
58809
58810
58811
58812
58813
58814
58815
58816
58817
58818
58819
58820
58821
58822
58823
58824
58825
58826
58827
58828
58829
58830
58831
58832
58833
58834
58835
58836
58837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
58838 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
58839 hardcode_action_CXX=
58840 if test -n "$hardcode_libdir_flag_spec_CXX" ||
58841    test -n "$runpath_var_CXX" ||
58842    test "X$hardcode_automatic_CXX" = "Xyes" ; then
58843
58844   # We can hardcode non-existent directories.
58845   if test "$hardcode_direct_CXX" != no &&
58846      # If the only mechanism to avoid hardcoding is shlibpath_var, we
58847      # have to relink, otherwise we might link with an installed library
58848      # when we should be linking with a yet-to-be-installed one
58849      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
58850      test "$hardcode_minus_L_CXX" != no; then
58851     # Linking always hardcodes the temporary library directory.
58852     hardcode_action_CXX=relink
58853   else
58854     # We can link without hardcoding, and we can hardcode nonexisting dirs.
58855     hardcode_action_CXX=immediate
58856   fi
58857 else
58858   # We cannot hardcode anything, or else we can only hardcode existing
58859   # directories.
58860   hardcode_action_CXX=unsupported
58861 fi
58862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
58863 $as_echo "$hardcode_action_CXX" >&6; }
58864
58865 if test "$hardcode_action_CXX" = relink ||
58866    test "$inherit_rpath_CXX" = yes; then
58867   # Fast installation is not supported
58868   enable_fast_install=no
58869 elif test "$shlibpath_overrides_runpath" = yes ||
58870      test "$enable_shared" = no; then
58871   # Fast installation is not necessary
58872   enable_fast_install=needless
58873 fi
58874
58875
58876
58877
58878
58879
58880
58881   fi # test -n "$compiler"
58882
58883   CC=$lt_save_CC
58884   LDCXX=$LD
58885   LD=$lt_save_LD
58886   GCC=$lt_save_GCC
58887   with_gnu_ld=$lt_save_with_gnu_ld
58888   lt_cv_path_LDCXX=$lt_cv_path_LD
58889   lt_cv_path_LD=$lt_save_path_LD
58890   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
58891   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
58892 fi # test "$_lt_caught_CXX_error" != yes
58893
58894 ac_ext=c
58895 ac_cpp='$CPP $CPPFLAGS'
58896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
58899
58900
58901
58902 if test "${enable_libasprintf+set}" = set; then
58903   if test "$enable_libasprintf" != no; then
58904     TESTLIBASPRINTF=yes
58905   else
58906     TESTLIBASPRINTF=no
58907   fi
58908 else
58909   TESTLIBASPRINTF=yes
58910 fi
58911 if test "$CXX" = ":"; then
58912   TESTLIBASPRINTF=no
58913 fi
58914
58915
58916 test -d intl || mkdir intl
58917 echo "GNU gettext library from gettext-$VERSION" > intl/VERSION
58918 cat > intl/ChangeLog.inst <<EOF
58919 $RELEASE_DATE  GNU  <bug-gnu-gettext@gnu.org>
58920
58921         * Version $VERSION released.
58922
58923 EOF
58924
58925
58926
58927 subdirs="$subdirs examples"
58928
58929
58930 ac_config_files="$ac_config_files Makefile"
58931
58932
58933 ac_config_files="$ac_config_files doc/Makefile"
58934
58935
58936 ac_config_files="$ac_config_files intl/Makefile:../gettext-runtime/intl/Makefile.in"
58937
58938
58939 ac_config_files="$ac_config_files gnulib-lib/Makefile"
58940
58941
58942 ac_config_files="$ac_config_files libgrep/Makefile"
58943
58944
58945 ac_config_files="$ac_config_files src/Makefile"
58946
58947 ac_config_files="$ac_config_files src/user-email:src/user-email.sh.in"
58948
58949
58950 ac_config_files="$ac_config_files libgettextpo/Makefile"
58951
58952 ac_config_files="$ac_config_files libgettextpo/exported.sh"
58953
58954
58955 ac_config_files="$ac_config_files po/Makefile.in"
58956
58957
58958 ac_config_files="$ac_config_files projects/Makefile"
58959
58960
58961 ac_config_files="$ac_config_files styles/Makefile"
58962
58963
58964 ac_config_files="$ac_config_files misc/Makefile"
58965
58966 ac_config_files="$ac_config_files misc/gettextize"
58967
58968 ac_config_files="$ac_config_files misc/autopoint"
58969
58970 ac_config_files="$ac_config_files misc/convert-archive"
58971
58972
58973 ac_config_files="$ac_config_files man/Makefile"
58974
58975 ac_config_files="$ac_config_files man/x-to-1"
58976
58977
58978 ac_config_files="$ac_config_files m4/Makefile"
58979
58980
58981 ac_config_files="$ac_config_files tests/Makefile"
58982
58983
58984 ac_config_files="$ac_config_files gnulib-tests/Makefile"
58985
58986
58987 cat >confcache <<\_ACEOF
58988 # This file is a shell script that caches the results of configure
58989 # tests run on this system so they can be shared between configure
58990 # scripts and configure runs, see configure's option --config-cache.
58991 # It is not useful on other systems.  If it contains results you don't
58992 # want to keep, you may remove or edit it.
58993 #
58994 # config.status only pays attention to the cache file if you give it
58995 # the --recheck option to rerun configure.
58996 #
58997 # `ac_cv_env_foo' variables (set or unset) will be overridden when
58998 # loading this file, other *unset* `ac_cv_foo' will be assigned the
58999 # following values.
59000
59001 _ACEOF
59002
59003 # The following way of writing the cache mishandles newlines in values,
59004 # but we know of no workaround that is simple, portable, and efficient.
59005 # So, we kill variables containing newlines.
59006 # Ultrix sh set writes to stderr and can't be redirected directly,
59007 # and sets the high bit in the cache file unless we assign to the vars.
59008 (
59009   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
59010     eval ac_val=\$$ac_var
59011     case $ac_val in #(
59012     *${as_nl}*)
59013       case $ac_var in #(
59014       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
59015 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
59016       esac
59017       case $ac_var in #(
59018       _ | IFS | as_nl) ;; #(
59019       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
59020       *) { eval $ac_var=; unset $ac_var;} ;;
59021       esac ;;
59022     esac
59023   done
59024
59025   (set) 2>&1 |
59026     case $as_nl`(ac_space=' '; set) 2>&1` in #(
59027     *${as_nl}ac_space=\ *)
59028       # `set' does not quote correctly, so add quotes: double-quote
59029       # substitution turns \\\\ into \\, and sed turns \\ into \.
59030       sed -n \
59031         "s/'/'\\\\''/g;
59032           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
59033       ;; #(
59034     *)
59035       # `set' quotes correctly as required by POSIX, so do not add quotes.
59036       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
59037       ;;
59038     esac |
59039     sort
59040 ) |
59041   sed '
59042      /^ac_cv_env_/b end
59043      t clear
59044      :clear
59045      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
59046      t end
59047      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
59048      :end' >>confcache
59049 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
59050   if test -w "$cache_file"; then
59051     test "x$cache_file" != "x/dev/null" &&
59052       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
59053 $as_echo "$as_me: updating cache $cache_file" >&6;}
59054     cat confcache >$cache_file
59055   else
59056     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
59057 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
59058   fi
59059 fi
59060 rm -f confcache
59061
59062 test "x$prefix" = xNONE && prefix=$ac_default_prefix
59063 # Let make expand exec_prefix.
59064 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
59065
59066 DEFS=-DHAVE_CONFIG_H
59067
59068 ac_libobjs=
59069 ac_ltlibobjs=
59070 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
59071   # 1. Remove the extension, and $U if already installed.
59072   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
59073   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
59074   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
59075   #    will be set to the directory where LIBOBJS objects are built.
59076   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
59077   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
59078 done
59079 LIBOBJS=$ac_libobjs
59080
59081 LTLIBOBJS=$ac_ltlibobjs
59082
59083
59084  if test -n "$EXEEXT"; then
59085   am__EXEEXT_TRUE=
59086   am__EXEEXT_FALSE='#'
59087 else
59088   am__EXEEXT_TRUE='#'
59089   am__EXEEXT_FALSE=
59090 fi
59091
59092 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
59093   as_fn_error "conditional \"AMDEP\" was never defined.
59094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59095 fi
59096 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
59097   as_fn_error "conditional \"am__fastdepCC\" was never defined.
59098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59099 fi
59100 if test -z "${WOE32_TRUE}" && test -z "${WOE32_FALSE}"; then
59101   as_fn_error "conditional \"WOE32\" was never defined.
59102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59103 fi
59104 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
59105   as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
59106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59107 fi
59108 if test -z "${INCLUDED_LIBGLIB_TRUE}" && test -z "${INCLUDED_LIBGLIB_FALSE}"; then
59109   as_fn_error "conditional \"INCLUDED_LIBGLIB\" was never defined.
59110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59111 fi
59112 if test -z "${INCLUDED_LIBCROCO_TRUE}" && test -z "${INCLUDED_LIBCROCO_FALSE}"; then
59113   as_fn_error "conditional \"INCLUDED_LIBCROCO\" was never defined.
59114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59115 fi
59116 if test -z "${INCLUDED_LIBGLIB_TRUE}" && test -z "${INCLUDED_LIBGLIB_FALSE}"; then
59117   as_fn_error "conditional \"INCLUDED_LIBGLIB\" was never defined.
59118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59119 fi
59120 if test -z "${INCLUDED_LIBXML_TRUE}" && test -z "${INCLUDED_LIBXML_FALSE}"; then
59121   as_fn_error "conditional \"INCLUDED_LIBXML\" was never defined.
59122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59123 fi
59124 if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
59125   as_fn_error "conditional \"RELOCATABLE_VIA_LD\" was never defined.
59126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59127 fi
59128 if test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE}"; then
59129   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC\" was never defined.
59130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59131 fi
59132 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE}"; then
59133   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS\" was never defined.
59134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59135 fi
59136 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE}"; then
59137   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS\" was never defined.
59138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59139 fi
59140 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE}"; then
59141   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS\" was never defined.
59142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59143 fi
59144 if test -z "${LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE}"; then
59145   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNINAME_UNINAME\" was never defined.
59146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59147 fi
59148 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE}"; then
59149   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC\" was never defined.
59150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59151 fi
59152 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE}"; then
59153   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CHECK\" was never defined.
59154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59155 fi
59156 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE}"; then
59157   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN\" was never defined.
59158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59159 fi
59160 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE}"; then
59161   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC\" was never defined.
59162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59163 fi
59164 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE}"; then
59165   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE\" was never defined.
59166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59167 fi
59168 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then
59169   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined.
59170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59171 fi
59172 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE}"; then
59173   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_PREV\" was never defined.
59174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59175 fi
59176 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then
59177   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined.
59178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59179 fi
59180 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
59181   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
59182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59183 fi
59184
59185     gl_libobjs=
59186     gl_ltlibobjs=
59187     if test -n "$gl_LIBOBJS"; then
59188       # Remove the extension.
59189       sed_drop_objext='s/\.o$//;s/\.obj$//'
59190       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
59191         gl_libobjs="$gl_libobjs $i.$ac_objext"
59192         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
59193       done
59194     fi
59195     gl_LIBOBJS=$gl_libobjs
59196
59197     gl_LTLIBOBJS=$gl_ltlibobjs
59198
59199
59200 if test -z "${POSIX_SPAWN_PORTED_TRUE}" && test -z "${POSIX_SPAWN_PORTED_FALSE}"; then
59201   as_fn_error "conditional \"POSIX_SPAWN_PORTED\" was never defined.
59202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59203 fi
59204 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE}"; then
59205   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CMP\" was never defined.
59206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59207 fi
59208 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE}"; then
59209   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN\" was never defined.
59210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59211 fi
59212
59213     gltests_libobjs=
59214     gltests_ltlibobjs=
59215     if test -n "$gltests_LIBOBJS"; then
59216       # Remove the extension.
59217       sed_drop_objext='s/\.o$//;s/\.obj$//'
59218       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
59219         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
59220         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
59221       done
59222     fi
59223     gltests_LIBOBJS=$gltests_libobjs
59224
59225     gltests_LTLIBOBJS=$gltests_ltlibobjs
59226
59227
59228 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
59229   as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
59230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59231 fi
59232
59233     grgl_libobjs=
59234     grgl_ltlibobjs=
59235     if test -n "$grgl_LIBOBJS"; then
59236       # Remove the extension.
59237       sed_drop_objext='s/\.o$//;s/\.obj$//'
59238       for i in `for i in $grgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
59239         grgl_libobjs="$grgl_libobjs $i.$ac_objext"
59240         grgl_ltlibobjs="$grgl_ltlibobjs $i.lo"
59241       done
59242     fi
59243     grgl_LIBOBJS=$grgl_libobjs
59244
59245     grgl_LTLIBOBJS=$grgl_ltlibobjs
59246
59247
59248
59249     grgltests_libobjs=
59250     grgltests_ltlibobjs=
59251     if test -n "$grgltests_LIBOBJS"; then
59252       # Remove the extension.
59253       sed_drop_objext='s/\.o$//;s/\.obj$//'
59254       for i in `for i in $grgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
59255         grgltests_libobjs="$grgltests_libobjs $i.$ac_objext"
59256         grgltests_ltlibobjs="$grgltests_ltlibobjs $i.lo"
59257       done
59258     fi
59259     grgltests_LIBOBJS=$grgltests_libobjs
59260
59261     grgltests_LTLIBOBJS=$grgltests_ltlibobjs
59262
59263
59264 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
59265   as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
59266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59267 fi
59268 if test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE}"; then
59269   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC\" was never defined.
59270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59271 fi
59272 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE}"; then
59273   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS\" was never defined.
59274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59275 fi
59276 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE}"; then
59277   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS\" was never defined.
59278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59279 fi
59280 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE}"; then
59281   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS\" was never defined.
59282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59283 fi
59284 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE}"; then
59285   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC\" was never defined.
59286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59287 fi
59288 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE}"; then
59289   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CHECK\" was never defined.
59290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59291 fi
59292 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE}"; then
59293   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN\" was never defined.
59294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59295 fi
59296 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE}"; then
59297   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC\" was never defined.
59298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59299 fi
59300 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE}"; then
59301   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE\" was never defined.
59302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59303 fi
59304 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then
59305   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined.
59306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59307 fi
59308 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE}"; then
59309   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_PREV\" was never defined.
59310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59311 fi
59312 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then
59313   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined.
59314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59315 fi
59316 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
59317   as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
59318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59319 fi
59320
59321     gtpo_libobjs=
59322     gtpo_ltlibobjs=
59323     if test -n "$gtpo_LIBOBJS"; then
59324       # Remove the extension.
59325       sed_drop_objext='s/\.o$//;s/\.obj$//'
59326       for i in `for i in $gtpo_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
59327         gtpo_libobjs="$gtpo_libobjs $i.$ac_objext"
59328         gtpo_ltlibobjs="$gtpo_ltlibobjs $i.lo"
59329       done
59330     fi
59331     gtpo_LIBOBJS=$gtpo_libobjs
59332
59333     gtpo_LTLIBOBJS=$gtpo_ltlibobjs
59334
59335
59336
59337     gtpotests_libobjs=
59338     gtpotests_ltlibobjs=
59339     if test -n "$gtpotests_LIBOBJS"; then
59340       # Remove the extension.
59341       sed_drop_objext='s/\.o$//;s/\.obj$//'
59342       for i in `for i in $gtpotests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
59343         gtpotests_libobjs="$gtpotests_libobjs $i.$ac_objext"
59344         gtpotests_ltlibobjs="$gtpotests_ltlibobjs $i.lo"
59345       done
59346     fi
59347     gtpotests_LIBOBJS=$gtpotests_libobjs
59348
59349     gtpotests_LTLIBOBJS=$gtpotests_ltlibobjs
59350
59351
59352 if test -z "${WOE32DLL_TRUE}" && test -z "${WOE32DLL_FALSE}"; then
59353   as_fn_error "conditional \"WOE32DLL\" was never defined.
59354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59355 fi
59356 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
59357   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
59358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59359 fi
59360
59361 : ${CONFIG_STATUS=./config.status}
59362 ac_write_fail=0
59363 ac_clean_files_save=$ac_clean_files
59364 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
59365 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
59366 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
59367 as_write_fail=0
59368 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
59369 #! $SHELL
59370 # Generated by $as_me.
59371 # Run this file to recreate the current configuration.
59372 # Compiler output produced by configure, useful for debugging
59373 # configure, is in config.log if it exists.
59374
59375 debug=false
59376 ac_cs_recheck=false
59377 ac_cs_silent=false
59378
59379 SHELL=\${CONFIG_SHELL-$SHELL}
59380 export SHELL
59381 _ASEOF
59382 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
59383 ## -------------------- ##
59384 ## M4sh Initialization. ##
59385 ## -------------------- ##
59386
59387 # Be more Bourne compatible
59388 DUALCASE=1; export DUALCASE # for MKS sh
59389 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
59390   emulate sh
59391   NULLCMD=:
59392   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
59393   # is contrary to our usage.  Disable this feature.
59394   alias -g '${1+"$@"}'='"$@"'
59395   setopt NO_GLOB_SUBST
59396 else
59397   case `(set -o) 2>/dev/null` in #(
59398   *posix*) :
59399     set -o posix ;; #(
59400   *) :
59401      ;;
59402 esac
59403 fi
59404
59405
59406 as_nl='
59407 '
59408 export as_nl
59409 # Printing a long string crashes Solaris 7 /usr/bin/printf.
59410 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
59411 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
59412 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
59413 # Prefer a ksh shell builtin over an external printf program on Solaris,
59414 # but without wasting forks for bash or zsh.
59415 if test -z "$BASH_VERSION$ZSH_VERSION" \
59416     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
59417   as_echo='print -r --'
59418   as_echo_n='print -rn --'
59419 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
59420   as_echo='printf %s\n'
59421   as_echo_n='printf %s'
59422 else
59423   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
59424     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
59425     as_echo_n='/usr/ucb/echo -n'
59426   else
59427     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59428     as_echo_n_body='eval
59429       arg=$1;
59430       case $arg in #(
59431       *"$as_nl"*)
59432         expr "X$arg" : "X\\(.*\\)$as_nl";
59433         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
59434       esac;
59435       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
59436     '
59437     export as_echo_n_body
59438     as_echo_n='sh -c $as_echo_n_body as_echo'
59439   fi
59440   export as_echo_body
59441   as_echo='sh -c $as_echo_body as_echo'
59442 fi
59443
59444 # The user is always right.
59445 if test "${PATH_SEPARATOR+set}" != set; then
59446   PATH_SEPARATOR=:
59447   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
59448     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
59449       PATH_SEPARATOR=';'
59450   }
59451 fi
59452
59453
59454 # IFS
59455 # We need space, tab and new line, in precisely that order.  Quoting is
59456 # there to prevent editors from complaining about space-tab.
59457 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
59458 # splitting by setting IFS to empty value.)
59459 IFS=" ""        $as_nl"
59460
59461 # Find who we are.  Look in the path if we contain no directory separator.
59462 case $0 in #((
59463   *[\\/]* ) as_myself=$0 ;;
59464   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
59465 for as_dir in $PATH
59466 do
59467   IFS=$as_save_IFS
59468   test -z "$as_dir" && as_dir=.
59469     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
59470   done
59471 IFS=$as_save_IFS
59472
59473      ;;
59474 esac
59475 # We did not find ourselves, most probably we were run as `sh COMMAND'
59476 # in which case we are not to be found in the path.
59477 if test "x$as_myself" = x; then
59478   as_myself=$0
59479 fi
59480 if test ! -f "$as_myself"; then
59481   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
59482   exit 1
59483 fi
59484
59485 # Unset variables that we do not need and which cause bugs (e.g. in
59486 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
59487 # suppresses any "Segmentation fault" message there.  '((' could
59488 # trigger a bug in pdksh 5.2.14.
59489 for as_var in BASH_ENV ENV MAIL MAILPATH
59490 do eval test x\${$as_var+set} = xset \
59491   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
59492 done
59493 PS1='$ '
59494 PS2='> '
59495 PS4='+ '
59496
59497 # NLS nuisances.
59498 LC_ALL=C
59499 export LC_ALL
59500 LANGUAGE=C
59501 export LANGUAGE
59502
59503 # CDPATH.
59504 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
59505
59506
59507 # as_fn_error ERROR [LINENO LOG_FD]
59508 # ---------------------------------
59509 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
59510 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
59511 # script with status $?, using 1 if that was 0.
59512 as_fn_error ()
59513 {
59514   as_status=$?; test $as_status -eq 0 && as_status=1
59515   if test "$3"; then
59516     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
59517     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
59518   fi
59519   $as_echo "$as_me: error: $1" >&2
59520   as_fn_exit $as_status
59521 } # as_fn_error
59522
59523
59524 # as_fn_set_status STATUS
59525 # -----------------------
59526 # Set $? to STATUS, without forking.
59527 as_fn_set_status ()
59528 {
59529   return $1
59530 } # as_fn_set_status
59531
59532 # as_fn_exit STATUS
59533 # -----------------
59534 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
59535 as_fn_exit ()
59536 {
59537   set +e
59538   as_fn_set_status $1
59539   exit $1
59540 } # as_fn_exit
59541
59542 # as_fn_unset VAR
59543 # ---------------
59544 # Portably unset VAR.
59545 as_fn_unset ()
59546 {
59547   { eval $1=; unset $1;}
59548 }
59549 as_unset=as_fn_unset
59550 # as_fn_append VAR VALUE
59551 # ----------------------
59552 # Append the text in VALUE to the end of the definition contained in VAR. Take
59553 # advantage of any shell optimizations that allow amortized linear growth over
59554 # repeated appends, instead of the typical quadratic growth present in naive
59555 # implementations.
59556 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
59557   eval 'as_fn_append ()
59558   {
59559     eval $1+=\$2
59560   }'
59561 else
59562   as_fn_append ()
59563   {
59564     eval $1=\$$1\$2
59565   }
59566 fi # as_fn_append
59567
59568 # as_fn_arith ARG...
59569 # ------------------
59570 # Perform arithmetic evaluation on the ARGs, and store the result in the
59571 # global $as_val. Take advantage of shells that can avoid forks. The arguments
59572 # must be portable across $(()) and expr.
59573 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
59574   eval 'as_fn_arith ()
59575   {
59576     as_val=$(( $* ))
59577   }'
59578 else
59579   as_fn_arith ()
59580   {
59581     as_val=`expr "$@" || test $? -eq 1`
59582   }
59583 fi # as_fn_arith
59584
59585
59586 if expr a : '\(a\)' >/dev/null 2>&1 &&
59587    test "X`expr 00001 : '.*\(...\)'`" = X001; then
59588   as_expr=expr
59589 else
59590   as_expr=false
59591 fi
59592
59593 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
59594   as_basename=basename
59595 else
59596   as_basename=false
59597 fi
59598
59599 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
59600   as_dirname=dirname
59601 else
59602   as_dirname=false
59603 fi
59604
59605 as_me=`$as_basename -- "$0" ||
59606 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
59607          X"$0" : 'X\(//\)$' \| \
59608          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
59609 $as_echo X/"$0" |
59610     sed '/^.*\/\([^/][^/]*\)\/*$/{
59611             s//\1/
59612             q
59613           }
59614           /^X\/\(\/\/\)$/{
59615             s//\1/
59616             q
59617           }
59618           /^X\/\(\/\).*/{
59619             s//\1/
59620             q
59621           }
59622           s/.*/./; q'`
59623
59624 # Avoid depending upon Character Ranges.
59625 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
59626 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
59627 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
59628 as_cr_digits='0123456789'
59629 as_cr_alnum=$as_cr_Letters$as_cr_digits
59630
59631 ECHO_C= ECHO_N= ECHO_T=
59632 case `echo -n x` in #(((((
59633 -n*)
59634   case `echo 'xy\c'` in
59635   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
59636   xy)  ECHO_C='\c';;
59637   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
59638        ECHO_T=' ';;
59639   esac;;
59640 *)
59641   ECHO_N='-n';;
59642 esac
59643
59644 rm -f conf$$ conf$$.exe conf$$.file
59645 if test -d conf$$.dir; then
59646   rm -f conf$$.dir/conf$$.file
59647 else
59648   rm -f conf$$.dir
59649   mkdir conf$$.dir 2>/dev/null
59650 fi
59651 if (echo >conf$$.file) 2>/dev/null; then
59652   if ln -s conf$$.file conf$$ 2>/dev/null; then
59653     as_ln_s='ln -s'
59654     # ... but there are two gotchas:
59655     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
59656     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
59657     # In both cases, we have to default to `cp -p'.
59658     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
59659       as_ln_s='cp -p'
59660   elif ln conf$$.file conf$$ 2>/dev/null; then
59661     as_ln_s=ln
59662   else
59663     as_ln_s='cp -p'
59664   fi
59665 else
59666   as_ln_s='cp -p'
59667 fi
59668 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
59669 rmdir conf$$.dir 2>/dev/null
59670
59671
59672 # as_fn_mkdir_p
59673 # -------------
59674 # Create "$as_dir" as a directory, including parents if necessary.
59675 as_fn_mkdir_p ()
59676 {
59677
59678   case $as_dir in #(
59679   -*) as_dir=./$as_dir;;
59680   esac
59681   test -d "$as_dir" || eval $as_mkdir_p || {
59682     as_dirs=
59683     while :; do
59684       case $as_dir in #(
59685       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
59686       *) as_qdir=$as_dir;;
59687       esac
59688       as_dirs="'$as_qdir' $as_dirs"
59689       as_dir=`$as_dirname -- "$as_dir" ||
59690 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
59691          X"$as_dir" : 'X\(//\)[^/]' \| \
59692          X"$as_dir" : 'X\(//\)$' \| \
59693          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
59694 $as_echo X"$as_dir" |
59695     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
59696             s//\1/
59697             q
59698           }
59699           /^X\(\/\/\)[^/].*/{
59700             s//\1/
59701             q
59702           }
59703           /^X\(\/\/\)$/{
59704             s//\1/
59705             q
59706           }
59707           /^X\(\/\).*/{
59708             s//\1/
59709             q
59710           }
59711           s/.*/./; q'`
59712       test -d "$as_dir" && break
59713     done
59714     test -z "$as_dirs" || eval "mkdir $as_dirs"
59715   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
59716
59717
59718 } # as_fn_mkdir_p
59719 if mkdir -p . 2>/dev/null; then
59720   as_mkdir_p='mkdir -p "$as_dir"'
59721 else
59722   test -d ./-p && rmdir ./-p
59723   as_mkdir_p=false
59724 fi
59725
59726 if test -x / >/dev/null 2>&1; then
59727   as_test_x='test -x'
59728 else
59729   if ls -dL / >/dev/null 2>&1; then
59730     as_ls_L_option=L
59731   else
59732     as_ls_L_option=
59733   fi
59734   as_test_x='
59735     eval sh -c '\''
59736       if test -d "$1"; then
59737         test -d "$1/.";
59738       else
59739         case $1 in #(
59740         -*)set "./$1";;
59741         esac;
59742         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
59743         ???[sx]*):;;*)false;;esac;fi
59744     '\'' sh
59745   '
59746 fi
59747 as_executable_p=$as_test_x
59748
59749 # Sed expression to map a string onto a valid CPP name.
59750 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
59751
59752 # Sed expression to map a string onto a valid variable name.
59753 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
59754
59755
59756 exec 6>&1
59757 ## ----------------------------------- ##
59758 ## Main body of $CONFIG_STATUS script. ##
59759 ## ----------------------------------- ##
59760 _ASEOF
59761 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
59762
59763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
59764 # Save the log message, to keep $0 and so on meaningful, and to
59765 # report actual input values of CONFIG_FILES etc. instead of their
59766 # values after options handling.
59767 ac_log="
59768 This file was extended by gettext-tools $as_me, which was
59769 generated by GNU Autoconf 2.65.  Invocation command line was
59770
59771   CONFIG_FILES    = $CONFIG_FILES
59772   CONFIG_HEADERS  = $CONFIG_HEADERS
59773   CONFIG_LINKS    = $CONFIG_LINKS
59774   CONFIG_COMMANDS = $CONFIG_COMMANDS
59775   $ $0 $@
59776
59777 on `(hostname || uname -n) 2>/dev/null | sed 1q`
59778 "
59779
59780 _ACEOF
59781
59782 case $ac_config_files in *"
59783 "*) set x $ac_config_files; shift; ac_config_files=$*;;
59784 esac
59785
59786 case $ac_config_headers in *"
59787 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
59788 esac
59789
59790
59791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
59792 # Files that config.status was made for.
59793 config_files="$ac_config_files"
59794 config_headers="$ac_config_headers"
59795 config_commands="$ac_config_commands"
59796
59797 _ACEOF
59798
59799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
59800 ac_cs_usage="\
59801 \`$as_me' instantiates files and other configuration actions
59802 from templates according to the current configuration.  Unless the files
59803 and actions are specified as TAGs, all are instantiated by default.
59804
59805 Usage: $0 [OPTION]... [TAG]...
59806
59807   -h, --help       print this help, then exit
59808   -V, --version    print version number and configuration settings, then exit
59809       --config     print configuration, then exit
59810   -q, --quiet, --silent
59811                    do not print progress messages
59812   -d, --debug      don't remove temporary files
59813       --recheck    update $as_me by reconfiguring in the same conditions
59814       --file=FILE[:TEMPLATE]
59815                    instantiate the configuration file FILE
59816       --header=FILE[:TEMPLATE]
59817                    instantiate the configuration header FILE
59818
59819 Configuration files:
59820 $config_files
59821
59822 Configuration headers:
59823 $config_headers
59824
59825 Configuration commands:
59826 $config_commands
59827
59828 Report bugs to the package provider."
59829
59830 _ACEOF
59831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
59832 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
59833 ac_cs_version="\\
59834 gettext-tools config.status
59835 configured by $0, generated by GNU Autoconf 2.65,
59836   with options \\"\$ac_cs_config\\"
59837
59838 Copyright (C) 2009 Free Software Foundation, Inc.
59839 This config.status script is free software; the Free Software Foundation
59840 gives unlimited permission to copy, distribute and modify it."
59841
59842 ac_pwd='$ac_pwd'
59843 srcdir='$srcdir'
59844 INSTALL='$INSTALL'
59845 MKDIR_P='$MKDIR_P'
59846 AWK='$AWK'
59847 test -n "\$AWK" || AWK=awk
59848 _ACEOF
59849
59850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
59851 # The default lists apply if the user does not specify any file.
59852 ac_need_defaults=:
59853 while test $# != 0
59854 do
59855   case $1 in
59856   --*=*)
59857     ac_option=`expr "X$1" : 'X\([^=]*\)='`
59858     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
59859     ac_shift=:
59860     ;;
59861   *)
59862     ac_option=$1
59863     ac_optarg=$2
59864     ac_shift=shift
59865     ;;
59866   esac
59867
59868   case $ac_option in
59869   # Handling of the options.
59870   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
59871     ac_cs_recheck=: ;;
59872   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
59873     $as_echo "$ac_cs_version"; exit ;;
59874   --config | --confi | --conf | --con | --co | --c )
59875     $as_echo "$ac_cs_config"; exit ;;
59876   --debug | --debu | --deb | --de | --d | -d )
59877     debug=: ;;
59878   --file | --fil | --fi | --f )
59879     $ac_shift
59880     case $ac_optarg in
59881     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
59882     esac
59883     as_fn_append CONFIG_FILES " '$ac_optarg'"
59884     ac_need_defaults=false;;
59885   --header | --heade | --head | --hea )
59886     $ac_shift
59887     case $ac_optarg in
59888     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
59889     esac
59890     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
59891     ac_need_defaults=false;;
59892   --he | --h)
59893     # Conflict between --help and --header
59894     as_fn_error "ambiguous option: \`$1'
59895 Try \`$0 --help' for more information.";;
59896   --help | --hel | -h )
59897     $as_echo "$ac_cs_usage"; exit ;;
59898   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
59899   | -silent | --silent | --silen | --sile | --sil | --si | --s)
59900     ac_cs_silent=: ;;
59901
59902   # This is an error.
59903   -*) as_fn_error "unrecognized option: \`$1'
59904 Try \`$0 --help' for more information." ;;
59905
59906   *) as_fn_append ac_config_targets " $1"
59907      ac_need_defaults=false ;;
59908
59909   esac
59910   shift
59911 done
59912
59913 ac_configure_extra_args=
59914
59915 if $ac_cs_silent; then
59916   exec 6>/dev/null
59917   ac_configure_extra_args="$ac_configure_extra_args --silent"
59918 fi
59919
59920 _ACEOF
59921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
59922 if \$ac_cs_recheck; then
59923   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
59924   shift
59925   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
59926   CONFIG_SHELL='$SHELL'
59927   export CONFIG_SHELL
59928   exec "\$@"
59929 fi
59930
59931 _ACEOF
59932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
59933 exec 5>>config.log
59934 {
59935   echo
59936   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
59937 ## Running $as_me. ##
59938 _ASBOX
59939   $as_echo "$ac_log"
59940 } >&5
59941
59942 _ACEOF
59943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
59944 #
59945 # INIT-COMMANDS
59946 #
59947 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
59948
59949
59950 # The HP-UX ksh and POSIX shell print the target directory to stdout
59951 # if CDPATH is set.
59952 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
59953
59954 sed_quote_subst='$sed_quote_subst'
59955 double_quote_subst='$double_quote_subst'
59956 delay_variable_subst='$delay_variable_subst'
59957 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
59958 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
59959 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
59960 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
59961 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
59962 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
59963 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
59964 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
59965 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
59966 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
59967 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
59968 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
59969 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
59970 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
59971 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
59972 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
59973 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
59974 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
59975 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
59976 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
59977 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
59978 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
59979 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
59980 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
59981 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
59982 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
59983 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
59984 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
59985 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
59986 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
59987 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
59988 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
59989 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
59990 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
59991 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
59992 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
59993 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
59994 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
59995 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
59996 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
59997 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
59998 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
59999 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
60000 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
60001 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
60002 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
60003 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"`'
60004 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"`'
60005 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
60006 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
60007 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
60008 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
60009 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
60010 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
60011 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
60012 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
60013 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
60014 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
60015 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
60016 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
60017 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
60018 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
60019 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
60020 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
60021 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60022 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60023 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
60024 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
60025 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
60026 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
60027 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
60028 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60029 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60030 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60031 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60032 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60033 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60034 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
60035 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
60036 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
60037 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
60038 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
60039 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
60040 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
60041 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
60042 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
60043 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
60044 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
60045 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
60046 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
60047 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
60048 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
60049 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60050 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
60051 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
60052 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60053 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
60054 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
60055 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
60056 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
60057 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
60058 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
60059 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
60060 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
60061 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
60062 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
60063 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
60064 install_override_mode='`$ECHO "X$install_override_mode" | $Xsed -e "$delay_single_quote_subst"`'
60065 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60066 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60067 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60068 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
60069 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
60070 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
60071 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
60072 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
60073 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
60074 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
60075 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
60076 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
60077 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
60078 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
60079 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
60080 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
60081 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
60082 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
60083 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
60084 LD_RC='`$ECHO "X$LD_RC" | $Xsed -e "$delay_single_quote_subst"`'
60085 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60086 old_archive_cmds_RC='`$ECHO "X$old_archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
60087 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60088 compiler_RC='`$ECHO "X$compiler_RC" | $Xsed -e "$delay_single_quote_subst"`'
60089 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60090 GCC_RC='`$ECHO "X$GCC_RC" | $Xsed -e "$delay_single_quote_subst"`'
60091 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60092 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
60093 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60094 lt_prog_compiler_wl_RC='`$ECHO "X$lt_prog_compiler_wl_RC" | $Xsed -e "$delay_single_quote_subst"`'
60095 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60096 lt_prog_compiler_pic_RC='`$ECHO "X$lt_prog_compiler_pic_RC" | $Xsed -e "$delay_single_quote_subst"`'
60097 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60098 lt_prog_compiler_static_RC='`$ECHO "X$lt_prog_compiler_static_RC" | $Xsed -e "$delay_single_quote_subst"`'
60099 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60100 lt_cv_prog_compiler_c_o_RC='`$ECHO "X$lt_cv_prog_compiler_c_o_RC" | $Xsed -e "$delay_single_quote_subst"`'
60101 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60102 archive_cmds_need_lc_RC='`$ECHO "X$archive_cmds_need_lc_RC" | $Xsed -e "$delay_single_quote_subst"`'
60103 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60104 enable_shared_with_static_runtimes_RC='`$ECHO "X$enable_shared_with_static_runtimes_RC" | $Xsed -e "$delay_single_quote_subst"`'
60105 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60106 export_dynamic_flag_spec_RC='`$ECHO "X$export_dynamic_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
60107 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60108 whole_archive_flag_spec_RC='`$ECHO "X$whole_archive_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
60109 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60110 compiler_needs_object_RC='`$ECHO "X$compiler_needs_object_RC" | $Xsed -e "$delay_single_quote_subst"`'
60111 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60112 old_archive_from_new_cmds_RC='`$ECHO "X$old_archive_from_new_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
60113 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60114 old_archive_from_expsyms_cmds_RC='`$ECHO "X$old_archive_from_expsyms_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
60115 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60116 archive_cmds_RC='`$ECHO "X$archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
60117 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60118 archive_expsym_cmds_RC='`$ECHO "X$archive_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
60119 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60120 module_cmds_RC='`$ECHO "X$module_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
60121 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60122 module_expsym_cmds_RC='`$ECHO "X$module_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
60123 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60124 with_gnu_ld_RC='`$ECHO "X$with_gnu_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
60125 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60126 allow_undefined_flag_RC='`$ECHO "X$allow_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
60127 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60128 no_undefined_flag_RC='`$ECHO "X$no_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
60129 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60130 hardcode_libdir_flag_spec_RC='`$ECHO "X$hardcode_libdir_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
60131 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60132 hardcode_libdir_flag_spec_ld_RC='`$ECHO "X$hardcode_libdir_flag_spec_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
60133 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60134 hardcode_libdir_separator_RC='`$ECHO "X$hardcode_libdir_separator_RC" | $Xsed -e "$delay_single_quote_subst"`'
60135 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60136 hardcode_direct_RC='`$ECHO "X$hardcode_direct_RC" | $Xsed -e "$delay_single_quote_subst"`'
60137 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60138 hardcode_direct_absolute_RC='`$ECHO "X$hardcode_direct_absolute_RC" | $Xsed -e "$delay_single_quote_subst"`'
60139 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60140 hardcode_minus_L_RC='`$ECHO "X$hardcode_minus_L_RC" | $Xsed -e "$delay_single_quote_subst"`'
60141 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60142 hardcode_shlibpath_var_RC='`$ECHO "X$hardcode_shlibpath_var_RC" | $Xsed -e "$delay_single_quote_subst"`'
60143 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60144 hardcode_automatic_RC='`$ECHO "X$hardcode_automatic_RC" | $Xsed -e "$delay_single_quote_subst"`'
60145 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60146 inherit_rpath_RC='`$ECHO "X$inherit_rpath_RC" | $Xsed -e "$delay_single_quote_subst"`'
60147 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60148 link_all_deplibs_RC='`$ECHO "X$link_all_deplibs_RC" | $Xsed -e "$delay_single_quote_subst"`'
60149 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60150 fix_srcfile_path_RC='`$ECHO "X$fix_srcfile_path_RC" | $Xsed -e "$delay_single_quote_subst"`'
60151 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60152 always_export_symbols_RC='`$ECHO "X$always_export_symbols_RC" | $Xsed -e "$delay_single_quote_subst"`'
60153 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60154 export_symbols_cmds_RC='`$ECHO "X$export_symbols_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
60155 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60156 exclude_expsyms_RC='`$ECHO "X$exclude_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
60157 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60158 include_expsyms_RC='`$ECHO "X$include_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
60159 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60160 prelink_cmds_RC='`$ECHO "X$prelink_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
60161 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60162 file_list_spec_RC='`$ECHO "X$file_list_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
60163 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60164 hardcode_action_RC='`$ECHO "X$hardcode_action_RC" | $Xsed -e "$delay_single_quote_subst"`'
60165 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60166 compiler_lib_search_dirs_RC='`$ECHO "X$compiler_lib_search_dirs_RC" | $Xsed -e "$delay_single_quote_subst"`'
60167 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60168 predep_objects_RC='`$ECHO "X$predep_objects_RC" | $Xsed -e "$delay_single_quote_subst"`'
60169 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60170 postdep_objects_RC='`$ECHO "X$postdep_objects_RC" | $Xsed -e "$delay_single_quote_subst"`'
60171 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60172 predeps_RC='`$ECHO "X$predeps_RC" | $Xsed -e "$delay_single_quote_subst"`'
60173 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60174 postdeps_RC='`$ECHO "X$postdeps_RC" | $Xsed -e "$delay_single_quote_subst"`'
60175 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60176 compiler_lib_search_path_RC='`$ECHO "X$compiler_lib_search_path_RC" | $Xsed -e "$delay_single_quote_subst"`'
60177 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60178
60179 LTCC='$LTCC'
60180 LTCFLAGS='$LTCFLAGS'
60181 compiler='$compiler_DEFAULT'
60182
60183 # Quote evaled strings.
60184 for var in SED \
60185 GREP \
60186 EGREP \
60187 FGREP \
60188 LD \
60189 NM \
60190 LN_S \
60191 lt_SP2NL \
60192 lt_NL2SP \
60193 reload_flag \
60194 deplibs_check_method \
60195 file_magic_cmd \
60196 AR \
60197 AR_FLAGS \
60198 STRIP \
60199 RANLIB \
60200 CC \
60201 CFLAGS \
60202 compiler \
60203 lt_cv_sys_global_symbol_pipe \
60204 lt_cv_sys_global_symbol_to_cdecl \
60205 lt_cv_sys_global_symbol_to_c_name_address \
60206 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
60207 SHELL \
60208 ECHO \
60209 lt_prog_compiler_no_builtin_flag \
60210 lt_prog_compiler_wl \
60211 lt_prog_compiler_pic \
60212 lt_prog_compiler_static \
60213 lt_cv_prog_compiler_c_o \
60214 need_locks \
60215 DSYMUTIL \
60216 NMEDIT \
60217 LIPO \
60218 OTOOL \
60219 OTOOL64 \
60220 shrext_cmds \
60221 export_dynamic_flag_spec \
60222 whole_archive_flag_spec \
60223 compiler_needs_object \
60224 with_gnu_ld \
60225 allow_undefined_flag \
60226 no_undefined_flag \
60227 hardcode_libdir_flag_spec \
60228 hardcode_libdir_flag_spec_ld \
60229 hardcode_libdir_separator \
60230 fix_srcfile_path \
60231 exclude_expsyms \
60232 include_expsyms \
60233 file_list_spec \
60234 variables_saved_for_relink \
60235 libname_spec \
60236 library_names_spec \
60237 soname_spec \
60238 install_override_mode \
60239 finish_eval \
60240 old_striplib \
60241 striplib \
60242 compiler_lib_search_dirs \
60243 predep_objects \
60244 postdep_objects \
60245 predeps \
60246 postdeps \
60247 compiler_lib_search_path \
60248 LD_RC \
60249 LD_CXX \
60250 compiler_RC \
60251 compiler_CXX \
60252 lt_prog_compiler_no_builtin_flag_RC \
60253 lt_prog_compiler_no_builtin_flag_CXX \
60254 lt_prog_compiler_wl_RC \
60255 lt_prog_compiler_wl_CXX \
60256 lt_prog_compiler_pic_RC \
60257 lt_prog_compiler_pic_CXX \
60258 lt_prog_compiler_static_RC \
60259 lt_prog_compiler_static_CXX \
60260 lt_cv_prog_compiler_c_o_RC \
60261 lt_cv_prog_compiler_c_o_CXX \
60262 export_dynamic_flag_spec_RC \
60263 export_dynamic_flag_spec_CXX \
60264 whole_archive_flag_spec_RC \
60265 whole_archive_flag_spec_CXX \
60266 compiler_needs_object_RC \
60267 compiler_needs_object_CXX \
60268 with_gnu_ld_RC \
60269 with_gnu_ld_CXX \
60270 allow_undefined_flag_RC \
60271 allow_undefined_flag_CXX \
60272 no_undefined_flag_RC \
60273 no_undefined_flag_CXX \
60274 hardcode_libdir_flag_spec_RC \
60275 hardcode_libdir_flag_spec_CXX \
60276 hardcode_libdir_flag_spec_ld_RC \
60277 hardcode_libdir_flag_spec_ld_CXX \
60278 hardcode_libdir_separator_RC \
60279 hardcode_libdir_separator_CXX \
60280 fix_srcfile_path_RC \
60281 fix_srcfile_path_CXX \
60282 exclude_expsyms_RC \
60283 exclude_expsyms_CXX \
60284 include_expsyms_RC \
60285 include_expsyms_CXX \
60286 file_list_spec_RC \
60287 file_list_spec_CXX \
60288 compiler_lib_search_dirs_RC \
60289 compiler_lib_search_dirs_CXX \
60290 predep_objects_RC \
60291 predep_objects_CXX \
60292 postdep_objects_RC \
60293 postdep_objects_CXX \
60294 predeps_RC \
60295 predeps_CXX \
60296 postdeps_RC \
60297 postdeps_CXX \
60298 compiler_lib_search_path_RC \
60299 compiler_lib_search_path_CXX; do
60300     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
60301     *[\\\\\\\`\\"\\\$]*)
60302       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
60303       ;;
60304     *)
60305       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
60306       ;;
60307     esac
60308 done
60309
60310 # Double-quote double-evaled strings.
60311 for var in reload_cmds \
60312 old_postinstall_cmds \
60313 old_postuninstall_cmds \
60314 old_archive_cmds \
60315 extract_expsyms_cmds \
60316 old_archive_from_new_cmds \
60317 old_archive_from_expsyms_cmds \
60318 archive_cmds \
60319 archive_expsym_cmds \
60320 module_cmds \
60321 module_expsym_cmds \
60322 export_symbols_cmds \
60323 prelink_cmds \
60324 postinstall_cmds \
60325 postuninstall_cmds \
60326 finish_cmds \
60327 sys_lib_search_path_spec \
60328 sys_lib_dlsearch_path_spec \
60329 old_archive_cmds_RC \
60330 old_archive_cmds_CXX \
60331 old_archive_from_new_cmds_RC \
60332 old_archive_from_new_cmds_CXX \
60333 old_archive_from_expsyms_cmds_RC \
60334 old_archive_from_expsyms_cmds_CXX \
60335 archive_cmds_RC \
60336 archive_cmds_CXX \
60337 archive_expsym_cmds_RC \
60338 archive_expsym_cmds_CXX \
60339 module_cmds_RC \
60340 module_cmds_CXX \
60341 module_expsym_cmds_RC \
60342 module_expsym_cmds_CXX \
60343 export_symbols_cmds_RC \
60344 export_symbols_cmds_CXX \
60345 prelink_cmds_RC \
60346 prelink_cmds_CXX; do
60347     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
60348     *[\\\\\\\`\\"\\\$]*)
60349       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
60350       ;;
60351     *)
60352       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
60353       ;;
60354     esac
60355 done
60356
60357 # Fix-up fallback echo if it was mangled by the above quoting rules.
60358 case \$lt_ECHO in
60359 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
60360   ;;
60361 esac
60362
60363 ac_aux_dir='$ac_aux_dir'
60364 xsi_shell='$xsi_shell'
60365 lt_shell_append='$lt_shell_append'
60366
60367 # See if we are running on zsh, and set the options which allow our
60368 # commands through without removal of \ escapes INIT.
60369 if test -n "\${ZSH_VERSION+set}" ; then
60370    setopt NO_GLOB_SUBST
60371 fi
60372
60373
60374     PACKAGE='$PACKAGE'
60375     VERSION='$VERSION'
60376     TIMESTAMP='$TIMESTAMP'
60377     RM='$RM'
60378     ofile='$ofile'
60379
60380
60381
60382
60383
60384
60385
60386 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
60387     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
60388     # from automake < 1.5.
60389     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
60390     # Capture the value of LINGUAS because we need it to compute CATALOGS.
60391     LINGUAS="${LINGUAS-%UNSET%}"
60392
60393
60394 _ACEOF
60395
60396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
60397
60398 # Handling of arguments.
60399 for ac_config_target in $ac_config_targets
60400 do
60401   case $ac_config_target in
60402     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
60403     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
60404     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
60405     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
60406     "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:../build-aux/csharpcomp.sh.in" ;;
60407     "csharpexec.sh") CONFIG_FILES="$CONFIG_FILES csharpexec.sh:../build-aux/csharpexec.sh.in" ;;
60408     "javacomp.sh") CONFIG_FILES="$CONFIG_FILES javacomp.sh:../build-aux/javacomp.sh.in" ;;
60409     "javaexec.sh") CONFIG_FILES="$CONFIG_FILES javaexec.sh:../build-aux/javaexec.sh.in" ;;
60410     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
60411     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
60412     "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile:../gettext-runtime/intl/Makefile.in" ;;
60413     "gnulib-lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-lib/Makefile" ;;
60414     "libgrep/Makefile") CONFIG_FILES="$CONFIG_FILES libgrep/Makefile" ;;
60415     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
60416     "src/user-email") CONFIG_FILES="$CONFIG_FILES src/user-email:src/user-email.sh.in" ;;
60417     "libgettextpo/Makefile") CONFIG_FILES="$CONFIG_FILES libgettextpo/Makefile" ;;
60418     "libgettextpo/exported.sh") CONFIG_FILES="$CONFIG_FILES libgettextpo/exported.sh" ;;
60419     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
60420     "projects/Makefile") CONFIG_FILES="$CONFIG_FILES projects/Makefile" ;;
60421     "styles/Makefile") CONFIG_FILES="$CONFIG_FILES styles/Makefile" ;;
60422     "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
60423     "misc/gettextize") CONFIG_FILES="$CONFIG_FILES misc/gettextize" ;;
60424     "misc/autopoint") CONFIG_FILES="$CONFIG_FILES misc/autopoint" ;;
60425     "misc/convert-archive") CONFIG_FILES="$CONFIG_FILES misc/convert-archive" ;;
60426     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
60427     "man/x-to-1") CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;;
60428     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
60429     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
60430     "gnulib-tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-tests/Makefile" ;;
60431
60432   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
60433   esac
60434 done
60435
60436
60437 # If the user did not use the arguments to specify the items to instantiate,
60438 # then the envvar interface is used.  Set only those that are not.
60439 # We use the long form for the default assignment because of an extremely
60440 # bizarre bug on SunOS 4.1.3.
60441 if $ac_need_defaults; then
60442   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
60443   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
60444   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
60445 fi
60446
60447 # Have a temporary directory for convenience.  Make it in the build tree
60448 # simply because there is no reason against having it here, and in addition,
60449 # creating and moving files from /tmp can sometimes cause problems.
60450 # Hook for its removal unless debugging.
60451 # Note that there is a small window in which the directory will not be cleaned:
60452 # after its creation but before its name has been assigned to `$tmp'.
60453 $debug ||
60454 {
60455   tmp=
60456   trap 'exit_status=$?
60457   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
60458 ' 0
60459   trap 'as_fn_exit 1' 1 2 13 15
60460 }
60461 # Create a (secure) tmp directory for tmp files.
60462
60463 {
60464   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
60465   test -n "$tmp" && test -d "$tmp"
60466 }  ||
60467 {
60468   tmp=./conf$$-$RANDOM
60469   (umask 077 && mkdir "$tmp")
60470 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
60471
60472 # Set up the scripts for CONFIG_FILES section.
60473 # No need to generate them if there are no CONFIG_FILES.
60474 # This happens for instance with `./config.status config.h'.
60475 if test -n "$CONFIG_FILES"; then
60476
60477 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
60478   ac_cs_awk_getline=:
60479   ac_cs_awk_pipe_init=
60480   ac_cs_awk_read_file='
60481       while ((getline aline < (F[key])) > 0)
60482         print(aline)
60483       close(F[key])'
60484   ac_cs_awk_pipe_fini=
60485 else
60486   ac_cs_awk_getline=false
60487   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
60488   ac_cs_awk_read_file='
60489       print "|#_!!_#|"
60490       print "cat " F[key] " &&"
60491       '$ac_cs_awk_pipe_init
60492   # The final `:' finishes the AND list.
60493   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
60494 fi
60495 ac_cr=`echo X | tr X '\015'`
60496 # On cygwin, bash can eat \r inside `` if the user requested igncr.
60497 # But we know of no other shell where ac_cr would be empty at this
60498 # point, so we can use a bashism as a fallback.
60499 if test "x$ac_cr" = x; then
60500   eval ac_cr=\$\'\\r\'
60501 fi
60502 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
60503 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
60504   ac_cs_awk_cr='\r'
60505 else
60506   ac_cs_awk_cr=$ac_cr
60507 fi
60508
60509 echo 'BEGIN {' >"$tmp/subs1.awk" &&
60510 _ACEOF
60511
60512 # Create commands to substitute file output variables.
60513 {
60514   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
60515   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
60516   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
60517   echo "_ACAWK" &&
60518   echo "_ACEOF"
60519 } >conf$$files.sh &&
60520 . ./conf$$files.sh ||
60521   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
60522 rm -f conf$$files.sh
60523
60524 {
60525   echo "cat >conf$$subs.awk <<_ACEOF" &&
60526   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
60527   echo "_ACEOF"
60528 } >conf$$subs.sh ||
60529   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
60530 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
60531 ac_delim='%!_!# '
60532 for ac_last_try in false false false false false :; do
60533   . ./conf$$subs.sh ||
60534     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
60535
60536   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
60537   if test $ac_delim_n = $ac_delim_num; then
60538     break
60539   elif $ac_last_try; then
60540     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
60541   else
60542     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
60543   fi
60544 done
60545 rm -f conf$$subs.sh
60546
60547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
60548 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
60549 _ACEOF
60550 sed -n '
60551 h
60552 s/^/S["/; s/!.*/"]=/
60553 p
60554 g
60555 s/^[^!]*!//
60556 :repl
60557 t repl
60558 s/'"$ac_delim"'$//
60559 t delim
60560 :nl
60561 h
60562 s/\(.\{148\}\)..*/\1/
60563 t more1
60564 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
60565 p
60566 n
60567 b repl
60568 :more1
60569 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
60570 p
60571 g
60572 s/.\{148\}//
60573 t nl
60574 :delim
60575 h
60576 s/\(.\{148\}\)..*/\1/
60577 t more2
60578 s/["\\]/\\&/g; s/^/"/; s/$/"/
60579 p
60580 b
60581 :more2
60582 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
60583 p
60584 g
60585 s/.\{148\}//
60586 t delim
60587 ' <conf$$subs.awk | sed '
60588 /^[^""]/{
60589   N
60590   s/\n//
60591 }
60592 ' >>$CONFIG_STATUS || ac_write_fail=1
60593 rm -f conf$$subs.awk
60594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
60595 _ACAWK
60596 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
60597   for (key in S) S_is_set[key] = 1
60598   FS = "\a"
60599   \$ac_cs_awk_pipe_init
60600 }
60601 {
60602   line = $ 0
60603   nfields = split(line, field, "@")
60604   substed = 0
60605   len = length(field[1])
60606   for (i = 2; i < nfields; i++) {
60607     key = field[i]
60608     keylen = length(key)
60609     if (S_is_set[key]) {
60610       value = S[key]
60611       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
60612       len += length(value) + length(field[++i])
60613       substed = 1
60614     } else
60615       len += 1 + keylen
60616   }
60617   if (nfields == 3 && !substed) {
60618     key = field[2]
60619     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
60620       \$ac_cs_awk_read_file
60621       next
60622     }
60623   }
60624   print line
60625 }
60626 \$ac_cs_awk_pipe_fini
60627 _ACAWK
60628 _ACEOF
60629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
60630 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
60631   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
60632 else
60633   cat
60634 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
60635   || as_fn_error "could not setup config files machinery" "$LINENO" 5
60636 _ACEOF
60637
60638 # VPATH may cause trouble with some makes, so we remove $(srcdir),
60639 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
60640 # trailing colons and then remove the whole line if VPATH becomes empty
60641 # (actually we leave an empty line to preserve line numbers).
60642 if test "x$srcdir" = x.; then
60643   ac_vpsub='/^[  ]*VPATH[        ]*=/{
60644 s/:*\$(srcdir):*/:/
60645 s/:*\${srcdir}:*/:/
60646 s/:*@srcdir@:*/:/
60647 s/^\([^=]*=[     ]*\):*/\1/
60648 s/:*$//
60649 s/^[^=]*=[       ]*$//
60650 }'
60651 fi
60652
60653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
60654 fi # test -n "$CONFIG_FILES"
60655
60656 # Set up the scripts for CONFIG_HEADERS section.
60657 # No need to generate them if there are no CONFIG_HEADERS.
60658 # This happens for instance with `./config.status Makefile'.
60659 if test -n "$CONFIG_HEADERS"; then
60660 cat >"$tmp/defines.awk" <<\_ACAWK ||
60661 BEGIN {
60662 _ACEOF
60663
60664 # Transform confdefs.h into an awk script `defines.awk', embedded as
60665 # here-document in config.status, that substitutes the proper values into
60666 # config.h.in to produce config.h.
60667
60668 # Create a delimiter string that does not exist in confdefs.h, to ease
60669 # handling of long lines.
60670 ac_delim='%!_!# '
60671 for ac_last_try in false false :; do
60672   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
60673   if test -z "$ac_t"; then
60674     break
60675   elif $ac_last_try; then
60676     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
60677   else
60678     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
60679   fi
60680 done
60681
60682 # For the awk script, D is an array of macro values keyed by name,
60683 # likewise P contains macro parameters if any.  Preserve backslash
60684 # newline sequences.
60685
60686 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
60687 sed -n '
60688 s/.\{148\}/&'"$ac_delim"'/g
60689 t rset
60690 :rset
60691 s/^[     ]*#[    ]*define[       ][      ]*/ /
60692 t def
60693 d
60694 :def
60695 s/\\$//
60696 t bsnl
60697 s/["\\]/\\&/g
60698 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
60699 D["\1"]=" \3"/p
60700 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
60701 d
60702 :bsnl
60703 s/["\\]/\\&/g
60704 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
60705 D["\1"]=" \3\\\\\\n"\\/p
60706 t cont
60707 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
60708 t cont
60709 d
60710 :cont
60711 n
60712 s/.\{148\}/&'"$ac_delim"'/g
60713 t clear
60714 :clear
60715 s/\\$//
60716 t bsnlc
60717 s/["\\]/\\&/g; s/^/"/; s/$/"/p
60718 d
60719 :bsnlc
60720 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
60721 b cont
60722 ' <confdefs.h | sed '
60723 s/'"$ac_delim"'/"\\\
60724 "/g' >>$CONFIG_STATUS || ac_write_fail=1
60725
60726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
60727   for (key in D) D_is_set[key] = 1
60728   FS = "\a"
60729 }
60730 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
60731   line = \$ 0
60732   split(line, arg, " ")
60733   if (arg[1] == "#") {
60734     defundef = arg[2]
60735     mac1 = arg[3]
60736   } else {
60737     defundef = substr(arg[1], 2)
60738     mac1 = arg[2]
60739   }
60740   split(mac1, mac2, "(") #)
60741   macro = mac2[1]
60742   prefix = substr(line, 1, index(line, defundef) - 1)
60743   if (D_is_set[macro]) {
60744     # Preserve the white space surrounding the "#".
60745     print prefix "define", macro P[macro] D[macro]
60746     next
60747   } else {
60748     # Replace #undef with comments.  This is necessary, for example,
60749     # in the case of _POSIX_SOURCE, which is predefined and required
60750     # on some systems where configure will not decide to define it.
60751     if (defundef == "undef") {
60752       print "/*", prefix defundef, macro, "*/"
60753       next
60754     }
60755   }
60756 }
60757 { print }
60758 _ACAWK
60759 _ACEOF
60760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
60761   as_fn_error "could not setup config headers machinery" "$LINENO" 5
60762 fi # test -n "$CONFIG_HEADERS"
60763
60764
60765 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
60766 shift
60767 for ac_tag
60768 do
60769   case $ac_tag in
60770   :[FHLC]) ac_mode=$ac_tag; continue;;
60771   esac
60772   case $ac_mode$ac_tag in
60773   :[FHL]*:*);;
60774   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
60775   :[FH]-) ac_tag=-:-;;
60776   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
60777   esac
60778   ac_save_IFS=$IFS
60779   IFS=:
60780   set x $ac_tag
60781   IFS=$ac_save_IFS
60782   shift
60783   ac_file=$1
60784   shift
60785
60786   case $ac_mode in
60787   :L) ac_source=$1;;
60788   :[FH])
60789     ac_file_inputs=
60790     for ac_f
60791     do
60792       case $ac_f in
60793       -) ac_f="$tmp/stdin";;
60794       *) # Look for the file first in the build tree, then in the source tree
60795          # (if the path is not absolute).  The absolute path cannot be DOS-style,
60796          # because $ac_f cannot contain `:'.
60797          test -f "$ac_f" ||
60798            case $ac_f in
60799            [\\/$]*) false;;
60800            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
60801            esac ||
60802            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
60803       esac
60804       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
60805       as_fn_append ac_file_inputs " '$ac_f'"
60806     done
60807
60808     # Let's still pretend it is `configure' which instantiates (i.e., don't
60809     # use $as_me), people would be surprised to read:
60810     #    /* config.h.  Generated by config.status.  */
60811     configure_input='Generated from '`
60812           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
60813         `' by configure.'
60814     if test x"$ac_file" != x-; then
60815       configure_input="$ac_file.  $configure_input"
60816       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
60817 $as_echo "$as_me: creating $ac_file" >&6;}
60818     fi
60819     # Neutralize special characters interpreted by sed in replacement strings.
60820     case $configure_input in #(
60821     *\&* | *\|* | *\\* )
60822        ac_sed_conf_input=`$as_echo "$configure_input" |
60823        sed 's/[\\\\&|]/\\\\&/g'`;; #(
60824     *) ac_sed_conf_input=$configure_input;;
60825     esac
60826
60827     case $ac_tag in
60828     *:-:* | *:-) cat >"$tmp/stdin" \
60829       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
60830     esac
60831     ;;
60832   esac
60833
60834   ac_dir=`$as_dirname -- "$ac_file" ||
60835 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60836          X"$ac_file" : 'X\(//\)[^/]' \| \
60837          X"$ac_file" : 'X\(//\)$' \| \
60838          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
60839 $as_echo X"$ac_file" |
60840     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
60841             s//\1/
60842             q
60843           }
60844           /^X\(\/\/\)[^/].*/{
60845             s//\1/
60846             q
60847           }
60848           /^X\(\/\/\)$/{
60849             s//\1/
60850             q
60851           }
60852           /^X\(\/\).*/{
60853             s//\1/
60854             q
60855           }
60856           s/.*/./; q'`
60857   as_dir="$ac_dir"; as_fn_mkdir_p
60858   ac_builddir=.
60859
60860 case "$ac_dir" in
60861 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
60862 *)
60863   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
60864   # A ".." for each directory in $ac_dir_suffix.
60865   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
60866   case $ac_top_builddir_sub in
60867   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
60868   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
60869   esac ;;
60870 esac
60871 ac_abs_top_builddir=$ac_pwd
60872 ac_abs_builddir=$ac_pwd$ac_dir_suffix
60873 # for backward compatibility:
60874 ac_top_builddir=$ac_top_build_prefix
60875
60876 case $srcdir in
60877   .)  # We are building in place.
60878     ac_srcdir=.
60879     ac_top_srcdir=$ac_top_builddir_sub
60880     ac_abs_top_srcdir=$ac_pwd ;;
60881   [\\/]* | ?:[\\/]* )  # Absolute name.
60882     ac_srcdir=$srcdir$ac_dir_suffix;
60883     ac_top_srcdir=$srcdir
60884     ac_abs_top_srcdir=$srcdir ;;
60885   *) # Relative name.
60886     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
60887     ac_top_srcdir=$ac_top_build_prefix$srcdir
60888     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
60889 esac
60890 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
60891
60892
60893   case $ac_mode in
60894   :F)
60895   #
60896   # CONFIG_FILE
60897   #
60898
60899   case $INSTALL in
60900   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
60901   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
60902   esac
60903   ac_MKDIR_P=$MKDIR_P
60904   case $MKDIR_P in
60905   [\\/$]* | ?:[\\/]* ) ;;
60906   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
60907   esac
60908 _ACEOF
60909
60910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
60911 # If the template does not know about datarootdir, expand it.
60912 # FIXME: This hack should be removed a few years after 2.60.
60913 ac_datarootdir_hack=; ac_datarootdir_seen=
60914 ac_sed_dataroot='
60915 /datarootdir/ {
60916   p
60917   q
60918 }
60919 /@datadir@/p
60920 /@docdir@/p
60921 /@infodir@/p
60922 /@localedir@/p
60923 /@mandir@/p'
60924 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
60925 *datarootdir*) ac_datarootdir_seen=yes;;
60926 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
60927   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
60928 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
60929 _ACEOF
60930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
60931   ac_datarootdir_hack='
60932   s&@datadir@&$datadir&g
60933   s&@docdir@&$docdir&g
60934   s&@infodir@&$infodir&g
60935   s&@localedir@&$localedir&g
60936   s&@mandir@&$mandir&g
60937   s&\\\${datarootdir}&$datarootdir&g' ;;
60938 esac
60939 _ACEOF
60940
60941 # Neutralize VPATH when `$srcdir' = `.'.
60942 # Shell code in configure.ac might set extrasub.
60943 # FIXME: do we really want to maintain this feature?
60944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
60945 ac_sed_extra="$ac_vpsub
60946 $extrasub
60947 _ACEOF
60948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
60949 :t
60950 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
60951 s|@configure_input@|$ac_sed_conf_input|;t t
60952 s&@top_builddir@&$ac_top_builddir_sub&;t t
60953 s&@top_build_prefix@&$ac_top_build_prefix&;t t
60954 s&@srcdir@&$ac_srcdir&;t t
60955 s&@abs_srcdir@&$ac_abs_srcdir&;t t
60956 s&@top_srcdir@&$ac_top_srcdir&;t t
60957 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
60958 s&@builddir@&$ac_builddir&;t t
60959 s&@abs_builddir@&$ac_abs_builddir&;t t
60960 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
60961 s&@INSTALL@&$ac_INSTALL&;t t
60962 s&@MKDIR_P@&$ac_MKDIR_P&;t t
60963 $ac_datarootdir_hack
60964 "
60965 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
60966 if $ac_cs_awk_getline; then
60967   $AWK -f "$tmp/subs.awk"
60968 else
60969   $AWK -f "$tmp/subs.awk" | $SHELL
60970 fi >$tmp/out \
60971   || as_fn_error "could not create $ac_file" "$LINENO" 5
60972
60973 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
60974   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
60975   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
60976   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
60977 which seems to be undefined.  Please make sure it is defined." >&5
60978 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
60979 which seems to be undefined.  Please make sure it is defined." >&2;}
60980
60981   rm -f "$tmp/stdin"
60982   case $ac_file in
60983   -) cat "$tmp/out" && rm -f "$tmp/out";;
60984   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
60985   esac \
60986   || as_fn_error "could not create $ac_file" "$LINENO" 5
60987  ;;
60988   :H)
60989   #
60990   # CONFIG_HEADER
60991   #
60992   if test x"$ac_file" != x-; then
60993     {
60994       $as_echo "/* $configure_input  */" \
60995       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
60996     } >"$tmp/config.h" \
60997       || as_fn_error "could not create $ac_file" "$LINENO" 5
60998     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
60999       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
61000 $as_echo "$as_me: $ac_file is unchanged" >&6;}
61001     else
61002       rm -f "$ac_file"
61003       mv "$tmp/config.h" "$ac_file" \
61004         || as_fn_error "could not create $ac_file" "$LINENO" 5
61005     fi
61006   else
61007     $as_echo "/* $configure_input  */" \
61008       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
61009       || as_fn_error "could not create -" "$LINENO" 5
61010   fi
61011 # Compute "$ac_file"'s index in $config_headers.
61012 _am_arg="$ac_file"
61013 _am_stamp_count=1
61014 for _am_header in $config_headers :; do
61015   case $_am_header in
61016     $_am_arg | $_am_arg:* )
61017       break ;;
61018     * )
61019       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
61020   esac
61021 done
61022 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
61023 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61024          X"$_am_arg" : 'X\(//\)[^/]' \| \
61025          X"$_am_arg" : 'X\(//\)$' \| \
61026          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
61027 $as_echo X"$_am_arg" |
61028     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
61029             s//\1/
61030             q
61031           }
61032           /^X\(\/\/\)[^/].*/{
61033             s//\1/
61034             q
61035           }
61036           /^X\(\/\/\)$/{
61037             s//\1/
61038             q
61039           }
61040           /^X\(\/\).*/{
61041             s//\1/
61042             q
61043           }
61044           s/.*/./; q'`/stamp-h$_am_stamp_count
61045  ;;
61046
61047   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
61048 $as_echo "$as_me: executing $ac_file commands" >&6;}
61049  ;;
61050   esac
61051
61052
61053   case $ac_file$ac_mode in
61054     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
61055   # Autoconf 2.62 quotes --file arguments for eval, but not when files
61056   # are listed without --file.  Let's play safe and only enable the eval
61057   # if we detect the quoting.
61058   case $CONFIG_FILES in
61059   *\'*) eval set x "$CONFIG_FILES" ;;
61060   *)   set x $CONFIG_FILES ;;
61061   esac
61062   shift
61063   for mf
61064   do
61065     # Strip MF so we end up with the name of the file.
61066     mf=`echo "$mf" | sed -e 's/:.*$//'`
61067     # Check whether this is an Automake generated Makefile or not.
61068     # We used to match only the files named `Makefile.in', but
61069     # some people rename them; so instead we look at the file content.
61070     # Grep'ing the first line is not enough: some people post-process
61071     # each Makefile.in and add a new line on top of each file to say so.
61072     # Grep'ing the whole file is not good either: AIX grep has a line
61073     # limit of 2048, but all sed's we know have understand at least 4000.
61074     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
61075       dirpart=`$as_dirname -- "$mf" ||
61076 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61077          X"$mf" : 'X\(//\)[^/]' \| \
61078          X"$mf" : 'X\(//\)$' \| \
61079          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
61080 $as_echo X"$mf" |
61081     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
61082             s//\1/
61083             q
61084           }
61085           /^X\(\/\/\)[^/].*/{
61086             s//\1/
61087             q
61088           }
61089           /^X\(\/\/\)$/{
61090             s//\1/
61091             q
61092           }
61093           /^X\(\/\).*/{
61094             s//\1/
61095             q
61096           }
61097           s/.*/./; q'`
61098     else
61099       continue
61100     fi
61101     # Extract the definition of DEPDIR, am__include, and am__quote
61102     # from the Makefile without running `make'.
61103     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
61104     test -z "$DEPDIR" && continue
61105     am__include=`sed -n 's/^am__include = //p' < "$mf"`
61106     test -z "am__include" && continue
61107     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
61108     # When using ansi2knr, U may be empty or an underscore; expand it
61109     U=`sed -n 's/^U = //p' < "$mf"`
61110     # Find all dependency output files, they are included files with
61111     # $(DEPDIR) in their names.  We invoke sed twice because it is the
61112     # simplest approach to changing $(DEPDIR) to its actual value in the
61113     # expansion.
61114     for file in `sed -n "
61115       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
61116          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
61117       # Make sure the directory exists.
61118       test -f "$dirpart/$file" && continue
61119       fdir=`$as_dirname -- "$file" ||
61120 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61121          X"$file" : 'X\(//\)[^/]' \| \
61122          X"$file" : 'X\(//\)$' \| \
61123          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
61124 $as_echo X"$file" |
61125     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
61126             s//\1/
61127             q
61128           }
61129           /^X\(\/\/\)[^/].*/{
61130             s//\1/
61131             q
61132           }
61133           /^X\(\/\/\)$/{
61134             s//\1/
61135             q
61136           }
61137           /^X\(\/\).*/{
61138             s//\1/
61139             q
61140           }
61141           s/.*/./; q'`
61142       as_dir=$dirpart/$fdir; as_fn_mkdir_p
61143       # echo "creating $dirpart/$file"
61144       echo '# dummy' > "$dirpart/$file"
61145     done
61146   done
61147 }
61148  ;;
61149     "libtool":C)
61150
61151     # See if we are running on zsh, and set the options which allow our
61152     # commands through without removal of \ escapes.
61153     if test -n "${ZSH_VERSION+set}" ; then
61154       setopt NO_GLOB_SUBST
61155     fi
61156
61157     cfgfile="${ofile}T"
61158     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
61159     $RM "$cfgfile"
61160
61161     cat <<_LT_EOF >> "$cfgfile"
61162 #! $SHELL
61163
61164 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
61165 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
61166 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
61167 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
61168 #
61169 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
61170 #                 2006, 2007, 2008 Free Software Foundation, Inc.
61171 #   Written by Gordon Matzigkeit, 1996
61172 #
61173 #   This file is part of GNU Libtool.
61174 #
61175 # GNU Libtool is free software; you can redistribute it and/or
61176 # modify it under the terms of the GNU General Public License as
61177 # published by the Free Software Foundation; either version 2 of
61178 # the License, or (at your option) any later version.
61179 #
61180 # As a special exception to the GNU General Public License,
61181 # if you distribute this file as part of a program or library that
61182 # is built using GNU Libtool, you may include this file under the
61183 # same distribution terms that you use for the rest of that program.
61184 #
61185 # GNU Libtool is distributed in the hope that it will be useful,
61186 # but WITHOUT ANY WARRANTY; without even the implied warranty of
61187 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
61188 # GNU General Public License for more details.
61189 #
61190 # You should have received a copy of the GNU General Public License
61191 # along with GNU Libtool; see the file COPYING.  If not, a copy
61192 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
61193 # obtained by writing to the Free Software Foundation, Inc.,
61194 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
61195
61196
61197 # The names of the tagged configurations supported by this script.
61198 available_tags="RC CXX "
61199
61200 # ### BEGIN LIBTOOL CONFIG
61201
61202 # Which release of libtool.m4 was used?
61203 macro_version=$macro_version
61204 macro_revision=$macro_revision
61205
61206 # Assembler program.
61207 AS=$AS
61208
61209 # DLL creation program.
61210 DLLTOOL=$DLLTOOL
61211
61212 # Object dumper program.
61213 OBJDUMP=$OBJDUMP
61214
61215 # Whether or not to build shared libraries.
61216 build_libtool_libs=$enable_shared
61217
61218 # Whether or not to build static libraries.
61219 build_old_libs=$enable_static
61220
61221 # What type of objects to build.
61222 pic_mode=$pic_mode
61223
61224 # Whether or not to optimize for fast installation.
61225 fast_install=$enable_fast_install
61226
61227 # The host system.
61228 host_alias=$host_alias
61229 host=$host
61230 host_os=$host_os
61231
61232 # The build system.
61233 build_alias=$build_alias
61234 build=$build
61235 build_os=$build_os
61236
61237 # A sed program that does not truncate output.
61238 SED=$lt_SED
61239
61240 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
61241 Xsed="\$SED -e 1s/^X//"
61242
61243 # A grep program that handles long lines.
61244 GREP=$lt_GREP
61245
61246 # An ERE matcher.
61247 EGREP=$lt_EGREP
61248
61249 # A literal string matcher.
61250 FGREP=$lt_FGREP
61251
61252 # A BSD- or MS-compatible name lister.
61253 NM=$lt_NM
61254
61255 # Whether we need soft or hard links.
61256 LN_S=$lt_LN_S
61257
61258 # What is the maximum length of a command?
61259 max_cmd_len=$max_cmd_len
61260
61261 # Object file suffix (normally "o").
61262 objext=$ac_objext
61263
61264 # Executable file suffix (normally "").
61265 exeext=$exeext
61266
61267 # whether the shell understands "unset".
61268 lt_unset=$lt_unset
61269
61270 # turn spaces into newlines.
61271 SP2NL=$lt_lt_SP2NL
61272
61273 # turn newlines into spaces.
61274 NL2SP=$lt_lt_NL2SP
61275
61276 # How to create reloadable object files.
61277 reload_flag=$lt_reload_flag
61278 reload_cmds=$lt_reload_cmds
61279
61280 # Method to check whether dependent libraries are shared objects.
61281 deplibs_check_method=$lt_deplibs_check_method
61282
61283 # Command to use when deplibs_check_method == "file_magic".
61284 file_magic_cmd=$lt_file_magic_cmd
61285
61286 # The archiver.
61287 AR=$lt_AR
61288 AR_FLAGS=$lt_AR_FLAGS
61289
61290 # A symbol stripping program.
61291 STRIP=$lt_STRIP
61292
61293 # Commands used to install an old-style archive.
61294 RANLIB=$lt_RANLIB
61295 old_postinstall_cmds=$lt_old_postinstall_cmds
61296 old_postuninstall_cmds=$lt_old_postuninstall_cmds
61297
61298 # A C compiler.
61299 LTCC=$lt_CC
61300
61301 # LTCC compiler flags.
61302 LTCFLAGS=$lt_CFLAGS
61303
61304 # Take the output of nm and produce a listing of raw symbols and C names.
61305 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
61306
61307 # Transform the output of nm in a proper C declaration.
61308 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
61309
61310 # Transform the output of nm in a C name address pair.
61311 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
61312
61313 # Transform the output of nm in a C name address pair when lib prefix is needed.
61314 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
61315
61316 # The name of the directory that contains temporary libtool files.
61317 objdir=$objdir
61318
61319 # Shell to use when invoking shell scripts.
61320 SHELL=$lt_SHELL
61321
61322 # An echo program that does not interpret backslashes.
61323 ECHO=$lt_ECHO
61324
61325 # Used to examine libraries when file_magic_cmd begins with "file".
61326 MAGIC_CMD=$MAGIC_CMD
61327
61328 # Must we lock files when doing compilation?
61329 need_locks=$lt_need_locks
61330
61331 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
61332 DSYMUTIL=$lt_DSYMUTIL
61333
61334 # Tool to change global to local symbols on Mac OS X.
61335 NMEDIT=$lt_NMEDIT
61336
61337 # Tool to manipulate fat objects and archives on Mac OS X.
61338 LIPO=$lt_LIPO
61339
61340 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
61341 OTOOL=$lt_OTOOL
61342
61343 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
61344 OTOOL64=$lt_OTOOL64
61345
61346 # Old archive suffix (normally "a").
61347 libext=$libext
61348
61349 # Shared library suffix (normally ".so").
61350 shrext_cmds=$lt_shrext_cmds
61351
61352 # The commands to extract the exported symbol list from a shared archive.
61353 extract_expsyms_cmds=$lt_extract_expsyms_cmds
61354
61355 # Variables whose values should be saved in libtool wrapper scripts and
61356 # restored at link time.
61357 variables_saved_for_relink=$lt_variables_saved_for_relink
61358
61359 # Do we need the "lib" prefix for modules?
61360 need_lib_prefix=$need_lib_prefix
61361
61362 # Do we need a version for libraries?
61363 need_version=$need_version
61364
61365 # Library versioning type.
61366 version_type=$version_type
61367
61368 # Shared library runtime path variable.
61369 runpath_var=$runpath_var
61370
61371 # Shared library path variable.
61372 shlibpath_var=$shlibpath_var
61373
61374 # Is shlibpath searched before the hard-coded library search path?
61375 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
61376
61377 # Format of library name prefix.
61378 libname_spec=$lt_libname_spec
61379
61380 # List of archive names.  First name is the real one, the rest are links.
61381 # The last name is the one that the linker finds with -lNAME
61382 library_names_spec=$lt_library_names_spec
61383
61384 # The coded name of the library, if different from the real name.
61385 soname_spec=$lt_soname_spec
61386
61387 # Permission mode override for installation of shared libraries.
61388 install_override_mode=$lt_install_override_mode
61389
61390 # Command to use after installation of a shared archive.
61391 postinstall_cmds=$lt_postinstall_cmds
61392
61393 # Command to use after uninstallation of a shared archive.
61394 postuninstall_cmds=$lt_postuninstall_cmds
61395
61396 # Commands used to finish a libtool library installation in a directory.
61397 finish_cmds=$lt_finish_cmds
61398
61399 # As "finish_cmds", except a single script fragment to be evaled but
61400 # not shown.
61401 finish_eval=$lt_finish_eval
61402
61403 # Whether we should hardcode library paths into libraries.
61404 hardcode_into_libs=$hardcode_into_libs
61405
61406 # Compile-time system search path for libraries.
61407 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
61408
61409 # Run-time system search path for libraries.
61410 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
61411
61412 # Whether dlopen is supported.
61413 dlopen_support=$enable_dlopen
61414
61415 # Whether dlopen of programs is supported.
61416 dlopen_self=$enable_dlopen_self
61417
61418 # Whether dlopen of statically linked programs is supported.
61419 dlopen_self_static=$enable_dlopen_self_static
61420
61421 # Commands to strip libraries.
61422 old_striplib=$lt_old_striplib
61423 striplib=$lt_striplib
61424
61425
61426 # The linker used to build libraries.
61427 LD=$lt_LD
61428
61429 # Commands used to build an old-style archive.
61430 old_archive_cmds=$lt_old_archive_cmds
61431
61432 # A language specific compiler.
61433 CC=$lt_compiler
61434
61435 # Is the compiler the GNU compiler?
61436 with_gcc=$GCC
61437
61438 # Compiler flag to turn off builtin functions.
61439 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
61440
61441 # How to pass a linker flag through the compiler.
61442 wl=$lt_lt_prog_compiler_wl
61443
61444 # Additional compiler flags for building library objects.
61445 pic_flag=$lt_lt_prog_compiler_pic
61446
61447 # Compiler flag to prevent dynamic linking.
61448 link_static_flag=$lt_lt_prog_compiler_static
61449
61450 # Does compiler simultaneously support -c and -o options?
61451 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
61452
61453 # Whether or not to add -lc for building shared libraries.
61454 build_libtool_need_lc=$archive_cmds_need_lc
61455
61456 # Whether or not to disallow shared libs when runtime libs are static.
61457 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
61458
61459 # Compiler flag to allow reflexive dlopens.
61460 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
61461
61462 # Compiler flag to generate shared objects directly from archives.
61463 whole_archive_flag_spec=$lt_whole_archive_flag_spec
61464
61465 # Whether the compiler copes with passing no objects directly.
61466 compiler_needs_object=$lt_compiler_needs_object
61467
61468 # Create an old-style archive from a shared archive.
61469 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
61470
61471 # Create a temporary old-style archive to link instead of a shared archive.
61472 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
61473
61474 # Commands used to build a shared archive.
61475 archive_cmds=$lt_archive_cmds
61476 archive_expsym_cmds=$lt_archive_expsym_cmds
61477
61478 # Commands used to build a loadable module if different from building
61479 # a shared archive.
61480 module_cmds=$lt_module_cmds
61481 module_expsym_cmds=$lt_module_expsym_cmds
61482
61483 # Whether we are building with GNU ld or not.
61484 with_gnu_ld=$lt_with_gnu_ld
61485
61486 # Flag that allows shared libraries with undefined symbols to be built.
61487 allow_undefined_flag=$lt_allow_undefined_flag
61488
61489 # Flag that enforces no undefined symbols.
61490 no_undefined_flag=$lt_no_undefined_flag
61491
61492 # Flag to hardcode \$libdir into a binary during linking.
61493 # This must work even if \$libdir does not exist
61494 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
61495
61496 # If ld is used when linking, flag to hardcode \$libdir into a binary
61497 # during linking.  This must work even if \$libdir does not exist.
61498 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
61499
61500 # Whether we need a single "-rpath" flag with a separated argument.
61501 hardcode_libdir_separator=$lt_hardcode_libdir_separator
61502
61503 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
61504 # DIR into the resulting binary.
61505 hardcode_direct=$hardcode_direct
61506
61507 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
61508 # DIR into the resulting binary and the resulting library dependency is
61509 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
61510 # library is relocated.
61511 hardcode_direct_absolute=$hardcode_direct_absolute
61512
61513 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
61514 # into the resulting binary.
61515 hardcode_minus_L=$hardcode_minus_L
61516
61517 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
61518 # into the resulting binary.
61519 hardcode_shlibpath_var=$hardcode_shlibpath_var
61520
61521 # Set to "yes" if building a shared library automatically hardcodes DIR
61522 # into the library and all subsequent libraries and executables linked
61523 # against it.
61524 hardcode_automatic=$hardcode_automatic
61525
61526 # Set to yes if linker adds runtime paths of dependent libraries
61527 # to runtime path list.
61528 inherit_rpath=$inherit_rpath
61529
61530 # Whether libtool must link a program against all its dependency libraries.
61531 link_all_deplibs=$link_all_deplibs
61532
61533 # Fix the shell variable \$srcfile for the compiler.
61534 fix_srcfile_path=$lt_fix_srcfile_path
61535
61536 # Set to "yes" if exported symbols are required.
61537 always_export_symbols=$always_export_symbols
61538
61539 # The commands to list exported symbols.
61540 export_symbols_cmds=$lt_export_symbols_cmds
61541
61542 # Symbols that should not be listed in the preloaded symbols.
61543 exclude_expsyms=$lt_exclude_expsyms
61544
61545 # Symbols that must always be exported.
61546 include_expsyms=$lt_include_expsyms
61547
61548 # Commands necessary for linking programs (against libraries) with templates.
61549 prelink_cmds=$lt_prelink_cmds
61550
61551 # Specify filename containing input files.
61552 file_list_spec=$lt_file_list_spec
61553
61554 # How to hardcode a shared library path into an executable.
61555 hardcode_action=$hardcode_action
61556
61557 # The directories searched by this compiler when creating a shared library.
61558 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
61559
61560 # Dependencies to place before and after the objects being linked to
61561 # create a shared library.
61562 predep_objects=$lt_predep_objects
61563 postdep_objects=$lt_postdep_objects
61564 predeps=$lt_predeps
61565 postdeps=$lt_postdeps
61566
61567 # The library search path used internally by the compiler when linking
61568 # a shared library.
61569 compiler_lib_search_path=$lt_compiler_lib_search_path
61570
61571 # ### END LIBTOOL CONFIG
61572
61573 _LT_EOF
61574
61575   case $host_os in
61576   aix3*)
61577     cat <<\_LT_EOF >> "$cfgfile"
61578 # AIX sometimes has problems with the GCC collect2 program.  For some
61579 # reason, if we set the COLLECT_NAMES environment variable, the problems
61580 # vanish in a puff of smoke.
61581 if test "X${COLLECT_NAMES+set}" != Xset; then
61582   COLLECT_NAMES=
61583   export COLLECT_NAMES
61584 fi
61585 _LT_EOF
61586     ;;
61587   esac
61588
61589
61590 ltmain="$ac_aux_dir/ltmain.sh"
61591
61592
61593   # We use sed instead of cat because bash on DJGPP gets confused if
61594   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
61595   # text mode, it properly converts lines to CR/LF.  This bash problem
61596   # is reportedly fixed, but why not run on old versions too?
61597   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
61598     || (rm -f "$cfgfile"; exit 1)
61599
61600   case $xsi_shell in
61601   yes)
61602     cat << \_LT_EOF >> "$cfgfile"
61603
61604 # func_dirname file append nondir_replacement
61605 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
61606 # otherwise set result to NONDIR_REPLACEMENT.
61607 func_dirname ()
61608 {
61609   case ${1} in
61610     */*) func_dirname_result="${1%/*}${2}" ;;
61611     *  ) func_dirname_result="${3}" ;;
61612   esac
61613 }
61614
61615 # func_basename file
61616 func_basename ()
61617 {
61618   func_basename_result="${1##*/}"
61619 }
61620
61621 # func_dirname_and_basename file append nondir_replacement
61622 # perform func_basename and func_dirname in a single function
61623 # call:
61624 #   dirname:  Compute the dirname of FILE.  If nonempty,
61625 #             add APPEND to the result, otherwise set result
61626 #             to NONDIR_REPLACEMENT.
61627 #             value returned in "$func_dirname_result"
61628 #   basename: Compute filename of FILE.
61629 #             value retuned in "$func_basename_result"
61630 # Implementation must be kept synchronized with func_dirname
61631 # and func_basename. For efficiency, we do not delegate to
61632 # those functions but instead duplicate the functionality here.
61633 func_dirname_and_basename ()
61634 {
61635   case ${1} in
61636     */*) func_dirname_result="${1%/*}${2}" ;;
61637     *  ) func_dirname_result="${3}" ;;
61638   esac
61639   func_basename_result="${1##*/}"
61640 }
61641
61642 # func_stripname prefix suffix name
61643 # strip PREFIX and SUFFIX off of NAME.
61644 # PREFIX and SUFFIX must not contain globbing or regex special
61645 # characters, hashes, percent signs, but SUFFIX may contain a leading
61646 # dot (in which case that matches only a dot).
61647 func_stripname ()
61648 {
61649   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
61650   # positional parameters, so assign one to ordinary parameter first.
61651   func_stripname_result=${3}
61652   func_stripname_result=${func_stripname_result#"${1}"}
61653   func_stripname_result=${func_stripname_result%"${2}"}
61654 }
61655
61656 # func_opt_split
61657 func_opt_split ()
61658 {
61659   func_opt_split_opt=${1%%=*}
61660   func_opt_split_arg=${1#*=}
61661 }
61662
61663 # func_lo2o object
61664 func_lo2o ()
61665 {
61666   case ${1} in
61667     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
61668     *)    func_lo2o_result=${1} ;;
61669   esac
61670 }
61671
61672 # func_xform libobj-or-source
61673 func_xform ()
61674 {
61675   func_xform_result=${1%.*}.lo
61676 }
61677
61678 # func_arith arithmetic-term...
61679 func_arith ()
61680 {
61681   func_arith_result=$(( $* ))
61682 }
61683
61684 # func_len string
61685 # STRING may not start with a hyphen.
61686 func_len ()
61687 {
61688   func_len_result=${#1}
61689 }
61690
61691 _LT_EOF
61692     ;;
61693   *) # Bourne compatible functions.
61694     cat << \_LT_EOF >> "$cfgfile"
61695
61696 # func_dirname file append nondir_replacement
61697 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
61698 # otherwise set result to NONDIR_REPLACEMENT.
61699 func_dirname ()
61700 {
61701   # Extract subdirectory from the argument.
61702   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
61703   if test "X$func_dirname_result" = "X${1}"; then
61704     func_dirname_result="${3}"
61705   else
61706     func_dirname_result="$func_dirname_result${2}"
61707   fi
61708 }
61709
61710 # func_basename file
61711 func_basename ()
61712 {
61713   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
61714 }
61715
61716
61717 # func_stripname prefix suffix name
61718 # strip PREFIX and SUFFIX off of NAME.
61719 # PREFIX and SUFFIX must not contain globbing or regex special
61720 # characters, hashes, percent signs, but SUFFIX may contain a leading
61721 # dot (in which case that matches only a dot).
61722 # func_strip_suffix prefix name
61723 func_stripname ()
61724 {
61725   case ${2} in
61726     .*) func_stripname_result=`$ECHO "X${3}" \
61727            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
61728     *)  func_stripname_result=`$ECHO "X${3}" \
61729            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
61730   esac
61731 }
61732
61733 # sed scripts:
61734 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
61735 my_sed_long_arg='1s/^-[^=]*=//'
61736
61737 # func_opt_split
61738 func_opt_split ()
61739 {
61740   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
61741   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
61742 }
61743
61744 # func_lo2o object
61745 func_lo2o ()
61746 {
61747   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
61748 }
61749
61750 # func_xform libobj-or-source
61751 func_xform ()
61752 {
61753   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
61754 }
61755
61756 # func_arith arithmetic-term...
61757 func_arith ()
61758 {
61759   func_arith_result=`expr "$@"`
61760 }
61761
61762 # func_len string
61763 # STRING may not start with a hyphen.
61764 func_len ()
61765 {
61766   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
61767 }
61768
61769 _LT_EOF
61770 esac
61771
61772 case $lt_shell_append in
61773   yes)
61774     cat << \_LT_EOF >> "$cfgfile"
61775
61776 # func_append var value
61777 # Append VALUE to the end of shell variable VAR.
61778 func_append ()
61779 {
61780   eval "$1+=\$2"
61781 }
61782 _LT_EOF
61783     ;;
61784   *)
61785     cat << \_LT_EOF >> "$cfgfile"
61786
61787 # func_append var value
61788 # Append VALUE to the end of shell variable VAR.
61789 func_append ()
61790 {
61791   eval "$1=\$$1\$2"
61792 }
61793
61794 _LT_EOF
61795     ;;
61796   esac
61797
61798
61799   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
61800     || (rm -f "$cfgfile"; exit 1)
61801
61802   mv -f "$cfgfile" "$ofile" ||
61803     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
61804   chmod +x "$ofile"
61805
61806
61807     cat <<_LT_EOF >> "$ofile"
61808
61809 # ### BEGIN LIBTOOL TAG CONFIG: RC
61810
61811 # The linker used to build libraries.
61812 LD=$lt_LD_RC
61813
61814 # Commands used to build an old-style archive.
61815 old_archive_cmds=$lt_old_archive_cmds_RC
61816
61817 # A language specific compiler.
61818 CC=$lt_compiler_RC
61819
61820 # Is the compiler the GNU compiler?
61821 with_gcc=$GCC_RC
61822
61823 # Compiler flag to turn off builtin functions.
61824 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
61825
61826 # How to pass a linker flag through the compiler.
61827 wl=$lt_lt_prog_compiler_wl_RC
61828
61829 # Additional compiler flags for building library objects.
61830 pic_flag=$lt_lt_prog_compiler_pic_RC
61831
61832 # Compiler flag to prevent dynamic linking.
61833 link_static_flag=$lt_lt_prog_compiler_static_RC
61834
61835 # Does compiler simultaneously support -c and -o options?
61836 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
61837
61838 # Whether or not to add -lc for building shared libraries.
61839 build_libtool_need_lc=$archive_cmds_need_lc_RC
61840
61841 # Whether or not to disallow shared libs when runtime libs are static.
61842 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
61843
61844 # Compiler flag to allow reflexive dlopens.
61845 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
61846
61847 # Compiler flag to generate shared objects directly from archives.
61848 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
61849
61850 # Whether the compiler copes with passing no objects directly.
61851 compiler_needs_object=$lt_compiler_needs_object_RC
61852
61853 # Create an old-style archive from a shared archive.
61854 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
61855
61856 # Create a temporary old-style archive to link instead of a shared archive.
61857 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
61858
61859 # Commands used to build a shared archive.
61860 archive_cmds=$lt_archive_cmds_RC
61861 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
61862
61863 # Commands used to build a loadable module if different from building
61864 # a shared archive.
61865 module_cmds=$lt_module_cmds_RC
61866 module_expsym_cmds=$lt_module_expsym_cmds_RC
61867
61868 # Whether we are building with GNU ld or not.
61869 with_gnu_ld=$lt_with_gnu_ld_RC
61870
61871 # Flag that allows shared libraries with undefined symbols to be built.
61872 allow_undefined_flag=$lt_allow_undefined_flag_RC
61873
61874 # Flag that enforces no undefined symbols.
61875 no_undefined_flag=$lt_no_undefined_flag_RC
61876
61877 # Flag to hardcode \$libdir into a binary during linking.
61878 # This must work even if \$libdir does not exist
61879 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
61880
61881 # If ld is used when linking, flag to hardcode \$libdir into a binary
61882 # during linking.  This must work even if \$libdir does not exist.
61883 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
61884
61885 # Whether we need a single "-rpath" flag with a separated argument.
61886 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
61887
61888 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
61889 # DIR into the resulting binary.
61890 hardcode_direct=$hardcode_direct_RC
61891
61892 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
61893 # DIR into the resulting binary and the resulting library dependency is
61894 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
61895 # library is relocated.
61896 hardcode_direct_absolute=$hardcode_direct_absolute_RC
61897
61898 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
61899 # into the resulting binary.
61900 hardcode_minus_L=$hardcode_minus_L_RC
61901
61902 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
61903 # into the resulting binary.
61904 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
61905
61906 # Set to "yes" if building a shared library automatically hardcodes DIR
61907 # into the library and all subsequent libraries and executables linked
61908 # against it.
61909 hardcode_automatic=$hardcode_automatic_RC
61910
61911 # Set to yes if linker adds runtime paths of dependent libraries
61912 # to runtime path list.
61913 inherit_rpath=$inherit_rpath_RC
61914
61915 # Whether libtool must link a program against all its dependency libraries.
61916 link_all_deplibs=$link_all_deplibs_RC
61917
61918 # Fix the shell variable \$srcfile for the compiler.
61919 fix_srcfile_path=$lt_fix_srcfile_path_RC
61920
61921 # Set to "yes" if exported symbols are required.
61922 always_export_symbols=$always_export_symbols_RC
61923
61924 # The commands to list exported symbols.
61925 export_symbols_cmds=$lt_export_symbols_cmds_RC
61926
61927 # Symbols that should not be listed in the preloaded symbols.
61928 exclude_expsyms=$lt_exclude_expsyms_RC
61929
61930 # Symbols that must always be exported.
61931 include_expsyms=$lt_include_expsyms_RC
61932
61933 # Commands necessary for linking programs (against libraries) with templates.
61934 prelink_cmds=$lt_prelink_cmds_RC
61935
61936 # Specify filename containing input files.
61937 file_list_spec=$lt_file_list_spec_RC
61938
61939 # How to hardcode a shared library path into an executable.
61940 hardcode_action=$hardcode_action_RC
61941
61942 # The directories searched by this compiler when creating a shared library.
61943 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
61944
61945 # Dependencies to place before and after the objects being linked to
61946 # create a shared library.
61947 predep_objects=$lt_predep_objects_RC
61948 postdep_objects=$lt_postdep_objects_RC
61949 predeps=$lt_predeps_RC
61950 postdeps=$lt_postdeps_RC
61951
61952 # The library search path used internally by the compiler when linking
61953 # a shared library.
61954 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
61955
61956 # ### END LIBTOOL TAG CONFIG: RC
61957 _LT_EOF
61958
61959
61960     cat <<_LT_EOF >> "$ofile"
61961
61962 # ### BEGIN LIBTOOL TAG CONFIG: CXX
61963
61964 # The linker used to build libraries.
61965 LD=$lt_LD_CXX
61966
61967 # Commands used to build an old-style archive.
61968 old_archive_cmds=$lt_old_archive_cmds_CXX
61969
61970 # A language specific compiler.
61971 CC=$lt_compiler_CXX
61972
61973 # Is the compiler the GNU compiler?
61974 with_gcc=$GCC_CXX
61975
61976 # Compiler flag to turn off builtin functions.
61977 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
61978
61979 # How to pass a linker flag through the compiler.
61980 wl=$lt_lt_prog_compiler_wl_CXX
61981
61982 # Additional compiler flags for building library objects.
61983 pic_flag=$lt_lt_prog_compiler_pic_CXX
61984
61985 # Compiler flag to prevent dynamic linking.
61986 link_static_flag=$lt_lt_prog_compiler_static_CXX
61987
61988 # Does compiler simultaneously support -c and -o options?
61989 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
61990
61991 # Whether or not to add -lc for building shared libraries.
61992 build_libtool_need_lc=$archive_cmds_need_lc_CXX
61993
61994 # Whether or not to disallow shared libs when runtime libs are static.
61995 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
61996
61997 # Compiler flag to allow reflexive dlopens.
61998 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
61999
62000 # Compiler flag to generate shared objects directly from archives.
62001 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
62002
62003 # Whether the compiler copes with passing no objects directly.
62004 compiler_needs_object=$lt_compiler_needs_object_CXX
62005
62006 # Create an old-style archive from a shared archive.
62007 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
62008
62009 # Create a temporary old-style archive to link instead of a shared archive.
62010 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
62011
62012 # Commands used to build a shared archive.
62013 archive_cmds=$lt_archive_cmds_CXX
62014 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
62015
62016 # Commands used to build a loadable module if different from building
62017 # a shared archive.
62018 module_cmds=$lt_module_cmds_CXX
62019 module_expsym_cmds=$lt_module_expsym_cmds_CXX
62020
62021 # Whether we are building with GNU ld or not.
62022 with_gnu_ld=$lt_with_gnu_ld_CXX
62023
62024 # Flag that allows shared libraries with undefined symbols to be built.
62025 allow_undefined_flag=$lt_allow_undefined_flag_CXX
62026
62027 # Flag that enforces no undefined symbols.
62028 no_undefined_flag=$lt_no_undefined_flag_CXX
62029
62030 # Flag to hardcode \$libdir into a binary during linking.
62031 # This must work even if \$libdir does not exist
62032 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
62033
62034 # If ld is used when linking, flag to hardcode \$libdir into a binary
62035 # during linking.  This must work even if \$libdir does not exist.
62036 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
62037
62038 # Whether we need a single "-rpath" flag with a separated argument.
62039 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
62040
62041 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
62042 # DIR into the resulting binary.
62043 hardcode_direct=$hardcode_direct_CXX
62044
62045 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
62046 # DIR into the resulting binary and the resulting library dependency is
62047 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
62048 # library is relocated.
62049 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
62050
62051 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
62052 # into the resulting binary.
62053 hardcode_minus_L=$hardcode_minus_L_CXX
62054
62055 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
62056 # into the resulting binary.
62057 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
62058
62059 # Set to "yes" if building a shared library automatically hardcodes DIR
62060 # into the library and all subsequent libraries and executables linked
62061 # against it.
62062 hardcode_automatic=$hardcode_automatic_CXX
62063
62064 # Set to yes if linker adds runtime paths of dependent libraries
62065 # to runtime path list.
62066 inherit_rpath=$inherit_rpath_CXX
62067
62068 # Whether libtool must link a program against all its dependency libraries.
62069 link_all_deplibs=$link_all_deplibs_CXX
62070
62071 # Fix the shell variable \$srcfile for the compiler.
62072 fix_srcfile_path=$lt_fix_srcfile_path_CXX
62073
62074 # Set to "yes" if exported symbols are required.
62075 always_export_symbols=$always_export_symbols_CXX
62076
62077 # The commands to list exported symbols.
62078 export_symbols_cmds=$lt_export_symbols_cmds_CXX
62079
62080 # Symbols that should not be listed in the preloaded symbols.
62081 exclude_expsyms=$lt_exclude_expsyms_CXX
62082
62083 # Symbols that must always be exported.
62084 include_expsyms=$lt_include_expsyms_CXX
62085
62086 # Commands necessary for linking programs (against libraries) with templates.
62087 prelink_cmds=$lt_prelink_cmds_CXX
62088
62089 # Specify filename containing input files.
62090 file_list_spec=$lt_file_list_spec_CXX
62091
62092 # How to hardcode a shared library path into an executable.
62093 hardcode_action=$hardcode_action_CXX
62094
62095 # The directories searched by this compiler when creating a shared library.
62096 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
62097
62098 # Dependencies to place before and after the objects being linked to
62099 # create a shared library.
62100 predep_objects=$lt_predep_objects_CXX
62101 postdep_objects=$lt_postdep_objects_CXX
62102 predeps=$lt_predeps_CXX
62103 postdeps=$lt_postdeps_CXX
62104
62105 # The library search path used internally by the compiler when linking
62106 # a shared library.
62107 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
62108
62109 # ### END LIBTOOL TAG CONFIG: CXX
62110 _LT_EOF
62111
62112  ;;
62113     "po-directories":C)
62114     for ac_file in $CONFIG_FILES; do
62115       # Support "outfile[:infile[:infile...]]"
62116       case "$ac_file" in
62117         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
62118       esac
62119       # PO directories have a Makefile.in generated from Makefile.in.in.
62120       case "$ac_file" in */Makefile.in)
62121         # Adjust a relative srcdir.
62122         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
62123         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
62124         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
62125         # In autoconf-2.13 it is called $ac_given_srcdir.
62126         # In autoconf-2.50 it is called $srcdir.
62127         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
62128         case "$ac_given_srcdir" in
62129           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
62130           /*) top_srcdir="$ac_given_srcdir" ;;
62131           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
62132         esac
62133         # Treat a directory as a PO directory if and only if it has a
62134         # POTFILES.in file. This allows packages to have multiple PO
62135         # directories under different names or in different locations.
62136         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
62137           rm -f "$ac_dir/POTFILES"
62138           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
62139           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
62140           POMAKEFILEDEPS="POTFILES.in"
62141           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
62142           # on $ac_dir but don't depend on user-specified configuration
62143           # parameters.
62144           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
62145             # The LINGUAS file contains the set of available languages.
62146             if test -n "$OBSOLETE_ALL_LINGUAS"; then
62147               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
62148             fi
62149             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
62150             # Hide the ALL_LINGUAS assigment from automake < 1.5.
62151             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
62152             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
62153           else
62154             # The set of available languages was given in configure.in.
62155             # Hide the ALL_LINGUAS assigment from automake < 1.5.
62156             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
62157           fi
62158           # Compute POFILES
62159           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
62160           # Compute UPDATEPOFILES
62161           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
62162           # Compute DUMMYPOFILES
62163           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
62164           # Compute GMOFILES
62165           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
62166           case "$ac_given_srcdir" in
62167             .) srcdirpre= ;;
62168             *) srcdirpre='$(srcdir)/' ;;
62169           esac
62170           POFILES=
62171           UPDATEPOFILES=
62172           DUMMYPOFILES=
62173           GMOFILES=
62174           for lang in $ALL_LINGUAS; do
62175             POFILES="$POFILES $srcdirpre$lang.po"
62176             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
62177             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
62178             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
62179           done
62180           # CATALOGS depends on both $ac_dir and the user's LINGUAS
62181           # environment variable.
62182           INST_LINGUAS=
62183           if test -n "$ALL_LINGUAS"; then
62184             for presentlang in $ALL_LINGUAS; do
62185               useit=no
62186               if test "%UNSET%" != "$LINGUAS"; then
62187                 desiredlanguages="$LINGUAS"
62188               else
62189                 desiredlanguages="$ALL_LINGUAS"
62190               fi
62191               for desiredlang in $desiredlanguages; do
62192                 # Use the presentlang catalog if desiredlang is
62193                 #   a. equal to presentlang, or
62194                 #   b. a variant of presentlang (because in this case,
62195                 #      presentlang can be used as a fallback for messages
62196                 #      which are not translated in the desiredlang catalog).
62197                 case "$desiredlang" in
62198                   "$presentlang"*) useit=yes;;
62199                 esac
62200               done
62201               if test $useit = yes; then
62202                 INST_LINGUAS="$INST_LINGUAS $presentlang"
62203               fi
62204             done
62205           fi
62206           CATALOGS=
62207           if test -n "$INST_LINGUAS"; then
62208             for lang in $INST_LINGUAS; do
62209               CATALOGS="$CATALOGS $lang.gmo"
62210             done
62211           fi
62212           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
62213           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
62214           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
62215             if test -f "$f"; then
62216               case "$f" in
62217                 *.orig | *.bak | *~) ;;
62218                 *) cat "$f" >> "$ac_dir/Makefile" ;;
62219               esac
62220             fi
62221           done
62222         fi
62223         ;;
62224       esac
62225     done ;;
62226     "intl/Makefile":F)
62227   # Change srcdir variable so that it points to ../gettext-runtime/intl.
62228   sed -e 's|^srcdir =.*$|srcdir = $(top_srcdir)/../gettext-runtime/intl|' \
62229       -e 's|^VPATH =.*$||' \
62230     < intl/Makefile > intl/Makefile.tmp
62231   mv intl/Makefile.tmp intl/Makefile
62232    ;;
62233     "misc/gettextize":F) chmod a+x misc/gettextize ;;
62234     "misc/autopoint":F) chmod a+x misc/autopoint ;;
62235     "misc/convert-archive":F) chmod a+x misc/convert-archive ;;
62236     "man/Makefile":F)
62237   sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
62238   mv $ac_file.tmp $ac_file
62239  ;;
62240
62241   esac
62242 done # for ac_tag
62243
62244
62245 as_fn_exit 0
62246 _ACEOF
62247 ac_clean_files=$ac_clean_files_save
62248
62249 test $ac_write_fail = 0 ||
62250   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
62251
62252
62253 # configure is writing to config.log, and then calls config.status.
62254 # config.status does its own redirection, appending to config.log.
62255 # Unfortunately, on DOS this fails, as config.log is still kept open
62256 # by configure, so config.status won't be able to write to it; its
62257 # output is simply discarded.  So we exec the FD to /dev/null,
62258 # effectively closing config.log, so it can be properly (re)opened and
62259 # appended to by config.status.  When coming back to configure, we
62260 # need to make the FD available again.
62261 if test "$no_create" != yes; then
62262   ac_cs_success=:
62263   ac_config_status_args=
62264   test "$silent" = yes &&
62265     ac_config_status_args="$ac_config_status_args --quiet"
62266   exec 5>/dev/null
62267   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
62268   exec 5>>config.log
62269   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
62270   # would make configure fail if this is the last instruction.
62271   $ac_cs_success || as_fn_exit $?
62272 fi
62273
62274 #
62275 # CONFIG_SUBDIRS section.
62276 #
62277 if test "$no_recursion" != yes; then
62278
62279   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
62280   # so they do not pile up.
62281   ac_sub_configure_args=
62282   ac_prev=
62283   eval "set x $ac_configure_args"
62284   shift
62285   for ac_arg
62286   do
62287     if test -n "$ac_prev"; then
62288       ac_prev=
62289       continue
62290     fi
62291     case $ac_arg in
62292     -cache-file | --cache-file | --cache-fil | --cache-fi \
62293     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
62294       ac_prev=cache_file ;;
62295     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
62296     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
62297     | --c=*)
62298       ;;
62299     --config-cache | -C)
62300       ;;
62301     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
62302       ac_prev=srcdir ;;
62303     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
62304       ;;
62305     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
62306       ac_prev=prefix ;;
62307     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
62308       ;;
62309     --disable-option-checking)
62310       ;;
62311     *)
62312       case $ac_arg in
62313       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
62314       esac
62315       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
62316     esac
62317   done
62318
62319   # Always prepend --prefix to ensure using the same prefix
62320   # in subdir configurations.
62321   ac_arg="--prefix=$prefix"
62322   case $ac_arg in
62323   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
62324   esac
62325   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
62326
62327   # Pass --silent
62328   if test "$silent" = yes; then
62329     ac_sub_configure_args="--silent $ac_sub_configure_args"
62330   fi
62331
62332   # Always prepend --disable-option-checking to silence warnings, since
62333   # different subdirs can have different --enable and --with options.
62334   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
62335
62336   ac_popdir=`pwd`
62337   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
62338
62339     # Do not complain, so a configure script can configure whichever
62340     # parts of a large source tree are present.
62341     test -d "$srcdir/$ac_dir" || continue
62342
62343     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
62344     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
62345     $as_echo "$ac_msg" >&6
62346     as_dir="$ac_dir"; as_fn_mkdir_p
62347     ac_builddir=.
62348
62349 case "$ac_dir" in
62350 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
62351 *)
62352   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
62353   # A ".." for each directory in $ac_dir_suffix.
62354   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
62355   case $ac_top_builddir_sub in
62356   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
62357   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
62358   esac ;;
62359 esac
62360 ac_abs_top_builddir=$ac_pwd
62361 ac_abs_builddir=$ac_pwd$ac_dir_suffix
62362 # for backward compatibility:
62363 ac_top_builddir=$ac_top_build_prefix
62364
62365 case $srcdir in
62366   .)  # We are building in place.
62367     ac_srcdir=.
62368     ac_top_srcdir=$ac_top_builddir_sub
62369     ac_abs_top_srcdir=$ac_pwd ;;
62370   [\\/]* | ?:[\\/]* )  # Absolute name.
62371     ac_srcdir=$srcdir$ac_dir_suffix;
62372     ac_top_srcdir=$srcdir
62373     ac_abs_top_srcdir=$srcdir ;;
62374   *) # Relative name.
62375     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
62376     ac_top_srcdir=$ac_top_build_prefix$srcdir
62377     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
62378 esac
62379 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
62380
62381
62382     cd "$ac_dir"
62383
62384     # Check for guested configure; otherwise get Cygnus style configure.
62385     if test -f "$ac_srcdir/configure.gnu"; then
62386       ac_sub_configure=$ac_srcdir/configure.gnu
62387     elif test -f "$ac_srcdir/configure"; then
62388       ac_sub_configure=$ac_srcdir/configure
62389     elif test -f "$ac_srcdir/configure.in"; then
62390       # This should be Cygnus configure.
62391       ac_sub_configure=$ac_aux_dir/configure
62392     else
62393       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
62394 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
62395       ac_sub_configure=
62396     fi
62397
62398     # The recursion is here.
62399     if test -n "$ac_sub_configure"; then
62400       # Make the cache file name correct relative to the subdirectory.
62401       case $cache_file in
62402       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
62403       *) # Relative name.
62404         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
62405       esac
62406
62407       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
62408 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
62409       # The eval makes quoting arguments work.
62410       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
62411            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
62412         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
62413     fi
62414
62415     cd "$ac_popdir"
62416   done
62417 fi
62418 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
62419   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
62420 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
62421 fi
62422